blob: 69bafabdd463e7a2a55fcc54964ee19cb59624c7 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
cristyfa161182012-12-19 15:45:28 +0000647MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +0000648MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +0000649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
687ghostscript_font_dir
688windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000690PrintDelegate
691ZipDelegate
692XPSDelegate
693WWWDecodeDelegate
694WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000695UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000697SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000699RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700RMDelegate
701RLEEncodeDelegate
702PSDelegate
703POVDelegate
704PGPDecodeDelegate
705PCLDelegate
706MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000707MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708MPEGEncodeDelegate
709MPEGDecodeDelegate
710MANDelegate
711LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000712LPRDelegate
713LPDelegate
714ILBMEncodeDelegate
715ILBMDecodeDelegate
716HTMLDecodeDelegate
717HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718GnuplotDecodeDelegate
719MogrifyDelegate
720DisplayDelegate
721ConvertDelegate
722FIGDecodeDelegate
723EditorDelegate
724EchoDelegate
725DVIDecodeDelegate
726GVCDecodeDelegate
727DNGDecodeDelegate
728CatDelegate
729CGMDecodeDelegate
730BrowseDelegate
731BZIPDelegate
732BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000733AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000734SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000735SHAREARCH_RELATIVE_PATH
736SHAREARCH_DIRNAME
737SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000738SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000739CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000740DOCUMENTATION_PATH
741FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000742FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000743CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000744CODER_DIRNAME
745MODULES_PATH
746MODULES_RELATIVE_PATH
747MODULES_DIRNAME
748MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000749LIB_BIN_DIR_PATH
750LIB_BIN_DIR_RELATIVE_PATH
751LIB_BIN_DIR
752LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000753LIBRARY_PATH
754EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000755INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000756INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000757PERLMAINCC
758XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000759XML_DELEGATE_FALSE
760XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000761xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000762WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000763WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000764WMF_DELEGATE_FALSE
765WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000766WEBP_LIBS
767WEBP_DELEGATE_FALSE
768WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000769TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000770TIFF_DELEGATE_FALSE
771TIFF_DELEGATE_TRUE
772CAIRO_DELEGATE_FALSE
773CAIRO_DELEGATE_TRUE
774RSVG_DELEGATE_FALSE
775RSVG_DELEGATE_TRUE
776CAIRO_SVG_LIBS
777CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000778RSVG_LIBS
779RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000780PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000781PNG_DELEGATE_FALSE
782PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000783PANGOCAIRO_DELEGATE_FALSE
784PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000785PANGO_DELEGATE_FALSE
786PANGO_DELEGATE_TRUE
787PANGO_LIBS
788PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000789OPENEXR_DELEGATE_FALSE
790OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000791OPENEXR_LIBS
792OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000793LZMA_DELEGATE_FALSE
794LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000795LZMA_LIBS
796LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000797LQR_DELEGATE_FALSE
798LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799LQR_LIBS
800LQR_CFLAGS
801LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000802LCMS_DELEGATE_FALSE
803LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000804JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000805JP2_DELEGATE_FALSE
806JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000808JPEG_DELEGATE_FALSE
809JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000810JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000811JBIG_DELEGATE_FALSE
812JBIG_DELEGATE_TRUE
813GVC_DELEGATE_FALSE
814GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815GVC_LIBS
816GVC_CFLAGS
817GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000818GS_DELEGATE_FALSE
819GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000820FREETYPE_DELEGATE_FALSE
821FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000822FREETYPE_LIBS
823FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000824FONTCONFIG_DELEGATE_FALSE
825FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826FONTCONFIG_LIBS
827FONTCONFIG_CFLAGS
828FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000829FPX_DELEGATE_FALSE
830FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000831FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000832FFTW_DELEGATE_FALSE
833FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000835DJVU_DELEGATE_FALSE
836DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000837DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838DPS_DELEGATE_FALSE
839DPS_DELEGATE_TRUE
840AUTOTRACE_DELEGATE_FALSE
841AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000842AUTOTRACE_LIBS
843AUTOTRACE_CFLAGS
844LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000845WITH_LTDL_FALSE
846WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000847ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000848ZLIB_DELEGATE_FALSE
849ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000850XEXT_LIBS
851X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000852X11_DELEGATE_FALSE
853X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000854X_EXTRA_LIBS
855X_LIBS
856X_PRE_LIBS
857X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000858XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000859BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000860BZLIB_DELEGATE_FALSE
861BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000862CCMALLOCDelegate
863UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000864HasUMEM_FALSE
865HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000866THREAD_LIBS
867GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000868WITH_MAGICK_PLUS_PLUS_FALSE
869WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000870OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000871MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000872POW_LIB
873LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000874UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000875UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000876UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000877UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000878UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000879UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000880INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000881INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000882UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000883UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000884INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000885INT32_T
886UINT16_T
887INT16_T
888UINT8_T
889INT8_T
890LIBRARY_EXTRA_CPPFLAGS
891MODULE_EXTRA_CPPFLAGS
892LIBSTDCLDFLAGS
893PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000894MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000895MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000896QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000897LEGACY_SUPPORT_FALSE
898LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000899MAINT
900MAINTAINER_MODE_FALSE
901MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000902MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000903WITH_MODULES_FALSE
904WITH_MODULES_TRUE
905WITH_SHARED_LIBS_FALSE
906WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000907LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000908CXXCPP
909OTOOL64
910OTOOL
911LIPO
912NMEDIT
913DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000914MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000915RANLIB
cristyda16f162011-02-19 23:52:17 +0000916ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000917AR
918NM
919ac_ct_DUMPBIN
920DUMPBIN
921LIBTOOL
922OBJDUMP
923DLLTOOL
924AS
cristy3ed852e2009-09-05 21:47:34 +0000925LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000926CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000927CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000928OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000929PTHREAD_CFLAGS
930PTHREAD_LIBS
931PTHREAD_CC
932ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000933pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000934SHAREARCH_DIR
935INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000936WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000937USING_CL_FALSE
938USING_CL_TRUE
939CYGWIN_BUILD_FALSE
940CYGWIN_BUILD_TRUE
941WIN32_NATIVE_BUILD_FALSE
942WIN32_NATIVE_BUILD_TRUE
943WINGDI32_DELEGATE_FALSE
944WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000945GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000946HAVE_LD_VERSION_SCRIPT_FALSE
947HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000948PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000949PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000950LN_S
cristy3ed852e2009-09-05 21:47:34 +0000951LD
cristy73bd4a52010-10-05 11:24:23 +0000952FGREP
953SED
954am__fastdepCXX_FALSE
955am__fastdepCXX_TRUE
956CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000957ac_ct_CXX
958CXXFLAGS
959CXX
cristya0b81c32010-01-22 02:54:33 +0000960EGREP
961GREP
962CPP
cristy73bd4a52010-10-05 11:24:23 +0000963am__fastdepCC_FALSE
964am__fastdepCC_TRUE
965CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000966am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000967AMDEPBACKSLASH
968AMDEP_FALSE
969AMDEP_TRUE
970am__quote
971am__include
972DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000973OBJEXT
974EXEEXT
975ac_ct_CC
976CPPFLAGS
977LDFLAGS
978CFLAGS
979CC
980DIRSEP
981MAGICK_FILTER_MODULE_PATH
982MAGICK_CONFIGURE_BUILD_PATH
983MAGICK_CONFIGURE_SRC_PATH
984MAGICK_CODER_MODULE_PATH
985MAN_DIR
986INFO_DIR
987PERSISTINCLUDE_DIR
988INCLUDE_DIR
989LIB_DIR
990LOCALSTATE_DIR
991SHAREDSTATE_DIR
992SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000993DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000994DATA_DIR
995LIBEXEC_DIR
996SBIN_DIR
997BIN_DIR
998EXEC_PREFIX_DIR
999PREFIX_DIR
1000CONFIG_STATUS_DEPENDENCIES
1001MAGICK_LIB_VERSION_NUMBER
1002MAGICK_LIB_VERSION_TEXT
1003MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001004AM_BACKSLASH
1005AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001006AM_DEFAULT_V
1007AM_V
cristy73bd4a52010-10-05 11:24:23 +00001008am__untar
1009am__tar
1010AMTAR
1011am__leading_dot
1012SET_MAKE
1013AWK
1014mkdir_p
1015MKDIR_P
1016INSTALL_STRIP_PROGRAM
1017STRIP
1018install_sh
1019MAKEINFO
1020AUTOHEADER
1021AUTOMAKE
1022AUTOCONF
1023ACLOCAL
1024VERSION
1025PACKAGE
1026CYGPATH_W
1027am__isrc
1028INSTALL_DATA
1029INSTALL_SCRIPT
1030INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001031PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001032PACKAGE_RELEASE_DATE
1033PACKAGE_LIB_VERSION_NUMBER
1034PACKAGE_LIB_VERSION
1035PACKAGE_CHANGE_DATE
1036PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001037PACKAGE_PERL_VERSION
cristybab87c32010-02-09 20:54:22 +00001038MAGICK_LIBRARY_VERSION_INFO
1039MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001040MAGICK_LIBRARY_AGE
1041MAGICK_LIBRARY_REVISION
1042MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001043MAGICK_SVN_REVISION
1044MAGICK_VERSION
1045MAGICK_PATCHLEVEL_VERSION
1046MAGICK_MICRO_VERSION
1047MAGICK_MINOR_VERSION
1048MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001049MAGICK_TARGET_OS
1050MAGICK_TARGET_VENDOR
1051MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001052target_os
1053target_vendor
1054target_cpu
1055target
1056host_os
1057host_vendor
1058host_cpu
1059host
1060build_os
1061build_vendor
1062build_cpu
1063build
1064CONFIGURE_ARGS
1065DISTCHECK_CONFIG_FLAGS
1066target_alias
1067host_alias
1068build_alias
1069LIBS
1070ECHO_T
1071ECHO_N
1072ECHO_C
1073DEFS
1074mandir
1075localedir
1076libdir
1077psdir
1078pdfdir
1079dvidir
1080htmldir
1081infodir
1082docdir
1083oldincludedir
1084includedir
1085localstatedir
1086sharedstatedir
1087sysconfdir
1088datadir
1089datarootdir
1090libexecdir
1091sbindir
1092bindir
1093program_transform_name
1094prefix
1095exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001096PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001097PACKAGE_BUGREPORT
1098PACKAGE_STRING
1099PACKAGE_VERSION
1100PACKAGE_TARNAME
1101PACKAGE_NAME
1102PATH_SEPARATOR
1103SHELL'
1104ac_subst_files=''
1105ac_user_opts='
1106enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001107enable_silent_rules
1108enable_dependency_tracking
1109with_gnu_ld
1110with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001111with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001112enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001113enable_bounds_checking
1114enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001115with_includearch_dir
1116with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001117with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001118with_threads
1119enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001120enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001121enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001122enable_shared
1123enable_static
1124with_pic
1125enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001126with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001127enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001128with_modules
1129enable_delegate_build
1130enable_deprecated
1131enable_installed
1132enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001133enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001134enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001135enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001136enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001137enable_ccmalloc
1138enable_efence
1139enable_prof
1140enable_gprof
1141enable_gcov
1142with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001143enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001144with_quantum_depth
1145with_cache
1146with_frozenpaths
1147with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001148with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001149with_perl
1150with_perl_options
1151with_umem
1152with_libstdc
1153with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001154with_x
cristy3ed852e2009-09-05 21:47:34 +00001155with_zlib
1156with_autotrace
1157with_dps
1158with_djvu
cristy430a7312010-01-21 20:44:04 +00001159with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001160with_fftw
1161with_fpx
1162with_fontconfig
1163with_freetype
1164with_gslib
1165with_fontpath
1166with_gs_font_dir
1167with_gvc
1168with_jbig
1169with_jpeg
1170with_jp2
1171with_lcms
cristy71203402010-06-18 13:12:03 +00001172with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001173with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001174with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001175with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001176with_pango
cristy3ed852e2009-09-05 21:47:34 +00001177with_png
1178with_rsvg
1179with_tiff
cristyb1860752011-03-14 00:27:46 +00001180with_webp
cristy3ed852e2009-09-05 21:47:34 +00001181with_windows_font_dir
1182with_wmf
1183with_xml
1184'
1185 ac_precious_vars='build_alias
1186host_alias
1187target_alias
1188CC
1189CFLAGS
1190LDFLAGS
1191LIBS
1192CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001193CPP
cristy3ed852e2009-09-05 21:47:34 +00001194CXX
1195CXXFLAGS
1196CCC
cristy73bd4a52010-10-05 11:24:23 +00001197PKG_CONFIG
1198CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001199XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001200AUTOTRACE_CFLAGS
1201AUTOTRACE_LIBS
1202FONTCONFIG_CFLAGS
1203FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001204FREETYPE_CFLAGS
1205FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001206GVC_CFLAGS
1207GVC_LIBS
1208LQR_CFLAGS
1209LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001210LZMA_CFLAGS
1211LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001212OPENEXR_CFLAGS
1213OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001214PANGO_CFLAGS
1215PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001216RSVG_CFLAGS
1217RSVG_LIBS
1218CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001219CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001220
1221
1222# Initialize some variables set by options.
1223ac_init_help=
1224ac_init_version=false
1225ac_unrecognized_opts=
1226ac_unrecognized_sep=
1227# The variables have the same names as the options, with
1228# dashes changed to underlines.
1229cache_file=/dev/null
1230exec_prefix=NONE
1231no_create=
1232no_recursion=
1233prefix=NONE
1234program_prefix=NONE
1235program_suffix=NONE
1236program_transform_name=s,x,x,
1237silent=
1238site=
1239srcdir=
1240verbose=
1241x_includes=NONE
1242x_libraries=NONE
1243
1244# Installation directory options.
1245# These are left unexpanded so users can "make install exec_prefix=/foo"
1246# and all the variables that are supposed to be based on exec_prefix
1247# by default will actually change.
1248# Use braces instead of parens because sh, perl, etc. also accept them.
1249# (The list follows the same order as the GNU Coding Standards.)
1250bindir='${exec_prefix}/bin'
1251sbindir='${exec_prefix}/sbin'
1252libexecdir='${exec_prefix}/libexec'
1253datarootdir='${prefix}/share'
1254datadir='${datarootdir}'
1255sysconfdir='${prefix}/etc'
1256sharedstatedir='${prefix}/com'
1257localstatedir='${prefix}/var'
1258includedir='${prefix}/include'
1259oldincludedir='/usr/include'
1260docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1261infodir='${datarootdir}/info'
1262htmldir='${docdir}'
1263dvidir='${docdir}'
1264pdfdir='${docdir}'
1265psdir='${docdir}'
1266libdir='${exec_prefix}/lib'
1267localedir='${datarootdir}/locale'
1268mandir='${datarootdir}/man'
1269
1270ac_prev=
1271ac_dashdash=
1272for ac_option
1273do
1274 # If the previous option needs an argument, assign it.
1275 if test -n "$ac_prev"; then
1276 eval $ac_prev=\$ac_option
1277 ac_prev=
1278 continue
1279 fi
1280
1281 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001282 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1283 *=) ac_optarg= ;;
1284 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001285 esac
1286
1287 # Accept the important Cygnus configure options, so we can diagnose typos.
1288
1289 case $ac_dashdash$ac_option in
1290 --)
1291 ac_dashdash=yes ;;
1292
1293 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1294 ac_prev=bindir ;;
1295 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1296 bindir=$ac_optarg ;;
1297
1298 -build | --build | --buil | --bui | --bu)
1299 ac_prev=build_alias ;;
1300 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1301 build_alias=$ac_optarg ;;
1302
1303 -cache-file | --cache-file | --cache-fil | --cache-fi \
1304 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1305 ac_prev=cache_file ;;
1306 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1307 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1308 cache_file=$ac_optarg ;;
1309
1310 --config-cache | -C)
1311 cache_file=config.cache ;;
1312
1313 -datadir | --datadir | --datadi | --datad)
1314 ac_prev=datadir ;;
1315 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1316 datadir=$ac_optarg ;;
1317
1318 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1319 | --dataroo | --dataro | --datar)
1320 ac_prev=datarootdir ;;
1321 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1322 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1323 datarootdir=$ac_optarg ;;
1324
1325 -disable-* | --disable-*)
1326 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001329 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1333 *"
1334"enable_$ac_useropt"
1335"*) ;;
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1338 esac
1339 eval enable_$ac_useropt=no ;;
1340
1341 -docdir | --docdir | --docdi | --doc | --do)
1342 ac_prev=docdir ;;
1343 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1344 docdir=$ac_optarg ;;
1345
1346 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1347 ac_prev=dvidir ;;
1348 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1349 dvidir=$ac_optarg ;;
1350
1351 -enable-* | --enable-*)
1352 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1353 # Reject names that are not valid shell variable names.
1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001355 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1359 *"
1360"enable_$ac_useropt"
1361"*) ;;
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1364 esac
1365 eval enable_$ac_useropt=\$ac_optarg ;;
1366
1367 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1368 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1369 | --exec | --exe | --ex)
1370 ac_prev=exec_prefix ;;
1371 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1372 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1373 | --exec=* | --exe=* | --ex=*)
1374 exec_prefix=$ac_optarg ;;
1375
1376 -gas | --gas | --ga | --g)
1377 # Obsolete; use --with-gas.
1378 with_gas=yes ;;
1379
1380 -help | --help | --hel | --he | -h)
1381 ac_init_help=long ;;
1382 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1383 ac_init_help=recursive ;;
1384 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1385 ac_init_help=short ;;
1386
1387 -host | --host | --hos | --ho)
1388 ac_prev=host_alias ;;
1389 -host=* | --host=* | --hos=* | --ho=*)
1390 host_alias=$ac_optarg ;;
1391
1392 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1393 ac_prev=htmldir ;;
1394 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1395 | --ht=*)
1396 htmldir=$ac_optarg ;;
1397
1398 -includedir | --includedir | --includedi | --included | --include \
1399 | --includ | --inclu | --incl | --inc)
1400 ac_prev=includedir ;;
1401 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1402 | --includ=* | --inclu=* | --incl=* | --inc=*)
1403 includedir=$ac_optarg ;;
1404
1405 -infodir | --infodir | --infodi | --infod | --info | --inf)
1406 ac_prev=infodir ;;
1407 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1408 infodir=$ac_optarg ;;
1409
1410 -libdir | --libdir | --libdi | --libd)
1411 ac_prev=libdir ;;
1412 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1413 libdir=$ac_optarg ;;
1414
1415 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1416 | --libexe | --libex | --libe)
1417 ac_prev=libexecdir ;;
1418 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1419 | --libexe=* | --libex=* | --libe=*)
1420 libexecdir=$ac_optarg ;;
1421
1422 -localedir | --localedir | --localedi | --localed | --locale)
1423 ac_prev=localedir ;;
1424 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1425 localedir=$ac_optarg ;;
1426
1427 -localstatedir | --localstatedir | --localstatedi | --localstated \
1428 | --localstate | --localstat | --localsta | --localst | --locals)
1429 ac_prev=localstatedir ;;
1430 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1431 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1432 localstatedir=$ac_optarg ;;
1433
1434 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1435 ac_prev=mandir ;;
1436 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1437 mandir=$ac_optarg ;;
1438
1439 -nfp | --nfp | --nf)
1440 # Obsolete; use --without-fp.
1441 with_fp=no ;;
1442
1443 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1444 | --no-cr | --no-c | -n)
1445 no_create=yes ;;
1446
1447 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1448 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1449 no_recursion=yes ;;
1450
1451 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1452 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1453 | --oldin | --oldi | --old | --ol | --o)
1454 ac_prev=oldincludedir ;;
1455 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1456 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1457 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1458 oldincludedir=$ac_optarg ;;
1459
1460 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1461 ac_prev=prefix ;;
1462 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1463 prefix=$ac_optarg ;;
1464
1465 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1466 | --program-pre | --program-pr | --program-p)
1467 ac_prev=program_prefix ;;
1468 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1469 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1470 program_prefix=$ac_optarg ;;
1471
1472 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1473 | --program-suf | --program-su | --program-s)
1474 ac_prev=program_suffix ;;
1475 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1476 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1477 program_suffix=$ac_optarg ;;
1478
1479 -program-transform-name | --program-transform-name \
1480 | --program-transform-nam | --program-transform-na \
1481 | --program-transform-n | --program-transform- \
1482 | --program-transform | --program-transfor \
1483 | --program-transfo | --program-transf \
1484 | --program-trans | --program-tran \
1485 | --progr-tra | --program-tr | --program-t)
1486 ac_prev=program_transform_name ;;
1487 -program-transform-name=* | --program-transform-name=* \
1488 | --program-transform-nam=* | --program-transform-na=* \
1489 | --program-transform-n=* | --program-transform-=* \
1490 | --program-transform=* | --program-transfor=* \
1491 | --program-transfo=* | --program-transf=* \
1492 | --program-trans=* | --program-tran=* \
1493 | --progr-tra=* | --program-tr=* | --program-t=*)
1494 program_transform_name=$ac_optarg ;;
1495
1496 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1497 ac_prev=pdfdir ;;
1498 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1499 pdfdir=$ac_optarg ;;
1500
1501 -psdir | --psdir | --psdi | --psd | --ps)
1502 ac_prev=psdir ;;
1503 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1504 psdir=$ac_optarg ;;
1505
1506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1507 | -silent | --silent | --silen | --sile | --sil)
1508 silent=yes ;;
1509
1510 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1511 ac_prev=sbindir ;;
1512 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1513 | --sbi=* | --sb=*)
1514 sbindir=$ac_optarg ;;
1515
1516 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1517 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1518 | --sharedst | --shareds | --shared | --share | --shar \
1519 | --sha | --sh)
1520 ac_prev=sharedstatedir ;;
1521 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1522 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1523 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1524 | --sha=* | --sh=*)
1525 sharedstatedir=$ac_optarg ;;
1526
1527 -site | --site | --sit)
1528 ac_prev=site ;;
1529 -site=* | --site=* | --sit=*)
1530 site=$ac_optarg ;;
1531
1532 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1533 ac_prev=srcdir ;;
1534 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1535 srcdir=$ac_optarg ;;
1536
1537 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1538 | --syscon | --sysco | --sysc | --sys | --sy)
1539 ac_prev=sysconfdir ;;
1540 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1541 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1542 sysconfdir=$ac_optarg ;;
1543
1544 -target | --target | --targe | --targ | --tar | --ta | --t)
1545 ac_prev=target_alias ;;
1546 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1547 target_alias=$ac_optarg ;;
1548
1549 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1550 verbose=yes ;;
1551
1552 -version | --version | --versio | --versi | --vers | -V)
1553 ac_init_version=: ;;
1554
1555 -with-* | --with-*)
1556 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1557 # Reject names that are not valid shell variable names.
1558 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001559 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001560 ac_useropt_orig=$ac_useropt
1561 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1562 case $ac_user_opts in
1563 *"
1564"with_$ac_useropt"
1565"*) ;;
1566 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1567 ac_unrecognized_sep=', ';;
1568 esac
1569 eval with_$ac_useropt=\$ac_optarg ;;
1570
1571 -without-* | --without-*)
1572 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1573 # Reject names that are not valid shell variable names.
1574 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001575 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001576 ac_useropt_orig=$ac_useropt
1577 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1578 case $ac_user_opts in
1579 *"
1580"with_$ac_useropt"
1581"*) ;;
1582 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1583 ac_unrecognized_sep=', ';;
1584 esac
1585 eval with_$ac_useropt=no ;;
1586
1587 --x)
1588 # Obsolete; use --with-x.
1589 with_x=yes ;;
1590
1591 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1592 | --x-incl | --x-inc | --x-in | --x-i)
1593 ac_prev=x_includes ;;
1594 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1595 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1596 x_includes=$ac_optarg ;;
1597
1598 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1599 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1600 ac_prev=x_libraries ;;
1601 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1602 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1603 x_libraries=$ac_optarg ;;
1604
cristy98dddb52010-11-04 00:30:15 +00001605 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1606Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001607 ;;
1608
1609 *=*)
1610 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1611 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001612 case $ac_envvar in #(
1613 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001614 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001615 esac
cristy3ed852e2009-09-05 21:47:34 +00001616 eval $ac_envvar=\$ac_optarg
1617 export $ac_envvar ;;
1618
1619 *)
1620 # FIXME: should be removed in autoconf 3.0.
1621 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1622 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1623 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001624 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001625 ;;
1626
1627 esac
1628done
1629
1630if test -n "$ac_prev"; then
1631 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001632 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001633fi
1634
1635if test -n "$ac_unrecognized_opts"; then
1636 case $enable_option_checking in
1637 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001638 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001639 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1640 esac
1641fi
1642
1643# Check all directory arguments for consistency.
1644for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1645 datadir sysconfdir sharedstatedir localstatedir includedir \
1646 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1647 libdir localedir mandir
1648do
1649 eval ac_val=\$$ac_var
1650 # Remove trailing slashes.
1651 case $ac_val in
1652 */ )
1653 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1654 eval $ac_var=\$ac_val;;
1655 esac
1656 # Be sure to have absolute directory names.
1657 case $ac_val in
1658 [\\/$]* | ?:[\\/]* ) continue;;
1659 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1660 esac
cristy98dddb52010-11-04 00:30:15 +00001661 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001662done
1663
1664# There might be people who depend on the old broken behavior: `$host'
1665# used to hold the argument of --host etc.
1666# FIXME: To remove some day.
1667build=$build_alias
1668host=$host_alias
1669target=$target_alias
1670
1671# FIXME: To remove some day.
1672if test "x$host_alias" != x; then
1673 if test "x$build_alias" = x; then
1674 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001675 elif test "x$build_alias" != "x$host_alias"; then
1676 cross_compiling=yes
1677 fi
1678fi
1679
1680ac_tool_prefix=
1681test -n "$host_alias" && ac_tool_prefix=$host_alias-
1682
1683test "$silent" = yes && exec 6>/dev/null
1684
1685
1686ac_pwd=`pwd` && test -n "$ac_pwd" &&
1687ac_ls_di=`ls -di .` &&
1688ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001689 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001690test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001691 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001692
1693
1694# Find the source files, if location was not specified.
1695if test -z "$srcdir"; then
1696 ac_srcdir_defaulted=yes
1697 # Try the directory containing this script, then the parent directory.
1698 ac_confdir=`$as_dirname -- "$as_myself" ||
1699$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1700 X"$as_myself" : 'X\(//\)[^/]' \| \
1701 X"$as_myself" : 'X\(//\)$' \| \
1702 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1703$as_echo X"$as_myself" |
1704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1705 s//\1/
1706 q
1707 }
1708 /^X\(\/\/\)[^/].*/{
1709 s//\1/
1710 q
1711 }
1712 /^X\(\/\/\)$/{
1713 s//\1/
1714 q
1715 }
1716 /^X\(\/\).*/{
1717 s//\1/
1718 q
1719 }
1720 s/.*/./; q'`
1721 srcdir=$ac_confdir
1722 if test ! -r "$srcdir/$ac_unique_file"; then
1723 srcdir=..
1724 fi
1725else
1726 ac_srcdir_defaulted=no
1727fi
1728if test ! -r "$srcdir/$ac_unique_file"; then
1729 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001730 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001731fi
1732ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1733ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001734 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001735 pwd)`
1736# When building in place, set srcdir=.
1737if test "$ac_abs_confdir" = "$ac_pwd"; then
1738 srcdir=.
1739fi
1740# Remove unnecessary trailing slashes from srcdir.
1741# Double slashes in file names in object file debugging info
1742# mess up M-x gdb in Emacs.
1743case $srcdir in
1744*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1745esac
1746for ac_var in $ac_precious_vars; do
1747 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1748 eval ac_env_${ac_var}_value=\$${ac_var}
1749 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1750 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1751done
1752
1753#
1754# Report the --help message.
1755#
1756if test "$ac_init_help" = "long"; then
1757 # Omit some internal or obsolete options to make the list less imposing.
1758 # This message is too long to be a string in the A/UX 3.1 sh.
1759 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001760\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001761
1762Usage: $0 [OPTION]... [VAR=VALUE]...
1763
1764To assign environment variables (e.g., CC, CFLAGS...), specify them as
1765VAR=VALUE. See below for descriptions of some of the useful variables.
1766
1767Defaults for the options are specified in brackets.
1768
1769Configuration:
1770 -h, --help display this help and exit
1771 --help=short display options specific to this package
1772 --help=recursive display the short help of all the included packages
1773 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001774 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001775 --cache-file=FILE cache test results in FILE [disabled]
1776 -C, --config-cache alias for \`--cache-file=config.cache'
1777 -n, --no-create do not create output files
1778 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1779
1780Installation directories:
1781 --prefix=PREFIX install architecture-independent files in PREFIX
1782 [$ac_default_prefix]
1783 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1784 [PREFIX]
1785
1786By default, \`make install' will install all the files in
1787\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1788an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1789for instance \`--prefix=\$HOME'.
1790
1791For better control, use the options below.
1792
1793Fine tuning of the installation directories:
1794 --bindir=DIR user executables [EPREFIX/bin]
1795 --sbindir=DIR system admin executables [EPREFIX/sbin]
1796 --libexecdir=DIR program executables [EPREFIX/libexec]
1797 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1798 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1799 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1800 --libdir=DIR object code libraries [EPREFIX/lib]
1801 --includedir=DIR C header files [PREFIX/include]
1802 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1803 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1804 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1805 --infodir=DIR info documentation [DATAROOTDIR/info]
1806 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1807 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001808 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001809 --htmldir=DIR html documentation [DOCDIR]
1810 --dvidir=DIR dvi documentation [DOCDIR]
1811 --pdfdir=DIR pdf documentation [DOCDIR]
1812 --psdir=DIR ps documentation [DOCDIR]
1813_ACEOF
1814
1815 cat <<\_ACEOF
1816
cristy73bd4a52010-10-05 11:24:23 +00001817Program names:
1818 --program-prefix=PREFIX prepend PREFIX to installed program names
1819 --program-suffix=SUFFIX append SUFFIX to installed program names
1820 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1821
cristy3ed852e2009-09-05 21:47:34 +00001822X features:
1823 --x-includes=DIR X include files are in DIR
1824 --x-libraries=DIR X library files are in DIR
1825
1826System types:
1827 --build=BUILD configure for building on BUILD [guessed]
1828 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1829 --target=TARGET configure for building compilers for TARGET [HOST]
1830_ACEOF
1831fi
1832
1833if test -n "$ac_init_help"; then
1834 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001835 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001836 esac
1837 cat <<\_ACEOF
1838
1839Optional Features:
1840 --disable-option-checking ignore unrecognized --enable/--with options
1841 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1842 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001843 --enable-silent-rules less verbose build output (undo: "make V=1")
1844 --disable-silent-rules verbose build output (undo: "make V=0")
1845 --enable-dependency-tracking
1846 do not reject slow dependency extractors
1847 --disable-dependency-tracking
1848 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001849 --enable-ld-version-script
1850 enable linker version script (default is enabled
1851 when possible)
cristya3824692012-03-30 17:22:07 +00001852 --enable-bounds-checking
1853 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001854 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001855 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001856 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001857 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001858 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001859 --enable-shared[=PKGS] build shared libraries [default=yes]
1860 --enable-static[=PKGS] build static libraries [default=yes]
1861 --enable-fast-install[=PKGS]
1862 optimize for fast installation [default=yes]
1863 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001864 --enable-delegate-build look for delegate libraries in build directory
1865 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001866 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001867 --disable-installed Formally install ImageMagick under PREFIX
1868 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001869 --enable-zero-configuration
1870 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001871 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001872 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001873 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001874 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001875 --enable-maintainer-mode
1876 enable make rules and dependencies not useful (and
1877 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001878 --enable-ccmalloc enable 'ccmalloc' memory debug support
1879 --enable-efence enable 'efence' memory debug support
1880 --enable-prof enable 'prof' profiling support
1881 --enable-gprof enable 'gprof' profiling support
1882 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001883 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001884 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001885
1886Optional Packages:
1887 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1888 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001889 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001890 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001891 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1892 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001893 --includearch-dir=DIR ARCH specific include directory
1894 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001895 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001896 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001897 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001898 both]
cristyda16f162011-02-19 23:52:17 +00001899 --with-sysroot=DIR Search for dependent libraries within DIR
1900 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001901 --with-modules enable building dynamically loadable modules
1902 --with-method-prefix=PREFIX
1903 prefix MagickCore API methods
1904 --with-quantum-depth=DEPTH
1905 number of bits in a pixel quantum (default 16)
1906 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1907 memory)
1908 --with-frozenpaths freeze delegate paths
1909 --without-magick-plus-plus
1910 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001911 --with-package-release-name=NAME
1912 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001913 --with-perl enable build/install of PerlMagick
1914 --with-perl-options=OPTIONS
1915 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001916 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001917 --with-umem enable umem memory allocation library support
1918 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1919 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001920 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001921 --without-zlib disable ZLIB support
1922 --with-autotrace enable autotrace support
1923 --without-dps disable Display Postscript support
1924 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001925 --with-dejavu-font-dir=DIR
1926 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001927 --without-fftw disable FFTW support
1928 --without-fpx disable FlashPIX support
1929 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001930 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001931 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001932 --with-fontpath=DIR prepend to default font search path
1933 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001934 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001935 --without-jbig disable JBIG support
1936 --without-jpeg disable JPEG support
1937 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001938 --without-lcms disable lcms (v1.1X) support
1939 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001940 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001941 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001942 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001943 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001944 --without-png disable PNG support
cristy1164d5f2012-08-15 00:58:25 +00001945 --without-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001946 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001947 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001948 --with-windows-font-dir=DIR
1949 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001950 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001951 --without-xml disable XML support
1952
1953Some influential environment variables:
1954 CC C compiler command
1955 CFLAGS C compiler flags
1956 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1957 nonstandard directory <lib dir>
1958 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001959 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001960 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001961 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001962 CXX C++ compiler command
1963 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001964 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001965 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001966 XMKMF Path to xmkmf, Makefile generator for X Window System
1967 AUTOTRACE_CFLAGS
1968 C compiler flags for AUTOTRACE, overriding pkg-config
1969 AUTOTRACE_LIBS
1970 linker flags for AUTOTRACE, overriding pkg-config
1971 FONTCONFIG_CFLAGS
1972 C compiler flags for FONTCONFIG, overriding pkg-config
1973 FONTCONFIG_LIBS
1974 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001975 FREETYPE_CFLAGS
1976 C compiler flags for FREETYPE, overriding pkg-config
1977 FREETYPE_LIBS
1978 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001979 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1980 GVC_LIBS linker flags for GVC, overriding pkg-config
1981 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1982 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001983 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1984 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001985 OPENEXR_CFLAGS
1986 C compiler flags for OPENEXR, overriding pkg-config
1987 OPENEXR_LIBS
1988 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001989 PANGO_CFLAGS
1990 C compiler flags for PANGO, overriding pkg-config
1991 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001992 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1993 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1994 CAIRO_SVG_CFLAGS
1995 C compiler flags for CAIRO_SVG, overriding pkg-config
1996 CAIRO_SVG_LIBS
1997 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001998
1999Use these variables to override the choices made by `configure' or to help
2000it to find libraries and programs with nonstandard names/locations.
2001
2002Report bugs to <http://www.imagemagick.org>.
2003_ACEOF
2004ac_status=$?
2005fi
2006
2007if test "$ac_init_help" = "recursive"; then
2008 # If there are subdirs, report their specific --help.
2009 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2010 test -d "$ac_dir" ||
2011 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2012 continue
2013 ac_builddir=.
2014
2015case "$ac_dir" in
2016.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2017*)
2018 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2019 # A ".." for each directory in $ac_dir_suffix.
2020 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2021 case $ac_top_builddir_sub in
2022 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2023 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2024 esac ;;
2025esac
2026ac_abs_top_builddir=$ac_pwd
2027ac_abs_builddir=$ac_pwd$ac_dir_suffix
2028# for backward compatibility:
2029ac_top_builddir=$ac_top_build_prefix
2030
2031case $srcdir in
2032 .) # We are building in place.
2033 ac_srcdir=.
2034 ac_top_srcdir=$ac_top_builddir_sub
2035 ac_abs_top_srcdir=$ac_pwd ;;
2036 [\\/]* | ?:[\\/]* ) # Absolute name.
2037 ac_srcdir=$srcdir$ac_dir_suffix;
2038 ac_top_srcdir=$srcdir
2039 ac_abs_top_srcdir=$srcdir ;;
2040 *) # Relative name.
2041 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2042 ac_top_srcdir=$ac_top_build_prefix$srcdir
2043 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2044esac
2045ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2046
2047 cd "$ac_dir" || { ac_status=$?; continue; }
2048 # Check for guested configure.
2049 if test -f "$ac_srcdir/configure.gnu"; then
2050 echo &&
2051 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2052 elif test -f "$ac_srcdir/configure"; then
2053 echo &&
2054 $SHELL "$ac_srcdir/configure" --help=recursive
2055 else
2056 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2057 fi || ac_status=$?
2058 cd "$ac_pwd" || { ac_status=$?; break; }
2059 done
2060fi
2061
2062test -n "$ac_init_help" && exit $ac_status
2063if $ac_init_version; then
2064 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002065ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002066generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002067
cristy14fefe52012-05-21 00:59:18 +00002068Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002069This configure script is free software; the Free Software Foundation
2070gives unlimited permission to copy, distribute and modify it.
2071_ACEOF
2072 exit
2073fi
cristy8b350f62009-11-15 23:12:43 +00002074
2075## ------------------------ ##
2076## Autoconf initialization. ##
2077## ------------------------ ##
2078
2079# ac_fn_c_try_compile LINENO
2080# --------------------------
2081# Try to compile conftest.$ac_ext, and return whether this succeeded.
2082ac_fn_c_try_compile ()
2083{
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 rm -f conftest.$ac_objext
2086 if { { ac_try="$ac_compile"
2087case "(($ac_try" in
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2090esac
2091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092$as_echo "$ac_try_echo"; } >&5
2093 (eval "$ac_compile") 2>conftest.err
2094 ac_status=$?
2095 if test -s conftest.err; then
2096 grep -v '^ *+' conftest.err >conftest.er1
2097 cat conftest.er1 >&5
2098 mv -f conftest.er1 conftest.err
2099 fi
2100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101 test $ac_status = 0; } && {
2102 test -z "$ac_c_werror_flag" ||
2103 test ! -s conftest.err
2104 } && test -s conftest.$ac_objext; then :
2105 ac_retval=0
2106else
2107 $as_echo "$as_me: failed program was:" >&5
2108sed 's/^/| /' conftest.$ac_ext >&5
2109
2110 ac_retval=1
2111fi
cristyda16f162011-02-19 23:52:17 +00002112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002113 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002114
2115} # ac_fn_c_try_compile
2116
cristy95646052009-11-28 23:05:30 +00002117# ac_fn_c_try_cpp LINENO
2118# ----------------------
2119# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2120ac_fn_c_try_cpp ()
2121{
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 if { { ac_try="$ac_cpp conftest.$ac_ext"
2124case "(($ac_try" in
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2127esac
2128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129$as_echo "$ac_try_echo"; } >&5
2130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2131 ac_status=$?
2132 if test -s conftest.err; then
2133 grep -v '^ *+' conftest.err >conftest.er1
2134 cat conftest.er1 >&5
2135 mv -f conftest.er1 conftest.err
2136 fi
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002138 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2140 test ! -s conftest.err
2141 }; then :
2142 ac_retval=0
2143else
2144 $as_echo "$as_me: failed program was:" >&5
2145sed 's/^/| /' conftest.$ac_ext >&5
2146
2147 ac_retval=1
2148fi
cristyda16f162011-02-19 23:52:17 +00002149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002150 as_fn_set_status $ac_retval
2151
2152} # ac_fn_c_try_cpp
2153
cristy8b350f62009-11-15 23:12:43 +00002154# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2155# -------------------------------------------------------
2156# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2157# the include files in INCLUDES and setting the cache variable VAR
2158# accordingly.
2159ac_fn_c_check_header_mongrel ()
2160{
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002162 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002165if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002166 $as_echo_n "(cached) " >&6
2167fi
2168eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170$as_echo "$ac_res" >&6; }
2171else
2172 # Is the header compilable?
2173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2174$as_echo_n "checking $2 usability... " >&6; }
2175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176/* end confdefs.h. */
2177$4
2178#include <$2>
2179_ACEOF
2180if ac_fn_c_try_compile "$LINENO"; then :
2181 ac_header_compiler=yes
2182else
2183 ac_header_compiler=no
2184fi
2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2187$as_echo "$ac_header_compiler" >&6; }
2188
2189# Is the header present?
2190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2191$as_echo_n "checking $2 presence... " >&6; }
2192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193/* end confdefs.h. */
2194#include <$2>
2195_ACEOF
2196if ac_fn_c_try_cpp "$LINENO"; then :
2197 ac_header_preproc=yes
2198else
2199 ac_header_preproc=no
2200fi
cristyda16f162011-02-19 23:52:17 +00002201rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2203$as_echo "$ac_header_preproc" >&6; }
2204
2205# So? What about this header?
2206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2207 yes:no: )
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2209$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2211$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2212 ;;
2213 no:yes:* )
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2215$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2217$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2219$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2221$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2223$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002224( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002225## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002226## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002227 ) | sed "s/^/$as_me: WARNING: /" >&2
2228 ;;
2229esac
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002232if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002233 $as_echo_n "(cached) " >&6
2234else
2235 eval "$3=\$ac_header_compiler"
2236fi
2237eval ac_res=\$$3
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2239$as_echo "$ac_res" >&6; }
2240fi
cristyda16f162011-02-19 23:52:17 +00002241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002242
2243} # ac_fn_c_check_header_mongrel
2244
2245# ac_fn_c_try_run LINENO
2246# ----------------------
2247# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2248# that executables *can* be run.
2249ac_fn_c_try_run ()
2250{
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 if { { ac_try="$ac_link"
2253case "(($ac_try" in
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2256esac
2257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2258$as_echo "$ac_try_echo"; } >&5
2259 (eval "$ac_link") 2>&5
2260 ac_status=$?
2261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2262 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2263 { { case "(($ac_try" in
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2266esac
2267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2268$as_echo "$ac_try_echo"; } >&5
2269 (eval "$ac_try") 2>&5
2270 ac_status=$?
2271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2272 test $ac_status = 0; }; }; then :
2273 ac_retval=0
2274else
2275 $as_echo "$as_me: program exited with status $ac_status" >&5
2276 $as_echo "$as_me: failed program was:" >&5
2277sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 ac_retval=$ac_status
2280fi
2281 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002283 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002284
2285} # ac_fn_c_try_run
2286
2287# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2288# -------------------------------------------------------
2289# Tests whether HEADER exists and can be compiled using the include files in
2290# INCLUDES, setting the cache variable VAR accordingly.
2291ac_fn_c_check_header_compile ()
2292{
2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2295$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002296if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002297 $as_echo_n "(cached) " >&6
2298else
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300/* end confdefs.h. */
2301$4
2302#include <$2>
2303_ACEOF
2304if ac_fn_c_try_compile "$LINENO"; then :
2305 eval "$3=yes"
2306else
2307 eval "$3=no"
2308fi
2309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310fi
2311eval ac_res=\$$3
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2313$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002315
2316} # ac_fn_c_check_header_compile
2317
cristya0b81c32010-01-22 02:54:33 +00002318# ac_fn_cxx_try_compile LINENO
2319# ----------------------------
2320# Try to compile conftest.$ac_ext, and return whether this succeeded.
2321ac_fn_cxx_try_compile ()
2322{
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 rm -f conftest.$ac_objext
2325 if { { ac_try="$ac_compile"
2326case "(($ac_try" in
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2329esac
2330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2331$as_echo "$ac_try_echo"; } >&5
2332 (eval "$ac_compile") 2>conftest.err
2333 ac_status=$?
2334 if test -s conftest.err; then
2335 grep -v '^ *+' conftest.err >conftest.er1
2336 cat conftest.er1 >&5
2337 mv -f conftest.er1 conftest.err
2338 fi
2339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2340 test $ac_status = 0; } && {
2341 test -z "$ac_cxx_werror_flag" ||
2342 test ! -s conftest.err
2343 } && test -s conftest.$ac_objext; then :
2344 ac_retval=0
2345else
2346 $as_echo "$as_me: failed program was:" >&5
2347sed 's/^/| /' conftest.$ac_ext >&5
2348
2349 ac_retval=1
2350fi
cristyda16f162011-02-19 23:52:17 +00002351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002352 as_fn_set_status $ac_retval
2353
2354} # ac_fn_cxx_try_compile
2355
cristy8b350f62009-11-15 23:12:43 +00002356# ac_fn_c_try_link LINENO
2357# -----------------------
2358# Try to link conftest.$ac_ext, and return whether this succeeded.
2359ac_fn_c_try_link ()
2360{
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 rm -f conftest.$ac_objext conftest$ac_exeext
2363 if { { ac_try="$ac_link"
2364case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367esac
2368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369$as_echo "$ac_try_echo"; } >&5
2370 (eval "$ac_link") 2>conftest.err
2371 ac_status=$?
2372 if test -s conftest.err; then
2373 grep -v '^ *+' conftest.err >conftest.er1
2374 cat conftest.er1 >&5
2375 mv -f conftest.er1 conftest.err
2376 fi
2377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2378 test $ac_status = 0; } && {
2379 test -z "$ac_c_werror_flag" ||
2380 test ! -s conftest.err
2381 } && test -s conftest$ac_exeext && {
2382 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002383 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002384 }; then :
2385 ac_retval=0
2386else
2387 $as_echo "$as_me: failed program was:" >&5
2388sed 's/^/| /' conftest.$ac_ext >&5
2389
2390 ac_retval=1
2391fi
2392 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2393 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2394 # interfere with the next link command; also delete a directory that is
2395 # left behind by Apple's compiler. We do this before executing the actions.
2396 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002397 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002398 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002399
2400} # ac_fn_c_try_link
2401
cristy73bd4a52010-10-05 11:24:23 +00002402# ac_fn_c_check_func LINENO FUNC VAR
2403# ----------------------------------
2404# Tests whether FUNC exists, setting the cache variable VAR accordingly
2405ac_fn_c_check_func ()
2406{
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2409$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002410if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002411 $as_echo_n "(cached) " >&6
2412else
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414/* end confdefs.h. */
2415/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2417#define $2 innocuous_$2
2418
2419/* System header to define __stub macros and hopefully few prototypes,
2420 which can conflict with char $2 (); below.
2421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2422 <limits.h> exists even on freestanding compilers. */
2423
2424#ifdef __STDC__
2425# include <limits.h>
2426#else
2427# include <assert.h>
2428#endif
2429
2430#undef $2
2431
2432/* Override any GCC internal prototype to avoid an error.
2433 Use char because int might match the return type of a GCC
2434 builtin and then its argument prototype would still apply. */
2435#ifdef __cplusplus
2436extern "C"
2437#endif
2438char $2 ();
2439/* The GNU C library defines this for functions which it implements
2440 to always fail with ENOSYS. Some functions are actually named
2441 something starting with __ and the normal name is an alias. */
2442#if defined __stub_$2 || defined __stub___$2
2443choke me
2444#endif
2445
2446int
2447main ()
2448{
2449return $2 ();
2450 ;
2451 return 0;
2452}
2453_ACEOF
2454if ac_fn_c_try_link "$LINENO"; then :
2455 eval "$3=yes"
2456else
2457 eval "$3=no"
2458fi
2459rm -f core conftest.err conftest.$ac_objext \
2460 conftest$ac_exeext conftest.$ac_ext
2461fi
2462eval ac_res=\$$3
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002465 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002466
2467} # ac_fn_c_check_func
2468
2469# ac_fn_cxx_try_cpp LINENO
2470# ------------------------
2471# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2472ac_fn_cxx_try_cpp ()
2473{
2474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475 if { { ac_try="$ac_cpp conftest.$ac_ext"
2476case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479esac
2480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2481$as_echo "$ac_try_echo"; } >&5
2482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2483 ac_status=$?
2484 if test -s conftest.err; then
2485 grep -v '^ *+' conftest.err >conftest.er1
2486 cat conftest.er1 >&5
2487 mv -f conftest.er1 conftest.err
2488 fi
2489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002490 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002491 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2492 test ! -s conftest.err
2493 }; then :
2494 ac_retval=0
2495else
2496 $as_echo "$as_me: failed program was:" >&5
2497sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 ac_retval=1
2500fi
cristyda16f162011-02-19 23:52:17 +00002501 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002502 as_fn_set_status $ac_retval
2503
2504} # ac_fn_cxx_try_cpp
2505
2506# ac_fn_cxx_try_link LINENO
2507# -------------------------
2508# Try to link conftest.$ac_ext, and return whether this succeeded.
2509ac_fn_cxx_try_link ()
2510{
2511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512 rm -f conftest.$ac_objext conftest$ac_exeext
2513 if { { ac_try="$ac_link"
2514case "(($ac_try" in
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2517esac
2518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2519$as_echo "$ac_try_echo"; } >&5
2520 (eval "$ac_link") 2>conftest.err
2521 ac_status=$?
2522 if test -s conftest.err; then
2523 grep -v '^ *+' conftest.err >conftest.er1
2524 cat conftest.er1 >&5
2525 mv -f conftest.er1 conftest.err
2526 fi
2527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2528 test $ac_status = 0; } && {
2529 test -z "$ac_cxx_werror_flag" ||
2530 test ! -s conftest.err
2531 } && test -s conftest$ac_exeext && {
2532 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002533 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002534 }; then :
2535 ac_retval=0
2536else
2537 $as_echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_retval=1
2541fi
2542 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2543 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2544 # interfere with the next link command; also delete a directory that is
2545 # left behind by Apple's compiler. We do this before executing the actions.
2546 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002548 as_fn_set_status $ac_retval
2549
2550} # ac_fn_cxx_try_link
2551
cristy8b350f62009-11-15 23:12:43 +00002552# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2553# -------------------------------------------
2554# Tests whether TYPE exists after having included INCLUDES, setting cache
2555# variable VAR accordingly.
2556ac_fn_c_check_type ()
2557{
2558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2560$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002561if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002562 $as_echo_n "(cached) " >&6
2563else
2564 eval "$3=no"
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566/* end confdefs.h. */
2567$4
2568int
2569main ()
2570{
2571if (sizeof ($2))
2572 return 0;
2573 ;
2574 return 0;
2575}
2576_ACEOF
2577if ac_fn_c_try_compile "$LINENO"; then :
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579/* end confdefs.h. */
2580$4
2581int
2582main ()
2583{
2584if (sizeof (($2)))
2585 return 0;
2586 ;
2587 return 0;
2588}
2589_ACEOF
2590if ac_fn_c_try_compile "$LINENO"; then :
2591
2592else
2593 eval "$3=yes"
2594fi
2595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596fi
2597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598fi
2599eval ac_res=\$$3
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2601$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002603
2604} # ac_fn_c_check_type
2605
cristy92703d82010-04-26 00:18:18 +00002606# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2607# ----------------------------------------------------
2608# Tries to find if the field MEMBER exists in type AGGR, after including
2609# INCLUDES, setting cache variable VAR accordingly.
2610ac_fn_c_check_member ()
2611{
2612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2614$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002615if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002616 $as_echo_n "(cached) " >&6
2617else
2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619/* end confdefs.h. */
2620$5
2621int
2622main ()
2623{
2624static $2 ac_aggr;
2625if (ac_aggr.$3)
2626return 0;
2627 ;
2628 return 0;
2629}
2630_ACEOF
2631if ac_fn_c_try_compile "$LINENO"; then :
2632 eval "$4=yes"
2633else
2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635/* end confdefs.h. */
2636$5
2637int
2638main ()
2639{
2640static $2 ac_aggr;
2641if (sizeof ac_aggr.$3)
2642return 0;
2643 ;
2644 return 0;
2645}
2646_ACEOF
2647if ac_fn_c_try_compile "$LINENO"; then :
2648 eval "$4=yes"
2649else
2650 eval "$4=no"
2651fi
2652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653fi
2654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655fi
2656eval ac_res=\$$4
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2658$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002660
2661} # ac_fn_c_check_member
2662
cristy5eef09f2012-10-16 12:08:28 +00002663# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2664# ---------------------------------------------
2665# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2666# accordingly.
2667ac_fn_c_check_decl ()
2668{
2669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670 as_decl_name=`echo $2|sed 's/ *(.*//'`
2671 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2673$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2674if eval \${$3+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676else
2677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678/* end confdefs.h. */
2679$4
2680int
2681main ()
2682{
2683#ifndef $as_decl_name
2684#ifdef __cplusplus
2685 (void) $as_decl_use;
2686#else
2687 (void) $as_decl_name;
2688#endif
2689#endif
2690
2691 ;
2692 return 0;
2693}
2694_ACEOF
2695if ac_fn_c_try_compile "$LINENO"; then :
2696 eval "$3=yes"
2697else
2698 eval "$3=no"
2699fi
2700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701fi
2702eval ac_res=\$$3
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2704$as_echo "$ac_res" >&6; }
2705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2706
2707} # ac_fn_c_check_decl
2708
cristy501c8042011-05-26 17:46:28 +00002709# ac_fn_c_find_intX_t LINENO BITS VAR
2710# -----------------------------------
2711# Finds a signed integer type with width BITS, setting cache variable VAR
2712# accordingly.
2713ac_fn_c_find_intX_t ()
2714{
2715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2717$as_echo_n "checking for int$2_t... " >&6; }
2718if eval \${$3+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720else
2721 eval "$3=no"
2722 # Order is important - never check a type that is potentially smaller
2723 # than half of the expected target width.
2724 for ac_type in int$2_t 'int' 'long int' \
2725 'long long int' 'short int' 'signed char'; do
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727/* end confdefs.h. */
2728$ac_includes_default
2729 enum { N = $2 / 2 - 1 };
2730int
2731main ()
2732{
2733static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002734test_array [0] = 0;
2735return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002736
2737 ;
2738 return 0;
2739}
2740_ACEOF
2741if ac_fn_c_try_compile "$LINENO"; then :
2742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743/* end confdefs.h. */
2744$ac_includes_default
2745 enum { N = $2 / 2 - 1 };
2746int
2747main ()
2748{
2749static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2750 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002751test_array [0] = 0;
2752return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002753
2754 ;
2755 return 0;
2756}
2757_ACEOF
2758if ac_fn_c_try_compile "$LINENO"; then :
2759
2760else
2761 case $ac_type in #(
2762 int$2_t) :
2763 eval "$3=yes" ;; #(
2764 *) :
2765 eval "$3=\$ac_type" ;;
2766esac
2767fi
2768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769fi
2770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 if eval test \"x\$"$3"\" = x"no"; then :
2772
2773else
2774 break
2775fi
2776 done
2777fi
2778eval ac_res=\$$3
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2780$as_echo "$ac_res" >&6; }
2781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2782
2783} # ac_fn_c_find_intX_t
2784
2785# ac_fn_c_find_uintX_t LINENO BITS VAR
2786# ------------------------------------
2787# Finds an unsigned integer type with width BITS, setting cache variable VAR
2788# accordingly.
2789ac_fn_c_find_uintX_t ()
2790{
2791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2793$as_echo_n "checking for uint$2_t... " >&6; }
2794if eval \${$3+:} false; then :
2795 $as_echo_n "(cached) " >&6
2796else
2797 eval "$3=no"
2798 # Order is important - never check a type that is potentially smaller
2799 # than half of the expected target width.
2800 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2801 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803/* end confdefs.h. */
2804$ac_includes_default
2805int
2806main ()
2807{
2808static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002809test_array [0] = 0;
2810return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002811
2812 ;
2813 return 0;
2814}
2815_ACEOF
2816if ac_fn_c_try_compile "$LINENO"; then :
2817 case $ac_type in #(
2818 uint$2_t) :
2819 eval "$3=yes" ;; #(
2820 *) :
2821 eval "$3=\$ac_type" ;;
2822esac
2823fi
2824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2825 if eval test \"x\$"$3"\" = x"no"; then :
2826
2827else
2828 break
2829fi
2830 done
2831fi
2832eval ac_res=\$$3
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834$as_echo "$ac_res" >&6; }
2835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2836
2837} # ac_fn_c_find_uintX_t
2838
cristy8b350f62009-11-15 23:12:43 +00002839# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2840# --------------------------------------------
2841# Tries to find the compile-time value of EXPR in a program that includes
2842# INCLUDES, setting VAR accordingly. Returns whether the value could be
2843# computed
2844ac_fn_c_compute_int ()
2845{
2846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2847 if test "$cross_compiling" = yes; then
2848 # Depending upon the size, compute the lo and hi bounds.
2849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850/* end confdefs.h. */
2851$4
2852int
2853main ()
2854{
2855static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002856test_array [0] = 0;
2857return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002858
2859 ;
2860 return 0;
2861}
2862_ACEOF
2863if ac_fn_c_try_compile "$LINENO"; then :
2864 ac_lo=0 ac_mid=0
2865 while :; do
2866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867/* end confdefs.h. */
2868$4
2869int
2870main ()
2871{
2872static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002873test_array [0] = 0;
2874return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002875
2876 ;
2877 return 0;
2878}
2879_ACEOF
2880if ac_fn_c_try_compile "$LINENO"; then :
2881 ac_hi=$ac_mid; break
2882else
2883 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2884 if test $ac_lo -le $ac_mid; then
2885 ac_lo= ac_hi=
2886 break
2887 fi
2888 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2889fi
2890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2891 done
2892else
2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894/* end confdefs.h. */
2895$4
2896int
2897main ()
2898{
2899static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002900test_array [0] = 0;
2901return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002902
2903 ;
2904 return 0;
2905}
2906_ACEOF
2907if ac_fn_c_try_compile "$LINENO"; then :
2908 ac_hi=-1 ac_mid=-1
2909 while :; do
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911/* end confdefs.h. */
2912$4
2913int
2914main ()
2915{
2916static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002917test_array [0] = 0;
2918return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002919
2920 ;
2921 return 0;
2922}
2923_ACEOF
2924if ac_fn_c_try_compile "$LINENO"; then :
2925 ac_lo=$ac_mid; break
2926else
2927 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2928 if test $ac_mid -le $ac_hi; then
2929 ac_lo= ac_hi=
2930 break
2931 fi
2932 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2933fi
2934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2935 done
2936else
2937 ac_lo= ac_hi=
2938fi
2939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2940fi
2941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942# Binary search between lo and hi bounds.
2943while test "x$ac_lo" != "x$ac_hi"; do
2944 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946/* end confdefs.h. */
2947$4
2948int
2949main ()
2950{
2951static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002952test_array [0] = 0;
2953return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002954
2955 ;
2956 return 0;
2957}
2958_ACEOF
2959if ac_fn_c_try_compile "$LINENO"; then :
2960 ac_hi=$ac_mid
2961else
2962 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2963fi
2964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965done
2966case $ac_lo in #((
2967?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2968'') ac_retval=1 ;;
2969esac
2970 else
2971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2972/* end confdefs.h. */
2973$4
2974static long int longval () { return $2; }
2975static unsigned long int ulongval () { return $2; }
2976#include <stdio.h>
2977#include <stdlib.h>
2978int
2979main ()
2980{
2981
2982 FILE *f = fopen ("conftest.val", "w");
2983 if (! f)
2984 return 1;
2985 if (($2) < 0)
2986 {
2987 long int i = longval ();
2988 if (i != ($2))
2989 return 1;
2990 fprintf (f, "%ld", i);
2991 }
2992 else
2993 {
2994 unsigned long int i = ulongval ();
2995 if (i != ($2))
2996 return 1;
2997 fprintf (f, "%lu", i);
2998 }
2999 /* Do not output a trailing newline, as this causes \r\n confusion
3000 on some platforms. */
3001 return ferror (f) || fclose (f) != 0;
3002
3003 ;
3004 return 0;
3005}
3006_ACEOF
3007if ac_fn_c_try_run "$LINENO"; then :
3008 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3009else
3010 ac_retval=1
3011fi
3012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3013 conftest.$ac_objext conftest.beam conftest.$ac_ext
3014rm -f conftest.val
3015
3016 fi
cristyda16f162011-02-19 23:52:17 +00003017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003018 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003019
3020} # ac_fn_c_compute_int
3021
3022# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3023# ---------------------------------------------------------
3024# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3025# the include files in INCLUDES and setting the cache variable VAR
3026# accordingly.
3027ac_fn_cxx_check_header_mongrel ()
3028{
3029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003030 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3032$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003033if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003034 $as_echo_n "(cached) " >&6
3035fi
3036eval ac_res=\$$3
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3038$as_echo "$ac_res" >&6; }
3039else
3040 # Is the header compilable?
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3042$as_echo_n "checking $2 usability... " >&6; }
3043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3044/* end confdefs.h. */
3045$4
3046#include <$2>
3047_ACEOF
3048if ac_fn_cxx_try_compile "$LINENO"; then :
3049 ac_header_compiler=yes
3050else
3051 ac_header_compiler=no
3052fi
3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3055$as_echo "$ac_header_compiler" >&6; }
3056
3057# Is the header present?
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3059$as_echo_n "checking $2 presence... " >&6; }
3060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061/* end confdefs.h. */
3062#include <$2>
3063_ACEOF
3064if ac_fn_cxx_try_cpp "$LINENO"; then :
3065 ac_header_preproc=yes
3066else
3067 ac_header_preproc=no
3068fi
cristyda16f162011-02-19 23:52:17 +00003069rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3071$as_echo "$ac_header_preproc" >&6; }
3072
3073# So? What about this header?
3074case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3075 yes:no: )
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3077$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3079$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3080 ;;
3081 no:yes:* )
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3083$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3085$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3087$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3089$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3091$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003092( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003093## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003094## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003095 ) | sed "s/^/$as_me: WARNING: /" >&2
3096 ;;
3097esac
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3099$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003100if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003101 $as_echo_n "(cached) " >&6
3102else
3103 eval "$3=\$ac_header_compiler"
3104fi
3105eval ac_res=\$$3
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3107$as_echo "$ac_res" >&6; }
3108fi
cristyda16f162011-02-19 23:52:17 +00003109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003110
3111} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003112cat >config.log <<_ACEOF
3113This file contains any messages produced by compilers while
3114running configure, to aid debugging if configure makes a mistake.
3115
cristy29eb34e2011-10-16 00:46:08 +00003116It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003117generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003118
3119 $ $0 $@
3120
3121_ACEOF
3122exec 5>>config.log
3123{
3124cat <<_ASUNAME
3125## --------- ##
3126## Platform. ##
3127## --------- ##
3128
3129hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3130uname -m = `(uname -m) 2>/dev/null || echo unknown`
3131uname -r = `(uname -r) 2>/dev/null || echo unknown`
3132uname -s = `(uname -s) 2>/dev/null || echo unknown`
3133uname -v = `(uname -v) 2>/dev/null || echo unknown`
3134
3135/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3136/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3137
3138/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3139/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3140/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3141/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3142/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3143/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3144/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3145
3146_ASUNAME
3147
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003153 $as_echo "PATH: $as_dir"
3154 done
cristy3ed852e2009-09-05 21:47:34 +00003155IFS=$as_save_IFS
3156
3157} >&5
3158
3159cat >&5 <<_ACEOF
3160
3161
3162## ----------- ##
3163## Core tests. ##
3164## ----------- ##
3165
3166_ACEOF
3167
3168
3169# Keep a trace of the command line.
3170# Strip out --no-create and --no-recursion so they do not pile up.
3171# Strip out --silent because we don't want to record it for future runs.
3172# Also quote any args containing shell meta-characters.
3173# Make two passes to allow for proper duplicate-argument suppression.
3174ac_configure_args=
3175ac_configure_args0=
3176ac_configure_args1=
3177ac_must_keep_next=false
3178for ac_pass in 1 2
3179do
3180 for ac_arg
3181 do
3182 case $ac_arg in
3183 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3185 | -silent | --silent | --silen | --sile | --sil)
3186 continue ;;
3187 *\'*)
3188 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3189 esac
3190 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003191 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003192 2)
cristy8b350f62009-11-15 23:12:43 +00003193 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003194 if test $ac_must_keep_next = true; then
3195 ac_must_keep_next=false # Got value, back to normal.
3196 else
3197 case $ac_arg in
3198 *=* | --config-cache | -C | -disable-* | --disable-* \
3199 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3200 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3201 | -with-* | --with-* | -without-* | --without-* | --x)
3202 case "$ac_configure_args0 " in
3203 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3204 esac
3205 ;;
3206 -* ) ac_must_keep_next=true ;;
3207 esac
3208 fi
cristy8b350f62009-11-15 23:12:43 +00003209 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003210 ;;
3211 esac
3212 done
3213done
cristy8b350f62009-11-15 23:12:43 +00003214{ ac_configure_args0=; unset ac_configure_args0;}
3215{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003216
3217# When interrupted or exit'd, cleanup temporary files, and complete
3218# config.log. We remove comments because anyway the quotes in there
3219# would cause problems or look ugly.
3220# WARNING: Use '\'' to represent an apostrophe within the trap.
3221# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3222trap 'exit_status=$?
3223 # Save into config.log some information that might help in debugging.
3224 {
3225 echo
3226
cristy98dddb52010-11-04 00:30:15 +00003227 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003228## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003229## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003230 echo
3231 # The following way of writing the cache mishandles newlines in values,
3232(
3233 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3234 eval ac_val=\$$ac_var
3235 case $ac_val in #(
3236 *${as_nl}*)
3237 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003238 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003239$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3240 esac
3241 case $ac_var in #(
3242 _ | IFS | as_nl) ;; #(
3243 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003244 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003245 esac ;;
3246 esac
3247 done
3248 (set) 2>&1 |
3249 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3250 *${as_nl}ac_space=\ *)
3251 sed -n \
3252 "s/'\''/'\''\\\\'\'''\''/g;
3253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3254 ;; #(
3255 *)
3256 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3257 ;;
3258 esac |
3259 sort
3260)
3261 echo
3262
cristy98dddb52010-11-04 00:30:15 +00003263 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003264## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003265## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003266 echo
3267 for ac_var in $ac_subst_vars
3268 do
3269 eval ac_val=\$$ac_var
3270 case $ac_val in
3271 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3272 esac
3273 $as_echo "$ac_var='\''$ac_val'\''"
3274 done | sort
3275 echo
3276
3277 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003278 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003279## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003280## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003281 echo
3282 for ac_var in $ac_subst_files
3283 do
3284 eval ac_val=\$$ac_var
3285 case $ac_val in
3286 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3287 esac
3288 $as_echo "$ac_var='\''$ac_val'\''"
3289 done | sort
3290 echo
3291 fi
3292
3293 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003294 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003295## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003296## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003297 echo
3298 cat confdefs.h
3299 echo
3300 fi
3301 test "$ac_signal" != 0 &&
3302 $as_echo "$as_me: caught signal $ac_signal"
3303 $as_echo "$as_me: exit $exit_status"
3304 } >&5
3305 rm -f core *.core core.conftest.* &&
3306 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3307 exit $exit_status
3308' 0
3309for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003310 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003311done
3312ac_signal=0
3313
3314# confdefs.h avoids OS command line length limits that DEFS can exceed.
3315rm -f -r conftest* confdefs.h
3316
cristy8b350f62009-11-15 23:12:43 +00003317$as_echo "/* confdefs.h */" > confdefs.h
3318
cristy3ed852e2009-09-05 21:47:34 +00003319# Predefined preprocessor variables.
3320
3321cat >>confdefs.h <<_ACEOF
3322#define PACKAGE_NAME "$PACKAGE_NAME"
3323_ACEOF
3324
cristy3ed852e2009-09-05 21:47:34 +00003325cat >>confdefs.h <<_ACEOF
3326#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3327_ACEOF
3328
cristy3ed852e2009-09-05 21:47:34 +00003329cat >>confdefs.h <<_ACEOF
3330#define PACKAGE_VERSION "$PACKAGE_VERSION"
3331_ACEOF
3332
cristy3ed852e2009-09-05 21:47:34 +00003333cat >>confdefs.h <<_ACEOF
3334#define PACKAGE_STRING "$PACKAGE_STRING"
3335_ACEOF
3336
cristy3ed852e2009-09-05 21:47:34 +00003337cat >>confdefs.h <<_ACEOF
3338#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3339_ACEOF
3340
cristy8b350f62009-11-15 23:12:43 +00003341cat >>confdefs.h <<_ACEOF
3342#define PACKAGE_URL "$PACKAGE_URL"
3343_ACEOF
3344
cristy3ed852e2009-09-05 21:47:34 +00003345
3346# Let the site file select an alternate cache file if it wants to.
3347# Prefer an explicitly selected file to automatically selected ones.
3348ac_site_file1=NONE
3349ac_site_file2=NONE
3350if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003351 # We do not want a PATH search for config.site.
3352 case $CONFIG_SITE in #((
3353 -*) ac_site_file1=./$CONFIG_SITE;;
3354 */*) ac_site_file1=$CONFIG_SITE;;
3355 *) ac_site_file1=./$CONFIG_SITE;;
3356 esac
cristy3ed852e2009-09-05 21:47:34 +00003357elif test "x$prefix" != xNONE; then
3358 ac_site_file1=$prefix/share/config.site
3359 ac_site_file2=$prefix/etc/config.site
3360else
3361 ac_site_file1=$ac_default_prefix/share/config.site
3362 ac_site_file2=$ac_default_prefix/etc/config.site
3363fi
3364for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3365do
3366 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003367 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003368 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003369$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3370 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003371 . "$ac_site_file" \
3372 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374as_fn_error $? "failed to load site script $ac_site_file
3375See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003376 fi
3377done
3378
3379if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003380 # Some versions of bash will fail to source /dev/null (special files
3381 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3382 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003383 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003384$as_echo "$as_me: loading cache $cache_file" >&6;}
3385 case $cache_file in
3386 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3387 *) . "./$cache_file";;
3388 esac
3389 fi
3390else
cristy8b350f62009-11-15 23:12:43 +00003391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003392$as_echo "$as_me: creating cache $cache_file" >&6;}
3393 >$cache_file
3394fi
3395
cristycd4c5312009-11-22 01:19:08 +00003396as_fn_append ac_header_list " stdlib.h"
3397as_fn_append ac_header_list " unistd.h"
3398as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003399# Check that the precious variables saved in the cache have kept the same
3400# value.
3401ac_cache_corrupted=false
3402for ac_var in $ac_precious_vars; do
3403 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3404 eval ac_new_set=\$ac_env_${ac_var}_set
3405 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3406 eval ac_new_val=\$ac_env_${ac_var}_value
3407 case $ac_old_set,$ac_new_set in
3408 set,)
cristy8b350f62009-11-15 23:12:43 +00003409 { $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 +00003410$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3411 ac_cache_corrupted=: ;;
3412 ,set)
cristy8b350f62009-11-15 23:12:43 +00003413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003414$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3415 ac_cache_corrupted=: ;;
3416 ,);;
3417 *)
3418 if test "x$ac_old_val" != "x$ac_new_val"; then
3419 # differences in whitespace do not lead to failure.
3420 ac_old_val_w=`echo x $ac_old_val`
3421 ac_new_val_w=`echo x $ac_new_val`
3422 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003424$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3425 ac_cache_corrupted=:
3426 else
cristy8b350f62009-11-15 23:12:43 +00003427 { $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 +00003428$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3429 eval $ac_var=\$ac_old_val
3430 fi
cristy8b350f62009-11-15 23:12:43 +00003431 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003432$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003433 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003434$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3435 fi;;
3436 esac
3437 # Pass precious variables to config.status.
3438 if test "$ac_new_set" = set; then
3439 case $ac_new_val in
3440 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3441 *) ac_arg=$ac_var=$ac_new_val ;;
3442 esac
3443 case " $ac_configure_args " in
3444 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003445 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003446 esac
3447 fi
3448done
3449if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003453$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003454 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003455fi
cristy8b350f62009-11-15 23:12:43 +00003456## -------------------- ##
3457## Main body of script. ##
3458## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003459
3460ac_ext=c
3461ac_cpp='$CPP $CPPFLAGS'
3462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465
3466
3467
3468ac_aux_dir=
3469for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003470 if test -f "$ac_dir/install-sh"; then
3471 ac_aux_dir=$ac_dir
3472 ac_install_sh="$ac_aux_dir/install-sh -c"
3473 break
3474 elif test -f "$ac_dir/install.sh"; then
3475 ac_aux_dir=$ac_dir
3476 ac_install_sh="$ac_aux_dir/install.sh -c"
3477 break
3478 elif test -f "$ac_dir/shtool"; then
3479 ac_aux_dir=$ac_dir
3480 ac_install_sh="$ac_aux_dir/shtool install -c"
3481 break
3482 fi
cristy3ed852e2009-09-05 21:47:34 +00003483done
3484if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003485 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003486fi
3487
3488# These three variables are undocumented and unsupported,
3489# and are intended to be withdrawn in a future Autoconf release.
3490# They can cause serious problems if a builder's source tree is in a directory
3491# whose full name contains unusual characters.
3492ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3493ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3494ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3495
3496
3497
3498
3499ac_config_headers="$ac_config_headers config/config.h"
3500
cristy24fc1fe2010-10-23 21:13:01 +00003501
cristy01ff9f32012-12-01 18:15:29 +00003502ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003503
cristy8d0ff762013-03-10 20:33:28 +00003504ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003505
3506
3507#
3508# Save initial user-tunable values
3509#
3510USER_LIBS=$LIBS
3511for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3512 eval isset=\${$var+set}
3513 if test "$isset" = 'set'; then
3514 eval val=$`echo $var`
3515 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3516 fi
3517done
3518
3519
3520CONFIGURE_ARGS="$0 ${ac_configure_args}"
3521
3522
3523# Source file containing package/library versioning information.
3524. ${srcdir}/version.sh
3525
cristy15a88782010-01-31 23:24:49 +00003526echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003527# Make sure we can run config.sub.
3528$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003529 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003530
cristy8b350f62009-11-15 23:12:43 +00003531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003532$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003533if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003534 $as_echo_n "(cached) " >&6
3535else
3536 ac_build_alias=$build_alias
3537test "x$ac_build_alias" = x &&
3538 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3539test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003540 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003541ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003542 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003543
3544fi
cristy8b350f62009-11-15 23:12:43 +00003545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003546$as_echo "$ac_cv_build" >&6; }
3547case $ac_cv_build in
3548*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003549*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003550esac
3551build=$ac_cv_build
3552ac_save_IFS=$IFS; IFS='-'
3553set x $ac_cv_build
3554shift
3555build_cpu=$1
3556build_vendor=$2
3557shift; shift
3558# Remember, the first character of IFS is used to create $*,
3559# except with old shells:
3560build_os=$*
3561IFS=$ac_save_IFS
3562case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3563
3564
cristy8b350f62009-11-15 23:12:43 +00003565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003566$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003567if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003568 $as_echo_n "(cached) " >&6
3569else
3570 if test "x$host_alias" = x; then
3571 ac_cv_host=$ac_cv_build
3572else
3573 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003574 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003575fi
3576
3577fi
cristy8b350f62009-11-15 23:12:43 +00003578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003579$as_echo "$ac_cv_host" >&6; }
3580case $ac_cv_host in
3581*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003582*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003583esac
3584host=$ac_cv_host
3585ac_save_IFS=$IFS; IFS='-'
3586set x $ac_cv_host
3587shift
3588host_cpu=$1
3589host_vendor=$2
3590shift; shift
3591# Remember, the first character of IFS is used to create $*,
3592# except with old shells:
3593host_os=$*
3594IFS=$ac_save_IFS
3595case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3596
3597
cristy8b350f62009-11-15 23:12:43 +00003598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003599$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003600if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003601 $as_echo_n "(cached) " >&6
3602else
3603 if test "x$target_alias" = x; then
3604 ac_cv_target=$ac_cv_host
3605else
3606 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003607 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003608fi
3609
3610fi
cristy8b350f62009-11-15 23:12:43 +00003611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003612$as_echo "$ac_cv_target" >&6; }
3613case $ac_cv_target in
3614*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003615*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003616esac
3617target=$ac_cv_target
3618ac_save_IFS=$IFS; IFS='-'
3619set x $ac_cv_target
3620shift
3621target_cpu=$1
3622target_vendor=$2
3623shift; shift
3624# Remember, the first character of IFS is used to create $*,
3625# except with old shells:
3626target_os=$*
3627IFS=$ac_save_IFS
3628case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3629
3630
3631# The aliases save the names the user supplied, while $host etc.
3632# will get canonicalized.
3633test -n "$target_alias" &&
3634 test "$program_prefix$program_suffix$program_transform_name" = \
3635 NONENONEs,x,x, &&
3636 program_prefix=${target_alias}-
3637
cristy837d6dc2010-02-27 01:16:57 +00003638
3639
3640
cristy8be34142012-06-17 14:07:18 +00003641
cristy19615b82011-04-13 20:02:01 +00003642MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003643
3644
cristy27d53d62012-07-29 23:30:07 +00003645cat >>confdefs.h <<_ACEOF
3646#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3647_ACEOF
3648
3649
cristy19615b82011-04-13 20:02:01 +00003650MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003651
3652
cristy27d53d62012-07-29 23:30:07 +00003653cat >>confdefs.h <<_ACEOF
3654#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3655_ACEOF
3656
3657
cristy19615b82011-04-13 20:02:01 +00003658MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003659
3660
cristy27d53d62012-07-29 23:30:07 +00003661cat >>confdefs.h <<_ACEOF
3662#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3663_ACEOF
3664
3665
cristy37442762013-02-10 21:07:23 +00003666
3667# Substitute versioning
3668MAGICK_MAJOR_VERSION=7
3669
3670MAGICK_MINOR_VERSION=0
3671
3672MAGICK_MICRO_VERSION=0
3673
3674MAGICK_PATCHLEVEL_VERSION=0
3675
3676MAGICK_VERSION=7.0.0-0
3677
cristy39efc3c2013-04-13 15:24:06 +00003678MAGICK_SVN_REVISION=11804:11823
cristy37442762013-02-10 21:07:23 +00003679
3680
cristy3ed852e2009-09-05 21:47:34 +00003681# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003682MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3683
3684MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3685
cristy37442762013-02-10 21:07:23 +00003686
cristyd694ca32011-03-27 21:42:54 +00003687
cristy3ed852e2009-09-05 21:47:34 +00003688# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3690$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003691# Reject unsafe characters in $srcdir or the absolute working directory
3692# name. Accept space and tab only in the latter.
3693am_lf='
3694'
3695case `pwd` in
3696 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003697 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003698esac
3699case $srcdir in
3700 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003701 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003702esac
cristy3ed852e2009-09-05 21:47:34 +00003703
cristyc0890a62012-07-19 00:18:20 +00003704# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003705# arguments. Must try -L first in case configure is actually a
3706# symlink; some systems play weird games with the mod time of symlinks
3707# (eg FreeBSD returns the mod time of the symlink's containing
3708# directory).
3709if (
cristyc0890a62012-07-19 00:18:20 +00003710 am_has_slept=no
3711 for am_try in 1 2; do
3712 echo "timestamp, slept: $am_has_slept" > conftest.file
3713 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3714 if test "$*" = "X"; then
3715 # -L didn't work.
3716 set X `ls -t "$srcdir/configure" conftest.file`
3717 fi
3718 if test "$*" != "X $srcdir/configure conftest.file" \
3719 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003720
cristyc0890a62012-07-19 00:18:20 +00003721 # If neither matched, then we have a broken ls. This can happen
3722 # if, for instance, CONFIG_SHELL is bash and it inherits a
3723 # broken ls alias from the environment. This has actually
3724 # happened. Such a system could not be considered "sane".
3725 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3726 alias in your environment" "$LINENO" 5
3727 fi
3728 if test "$2" = conftest.file || test $am_try -eq 2; then
3729 break
3730 fi
3731 # Just in case.
3732 sleep 1
3733 am_has_slept=yes
3734 done
cristy73bd4a52010-10-05 11:24:23 +00003735 test "$2" = conftest.file
3736 )
3737then
3738 # Ok.
3739 :
3740else
cristy98dddb52010-11-04 00:30:15 +00003741 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003742Check your system clock" "$LINENO" 5
3743fi
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3745$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003746# If we didn't sleep, we still need to ensure time stamps of config.status and
3747# generated files are strictly newer.
3748am_sleep_pid=
3749if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3750 ( sleep 1 ) &
3751 am_sleep_pid=$!
3752fi
cristy73bd4a52010-10-05 11:24:23 +00003753
cristyc0890a62012-07-19 00:18:20 +00003754rm -f conftest.file
3755
3756
cristy58d34aa2013-01-24 15:11:54 +00003757am__api_version='1.13'
cristy73bd4a52010-10-05 11:24:23 +00003758
3759# Find a good install program. We prefer a C program (faster),
3760# so one script is as good as another. But avoid the broken or
3761# incompatible versions:
3762# SysV /etc/install, /usr/sbin/install
3763# SunOS /usr/etc/install
3764# IRIX /sbin/install
3765# AIX /bin/install
3766# AmigaOS /C/install, which installs bootblocks on floppy discs
3767# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3768# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3769# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3770# OS/2's system install, which has a completely different semantic
3771# ./install, which can be erroneously created by make from ./install.sh.
3772# Reject install programs that cannot install multiple files.
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3774$as_echo_n "checking for a BSD-compatible install... " >&6; }
3775if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003776if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003777 $as_echo_n "(cached) " >&6
3778else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780for as_dir in $PATH
3781do
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 # Account for people who put trailing slashes in PATH elements.
3785case $as_dir/ in #((
3786 ./ | .// | /[cC]/* | \
3787 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3788 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3789 /usr/ucb/* ) ;;
3790 *)
3791 # OSF1 and SCO ODT 3.0 have their own names for install.
3792 # Don't use installbsd from OSF since it installs stuff as root
3793 # by default.
3794 for ac_prog in ginstall scoinst install; do
3795 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003796 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003797 if test $ac_prog = install &&
3798 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3799 # AIX install. It has an incompatible calling convention.
3800 :
3801 elif test $ac_prog = install &&
3802 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3803 # program-specific install script used by HP pwplus--don't use.
3804 :
3805 else
3806 rm -rf conftest.one conftest.two conftest.dir
3807 echo one > conftest.one
3808 echo two > conftest.two
3809 mkdir conftest.dir
3810 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3811 test -s conftest.one && test -s conftest.two &&
3812 test -s conftest.dir/conftest.one &&
3813 test -s conftest.dir/conftest.two
3814 then
3815 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3816 break 3
3817 fi
3818 fi
3819 fi
3820 done
3821 done
3822 ;;
3823esac
3824
3825 done
3826IFS=$as_save_IFS
3827
3828rm -rf conftest.one conftest.two conftest.dir
3829
3830fi
3831 if test "${ac_cv_path_install+set}" = set; then
3832 INSTALL=$ac_cv_path_install
3833 else
3834 # As a last resort, use the slow shell script. Don't cache a
3835 # value for INSTALL within a source directory, because that will
3836 # break other packages using the cache if that directory is
3837 # removed, or if the value is a relative name.
3838 INSTALL=$ac_install_sh
3839 fi
3840fi
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3842$as_echo "$INSTALL" >&6; }
3843
3844# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3845# It thinks the first close brace ends the variable substitution.
3846test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3847
3848test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3849
3850test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3851
3852test "$program_prefix" != NONE &&
3853 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3854# Use a double $ so make ignores it.
3855test "$program_suffix" != NONE &&
3856 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3857# Double any \ or $.
3858# By default was `s,x,x', remove it if useless.
3859ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3860program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3861
3862# expand $ac_aux_dir to an absolute path
3863am_aux_dir=`cd $ac_aux_dir && pwd`
3864
3865if test x"${MISSING+set}" != xset; then
3866 case $am_aux_dir in
3867 *\ * | *\ *)
3868 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3869 *)
3870 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3871 esac
3872fi
3873# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003874if eval "$MISSING --is-lightweight"; then
3875 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003876else
3877 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3879$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003880fi
3881
3882if test x"${install_sh}" != xset; then
3883 case $am_aux_dir in
3884 *\ * | *\ *)
3885 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3886 *)
3887 install_sh="\${SHELL} $am_aux_dir/install-sh"
3888 esac
3889fi
3890
cristyc0890a62012-07-19 00:18:20 +00003891# Installed binaries are usually stripped using 'strip' when the user
3892# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003893# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003894# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003895if test "$cross_compiling" != no; then
3896 if test -n "$ac_tool_prefix"; then
3897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3898set dummy ${ac_tool_prefix}strip; ac_word=$2
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003901if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003902 $as_echo_n "(cached) " >&6
3903else
3904 if test -n "$STRIP"; then
3905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3906else
3907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908for as_dir in $PATH
3909do
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 break 2
3917 fi
3918done
3919 done
3920IFS=$as_save_IFS
3921
3922fi
3923fi
3924STRIP=$ac_cv_prog_STRIP
3925if test -n "$STRIP"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3927$as_echo "$STRIP" >&6; }
3928else
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930$as_echo "no" >&6; }
3931fi
3932
3933
3934fi
3935if test -z "$ac_cv_prog_STRIP"; then
3936 ac_ct_STRIP=$STRIP
3937 # Extract the first word of "strip", so it can be a program name with args.
3938set dummy strip; ac_word=$2
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003941if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003942 $as_echo_n "(cached) " >&6
3943else
3944 if test -n "$ac_ct_STRIP"; then
3945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3946else
3947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948for as_dir in $PATH
3949do
3950 IFS=$as_save_IFS
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003954 ac_cv_prog_ac_ct_STRIP="strip"
3955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 break 2
3957 fi
3958done
3959 done
3960IFS=$as_save_IFS
3961
3962fi
3963fi
3964ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3965if test -n "$ac_ct_STRIP"; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3967$as_echo "$ac_ct_STRIP" >&6; }
3968else
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970$as_echo "no" >&6; }
3971fi
3972
3973 if test "x$ac_ct_STRIP" = x; then
3974 STRIP=":"
3975 else
3976 case $cross_compiling:$ac_tool_warned in
3977yes:)
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3980ac_tool_warned=yes ;;
3981esac
3982 STRIP=$ac_ct_STRIP
3983 fi
3984else
3985 STRIP="$ac_cv_prog_STRIP"
3986fi
3987
3988fi
3989INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3990
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3992$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3993if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003994 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003995 $as_echo_n "(cached) " >&6
3996else
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3999do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_prog in mkdir gmkdir; do
4003 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004004 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004005 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4006 'mkdir (GNU coreutils) '* | \
4007 'mkdir (coreutils) '* | \
4008 'mkdir (fileutils) '4.1*)
4009 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4010 break 3;;
4011 esac
4012 done
4013 done
4014 done
4015IFS=$as_save_IFS
4016
4017fi
4018
4019 test -d ./--version && rmdir ./--version
4020 if test "${ac_cv_path_mkdir+set}" = set; then
4021 MKDIR_P="$ac_cv_path_mkdir -p"
4022 else
4023 # As a last resort, use the slow shell script. Don't cache a
4024 # value for MKDIR_P within a source directory, because that will
4025 # break other packages using the cache if that directory is
4026 # removed, or if the value is a relative name.
4027 MKDIR_P="$ac_install_sh -d"
4028 fi
4029fi
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4031$as_echo "$MKDIR_P" >&6; }
4032
cristy73bd4a52010-10-05 11:24:23 +00004033for ac_prog in gawk mawk nawk awk
4034do
4035 # Extract the first word of "$ac_prog", so it can be a program name with args.
4036set dummy $ac_prog; ac_word=$2
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004039if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004040 $as_echo_n "(cached) " >&6
4041else
4042 if test -n "$AWK"; then
4043 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4044else
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004052 ac_cv_prog_AWK="$ac_prog"
4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4055 fi
4056done
4057 done
4058IFS=$as_save_IFS
4059
4060fi
4061fi
4062AWK=$ac_cv_prog_AWK
4063if test -n "$AWK"; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4065$as_echo "$AWK" >&6; }
4066else
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068$as_echo "no" >&6; }
4069fi
4070
4071
4072 test -n "$AWK" && break
4073done
4074
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4076$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4077set x ${MAKE-make}
4078ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004079if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004080 $as_echo_n "(cached) " >&6
4081else
4082 cat >conftest.make <<\_ACEOF
4083SHELL = /bin/sh
4084all:
4085 @echo '@@@%%%=$(MAKE)=@@@%%%'
4086_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004087# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004088case `${MAKE-make} -f conftest.make 2>/dev/null` in
4089 *@@@%%%=?*=@@@%%%*)
4090 eval ac_cv_prog_make_${ac_make}_set=yes;;
4091 *)
4092 eval ac_cv_prog_make_${ac_make}_set=no;;
4093esac
4094rm -f conftest.make
4095fi
4096if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4098$as_echo "yes" >&6; }
4099 SET_MAKE=
4100else
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102$as_echo "no" >&6; }
4103 SET_MAKE="MAKE=${MAKE-make}"
4104fi
4105
4106rm -rf .tst 2>/dev/null
4107mkdir .tst 2>/dev/null
4108if test -d .tst; then
4109 am__leading_dot=.
4110else
4111 am__leading_dot=_
4112fi
4113rmdir .tst 2>/dev/null
4114
cristya448bd22011-10-14 12:38:13 +00004115# Check whether --enable-silent-rules was given.
4116if test "${enable_silent_rules+set}" = set; then :
4117 enableval=$enable_silent_rules;
4118fi
4119
cristyc0890a62012-07-19 00:18:20 +00004120case $enable_silent_rules in # (((
4121 yes) AM_DEFAULT_VERBOSITY=0;;
4122 no) AM_DEFAULT_VERBOSITY=1;;
4123 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004124esac
cristyc3fb77b2012-02-06 01:49:41 +00004125am_make=${MAKE-make}
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4127$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4128if ${am_cv_make_support_nested_variables+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130else
4131 if $as_echo 'TRUE=$(BAR$(V))
4132BAR0=false
4133BAR1=true
4134V=1
4135am__doit:
4136 @$(TRUE)
4137.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4138 am_cv_make_support_nested_variables=yes
4139else
4140 am_cv_make_support_nested_variables=no
4141fi
4142fi
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4144$as_echo "$am_cv_make_support_nested_variables" >&6; }
4145if test $am_cv_make_support_nested_variables = yes; then
4146 AM_V='$(V)'
4147 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4148else
4149 AM_V=$AM_DEFAULT_VERBOSITY
4150 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4151fi
cristya448bd22011-10-14 12:38:13 +00004152AM_BACKSLASH='\'
4153
cristy73bd4a52010-10-05 11:24:23 +00004154if test "`cd $srcdir && pwd`" != "`pwd`"; then
4155 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4156 # is not polluted with repeated "-I."
4157 am__isrc=' -I$(srcdir)'
4158 # test to see if srcdir already configured
4159 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004160 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004161 fi
4162fi
4163
4164# test whether we have cygpath
4165if test -z "$CYGPATH_W"; then
4166 if (cygpath --version) >/dev/null 2>/dev/null; then
4167 CYGPATH_W='cygpath -w'
4168 else
4169 CYGPATH_W=echo
4170 fi
4171fi
4172
4173
4174# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004175 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004176 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004177
4178
cristya448bd22011-10-14 12:38:13 +00004179cat >>confdefs.h <<_ACEOF
4180#define PACKAGE "$PACKAGE"
4181_ACEOF
4182
4183
4184cat >>confdefs.h <<_ACEOF
4185#define VERSION "$VERSION"
4186_ACEOF
4187
cristy73bd4a52010-10-05 11:24:23 +00004188# Some tools Automake needs.
4189
4190ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4191
4192
4193AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4194
4195
4196AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4197
4198
4199AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4200
4201
4202MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4203
cristyc0890a62012-07-19 00:18:20 +00004204# For better backward compatibility. To be removed once Automake 1.9.x
4205# dies out for good. For more background, see:
4206# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4207# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4208mkdir_p='$(MKDIR_P)'
4209
cristy73bd4a52010-10-05 11:24:23 +00004210# We need awk for the "check" target. The system "awk" is bad on
4211# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004212# Always define AMTAR for backward compatibility. Yes, it's still used
4213# in the wild :-( We should find a proper way to deprecate it ...
4214AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004215
cristyc3fb77b2012-02-06 01:49:41 +00004216am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004217
4218
4219
4220
4221
cristy3ed852e2009-09-05 21:47:34 +00004222
4223# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004224# Check whether --enable-silent-rules was given.
4225if test "${enable_silent_rules+set}" = set; then :
4226 enableval=$enable_silent_rules;
4227fi
4228
cristyc0890a62012-07-19 00:18:20 +00004229case $enable_silent_rules in # (((
4230 yes) AM_DEFAULT_VERBOSITY=0;;
4231 no) AM_DEFAULT_VERBOSITY=1;;
4232 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004233esac
cristyc3fb77b2012-02-06 01:49:41 +00004234am_make=${MAKE-make}
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4236$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4237if ${am_cv_make_support_nested_variables+:} false; then :
4238 $as_echo_n "(cached) " >&6
4239else
4240 if $as_echo 'TRUE=$(BAR$(V))
4241BAR0=false
4242BAR1=true
4243V=1
4244am__doit:
4245 @$(TRUE)
4246.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4247 am_cv_make_support_nested_variables=yes
4248else
4249 am_cv_make_support_nested_variables=no
4250fi
4251fi
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4253$as_echo "$am_cv_make_support_nested_variables" >&6; }
4254if test $am_cv_make_support_nested_variables = yes; then
4255 AM_V='$(V)'
4256 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4257else
4258 AM_V=$AM_DEFAULT_VERBOSITY
4259 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4260fi
cristy73bd4a52010-10-05 11:24:23 +00004261AM_BACKSLASH='\'
4262
cristy3ed852e2009-09-05 21:47:34 +00004263
4264MAGICK_LIB_VERSION="0x"
4265if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4266 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4267fi
4268MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4269if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4270 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4271fi
4272MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4273if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4274 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4275fi
4276MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4277
4278
4279# Definition used to define MagickLibVersionText in version.h
4280MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4281
4282
4283# Definition used to define MagickLibVersionNumber in version.h
4284MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4285
4286
4287# Regenerate config.status if ChangeLog or version.sh is updated.
4288CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4289
4290
4291PERLMAINCC=$CC
4292
4293MAGICK_CFLAGS=''
4294MAGICK_CPPFLAGS=$CPPFLAGS_USER
4295MAGICK_PCFLAGS=$CPPFLAGS_USER
4296MAGICK_LDFLAGS=''
4297MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004298MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004299
4300#
4301# Evaluate shell variable equivalents to Makefile directory variables
4302#
4303if test "x$prefix" = xNONE; then
4304 prefix=$ac_default_prefix
4305fi
4306# Let make expand exec_prefix.
4307if test "x$exec_prefix" = xNONE; then
4308 exec_prefix='${prefix}'
4309fi
4310
4311#
4312eval "eval PREFIX_DIR=${prefix}"
4313
4314eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4315
4316eval "eval BIN_DIR=$bindir"
4317
4318eval "eval SBIN_DIR=$sbindir"
4319
4320eval "eval LIBEXEC_DIR=$libexecdir"
4321
4322eval "eval DATA_DIR=$datadir"
4323
cristy4e65ec22012-04-08 01:33:27 +00004324eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004325
cristy3ed852e2009-09-05 21:47:34 +00004326eval "eval SYSCONF_DIR=$sysconfdir"
4327
4328eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4329
4330eval "eval LOCALSTATE_DIR=$localstatedir"
4331
4332eval "eval LIB_DIR=$libdir"
4333
4334eval "eval INCLUDE_DIR=$includedir"
4335
4336eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4337
4338eval "eval INFO_DIR=$infodir"
4339
4340eval "eval MAN_DIR=$mandir"
4341
4342
4343# Get full paths to source and build directories
4344srcdirfull="`cd $srcdir && pwd`"
4345builddir="`pwd`"
4346
4347#
4348# Compute variables useful for running uninstalled software.
4349#
4350MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4351MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4352MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4353MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4354DIRSEP=':'
4355case "${build_os}" in
4356 mingw* )
4357 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4358 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4359 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4360 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4361 DIRSEP=';'
4362 ;;
4363esac
4364case "${host_os}" in
4365 mingw* )
4366 DIRSEP=';'
4367 ;;
4368esac
4369
4370
4371
4372
4373
4374
cristya0b81c32010-01-22 02:54:33 +00004375
4376#
4377# Enable OS features.
4378#
cristy73bd4a52010-10-05 11:24:23 +00004379DEPDIR="${am__leading_dot}deps"
4380
4381ac_config_commands="$ac_config_commands depfiles"
4382
4383
4384am_make=${MAKE-make}
4385cat > confinc << 'END'
4386am__doit:
4387 @echo this is the am__doit target
4388.PHONY: am__doit
4389END
4390# If we don't find an include directive, just comment out the code.
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4392$as_echo_n "checking for style of include used by $am_make... " >&6; }
4393am__include="#"
4394am__quote=
4395_am_result=none
4396# First try GNU make style include.
4397echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004398# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004399case `$am_make -s -f confmf 2> /dev/null` in #(
4400*the\ am__doit\ target*)
4401 am__include=include
4402 am__quote=
4403 _am_result=GNU
4404 ;;
4405esac
4406# Now try BSD make style include.
4407if test "$am__include" = "#"; then
4408 echo '.include "confinc"' > confmf
4409 case `$am_make -s -f confmf 2> /dev/null` in #(
4410 *the\ am__doit\ target*)
4411 am__include=.include
4412 am__quote="\""
4413 _am_result=BSD
4414 ;;
4415 esac
4416fi
4417
4418
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4420$as_echo "$_am_result" >&6; }
4421rm -f confinc confmf
4422
4423# Check whether --enable-dependency-tracking was given.
4424if test "${enable_dependency_tracking+set}" = set; then :
4425 enableval=$enable_dependency_tracking;
4426fi
4427
4428if test "x$enable_dependency_tracking" != xno; then
4429 am_depcomp="$ac_aux_dir/depcomp"
4430 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004431 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004432fi
4433 if test "x$enable_dependency_tracking" != xno; then
4434 AMDEP_TRUE=
4435 AMDEP_FALSE='#'
4436else
4437 AMDEP_TRUE='#'
4438 AMDEP_FALSE=
4439fi
4440
4441
cristy3ed852e2009-09-05 21:47:34 +00004442ac_ext=c
4443ac_cpp='$CPP $CPPFLAGS'
4444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446ac_compiler_gnu=$ac_cv_c_compiler_gnu
4447if test -n "$ac_tool_prefix"; then
4448 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4449set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004451$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004452if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004453 $as_echo_n "(cached) " >&6
4454else
4455 if test -n "$CC"; then
4456 ac_cv_prog_CC="$CC" # Let the user override the test.
4457else
4458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459for as_dir in $PATH
4460do
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004463 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004465 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004467 break 2
4468 fi
4469done
cristy8b350f62009-11-15 23:12:43 +00004470 done
cristy3ed852e2009-09-05 21:47:34 +00004471IFS=$as_save_IFS
4472
4473fi
4474fi
4475CC=$ac_cv_prog_CC
4476if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004478$as_echo "$CC" >&6; }
4479else
cristy8b350f62009-11-15 23:12:43 +00004480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004481$as_echo "no" >&6; }
4482fi
4483
4484
4485fi
4486if test -z "$ac_cv_prog_CC"; then
4487 ac_ct_CC=$CC
4488 # Extract the first word of "gcc", so it can be a program name with args.
4489set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004491$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004492if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004493 $as_echo_n "(cached) " >&6
4494else
4495 if test -n "$ac_ct_CC"; then
4496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4497else
4498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499for as_dir in $PATH
4500do
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004503 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004505 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004507 break 2
4508 fi
4509done
cristy8b350f62009-11-15 23:12:43 +00004510 done
cristy3ed852e2009-09-05 21:47:34 +00004511IFS=$as_save_IFS
4512
4513fi
4514fi
4515ac_ct_CC=$ac_cv_prog_ac_ct_CC
4516if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004518$as_echo "$ac_ct_CC" >&6; }
4519else
cristy8b350f62009-11-15 23:12:43 +00004520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004521$as_echo "no" >&6; }
4522fi
4523
4524 if test "x$ac_ct_CC" = x; then
4525 CC=""
4526 else
4527 case $cross_compiling:$ac_tool_warned in
4528yes:)
cristy8b350f62009-11-15 23:12:43 +00004529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4531ac_tool_warned=yes ;;
4532esac
4533 CC=$ac_ct_CC
4534 fi
4535else
4536 CC="$ac_cv_prog_CC"
4537fi
4538
4539if test -z "$CC"; then
4540 if test -n "$ac_tool_prefix"; then
4541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4542set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004544$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004545if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004546 $as_echo_n "(cached) " >&6
4547else
4548 if test -n "$CC"; then
4549 ac_cv_prog_CC="$CC" # Let the user override the test.
4550else
4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004556 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004558 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004560 break 2
4561 fi
4562done
cristy8b350f62009-11-15 23:12:43 +00004563 done
cristy3ed852e2009-09-05 21:47:34 +00004564IFS=$as_save_IFS
4565
4566fi
4567fi
4568CC=$ac_cv_prog_CC
4569if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004571$as_echo "$CC" >&6; }
4572else
cristy8b350f62009-11-15 23:12:43 +00004573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004574$as_echo "no" >&6; }
4575fi
4576
4577
4578 fi
4579fi
4580if test -z "$CC"; then
4581 # Extract the first word of "cc", so it can be a program name with args.
4582set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004584$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004585if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004586 $as_echo_n "(cached) " >&6
4587else
4588 if test -n "$CC"; then
4589 ac_cv_prog_CC="$CC" # Let the user override the test.
4590else
4591 ac_prog_rejected=no
4592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593for as_dir in $PATH
4594do
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004597 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004599 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4600 ac_prog_rejected=yes
4601 continue
4602 fi
4603 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004605 break 2
4606 fi
4607done
cristy8b350f62009-11-15 23:12:43 +00004608 done
cristy3ed852e2009-09-05 21:47:34 +00004609IFS=$as_save_IFS
4610
4611if test $ac_prog_rejected = yes; then
4612 # We found a bogon in the path, so make sure we never use it.
4613 set dummy $ac_cv_prog_CC
4614 shift
4615 if test $# != 0; then
4616 # We chose a different compiler from the bogus one.
4617 # However, it has the same basename, so the bogon will be chosen
4618 # first if we set CC to just the basename; use the full file name.
4619 shift
4620 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4621 fi
4622fi
4623fi
4624fi
4625CC=$ac_cv_prog_CC
4626if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004628$as_echo "$CC" >&6; }
4629else
cristy8b350f62009-11-15 23:12:43 +00004630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004631$as_echo "no" >&6; }
4632fi
4633
4634
4635fi
4636if test -z "$CC"; then
4637 if test -n "$ac_tool_prefix"; then
4638 for ac_prog in cl.exe
4639 do
4640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4641set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004643$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004644if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004645 $as_echo_n "(cached) " >&6
4646else
4647 if test -n "$CC"; then
4648 ac_cv_prog_CC="$CC" # Let the user override the test.
4649else
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH
4652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004655 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004657 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004659 break 2
4660 fi
4661done
cristy8b350f62009-11-15 23:12:43 +00004662 done
cristy3ed852e2009-09-05 21:47:34 +00004663IFS=$as_save_IFS
4664
4665fi
4666fi
4667CC=$ac_cv_prog_CC
4668if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004670$as_echo "$CC" >&6; }
4671else
cristy8b350f62009-11-15 23:12:43 +00004672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004673$as_echo "no" >&6; }
4674fi
4675
4676
4677 test -n "$CC" && break
4678 done
4679fi
4680if test -z "$CC"; then
4681 ac_ct_CC=$CC
4682 for ac_prog in cl.exe
4683do
4684 # Extract the first word of "$ac_prog", so it can be a program name with args.
4685set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004687$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004688if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004689 $as_echo_n "(cached) " >&6
4690else
4691 if test -n "$ac_ct_CC"; then
4692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4693else
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004699 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004701 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004703 break 2
4704 fi
4705done
cristy8b350f62009-11-15 23:12:43 +00004706 done
cristy3ed852e2009-09-05 21:47:34 +00004707IFS=$as_save_IFS
4708
4709fi
4710fi
4711ac_ct_CC=$ac_cv_prog_ac_ct_CC
4712if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004714$as_echo "$ac_ct_CC" >&6; }
4715else
cristy8b350f62009-11-15 23:12:43 +00004716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004717$as_echo "no" >&6; }
4718fi
4719
4720
4721 test -n "$ac_ct_CC" && break
4722done
4723
4724 if test "x$ac_ct_CC" = x; then
4725 CC=""
4726 else
4727 case $cross_compiling:$ac_tool_warned in
4728yes:)
cristy8b350f62009-11-15 23:12:43 +00004729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731ac_tool_warned=yes ;;
4732esac
4733 CC=$ac_ct_CC
4734 fi
4735fi
4736
4737fi
4738
4739
cristy8b350f62009-11-15 23:12:43 +00004740test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004742as_fn_error $? "no acceptable C compiler found in \$PATH
4743See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004744
4745# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004746$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004747set X $ac_compile
4748ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004749for ac_option in --version -v -V -qversion; do
4750 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004751case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754esac
cristy8b350f62009-11-15 23:12:43 +00004755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4756$as_echo "$ac_try_echo"; } >&5
4757 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004758 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004759 if test -s conftest.err; then
4760 sed '10a\
4761... rest of stderr output deleted ...
4762 10q' conftest.err >conftest.er1
4763 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004764 fi
cristycd4c5312009-11-22 01:19:08 +00004765 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4767 test $ac_status = 0; }
4768done
cristy3ed852e2009-09-05 21:47:34 +00004769
cristy8b350f62009-11-15 23:12:43 +00004770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004771/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004772
cristy3ed852e2009-09-05 21:47:34 +00004773int
4774main ()
4775{
4776
4777 ;
4778 return 0;
4779}
4780_ACEOF
4781ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004782ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004783# Try to create an executable without -o first, disregard a.out.
4784# It will help us diagnose broken compilers, and finding out an intuition
4785# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4787$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004788ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4789
4790# The possible output files:
4791ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4792
4793ac_rmfiles=
4794for ac_file in $ac_files
4795do
4796 case $ac_file in
4797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4798 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4799 esac
4800done
4801rm -f $ac_rmfiles
4802
cristy8b350f62009-11-15 23:12:43 +00004803if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004804case "(($ac_try" in
4805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806 *) ac_try_echo=$ac_try;;
4807esac
cristy8b350f62009-11-15 23:12:43 +00004808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4809$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004810 (eval "$ac_link_default") 2>&5
4811 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4813 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004814 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4815# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4816# in a Makefile. We should not override ac_cv_exeext if it was cached,
4817# so that the user can short-circuit this test for compilers unknown to
4818# Autoconf.
4819for ac_file in $ac_files ''
4820do
4821 test -f "$ac_file" || continue
4822 case $ac_file in
4823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4824 ;;
4825 [ab].out )
4826 # We found the default executable, but exeext='' is most
4827 # certainly right.
4828 break;;
4829 *.* )
cristy8b350f62009-11-15 23:12:43 +00004830 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004831 then :; else
4832 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4833 fi
4834 # We set ac_cv_exeext here because the later test for it is not
4835 # safe: cross compilers may not add the suffix if given an `-o'
4836 # argument, so we may need to know it at that point already.
4837 # Even if this section looks crufty: it has the advantage of
4838 # actually working.
4839 break;;
4840 * )
4841 break;;
4842 esac
4843done
4844test "$ac_cv_exeext" = no && ac_cv_exeext=
4845
4846else
4847 ac_file=''
4848fi
cristy8b350f62009-11-15 23:12:43 +00004849if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851$as_echo "no" >&6; }
4852$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004853sed 's/^/| /' conftest.$ac_ext >&5
4854
cristy8b350f62009-11-15 23:12:43 +00004855{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004857as_fn_error 77 "C compiler cannot create executables
4858See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004859else
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4861$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004862fi
cristycd4c5312009-11-22 01:19:08 +00004863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4864$as_echo_n "checking for C compiler default output file name... " >&6; }
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4866$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004867ac_exeext=$ac_cv_exeext
4868
cristycd4c5312009-11-22 01:19:08 +00004869rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004870ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004872$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004873if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004874case "(($ac_try" in
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4877esac
cristy8b350f62009-11-15 23:12:43 +00004878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4879$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004880 (eval "$ac_link") 2>&5
4881 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4883 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004884 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4885# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4886# work properly (i.e., refer to `conftest.exe'), while it won't with
4887# `rm'.
4888for ac_file in conftest.exe conftest conftest.*; do
4889 test -f "$ac_file" || continue
4890 case $ac_file in
4891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4892 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4893 break;;
4894 * ) break;;
4895 esac
4896done
4897else
cristy8b350f62009-11-15 23:12:43 +00004898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004900as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4901See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004902fi
cristycd4c5312009-11-22 01:19:08 +00004903rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004905$as_echo "$ac_cv_exeext" >&6; }
4906
4907rm -f conftest.$ac_ext
4908EXEEXT=$ac_cv_exeext
4909ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911/* end confdefs.h. */
4912#include <stdio.h>
4913int
4914main ()
4915{
4916FILE *f = fopen ("conftest.out", "w");
4917 return ferror (f) || fclose (f) != 0;
4918
4919 ;
4920 return 0;
4921}
4922_ACEOF
4923ac_clean_files="$ac_clean_files conftest.out"
4924# Check that the compiler produces executables we can run. If not, either
4925# the compiler is broken, or we cross compile.
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4927$as_echo_n "checking whether we are cross compiling... " >&6; }
4928if test "$cross_compiling" != yes; then
4929 { { ac_try="$ac_link"
4930case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933esac
4934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4935$as_echo "$ac_try_echo"; } >&5
4936 (eval "$ac_link") 2>&5
4937 ac_status=$?
4938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4939 test $ac_status = 0; }
4940 if { ac_try='./conftest$ac_cv_exeext'
4941 { { case "(($ac_try" in
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4944esac
4945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4946$as_echo "$ac_try_echo"; } >&5
4947 (eval "$ac_try") 2>&5
4948 ac_status=$?
4949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4950 test $ac_status = 0; }; }; then
4951 cross_compiling=no
4952 else
4953 if test "$cross_compiling" = maybe; then
4954 cross_compiling=yes
4955 else
4956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004958as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004959If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004960See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004961 fi
4962 fi
4963fi
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4965$as_echo "$cross_compiling" >&6; }
4966
4967rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4968ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004970$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004971if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004972 $as_echo_n "(cached) " >&6
4973else
cristy8b350f62009-11-15 23:12:43 +00004974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004975/* end confdefs.h. */
4976
4977int
4978main ()
4979{
4980
4981 ;
4982 return 0;
4983}
4984_ACEOF
4985rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004986if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004987case "(($ac_try" in
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4990esac
cristy8b350f62009-11-15 23:12:43 +00004991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4992$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004993 (eval "$ac_compile") 2>&5
4994 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4996 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004997 for ac_file in conftest.o conftest.obj conftest.*; do
4998 test -f "$ac_file" || continue;
4999 case $ac_file in
5000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5001 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5002 break;;
5003 esac
5004done
5005else
5006 $as_echo "$as_me: failed program was:" >&5
5007sed 's/^/| /' conftest.$ac_ext >&5
5008
cristy8b350f62009-11-15 23:12:43 +00005009{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005011as_fn_error $? "cannot compute suffix of object files: cannot compile
5012See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005013fi
cristy3ed852e2009-09-05 21:47:34 +00005014rm -f conftest.$ac_cv_objext conftest.$ac_ext
5015fi
cristy8b350f62009-11-15 23:12:43 +00005016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005017$as_echo "$ac_cv_objext" >&6; }
5018OBJEXT=$ac_cv_objext
5019ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005021$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005022if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005023 $as_echo_n "(cached) " >&6
5024else
cristy8b350f62009-11-15 23:12:43 +00005025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005026/* end confdefs.h. */
5027
5028int
5029main ()
5030{
5031#ifndef __GNUC__
5032 choke me
5033#endif
5034
5035 ;
5036 return 0;
5037}
5038_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005039if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005040 ac_compiler_gnu=yes
5041else
cristy8b350f62009-11-15 23:12:43 +00005042 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005043fi
cristy3ed852e2009-09-05 21:47:34 +00005044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045ac_cv_c_compiler_gnu=$ac_compiler_gnu
5046
5047fi
cristy8b350f62009-11-15 23:12:43 +00005048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005049$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5050if test $ac_compiler_gnu = yes; then
5051 GCC=yes
5052else
5053 GCC=
5054fi
5055ac_test_CFLAGS=${CFLAGS+set}
5056ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005058$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005059if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005060 $as_echo_n "(cached) " >&6
5061else
5062 ac_save_c_werror_flag=$ac_c_werror_flag
5063 ac_c_werror_flag=yes
5064 ac_cv_prog_cc_g=no
5065 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005067/* end confdefs.h. */
5068
5069int
5070main ()
5071{
5072
5073 ;
5074 return 0;
5075}
5076_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005077if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005078 ac_cv_prog_cc_g=yes
5079else
cristy8b350f62009-11-15 23:12:43 +00005080 CFLAGS=""
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005082/* end confdefs.h. */
5083
5084int
5085main ()
5086{
5087
5088 ;
5089 return 0;
5090}
5091_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005092if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005093
cristy8b350f62009-11-15 23:12:43 +00005094else
5095 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005096 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005098/* end confdefs.h. */
5099
5100int
5101main ()
5102{
5103
5104 ;
5105 return 0;
5106}
5107_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005108if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005109 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005110fi
cristy3ed852e2009-09-05 21:47:34 +00005111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5112fi
cristy3ed852e2009-09-05 21:47:34 +00005113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114fi
cristy3ed852e2009-09-05 21:47:34 +00005115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 ac_c_werror_flag=$ac_save_c_werror_flag
5117fi
cristy8b350f62009-11-15 23:12:43 +00005118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005119$as_echo "$ac_cv_prog_cc_g" >&6; }
5120if test "$ac_test_CFLAGS" = set; then
5121 CFLAGS=$ac_save_CFLAGS
5122elif test $ac_cv_prog_cc_g = yes; then
5123 if test "$GCC" = yes; then
5124 CFLAGS="-g -O2"
5125 else
5126 CFLAGS="-g"
5127 fi
5128else
5129 if test "$GCC" = yes; then
5130 CFLAGS="-O2"
5131 else
5132 CFLAGS=
5133 fi
5134fi
cristy8b350f62009-11-15 23:12:43 +00005135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005136$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005137if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005138 $as_echo_n "(cached) " >&6
5139else
5140 ac_cv_prog_cc_c89=no
5141ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005143/* end confdefs.h. */
5144#include <stdarg.h>
5145#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005146struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005147/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5148struct buf { int x; };
5149FILE * (*rcsopen) (struct buf *, struct stat *, int);
5150static char *e (p, i)
5151 char **p;
5152 int i;
5153{
5154 return p[i];
5155}
5156static char *f (char * (*g) (char **, int), char **p, ...)
5157{
5158 char *s;
5159 va_list v;
5160 va_start (v,p);
5161 s = g (p, va_arg (v,int));
5162 va_end (v);
5163 return s;
5164}
5165
5166/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5167 function prototypes and stuff, but not '\xHH' hex character constants.
5168 These don't provoke an error unfortunately, instead are silently treated
5169 as 'x'. The following induces an error, until -std is added to get
5170 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5171 array size at least. It's necessary to write '\x00'==0 to get something
5172 that's true only with -std. */
5173int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5174
5175/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5176 inside strings and character constants. */
5177#define FOO(x) 'x'
5178int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5179
5180int test (int i, double x);
5181struct s1 {int (*f) (int a);};
5182struct s2 {int (*f) (double a);};
5183int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5184int argc;
5185char **argv;
5186int
5187main ()
5188{
5189return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5190 ;
5191 return 0;
5192}
5193_ACEOF
5194for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5195 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5196do
5197 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005198 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005199 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005200fi
cristy3ed852e2009-09-05 21:47:34 +00005201rm -f core conftest.err conftest.$ac_objext
5202 test "x$ac_cv_prog_cc_c89" != "xno" && break
5203done
5204rm -f conftest.$ac_ext
5205CC=$ac_save_CC
5206
5207fi
5208# AC_CACHE_VAL
5209case "x$ac_cv_prog_cc_c89" in
5210 x)
cristy8b350f62009-11-15 23:12:43 +00005211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005212$as_echo "none needed" >&6; } ;;
5213 xno)
cristy8b350f62009-11-15 23:12:43 +00005214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005215$as_echo "unsupported" >&6; } ;;
5216 *)
5217 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005219$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5220esac
cristy8b350f62009-11-15 23:12:43 +00005221if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005222
cristy8b350f62009-11-15 23:12:43 +00005223fi
cristy3ed852e2009-09-05 21:47:34 +00005224
5225ac_ext=c
5226ac_cpp='$CPP $CPPFLAGS'
5227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5229ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005230
cristy73bd4a52010-10-05 11:24:23 +00005231depcc="$CC" am_compiler_list=
5232
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5234$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005235if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005236 $as_echo_n "(cached) " >&6
5237else
5238 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5239 # We make a subdir and do the tests there. Otherwise we can end up
5240 # making bogus files that we don't know about and never remove. For
5241 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005242 # making a dummy file named 'D' -- because '-MD' means "put the output
5243 # in D".
cristy7247bba2012-02-05 16:37:27 +00005244 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005245 mkdir conftest.dir
5246 # Copy depcomp to subdir because otherwise we won't find it if we're
5247 # using a relative directory.
5248 cp "$am_depcomp" conftest.dir
5249 cd conftest.dir
5250 # We will build objects and dependencies in a subdirectory because
5251 # it helps to detect inapplicable dependency modes. For instance
5252 # both Tru64's cc and ICC support -MD to output dependencies as a
5253 # side effect of compilation, but ICC will put the dependencies in
5254 # the current directory while Tru64 will put them in the object
5255 # directory.
5256 mkdir sub
5257
5258 am_cv_CC_dependencies_compiler_type=none
5259 if test "$am_compiler_list" = ""; then
5260 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5261 fi
5262 am__universal=false
5263 case " $depcc " in #(
5264 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5265 esac
5266
5267 for depmode in $am_compiler_list; do
5268 # Setup a source with many dependencies, because some compilers
5269 # like to wrap large dependency lists on column 80 (with \), and
5270 # we should not choose a depcomp mode which is confused by this.
5271 #
5272 # We need to recreate these files for each test, as the compiler may
5273 # overwrite some of them when testing with obscure command lines.
5274 # This happens at least with the AIX C compiler.
5275 : > sub/conftest.c
5276 for i in 1 2 3 4 5 6; do
5277 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005278 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5279 # Solaris 10 /bin/sh.
5280 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005281 done
5282 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5283
cristyc0890a62012-07-19 00:18:20 +00005284 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005285 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005286 # handle '-M -o', and we need to detect this. Also, some Intel
5287 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005288 am__obj=sub/conftest.${OBJEXT-o}
5289 am__minus_obj="-o $am__obj"
5290 case $depmode in
5291 gcc)
5292 # This depmode causes a compiler race in universal mode.
5293 test "$am__universal" = false || continue
5294 ;;
5295 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005296 # After this tag, mechanisms are not by side-effect, so they'll
5297 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005298 if test "x$enable_dependency_tracking" = xyes; then
5299 continue
5300 else
5301 break
5302 fi
5303 ;;
cristy7247bba2012-02-05 16:37:27 +00005304 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005305 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005306 # not run yet. These depmodes are late enough in the game, and
5307 # so weak that their functioning should not be impacted.
5308 am__obj=conftest.${OBJEXT-o}
5309 am__minus_obj=
5310 ;;
5311 none) break ;;
5312 esac
5313 if depmode=$depmode \
5314 source=sub/conftest.c object=$am__obj \
5315 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5316 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5317 >/dev/null 2>conftest.err &&
5318 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5319 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5320 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5321 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5322 # icc doesn't choke on unknown options, it will just issue warnings
5323 # or remarks (even with -Werror). So we grep stderr for any message
5324 # that says an option was ignored or not supported.
5325 # When given -MP, icc 7.0 and 7.1 complain thusly:
5326 # icc: Command line warning: ignoring option '-M'; no argument required
5327 # The diagnosis changed in icc 8.0:
5328 # icc: Command line remark: option '-MP' not supported
5329 if (grep 'ignoring option' conftest.err ||
5330 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5331 am_cv_CC_dependencies_compiler_type=$depmode
5332 break
5333 fi
5334 fi
5335 done
5336
5337 cd ..
5338 rm -rf conftest.dir
5339else
5340 am_cv_CC_dependencies_compiler_type=none
5341fi
5342
5343fi
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5345$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5346CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5347
5348 if
5349 test "x$enable_dependency_tracking" != xno \
5350 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5351 am__fastdepCC_TRUE=
5352 am__fastdepCC_FALSE='#'
5353else
5354 am__fastdepCC_TRUE='#'
5355 am__fastdepCC_FALSE=
5356fi
5357
5358
cristy3ed852e2009-09-05 21:47:34 +00005359
cristya0b81c32010-01-22 02:54:33 +00005360ac_ext=c
5361ac_cpp='$CPP $CPPFLAGS'
5362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5364ac_compiler_gnu=$ac_cv_c_compiler_gnu
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5366$as_echo_n "checking how to run the C preprocessor... " >&6; }
5367# On Suns, sometimes $CPP names a directory.
5368if test -n "$CPP" && test -d "$CPP"; then
5369 CPP=
5370fi
5371if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005372 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005373 $as_echo_n "(cached) " >&6
5374else
5375 # Double quotes because CPP needs to be expanded
5376 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5377 do
5378 ac_preproc_ok=false
5379for ac_c_preproc_warn_flag in '' yes
5380do
5381 # Use a header file that comes with gcc, so configuring glibc
5382 # with a fresh cross-compiler works.
5383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5384 # <limits.h> exists even on freestanding compilers.
5385 # On the NeXT, cc -E runs the code through the compiler's parser,
5386 # not just through cpp. "Syntax error" is here to catch this case.
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388/* end confdefs.h. */
5389#ifdef __STDC__
5390# include <limits.h>
5391#else
5392# include <assert.h>
5393#endif
5394 Syntax error
5395_ACEOF
5396if ac_fn_c_try_cpp "$LINENO"; then :
5397
5398else
5399 # Broken: fails on valid input.
5400continue
5401fi
cristyda16f162011-02-19 23:52:17 +00005402rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005403
5404 # OK, works on sane cases. Now check whether nonexistent headers
5405 # can be detected and how.
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407/* end confdefs.h. */
5408#include <ac_nonexistent.h>
5409_ACEOF
5410if ac_fn_c_try_cpp "$LINENO"; then :
5411 # Broken: success on invalid input.
5412continue
5413else
5414 # Passes both tests.
5415ac_preproc_ok=:
5416break
5417fi
cristyda16f162011-02-19 23:52:17 +00005418rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005419
5420done
5421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005422rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005423if $ac_preproc_ok; then :
5424 break
5425fi
5426
5427 done
5428 ac_cv_prog_CPP=$CPP
5429
5430fi
5431 CPP=$ac_cv_prog_CPP
5432else
5433 ac_cv_prog_CPP=$CPP
5434fi
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5436$as_echo "$CPP" >&6; }
5437ac_preproc_ok=false
5438for ac_c_preproc_warn_flag in '' yes
5439do
5440 # Use a header file that comes with gcc, so configuring glibc
5441 # with a fresh cross-compiler works.
5442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5443 # <limits.h> exists even on freestanding compilers.
5444 # On the NeXT, cc -E runs the code through the compiler's parser,
5445 # not just through cpp. "Syntax error" is here to catch this case.
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447/* end confdefs.h. */
5448#ifdef __STDC__
5449# include <limits.h>
5450#else
5451# include <assert.h>
5452#endif
5453 Syntax error
5454_ACEOF
5455if ac_fn_c_try_cpp "$LINENO"; then :
5456
5457else
5458 # Broken: fails on valid input.
5459continue
5460fi
cristyda16f162011-02-19 23:52:17 +00005461rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005462
5463 # OK, works on sane cases. Now check whether nonexistent headers
5464 # can be detected and how.
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466/* end confdefs.h. */
5467#include <ac_nonexistent.h>
5468_ACEOF
5469if ac_fn_c_try_cpp "$LINENO"; then :
5470 # Broken: success on invalid input.
5471continue
5472else
5473 # Passes both tests.
5474ac_preproc_ok=:
5475break
5476fi
cristyda16f162011-02-19 23:52:17 +00005477rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005478
5479done
5480# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005481rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005482if $ac_preproc_ok; then :
5483
5484else
5485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005487as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5488See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005489fi
5490
5491ac_ext=c
5492ac_cpp='$CPP $CPPFLAGS'
5493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5495ac_compiler_gnu=$ac_cv_c_compiler_gnu
5496
5497
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5499$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005500if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005501 $as_echo_n "(cached) " >&6
5502else
5503 if test -z "$GREP"; then
5504 ac_path_GREP_found=false
5505 # Loop through the user's path and test for each of PROGNAME-LIST
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5508do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_prog in grep ggrep; do
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005514 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005515# Check for GNU ac_path_GREP and select it if it is found.
5516 # Check for GNU $ac_path_GREP
5517case `"$ac_path_GREP" --version 2>&1` in
5518*GNU*)
5519 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5520*)
5521 ac_count=0
5522 $as_echo_n 0123456789 >"conftest.in"
5523 while :
5524 do
5525 cat "conftest.in" "conftest.in" >"conftest.tmp"
5526 mv "conftest.tmp" "conftest.in"
5527 cp "conftest.in" "conftest.nl"
5528 $as_echo 'GREP' >> "conftest.nl"
5529 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5531 as_fn_arith $ac_count + 1 && ac_count=$as_val
5532 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5533 # Best one so far, save it but keep looking for a better one
5534 ac_cv_path_GREP="$ac_path_GREP"
5535 ac_path_GREP_max=$ac_count
5536 fi
5537 # 10*(2^10) chars as input seems more than enough
5538 test $ac_count -gt 10 && break
5539 done
5540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5541esac
5542
5543 $ac_path_GREP_found && break 3
5544 done
5545 done
5546 done
5547IFS=$as_save_IFS
5548 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005549 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005550 fi
5551else
5552 ac_cv_path_GREP=$GREP
5553fi
5554
5555fi
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5557$as_echo "$ac_cv_path_GREP" >&6; }
5558 GREP="$ac_cv_path_GREP"
5559
5560
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5562$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005563if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005564 $as_echo_n "(cached) " >&6
5565else
5566 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5567 then ac_cv_path_EGREP="$GREP -E"
5568 else
5569 if test -z "$EGREP"; then
5570 ac_path_EGREP_found=false
5571 # Loop through the user's path and test for each of PROGNAME-LIST
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5574do
5575 IFS=$as_save_IFS
5576 test -z "$as_dir" && as_dir=.
5577 for ac_prog in egrep; do
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005580 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005581# Check for GNU ac_path_EGREP and select it if it is found.
5582 # Check for GNU $ac_path_EGREP
5583case `"$ac_path_EGREP" --version 2>&1` in
5584*GNU*)
5585 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5586*)
5587 ac_count=0
5588 $as_echo_n 0123456789 >"conftest.in"
5589 while :
5590 do
5591 cat "conftest.in" "conftest.in" >"conftest.tmp"
5592 mv "conftest.tmp" "conftest.in"
5593 cp "conftest.in" "conftest.nl"
5594 $as_echo 'EGREP' >> "conftest.nl"
5595 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5597 as_fn_arith $ac_count + 1 && ac_count=$as_val
5598 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5599 # Best one so far, save it but keep looking for a better one
5600 ac_cv_path_EGREP="$ac_path_EGREP"
5601 ac_path_EGREP_max=$ac_count
5602 fi
5603 # 10*(2^10) chars as input seems more than enough
5604 test $ac_count -gt 10 && break
5605 done
5606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5607esac
5608
5609 $ac_path_EGREP_found && break 3
5610 done
5611 done
5612 done
5613IFS=$as_save_IFS
5614 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005615 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005616 fi
5617else
5618 ac_cv_path_EGREP=$EGREP
5619fi
5620
5621 fi
5622fi
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5624$as_echo "$ac_cv_path_EGREP" >&6; }
5625 EGREP="$ac_cv_path_EGREP"
5626
5627
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5629$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005630if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005631 $as_echo_n "(cached) " >&6
5632else
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634/* end confdefs.h. */
5635#include <stdlib.h>
5636#include <stdarg.h>
5637#include <string.h>
5638#include <float.h>
5639
5640int
5641main ()
5642{
5643
5644 ;
5645 return 0;
5646}
5647_ACEOF
5648if ac_fn_c_try_compile "$LINENO"; then :
5649 ac_cv_header_stdc=yes
5650else
5651 ac_cv_header_stdc=no
5652fi
5653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5654
5655if test $ac_cv_header_stdc = yes; then
5656 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658/* end confdefs.h. */
5659#include <string.h>
5660
5661_ACEOF
5662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5663 $EGREP "memchr" >/dev/null 2>&1; then :
5664
5665else
5666 ac_cv_header_stdc=no
5667fi
5668rm -f conftest*
5669
5670fi
5671
5672if test $ac_cv_header_stdc = yes; then
5673 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675/* end confdefs.h. */
5676#include <stdlib.h>
5677
5678_ACEOF
5679if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5680 $EGREP "free" >/dev/null 2>&1; then :
5681
5682else
5683 ac_cv_header_stdc=no
5684fi
5685rm -f conftest*
5686
5687fi
5688
5689if test $ac_cv_header_stdc = yes; then
5690 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5691 if test "$cross_compiling" = yes; then :
5692 :
5693else
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695/* end confdefs.h. */
5696#include <ctype.h>
5697#include <stdlib.h>
5698#if ((' ' & 0x0FF) == 0x020)
5699# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5700# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5701#else
5702# define ISLOWER(c) \
5703 (('a' <= (c) && (c) <= 'i') \
5704 || ('j' <= (c) && (c) <= 'r') \
5705 || ('s' <= (c) && (c) <= 'z'))
5706# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5707#endif
5708
5709#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5710int
5711main ()
5712{
5713 int i;
5714 for (i = 0; i < 256; i++)
5715 if (XOR (islower (i), ISLOWER (i))
5716 || toupper (i) != TOUPPER (i))
5717 return 2;
5718 return 0;
5719}
5720_ACEOF
5721if ac_fn_c_try_run "$LINENO"; then :
5722
5723else
5724 ac_cv_header_stdc=no
5725fi
5726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5727 conftest.$ac_objext conftest.beam conftest.$ac_ext
5728fi
5729
5730fi
5731fi
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5733$as_echo "$ac_cv_header_stdc" >&6; }
5734if test $ac_cv_header_stdc = yes; then
5735
5736$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5737
5738fi
5739
5740# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5741for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5742 inttypes.h stdint.h unistd.h
5743do :
5744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5745ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5746"
cristy98dddb52010-11-04 00:30:15 +00005747if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005748 cat >>confdefs.h <<_ACEOF
5749#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5750_ACEOF
5751
5752fi
5753
5754done
5755
5756
5757
5758 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 +00005759if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005760 MINIX=yes
5761else
5762 MINIX=
5763fi
5764
5765
5766 if test "$MINIX" = yes; then
5767
5768$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5769
5770
5771$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5772
5773
5774$as_echo "#define _MINIX 1" >>confdefs.h
5775
5776 fi
5777
5778
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5780$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005781if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005782 $as_echo_n "(cached) " >&6
5783else
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785/* end confdefs.h. */
5786
cristy14fefe52012-05-21 00:59:18 +00005787# define __EXTENSIONS__ 1
5788 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005789int
5790main ()
5791{
5792
5793 ;
5794 return 0;
5795}
5796_ACEOF
5797if ac_fn_c_try_compile "$LINENO"; then :
5798 ac_cv_safe_to_define___extensions__=yes
5799else
5800 ac_cv_safe_to_define___extensions__=no
5801fi
5802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803fi
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5805$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5806 test $ac_cv_safe_to_define___extensions__ = yes &&
5807 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5808
5809 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5810
5811 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5812
5813 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5814
5815 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5816
5817
5818
5819# Check for programs
5820ac_ext=c
5821ac_cpp='$CPP $CPPFLAGS'
5822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5824ac_compiler_gnu=$ac_cv_c_compiler_gnu
5825if test -n "$ac_tool_prefix"; then
5826 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5827set dummy ${ac_tool_prefix}gcc; ac_word=$2
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005830if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005831 $as_echo_n "(cached) " >&6
5832else
5833 if test -n "$CC"; then
5834 ac_cv_prog_CC="$CC" # Let the user override the test.
5835else
5836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837for as_dir in $PATH
5838do
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005843 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5846 fi
5847done
5848 done
5849IFS=$as_save_IFS
5850
5851fi
5852fi
5853CC=$ac_cv_prog_CC
5854if test -n "$CC"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5856$as_echo "$CC" >&6; }
5857else
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859$as_echo "no" >&6; }
5860fi
5861
5862
5863fi
5864if test -z "$ac_cv_prog_CC"; then
5865 ac_ct_CC=$CC
5866 # Extract the first word of "gcc", so it can be a program name with args.
5867set dummy gcc; ac_word=$2
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005870if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005871 $as_echo_n "(cached) " >&6
5872else
5873 if test -n "$ac_ct_CC"; then
5874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5875else
5876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877for as_dir in $PATH
5878do
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005883 ac_cv_prog_ac_ct_CC="gcc"
5884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 break 2
5886 fi
5887done
5888 done
5889IFS=$as_save_IFS
5890
5891fi
5892fi
5893ac_ct_CC=$ac_cv_prog_ac_ct_CC
5894if test -n "$ac_ct_CC"; then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5896$as_echo "$ac_ct_CC" >&6; }
5897else
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899$as_echo "no" >&6; }
5900fi
5901
5902 if test "x$ac_ct_CC" = x; then
5903 CC=""
5904 else
5905 case $cross_compiling:$ac_tool_warned in
5906yes:)
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5909ac_tool_warned=yes ;;
5910esac
5911 CC=$ac_ct_CC
5912 fi
5913else
5914 CC="$ac_cv_prog_CC"
5915fi
5916
5917if test -z "$CC"; then
5918 if test -n "$ac_tool_prefix"; then
5919 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5920set dummy ${ac_tool_prefix}cc; ac_word=$2
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005923if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005924 $as_echo_n "(cached) " >&6
5925else
5926 if test -n "$CC"; then
5927 ac_cv_prog_CC="$CC" # Let the user override the test.
5928else
5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005936 ac_cv_prog_CC="${ac_tool_prefix}cc"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5939 fi
5940done
5941 done
5942IFS=$as_save_IFS
5943
5944fi
5945fi
5946CC=$ac_cv_prog_CC
5947if test -n "$CC"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5949$as_echo "$CC" >&6; }
5950else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952$as_echo "no" >&6; }
5953fi
5954
5955
5956 fi
5957fi
5958if test -z "$CC"; then
5959 # Extract the first word of "cc", so it can be a program name with args.
5960set dummy cc; ac_word=$2
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005963if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005964 $as_echo_n "(cached) " >&6
5965else
5966 if test -n "$CC"; then
5967 ac_cv_prog_CC="$CC" # Let the user override the test.
5968else
5969 ac_prog_rejected=no
5970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971for as_dir in $PATH
5972do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005977 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5978 ac_prog_rejected=yes
5979 continue
5980 fi
5981 ac_cv_prog_CC="cc"
5982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 break 2
5984 fi
5985done
5986 done
5987IFS=$as_save_IFS
5988
5989if test $ac_prog_rejected = yes; then
5990 # We found a bogon in the path, so make sure we never use it.
5991 set dummy $ac_cv_prog_CC
5992 shift
5993 if test $# != 0; then
5994 # We chose a different compiler from the bogus one.
5995 # However, it has the same basename, so the bogon will be chosen
5996 # first if we set CC to just the basename; use the full file name.
5997 shift
5998 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5999 fi
6000fi
6001fi
6002fi
6003CC=$ac_cv_prog_CC
6004if test -n "$CC"; then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6006$as_echo "$CC" >&6; }
6007else
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009$as_echo "no" >&6; }
6010fi
6011
6012
6013fi
6014if test -z "$CC"; then
6015 if test -n "$ac_tool_prefix"; then
6016 for ac_prog in cl.exe
6017 do
6018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6019set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006022if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006023 $as_echo_n "(cached) " >&6
6024else
6025 if test -n "$CC"; then
6026 ac_cv_prog_CC="$CC" # Let the user override the test.
6027else
6028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029for as_dir in $PATH
6030do
6031 IFS=$as_save_IFS
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006035 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 break 2
6038 fi
6039done
6040 done
6041IFS=$as_save_IFS
6042
6043fi
6044fi
6045CC=$ac_cv_prog_CC
6046if test -n "$CC"; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6048$as_echo "$CC" >&6; }
6049else
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051$as_echo "no" >&6; }
6052fi
6053
6054
6055 test -n "$CC" && break
6056 done
6057fi
6058if test -z "$CC"; then
6059 ac_ct_CC=$CC
6060 for ac_prog in cl.exe
6061do
6062 # Extract the first word of "$ac_prog", so it can be a program name with args.
6063set dummy $ac_prog; ac_word=$2
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006066if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006067 $as_echo_n "(cached) " >&6
6068else
6069 if test -n "$ac_ct_CC"; then
6070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6071else
6072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073for as_dir in $PATH
6074do
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006079 ac_cv_prog_ac_ct_CC="$ac_prog"
6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 break 2
6082 fi
6083done
6084 done
6085IFS=$as_save_IFS
6086
6087fi
6088fi
6089ac_ct_CC=$ac_cv_prog_ac_ct_CC
6090if test -n "$ac_ct_CC"; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6092$as_echo "$ac_ct_CC" >&6; }
6093else
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095$as_echo "no" >&6; }
6096fi
6097
6098
6099 test -n "$ac_ct_CC" && break
6100done
6101
6102 if test "x$ac_ct_CC" = x; then
6103 CC=""
6104 else
6105 case $cross_compiling:$ac_tool_warned in
6106yes:)
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6109ac_tool_warned=yes ;;
6110esac
6111 CC=$ac_ct_CC
6112 fi
6113fi
6114
6115fi
6116
6117
6118test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006120as_fn_error $? "no acceptable C compiler found in \$PATH
6121See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006122
6123# Provide some information about the compiler.
6124$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6125set X $ac_compile
6126ac_compiler=$2
6127for ac_option in --version -v -V -qversion; do
6128 { { ac_try="$ac_compiler $ac_option >&5"
6129case "(($ac_try" in
6130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131 *) ac_try_echo=$ac_try;;
6132esac
6133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6134$as_echo "$ac_try_echo"; } >&5
6135 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6136 ac_status=$?
6137 if test -s conftest.err; then
6138 sed '10a\
6139... rest of stderr output deleted ...
6140 10q' conftest.err >conftest.er1
6141 cat conftest.er1 >&5
6142 fi
6143 rm -f conftest.er1 conftest.err
6144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6145 test $ac_status = 0; }
6146done
6147
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6149$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006150if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006151 $as_echo_n "(cached) " >&6
6152else
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154/* end confdefs.h. */
6155
6156int
6157main ()
6158{
6159#ifndef __GNUC__
6160 choke me
6161#endif
6162
6163 ;
6164 return 0;
6165}
6166_ACEOF
6167if ac_fn_c_try_compile "$LINENO"; then :
6168 ac_compiler_gnu=yes
6169else
6170 ac_compiler_gnu=no
6171fi
6172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173ac_cv_c_compiler_gnu=$ac_compiler_gnu
6174
6175fi
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6177$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6178if test $ac_compiler_gnu = yes; then
6179 GCC=yes
6180else
6181 GCC=
6182fi
6183ac_test_CFLAGS=${CFLAGS+set}
6184ac_save_CFLAGS=$CFLAGS
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6186$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006187if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006188 $as_echo_n "(cached) " >&6
6189else
6190 ac_save_c_werror_flag=$ac_c_werror_flag
6191 ac_c_werror_flag=yes
6192 ac_cv_prog_cc_g=no
6193 CFLAGS="-g"
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195/* end confdefs.h. */
6196
6197int
6198main ()
6199{
6200
6201 ;
6202 return 0;
6203}
6204_ACEOF
6205if ac_fn_c_try_compile "$LINENO"; then :
6206 ac_cv_prog_cc_g=yes
6207else
6208 CFLAGS=""
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210/* end confdefs.h. */
6211
6212int
6213main ()
6214{
6215
6216 ;
6217 return 0;
6218}
6219_ACEOF
6220if ac_fn_c_try_compile "$LINENO"; then :
6221
6222else
6223 ac_c_werror_flag=$ac_save_c_werror_flag
6224 CFLAGS="-g"
6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226/* end confdefs.h. */
6227
6228int
6229main ()
6230{
6231
6232 ;
6233 return 0;
6234}
6235_ACEOF
6236if ac_fn_c_try_compile "$LINENO"; then :
6237 ac_cv_prog_cc_g=yes
6238fi
6239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240fi
6241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242fi
6243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244 ac_c_werror_flag=$ac_save_c_werror_flag
6245fi
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6247$as_echo "$ac_cv_prog_cc_g" >&6; }
6248if test "$ac_test_CFLAGS" = set; then
6249 CFLAGS=$ac_save_CFLAGS
6250elif test $ac_cv_prog_cc_g = yes; then
6251 if test "$GCC" = yes; then
6252 CFLAGS="-g -O2"
6253 else
6254 CFLAGS="-g"
6255 fi
6256else
6257 if test "$GCC" = yes; then
6258 CFLAGS="-O2"
6259 else
6260 CFLAGS=
6261 fi
6262fi
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6264$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006265if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006266 $as_echo_n "(cached) " >&6
6267else
6268 ac_cv_prog_cc_c89=no
6269ac_save_CC=$CC
6270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271/* end confdefs.h. */
6272#include <stdarg.h>
6273#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006274struct stat;
cristya0b81c32010-01-22 02:54:33 +00006275/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6276struct buf { int x; };
6277FILE * (*rcsopen) (struct buf *, struct stat *, int);
6278static char *e (p, i)
6279 char **p;
6280 int i;
6281{
6282 return p[i];
6283}
6284static char *f (char * (*g) (char **, int), char **p, ...)
6285{
6286 char *s;
6287 va_list v;
6288 va_start (v,p);
6289 s = g (p, va_arg (v,int));
6290 va_end (v);
6291 return s;
6292}
6293
6294/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6295 function prototypes and stuff, but not '\xHH' hex character constants.
6296 These don't provoke an error unfortunately, instead are silently treated
6297 as 'x'. The following induces an error, until -std is added to get
6298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6299 array size at least. It's necessary to write '\x00'==0 to get something
6300 that's true only with -std. */
6301int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6302
6303/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6304 inside strings and character constants. */
6305#define FOO(x) 'x'
6306int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6307
6308int test (int i, double x);
6309struct s1 {int (*f) (int a);};
6310struct s2 {int (*f) (double a);};
6311int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6312int argc;
6313char **argv;
6314int
6315main ()
6316{
6317return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6318 ;
6319 return 0;
6320}
6321_ACEOF
6322for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6323 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6324do
6325 CC="$ac_save_CC $ac_arg"
6326 if ac_fn_c_try_compile "$LINENO"; then :
6327 ac_cv_prog_cc_c89=$ac_arg
6328fi
6329rm -f core conftest.err conftest.$ac_objext
6330 test "x$ac_cv_prog_cc_c89" != "xno" && break
6331done
6332rm -f conftest.$ac_ext
6333CC=$ac_save_CC
6334
6335fi
6336# AC_CACHE_VAL
6337case "x$ac_cv_prog_cc_c89" in
6338 x)
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6340$as_echo "none needed" >&6; } ;;
6341 xno)
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6343$as_echo "unsupported" >&6; } ;;
6344 *)
6345 CC="$CC $ac_cv_prog_cc_c89"
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6347$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6348esac
6349if test "x$ac_cv_prog_cc_c89" != xno; then :
6350
6351fi
6352
6353ac_ext=c
6354ac_cpp='$CPP $CPPFLAGS'
6355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357ac_compiler_gnu=$ac_cv_c_compiler_gnu
6358
cristy73bd4a52010-10-05 11:24:23 +00006359depcc="$CC" am_compiler_list=
6360
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6362$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006363if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006364 $as_echo_n "(cached) " >&6
6365else
6366 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6367 # We make a subdir and do the tests there. Otherwise we can end up
6368 # making bogus files that we don't know about and never remove. For
6369 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006370 # making a dummy file named 'D' -- because '-MD' means "put the output
6371 # in D".
cristy7247bba2012-02-05 16:37:27 +00006372 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006373 mkdir conftest.dir
6374 # Copy depcomp to subdir because otherwise we won't find it if we're
6375 # using a relative directory.
6376 cp "$am_depcomp" conftest.dir
6377 cd conftest.dir
6378 # We will build objects and dependencies in a subdirectory because
6379 # it helps to detect inapplicable dependency modes. For instance
6380 # both Tru64's cc and ICC support -MD to output dependencies as a
6381 # side effect of compilation, but ICC will put the dependencies in
6382 # the current directory while Tru64 will put them in the object
6383 # directory.
6384 mkdir sub
6385
6386 am_cv_CC_dependencies_compiler_type=none
6387 if test "$am_compiler_list" = ""; then
6388 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6389 fi
6390 am__universal=false
6391 case " $depcc " in #(
6392 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6393 esac
6394
6395 for depmode in $am_compiler_list; do
6396 # Setup a source with many dependencies, because some compilers
6397 # like to wrap large dependency lists on column 80 (with \), and
6398 # we should not choose a depcomp mode which is confused by this.
6399 #
6400 # We need to recreate these files for each test, as the compiler may
6401 # overwrite some of them when testing with obscure command lines.
6402 # This happens at least with the AIX C compiler.
6403 : > sub/conftest.c
6404 for i in 1 2 3 4 5 6; do
6405 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006406 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6407 # Solaris 10 /bin/sh.
6408 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006409 done
6410 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6411
cristyc0890a62012-07-19 00:18:20 +00006412 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006413 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006414 # handle '-M -o', and we need to detect this. Also, some Intel
6415 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006416 am__obj=sub/conftest.${OBJEXT-o}
6417 am__minus_obj="-o $am__obj"
6418 case $depmode in
6419 gcc)
6420 # This depmode causes a compiler race in universal mode.
6421 test "$am__universal" = false || continue
6422 ;;
6423 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006424 # After this tag, mechanisms are not by side-effect, so they'll
6425 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006426 if test "x$enable_dependency_tracking" = xyes; then
6427 continue
6428 else
6429 break
6430 fi
6431 ;;
cristy7247bba2012-02-05 16:37:27 +00006432 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006433 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006434 # not run yet. These depmodes are late enough in the game, and
6435 # so weak that their functioning should not be impacted.
6436 am__obj=conftest.${OBJEXT-o}
6437 am__minus_obj=
6438 ;;
6439 none) break ;;
6440 esac
6441 if depmode=$depmode \
6442 source=sub/conftest.c object=$am__obj \
6443 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6444 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6445 >/dev/null 2>conftest.err &&
6446 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6447 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6448 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6449 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6450 # icc doesn't choke on unknown options, it will just issue warnings
6451 # or remarks (even with -Werror). So we grep stderr for any message
6452 # that says an option was ignored or not supported.
6453 # When given -MP, icc 7.0 and 7.1 complain thusly:
6454 # icc: Command line warning: ignoring option '-M'; no argument required
6455 # The diagnosis changed in icc 8.0:
6456 # icc: Command line remark: option '-MP' not supported
6457 if (grep 'ignoring option' conftest.err ||
6458 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6459 am_cv_CC_dependencies_compiler_type=$depmode
6460 break
6461 fi
6462 fi
6463 done
6464
6465 cd ..
6466 rm -rf conftest.dir
6467else
6468 am_cv_CC_dependencies_compiler_type=none
6469fi
6470
6471fi
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6473$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6474CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6475
6476 if
6477 test "x$enable_dependency_tracking" != xno \
6478 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6479 am__fastdepCC_TRUE=
6480 am__fastdepCC_FALSE='#'
6481else
6482 am__fastdepCC_TRUE='#'
6483 am__fastdepCC_FALSE=
6484fi
6485
6486
cristy95646052009-11-28 23:05:30 +00006487ac_ext=cpp
6488ac_cpp='$CXXCPP $CPPFLAGS'
6489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6492if test -z "$CXX"; then
6493 if test -n "$CCC"; then
6494 CXX=$CCC
6495 else
6496 if test -n "$ac_tool_prefix"; then
6497 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6498 do
6499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6500set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006503if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006504 $as_echo_n "(cached) " >&6
6505else
6506 if test -n "$CXX"; then
6507 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6508else
6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510for as_dir in $PATH
6511do
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006516 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 break 2
6519 fi
6520done
6521 done
6522IFS=$as_save_IFS
6523
6524fi
6525fi
6526CXX=$ac_cv_prog_CXX
6527if test -n "$CXX"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6529$as_echo "$CXX" >&6; }
6530else
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532$as_echo "no" >&6; }
6533fi
6534
6535
6536 test -n "$CXX" && break
6537 done
6538fi
6539if test -z "$CXX"; then
6540 ac_ct_CXX=$CXX
6541 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6542do
6543 # Extract the first word of "$ac_prog", so it can be a program name with args.
6544set dummy $ac_prog; ac_word=$2
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006547if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006548 $as_echo_n "(cached) " >&6
6549else
6550 if test -n "$ac_ct_CXX"; then
6551 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6552else
6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554for as_dir in $PATH
6555do
6556 IFS=$as_save_IFS
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006560 ac_cv_prog_ac_ct_CXX="$ac_prog"
6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 break 2
6563 fi
6564done
6565 done
6566IFS=$as_save_IFS
6567
6568fi
6569fi
6570ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6571if test -n "$ac_ct_CXX"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6573$as_echo "$ac_ct_CXX" >&6; }
6574else
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576$as_echo "no" >&6; }
6577fi
6578
6579
6580 test -n "$ac_ct_CXX" && break
6581done
6582
6583 if test "x$ac_ct_CXX" = x; then
6584 CXX="g++"
6585 else
6586 case $cross_compiling:$ac_tool_warned in
6587yes:)
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6590ac_tool_warned=yes ;;
6591esac
6592 CXX=$ac_ct_CXX
6593 fi
6594fi
6595
6596 fi
6597fi
6598# Provide some information about the compiler.
6599$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6600set X $ac_compile
6601ac_compiler=$2
6602for ac_option in --version -v -V -qversion; do
6603 { { ac_try="$ac_compiler $ac_option >&5"
6604case "(($ac_try" in
6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6607esac
6608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6609$as_echo "$ac_try_echo"; } >&5
6610 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6611 ac_status=$?
6612 if test -s conftest.err; then
6613 sed '10a\
6614... rest of stderr output deleted ...
6615 10q' conftest.err >conftest.er1
6616 cat conftest.er1 >&5
6617 fi
6618 rm -f conftest.er1 conftest.err
6619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6620 test $ac_status = 0; }
6621done
6622
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6624$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006625if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006626 $as_echo_n "(cached) " >&6
6627else
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629/* end confdefs.h. */
6630
6631int
6632main ()
6633{
6634#ifndef __GNUC__
6635 choke me
6636#endif
6637
6638 ;
6639 return 0;
6640}
6641_ACEOF
6642if ac_fn_cxx_try_compile "$LINENO"; then :
6643 ac_compiler_gnu=yes
6644else
6645 ac_compiler_gnu=no
6646fi
6647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6649
6650fi
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6652$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6653if test $ac_compiler_gnu = yes; then
6654 GXX=yes
6655else
6656 GXX=
6657fi
6658ac_test_CXXFLAGS=${CXXFLAGS+set}
6659ac_save_CXXFLAGS=$CXXFLAGS
6660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6661$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006662if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006663 $as_echo_n "(cached) " >&6
6664else
6665 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6666 ac_cxx_werror_flag=yes
6667 ac_cv_prog_cxx_g=no
6668 CXXFLAGS="-g"
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670/* end confdefs.h. */
6671
6672int
6673main ()
6674{
6675
6676 ;
6677 return 0;
6678}
6679_ACEOF
6680if ac_fn_cxx_try_compile "$LINENO"; then :
6681 ac_cv_prog_cxx_g=yes
6682else
6683 CXXFLAGS=""
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685/* end confdefs.h. */
6686
6687int
6688main ()
6689{
6690
6691 ;
6692 return 0;
6693}
6694_ACEOF
6695if ac_fn_cxx_try_compile "$LINENO"; then :
6696
6697else
6698 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6699 CXXFLAGS="-g"
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h. */
6702
6703int
6704main ()
6705{
6706
6707 ;
6708 return 0;
6709}
6710_ACEOF
6711if ac_fn_cxx_try_compile "$LINENO"; then :
6712 ac_cv_prog_cxx_g=yes
6713fi
6714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715fi
6716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717fi
6718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6720fi
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6722$as_echo "$ac_cv_prog_cxx_g" >&6; }
6723if test "$ac_test_CXXFLAGS" = set; then
6724 CXXFLAGS=$ac_save_CXXFLAGS
6725elif test $ac_cv_prog_cxx_g = yes; then
6726 if test "$GXX" = yes; then
6727 CXXFLAGS="-g -O2"
6728 else
6729 CXXFLAGS="-g"
6730 fi
6731else
6732 if test "$GXX" = yes; then
6733 CXXFLAGS="-O2"
6734 else
6735 CXXFLAGS=
6736 fi
6737fi
6738ac_ext=c
6739ac_cpp='$CPP $CPPFLAGS'
6740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6742ac_compiler_gnu=$ac_cv_c_compiler_gnu
6743
cristy73bd4a52010-10-05 11:24:23 +00006744depcc="$CXX" am_compiler_list=
6745
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6747$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006748if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006749 $as_echo_n "(cached) " >&6
6750else
6751 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6752 # We make a subdir and do the tests there. Otherwise we can end up
6753 # making bogus files that we don't know about and never remove. For
6754 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006755 # making a dummy file named 'D' -- because '-MD' means "put the output
6756 # in D".
cristy7247bba2012-02-05 16:37:27 +00006757 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006758 mkdir conftest.dir
6759 # Copy depcomp to subdir because otherwise we won't find it if we're
6760 # using a relative directory.
6761 cp "$am_depcomp" conftest.dir
6762 cd conftest.dir
6763 # We will build objects and dependencies in a subdirectory because
6764 # it helps to detect inapplicable dependency modes. For instance
6765 # both Tru64's cc and ICC support -MD to output dependencies as a
6766 # side effect of compilation, but ICC will put the dependencies in
6767 # the current directory while Tru64 will put them in the object
6768 # directory.
6769 mkdir sub
6770
6771 am_cv_CXX_dependencies_compiler_type=none
6772 if test "$am_compiler_list" = ""; then
6773 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6774 fi
6775 am__universal=false
6776 case " $depcc " in #(
6777 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6778 esac
6779
6780 for depmode in $am_compiler_list; do
6781 # Setup a source with many dependencies, because some compilers
6782 # like to wrap large dependency lists on column 80 (with \), and
6783 # we should not choose a depcomp mode which is confused by this.
6784 #
6785 # We need to recreate these files for each test, as the compiler may
6786 # overwrite some of them when testing with obscure command lines.
6787 # This happens at least with the AIX C compiler.
6788 : > sub/conftest.c
6789 for i in 1 2 3 4 5 6; do
6790 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006791 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6792 # Solaris 10 /bin/sh.
6793 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006794 done
6795 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6796
cristyc0890a62012-07-19 00:18:20 +00006797 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006798 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006799 # handle '-M -o', and we need to detect this. Also, some Intel
6800 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006801 am__obj=sub/conftest.${OBJEXT-o}
6802 am__minus_obj="-o $am__obj"
6803 case $depmode in
6804 gcc)
6805 # This depmode causes a compiler race in universal mode.
6806 test "$am__universal" = false || continue
6807 ;;
6808 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006809 # After this tag, mechanisms are not by side-effect, so they'll
6810 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006811 if test "x$enable_dependency_tracking" = xyes; then
6812 continue
6813 else
6814 break
6815 fi
6816 ;;
cristy7247bba2012-02-05 16:37:27 +00006817 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006818 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006819 # not run yet. These depmodes are late enough in the game, and
6820 # so weak that their functioning should not be impacted.
6821 am__obj=conftest.${OBJEXT-o}
6822 am__minus_obj=
6823 ;;
6824 none) break ;;
6825 esac
6826 if depmode=$depmode \
6827 source=sub/conftest.c object=$am__obj \
6828 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6829 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6830 >/dev/null 2>conftest.err &&
6831 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6832 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6833 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6834 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6835 # icc doesn't choke on unknown options, it will just issue warnings
6836 # or remarks (even with -Werror). So we grep stderr for any message
6837 # that says an option was ignored or not supported.
6838 # When given -MP, icc 7.0 and 7.1 complain thusly:
6839 # icc: Command line warning: ignoring option '-M'; no argument required
6840 # The diagnosis changed in icc 8.0:
6841 # icc: Command line remark: option '-MP' not supported
6842 if (grep 'ignoring option' conftest.err ||
6843 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6844 am_cv_CXX_dependencies_compiler_type=$depmode
6845 break
6846 fi
6847 fi
6848 done
6849
6850 cd ..
6851 rm -rf conftest.dir
6852else
6853 am_cv_CXX_dependencies_compiler_type=none
6854fi
6855
6856fi
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6858$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6859CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6860
6861 if
6862 test "x$enable_dependency_tracking" != xno \
6863 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6864 am__fastdepCXX_TRUE=
6865 am__fastdepCXX_FALSE='#'
6866else
6867 am__fastdepCXX_TRUE='#'
6868 am__fastdepCXX_FALSE=
6869fi
6870
6871
cristy8b350f62009-11-15 23:12:43 +00006872 case $ac_cv_prog_cc_stdc in #(
6873 no) :
6874 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6875 *) :
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006877$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006878if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006879 $as_echo_n "(cached) " >&6
6880else
6881 ac_cv_prog_cc_c99=no
6882ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006884/* end confdefs.h. */
6885#include <stdarg.h>
6886#include <stdbool.h>
6887#include <stdlib.h>
6888#include <wchar.h>
6889#include <stdio.h>
6890
6891// Check varargs macros. These examples are taken from C99 6.10.3.5.
6892#define debug(...) fprintf (stderr, __VA_ARGS__)
6893#define showlist(...) puts (#__VA_ARGS__)
6894#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6895static void
6896test_varargs_macros (void)
6897{
6898 int x = 1234;
6899 int y = 5678;
6900 debug ("Flag");
6901 debug ("X = %d\n", x);
6902 showlist (The first, second, and third items.);
6903 report (x>y, "x is %d but y is %d", x, y);
6904}
6905
6906// Check long long types.
6907#define BIG64 18446744073709551615ull
6908#define BIG32 4294967295ul
6909#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6910#if !BIG_OK
6911 your preprocessor is broken;
6912#endif
6913#if BIG_OK
6914#else
6915 your preprocessor is broken;
6916#endif
6917static long long int bignum = -9223372036854775807LL;
6918static unsigned long long int ubignum = BIG64;
6919
6920struct incomplete_array
6921{
6922 int datasize;
6923 double data[];
6924};
6925
6926struct named_init {
6927 int number;
6928 const wchar_t *name;
6929 double average;
6930};
6931
6932typedef const char *ccp;
6933
6934static inline int
6935test_restrict (ccp restrict text)
6936{
6937 // See if C++-style comments work.
6938 // Iterate through items via the restricted pointer.
6939 // Also check for declarations in for loops.
6940 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6941 continue;
6942 return 0;
6943}
6944
6945// Check varargs and va_copy.
6946static void
6947test_varargs (const char *format, ...)
6948{
6949 va_list args;
6950 va_start (args, format);
6951 va_list args_copy;
6952 va_copy (args_copy, args);
6953
6954 const char *str;
6955 int number;
6956 float fnumber;
6957
6958 while (*format)
6959 {
6960 switch (*format++)
6961 {
6962 case 's': // string
6963 str = va_arg (args_copy, const char *);
6964 break;
6965 case 'd': // int
6966 number = va_arg (args_copy, int);
6967 break;
6968 case 'f': // float
6969 fnumber = va_arg (args_copy, double);
6970 break;
6971 default:
6972 break;
6973 }
6974 }
6975 va_end (args_copy);
6976 va_end (args);
6977}
6978
6979int
6980main ()
6981{
6982
6983 // Check bool.
6984 _Bool success = false;
6985
6986 // Check restrict.
6987 if (test_restrict ("String literal") == 0)
6988 success = true;
6989 char *restrict newvar = "Another string";
6990
6991 // Check varargs.
6992 test_varargs ("s, d' f .", "string", 65, 34.234);
6993 test_varargs_macros ();
6994
6995 // Check flexible array members.
6996 struct incomplete_array *ia =
6997 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6998 ia->datasize = 10;
6999 for (int i = 0; i < ia->datasize; ++i)
7000 ia->data[i] = i * 1.234;
7001
7002 // Check named initializers.
7003 struct named_init ni = {
7004 .number = 34,
7005 .name = L"Test wide string",
7006 .average = 543.34343,
7007 };
7008
7009 ni.number = 58;
7010
7011 int dynamic_array[ni.number];
7012 dynamic_array[ni.number - 1] = 543;
7013
7014 // work around unused variable warnings
7015 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7016 || dynamic_array[ni.number - 1] != 543);
7017
7018 ;
7019 return 0;
7020}
7021_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007022for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007023do
7024 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007025 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007026 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007027fi
cristy3ed852e2009-09-05 21:47:34 +00007028rm -f core conftest.err conftest.$ac_objext
7029 test "x$ac_cv_prog_cc_c99" != "xno" && break
7030done
7031rm -f conftest.$ac_ext
7032CC=$ac_save_CC
7033
7034fi
7035# AC_CACHE_VAL
7036case "x$ac_cv_prog_cc_c99" in
7037 x)
cristy8b350f62009-11-15 23:12:43 +00007038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007039$as_echo "none needed" >&6; } ;;
7040 xno)
cristy8b350f62009-11-15 23:12:43 +00007041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007042$as_echo "unsupported" >&6; } ;;
7043 *)
7044 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007046$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7047esac
cristy8b350f62009-11-15 23:12:43 +00007048if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007049 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7050else
cristy8b350f62009-11-15 23:12:43 +00007051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007052$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007053if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007054 $as_echo_n "(cached) " >&6
7055else
7056 ac_cv_prog_cc_c89=no
7057ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007059/* end confdefs.h. */
7060#include <stdarg.h>
7061#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007062struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007063/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7064struct buf { int x; };
7065FILE * (*rcsopen) (struct buf *, struct stat *, int);
7066static char *e (p, i)
7067 char **p;
7068 int i;
7069{
7070 return p[i];
7071}
7072static char *f (char * (*g) (char **, int), char **p, ...)
7073{
7074 char *s;
7075 va_list v;
7076 va_start (v,p);
7077 s = g (p, va_arg (v,int));
7078 va_end (v);
7079 return s;
7080}
7081
7082/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7083 function prototypes and stuff, but not '\xHH' hex character constants.
7084 These don't provoke an error unfortunately, instead are silently treated
7085 as 'x'. The following induces an error, until -std is added to get
7086 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7087 array size at least. It's necessary to write '\x00'==0 to get something
7088 that's true only with -std. */
7089int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7090
7091/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7092 inside strings and character constants. */
7093#define FOO(x) 'x'
7094int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7095
7096int test (int i, double x);
7097struct s1 {int (*f) (int a);};
7098struct s2 {int (*f) (double a);};
7099int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7100int argc;
7101char **argv;
7102int
7103main ()
7104{
7105return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7106 ;
7107 return 0;
7108}
7109_ACEOF
7110for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7111 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7112do
7113 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007114 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007115 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007116fi
cristy3ed852e2009-09-05 21:47:34 +00007117rm -f core conftest.err conftest.$ac_objext
7118 test "x$ac_cv_prog_cc_c89" != "xno" && break
7119done
7120rm -f conftest.$ac_ext
7121CC=$ac_save_CC
7122
7123fi
7124# AC_CACHE_VAL
7125case "x$ac_cv_prog_cc_c89" in
7126 x)
cristy8b350f62009-11-15 23:12:43 +00007127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007128$as_echo "none needed" >&6; } ;;
7129 xno)
cristy8b350f62009-11-15 23:12:43 +00007130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007131$as_echo "unsupported" >&6; } ;;
7132 *)
7133 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007135$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7136esac
cristy8b350f62009-11-15 23:12:43 +00007137if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007138 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7139else
7140 ac_cv_prog_cc_stdc=no
7141fi
7142
cristy3ed852e2009-09-05 21:47:34 +00007143fi
cristy3ed852e2009-09-05 21:47:34 +00007144 ;;
7145esac
cristy8b350f62009-11-15 23:12:43 +00007146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007147$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007148 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007149 $as_echo_n "(cached) " >&6
7150fi
7151
cristy8b350f62009-11-15 23:12:43 +00007152 case $ac_cv_prog_cc_stdc in #(
7153 no) :
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7155$as_echo "unsupported" >&6; } ;; #(
7156 '') :
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7158$as_echo "none needed" >&6; } ;; #(
7159 *) :
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007161$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7162esac
7163
cristy3ed852e2009-09-05 21:47:34 +00007164ac_ext=c
7165ac_cpp='$CPP $CPPFLAGS'
7166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7168ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007170$as_echo_n "checking how to run the C preprocessor... " >&6; }
7171# On Suns, sometimes $CPP names a directory.
7172if test -n "$CPP" && test -d "$CPP"; then
7173 CPP=
7174fi
7175if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007176 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007177 $as_echo_n "(cached) " >&6
7178else
7179 # Double quotes because CPP needs to be expanded
7180 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7181 do
7182 ac_preproc_ok=false
7183for ac_c_preproc_warn_flag in '' yes
7184do
7185 # Use a header file that comes with gcc, so configuring glibc
7186 # with a fresh cross-compiler works.
7187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7188 # <limits.h> exists even on freestanding compilers.
7189 # On the NeXT, cc -E runs the code through the compiler's parser,
7190 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007192/* end confdefs.h. */
7193#ifdef __STDC__
7194# include <limits.h>
7195#else
7196# include <assert.h>
7197#endif
7198 Syntax error
7199_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007200if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007201
cristy8b350f62009-11-15 23:12:43 +00007202else
cristy3ed852e2009-09-05 21:47:34 +00007203 # Broken: fails on valid input.
7204continue
7205fi
cristyda16f162011-02-19 23:52:17 +00007206rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007207
7208 # OK, works on sane cases. Now check whether nonexistent headers
7209 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007211/* end confdefs.h. */
7212#include <ac_nonexistent.h>
7213_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007214if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007215 # Broken: success on invalid input.
7216continue
7217else
cristy3ed852e2009-09-05 21:47:34 +00007218 # Passes both tests.
7219ac_preproc_ok=:
7220break
7221fi
cristyda16f162011-02-19 23:52:17 +00007222rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007223
7224done
7225# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007226rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007227if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007228 break
7229fi
7230
7231 done
7232 ac_cv_prog_CPP=$CPP
7233
7234fi
7235 CPP=$ac_cv_prog_CPP
7236else
7237 ac_cv_prog_CPP=$CPP
7238fi
cristy8b350f62009-11-15 23:12:43 +00007239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007240$as_echo "$CPP" >&6; }
7241ac_preproc_ok=false
7242for ac_c_preproc_warn_flag in '' yes
7243do
7244 # Use a header file that comes with gcc, so configuring glibc
7245 # with a fresh cross-compiler works.
7246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7247 # <limits.h> exists even on freestanding compilers.
7248 # On the NeXT, cc -E runs the code through the compiler's parser,
7249 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007251/* end confdefs.h. */
7252#ifdef __STDC__
7253# include <limits.h>
7254#else
7255# include <assert.h>
7256#endif
7257 Syntax error
7258_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007259if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007260
cristy8b350f62009-11-15 23:12:43 +00007261else
cristy3ed852e2009-09-05 21:47:34 +00007262 # Broken: fails on valid input.
7263continue
7264fi
cristyda16f162011-02-19 23:52:17 +00007265rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007266
7267 # OK, works on sane cases. Now check whether nonexistent headers
7268 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007270/* end confdefs.h. */
7271#include <ac_nonexistent.h>
7272_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007273if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007274 # Broken: success on invalid input.
7275continue
7276else
cristy3ed852e2009-09-05 21:47:34 +00007277 # Passes both tests.
7278ac_preproc_ok=:
7279break
7280fi
cristyda16f162011-02-19 23:52:17 +00007281rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007282
7283done
7284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007285rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007286if $ac_preproc_ok; then :
7287
cristy3ed852e2009-09-05 21:47:34 +00007288else
cristy8b350f62009-11-15 23:12:43 +00007289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007291as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7292See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007293fi
7294
7295ac_ext=c
7296ac_cpp='$CPP $CPPFLAGS'
7297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299ac_compiler_gnu=$ac_cv_c_compiler_gnu
7300
cristy73bd4a52010-10-05 11:24:23 +00007301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7302$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007303if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007304 $as_echo_n "(cached) " >&6
7305else
7306 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7307 for ac_i in 1 2 3 4 5 6 7; do
7308 ac_script="$ac_script$as_nl$ac_script"
7309 done
7310 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7311 { ac_script=; unset ac_script;}
7312 if test -z "$SED"; then
7313 ac_path_SED_found=false
7314 # Loop through the user's path and test for each of PROGNAME-LIST
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_prog in sed gsed; do
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007323 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007324# Check for GNU ac_path_SED and select it if it is found.
7325 # Check for GNU $ac_path_SED
7326case `"$ac_path_SED" --version 2>&1` in
7327*GNU*)
7328 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7329*)
7330 ac_count=0
7331 $as_echo_n 0123456789 >"conftest.in"
7332 while :
7333 do
7334 cat "conftest.in" "conftest.in" >"conftest.tmp"
7335 mv "conftest.tmp" "conftest.in"
7336 cp "conftest.in" "conftest.nl"
7337 $as_echo '' >> "conftest.nl"
7338 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7340 as_fn_arith $ac_count + 1 && ac_count=$as_val
7341 if test $ac_count -gt ${ac_path_SED_max-0}; then
7342 # Best one so far, save it but keep looking for a better one
7343 ac_cv_path_SED="$ac_path_SED"
7344 ac_path_SED_max=$ac_count
7345 fi
7346 # 10*(2^10) chars as input seems more than enough
7347 test $ac_count -gt 10 && break
7348 done
7349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7350esac
7351
7352 $ac_path_SED_found && break 3
7353 done
7354 done
7355 done
7356IFS=$as_save_IFS
7357 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007358 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007359 fi
7360else
7361 ac_cv_path_SED=$SED
7362fi
7363
7364fi
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7366$as_echo "$ac_cv_path_SED" >&6; }
7367 SED="$ac_cv_path_SED"
7368 rm -f conftest.sed
7369
7370test -z "$SED" && SED=sed
7371Xsed="$SED -e 1s/^X//"
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7384$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007385if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007386 $as_echo_n "(cached) " >&6
7387else
7388 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7389 then ac_cv_path_FGREP="$GREP -F"
7390 else
7391 if test -z "$FGREP"; then
7392 ac_path_FGREP_found=false
7393 # Loop through the user's path and test for each of PROGNAME-LIST
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7396do
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_prog in fgrep; do
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007402 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007403# Check for GNU ac_path_FGREP and select it if it is found.
7404 # Check for GNU $ac_path_FGREP
7405case `"$ac_path_FGREP" --version 2>&1` in
7406*GNU*)
7407 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7408*)
7409 ac_count=0
7410 $as_echo_n 0123456789 >"conftest.in"
7411 while :
7412 do
7413 cat "conftest.in" "conftest.in" >"conftest.tmp"
7414 mv "conftest.tmp" "conftest.in"
7415 cp "conftest.in" "conftest.nl"
7416 $as_echo 'FGREP' >> "conftest.nl"
7417 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7419 as_fn_arith $ac_count + 1 && ac_count=$as_val
7420 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7421 # Best one so far, save it but keep looking for a better one
7422 ac_cv_path_FGREP="$ac_path_FGREP"
7423 ac_path_FGREP_max=$ac_count
7424 fi
7425 # 10*(2^10) chars as input seems more than enough
7426 test $ac_count -gt 10 && break
7427 done
7428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7429esac
7430
7431 $ac_path_FGREP_found && break 3
7432 done
7433 done
7434 done
7435IFS=$as_save_IFS
7436 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007437 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007438 fi
7439else
7440 ac_cv_path_FGREP=$FGREP
7441fi
7442
7443 fi
7444fi
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7446$as_echo "$ac_cv_path_FGREP" >&6; }
7447 FGREP="$ac_cv_path_FGREP"
7448
7449
7450test -z "$GREP" && GREP=grep
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
cristy0c60a692010-11-04 01:09:47 +00007468ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7469ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7470ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7471
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7473$as_echo_n "checking how to print strings... " >&6; }
7474# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007475if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007476 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7477 ECHO='print -r --'
7478elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7479 ECHO='printf %s\n'
7480else
7481 # Use this function as a fallback that always works.
7482 func_fallback_echo ()
7483 {
7484 eval 'cat <<_LTECHO_EOF
7485$1
7486_LTECHO_EOF'
7487 }
7488 ECHO='func_fallback_echo'
7489fi
7490
7491# func_echo_all arg...
7492# Invoke $ECHO with all args, space-separated.
7493func_echo_all ()
7494{
7495 $ECHO ""
7496}
7497
7498case "$ECHO" in
7499 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7500$as_echo "printf" >&6; } ;;
7501 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7502$as_echo "print -r" >&6; } ;;
7503 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7504$as_echo "cat" >&6; } ;;
7505esac
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
cristy73bd4a52010-10-05 11:24:23 +00007520
7521
7522# Check whether --with-gnu-ld was given.
7523if test "${with_gnu_ld+set}" = set; then :
7524 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7525else
7526 with_gnu_ld=no
7527fi
7528
7529ac_prog=ld
7530if test "$GCC" = yes; then
7531 # Check if gcc -print-prog-name=ld gives a path.
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7533$as_echo_n "checking for ld used by $CC... " >&6; }
7534 case $host in
7535 *-*-mingw*)
7536 # gcc leaves a trailing carriage return which upsets mingw
7537 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7538 *)
7539 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7540 esac
7541 case $ac_prog in
7542 # Accept absolute paths.
7543 [\\/]* | ?:[\\/]*)
7544 re_direlt='/[^/][^/]*/\.\./'
7545 # Canonicalize the pathname of ld
7546 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7547 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7548 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7549 done
7550 test -z "$LD" && LD="$ac_prog"
7551 ;;
7552 "")
7553 # If it fails, then pretend we aren't using GCC.
7554 ac_prog=ld
7555 ;;
7556 *)
7557 # If it is relative, then search for the first ld in PATH.
7558 with_gnu_ld=unknown
7559 ;;
7560 esac
7561elif test "$with_gnu_ld" = yes; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7563$as_echo_n "checking for GNU ld... " >&6; }
7564else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7566$as_echo_n "checking for non-GNU ld... " >&6; }
7567fi
cristyda16f162011-02-19 23:52:17 +00007568if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007569 $as_echo_n "(cached) " >&6
7570else
7571 if test -z "$LD"; then
7572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7573 for ac_dir in $PATH; do
7574 IFS="$lt_save_ifs"
7575 test -z "$ac_dir" && ac_dir=.
7576 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7577 lt_cv_path_LD="$ac_dir/$ac_prog"
7578 # Check to see if the program is GNU ld. I'd rather use --version,
7579 # but apparently some variants of GNU ld only accept -v.
7580 # Break only if it was the GNU/non-GNU ld that we prefer.
7581 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7582 *GNU* | *'with BFD'*)
7583 test "$with_gnu_ld" != no && break
7584 ;;
7585 *)
7586 test "$with_gnu_ld" != yes && break
7587 ;;
7588 esac
7589 fi
7590 done
7591 IFS="$lt_save_ifs"
7592else
7593 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7594fi
7595fi
7596
7597LD="$lt_cv_path_LD"
7598if test -n "$LD"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7600$as_echo "$LD" >&6; }
7601else
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603$as_echo "no" >&6; }
7604fi
cristy98dddb52010-11-04 00:30:15 +00007605test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7607$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007608if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007609 $as_echo_n "(cached) " >&6
7610else
7611 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7612case `$LD -v 2>&1 </dev/null` in
7613*GNU* | *'with BFD'*)
7614 lt_cv_prog_gnu_ld=yes
7615 ;;
7616*)
7617 lt_cv_prog_gnu_ld=no
7618 ;;
7619esac
7620fi
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7622$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7623with_gnu_ld=$lt_cv_prog_gnu_ld
7624
7625
7626
7627
7628
7629
7630
7631
7632
cristy3ed852e2009-09-05 21:47:34 +00007633
cristy837d6dc2010-02-27 01:16:57 +00007634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7635$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007636if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007637 $as_echo_n "(cached) " >&6
7638else
7639 ac_cv_prog_cc_c99=no
7640ac_save_CC=$CC
7641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642/* end confdefs.h. */
7643#include <stdarg.h>
7644#include <stdbool.h>
7645#include <stdlib.h>
7646#include <wchar.h>
7647#include <stdio.h>
7648
7649// Check varargs macros. These examples are taken from C99 6.10.3.5.
7650#define debug(...) fprintf (stderr, __VA_ARGS__)
7651#define showlist(...) puts (#__VA_ARGS__)
7652#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7653static void
7654test_varargs_macros (void)
7655{
7656 int x = 1234;
7657 int y = 5678;
7658 debug ("Flag");
7659 debug ("X = %d\n", x);
7660 showlist (The first, second, and third items.);
7661 report (x>y, "x is %d but y is %d", x, y);
7662}
7663
7664// Check long long types.
7665#define BIG64 18446744073709551615ull
7666#define BIG32 4294967295ul
7667#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7668#if !BIG_OK
7669 your preprocessor is broken;
7670#endif
7671#if BIG_OK
7672#else
7673 your preprocessor is broken;
7674#endif
7675static long long int bignum = -9223372036854775807LL;
7676static unsigned long long int ubignum = BIG64;
7677
7678struct incomplete_array
7679{
7680 int datasize;
7681 double data[];
7682};
7683
7684struct named_init {
7685 int number;
7686 const wchar_t *name;
7687 double average;
7688};
7689
7690typedef const char *ccp;
7691
7692static inline int
7693test_restrict (ccp restrict text)
7694{
7695 // See if C++-style comments work.
7696 // Iterate through items via the restricted pointer.
7697 // Also check for declarations in for loops.
7698 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7699 continue;
7700 return 0;
7701}
7702
7703// Check varargs and va_copy.
7704static void
7705test_varargs (const char *format, ...)
7706{
7707 va_list args;
7708 va_start (args, format);
7709 va_list args_copy;
7710 va_copy (args_copy, args);
7711
7712 const char *str;
7713 int number;
7714 float fnumber;
7715
7716 while (*format)
7717 {
7718 switch (*format++)
7719 {
7720 case 's': // string
7721 str = va_arg (args_copy, const char *);
7722 break;
7723 case 'd': // int
7724 number = va_arg (args_copy, int);
7725 break;
7726 case 'f': // float
7727 fnumber = va_arg (args_copy, double);
7728 break;
7729 default:
7730 break;
7731 }
7732 }
7733 va_end (args_copy);
7734 va_end (args);
7735}
7736
7737int
7738main ()
7739{
7740
7741 // Check bool.
7742 _Bool success = false;
7743
7744 // Check restrict.
7745 if (test_restrict ("String literal") == 0)
7746 success = true;
7747 char *restrict newvar = "Another string";
7748
7749 // Check varargs.
7750 test_varargs ("s, d' f .", "string", 65, 34.234);
7751 test_varargs_macros ();
7752
7753 // Check flexible array members.
7754 struct incomplete_array *ia =
7755 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7756 ia->datasize = 10;
7757 for (int i = 0; i < ia->datasize; ++i)
7758 ia->data[i] = i * 1.234;
7759
7760 // Check named initializers.
7761 struct named_init ni = {
7762 .number = 34,
7763 .name = L"Test wide string",
7764 .average = 543.34343,
7765 };
7766
7767 ni.number = 58;
7768
7769 int dynamic_array[ni.number];
7770 dynamic_array[ni.number - 1] = 543;
7771
7772 // work around unused variable warnings
7773 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7774 || dynamic_array[ni.number - 1] != 543);
7775
7776 ;
7777 return 0;
7778}
7779_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007780for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007781do
7782 CC="$ac_save_CC $ac_arg"
7783 if ac_fn_c_try_compile "$LINENO"; then :
7784 ac_cv_prog_cc_c99=$ac_arg
7785fi
7786rm -f core conftest.err conftest.$ac_objext
7787 test "x$ac_cv_prog_cc_c99" != "xno" && break
7788done
7789rm -f conftest.$ac_ext
7790CC=$ac_save_CC
7791
7792fi
7793# AC_CACHE_VAL
7794case "x$ac_cv_prog_cc_c99" in
7795 x)
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7797$as_echo "none needed" >&6; } ;;
7798 xno)
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7800$as_echo "unsupported" >&6; } ;;
7801 *)
7802 CC="$CC $ac_cv_prog_cc_c99"
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7804$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7805esac
7806if test "x$ac_cv_prog_cc_c99" != xno; then :
7807
7808fi
7809
7810
cristy73bd4a52010-10-05 11:24:23 +00007811if test "x$CC" != xcc; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7813$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7814else
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7816$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7817fi
7818set dummy $CC; ac_cc=`$as_echo "$2" |
7819 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007820if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007821 $as_echo_n "(cached) " >&6
7822else
cristy73bd4a52010-10-05 11:24:23 +00007823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824/* end confdefs.h. */
7825
7826int
7827main ()
7828{
7829
7830 ;
7831 return 0;
7832}
7833_ACEOF
7834# Make sure it works both with $CC and with simple cc.
7835# We do the test twice because some compilers refuse to overwrite an
7836# existing .o file with -o, though they will create one.
7837ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7838rm -f conftest2.*
7839if { { case "(($ac_try" in
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7842esac
7843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7844$as_echo "$ac_try_echo"; } >&5
7845 (eval "$ac_try") 2>&5
7846 ac_status=$?
7847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7848 test $ac_status = 0; } &&
7849 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852esac
7853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7854$as_echo "$ac_try_echo"; } >&5
7855 (eval "$ac_try") 2>&5
7856 ac_status=$?
7857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7858 test $ac_status = 0; };
7859then
7860 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7861 if test "x$CC" != xcc; then
7862 # Test first that cc exists at all.
7863 if { ac_try='cc -c conftest.$ac_ext >&5'
7864 { { case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867esac
7868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7869$as_echo "$ac_try_echo"; } >&5
7870 (eval "$ac_try") 2>&5
7871 ac_status=$?
7872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873 test $ac_status = 0; }; }; then
7874 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7875 rm -f conftest2.*
7876 if { { case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7879esac
7880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7881$as_echo "$ac_try_echo"; } >&5
7882 (eval "$ac_try") 2>&5
7883 ac_status=$?
7884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7885 test $ac_status = 0; } &&
7886 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7889esac
7890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7891$as_echo "$ac_try_echo"; } >&5
7892 (eval "$ac_try") 2>&5
7893 ac_status=$?
7894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7895 test $ac_status = 0; };
7896 then
7897 # cc works too.
7898 :
7899 else
7900 # cc exists but doesn't like -o.
7901 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7902 fi
7903 fi
7904 fi
7905else
7906 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7907fi
7908rm -f core conftest*
7909
7910fi
7911if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7913$as_echo "yes" >&6; }
7914else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916$as_echo "no" >&6; }
7917
7918$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7919
7920fi
7921
7922# FIXME: we rely on the cache variable name because
7923# there is no other way.
7924set dummy $CC
7925am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7926eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7927if test "$am_t" != yes; then
7928 # Losing compiler, so override with the script.
7929 # FIXME: It is wrong to rewrite CC.
7930 # But if we don't then we get into trouble of one sort or another.
7931 # A longer-term fix would be to have automake use am__CC in this case,
7932 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7933 CC="$am_aux_dir/compile $CC"
7934fi
7935
7936
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7938$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007939if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007940 $as_echo_n "(cached) " >&6
7941else
7942 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007943 ac_ext=c
7944ac_cpp='$CPP $CPPFLAGS'
7945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7947ac_compiler_gnu=$ac_cv_c_compiler_gnu
7948
7949 ac_save_CFLAGS="$CFLAGS"
7950for 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" #
7951do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953/* end confdefs.h. */
7954
7955int
7956main ()
7957{
cristy24fc1fe2010-10-23 21:13:01 +00007958
cristy73bd4a52010-10-05 11:24:23 +00007959 ;
7960 return 0;
7961}
7962_ACEOF
7963if ac_fn_c_try_compile "$LINENO"; then :
7964 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7965fi
7966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967done
7968 CFLAGS="$ac_save_CFLAGS"
7969 ac_ext=c
7970ac_cpp='$CPP $CPPFLAGS'
7971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7973ac_compiler_gnu=$ac_cv_c_compiler_gnu
7974
7975
7976fi
7977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7978$as_echo "$ac_cv_cflags_warn_all" >&6; }
7979case ".$ac_cv_cflags_warn_all" in
7980 .ok|.ok,*) ;;
7981 .|.no|.no,*)
7982 ;;
7983 *)
7984 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7985 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7986 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7987 ac_status=$?
7988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7989 test $ac_status = 0; }
7990 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7991 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7992 ac_status=$?
7993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7994 test $ac_status = 0; }
7995 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7996 fi
7997 ;;
nicolas6237c462010-10-05 06:11:49 +00007998esac
cristy3ed852e2009-09-05 21:47:34 +00007999
cristy016e8b82012-12-26 12:11:06 +00008000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8001$as_echo_n "checking for C compiler vendor... " >&6; }
8002if ${ax_cv_c_compiler_vendor+:} false; then :
8003 $as_echo_n "(cached) " >&6
8004else
8005 # note: don't check for gcc first since some other compilers define __GNUC__
8006 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8007 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8008 pathscale: __PATHCC__,__PATHSCALE__
8009 clang: __clang__
8010 gnu: __GNUC__
8011 sun: __SUNPRO_C,__SUNPRO_CC
8012 hp: __HP_cc,__HP_aCC
8013 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8014 borland: __BORLANDC__,__TURBOC__
8015 comeau: __COMO__
8016 cray: _CRAYC
8017 kai: __KCC
8018 lcc: __LCC__
8019 sgi: __sgi,sgi
8020 microsoft: _MSC_VER
8021 metrowerks: __MWERKS__
8022 watcom: __WATCOMC__
8023 portland: __PGI
8024 unknown: UNKNOWN"
8025 for ventest in $vendors; do
8026 case $ventest in
8027 *:) vendor=$ventest; continue ;;
8028 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8029 esac
8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031/* end confdefs.h. */
8032
8033int
8034main ()
8035{
8036
8037 #if !($vencpp)
8038 thisisanerror;
8039 #endif
8040
8041 ;
8042 return 0;
8043}
8044_ACEOF
8045if ac_fn_c_try_compile "$LINENO"; then :
8046 break
8047fi
8048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8049 done
8050 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8051
8052fi
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8054$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8055
cristya0b81c32010-01-22 02:54:33 +00008056
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8058$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8059set x ${MAKE-make}
8060ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008061if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008062 $as_echo_n "(cached) " >&6
8063else
8064 cat >conftest.make <<\_ACEOF
8065SHELL = /bin/sh
8066all:
8067 @echo '@@@%%%=$(MAKE)=@@@%%%'
8068_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008069# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008070case `${MAKE-make} -f conftest.make 2>/dev/null` in
8071 *@@@%%%=?*=@@@%%%*)
8072 eval ac_cv_prog_make_${ac_make}_set=yes;;
8073 *)
8074 eval ac_cv_prog_make_${ac_make}_set=no;;
8075esac
8076rm -f conftest.make
8077fi
8078if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8080$as_echo "yes" >&6; }
8081 SET_MAKE=
8082else
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084$as_echo "no" >&6; }
8085 SET_MAKE="MAKE=${MAKE-make}"
8086fi
8087
cristy8b350f62009-11-15 23:12:43 +00008088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008089$as_echo_n "checking whether ln -s works... " >&6; }
8090LN_S=$as_ln_s
8091if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008093$as_echo "yes" >&6; }
8094else
cristy8b350f62009-11-15 23:12:43 +00008095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008096$as_echo "no, using $LN_S" >&6; }
8097fi
8098
cristy8d0ff762013-03-10 20:33:28 +00008099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8100$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8101if ${ac_cv_path_SED+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103else
8104 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8105 for ac_i in 1 2 3 4 5 6 7; do
8106 ac_script="$ac_script$as_nl$ac_script"
8107 done
8108 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8109 { ac_script=; unset ac_script;}
8110 if test -z "$SED"; then
8111 ac_path_SED_found=false
8112 # Loop through the user's path and test for each of PROGNAME-LIST
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114for as_dir in $PATH
8115do
8116 IFS=$as_save_IFS
8117 test -z "$as_dir" && as_dir=.
8118 for ac_prog in sed gsed; do
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8121 as_fn_executable_p "$ac_path_SED" || continue
8122# Check for GNU ac_path_SED and select it if it is found.
8123 # Check for GNU $ac_path_SED
8124case `"$ac_path_SED" --version 2>&1` in
8125*GNU*)
8126 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8127*)
8128 ac_count=0
8129 $as_echo_n 0123456789 >"conftest.in"
8130 while :
8131 do
8132 cat "conftest.in" "conftest.in" >"conftest.tmp"
8133 mv "conftest.tmp" "conftest.in"
8134 cp "conftest.in" "conftest.nl"
8135 $as_echo '' >> "conftest.nl"
8136 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8137 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8138 as_fn_arith $ac_count + 1 && ac_count=$as_val
8139 if test $ac_count -gt ${ac_path_SED_max-0}; then
8140 # Best one so far, save it but keep looking for a better one
8141 ac_cv_path_SED="$ac_path_SED"
8142 ac_path_SED_max=$ac_count
8143 fi
8144 # 10*(2^10) chars as input seems more than enough
8145 test $ac_count -gt 10 && break
8146 done
8147 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8148esac
8149
8150 $ac_path_SED_found && break 3
8151 done
8152 done
8153 done
8154IFS=$as_save_IFS
8155 if test -z "$ac_cv_path_SED"; then
8156 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8157 fi
8158else
8159 ac_cv_path_SED=$SED
8160fi
8161
8162fi
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8164$as_echo "$ac_cv_path_SED" >&6; }
8165 SED="$ac_cv_path_SED"
8166 rm -f conftest.sed
8167
cristybc556452012-08-17 19:44:03 +00008168for ac_prog in gawk mawk nawk awk
8169do
8170 # Extract the first word of "$ac_prog", so it can be a program name with args.
8171set dummy $ac_prog; ac_word=$2
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173$as_echo_n "checking for $ac_word... " >&6; }
8174if ${ac_cv_prog_AWK+:} false; then :
8175 $as_echo_n "(cached) " >&6
8176else
8177 if test -n "$AWK"; then
8178 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8179else
8180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181for as_dir in $PATH
8182do
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8187 ac_cv_prog_AWK="$ac_prog"
8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 break 2
8190 fi
8191done
8192 done
8193IFS=$as_save_IFS
8194
8195fi
8196fi
8197AWK=$ac_cv_prog_AWK
8198if test -n "$AWK"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8200$as_echo "$AWK" >&6; }
8201else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203$as_echo "no" >&6; }
8204fi
8205
8206
8207 test -n "$AWK" && break
8208done
8209
cristy73bd4a52010-10-05 11:24:23 +00008210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8211$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8212
8213# Check whether --with-dmalloc was given.
8214if test "${with_dmalloc+set}" = set; then :
8215 withval=$with_dmalloc; if test "$withval" = yes; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8217$as_echo "yes" >&6; }
8218
8219$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8220
8221 LIBS="$LIBS -ldmalloc"
8222 LDFLAGS="$LDFLAGS -g"
8223else
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225$as_echo "no" >&6; }
8226fi
8227else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229$as_echo "no" >&6; }
8230fi
8231
8232
8233
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8235$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008236if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008237 $as_echo_n "(cached) " >&6
8238else
8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240/* end confdefs.h. */
8241#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008242 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008243 static void
8244 foo(void) {
8245 exit(1);
8246 }
8247
8248int
8249main ()
8250{
8251
8252 ;
8253 return 0;
8254}
8255_ACEOF
8256if ac_fn_c_try_compile "$LINENO"; then :
8257 ax_cv___attribute__=yes
8258else
8259 ax_cv___attribute__=no
8260
8261fi
8262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8263
8264fi
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8266$as_echo "$ax_cv___attribute__" >&6; }
8267 if test "$ax_cv___attribute__" = "yes"; then
8268
8269$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8270
8271 fi
8272
8273
8274
cristy37110d62012-03-01 18:38:20 +00008275
8276
8277# Check whether --with-gcc-arch was given.
8278if test "${with_gcc_arch+set}" = set; then :
8279 withval=$with_gcc_arch; ax_gcc_arch=$withval
8280else
cristya32d1812012-03-02 19:24:21 +00008281 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008282fi
8283
8284
8285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8286$as_echo_n "checking for gcc architecture flag... " >&6; }
8287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8288$as_echo "" >&6; }
8289if ${ax_cv_gcc_archflag+:} false; then :
8290 $as_echo_n "(cached) " >&6
8291else
8292
8293ax_cv_gcc_archflag="unknown"
8294
8295if test "$GCC" = yes; then
8296
8297if test "x$ax_gcc_arch" = xyes; then
8298ax_gcc_arch=""
8299if test "$cross_compiling" = no; then
8300case $host_cpu in
8301 i[3456]86*|x86_64*) # use cpuid codes
8302
8303ac_ext=c
8304ac_cpp='$CPP $CPPFLAGS'
8305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8307ac_compiler_gnu=$ac_cv_c_compiler_gnu
8308
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8310$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8311if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8312 $as_echo_n "(cached) " >&6
8313else
8314 if test "$cross_compiling" = yes; then :
8315 ax_cv_gcc_x86_cpuid_0=unknown
8316else
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318/* end confdefs.h. */
8319#include <stdio.h>
8320int
8321main ()
8322{
8323
8324 int op = 0, eax, ebx, ecx, edx;
8325 FILE *f;
8326 __asm__("cpuid"
8327 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8328 : "a" (op));
8329 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8330 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8331 fclose(f);
8332 return 0;
8333
8334 ;
8335 return 0;
8336}
8337_ACEOF
8338if ac_fn_c_try_run "$LINENO"; then :
8339 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8340else
8341 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8342fi
8343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8344 conftest.$ac_objext conftest.beam conftest.$ac_ext
8345fi
8346
8347fi
8348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8349$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8350ac_ext=c
8351ac_cpp='$CPP $CPPFLAGS'
8352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8354ac_compiler_gnu=$ac_cv_c_compiler_gnu
8355
8356
8357
8358ac_ext=c
8359ac_cpp='$CPP $CPPFLAGS'
8360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8362ac_compiler_gnu=$ac_cv_c_compiler_gnu
8363
8364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8365$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8366if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8367 $as_echo_n "(cached) " >&6
8368else
8369 if test "$cross_compiling" = yes; then :
8370 ax_cv_gcc_x86_cpuid_1=unknown
8371else
8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373/* end confdefs.h. */
8374#include <stdio.h>
8375int
8376main ()
8377{
8378
8379 int op = 1, eax, ebx, ecx, edx;
8380 FILE *f;
8381 __asm__("cpuid"
8382 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8383 : "a" (op));
8384 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8385 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8386 fclose(f);
8387 return 0;
8388
8389 ;
8390 return 0;
8391}
8392_ACEOF
8393if ac_fn_c_try_run "$LINENO"; then :
8394 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8395else
8396 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8397fi
8398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8399 conftest.$ac_objext conftest.beam conftest.$ac_ext
8400fi
8401
8402fi
8403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8404$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8405ac_ext=c
8406ac_cpp='$CPP $CPPFLAGS'
8407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8409ac_compiler_gnu=$ac_cv_c_compiler_gnu
8410
8411
8412 case $ax_cv_gcc_x86_cpuid_0 in
8413 *:756e6547:*:*) # Intel
8414 case $ax_cv_gcc_x86_cpuid_1 in
8415 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8416 *5??:*:*:*) ax_gcc_arch=pentium ;;
8417 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8418 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8419 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8420 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8421 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8422 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8423 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8424 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8425 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8426 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8427 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8428 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8429 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8430 case $host_cpu in
8431 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8432 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8433 esac ;;
8434 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8435 esac ;;
8436 *:68747541:*:*) # AMD
8437 case $ax_cv_gcc_x86_cpuid_1 in
8438 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8439 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8440 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8441 *60?:*:*:*) ax_gcc_arch=k7 ;;
8442 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8443 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8444 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8445 *6[68a]?:*:*:*)
8446
8447ac_ext=c
8448ac_cpp='$CPP $CPPFLAGS'
8449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8451ac_compiler_gnu=$ac_cv_c_compiler_gnu
8452
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8454$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8455if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8456 $as_echo_n "(cached) " >&6
8457else
8458 if test "$cross_compiling" = yes; then :
8459 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8460else
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462/* end confdefs.h. */
8463#include <stdio.h>
8464int
8465main ()
8466{
8467
8468 int op = 0x80000006, eax, ebx, ecx, edx;
8469 FILE *f;
8470 __asm__("cpuid"
8471 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8472 : "a" (op));
8473 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8474 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8475 fclose(f);
8476 return 0;
8477
8478 ;
8479 return 0;
8480}
8481_ACEOF
8482if ac_fn_c_try_run "$LINENO"; then :
8483 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8484else
8485 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8486fi
8487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8488 conftest.$ac_objext conftest.beam conftest.$ac_ext
8489fi
8490
8491fi
8492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8493$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8494ac_ext=c
8495ac_cpp='$CPP $CPPFLAGS'
8496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8498ac_compiler_gnu=$ac_cv_c_compiler_gnu
8499
8500 # L2 cache size
8501 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8502 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8503 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8504 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8505 esac ;;
8506 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8507 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8508 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8509 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8510 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8511 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8512 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8513 esac ;;
8514 *:746e6543:*:*) # IDT
8515 case $ax_cv_gcc_x86_cpuid_1 in
8516 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8517 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8518 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8519 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8520 esac ;;
8521 esac
8522 if test x"$ax_gcc_arch" = x; then # fallback
8523 case $host_cpu in
8524 i586*) ax_gcc_arch=pentium ;;
8525 i686*) ax_gcc_arch=pentiumpro ;;
8526 esac
8527 fi
8528 ;;
8529
8530 sparc*)
8531 # Extract the first word of "prtdiag", so it can be a program name with args.
8532set dummy prtdiag; ac_word=$2
8533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534$as_echo_n "checking for $ac_word... " >&6; }
8535if ${ac_cv_path_PRTDIAG+:} false; then :
8536 $as_echo_n "(cached) " >&6
8537else
8538 case $PRTDIAG in
8539 [\\/]* | ?:[\\/]*)
8540 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8541 ;;
8542 *)
8543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8545for as_dir in $as_dummy
8546do
8547 IFS=$as_save_IFS
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008551 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553 break 2
8554 fi
8555done
8556 done
8557IFS=$as_save_IFS
8558
8559 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8560 ;;
8561esac
8562fi
8563PRTDIAG=$ac_cv_path_PRTDIAG
8564if test -n "$PRTDIAG"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8566$as_echo "$PRTDIAG" >&6; }
8567else
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569$as_echo "no" >&6; }
8570fi
8571
8572
8573 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`
8574 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8575 case $cputype in
8576 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8577 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8578 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8579 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8580 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8581 *cypress*) ax_gcc_arch=cypress ;;
8582 esac ;;
8583
8584 alphaev5) ax_gcc_arch=ev5 ;;
8585 alphaev56) ax_gcc_arch=ev56 ;;
8586 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8587 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8588 alphaev6) ax_gcc_arch=ev6 ;;
8589 alphaev67) ax_gcc_arch=ev67 ;;
8590 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8591 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8592 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8593 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8594
8595 powerpc*)
8596 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`
8597 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8598 case $cputype in
8599 *750*) ax_gcc_arch="750 G3" ;;
8600 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8601 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8602 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8603 *970*) ax_gcc_arch="970 G5 power4";;
8604 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8605 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8606 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8607 *) ax_gcc_arch=$cputype ;;
8608 esac
8609 ax_gcc_arch="$ax_gcc_arch powerpc"
8610 ;;
8611esac
8612fi # not cross-compiling
8613fi # guess arch
8614
8615if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8616for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008617 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008618 flags="-mtune=$arch"
8619 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8620 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8621 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8622 else
8623 flags="-march=$arch -mcpu=$arch -m$arch"
8624 fi
8625 for flag in $flags; do
8626 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8628$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8629if eval \${$as_CACHEVAR+:} false; then :
8630 $as_echo_n "(cached) " >&6
8631else
8632
8633 ax_check_save_flags=$CFLAGS
8634 CFLAGS="$CFLAGS $flag"
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636/* end confdefs.h. */
8637
8638int
8639main ()
8640{
8641
8642 ;
8643 return 0;
8644}
8645_ACEOF
8646if ac_fn_c_try_compile "$LINENO"; then :
8647 eval "$as_CACHEVAR=yes"
8648else
8649 eval "$as_CACHEVAR=no"
8650fi
8651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652 CFLAGS=$ax_check_save_flags
8653fi
8654eval ac_res=\$$as_CACHEVAR
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8656$as_echo "$ac_res" >&6; }
8657if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8658 ax_cv_gcc_archflag=$flag; break
8659else
8660 :
8661fi
8662
8663 done
8664 test "x$ax_cv_gcc_archflag" = xunknown || break
8665done
8666fi
8667
8668fi # $GCC=yes
8669
8670fi
8671
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8673$as_echo_n "checking for gcc architecture flag... " >&6; }
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8675$as_echo "$ax_cv_gcc_archflag" >&6; }
8676if test "x$ax_cv_gcc_archflag" = xunknown; then
8677 :
8678else
8679 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8680fi
8681
8682
8683
cristy73bd4a52010-10-05 11:24:23 +00008684if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8685 if test -n "$ac_tool_prefix"; then
8686 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8687set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008690if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008691 $as_echo_n "(cached) " >&6
8692else
8693 case $PKG_CONFIG in
8694 [\\/]* | ?:[\\/]*)
8695 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8696 ;;
8697 *)
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699for as_dir in $PATH
8700do
8701 IFS=$as_save_IFS
8702 test -z "$as_dir" && as_dir=.
8703 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008705 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8707 break 2
8708 fi
8709done
8710 done
8711IFS=$as_save_IFS
8712
8713 ;;
8714esac
8715fi
8716PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8717if test -n "$PKG_CONFIG"; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8719$as_echo "$PKG_CONFIG" >&6; }
8720else
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722$as_echo "no" >&6; }
8723fi
8724
8725
8726fi
8727if test -z "$ac_cv_path_PKG_CONFIG"; then
8728 ac_pt_PKG_CONFIG=$PKG_CONFIG
8729 # Extract the first word of "pkg-config", so it can be a program name with args.
8730set dummy pkg-config; ac_word=$2
8731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008733if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008734 $as_echo_n "(cached) " >&6
8735else
8736 case $ac_pt_PKG_CONFIG in
8737 [\\/]* | ?:[\\/]*)
8738 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8739 ;;
8740 *)
8741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742for as_dir in $PATH
8743do
8744 IFS=$as_save_IFS
8745 test -z "$as_dir" && as_dir=.
8746 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008748 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8750 break 2
8751 fi
8752done
8753 done
8754IFS=$as_save_IFS
8755
8756 ;;
8757esac
8758fi
8759ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8760if test -n "$ac_pt_PKG_CONFIG"; then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8762$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8763else
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765$as_echo "no" >&6; }
8766fi
8767
8768 if test "x$ac_pt_PKG_CONFIG" = x; then
8769 PKG_CONFIG=""
8770 else
8771 case $cross_compiling:$ac_tool_warned in
8772yes:)
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8775ac_tool_warned=yes ;;
8776esac
8777 PKG_CONFIG=$ac_pt_PKG_CONFIG
8778 fi
8779else
8780 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8781fi
8782
8783fi
8784if test -n "$PKG_CONFIG"; then
8785 _pkg_min_version=0.9.0
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8787$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8788 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8790$as_echo "yes" >&6; }
8791 else
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793$as_echo "no" >&6; }
8794 PKG_CONFIG=""
8795 fi
8796
8797fi
cristy3ed852e2009-09-05 21:47:34 +00008798
cristy9b86f202012-11-28 21:55:35 +00008799# Check for linker script support
8800
8801 # Check whether --enable-ld-version-script was given.
8802if test "${enable_ld_version_script+set}" = set; then :
8803 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8804fi
8805
8806 if test -z "$have_ld_version_script"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8808$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8809 save_LDFLAGS="$LDFLAGS"
8810 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8811 cat > conftest.map <<EOF
8812foo
8813EOF
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815/* end confdefs.h. */
8816
8817int
8818main ()
8819{
8820
8821 ;
8822 return 0;
8823}
8824_ACEOF
8825if ac_fn_c_try_link "$LINENO"; then :
8826 accepts_syntax_errors=yes
8827else
8828 accepts_syntax_errors=no
8829fi
8830rm -f core conftest.err conftest.$ac_objext \
8831 conftest$ac_exeext conftest.$ac_ext
8832 if test "$accepts_syntax_errors" = no; then
8833 cat > conftest.map <<EOF
8834VERS_1 {
8835 global: sym;
8836};
8837
8838VERS_2 {
8839 global: sym;
8840} VERS_1;
8841EOF
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843/* end confdefs.h. */
8844
8845int
8846main ()
8847{
8848
8849 ;
8850 return 0;
8851}
8852_ACEOF
8853if ac_fn_c_try_link "$LINENO"; then :
8854 have_ld_version_script=yes
8855else
8856 have_ld_version_script=no
8857fi
8858rm -f core conftest.err conftest.$ac_objext \
8859 conftest$ac_exeext conftest.$ac_ext
8860 else
8861 have_ld_version_script=no
8862 fi
8863 rm -f conftest.map
8864 LDFLAGS="$save_LDFLAGS"
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8866$as_echo "$have_ld_version_script" >&6; }
8867 fi
8868 if test "$have_ld_version_script" = "yes"; then
8869 HAVE_LD_VERSION_SCRIPT_TRUE=
8870 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8871else
8872 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8873 HAVE_LD_VERSION_SCRIPT_FALSE=
8874fi
8875
8876
8877
cristy3ed852e2009-09-05 21:47:34 +00008878#
cristy3ed852e2009-09-05 21:47:34 +00008879# Enable run-time checking.
8880#
8881# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008882if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008883 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8884else
8885 enable_bounds_checking='no'
8886fi
8887
8888
8889if test "$enable_bounds_checking" = yes; then
8890
cristy8b350f62009-11-15 23:12:43 +00008891$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008892
8893fi
8894
8895#
8896# Tests for Windows
8897#
8898
8899
8900
8901GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008902native_win32_build='no'
8903cygwin_build='no'
8904case "${host_os}" in
8905 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008906 cygwin_build='yes'
8907 GDI32_LIBS='-lgdi32'
8908 ;;
8909 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008910 native_win32_build='yes'
8911 GDI32_LIBS='-lgdi32'
8912 ;;
8913esac
8914if test "${GDI32_LIBS}x" != 'x'; then
8915
cristy8b350f62009-11-15 23:12:43 +00008916$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008917
8918fi
8919
cristy73bd4a52010-10-05 11:24:23 +00008920 if test "${GDI32_LIBS}x" != 'x' ; then
8921 WINGDI32_DELEGATE_TRUE=
8922 WINGDI32_DELEGATE_FALSE='#'
8923else
8924 WINGDI32_DELEGATE_TRUE='#'
8925 WINGDI32_DELEGATE_FALSE=
8926fi
8927
8928 if test "${native_win32_build}" = 'yes' ; then
8929 WIN32_NATIVE_BUILD_TRUE=
8930 WIN32_NATIVE_BUILD_FALSE='#'
8931else
8932 WIN32_NATIVE_BUILD_TRUE='#'
8933 WIN32_NATIVE_BUILD_FALSE=
8934fi
8935
8936 if test "${cygwin_build}" = 'yes' ; then
8937 CYGWIN_BUILD_TRUE=
8938 CYGWIN_BUILD_FALSE='#'
8939else
8940 CYGWIN_BUILD_TRUE='#'
8941 CYGWIN_BUILD_FALSE=
8942fi
8943
8944 if test "x${CC}" = 'xcl.exe' ; then
8945 USING_CL_TRUE=
8946 USING_CL_FALSE='#'
8947else
8948 USING_CL_TRUE='#'
8949 USING_CL_FALSE=
8950fi
8951
cristy3ed852e2009-09-05 21:47:34 +00008952
8953WinPathScript="${srcdirfull}/winpath.sh"
8954
8955
8956#
8957# Compiler flags tweaks
8958#
8959if test "${GCC}" != "yes"; then
8960 case "${host}" in
8961 *-*-hpux* )
8962 # aCC: HP ANSI C++ B3910B A.03.34
8963 CFLAGS="${CFLAGS} -Wp,-H30000"
8964 if test -n "${CXXFLAGS}"; then
8965 CXXFLAGS='-AA'
8966 else
8967 CXXFLAGS="${CXXFLAGS} -AA"
8968 fi
8969 ;;
8970 *-dec-osf5.* )
8971 # Compaq alphaev68-dec-osf5.1 compiler
8972 if test -n "${CXXFLAGS}"; then
8973 CXXFLAGS='-std strict_ansi -noimplicit_include'
8974 else
8975 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8976 fi
8977 esac
8978fi
8979
8980# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008982$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008983if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008984 $as_echo_n "(cached) " >&6
8985else
8986
8987im_cv_ld_lazyload='none'
8988case "${host}" in
8989 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8990 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8991 im_cv_ld_lazyload='-Wl,-zlazyload'
8992 fi
8993 ;;
8994esac
8995
8996fi
cristy8b350f62009-11-15 23:12:43 +00008997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008998$as_echo "$im_cv_ld_lazyload" >&6; }
8999if test "${im_cv_ld_lazyload}" != 'none' ; then
9000 if test -z "${LDFLAGS}" ; then
9001 LDFLAGS="${im_cv_ld_lazyload}"
9002 else
9003 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9004 fi
9005fi
9006
9007case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009008 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009009 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009010 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009011if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009012 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9013else
9014 build_osxuniversal=no
9015fi
9016
9017
cristyc37574e2013-02-16 01:04:55 +00009018 if test "${build_osxuniversal}" != no ; then
9019 if test "$enable_dependency_tracking" != no ; then
9020 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009021Please re-run configure with these options:
9022 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009023 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009024 fi
9025 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9026 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9027 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009028 fi
9029 ;;
9030esac
9031
cristy0151ae12011-10-28 16:32:29 +00009032#
9033# ARCH specific include directory
9034#
9035
cristy670aa3c2011-11-03 00:54:00 +00009036# Check whether --with-includearch-dir was given.
9037if test "${with_includearch_dir+set}" = set; then :
9038 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009039else
cristy670aa3c2011-11-03 00:54:00 +00009040 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009041fi
9042
9043
cristyd286fd72013-02-24 19:25:33 +00009044eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009045
cristy0151ae12011-10-28 16:32:29 +00009046
9047#
9048# ARCH specific configuration directory
9049#
9050
cristy670aa3c2011-11-03 00:54:00 +00009051# Check whether --with-sharearch-dir was given.
9052if test "${with_sharearch_dir+set}" = set; then :
9053 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009054else
cristy408ebcd2011-11-14 01:36:57 +00009055 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009056fi
9057
9058
cristy670aa3c2011-11-03 00:54:00 +00009059eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009060
cristy0151ae12011-10-28 16:32:29 +00009061
cristy2ec87cc2013-02-18 17:46:50 +00009062# Path to the pkgconfig folder
9063
9064# Check whether --with-pkgconfigdir was given.
9065if test "${with_pkgconfigdir+set}" = set; then :
9066 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9067else
9068 pkgconfigdir='${libdir}/pkgconfig'
9069fi
9070
9071
9072
cristy0151ae12011-10-28 16:32:29 +00009073#
cristy3ed852e2009-09-05 21:47:34 +00009074# Enable support for threads
9075
9076# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009077if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009078 withval=$with_threads; with_threads=$withval
9079else
9080 with_threads='yes'
9081fi
9082
9083
9084have_threads=no
9085if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009086
9087
cristy73bd4a52010-10-05 11:24:23 +00009088ac_ext=c
9089ac_cpp='$CPP $CPPFLAGS'
9090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9092ac_compiler_gnu=$ac_cv_c_compiler_gnu
9093
9094ax_pthread_ok=no
9095
9096# We used to check for pthread.h first, but this fails if pthread.h
9097# requires special compiler flags (e.g. on True64 or Sequent).
9098# It gets checked for in the link test anyway.
9099
9100# First of all, check if the user has set any of the PTHREAD_LIBS,
9101# etcetera environment variables, and if threads linking works using
9102# them:
9103if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9104 save_CFLAGS="$CFLAGS"
9105 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9106 save_LIBS="$LIBS"
9107 LIBS="$PTHREAD_LIBS $LIBS"
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9109$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111/* end confdefs.h. */
9112
9113/* Override any GCC internal prototype to avoid an error.
9114 Use char because int might match the return type of a GCC
9115 builtin and then its argument prototype would still apply. */
9116#ifdef __cplusplus
9117extern "C"
9118#endif
9119char pthread_join ();
9120int
9121main ()
9122{
9123return pthread_join ();
9124 ;
9125 return 0;
9126}
9127_ACEOF
9128if ac_fn_c_try_link "$LINENO"; then :
9129 ax_pthread_ok=yes
9130fi
9131rm -f core conftest.err conftest.$ac_objext \
9132 conftest$ac_exeext conftest.$ac_ext
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" = xno; then
9136 PTHREAD_LIBS=""
9137 PTHREAD_CFLAGS=""
9138 fi
9139 LIBS="$save_LIBS"
9140 CFLAGS="$save_CFLAGS"
9141fi
9142
9143# We must check for the threads library under a number of different
9144# names; the ordering is very important because some systems
9145# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9146# libraries is broken (non-POSIX).
9147
9148# Create a list of thread flags to try. Items starting with a "-" are
9149# C compiler flags, and other items are library names, except for "none"
9150# which indicates that we try without any flags at all, and "pthread-config"
9151# which is a program returning the flags for the Pth emulation library.
9152
cristy2ec87cc2013-02-18 17:46:50 +00009153ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009154
9155# The ordering *is* (sometimes) important. Some notes on the
9156# individual items follow:
9157
9158# pthreads: AIX (must check this before -lpthread)
9159# none: in case threads are in libc; should be tried before -Kthread and
9160# other compiler flags to prevent continual compiler warnings
9161# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9162# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9163# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9164# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9165# -pthreads: Solaris/gcc
9166# -mthreads: Mingw32/gcc, Lynx/gcc
9167# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9168# doesn't hurt to check since this sometimes defines pthreads too;
9169# also defines -D_REENTRANT)
9170# ... -mt is also the pthreads flag for HP/aCC
9171# pthread: Linux, etcetera
9172# --thread-safe: KAI C++
9173# pthread-config: use pthread-config program (for GNU Pth library)
9174
cristy2ec87cc2013-02-18 17:46:50 +00009175case ${host_os} in
9176 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009177
9178 # On Solaris (at least, for some versions), libc contains stubbed
9179 # (non-functional) versions of the pthreads routines, so link-based
9180 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9181 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9182 # a function called by this macro, so we could check for that, but
9183 # who knows whether they'll stub that too in a future libc.) So,
9184 # we'll just look for -pthreads and -lpthread first:
9185
9186 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9187 ;;
9188
cristy2ec87cc2013-02-18 17:46:50 +00009189 darwin*)
cristya316db12011-10-24 00:49:45 +00009190 ax_pthread_flags="-pthread $ax_pthread_flags"
9191 ;;
cristy73bd4a52010-10-05 11:24:23 +00009192esac
9193
9194if test x"$ax_pthread_ok" = xno; then
9195for flag in $ax_pthread_flags; do
9196
9197 case $flag in
9198 none)
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9200$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9201 ;;
9202
9203 -*)
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9205$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9206 PTHREAD_CFLAGS="$flag"
9207 ;;
9208
cristya316db12011-10-24 00:49:45 +00009209 pthread-config)
9210 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009211set dummy pthread-config; ac_word=$2
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009214if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009215 $as_echo_n "(cached) " >&6
9216else
9217 if test -n "$ax_pthread_config"; then
9218 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9219else
9220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221for as_dir in $PATH
9222do
9223 IFS=$as_save_IFS
9224 test -z "$as_dir" && as_dir=.
9225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009227 ac_cv_prog_ax_pthread_config="yes"
9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 break 2
9230 fi
9231done
9232 done
9233IFS=$as_save_IFS
9234
9235 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9236fi
9237fi
9238ax_pthread_config=$ac_cv_prog_ax_pthread_config
9239if test -n "$ax_pthread_config"; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9241$as_echo "$ax_pthread_config" >&6; }
9242else
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244$as_echo "no" >&6; }
9245fi
9246
9247
cristya316db12011-10-24 00:49:45 +00009248 if test x"$ax_pthread_config" = xno; then continue; fi
9249 PTHREAD_CFLAGS="`pthread-config --cflags`"
9250 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9251 ;;
cristy73bd4a52010-10-05 11:24:23 +00009252
9253 *)
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9255$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9256 PTHREAD_LIBS="-l$flag"
9257 ;;
9258 esac
9259
9260 save_LIBS="$LIBS"
9261 save_CFLAGS="$CFLAGS"
9262 LIBS="$PTHREAD_LIBS $LIBS"
9263 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9264
9265 # Check for various functions. We must include pthread.h,
9266 # since some functions may be macros. (On the Sequent, we
9267 # need a special flag -Kthread to make this header compile.)
9268 # We check for pthread_join because it is in -lpthread on IRIX
9269 # while pthread_create is in libc. We check for pthread_attr_init
9270 # due to DEC craziness with -lpthreads. We check for
9271 # pthread_cleanup_push because it is one of the few pthread
9272 # functions on Solaris that doesn't have a non-functional libc stub.
9273 # We try pthread_create on general principles.
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275/* end confdefs.h. */
9276#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009277 static void routine(void *a) { a = 0; }
9278 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009279int
9280main ()
9281{
9282pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009283 pthread_create(&th, 0, start_routine, 0);
9284 pthread_join(th, 0);
9285 pthread_attr_init(&attr);
9286 pthread_cleanup_push(routine, 0);
9287 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009288 ;
9289 return 0;
9290}
9291_ACEOF
9292if ac_fn_c_try_link "$LINENO"; then :
9293 ax_pthread_ok=yes
9294fi
9295rm -f core conftest.err conftest.$ac_objext \
9296 conftest$ac_exeext conftest.$ac_ext
9297
9298 LIBS="$save_LIBS"
9299 CFLAGS="$save_CFLAGS"
9300
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9302$as_echo "$ax_pthread_ok" >&6; }
9303 if test "x$ax_pthread_ok" = xyes; then
9304 break;
9305 fi
9306
9307 PTHREAD_LIBS=""
9308 PTHREAD_CFLAGS=""
9309done
9310fi
9311
9312# Various other checks:
9313if test "x$ax_pthread_ok" = xyes; then
9314 save_LIBS="$LIBS"
9315 LIBS="$PTHREAD_LIBS $LIBS"
9316 save_CFLAGS="$CFLAGS"
9317 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9318
9319 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009321$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009322 attr_name=unknown
9323 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009325/* end confdefs.h. */
9326#include <pthread.h>
9327int
9328main ()
9329{
cristya316db12011-10-24 00:49:45 +00009330int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009331 ;
9332 return 0;
9333}
9334_ACEOF
9335if ac_fn_c_try_link "$LINENO"; then :
9336 attr_name=$attr; break
9337fi
9338rm -f core conftest.err conftest.$ac_objext \
9339 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009340 done
cristy73bd4a52010-10-05 11:24:23 +00009341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9342$as_echo "$attr_name" >&6; }
9343 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9344
9345cat >>confdefs.h <<_ACEOF
9346#define PTHREAD_CREATE_JOINABLE $attr_name
9347_ACEOF
9348
9349 fi
9350
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9352$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9353 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009354 case ${host_os} in
9355 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9356 osf* | hpux*) flag="-D_REENTRANT";;
9357 solaris*)
9358 if test "$GCC" = "yes"; then
9359 flag="-D_REENTRANT"
9360 else
9361 flag="-mt -D_REENTRANT"
9362 fi
9363 ;;
cristy73bd4a52010-10-05 11:24:23 +00009364 esac
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9366$as_echo "${flag}" >&6; }
9367 if test "x$flag" != xno; then
9368 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9369 fi
9370
cristya316db12011-10-24 00:49:45 +00009371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9372$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9373if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9374 $as_echo_n "(cached) " >&6
9375else
9376
9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378/* end confdefs.h. */
9379
9380 #include <pthread.h>
9381int
9382main ()
9383{
9384int i = PTHREAD_PRIO_INHERIT;
9385 ;
9386 return 0;
9387}
9388_ACEOF
9389if ac_fn_c_try_link "$LINENO"; then :
9390 ax_cv_PTHREAD_PRIO_INHERIT=yes
9391else
9392 ax_cv_PTHREAD_PRIO_INHERIT=no
9393fi
9394rm -f core conftest.err conftest.$ac_objext \
9395 conftest$ac_exeext conftest.$ac_ext
9396
9397fi
9398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9399$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9400 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9401
9402$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9403
9404fi
9405
cristy73bd4a52010-10-05 11:24:23 +00009406 LIBS="$save_LIBS"
9407 CFLAGS="$save_CFLAGS"
9408
cristy23493c42013-04-11 16:04:59 +00009409 # More AIX lossage: compile with *_r variant
9410 if test "x$GCC" != xyes; then
9411 case $host_os in
9412 aix*)
9413 case "x/$CC" in #(
9414 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9415 #handle absolute path differently from PATH based program lookup
9416 case "x$CC" in #(
9417 x/*) :
9418 if as_fn_executable_p ${CC}_r; then :
9419 PTHREAD_CC="${CC}_r"
9420fi ;; #(
9421 *) :
9422 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009423do
9424 # Extract the first word of "$ac_prog", so it can be a program name with args.
9425set dummy $ac_prog; ac_word=$2
9426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9427$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009428if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009429 $as_echo_n "(cached) " >&6
9430else
9431 if test -n "$PTHREAD_CC"; then
9432 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9433else
9434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9435for as_dir in $PATH
9436do
9437 IFS=$as_save_IFS
9438 test -z "$as_dir" && as_dir=.
9439 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009441 ac_cv_prog_PTHREAD_CC="$ac_prog"
9442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9443 break 2
9444 fi
9445done
9446 done
9447IFS=$as_save_IFS
9448
9449fi
9450fi
9451PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9452if test -n "$PTHREAD_CC"; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9454$as_echo "$PTHREAD_CC" >&6; }
9455else
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457$as_echo "no" >&6; }
9458fi
9459
9460
9461 test -n "$PTHREAD_CC" && break
9462done
cristy23493c42013-04-11 16:04:59 +00009463test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9464 ;;
9465esac ;; #(
9466 *) :
9467 ;;
9468esac
9469 ;;
9470 esac
cristya316db12011-10-24 00:49:45 +00009471 fi
cristy73bd4a52010-10-05 11:24:23 +00009472fi
9473
cristy23493c42013-04-11 16:04:59 +00009474test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9475
cristy73bd4a52010-10-05 11:24:23 +00009476
9477
9478
9479
9480# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9481if test x"$ax_pthread_ok" = xyes; then
9482
9483$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9484
9485 :
9486else
9487 ax_pthread_ok=no
9488
9489fi
9490ac_ext=c
9491ac_cpp='$CPP $CPPFLAGS'
9492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9494ac_compiler_gnu=$ac_cv_c_compiler_gnu
9495
9496
cristy7acf8fb2010-09-23 19:58:53 +00009497 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009498 have_threads=yes
9499 DEF_THREAD="$PTHREAD_CFLAGS"
9500 CFLAGS="$CFLAGS $DEF_THREAD"
9501 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9502 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009503 { $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 +00009504$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9505 CC="$PTHREAD_CC"
9506 fi
cristy55bf91c2010-09-24 00:29:41 +00009507
9508$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9509
cristy3ed852e2009-09-05 21:47:34 +00009510 fi
9511fi
9512
9513# Enable support for OpenMP
9514if test "$have_threads" != 'yes'; then
9515 ac_cv_prog_c_openmp=unsupported
9516fi
9517
9518 OPENMP_CFLAGS=
9519 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009520if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009521 enableval=$enable_openmp;
9522fi
9523
9524 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009526$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009527if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009528 $as_echo_n "(cached) " >&6
9529else
cristy8b350f62009-11-15 23:12:43 +00009530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009532
9533#ifndef _OPENMP
9534 choke me
9535#endif
9536#include <omp.h>
9537int main () { return omp_get_num_threads (); }
9538
9539_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009540if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009541 ac_cv_prog_c_openmp='none needed'
9542else
cristy8b350f62009-11-15 23:12:43 +00009543 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009544 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9545 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009546 ac_save_CFLAGS=$CFLAGS
9547 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009550
9551#ifndef _OPENMP
9552 choke me
9553#endif
9554#include <omp.h>
9555int main () { return omp_get_num_threads (); }
9556
9557_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009558if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009559 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009560fi
cristy8b350f62009-11-15 23:12:43 +00009561rm -f core conftest.err conftest.$ac_objext \
9562 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009563 CFLAGS=$ac_save_CFLAGS
9564 if test "$ac_cv_prog_c_openmp" != unsupported; then
9565 break
9566 fi
9567 done
9568fi
cristy8b350f62009-11-15 23:12:43 +00009569rm -f core conftest.err conftest.$ac_objext \
9570 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009571fi
cristy8b350f62009-11-15 23:12:43 +00009572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009573$as_echo "$ac_cv_prog_c_openmp" >&6; }
9574 case $ac_cv_prog_c_openmp in #(
9575 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009576 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009577 *)
cristy8b350f62009-11-15 23:12:43 +00009578 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009579 esac
9580 fi
9581
9582
9583CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9584MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9585
cristy391f1ce2010-09-09 17:23:28 +00009586if test "$enable_openmp" != no; then
9587 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9588 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9589 fi
9590fi
cristy3ed852e2009-09-05 21:47:34 +00009591
cristy736173a2009-09-20 21:18:22 +00009592# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009593
9594
cristy73bd4a52010-10-05 11:24:23 +00009595ac_ext=c
9596ac_cpp='$CPP $CPPFLAGS'
9597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9599ac_compiler_gnu=$ac_cv_c_compiler_gnu
9600
9601ax_pthread_ok=no
9602
9603# We used to check for pthread.h first, but this fails if pthread.h
9604# requires special compiler flags (e.g. on True64 or Sequent).
9605# It gets checked for in the link test anyway.
9606
9607# First of all, check if the user has set any of the PTHREAD_LIBS,
9608# etcetera environment variables, and if threads linking works using
9609# them:
9610if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9611 save_CFLAGS="$CFLAGS"
9612 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9613 save_LIBS="$LIBS"
9614 LIBS="$PTHREAD_LIBS $LIBS"
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9616$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618/* end confdefs.h. */
9619
9620/* Override any GCC internal prototype to avoid an error.
9621 Use char because int might match the return type of a GCC
9622 builtin and then its argument prototype would still apply. */
9623#ifdef __cplusplus
9624extern "C"
9625#endif
9626char pthread_join ();
9627int
9628main ()
9629{
9630return pthread_join ();
9631 ;
9632 return 0;
9633}
9634_ACEOF
9635if ac_fn_c_try_link "$LINENO"; then :
9636 ax_pthread_ok=yes
9637fi
9638rm -f core conftest.err conftest.$ac_objext \
9639 conftest$ac_exeext conftest.$ac_ext
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9641$as_echo "$ax_pthread_ok" >&6; }
9642 if test x"$ax_pthread_ok" = xno; then
9643 PTHREAD_LIBS=""
9644 PTHREAD_CFLAGS=""
9645 fi
9646 LIBS="$save_LIBS"
9647 CFLAGS="$save_CFLAGS"
9648fi
9649
9650# We must check for the threads library under a number of different
9651# names; the ordering is very important because some systems
9652# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9653# libraries is broken (non-POSIX).
9654
9655# Create a list of thread flags to try. Items starting with a "-" are
9656# C compiler flags, and other items are library names, except for "none"
9657# which indicates that we try without any flags at all, and "pthread-config"
9658# which is a program returning the flags for the Pth emulation library.
9659
cristy2ec87cc2013-02-18 17:46:50 +00009660ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009661
9662# The ordering *is* (sometimes) important. Some notes on the
9663# individual items follow:
9664
9665# pthreads: AIX (must check this before -lpthread)
9666# none: in case threads are in libc; should be tried before -Kthread and
9667# other compiler flags to prevent continual compiler warnings
9668# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9669# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9670# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9671# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9672# -pthreads: Solaris/gcc
9673# -mthreads: Mingw32/gcc, Lynx/gcc
9674# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9675# doesn't hurt to check since this sometimes defines pthreads too;
9676# also defines -D_REENTRANT)
9677# ... -mt is also the pthreads flag for HP/aCC
9678# pthread: Linux, etcetera
9679# --thread-safe: KAI C++
9680# pthread-config: use pthread-config program (for GNU Pth library)
9681
cristy2ec87cc2013-02-18 17:46:50 +00009682case ${host_os} in
9683 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009684
9685 # On Solaris (at least, for some versions), libc contains stubbed
9686 # (non-functional) versions of the pthreads routines, so link-based
9687 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9688 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9689 # a function called by this macro, so we could check for that, but
9690 # who knows whether they'll stub that too in a future libc.) So,
9691 # we'll just look for -pthreads and -lpthread first:
9692
9693 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9694 ;;
9695
cristy2ec87cc2013-02-18 17:46:50 +00009696 darwin*)
cristya316db12011-10-24 00:49:45 +00009697 ax_pthread_flags="-pthread $ax_pthread_flags"
9698 ;;
cristy73bd4a52010-10-05 11:24:23 +00009699esac
9700
9701if test x"$ax_pthread_ok" = xno; then
9702for flag in $ax_pthread_flags; do
9703
9704 case $flag in
9705 none)
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9707$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9708 ;;
9709
9710 -*)
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9712$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9713 PTHREAD_CFLAGS="$flag"
9714 ;;
9715
cristya316db12011-10-24 00:49:45 +00009716 pthread-config)
9717 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009718set dummy pthread-config; ac_word=$2
9719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9720$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009721if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009722 $as_echo_n "(cached) " >&6
9723else
9724 if test -n "$ax_pthread_config"; then
9725 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9726else
9727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728for as_dir in $PATH
9729do
9730 IFS=$as_save_IFS
9731 test -z "$as_dir" && as_dir=.
9732 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009734 ac_cv_prog_ax_pthread_config="yes"
9735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9736 break 2
9737 fi
9738done
9739 done
9740IFS=$as_save_IFS
9741
9742 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9743fi
9744fi
9745ax_pthread_config=$ac_cv_prog_ax_pthread_config
9746if test -n "$ax_pthread_config"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9748$as_echo "$ax_pthread_config" >&6; }
9749else
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751$as_echo "no" >&6; }
9752fi
9753
9754
cristya316db12011-10-24 00:49:45 +00009755 if test x"$ax_pthread_config" = xno; then continue; fi
9756 PTHREAD_CFLAGS="`pthread-config --cflags`"
9757 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9758 ;;
cristy73bd4a52010-10-05 11:24:23 +00009759
9760 *)
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9762$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9763 PTHREAD_LIBS="-l$flag"
9764 ;;
9765 esac
9766
9767 save_LIBS="$LIBS"
9768 save_CFLAGS="$CFLAGS"
9769 LIBS="$PTHREAD_LIBS $LIBS"
9770 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9771
9772 # Check for various functions. We must include pthread.h,
9773 # since some functions may be macros. (On the Sequent, we
9774 # need a special flag -Kthread to make this header compile.)
9775 # We check for pthread_join because it is in -lpthread on IRIX
9776 # while pthread_create is in libc. We check for pthread_attr_init
9777 # due to DEC craziness with -lpthreads. We check for
9778 # pthread_cleanup_push because it is one of the few pthread
9779 # functions on Solaris that doesn't have a non-functional libc stub.
9780 # We try pthread_create on general principles.
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782/* end confdefs.h. */
9783#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009784 static void routine(void *a) { a = 0; }
9785 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009786int
9787main ()
9788{
9789pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009790 pthread_create(&th, 0, start_routine, 0);
9791 pthread_join(th, 0);
9792 pthread_attr_init(&attr);
9793 pthread_cleanup_push(routine, 0);
9794 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009795 ;
9796 return 0;
9797}
9798_ACEOF
9799if ac_fn_c_try_link "$LINENO"; then :
9800 ax_pthread_ok=yes
9801fi
9802rm -f core conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9804
9805 LIBS="$save_LIBS"
9806 CFLAGS="$save_CFLAGS"
9807
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9809$as_echo "$ax_pthread_ok" >&6; }
9810 if test "x$ax_pthread_ok" = xyes; then
9811 break;
9812 fi
9813
9814 PTHREAD_LIBS=""
9815 PTHREAD_CFLAGS=""
9816done
9817fi
9818
9819# Various other checks:
9820if test "x$ax_pthread_ok" = xyes; then
9821 save_LIBS="$LIBS"
9822 LIBS="$PTHREAD_LIBS $LIBS"
9823 save_CFLAGS="$CFLAGS"
9824 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9825
9826 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009828$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009829 attr_name=unknown
9830 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009832/* end confdefs.h. */
9833#include <pthread.h>
9834int
9835main ()
9836{
cristya316db12011-10-24 00:49:45 +00009837int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009838 ;
9839 return 0;
9840}
9841_ACEOF
9842if ac_fn_c_try_link "$LINENO"; then :
9843 attr_name=$attr; break
9844fi
9845rm -f core conftest.err conftest.$ac_objext \
9846 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009847 done
cristy73bd4a52010-10-05 11:24:23 +00009848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9849$as_echo "$attr_name" >&6; }
9850 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9851
9852cat >>confdefs.h <<_ACEOF
9853#define PTHREAD_CREATE_JOINABLE $attr_name
9854_ACEOF
9855
9856 fi
9857
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9859$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9860 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009861 case ${host_os} in
9862 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9863 osf* | hpux*) flag="-D_REENTRANT";;
9864 solaris*)
9865 if test "$GCC" = "yes"; then
9866 flag="-D_REENTRANT"
9867 else
9868 flag="-mt -D_REENTRANT"
9869 fi
9870 ;;
cristy73bd4a52010-10-05 11:24:23 +00009871 esac
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9873$as_echo "${flag}" >&6; }
9874 if test "x$flag" != xno; then
9875 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9876 fi
9877
cristya316db12011-10-24 00:49:45 +00009878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9879$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9880if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9881 $as_echo_n "(cached) " >&6
9882else
9883
9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885/* end confdefs.h. */
9886
9887 #include <pthread.h>
9888int
9889main ()
9890{
9891int i = PTHREAD_PRIO_INHERIT;
9892 ;
9893 return 0;
9894}
9895_ACEOF
9896if ac_fn_c_try_link "$LINENO"; then :
9897 ax_cv_PTHREAD_PRIO_INHERIT=yes
9898else
9899 ax_cv_PTHREAD_PRIO_INHERIT=no
9900fi
9901rm -f core conftest.err conftest.$ac_objext \
9902 conftest$ac_exeext conftest.$ac_ext
9903
9904fi
9905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9906$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9907 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9908
9909$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9910
9911fi
9912
cristy73bd4a52010-10-05 11:24:23 +00009913 LIBS="$save_LIBS"
9914 CFLAGS="$save_CFLAGS"
9915
cristy23493c42013-04-11 16:04:59 +00009916 # More AIX lossage: compile with *_r variant
9917 if test "x$GCC" != xyes; then
9918 case $host_os in
9919 aix*)
9920 case "x/$CC" in #(
9921 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9922 #handle absolute path differently from PATH based program lookup
9923 case "x$CC" in #(
9924 x/*) :
9925 if as_fn_executable_p ${CC}_r; then :
9926 PTHREAD_CC="${CC}_r"
9927fi ;; #(
9928 *) :
9929 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009930do
9931 # Extract the first word of "$ac_prog", so it can be a program name with args.
9932set dummy $ac_prog; ac_word=$2
9933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9934$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009935if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009936 $as_echo_n "(cached) " >&6
9937else
9938 if test -n "$PTHREAD_CC"; then
9939 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9940else
9941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9942for as_dir in $PATH
9943do
9944 IFS=$as_save_IFS
9945 test -z "$as_dir" && as_dir=.
9946 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009948 ac_cv_prog_PTHREAD_CC="$ac_prog"
9949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9950 break 2
9951 fi
9952done
9953 done
9954IFS=$as_save_IFS
9955
9956fi
9957fi
9958PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9959if test -n "$PTHREAD_CC"; then
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9961$as_echo "$PTHREAD_CC" >&6; }
9962else
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964$as_echo "no" >&6; }
9965fi
9966
9967
9968 test -n "$PTHREAD_CC" && break
9969done
cristy23493c42013-04-11 16:04:59 +00009970test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9971 ;;
9972esac ;; #(
9973 *) :
9974 ;;
9975esac
9976 ;;
9977 esac
cristya316db12011-10-24 00:49:45 +00009978 fi
cristy73bd4a52010-10-05 11:24:23 +00009979fi
9980
cristy23493c42013-04-11 16:04:59 +00009981test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9982
cristy73bd4a52010-10-05 11:24:23 +00009983
9984
9985
9986
9987# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9988if test x"$ax_pthread_ok" = xyes; then
9989
9990$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9991
9992 :
9993else
9994 ax_pthread_ok=no
9995
9996fi
9997ac_ext=c
9998ac_cpp='$CPP $CPPFLAGS'
9999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10001ac_compiler_gnu=$ac_cv_c_compiler_gnu
10002
10003
10004
10005# Check whether --enable-opencl was given.
10006if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010007 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010008else
cristy48794642012-09-02 15:19:08 +000010009 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010010fi
10011
10012
cristy48794642012-09-02 15:19:08 +000010013if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010014 ac_ext=c
10015ac_cpp='$CPP $CPPFLAGS'
10016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10018ac_compiler_gnu=$ac_cv_c_compiler_gnu
10019
cristy75314cc2012-09-15 23:08:29 +000010020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10021$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10022if ${ax_cv_c_compiler_ms+:} false; then :
10023 $as_echo_n "(cached) " >&6
10024else
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026/* end confdefs.h. */
10027
10028int
10029main ()
10030{
10031#ifndef _MSC_VER
10032 choke me
10033#endif
10034
10035 ;
10036 return 0;
10037}
10038_ACEOF
10039if ac_fn_c_try_compile "$LINENO"; then :
10040 ax_compiler_ms=yes
10041else
10042 ax_compiler_ms=no
10043fi
10044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10045ax_cv_c_compiler_ms=$ax_compiler_ms
10046
10047fi
10048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10049$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010050 if test X$ax_compiler_ms = Xno; then :
10051 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10052fi
10053
10054 ax_save_CPPFLAGS=$CPPFLAGS
10055 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10056 for ac_header in CL/cl.h OpenCL/cl.h
10057do :
10058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10059ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010060if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010061 cat >>confdefs.h <<_ACEOF
10062#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10063_ACEOF
10064
10065fi
10066
10067done
10068
10069 CPPFLAGS=$ax_save_CPPFLAGS
10070
10071 for ac_header in windows.h
10072do :
10073 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010074if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010075 cat >>confdefs.h <<_ACEOF
10076#define HAVE_WINDOWS_H 1
10077_ACEOF
10078
10079fi
10080
10081done
10082
10083
10084
10085
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10087$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010088if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010089 $as_echo_n "(cached) " >&6
10090else
10091 ax_cv_check_cl_libcl=no
10092 case $host_cpu in
10093 x86_64) ax_check_cl_libdir=lib64 ;;
10094 *) ax_check_cl_libdir=lib ;;
10095 esac
10096 ax_save_CPPFLAGS=$CPPFLAGS
10097 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10098 ax_save_LIBS=$LIBS
10099 LIBS=""
10100 ax_check_libs="-lOpenCL -lCL -lclparser"
10101 for ax_lib in $ax_check_libs; do
10102 if test X$ax_compiler_ms = Xyes; then :
10103 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10104else
10105 ax_try_lib=$ax_lib
10106fi
10107 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109/* end confdefs.h. */
10110
10111 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10112 # include <windows.h>
10113 # endif
10114 # ifdef HAVE_CL_CL_H
10115 # include <CL/cl.h>
10116 # elif defined(HAVE_OPENCL_CL_H)
10117 # include <OpenCL/cl.h>
10118 # else
10119 # error no CL.h
10120 # endif
10121int
10122main ()
10123{
10124clCreateContextFromType(0,0,0,0,0)
10125 ;
10126 return 0;
10127}
10128_ACEOF
10129if ac_fn_c_try_link "$LINENO"; then :
10130 ax_cv_check_cl_libcl=$ax_try_lib; break
10131else
10132 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"
10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134/* end confdefs.h. */
10135
10136 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10137 # include <windows.h>
10138 # endif
10139 # ifdef HAVE_CL_CL_H
10140 # include <CL/cl.h>
10141 # elif defined(HAVE_OPENCL_CL_H)
10142 # include <OpenCL/cl.h>
10143 # else
10144 # error no CL.h
10145 # endif
10146int
10147main ()
10148{
10149clCreateContextFromType(0,0,0,0,0)
10150 ;
10151 return 0;
10152}
10153_ACEOF
10154if ac_fn_c_try_link "$LINENO"; then :
10155 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10156else
cristy78c5a0c2010-12-04 20:00:59 +000010157 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 +000010158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10159/* end confdefs.h. */
10160
10161 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10162 # include <windows.h>
10163 # endif
10164 # ifdef HAVE_CL_CL_H
10165 # include <CL/cl.h>
10166 # elif defined(HAVE_OPENCL_CL_H)
10167 # include <OpenCL/cl.h>
10168 # else
10169 # error no CL.h
10170 # endif
10171int
10172main ()
10173{
10174clCreateContextFromType(0,0,0,0,0)
10175 ;
10176 return 0;
10177}
10178_ACEOF
10179if ac_fn_c_try_link "$LINENO"; then :
10180 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10181fi
10182rm -f core conftest.err conftest.$ac_objext \
10183 conftest$ac_exeext conftest.$ac_ext
10184fi
10185rm -f core conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10187fi
10188rm -f core conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
10190 done
10191
cristyc3f8b8e2011-12-22 14:55:16 +000010192 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010193 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195/* end confdefs.h. */
10196
10197 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10198 # include <windows.h>
10199 # endif
10200 # ifdef HAVE_CL_CL_H
10201 # include <CL/cl.h>
10202 # elif defined(HAVE_OPENCL_CL_H)
10203 # include <OpenCL/cl.h>
10204 # else
10205 # error no CL.h
10206 # endif
10207int
10208main ()
10209{
10210clCreateContextFromType(0,0,0,0,0)
10211 ;
10212 return 0;
10213}
10214_ACEOF
10215if ac_fn_c_try_link "$LINENO"; then :
10216 ax_cv_check_cl_libcl=$LIBS
10217fi
10218rm -f core conftest.err conftest.$ac_objext \
10219 conftest$ac_exeext conftest.$ac_ext
10220fi
10221
10222 LIBS=$ax_save_LIBS
10223 CPPFLAGS=$ax_save_CPPFLAGS
10224fi
10225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10226$as_echo "$ax_cv_check_cl_libcl" >&6; }
10227
10228 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10229 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10230else
10231 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10232$as_echo "#define _OPENCL 1" >>confdefs.h
10233
10234fi
10235 ac_ext=c
10236ac_cpp='$CPP $CPPFLAGS'
10237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10239ac_compiler_gnu=$ac_cv_c_compiler_gnu
10240
10241fi
10242
10243
10244
10245
cristyc7083c12009-10-14 03:16:55 +000010246CFLAGS="$CL_CFLAGS $CFLAGS"
10247LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010248
cristy391f1ce2010-09-09 17:23:28 +000010249if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010250 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010251 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10252 fi
cristyfd9dcd42010-08-08 18:07:02 +000010253fi
cristy2e8b51d2009-10-17 18:26:15 +000010254
cristy3ed852e2009-09-05 21:47:34 +000010255########
10256#
10257# Check for large file support
10258#
10259########
10260# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010261if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010262 enableval=$enable_largefile;
10263fi
10264
10265if test "$enable_largefile" != no; then
10266
cristy8b350f62009-11-15 23:12:43 +000010267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010268$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010269if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010270 $as_echo_n "(cached) " >&6
10271else
10272 ac_cv_sys_largefile_CC=no
10273 if test "$GCC" != yes; then
10274 ac_save_CC=$CC
10275 while :; do
10276 # IRIX 6.2 and later do not support large files by default,
10277 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010279/* end confdefs.h. */
10280#include <sys/types.h>
10281 /* Check that off_t can represent 2**63 - 1 correctly.
10282 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10283 since some C++ compilers masquerading as C compilers
10284 incorrectly reject 9223372036854775807. */
10285#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10286 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10287 && LARGE_OFF_T % 2147483647 == 1)
10288 ? 1 : -1];
10289int
10290main ()
10291{
10292
10293 ;
10294 return 0;
10295}
10296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010297 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010298 break
cristy3ed852e2009-09-05 21:47:34 +000010299fi
cristy3ed852e2009-09-05 21:47:34 +000010300rm -f core conftest.err conftest.$ac_objext
10301 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010302 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010303 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010304fi
cristy3ed852e2009-09-05 21:47:34 +000010305rm -f core conftest.err conftest.$ac_objext
10306 break
10307 done
10308 CC=$ac_save_CC
10309 rm -f conftest.$ac_ext
10310 fi
10311fi
cristy8b350f62009-11-15 23:12:43 +000010312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010313$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10314 if test "$ac_cv_sys_largefile_CC" != no; then
10315 CC=$CC$ac_cv_sys_largefile_CC
10316 fi
10317
cristy8b350f62009-11-15 23:12:43 +000010318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010319$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010320if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010321 $as_echo_n "(cached) " >&6
10322else
10323 while :; do
cristy8b350f62009-11-15 23:12:43 +000010324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010325/* end confdefs.h. */
10326#include <sys/types.h>
10327 /* Check that off_t can represent 2**63 - 1 correctly.
10328 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10329 since some C++ compilers masquerading as C compilers
10330 incorrectly reject 9223372036854775807. */
10331#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10332 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10333 && LARGE_OFF_T % 2147483647 == 1)
10334 ? 1 : -1];
10335int
10336main ()
10337{
10338
10339 ;
10340 return 0;
10341}
10342_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010343if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010344 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010345fi
cristy3ed852e2009-09-05 21:47:34 +000010346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010348/* end confdefs.h. */
10349#define _FILE_OFFSET_BITS 64
10350#include <sys/types.h>
10351 /* Check that off_t can represent 2**63 - 1 correctly.
10352 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10353 since some C++ compilers masquerading as C compilers
10354 incorrectly reject 9223372036854775807. */
10355#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10356 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10357 && LARGE_OFF_T % 2147483647 == 1)
10358 ? 1 : -1];
10359int
10360main ()
10361{
10362
10363 ;
10364 return 0;
10365}
10366_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010367if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010368 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010369fi
cristy3ed852e2009-09-05 21:47:34 +000010370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10371 ac_cv_sys_file_offset_bits=unknown
10372 break
10373done
10374fi
cristy8b350f62009-11-15 23:12:43 +000010375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010376$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10377case $ac_cv_sys_file_offset_bits in #(
10378 no | unknown) ;;
10379 *)
10380cat >>confdefs.h <<_ACEOF
10381#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10382_ACEOF
10383;;
10384esac
10385rm -rf conftest*
10386 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010388$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010389if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010390 $as_echo_n "(cached) " >&6
10391else
10392 while :; do
cristy8b350f62009-11-15 23:12:43 +000010393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010394/* end confdefs.h. */
10395#include <sys/types.h>
10396 /* Check that off_t can represent 2**63 - 1 correctly.
10397 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10398 since some C++ compilers masquerading as C compilers
10399 incorrectly reject 9223372036854775807. */
10400#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10401 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10402 && LARGE_OFF_T % 2147483647 == 1)
10403 ? 1 : -1];
10404int
10405main ()
10406{
10407
10408 ;
10409 return 0;
10410}
10411_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010412if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010413 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010414fi
cristy3ed852e2009-09-05 21:47:34 +000010415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010417/* end confdefs.h. */
10418#define _LARGE_FILES 1
10419#include <sys/types.h>
10420 /* Check that off_t can represent 2**63 - 1 correctly.
10421 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10422 since some C++ compilers masquerading as C compilers
10423 incorrectly reject 9223372036854775807. */
10424#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10425 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10426 && LARGE_OFF_T % 2147483647 == 1)
10427 ? 1 : -1];
10428int
10429main ()
10430{
10431
10432 ;
10433 return 0;
10434}
10435_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010436if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010437 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010438fi
cristy3ed852e2009-09-05 21:47:34 +000010439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10440 ac_cv_sys_large_files=unknown
10441 break
10442done
10443fi
cristy8b350f62009-11-15 23:12:43 +000010444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010445$as_echo "$ac_cv_sys_large_files" >&6; }
10446case $ac_cv_sys_large_files in #(
10447 no | unknown) ;;
10448 *)
10449cat >>confdefs.h <<_ACEOF
10450#define _LARGE_FILES $ac_cv_sys_large_files
10451_ACEOF
10452;;
10453esac
10454rm -rf conftest*
10455 fi
cristy14fefe52012-05-21 00:59:18 +000010456
10457
cristy3ed852e2009-09-05 21:47:34 +000010458fi
10459
cristy8b350f62009-11-15 23:12:43 +000010460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010461$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010462if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010463 $as_echo_n "(cached) " >&6
10464else
10465 while :; do
cristy8b350f62009-11-15 23:12:43 +000010466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010467/* end confdefs.h. */
10468#include <sys/types.h> /* for off_t */
10469 #include <stdio.h>
10470int
10471main ()
10472{
10473int (*fp) (FILE *, off_t, int) = fseeko;
10474 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10475 ;
10476 return 0;
10477}
10478_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010479if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010480 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010481fi
cristy8b350f62009-11-15 23:12:43 +000010482rm -f core conftest.err conftest.$ac_objext \
10483 conftest$ac_exeext conftest.$ac_ext
10484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010485/* end confdefs.h. */
10486#define _LARGEFILE_SOURCE 1
10487#include <sys/types.h> /* for off_t */
10488 #include <stdio.h>
10489int
10490main ()
10491{
10492int (*fp) (FILE *, off_t, int) = fseeko;
10493 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10494 ;
10495 return 0;
10496}
10497_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010498if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010499 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010500fi
cristy8b350f62009-11-15 23:12:43 +000010501rm -f core conftest.err conftest.$ac_objext \
10502 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010503 ac_cv_sys_largefile_source=unknown
10504 break
10505done
10506fi
cristy8b350f62009-11-15 23:12:43 +000010507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010508$as_echo "$ac_cv_sys_largefile_source" >&6; }
10509case $ac_cv_sys_largefile_source in #(
10510 no | unknown) ;;
10511 *)
10512cat >>confdefs.h <<_ACEOF
10513#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10514_ACEOF
10515;;
10516esac
10517rm -rf conftest*
10518
10519# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10520# in glibc 2.1.3, but that breaks too many other things.
10521# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10522if test $ac_cv_sys_largefile_source != unknown; then
10523
cristy8b350f62009-11-15 23:12:43 +000010524$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010525
10526fi
10527
10528LFS_CPPFLAGS=''
10529if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010530 case $ac_cv_sys_file_offset_bits in
10531 no)
10532 # nothing to do here as the host supports LFS fine
10533 ;;
10534 unknown)
cristy8b350f62009-11-15 23:12:43 +000010535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010536$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010537 if test "$cross_compiling" = yes; then :
10538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010540as_fn_error $? "cannot run test program while cross compiling
10541See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010542else
cristy8b350f62009-11-15 23:12:43 +000010543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010545#include <unistd.h>
10546 main () {
10547 exit(!(sizeof(off_t) == 8));
10548 }
cristyda16f162011-02-19 23:52:17 +000010549int
10550main ()
10551{
10552
10553 ;
10554 return 0;
10555}
cristy3ed852e2009-09-05 21:47:34 +000010556_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010557if ac_fn_c_try_run "$LINENO"; then :
10558 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010559
cristyad38abe2012-12-23 23:03:21 +000010560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10561$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010562else
cristyad38abe2012-12-23 23:03:21 +000010563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10564$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010565fi
cristy8b350f62009-11-15 23:12:43 +000010566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10567 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010568fi
10569
cristyc1e0cc12011-09-21 16:41:16 +000010570 ;;
10571 *)
10572 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10573 ;;
10574 esac
cristy3ed852e2009-09-05 21:47:34 +000010575 if test "$ac_cv_sys_large_files" != 'no'; then
10576 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10577 fi
10578 if test "$ac_cv_sys_largefile_source" != 'no'; then
10579 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10580 fi
10581fi
10582
10583
cristy3ed852e2009-09-05 21:47:34 +000010584# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010585enable_dlopen=yes
10586
10587
10588
10589case `pwd` in
10590 *\ * | *\ *)
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10592$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10593esac
10594
10595
10596
cristy99bd5232011-12-07 14:38:20 +000010597macro_version='2.4.2'
10598macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612ltmain="$ac_aux_dir/ltmain.sh"
10613
cristy0c60a692010-11-04 01:09:47 +000010614# Backslashify metacharacters that are still active within
10615# double-quoted strings.
10616sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10617
10618# Same as above, but do not quote variable references.
10619double_quote_subst='s/\(["`\\]\)/\\\1/g'
10620
10621# Sed substitution to delay expansion of an escaped shell variable in a
10622# double_quote_subst'ed string.
10623delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10624
10625# Sed substitution to delay expansion of an escaped single quote.
10626delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10627
10628# Sed substitution to avoid accidental globbing in evaled expressions
10629no_glob_subst='s/\*/\\\*/g'
10630
cristy73bd4a52010-10-05 11:24:23 +000010631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10632$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010633if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010634 $as_echo_n "(cached) " >&6
10635else
10636 if test -n "$NM"; then
10637 # Let the user override the test.
10638 lt_cv_path_NM="$NM"
10639else
10640 lt_nm_to_check="${ac_tool_prefix}nm"
10641 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10642 lt_nm_to_check="$lt_nm_to_check nm"
10643 fi
10644 for lt_tmp_nm in $lt_nm_to_check; do
10645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10646 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10647 IFS="$lt_save_ifs"
10648 test -z "$ac_dir" && ac_dir=.
10649 tmp_nm="$ac_dir/$lt_tmp_nm"
10650 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10651 # Check to see if the nm accepts a BSD-compat flag.
10652 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10653 # nm: unknown option "B" ignored
10654 # Tru64's nm complains that /dev/null is an invalid object file
10655 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10656 */dev/null* | *'Invalid file or object type'*)
10657 lt_cv_path_NM="$tmp_nm -B"
10658 break
10659 ;;
10660 *)
10661 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10662 */dev/null*)
10663 lt_cv_path_NM="$tmp_nm -p"
10664 break
10665 ;;
10666 *)
10667 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10668 continue # so that we can try to find one that supports BSD flags
10669 ;;
10670 esac
10671 ;;
10672 esac
10673 fi
10674 done
10675 IFS="$lt_save_ifs"
10676 done
10677 : ${lt_cv_path_NM=no}
10678fi
10679fi
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10681$as_echo "$lt_cv_path_NM" >&6; }
10682if test "$lt_cv_path_NM" != "no"; then
10683 NM="$lt_cv_path_NM"
10684else
10685 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010686 if test -n "$DUMPBIN"; then :
10687 # Let the user override the test.
10688 else
10689 if test -n "$ac_tool_prefix"; then
10690 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010691 do
10692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10693set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10695$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010696if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010697 $as_echo_n "(cached) " >&6
10698else
10699 if test -n "$DUMPBIN"; then
10700 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10701else
10702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703for as_dir in $PATH
10704do
10705 IFS=$as_save_IFS
10706 test -z "$as_dir" && as_dir=.
10707 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010709 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10711 break 2
10712 fi
10713done
10714 done
10715IFS=$as_save_IFS
10716
10717fi
10718fi
10719DUMPBIN=$ac_cv_prog_DUMPBIN
10720if test -n "$DUMPBIN"; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10722$as_echo "$DUMPBIN" >&6; }
10723else
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725$as_echo "no" >&6; }
10726fi
10727
10728
10729 test -n "$DUMPBIN" && break
10730 done
10731fi
10732if test -z "$DUMPBIN"; then
10733 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010734 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010735do
10736 # Extract the first word of "$ac_prog", so it can be a program name with args.
10737set dummy $ac_prog; ac_word=$2
10738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10739$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010740if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010741 $as_echo_n "(cached) " >&6
10742else
10743 if test -n "$ac_ct_DUMPBIN"; then
10744 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10745else
10746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10747for as_dir in $PATH
10748do
10749 IFS=$as_save_IFS
10750 test -z "$as_dir" && as_dir=.
10751 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010753 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10755 break 2
10756 fi
10757done
10758 done
10759IFS=$as_save_IFS
10760
10761fi
10762fi
10763ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10764if test -n "$ac_ct_DUMPBIN"; then
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10766$as_echo "$ac_ct_DUMPBIN" >&6; }
10767else
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769$as_echo "no" >&6; }
10770fi
10771
10772
10773 test -n "$ac_ct_DUMPBIN" && break
10774done
10775
10776 if test "x$ac_ct_DUMPBIN" = x; then
10777 DUMPBIN=":"
10778 else
10779 case $cross_compiling:$ac_tool_warned in
10780yes:)
10781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10783ac_tool_warned=yes ;;
10784esac
10785 DUMPBIN=$ac_ct_DUMPBIN
10786 fi
10787fi
10788
cristy0c60a692010-11-04 01:09:47 +000010789 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10790 *COFF*)
10791 DUMPBIN="$DUMPBIN -symbols"
10792 ;;
10793 *)
10794 DUMPBIN=:
10795 ;;
10796 esac
10797 fi
cristy73bd4a52010-10-05 11:24:23 +000010798
10799 if test "$DUMPBIN" != ":"; then
10800 NM="$DUMPBIN"
10801 fi
10802fi
10803test -z "$NM" && NM=nm
10804
10805
10806
10807
10808
10809
10810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10811$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010812if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010813 $as_echo_n "(cached) " >&6
10814else
10815 lt_cv_nm_interface="BSD nm"
10816 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010817 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010818 (eval "$ac_compile" 2>conftest.err)
10819 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010820 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010821 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10822 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010823 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010824 cat conftest.out >&5
10825 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10826 lt_cv_nm_interface="MS dumpbin"
10827 fi
10828 rm -f conftest*
10829fi
10830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10831$as_echo "$lt_cv_nm_interface" >&6; }
10832
10833# find the maximum length of command line arguments
10834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10835$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010836if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010837 $as_echo_n "(cached) " >&6
10838else
10839 i=0
10840 teststring="ABCD"
10841
10842 case $build_os in
10843 msdosdjgpp*)
10844 # On DJGPP, this test can blow up pretty badly due to problems in libc
10845 # (any single argument exceeding 2000 bytes causes a buffer overrun
10846 # during glob expansion). Even if it were fixed, the result of this
10847 # check would be larger than it should be.
10848 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10849 ;;
10850
10851 gnu*)
10852 # Under GNU Hurd, this test is not required because there is
10853 # no limit to the length of command line arguments.
10854 # Libtool will interpret -1 as no limit whatsoever
10855 lt_cv_sys_max_cmd_len=-1;
10856 ;;
10857
10858 cygwin* | mingw* | cegcc*)
10859 # On Win9x/ME, this test blows up -- it succeeds, but takes
10860 # about 5 minutes as the teststring grows exponentially.
10861 # Worse, since 9x/ME are not pre-emptively multitasking,
10862 # you end up with a "frozen" computer, even though with patience
10863 # the test eventually succeeds (with a max line length of 256k).
10864 # Instead, let's just punt: use the minimum linelength reported by
10865 # all of the supported platforms: 8192 (on NT/2K/XP).
10866 lt_cv_sys_max_cmd_len=8192;
10867 ;;
10868
cristy0c60a692010-11-04 01:09:47 +000010869 mint*)
10870 # On MiNT this can take a long time and run out of memory.
10871 lt_cv_sys_max_cmd_len=8192;
10872 ;;
10873
cristy73bd4a52010-10-05 11:24:23 +000010874 amigaos*)
10875 # On AmigaOS with pdksh, this test takes hours, literally.
10876 # So we just punt and use a minimum line length of 8192.
10877 lt_cv_sys_max_cmd_len=8192;
10878 ;;
10879
10880 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10881 # This has been around since 386BSD, at least. Likely further.
10882 if test -x /sbin/sysctl; then
10883 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10884 elif test -x /usr/sbin/sysctl; then
10885 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10886 else
10887 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10888 fi
10889 # And add a safety zone
10890 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10891 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10892 ;;
10893
10894 interix*)
10895 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10896 lt_cv_sys_max_cmd_len=196608
10897 ;;
10898
cristy99bd5232011-12-07 14:38:20 +000010899 os2*)
10900 # The test takes a long time on OS/2.
10901 lt_cv_sys_max_cmd_len=8192
10902 ;;
10903
cristy73bd4a52010-10-05 11:24:23 +000010904 osf*)
10905 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10906 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10907 # nice to cause kernel panics so lets avoid the loop below.
10908 # First set a reasonable default.
10909 lt_cv_sys_max_cmd_len=16384
10910 #
10911 if test -x /sbin/sysconfig; then
10912 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10913 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10914 esac
10915 fi
10916 ;;
10917 sco3.2v5*)
10918 lt_cv_sys_max_cmd_len=102400
10919 ;;
10920 sysv5* | sco5v6* | sysv4.2uw2*)
10921 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10922 if test -n "$kargmax"; then
10923 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10924 else
10925 lt_cv_sys_max_cmd_len=32768
10926 fi
10927 ;;
10928 *)
10929 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10930 if test -n "$lt_cv_sys_max_cmd_len"; then
10931 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10932 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10933 else
10934 # Make teststring a little bigger before we do anything with it.
10935 # a 1K string should be a reasonable start.
10936 for i in 1 2 3 4 5 6 7 8 ; do
10937 teststring=$teststring$teststring
10938 done
10939 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10940 # If test is not a shell built-in, we'll probably end up computing a
10941 # maximum length that is only half of the actual maximum length, but
10942 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010943 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010944 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010945 test $i != 17 # 1/2 MB should be enough
10946 do
10947 i=`expr $i + 1`
10948 teststring=$teststring$teststring
10949 done
10950 # Only check the string length outside the loop.
10951 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10952 teststring=
10953 # Add a significant safety factor because C++ compilers can tack on
10954 # massive amounts of additional arguments before passing them to the
10955 # linker. It appears as though 1/2 is a usable value.
10956 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10957 fi
10958 ;;
10959 esac
10960
10961fi
10962
10963if test -n $lt_cv_sys_max_cmd_len ; then
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10965$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10966else
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10968$as_echo "none" >&6; }
10969fi
10970max_cmd_len=$lt_cv_sys_max_cmd_len
10971
10972
10973
10974
10975
10976
10977: ${CP="cp -f"}
10978: ${MV="mv -f"}
10979: ${RM="rm -f"}
10980
10981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10982$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10983# Try some XSI features
10984xsi_shell=no
10985( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010986 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10987 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010988 && eval 'test $(( 1 + 1 )) -eq 2 \
10989 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10990 && xsi_shell=yes
10991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10992$as_echo "$xsi_shell" >&6; }
10993
10994
10995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10996$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10997lt_shell_append=no
10998( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10999 >/dev/null 2>&1 \
11000 && lt_shell_append=yes
11001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11002$as_echo "$lt_shell_append" >&6; }
11003
11004
11005if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11006 lt_unset=unset
11007else
11008 lt_unset=false
11009fi
11010
11011
11012
11013
11014
11015# test EBCDIC or ASCII
11016case `echo X|tr X '\101'` in
11017 A) # ASCII based system
11018 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11019 lt_SP2NL='tr \040 \012'
11020 lt_NL2SP='tr \015\012 \040\040'
11021 ;;
11022 *) # EBCDIC based system
11023 lt_SP2NL='tr \100 \n'
11024 lt_NL2SP='tr \r\n \100\100'
11025 ;;
11026esac
11027
11028
11029
11030
11031
11032
11033
11034
11035
cristyda16f162011-02-19 23:52:17 +000011036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11037$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11038if ${lt_cv_to_host_file_cmd+:} false; then :
11039 $as_echo_n "(cached) " >&6
11040else
11041 case $host in
11042 *-*-mingw* )
11043 case $build in
11044 *-*-mingw* ) # actually msys
11045 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11046 ;;
11047 *-*-cygwin* )
11048 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11049 ;;
11050 * ) # otherwise, assume *nix
11051 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11052 ;;
11053 esac
11054 ;;
11055 *-*-cygwin* )
11056 case $build in
11057 *-*-mingw* ) # actually msys
11058 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11059 ;;
11060 *-*-cygwin* )
11061 lt_cv_to_host_file_cmd=func_convert_file_noop
11062 ;;
11063 * ) # otherwise, assume *nix
11064 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11065 ;;
11066 esac
11067 ;;
11068 * ) # unhandled hosts (and "normal" native builds)
11069 lt_cv_to_host_file_cmd=func_convert_file_noop
11070 ;;
11071esac
11072
11073fi
11074
11075to_host_file_cmd=$lt_cv_to_host_file_cmd
11076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11077$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11078
11079
11080
11081
11082
11083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11084$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11085if ${lt_cv_to_tool_file_cmd+:} false; then :
11086 $as_echo_n "(cached) " >&6
11087else
11088 #assume ordinary cross tools, or native build.
11089lt_cv_to_tool_file_cmd=func_convert_file_noop
11090case $host in
11091 *-*-mingw* )
11092 case $build in
11093 *-*-mingw* ) # actually msys
11094 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11095 ;;
11096 esac
11097 ;;
11098esac
11099
11100fi
11101
11102to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11104$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11105
11106
11107
11108
11109
cristy73bd4a52010-10-05 11:24:23 +000011110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11111$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011112if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011113 $as_echo_n "(cached) " >&6
11114else
11115 lt_cv_ld_reload_flag='-r'
11116fi
11117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11118$as_echo "$lt_cv_ld_reload_flag" >&6; }
11119reload_flag=$lt_cv_ld_reload_flag
11120case $reload_flag in
11121"" | " "*) ;;
11122*) reload_flag=" $reload_flag" ;;
11123esac
11124reload_cmds='$LD$reload_flag -o $output$reload_objs'
11125case $host_os in
cristyda16f162011-02-19 23:52:17 +000011126 cygwin* | mingw* | pw32* | cegcc*)
11127 if test "$GCC" != yes; then
11128 reload_cmds=false
11129 fi
11130 ;;
cristy73bd4a52010-10-05 11:24:23 +000011131 darwin*)
11132 if test "$GCC" = yes; then
11133 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11134 else
11135 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11136 fi
11137 ;;
11138esac
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148if test -n "$ac_tool_prefix"; then
11149 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11150set dummy ${ac_tool_prefix}objdump; ac_word=$2
11151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11152$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011153if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011154 $as_echo_n "(cached) " >&6
11155else
11156 if test -n "$OBJDUMP"; then
11157 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11158else
11159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11160for as_dir in $PATH
11161do
11162 IFS=$as_save_IFS
11163 test -z "$as_dir" && as_dir=.
11164 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011166 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11168 break 2
11169 fi
11170done
11171 done
11172IFS=$as_save_IFS
11173
11174fi
11175fi
11176OBJDUMP=$ac_cv_prog_OBJDUMP
11177if test -n "$OBJDUMP"; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11179$as_echo "$OBJDUMP" >&6; }
11180else
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182$as_echo "no" >&6; }
11183fi
11184
11185
11186fi
11187if test -z "$ac_cv_prog_OBJDUMP"; then
11188 ac_ct_OBJDUMP=$OBJDUMP
11189 # Extract the first word of "objdump", so it can be a program name with args.
11190set dummy objdump; ac_word=$2
11191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011193if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011194 $as_echo_n "(cached) " >&6
11195else
11196 if test -n "$ac_ct_OBJDUMP"; then
11197 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11198else
11199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200for as_dir in $PATH
11201do
11202 IFS=$as_save_IFS
11203 test -z "$as_dir" && as_dir=.
11204 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011206 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11208 break 2
11209 fi
11210done
11211 done
11212IFS=$as_save_IFS
11213
11214fi
11215fi
11216ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11217if test -n "$ac_ct_OBJDUMP"; then
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11219$as_echo "$ac_ct_OBJDUMP" >&6; }
11220else
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222$as_echo "no" >&6; }
11223fi
11224
11225 if test "x$ac_ct_OBJDUMP" = x; then
11226 OBJDUMP="false"
11227 else
11228 case $cross_compiling:$ac_tool_warned in
11229yes:)
11230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11232ac_tool_warned=yes ;;
11233esac
11234 OBJDUMP=$ac_ct_OBJDUMP
11235 fi
11236else
11237 OBJDUMP="$ac_cv_prog_OBJDUMP"
11238fi
11239
11240test -z "$OBJDUMP" && OBJDUMP=objdump
11241
11242
11243
11244
11245
11246
11247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11248$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011249if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011250 $as_echo_n "(cached) " >&6
11251else
11252 lt_cv_file_magic_cmd='$MAGIC_CMD'
11253lt_cv_file_magic_test_file=
11254lt_cv_deplibs_check_method='unknown'
11255# Need to set the preceding variable on all platforms that support
11256# interlibrary dependencies.
11257# 'none' -- dependencies not supported.
11258# `unknown' -- same as none, but documents that we really don't know.
11259# 'pass_all' -- all dependencies passed with no checks.
11260# 'test_compile' -- check by making test program.
11261# 'file_magic [[regex]]' -- check by looking for files in library path
11262# which responds to the $file_magic_cmd with a given extended regex.
11263# If you have `file' or equivalent on your system and you're not sure
11264# whether `pass_all' will *always* work, you probably want this one.
11265
11266case $host_os in
11267aix[4-9]*)
11268 lt_cv_deplibs_check_method=pass_all
11269 ;;
11270
11271beos*)
11272 lt_cv_deplibs_check_method=pass_all
11273 ;;
11274
11275bsdi[45]*)
11276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11277 lt_cv_file_magic_cmd='/usr/bin/file -L'
11278 lt_cv_file_magic_test_file=/shlib/libc.so
11279 ;;
11280
11281cygwin*)
11282 # func_win32_libid is a shell function defined in ltmain.sh
11283 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11284 lt_cv_file_magic_cmd='func_win32_libid'
11285 ;;
11286
11287mingw* | pw32*)
11288 # Base MSYS/MinGW do not provide the 'file' command needed by
11289 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11290 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011291 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11292 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011293 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11294 lt_cv_file_magic_cmd='func_win32_libid'
11295 else
cristy0c60a692010-11-04 01:09:47 +000011296 # Keep this pattern in sync with the one in func_win32_libid.
11297 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 +000011298 lt_cv_file_magic_cmd='$OBJDUMP -f'
11299 fi
11300 ;;
11301
cristy0c60a692010-11-04 01:09:47 +000011302cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011303 # use the weaker test based on 'objdump'. See mingw*.
11304 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11305 lt_cv_file_magic_cmd='$OBJDUMP -f'
11306 ;;
11307
11308darwin* | rhapsody*)
11309 lt_cv_deplibs_check_method=pass_all
11310 ;;
11311
11312freebsd* | dragonfly*)
11313 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11314 case $host_cpu in
11315 i*86 )
11316 # Not sure whether the presence of OpenBSD here was a mistake.
11317 # Let's accept both of them until this is cleared up.
11318 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11319 lt_cv_file_magic_cmd=/usr/bin/file
11320 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11321 ;;
11322 esac
11323 else
11324 lt_cv_deplibs_check_method=pass_all
11325 fi
11326 ;;
11327
11328gnu*)
11329 lt_cv_deplibs_check_method=pass_all
11330 ;;
11331
cristy0c60a692010-11-04 01:09:47 +000011332haiku*)
11333 lt_cv_deplibs_check_method=pass_all
11334 ;;
11335
cristy73bd4a52010-10-05 11:24:23 +000011336hpux10.20* | hpux11*)
11337 lt_cv_file_magic_cmd=/usr/bin/file
11338 case $host_cpu in
11339 ia64*)
11340 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11341 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11342 ;;
11343 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011344 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 +000011345 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11346 ;;
11347 *)
cristy0c60a692010-11-04 01:09:47 +000011348 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 +000011349 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11350 ;;
11351 esac
11352 ;;
11353
11354interix[3-9]*)
11355 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11357 ;;
11358
11359irix5* | irix6* | nonstopux*)
11360 case $LD in
11361 *-32|*"-32 ") libmagic=32-bit;;
11362 *-n32|*"-n32 ") libmagic=N32;;
11363 *-64|*"-64 ") libmagic=64-bit;;
11364 *) libmagic=never-match;;
11365 esac
11366 lt_cv_deplibs_check_method=pass_all
11367 ;;
11368
cristy99bd5232011-12-07 14:38:20 +000011369# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011370linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011371 lt_cv_deplibs_check_method=pass_all
11372 ;;
11373
11374netbsd*)
11375 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11377 else
11378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11379 fi
11380 ;;
11381
11382newos6*)
11383 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11384 lt_cv_file_magic_cmd=/usr/bin/file
11385 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11386 ;;
11387
11388*nto* | *qnx*)
11389 lt_cv_deplibs_check_method=pass_all
11390 ;;
11391
11392openbsd*)
11393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11395 else
11396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11397 fi
11398 ;;
11399
11400osf3* | osf4* | osf5*)
11401 lt_cv_deplibs_check_method=pass_all
11402 ;;
11403
11404rdos*)
11405 lt_cv_deplibs_check_method=pass_all
11406 ;;
11407
11408solaris*)
11409 lt_cv_deplibs_check_method=pass_all
11410 ;;
11411
11412sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11413 lt_cv_deplibs_check_method=pass_all
11414 ;;
11415
11416sysv4 | sysv4.3*)
11417 case $host_vendor in
11418 motorola)
11419 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]'
11420 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11421 ;;
11422 ncr)
11423 lt_cv_deplibs_check_method=pass_all
11424 ;;
11425 sequent)
11426 lt_cv_file_magic_cmd='/bin/file'
11427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11428 ;;
11429 sni)
11430 lt_cv_file_magic_cmd='/bin/file'
11431 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11432 lt_cv_file_magic_test_file=/lib/libc.so
11433 ;;
11434 siemens)
11435 lt_cv_deplibs_check_method=pass_all
11436 ;;
11437 pc)
11438 lt_cv_deplibs_check_method=pass_all
11439 ;;
11440 esac
11441 ;;
11442
11443tpf*)
11444 lt_cv_deplibs_check_method=pass_all
11445 ;;
11446esac
11447
11448fi
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11450$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011451
11452file_magic_glob=
11453want_nocaseglob=no
11454if test "$build" = "$host"; then
11455 case $host_os in
11456 mingw* | pw32*)
11457 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11458 want_nocaseglob=yes
11459 else
11460 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11461 fi
11462 ;;
11463 esac
11464fi
11465
cristy73bd4a52010-10-05 11:24:23 +000011466file_magic_cmd=$lt_cv_file_magic_cmd
11467deplibs_check_method=$lt_cv_deplibs_check_method
11468test -z "$deplibs_check_method" && deplibs_check_method=unknown
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
cristyda16f162011-02-19 23:52:17 +000011481
11482
11483
11484
11485
11486
11487
11488
11489
11490
cristy73bd4a52010-10-05 11:24:23 +000011491if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011492 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11493set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11495$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011496if ${ac_cv_prog_DLLTOOL+:} false; then :
11497 $as_echo_n "(cached) " >&6
11498else
11499 if test -n "$DLLTOOL"; then
11500 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11501else
11502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503for as_dir in $PATH
11504do
11505 IFS=$as_save_IFS
11506 test -z "$as_dir" && as_dir=.
11507 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011509 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11511 break 2
11512 fi
11513done
11514 done
11515IFS=$as_save_IFS
11516
11517fi
11518fi
11519DLLTOOL=$ac_cv_prog_DLLTOOL
11520if test -n "$DLLTOOL"; then
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11522$as_echo "$DLLTOOL" >&6; }
11523else
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525$as_echo "no" >&6; }
11526fi
11527
11528
11529fi
11530if test -z "$ac_cv_prog_DLLTOOL"; then
11531 ac_ct_DLLTOOL=$DLLTOOL
11532 # Extract the first word of "dlltool", so it can be a program name with args.
11533set dummy dlltool; ac_word=$2
11534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11535$as_echo_n "checking for $ac_word... " >&6; }
11536if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11537 $as_echo_n "(cached) " >&6
11538else
11539 if test -n "$ac_ct_DLLTOOL"; then
11540 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11541else
11542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543for as_dir in $PATH
11544do
11545 IFS=$as_save_IFS
11546 test -z "$as_dir" && as_dir=.
11547 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011549 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11551 break 2
11552 fi
11553done
11554 done
11555IFS=$as_save_IFS
11556
11557fi
11558fi
11559ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11560if test -n "$ac_ct_DLLTOOL"; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11562$as_echo "$ac_ct_DLLTOOL" >&6; }
11563else
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565$as_echo "no" >&6; }
11566fi
11567
11568 if test "x$ac_ct_DLLTOOL" = x; then
11569 DLLTOOL="false"
11570 else
11571 case $cross_compiling:$ac_tool_warned in
11572yes:)
11573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11575ac_tool_warned=yes ;;
11576esac
11577 DLLTOOL=$ac_ct_DLLTOOL
11578 fi
11579else
11580 DLLTOOL="$ac_cv_prog_DLLTOOL"
11581fi
11582
11583test -z "$DLLTOOL" && DLLTOOL=dlltool
11584
11585
11586
11587
11588
11589
11590
11591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11592$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11593if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11594 $as_echo_n "(cached) " >&6
11595else
11596 lt_cv_sharedlib_from_linklib_cmd='unknown'
11597
11598case $host_os in
11599cygwin* | mingw* | pw32* | cegcc*)
11600 # two different shell functions defined in ltmain.sh
11601 # decide which to use based on capabilities of $DLLTOOL
11602 case `$DLLTOOL --help 2>&1` in
11603 *--identify-strict*)
11604 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11605 ;;
11606 *)
11607 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11608 ;;
11609 esac
11610 ;;
11611*)
11612 # fallback: assume linklib IS sharedlib
11613 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11614 ;;
11615esac
11616
11617fi
11618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11619$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11620sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11621test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11622
11623
11624
11625
11626
11627
11628
11629if test -n "$ac_tool_prefix"; then
11630 for ac_prog in ar
11631 do
11632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11633set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11635$as_echo_n "checking for $ac_word... " >&6; }
11636if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011637 $as_echo_n "(cached) " >&6
11638else
11639 if test -n "$AR"; then
11640 ac_cv_prog_AR="$AR" # Let the user override the test.
11641else
11642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643for as_dir in $PATH
11644do
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
11647 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011649 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11651 break 2
11652 fi
11653done
11654 done
11655IFS=$as_save_IFS
11656
11657fi
11658fi
11659AR=$ac_cv_prog_AR
11660if test -n "$AR"; then
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11662$as_echo "$AR" >&6; }
11663else
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11665$as_echo "no" >&6; }
11666fi
11667
11668
cristyda16f162011-02-19 23:52:17 +000011669 test -n "$AR" && break
11670 done
cristy73bd4a52010-10-05 11:24:23 +000011671fi
cristyda16f162011-02-19 23:52:17 +000011672if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011673 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011674 for ac_prog in ar
11675do
11676 # Extract the first word of "$ac_prog", so it can be a program name with args.
11677set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11679$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011680if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011681 $as_echo_n "(cached) " >&6
11682else
11683 if test -n "$ac_ct_AR"; then
11684 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11685else
11686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687for as_dir in $PATH
11688do
11689 IFS=$as_save_IFS
11690 test -z "$as_dir" && as_dir=.
11691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011693 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11695 break 2
11696 fi
11697done
11698 done
11699IFS=$as_save_IFS
11700
11701fi
11702fi
11703ac_ct_AR=$ac_cv_prog_ac_ct_AR
11704if test -n "$ac_ct_AR"; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11706$as_echo "$ac_ct_AR" >&6; }
11707else
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709$as_echo "no" >&6; }
11710fi
11711
cristyda16f162011-02-19 23:52:17 +000011712
11713 test -n "$ac_ct_AR" && break
11714done
11715
cristy73bd4a52010-10-05 11:24:23 +000011716 if test "x$ac_ct_AR" = x; then
11717 AR="false"
11718 else
11719 case $cross_compiling:$ac_tool_warned in
11720yes:)
11721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11723ac_tool_warned=yes ;;
11724esac
11725 AR=$ac_ct_AR
11726 fi
cristy73bd4a52010-10-05 11:24:23 +000011727fi
11728
cristyda16f162011-02-19 23:52:17 +000011729: ${AR=ar}
11730: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
cristyda16f162011-02-19 23:52:17 +000011742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11743$as_echo_n "checking for archiver @FILE support... " >&6; }
11744if ${lt_cv_ar_at_file+:} false; then :
11745 $as_echo_n "(cached) " >&6
11746else
11747 lt_cv_ar_at_file=no
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749/* end confdefs.h. */
11750
11751int
11752main ()
11753{
11754
11755 ;
11756 return 0;
11757}
11758_ACEOF
11759if ac_fn_c_try_compile "$LINENO"; then :
11760 echo conftest.$ac_objext > conftest.lst
11761 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11763 (eval $lt_ar_try) 2>&5
11764 ac_status=$?
11765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11766 test $ac_status = 0; }
11767 if test "$ac_status" -eq 0; then
11768 # Ensure the archiver fails upon bogus file names.
11769 rm -f conftest.$ac_objext libconftest.a
11770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11771 (eval $lt_ar_try) 2>&5
11772 ac_status=$?
11773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11774 test $ac_status = 0; }
11775 if test "$ac_status" -ne 0; then
11776 lt_cv_ar_at_file=@
11777 fi
11778 fi
11779 rm -f conftest.* libconftest.a
11780
11781fi
11782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11783
11784fi
11785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11786$as_echo "$lt_cv_ar_at_file" >&6; }
11787
11788if test "x$lt_cv_ar_at_file" = xno; then
11789 archiver_list_spec=
11790else
11791 archiver_list_spec=$lt_cv_ar_at_file
11792fi
11793
11794
11795
11796
11797
11798
11799
cristy73bd4a52010-10-05 11:24:23 +000011800if test -n "$ac_tool_prefix"; then
11801 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11802set dummy ${ac_tool_prefix}strip; ac_word=$2
11803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11804$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011805if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011806 $as_echo_n "(cached) " >&6
11807else
11808 if test -n "$STRIP"; then
11809 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11810else
11811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812for as_dir in $PATH
11813do
11814 IFS=$as_save_IFS
11815 test -z "$as_dir" && as_dir=.
11816 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011818 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11820 break 2
11821 fi
11822done
11823 done
11824IFS=$as_save_IFS
11825
11826fi
11827fi
11828STRIP=$ac_cv_prog_STRIP
11829if test -n "$STRIP"; then
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11831$as_echo "$STRIP" >&6; }
11832else
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834$as_echo "no" >&6; }
11835fi
11836
11837
11838fi
11839if test -z "$ac_cv_prog_STRIP"; then
11840 ac_ct_STRIP=$STRIP
11841 # Extract the first word of "strip", so it can be a program name with args.
11842set dummy strip; ac_word=$2
11843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011845if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011846 $as_echo_n "(cached) " >&6
11847else
11848 if test -n "$ac_ct_STRIP"; then
11849 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11850else
11851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852for as_dir in $PATH
11853do
11854 IFS=$as_save_IFS
11855 test -z "$as_dir" && as_dir=.
11856 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011858 ac_cv_prog_ac_ct_STRIP="strip"
11859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11860 break 2
11861 fi
11862done
11863 done
11864IFS=$as_save_IFS
11865
11866fi
11867fi
11868ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11869if test -n "$ac_ct_STRIP"; then
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11871$as_echo "$ac_ct_STRIP" >&6; }
11872else
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874$as_echo "no" >&6; }
11875fi
11876
11877 if test "x$ac_ct_STRIP" = x; then
11878 STRIP=":"
11879 else
11880 case $cross_compiling:$ac_tool_warned in
11881yes:)
11882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11884ac_tool_warned=yes ;;
11885esac
11886 STRIP=$ac_ct_STRIP
11887 fi
11888else
11889 STRIP="$ac_cv_prog_STRIP"
11890fi
11891
11892test -z "$STRIP" && STRIP=:
11893
11894
11895
11896
11897
11898
11899if test -n "$ac_tool_prefix"; then
11900 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11901set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011904if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011905 $as_echo_n "(cached) " >&6
11906else
11907 if test -n "$RANLIB"; then
11908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11909else
11910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911for as_dir in $PATH
11912do
11913 IFS=$as_save_IFS
11914 test -z "$as_dir" && as_dir=.
11915 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011917 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919 break 2
11920 fi
11921done
11922 done
11923IFS=$as_save_IFS
11924
11925fi
11926fi
11927RANLIB=$ac_cv_prog_RANLIB
11928if test -n "$RANLIB"; then
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11930$as_echo "$RANLIB" >&6; }
11931else
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933$as_echo "no" >&6; }
11934fi
11935
11936
11937fi
11938if test -z "$ac_cv_prog_RANLIB"; then
11939 ac_ct_RANLIB=$RANLIB
11940 # Extract the first word of "ranlib", so it can be a program name with args.
11941set dummy ranlib; ac_word=$2
11942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11943$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011944if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011945 $as_echo_n "(cached) " >&6
11946else
11947 if test -n "$ac_ct_RANLIB"; then
11948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11949else
11950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951for as_dir in $PATH
11952do
11953 IFS=$as_save_IFS
11954 test -z "$as_dir" && as_dir=.
11955 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011957 ac_cv_prog_ac_ct_RANLIB="ranlib"
11958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11959 break 2
11960 fi
11961done
11962 done
11963IFS=$as_save_IFS
11964
11965fi
11966fi
11967ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11968if test -n "$ac_ct_RANLIB"; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11970$as_echo "$ac_ct_RANLIB" >&6; }
11971else
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973$as_echo "no" >&6; }
11974fi
11975
11976 if test "x$ac_ct_RANLIB" = x; then
11977 RANLIB=":"
11978 else
11979 case $cross_compiling:$ac_tool_warned in
11980yes:)
11981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11983ac_tool_warned=yes ;;
11984esac
11985 RANLIB=$ac_ct_RANLIB
11986 fi
11987else
11988 RANLIB="$ac_cv_prog_RANLIB"
11989fi
11990
11991test -z "$RANLIB" && RANLIB=:
11992
11993
11994
11995
11996
11997
11998# Determine commands to create old-style static archives.
11999old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12000old_postinstall_cmds='chmod 644 $oldlib'
12001old_postuninstall_cmds=
12002
12003if test -n "$RANLIB"; then
12004 case $host_os in
12005 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012006 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012007 ;;
12008 *)
cristy99bd5232011-12-07 14:38:20 +000012009 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012010 ;;
12011 esac
cristy99bd5232011-12-07 14:38:20 +000012012 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012013fi
12014
cristy0c60a692010-11-04 01:09:47 +000012015case $host_os in
12016 darwin*)
12017 lock_old_archive_extraction=yes ;;
12018 *)
12019 lock_old_archive_extraction=no ;;
12020esac
12021
12022
12023
12024
12025
12026
cristy73bd4a52010-10-05 11:24:23 +000012027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060# If no C compiler was specified, use CC.
12061LTCC=${LTCC-"$CC"}
12062
12063# If no C compiler flags were specified, use CFLAGS.
12064LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12065
12066# Allow CC to be a program name with arguments.
12067compiler=$CC
12068
12069
12070# Check for command to grab the raw symbol name followed by C symbol from nm.
12071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12072$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012073if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012074 $as_echo_n "(cached) " >&6
12075else
12076
12077# These are sane defaults that work on at least a few old systems.
12078# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12079
12080# Character class describing NM global symbol codes.
12081symcode='[BCDEGRST]'
12082
12083# Regexp to match symbols that can be accessed directly from C.
12084sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12085
12086# Define system-specific variables.
12087case $host_os in
12088aix*)
12089 symcode='[BCDT]'
12090 ;;
12091cygwin* | mingw* | pw32* | cegcc*)
12092 symcode='[ABCDGISTW]'
12093 ;;
12094hpux*)
12095 if test "$host_cpu" = ia64; then
12096 symcode='[ABCDEGRST]'
12097 fi
12098 ;;
12099irix* | nonstopux*)
12100 symcode='[BCDEGRST]'
12101 ;;
12102osf*)
12103 symcode='[BCDEGQRST]'
12104 ;;
12105solaris*)
12106 symcode='[BDRT]'
12107 ;;
12108sco3.2v5*)
12109 symcode='[DT]'
12110 ;;
12111sysv4.2uw2*)
12112 symcode='[DT]'
12113 ;;
12114sysv5* | sco5v6* | unixware* | OpenUNIX*)
12115 symcode='[ABDT]'
12116 ;;
12117sysv4)
12118 symcode='[DFNSTU]'
12119 ;;
12120esac
12121
12122# If we're using GNU nm, then use its standard symbol codes.
12123case `$NM -V 2>&1` in
12124*GNU* | *'with BFD'*)
12125 symcode='[ABCDGIRSTW]' ;;
12126esac
12127
12128# Transform an extracted symbol line into a proper C declaration.
12129# Some systems (esp. on ia64) link data and code symbols differently,
12130# so use this general approach.
12131lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12132
12133# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012134lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12135lt_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 +000012136
12137# Handle CRLF in mingw tool chain
12138opt_cr=
12139case $build_os in
12140mingw*)
12141 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12142 ;;
12143esac
12144
12145# Try without a prefix underscore, then with it.
12146for ac_symprfx in "" "_"; do
12147
12148 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12149 symxfrm="\\1 $ac_symprfx\\2 \\2"
12150
12151 # Write the raw and C identifiers.
12152 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12153 # Fake it for dumpbin and say T for any non-static function
12154 # and D for any global variable.
12155 # Also find C++ and __fastcall symbols from MSVC++,
12156 # which start with @ or ?.
12157 lt_cv_sys_global_symbol_pipe="$AWK '"\
12158" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012159" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012160" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12161" \$ 0!~/External *\|/{next};"\
12162" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12163" {if(hide[section]) next};"\
12164" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12165" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12166" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12167" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12168" ' prfx=^$ac_symprfx"
12169 else
12170 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12171 fi
cristyda16f162011-02-19 23:52:17 +000012172 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012173
12174 # Check to see that the pipe works correctly.
12175 pipe_works=no
12176
12177 rm -f conftest*
12178 cat > conftest.$ac_ext <<_LT_EOF
12179#ifdef __cplusplus
12180extern "C" {
12181#endif
12182char nm_test_var;
12183void nm_test_func(void);
12184void nm_test_func(void){}
12185#ifdef __cplusplus
12186}
12187#endif
12188int main(){nm_test_var='a';nm_test_func();return(0);}
12189_LT_EOF
12190
12191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12192 (eval $ac_compile) 2>&5
12193 ac_status=$?
12194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12195 test $ac_status = 0; }; then
12196 # Now try to grab the symbols.
12197 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12199 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012200 ac_status=$?
12201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12202 test $ac_status = 0; } && test -s "$nlist"; then
12203 # Try sorting and uniquifying the output.
12204 if sort "$nlist" | uniq > "$nlist"T; then
12205 mv -f "$nlist"T "$nlist"
12206 else
12207 rm -f "$nlist"T
12208 fi
12209
12210 # Make sure that we snagged all the symbols we need.
12211 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12212 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12213 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012214/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12215#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12216/* DATA imports from DLLs on WIN32 con't be const, because runtime
12217 relocations are performed -- see ld's documentation on pseudo-relocs. */
12218# define LT_DLSYM_CONST
12219#elif defined(__osf__)
12220/* This system does not cope well with relocations in const data. */
12221# define LT_DLSYM_CONST
12222#else
12223# define LT_DLSYM_CONST const
12224#endif
12225
cristy73bd4a52010-10-05 11:24:23 +000012226#ifdef __cplusplus
12227extern "C" {
12228#endif
12229
12230_LT_EOF
12231 # Now generate the symbol file.
12232 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12233
12234 cat <<_LT_EOF >> conftest.$ac_ext
12235
12236/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012237LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012238 const char *name;
12239 void *address;
12240}
12241lt__PROGRAM__LTX_preloaded_symbols[] =
12242{
12243 { "@PROGRAM@", (void *) 0 },
12244_LT_EOF
12245 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12246 cat <<\_LT_EOF >> conftest.$ac_ext
12247 {0, (void *) 0}
12248};
12249
12250/* This works around a problem in FreeBSD linker */
12251#ifdef FREEBSD_WORKAROUND
12252static const void *lt_preloaded_setup() {
12253 return lt__PROGRAM__LTX_preloaded_symbols;
12254}
12255#endif
12256
12257#ifdef __cplusplus
12258}
12259#endif
12260_LT_EOF
12261 # Now try linking the two files.
12262 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012263 lt_globsym_save_LIBS=$LIBS
12264 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012265 LIBS="conftstm.$ac_objext"
12266 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12268 (eval $ac_link) 2>&5
12269 ac_status=$?
12270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12271 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12272 pipe_works=yes
12273 fi
cristyda16f162011-02-19 23:52:17 +000012274 LIBS=$lt_globsym_save_LIBS
12275 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012276 else
12277 echo "cannot find nm_test_func in $nlist" >&5
12278 fi
12279 else
12280 echo "cannot find nm_test_var in $nlist" >&5
12281 fi
12282 else
12283 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12284 fi
12285 else
12286 echo "$progname: failed program was:" >&5
12287 cat conftest.$ac_ext >&5
12288 fi
12289 rm -rf conftest* conftst*
12290
12291 # Do not use the global_symbol_pipe unless it works.
12292 if test "$pipe_works" = yes; then
12293 break
12294 else
12295 lt_cv_sys_global_symbol_pipe=
12296 fi
12297done
12298
12299fi
12300
12301if test -z "$lt_cv_sys_global_symbol_pipe"; then
12302 lt_cv_sys_global_symbol_to_cdecl=
12303fi
12304if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12306$as_echo "failed" >&6; }
12307else
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12309$as_echo "ok" >&6; }
12310fi
12311
cristyda16f162011-02-19 23:52:17 +000012312# Response file support.
12313if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12314 nm_file_list_spec='@'
12315elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12316 nm_file_list_spec='@'
12317fi
cristy73bd4a52010-10-05 11:24:23 +000012318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
cristyda16f162011-02-19 23:52:17 +000012339
12340
12341
12342
12343
12344
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12346$as_echo_n "checking for sysroot... " >&6; }
12347
12348# Check whether --with-sysroot was given.
12349if test "${with_sysroot+set}" = set; then :
12350 withval=$with_sysroot;
12351else
12352 with_sysroot=no
12353fi
12354
12355
12356lt_sysroot=
12357case ${with_sysroot} in #(
12358 yes)
12359 if test "$GCC" = yes; then
12360 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12361 fi
12362 ;; #(
12363 /*)
12364 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12365 ;; #(
12366 no|'')
12367 ;; #(
12368 *)
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12370$as_echo "${with_sysroot}" >&6; }
12371 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12372 ;;
12373esac
12374
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12376$as_echo "${lt_sysroot:-no}" >&6; }
12377
12378
12379
12380
12381
cristy73bd4a52010-10-05 11:24:23 +000012382# Check whether --enable-libtool-lock was given.
12383if test "${enable_libtool_lock+set}" = set; then :
12384 enableval=$enable_libtool_lock;
12385fi
12386
12387test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12388
12389# Some flags need to be propagated to the compiler or linker for good
12390# libtool support.
12391case $host in
12392ia64-*-hpux*)
12393 # Find out which ABI we are using.
12394 echo 'int i;' > conftest.$ac_ext
12395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12396 (eval $ac_compile) 2>&5
12397 ac_status=$?
12398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12399 test $ac_status = 0; }; then
12400 case `/usr/bin/file conftest.$ac_objext` in
12401 *ELF-32*)
12402 HPUX_IA64_MODE="32"
12403 ;;
12404 *ELF-64*)
12405 HPUX_IA64_MODE="64"
12406 ;;
12407 esac
12408 fi
12409 rm -rf conftest*
12410 ;;
12411*-*-irix6*)
12412 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012413 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12415 (eval $ac_compile) 2>&5
12416 ac_status=$?
12417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12418 test $ac_status = 0; }; then
12419 if test "$lt_cv_prog_gnu_ld" = yes; then
12420 case `/usr/bin/file conftest.$ac_objext` in
12421 *32-bit*)
12422 LD="${LD-ld} -melf32bsmip"
12423 ;;
12424 *N32*)
12425 LD="${LD-ld} -melf32bmipn32"
12426 ;;
12427 *64-bit*)
12428 LD="${LD-ld} -melf64bmip"
12429 ;;
12430 esac
12431 else
12432 case `/usr/bin/file conftest.$ac_objext` in
12433 *32-bit*)
12434 LD="${LD-ld} -32"
12435 ;;
12436 *N32*)
12437 LD="${LD-ld} -n32"
12438 ;;
12439 *64-bit*)
12440 LD="${LD-ld} -64"
12441 ;;
12442 esac
12443 fi
12444 fi
12445 rm -rf conftest*
12446 ;;
12447
12448x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12449s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12450 # Find out which ABI we are using.
12451 echo 'int i;' > conftest.$ac_ext
12452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12453 (eval $ac_compile) 2>&5
12454 ac_status=$?
12455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12456 test $ac_status = 0; }; then
12457 case `/usr/bin/file conftest.o` in
12458 *32-bit*)
12459 case $host in
12460 x86_64-*kfreebsd*-gnu)
12461 LD="${LD-ld} -m elf_i386_fbsd"
12462 ;;
12463 x86_64-*linux*)
12464 LD="${LD-ld} -m elf_i386"
12465 ;;
12466 ppc64-*linux*|powerpc64-*linux*)
12467 LD="${LD-ld} -m elf32ppclinux"
12468 ;;
12469 s390x-*linux*)
12470 LD="${LD-ld} -m elf_s390"
12471 ;;
12472 sparc64-*linux*)
12473 LD="${LD-ld} -m elf32_sparc"
12474 ;;
12475 esac
12476 ;;
12477 *64-bit*)
12478 case $host in
12479 x86_64-*kfreebsd*-gnu)
12480 LD="${LD-ld} -m elf_x86_64_fbsd"
12481 ;;
12482 x86_64-*linux*)
12483 LD="${LD-ld} -m elf_x86_64"
12484 ;;
12485 ppc*-*linux*|powerpc*-*linux*)
12486 LD="${LD-ld} -m elf64ppc"
12487 ;;
12488 s390*-*linux*|s390*-*tpf*)
12489 LD="${LD-ld} -m elf64_s390"
12490 ;;
12491 sparc*-*linux*)
12492 LD="${LD-ld} -m elf64_sparc"
12493 ;;
12494 esac
12495 ;;
12496 esac
12497 fi
12498 rm -rf conftest*
12499 ;;
12500
12501*-*-sco3.2v5*)
12502 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12503 SAVE_CFLAGS="$CFLAGS"
12504 CFLAGS="$CFLAGS -belf"
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12506$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012507if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012508 $as_echo_n "(cached) " >&6
12509else
12510 ac_ext=c
12511ac_cpp='$CPP $CPPFLAGS'
12512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12514ac_compiler_gnu=$ac_cv_c_compiler_gnu
12515
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517/* end confdefs.h. */
12518
12519int
12520main ()
12521{
12522
12523 ;
12524 return 0;
12525}
12526_ACEOF
12527if ac_fn_c_try_link "$LINENO"; then :
12528 lt_cv_cc_needs_belf=yes
12529else
12530 lt_cv_cc_needs_belf=no
12531fi
12532rm -f core conftest.err conftest.$ac_objext \
12533 conftest$ac_exeext conftest.$ac_ext
12534 ac_ext=c
12535ac_cpp='$CPP $CPPFLAGS'
12536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12538ac_compiler_gnu=$ac_cv_c_compiler_gnu
12539
12540fi
12541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12542$as_echo "$lt_cv_cc_needs_belf" >&6; }
12543 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12544 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12545 CFLAGS="$SAVE_CFLAGS"
12546 fi
12547 ;;
cristy99bd5232011-12-07 14:38:20 +000012548*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012549 # Find out which ABI we are using.
12550 echo 'int i;' > conftest.$ac_ext
12551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12552 (eval $ac_compile) 2>&5
12553 ac_status=$?
12554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12555 test $ac_status = 0; }; then
12556 case `/usr/bin/file conftest.o` in
12557 *64-bit*)
12558 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012559 yes*)
12560 case $host in
12561 i?86-*-solaris*)
12562 LD="${LD-ld} -m elf_x86_64"
12563 ;;
12564 sparc*-*-solaris*)
12565 LD="${LD-ld} -m elf64_sparc"
12566 ;;
12567 esac
12568 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12569 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12570 LD="${LD-ld}_sol2"
12571 fi
12572 ;;
cristy73bd4a52010-10-05 11:24:23 +000012573 *)
12574 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12575 LD="${LD-ld} -64"
12576 fi
12577 ;;
12578 esac
12579 ;;
12580 esac
12581 fi
12582 rm -rf conftest*
12583 ;;
12584esac
12585
12586need_locks="$enable_libtool_lock"
12587
cristyda16f162011-02-19 23:52:17 +000012588if test -n "$ac_tool_prefix"; then
12589 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12590set dummy ${ac_tool_prefix}mt; 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; }
12593if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12594 $as_echo_n "(cached) " >&6
12595else
12596 if test -n "$MANIFEST_TOOL"; then
12597 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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
cristyda16f162011-02-19 23:52:17 +000012606 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
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
12616MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12617if test -n "$MANIFEST_TOOL"; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12619$as_echo "$MANIFEST_TOOL" >&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_MANIFEST_TOOL"; then
12628 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12629 # Extract the first word of "mt", so it can be a program name with args.
12630set dummy mt; 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; }
12633if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12634 $as_echo_n "(cached) " >&6
12635else
12636 if test -n "$ac_ct_MANIFEST_TOOL"; then
12637 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # 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
cristyda16f162011-02-19 23:52:17 +000012646 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
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_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12657if test -n "$ac_ct_MANIFEST_TOOL"; then
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12659$as_echo "$ac_ct_MANIFEST_TOOL" >&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_MANIFEST_TOOL" = x; then
12666 MANIFEST_TOOL=":"
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 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12675 fi
12676else
12677 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12678fi
12679
12680test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12682$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12683if ${lt_cv_path_mainfest_tool+:} false; then :
12684 $as_echo_n "(cached) " >&6
12685else
12686 lt_cv_path_mainfest_tool=no
12687 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12688 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12689 cat conftest.err >&5
12690 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12691 lt_cv_path_mainfest_tool=yes
12692 fi
12693 rm -f conftest*
12694fi
12695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12696$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12697if test "x$lt_cv_path_mainfest_tool" != xyes; then
12698 MANIFEST_TOOL=:
12699fi
12700
12701
12702
12703
12704
cristy73bd4a52010-10-05 11:24:23 +000012705
12706 case $host_os in
12707 rhapsody* | darwin*)
12708 if test -n "$ac_tool_prefix"; then
12709 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12710set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12712$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012713if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012714 $as_echo_n "(cached) " >&6
12715else
12716 if test -n "$DSYMUTIL"; then
12717 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12718else
12719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12720for as_dir in $PATH
12721do
12722 IFS=$as_save_IFS
12723 test -z "$as_dir" && as_dir=.
12724 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012726 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12728 break 2
12729 fi
12730done
12731 done
12732IFS=$as_save_IFS
12733
12734fi
12735fi
12736DSYMUTIL=$ac_cv_prog_DSYMUTIL
12737if test -n "$DSYMUTIL"; then
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12739$as_echo "$DSYMUTIL" >&6; }
12740else
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742$as_echo "no" >&6; }
12743fi
12744
12745
12746fi
12747if test -z "$ac_cv_prog_DSYMUTIL"; then
12748 ac_ct_DSYMUTIL=$DSYMUTIL
12749 # Extract the first word of "dsymutil", so it can be a program name with args.
12750set dummy dsymutil; ac_word=$2
12751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12752$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012753if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012754 $as_echo_n "(cached) " >&6
12755else
12756 if test -n "$ac_ct_DSYMUTIL"; then
12757 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12758else
12759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12760for as_dir in $PATH
12761do
12762 IFS=$as_save_IFS
12763 test -z "$as_dir" && as_dir=.
12764 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012766 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12768 break 2
12769 fi
12770done
12771 done
12772IFS=$as_save_IFS
12773
12774fi
12775fi
12776ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12777if test -n "$ac_ct_DSYMUTIL"; then
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12779$as_echo "$ac_ct_DSYMUTIL" >&6; }
12780else
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12782$as_echo "no" >&6; }
12783fi
12784
12785 if test "x$ac_ct_DSYMUTIL" = x; then
12786 DSYMUTIL=":"
12787 else
12788 case $cross_compiling:$ac_tool_warned in
12789yes:)
12790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12792ac_tool_warned=yes ;;
12793esac
12794 DSYMUTIL=$ac_ct_DSYMUTIL
12795 fi
12796else
12797 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12798fi
12799
12800 if test -n "$ac_tool_prefix"; then
12801 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12802set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12804$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012805if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012806 $as_echo_n "(cached) " >&6
12807else
12808 if test -n "$NMEDIT"; then
12809 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12810else
12811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812for as_dir in $PATH
12813do
12814 IFS=$as_save_IFS
12815 test -z "$as_dir" && as_dir=.
12816 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012818 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12820 break 2
12821 fi
12822done
12823 done
12824IFS=$as_save_IFS
12825
12826fi
12827fi
12828NMEDIT=$ac_cv_prog_NMEDIT
12829if test -n "$NMEDIT"; then
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12831$as_echo "$NMEDIT" >&6; }
12832else
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834$as_echo "no" >&6; }
12835fi
12836
12837
12838fi
12839if test -z "$ac_cv_prog_NMEDIT"; then
12840 ac_ct_NMEDIT=$NMEDIT
12841 # Extract the first word of "nmedit", so it can be a program name with args.
12842set dummy nmedit; ac_word=$2
12843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12844$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012845if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012846 $as_echo_n "(cached) " >&6
12847else
12848 if test -n "$ac_ct_NMEDIT"; then
12849 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12850else
12851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852for as_dir in $PATH
12853do
12854 IFS=$as_save_IFS
12855 test -z "$as_dir" && as_dir=.
12856 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012858 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12860 break 2
12861 fi
12862done
12863 done
12864IFS=$as_save_IFS
12865
12866fi
12867fi
12868ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12869if test -n "$ac_ct_NMEDIT"; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12871$as_echo "$ac_ct_NMEDIT" >&6; }
12872else
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874$as_echo "no" >&6; }
12875fi
12876
12877 if test "x$ac_ct_NMEDIT" = x; then
12878 NMEDIT=":"
12879 else
12880 case $cross_compiling:$ac_tool_warned in
12881yes:)
12882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12884ac_tool_warned=yes ;;
12885esac
12886 NMEDIT=$ac_ct_NMEDIT
12887 fi
12888else
12889 NMEDIT="$ac_cv_prog_NMEDIT"
12890fi
12891
12892 if test -n "$ac_tool_prefix"; then
12893 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12894set dummy ${ac_tool_prefix}lipo; ac_word=$2
12895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12896$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012897if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012898 $as_echo_n "(cached) " >&6
12899else
12900 if test -n "$LIPO"; then
12901 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12902else
12903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12904for as_dir in $PATH
12905do
12906 IFS=$as_save_IFS
12907 test -z "$as_dir" && as_dir=.
12908 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012910 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12912 break 2
12913 fi
12914done
12915 done
12916IFS=$as_save_IFS
12917
12918fi
12919fi
12920LIPO=$ac_cv_prog_LIPO
12921if test -n "$LIPO"; then
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12923$as_echo "$LIPO" >&6; }
12924else
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926$as_echo "no" >&6; }
12927fi
12928
12929
12930fi
12931if test -z "$ac_cv_prog_LIPO"; then
12932 ac_ct_LIPO=$LIPO
12933 # Extract the first word of "lipo", so it can be a program name with args.
12934set dummy lipo; ac_word=$2
12935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12936$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012937if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012938 $as_echo_n "(cached) " >&6
12939else
12940 if test -n "$ac_ct_LIPO"; then
12941 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12942else
12943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12944for as_dir in $PATH
12945do
12946 IFS=$as_save_IFS
12947 test -z "$as_dir" && as_dir=.
12948 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012950 ac_cv_prog_ac_ct_LIPO="lipo"
12951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12952 break 2
12953 fi
12954done
12955 done
12956IFS=$as_save_IFS
12957
12958fi
12959fi
12960ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12961if test -n "$ac_ct_LIPO"; then
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12963$as_echo "$ac_ct_LIPO" >&6; }
12964else
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12966$as_echo "no" >&6; }
12967fi
12968
12969 if test "x$ac_ct_LIPO" = x; then
12970 LIPO=":"
12971 else
12972 case $cross_compiling:$ac_tool_warned in
12973yes:)
12974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12976ac_tool_warned=yes ;;
12977esac
12978 LIPO=$ac_ct_LIPO
12979 fi
12980else
12981 LIPO="$ac_cv_prog_LIPO"
12982fi
12983
12984 if test -n "$ac_tool_prefix"; then
12985 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12986set dummy ${ac_tool_prefix}otool; ac_word=$2
12987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012989if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012990 $as_echo_n "(cached) " >&6
12991else
12992 if test -n "$OTOOL"; then
12993 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12994else
12995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996for as_dir in $PATH
12997do
12998 IFS=$as_save_IFS
12999 test -z "$as_dir" && as_dir=.
13000 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013002 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13004 break 2
13005 fi
13006done
13007 done
13008IFS=$as_save_IFS
13009
13010fi
13011fi
13012OTOOL=$ac_cv_prog_OTOOL
13013if test -n "$OTOOL"; then
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13015$as_echo "$OTOOL" >&6; }
13016else
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018$as_echo "no" >&6; }
13019fi
13020
13021
13022fi
13023if test -z "$ac_cv_prog_OTOOL"; then
13024 ac_ct_OTOOL=$OTOOL
13025 # Extract the first word of "otool", so it can be a program name with args.
13026set dummy otool; ac_word=$2
13027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13028$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013029if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013030 $as_echo_n "(cached) " >&6
13031else
13032 if test -n "$ac_ct_OTOOL"; then
13033 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13034else
13035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13036for as_dir in $PATH
13037do
13038 IFS=$as_save_IFS
13039 test -z "$as_dir" && as_dir=.
13040 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013042 ac_cv_prog_ac_ct_OTOOL="otool"
13043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13044 break 2
13045 fi
13046done
13047 done
13048IFS=$as_save_IFS
13049
13050fi
13051fi
13052ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13053if test -n "$ac_ct_OTOOL"; then
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13055$as_echo "$ac_ct_OTOOL" >&6; }
13056else
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13058$as_echo "no" >&6; }
13059fi
13060
13061 if test "x$ac_ct_OTOOL" = x; then
13062 OTOOL=":"
13063 else
13064 case $cross_compiling:$ac_tool_warned in
13065yes:)
13066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13068ac_tool_warned=yes ;;
13069esac
13070 OTOOL=$ac_ct_OTOOL
13071 fi
13072else
13073 OTOOL="$ac_cv_prog_OTOOL"
13074fi
13075
13076 if test -n "$ac_tool_prefix"; then
13077 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13078set dummy ${ac_tool_prefix}otool64; ac_word=$2
13079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13080$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013081if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013082 $as_echo_n "(cached) " >&6
13083else
13084 if test -n "$OTOOL64"; then
13085 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13086else
13087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088for as_dir in $PATH
13089do
13090 IFS=$as_save_IFS
13091 test -z "$as_dir" && as_dir=.
13092 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013094 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13096 break 2
13097 fi
13098done
13099 done
13100IFS=$as_save_IFS
13101
13102fi
13103fi
13104OTOOL64=$ac_cv_prog_OTOOL64
13105if test -n "$OTOOL64"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13107$as_echo "$OTOOL64" >&6; }
13108else
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110$as_echo "no" >&6; }
13111fi
13112
13113
13114fi
13115if test -z "$ac_cv_prog_OTOOL64"; then
13116 ac_ct_OTOOL64=$OTOOL64
13117 # Extract the first word of "otool64", so it can be a program name with args.
13118set dummy otool64; ac_word=$2
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13120$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013121if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013122 $as_echo_n "(cached) " >&6
13123else
13124 if test -n "$ac_ct_OTOOL64"; then
13125 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13126else
13127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13128for as_dir in $PATH
13129do
13130 IFS=$as_save_IFS
13131 test -z "$as_dir" && as_dir=.
13132 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013134 ac_cv_prog_ac_ct_OTOOL64="otool64"
13135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13136 break 2
13137 fi
13138done
13139 done
13140IFS=$as_save_IFS
13141
13142fi
13143fi
13144ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13145if test -n "$ac_ct_OTOOL64"; then
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13147$as_echo "$ac_ct_OTOOL64" >&6; }
13148else
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13150$as_echo "no" >&6; }
13151fi
13152
13153 if test "x$ac_ct_OTOOL64" = x; then
13154 OTOOL64=":"
13155 else
13156 case $cross_compiling:$ac_tool_warned in
13157yes:)
13158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13160ac_tool_warned=yes ;;
13161esac
13162 OTOOL64=$ac_ct_OTOOL64
13163 fi
13164else
13165 OTOOL64="$ac_cv_prog_OTOOL64"
13166fi
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13195$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013196if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013197 $as_echo_n "(cached) " >&6
13198else
13199 lt_cv_apple_cc_single_mod=no
13200 if test -z "${LT_MULTI_MODULE}"; then
13201 # By default we will add the -single_module flag. You can override
13202 # by either setting the environment variable LT_MULTI_MODULE
13203 # non-empty at configure time, or by adding -multi_module to the
13204 # link flags.
13205 rm -rf libconftest.dylib*
13206 echo "int foo(void){return 1;}" > conftest.c
13207 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13208-dynamiclib -Wl,-single_module conftest.c" >&5
13209 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13210 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13211 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013212 # If there is a non-empty error log, and "single_module"
13213 # appears in it, assume the flag caused a linker warning
13214 if test -s conftest.err && $GREP single_module conftest.err; then
13215 cat conftest.err >&5
13216 # Otherwise, if the output was created with a 0 exit code from
13217 # the compiler, it worked.
13218 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013219 lt_cv_apple_cc_single_mod=yes
13220 else
13221 cat conftest.err >&5
13222 fi
13223 rm -rf libconftest.dylib*
13224 rm -f conftest.*
13225 fi
13226fi
13227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13228$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013229
cristy73bd4a52010-10-05 11:24:23 +000013230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13231$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013232if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013233 $as_echo_n "(cached) " >&6
13234else
13235 lt_cv_ld_exported_symbols_list=no
13236 save_LDFLAGS=$LDFLAGS
13237 echo "_main" > conftest.sym
13238 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240/* end confdefs.h. */
13241
13242int
13243main ()
13244{
13245
13246 ;
13247 return 0;
13248}
13249_ACEOF
13250if ac_fn_c_try_link "$LINENO"; then :
13251 lt_cv_ld_exported_symbols_list=yes
13252else
13253 lt_cv_ld_exported_symbols_list=no
13254fi
13255rm -f core conftest.err conftest.$ac_objext \
13256 conftest$ac_exeext conftest.$ac_ext
13257 LDFLAGS="$save_LDFLAGS"
13258
13259fi
13260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13261$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013262
cristy0c60a692010-11-04 01:09:47 +000013263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13264$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013265if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013266 $as_echo_n "(cached) " >&6
13267else
13268 lt_cv_ld_force_load=no
13269 cat > conftest.c << _LT_EOF
13270int forced_loaded() { return 2;}
13271_LT_EOF
13272 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13273 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13274 echo "$AR cru libconftest.a conftest.o" >&5
13275 $AR cru libconftest.a conftest.o 2>&5
13276 echo "$RANLIB libconftest.a" >&5
13277 $RANLIB libconftest.a 2>&5
13278 cat > conftest.c << _LT_EOF
13279int main() { return 0;}
13280_LT_EOF
13281 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13282 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13283 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013284 if test -s conftest.err && $GREP force_load conftest.err; then
13285 cat conftest.err >&5
13286 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013287 lt_cv_ld_force_load=yes
13288 else
13289 cat conftest.err >&5
13290 fi
13291 rm -f conftest.err libconftest.a conftest conftest.c
13292 rm -rf conftest.dSYM
13293
13294fi
13295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13296$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013297 case $host_os in
13298 rhapsody* | darwin1.[012])
13299 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13300 darwin1.*)
13301 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13302 darwin*) # darwin 5.x on
13303 # if running on 10.5 or later, the deployment target defaults
13304 # to the OS version, if on x86, and 10.4, the deployment
13305 # target defaults to 10.4. Don't you love it?
13306 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13307 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13308 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13309 10.[012]*)
13310 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13311 10.*)
13312 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13313 esac
13314 ;;
13315 esac
13316 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13317 _lt_dar_single_mod='$single_module'
13318 fi
13319 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13320 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13321 else
13322 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13323 fi
cristy0c60a692010-11-04 01:09:47 +000013324 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013325 _lt_dsymutil='~$DSYMUTIL $lib || :'
13326 else
13327 _lt_dsymutil=
13328 fi
13329 ;;
13330 esac
13331
13332for ac_header in dlfcn.h
13333do :
13334 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13335"
cristyda16f162011-02-19 23:52:17 +000013336if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013337 cat >>confdefs.h <<_ACEOF
13338#define HAVE_DLFCN_H 1
13339_ACEOF
13340
13341fi
13342
13343done
13344
13345
13346
cristy73bd4a52010-10-05 11:24:23 +000013347
cristyda16f162011-02-19 23:52:17 +000013348func_stripname_cnf ()
13349{
13350 case ${2} in
13351 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13352 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13353 esac
13354} # func_stripname_cnf
13355
13356
13357
cristy73bd4a52010-10-05 11:24:23 +000013358
13359
13360# Set options
13361enable_win32_dll=yes
13362
13363case $host in
cristy0c60a692010-11-04 01:09:47 +000013364*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013365 if test -n "$ac_tool_prefix"; then
13366 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13367set dummy ${ac_tool_prefix}as; ac_word=$2
13368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13369$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013370if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013371 $as_echo_n "(cached) " >&6
13372else
13373 if test -n "$AS"; then
13374 ac_cv_prog_AS="$AS" # Let the user override the test.
13375else
13376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13377for as_dir in $PATH
13378do
13379 IFS=$as_save_IFS
13380 test -z "$as_dir" && as_dir=.
13381 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013383 ac_cv_prog_AS="${ac_tool_prefix}as"
13384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13385 break 2
13386 fi
13387done
13388 done
13389IFS=$as_save_IFS
13390
13391fi
13392fi
13393AS=$ac_cv_prog_AS
13394if test -n "$AS"; then
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13396$as_echo "$AS" >&6; }
13397else
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399$as_echo "no" >&6; }
13400fi
13401
13402
13403fi
13404if test -z "$ac_cv_prog_AS"; then
13405 ac_ct_AS=$AS
13406 # Extract the first word of "as", so it can be a program name with args.
13407set dummy as; ac_word=$2
13408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13409$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013410if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013411 $as_echo_n "(cached) " >&6
13412else
13413 if test -n "$ac_ct_AS"; then
13414 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13415else
13416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13417for as_dir in $PATH
13418do
13419 IFS=$as_save_IFS
13420 test -z "$as_dir" && as_dir=.
13421 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013423 ac_cv_prog_ac_ct_AS="as"
13424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13425 break 2
13426 fi
13427done
13428 done
13429IFS=$as_save_IFS
13430
13431fi
13432fi
13433ac_ct_AS=$ac_cv_prog_ac_ct_AS
13434if test -n "$ac_ct_AS"; then
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13436$as_echo "$ac_ct_AS" >&6; }
13437else
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13439$as_echo "no" >&6; }
13440fi
13441
13442 if test "x$ac_ct_AS" = x; then
13443 AS="false"
13444 else
13445 case $cross_compiling:$ac_tool_warned in
13446yes:)
13447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13449ac_tool_warned=yes ;;
13450esac
13451 AS=$ac_ct_AS
13452 fi
13453else
13454 AS="$ac_cv_prog_AS"
13455fi
13456
13457 if test -n "$ac_tool_prefix"; then
13458 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13459set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13461$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013462if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013463 $as_echo_n "(cached) " >&6
13464else
13465 if test -n "$DLLTOOL"; then
13466 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13467else
13468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469for as_dir in $PATH
13470do
13471 IFS=$as_save_IFS
13472 test -z "$as_dir" && as_dir=.
13473 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013475 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13477 break 2
13478 fi
13479done
13480 done
13481IFS=$as_save_IFS
13482
13483fi
13484fi
13485DLLTOOL=$ac_cv_prog_DLLTOOL
13486if test -n "$DLLTOOL"; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13488$as_echo "$DLLTOOL" >&6; }
13489else
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491$as_echo "no" >&6; }
13492fi
13493
13494
13495fi
13496if test -z "$ac_cv_prog_DLLTOOL"; then
13497 ac_ct_DLLTOOL=$DLLTOOL
13498 # Extract the first word of "dlltool", so it can be a program name with args.
13499set dummy dlltool; ac_word=$2
13500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13501$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013502if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013503 $as_echo_n "(cached) " >&6
13504else
13505 if test -n "$ac_ct_DLLTOOL"; then
13506 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13507else
13508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13509for as_dir in $PATH
13510do
13511 IFS=$as_save_IFS
13512 test -z "$as_dir" && as_dir=.
13513 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013515 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13517 break 2
13518 fi
13519done
13520 done
13521IFS=$as_save_IFS
13522
13523fi
13524fi
13525ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13526if test -n "$ac_ct_DLLTOOL"; then
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13528$as_echo "$ac_ct_DLLTOOL" >&6; }
13529else
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13531$as_echo "no" >&6; }
13532fi
13533
13534 if test "x$ac_ct_DLLTOOL" = x; then
13535 DLLTOOL="false"
13536 else
13537 case $cross_compiling:$ac_tool_warned in
13538yes:)
13539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13541ac_tool_warned=yes ;;
13542esac
13543 DLLTOOL=$ac_ct_DLLTOOL
13544 fi
13545else
13546 DLLTOOL="$ac_cv_prog_DLLTOOL"
13547fi
13548
13549 if test -n "$ac_tool_prefix"; then
13550 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13551set dummy ${ac_tool_prefix}objdump; ac_word=$2
13552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13553$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013554if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013555 $as_echo_n "(cached) " >&6
13556else
13557 if test -n "$OBJDUMP"; then
13558 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13559else
13560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13561for as_dir in $PATH
13562do
13563 IFS=$as_save_IFS
13564 test -z "$as_dir" && as_dir=.
13565 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013567 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13569 break 2
13570 fi
13571done
13572 done
13573IFS=$as_save_IFS
13574
13575fi
13576fi
13577OBJDUMP=$ac_cv_prog_OBJDUMP
13578if test -n "$OBJDUMP"; then
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13580$as_echo "$OBJDUMP" >&6; }
13581else
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583$as_echo "no" >&6; }
13584fi
13585
13586
13587fi
13588if test -z "$ac_cv_prog_OBJDUMP"; then
13589 ac_ct_OBJDUMP=$OBJDUMP
13590 # Extract the first word of "objdump", so it can be a program name with args.
13591set dummy objdump; ac_word=$2
13592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13593$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013594if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013595 $as_echo_n "(cached) " >&6
13596else
13597 if test -n "$ac_ct_OBJDUMP"; then
13598 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13599else
13600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13601for as_dir in $PATH
13602do
13603 IFS=$as_save_IFS
13604 test -z "$as_dir" && as_dir=.
13605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013607 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13609 break 2
13610 fi
13611done
13612 done
13613IFS=$as_save_IFS
13614
13615fi
13616fi
13617ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13618if test -n "$ac_ct_OBJDUMP"; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13620$as_echo "$ac_ct_OBJDUMP" >&6; }
13621else
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13623$as_echo "no" >&6; }
13624fi
13625
13626 if test "x$ac_ct_OBJDUMP" = x; then
13627 OBJDUMP="false"
13628 else
13629 case $cross_compiling:$ac_tool_warned in
13630yes:)
13631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13633ac_tool_warned=yes ;;
13634esac
13635 OBJDUMP=$ac_ct_OBJDUMP
13636 fi
13637else
13638 OBJDUMP="$ac_cv_prog_OBJDUMP"
13639fi
13640
13641 ;;
13642esac
13643
13644test -z "$AS" && AS=as
13645
13646
13647
13648
13649
13650test -z "$DLLTOOL" && DLLTOOL=dlltool
13651
13652
13653
13654
13655
13656test -z "$OBJDUMP" && OBJDUMP=objdump
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666 # Check whether --enable-shared was given.
13667if test "${enable_shared+set}" = set; then :
13668 enableval=$enable_shared; p=${PACKAGE-default}
13669 case $enableval in
13670 yes) enable_shared=yes ;;
13671 no) enable_shared=no ;;
13672 *)
13673 enable_shared=no
13674 # Look at the argument we got. We use all the common list separators.
13675 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13676 for pkg in $enableval; do
13677 IFS="$lt_save_ifs"
13678 if test "X$pkg" = "X$p"; then
13679 enable_shared=yes
13680 fi
13681 done
13682 IFS="$lt_save_ifs"
13683 ;;
13684 esac
13685else
13686 enable_shared=yes
13687fi
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697 # Check whether --enable-static was given.
13698if test "${enable_static+set}" = set; then :
13699 enableval=$enable_static; p=${PACKAGE-default}
13700 case $enableval in
13701 yes) enable_static=yes ;;
13702 no) enable_static=no ;;
13703 *)
13704 enable_static=no
13705 # Look at the argument we got. We use all the common list separators.
13706 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13707 for pkg in $enableval; do
13708 IFS="$lt_save_ifs"
13709 if test "X$pkg" = "X$p"; then
13710 enable_static=yes
13711 fi
13712 done
13713 IFS="$lt_save_ifs"
13714 ;;
13715 esac
13716else
13717 enable_static=yes
13718fi
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729# Check whether --with-pic was given.
13730if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013731 withval=$with_pic; lt_p=${PACKAGE-default}
13732 case $withval in
13733 yes|no) pic_mode=$withval ;;
13734 *)
13735 pic_mode=default
13736 # Look at the argument we got. We use all the common list separators.
13737 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13738 for lt_pkg in $withval; do
13739 IFS="$lt_save_ifs"
13740 if test "X$lt_pkg" = "X$lt_p"; then
13741 pic_mode=yes
13742 fi
13743 done
13744 IFS="$lt_save_ifs"
13745 ;;
13746 esac
cristy73bd4a52010-10-05 11:24:23 +000013747else
13748 pic_mode=default
13749fi
13750
13751
13752test -z "$pic_mode" && pic_mode=default
13753
13754
13755
13756
13757
13758
13759
13760 # Check whether --enable-fast-install was given.
13761if test "${enable_fast_install+set}" = set; then :
13762 enableval=$enable_fast_install; p=${PACKAGE-default}
13763 case $enableval in
13764 yes) enable_fast_install=yes ;;
13765 no) enable_fast_install=no ;;
13766 *)
13767 enable_fast_install=no
13768 # Look at the argument we got. We use all the common list separators.
13769 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13770 for pkg in $enableval; do
13771 IFS="$lt_save_ifs"
13772 if test "X$pkg" = "X$p"; then
13773 enable_fast_install=yes
13774 fi
13775 done
13776 IFS="$lt_save_ifs"
13777 ;;
13778 esac
13779else
13780 enable_fast_install=yes
13781fi
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793# This can be used to rebuild libtool when needed
13794LIBTOOL_DEPS="$ltmain"
13795
13796# Always use our own libtool.
13797LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
cristy0c60a692010-11-04 01:09:47 +000013823
cristy99bd5232011-12-07 14:38:20 +000013824
13825
13826
13827
cristy73bd4a52010-10-05 11:24:23 +000013828test -z "$LN_S" && LN_S="ln -s"
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843if test -n "${ZSH_VERSION+set}" ; then
13844 setopt NO_GLOB_SUBST
13845fi
13846
13847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13848$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013849if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013850 $as_echo_n "(cached) " >&6
13851else
13852 rm -f .libs 2>/dev/null
13853mkdir .libs 2>/dev/null
13854if test -d .libs; then
13855 lt_cv_objdir=.libs
13856else
13857 # MS-DOS does not allow filenames that begin with a dot.
13858 lt_cv_objdir=_libs
13859fi
13860rmdir .libs 2>/dev/null
13861fi
13862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13863$as_echo "$lt_cv_objdir" >&6; }
13864objdir=$lt_cv_objdir
13865
13866
13867
13868
13869
13870cat >>confdefs.h <<_ACEOF
13871#define LT_OBJDIR "$lt_cv_objdir/"
13872_ACEOF
13873
13874
13875
13876
cristy73bd4a52010-10-05 11:24:23 +000013877case $host_os in
13878aix3*)
13879 # AIX sometimes has problems with the GCC collect2 program. For some
13880 # reason, if we set the COLLECT_NAMES environment variable, the problems
13881 # vanish in a puff of smoke.
13882 if test "X${COLLECT_NAMES+set}" != Xset; then
13883 COLLECT_NAMES=
13884 export COLLECT_NAMES
13885 fi
13886 ;;
13887esac
13888
cristy73bd4a52010-10-05 11:24:23 +000013889# Global variables:
13890ofile=libtool
13891can_build_shared=yes
13892
13893# All known linkers require a `.a' archive for static linking (except MSVC,
13894# which needs '.lib').
13895libext=a
13896
13897with_gnu_ld="$lt_cv_prog_gnu_ld"
13898
13899old_CC="$CC"
13900old_CFLAGS="$CFLAGS"
13901
13902# Set sane defaults for various variables
13903test -z "$CC" && CC=cc
13904test -z "$LTCC" && LTCC=$CC
13905test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13906test -z "$LD" && LD=ld
13907test -z "$ac_objext" && ac_objext=o
13908
13909for cc_temp in $compiler""; do
13910 case $cc_temp in
13911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13913 \-*) ;;
13914 *) break;;
13915 esac
13916done
cristy0c60a692010-11-04 01:09:47 +000013917cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013918
13919
13920# Only perform the check for file, if the check method requires it
13921test -z "$MAGIC_CMD" && MAGIC_CMD=file
13922case $deplibs_check_method in
13923file_magic*)
13924 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13926$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013927if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013928 $as_echo_n "(cached) " >&6
13929else
13930 case $MAGIC_CMD in
13931[\\/*] | ?:[\\/]*)
13932 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13933 ;;
13934*)
13935 lt_save_MAGIC_CMD="$MAGIC_CMD"
13936 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13937 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13938 for ac_dir in $ac_dummy; do
13939 IFS="$lt_save_ifs"
13940 test -z "$ac_dir" && ac_dir=.
13941 if test -f $ac_dir/${ac_tool_prefix}file; then
13942 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13943 if test -n "$file_magic_test_file"; then
13944 case $deplibs_check_method in
13945 "file_magic "*)
13946 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13948 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13949 $EGREP "$file_magic_regex" > /dev/null; then
13950 :
13951 else
13952 cat <<_LT_EOF 1>&2
13953
13954*** Warning: the command libtool uses to detect shared libraries,
13955*** $file_magic_cmd, produces output that libtool cannot recognize.
13956*** The result is that libtool may fail to recognize shared libraries
13957*** as such. This will affect the creation of libtool libraries that
13958*** depend on shared libraries, but programs linked with such libtool
13959*** libraries will work regardless of this problem. Nevertheless, you
13960*** may want to report the problem to your system manager and/or to
13961*** bug-libtool@gnu.org
13962
13963_LT_EOF
13964 fi ;;
13965 esac
13966 fi
13967 break
13968 fi
13969 done
13970 IFS="$lt_save_ifs"
13971 MAGIC_CMD="$lt_save_MAGIC_CMD"
13972 ;;
13973esac
13974fi
13975
13976MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13977if test -n "$MAGIC_CMD"; then
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13979$as_echo "$MAGIC_CMD" >&6; }
13980else
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982$as_echo "no" >&6; }
13983fi
13984
13985
13986
13987
13988
13989if test -z "$lt_cv_path_MAGIC_CMD"; then
13990 if test -n "$ac_tool_prefix"; then
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13992$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013993if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013994 $as_echo_n "(cached) " >&6
13995else
13996 case $MAGIC_CMD in
13997[\\/*] | ?:[\\/]*)
13998 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13999 ;;
14000*)
14001 lt_save_MAGIC_CMD="$MAGIC_CMD"
14002 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14003 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14004 for ac_dir in $ac_dummy; do
14005 IFS="$lt_save_ifs"
14006 test -z "$ac_dir" && ac_dir=.
14007 if test -f $ac_dir/file; then
14008 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14009 if test -n "$file_magic_test_file"; then
14010 case $deplibs_check_method in
14011 "file_magic "*)
14012 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14014 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14015 $EGREP "$file_magic_regex" > /dev/null; then
14016 :
14017 else
14018 cat <<_LT_EOF 1>&2
14019
14020*** Warning: the command libtool uses to detect shared libraries,
14021*** $file_magic_cmd, produces output that libtool cannot recognize.
14022*** The result is that libtool may fail to recognize shared libraries
14023*** as such. This will affect the creation of libtool libraries that
14024*** depend on shared libraries, but programs linked with such libtool
14025*** libraries will work regardless of this problem. Nevertheless, you
14026*** may want to report the problem to your system manager and/or to
14027*** bug-libtool@gnu.org
14028
14029_LT_EOF
14030 fi ;;
14031 esac
14032 fi
14033 break
14034 fi
14035 done
14036 IFS="$lt_save_ifs"
14037 MAGIC_CMD="$lt_save_MAGIC_CMD"
14038 ;;
14039esac
14040fi
14041
14042MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14043if test -n "$MAGIC_CMD"; then
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14045$as_echo "$MAGIC_CMD" >&6; }
14046else
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14048$as_echo "no" >&6; }
14049fi
14050
14051
14052 else
14053 MAGIC_CMD=:
14054 fi
14055fi
14056
14057 fi
14058 ;;
14059esac
14060
14061# Use C for the default configuration in the libtool script
14062
14063lt_save_CC="$CC"
14064ac_ext=c
14065ac_cpp='$CPP $CPPFLAGS'
14066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14068ac_compiler_gnu=$ac_cv_c_compiler_gnu
14069
14070
14071# Source file extension for C test sources.
14072ac_ext=c
14073
14074# Object file extension for compiled C test sources.
14075objext=o
14076objext=$objext
14077
14078# Code to be used in simple compile tests
14079lt_simple_compile_test_code="int some_variable = 0;"
14080
14081# Code to be used in simple link tests
14082lt_simple_link_test_code='int main(){return(0);}'
14083
14084
14085
14086
14087
14088
14089
14090# If no C compiler was specified, use CC.
14091LTCC=${LTCC-"$CC"}
14092
14093# If no C compiler flags were specified, use CFLAGS.
14094LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14095
14096# Allow CC to be a program name with arguments.
14097compiler=$CC
14098
14099# Save the default compiler, since it gets overwritten when the other
14100# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14101compiler_DEFAULT=$CC
14102
14103# save warnings/boilerplate of simple test code
14104ac_outfile=conftest.$ac_objext
14105echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14106eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14107_lt_compiler_boilerplate=`cat conftest.err`
14108$RM conftest*
14109
14110ac_outfile=conftest.$ac_objext
14111echo "$lt_simple_link_test_code" >conftest.$ac_ext
14112eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14113_lt_linker_boilerplate=`cat conftest.err`
14114$RM -r conftest*
14115
14116
14117## CAVEAT EMPTOR:
14118## There is no encapsulation within the following macros, do not change
14119## the running order or otherwise move them around unless you know exactly
14120## what you are doing...
14121if test -n "$compiler"; then
14122
14123lt_prog_compiler_no_builtin_flag=
14124
14125if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014126 case $cc_basename in
14127 nvcc*)
14128 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14129 *)
14130 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14131 esac
cristy73bd4a52010-10-05 11:24:23 +000014132
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14134$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014135if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014136 $as_echo_n "(cached) " >&6
14137else
14138 lt_cv_prog_compiler_rtti_exceptions=no
14139 ac_outfile=conftest.$ac_objext
14140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14141 lt_compiler_flag="-fno-rtti -fno-exceptions"
14142 # Insert the option either (1) after the last *FLAGS variable, or
14143 # (2) before a word containing "conftest.", or (3) at the end.
14144 # Note that $ac_compile itself does not contain backslashes and begins
14145 # with a dollar sign (not a hyphen), so the echo should work correctly.
14146 # The option is referenced via a variable to avoid confusing sed.
14147 lt_compile=`echo "$ac_compile" | $SED \
14148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14150 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014151 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014152 (eval "$lt_compile" 2>conftest.err)
14153 ac_status=$?
14154 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014156 if (exit $ac_status) && test -s "$ac_outfile"; then
14157 # The compiler can only warn and ignore the option if not recognized
14158 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014159 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14162 lt_cv_prog_compiler_rtti_exceptions=yes
14163 fi
14164 fi
14165 $RM conftest*
14166
14167fi
14168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14169$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14170
14171if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14172 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14173else
14174 :
14175fi
14176
14177fi
14178
14179
14180
14181
14182
14183
14184 lt_prog_compiler_wl=
14185lt_prog_compiler_pic=
14186lt_prog_compiler_static=
14187
cristy73bd4a52010-10-05 11:24:23 +000014188
14189 if test "$GCC" = yes; then
14190 lt_prog_compiler_wl='-Wl,'
14191 lt_prog_compiler_static='-static'
14192
14193 case $host_os in
14194 aix*)
14195 # All AIX code is PIC.
14196 if test "$host_cpu" = ia64; then
14197 # AIX 5 now supports IA64 processor
14198 lt_prog_compiler_static='-Bstatic'
14199 fi
14200 ;;
14201
14202 amigaos*)
14203 case $host_cpu in
14204 powerpc)
14205 # see comment about AmigaOS4 .so support
14206 lt_prog_compiler_pic='-fPIC'
14207 ;;
14208 m68k)
14209 # FIXME: we need at least 68020 code to build shared libraries, but
14210 # adding the `-m68020' flag to GCC prevents building anything better,
14211 # like `-m68040'.
14212 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14213 ;;
14214 esac
14215 ;;
14216
14217 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14218 # PIC is the default for these OSes.
14219 ;;
14220
14221 mingw* | cygwin* | pw32* | os2* | cegcc*)
14222 # This hack is so that the source file can tell whether it is being
14223 # built for inclusion in a dll (and should export symbols for example).
14224 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14225 # (--disable-auto-import) libraries
14226 lt_prog_compiler_pic='-DDLL_EXPORT'
14227 ;;
14228
14229 darwin* | rhapsody*)
14230 # PIC is the default on this platform
14231 # Common symbols not allowed in MH_DYLIB files
14232 lt_prog_compiler_pic='-fno-common'
14233 ;;
14234
cristy0c60a692010-11-04 01:09:47 +000014235 haiku*)
14236 # PIC is the default for Haiku.
14237 # The "-static" flag exists, but is broken.
14238 lt_prog_compiler_static=
14239 ;;
14240
cristy73bd4a52010-10-05 11:24:23 +000014241 hpux*)
14242 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14243 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14244 # sets the default TLS model and affects inlining.
14245 case $host_cpu in
14246 hppa*64*)
14247 # +Z the default
14248 ;;
14249 *)
14250 lt_prog_compiler_pic='-fPIC'
14251 ;;
14252 esac
14253 ;;
14254
14255 interix[3-9]*)
14256 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14257 # Instead, we relocate shared libraries at runtime.
14258 ;;
14259
14260 msdosdjgpp*)
14261 # Just because we use GCC doesn't mean we suddenly get shared libraries
14262 # on systems that don't support them.
14263 lt_prog_compiler_can_build_shared=no
14264 enable_shared=no
14265 ;;
14266
14267 *nto* | *qnx*)
14268 # QNX uses GNU C++, but need to define -shared option too, otherwise
14269 # it will coredump.
14270 lt_prog_compiler_pic='-fPIC -shared'
14271 ;;
14272
14273 sysv4*MP*)
14274 if test -d /usr/nec; then
14275 lt_prog_compiler_pic=-Kconform_pic
14276 fi
14277 ;;
14278
14279 *)
14280 lt_prog_compiler_pic='-fPIC'
14281 ;;
14282 esac
cristy0c60a692010-11-04 01:09:47 +000014283
14284 case $cc_basename in
14285 nvcc*) # Cuda Compiler Driver 2.2
14286 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014287 if test -n "$lt_prog_compiler_pic"; then
14288 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14289 fi
cristy0c60a692010-11-04 01:09:47 +000014290 ;;
14291 esac
cristy73bd4a52010-10-05 11:24:23 +000014292 else
14293 # PORTME Check for flag to pass linker flags through the system compiler.
14294 case $host_os in
14295 aix*)
14296 lt_prog_compiler_wl='-Wl,'
14297 if test "$host_cpu" = ia64; then
14298 # AIX 5 now supports IA64 processor
14299 lt_prog_compiler_static='-Bstatic'
14300 else
14301 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14302 fi
14303 ;;
14304
14305 mingw* | cygwin* | pw32* | os2* | cegcc*)
14306 # This hack is so that the source file can tell whether it is being
14307 # built for inclusion in a dll (and should export symbols for example).
14308 lt_prog_compiler_pic='-DDLL_EXPORT'
14309 ;;
14310
14311 hpux9* | hpux10* | hpux11*)
14312 lt_prog_compiler_wl='-Wl,'
14313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14314 # not for PA HP-UX.
14315 case $host_cpu in
14316 hppa*64*|ia64*)
14317 # +Z the default
14318 ;;
14319 *)
14320 lt_prog_compiler_pic='+Z'
14321 ;;
14322 esac
14323 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14324 lt_prog_compiler_static='${wl}-a ${wl}archive'
14325 ;;
14326
14327 irix5* | irix6* | nonstopux*)
14328 lt_prog_compiler_wl='-Wl,'
14329 # PIC (with -KPIC) is the default.
14330 lt_prog_compiler_static='-non_shared'
14331 ;;
14332
cristy0c60a692010-11-04 01:09:47 +000014333 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014334 case $cc_basename in
14335 # old Intel for x86_64 which still supported -KPIC.
14336 ecc*)
14337 lt_prog_compiler_wl='-Wl,'
14338 lt_prog_compiler_pic='-KPIC'
14339 lt_prog_compiler_static='-static'
14340 ;;
14341 # icc used to be incompatible with GCC.
14342 # ICC 10 doesn't accept -KPIC any more.
14343 icc* | ifort*)
14344 lt_prog_compiler_wl='-Wl,'
14345 lt_prog_compiler_pic='-fPIC'
14346 lt_prog_compiler_static='-static'
14347 ;;
14348 # Lahey Fortran 8.1.
14349 lf95*)
14350 lt_prog_compiler_wl='-Wl,'
14351 lt_prog_compiler_pic='--shared'
14352 lt_prog_compiler_static='--static'
14353 ;;
cristyda16f162011-02-19 23:52:17 +000014354 nagfor*)
14355 # NAG Fortran compiler
14356 lt_prog_compiler_wl='-Wl,-Wl,,'
14357 lt_prog_compiler_pic='-PIC'
14358 lt_prog_compiler_static='-Bstatic'
14359 ;;
cristy0c60a692010-11-04 01:09:47 +000014360 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014361 # Portland Group compilers (*not* the Pentium gcc compiler,
14362 # which looks to be a dead project)
14363 lt_prog_compiler_wl='-Wl,'
14364 lt_prog_compiler_pic='-fpic'
14365 lt_prog_compiler_static='-Bstatic'
14366 ;;
14367 ccc*)
14368 lt_prog_compiler_wl='-Wl,'
14369 # All Alpha code is PIC.
14370 lt_prog_compiler_static='-non_shared'
14371 ;;
cristy0c60a692010-11-04 01:09:47 +000014372 xl* | bgxl* | bgf* | mpixl*)
14373 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014374 lt_prog_compiler_wl='-Wl,'
14375 lt_prog_compiler_pic='-qpic'
14376 lt_prog_compiler_static='-qstaticlink'
14377 ;;
14378 *)
14379 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014380 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014381 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14382 lt_prog_compiler_pic='-KPIC'
14383 lt_prog_compiler_static='-Bstatic'
14384 lt_prog_compiler_wl=''
14385 ;;
cristy99bd5232011-12-07 14:38:20 +000014386 *Sun\ F* | *Sun*Fortran*)
14387 lt_prog_compiler_pic='-KPIC'
14388 lt_prog_compiler_static='-Bstatic'
14389 lt_prog_compiler_wl='-Qoption ld '
14390 ;;
cristy73bd4a52010-10-05 11:24:23 +000014391 *Sun\ C*)
14392 # Sun C 5.9
14393 lt_prog_compiler_pic='-KPIC'
14394 lt_prog_compiler_static='-Bstatic'
14395 lt_prog_compiler_wl='-Wl,'
14396 ;;
cristy99bd5232011-12-07 14:38:20 +000014397 *Intel*\ [CF]*Compiler*)
14398 lt_prog_compiler_wl='-Wl,'
14399 lt_prog_compiler_pic='-fPIC'
14400 lt_prog_compiler_static='-static'
14401 ;;
14402 *Portland\ Group*)
14403 lt_prog_compiler_wl='-Wl,'
14404 lt_prog_compiler_pic='-fpic'
14405 lt_prog_compiler_static='-Bstatic'
14406 ;;
cristy73bd4a52010-10-05 11:24:23 +000014407 esac
14408 ;;
14409 esac
14410 ;;
14411
14412 newsos6)
14413 lt_prog_compiler_pic='-KPIC'
14414 lt_prog_compiler_static='-Bstatic'
14415 ;;
14416
14417 *nto* | *qnx*)
14418 # QNX uses GNU C++, but need to define -shared option too, otherwise
14419 # it will coredump.
14420 lt_prog_compiler_pic='-fPIC -shared'
14421 ;;
14422
14423 osf3* | osf4* | osf5*)
14424 lt_prog_compiler_wl='-Wl,'
14425 # All OSF/1 code is PIC.
14426 lt_prog_compiler_static='-non_shared'
14427 ;;
14428
14429 rdos*)
14430 lt_prog_compiler_static='-non_shared'
14431 ;;
14432
14433 solaris*)
14434 lt_prog_compiler_pic='-KPIC'
14435 lt_prog_compiler_static='-Bstatic'
14436 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014437 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014438 lt_prog_compiler_wl='-Qoption ld ';;
14439 *)
14440 lt_prog_compiler_wl='-Wl,';;
14441 esac
14442 ;;
14443
14444 sunos4*)
14445 lt_prog_compiler_wl='-Qoption ld '
14446 lt_prog_compiler_pic='-PIC'
14447 lt_prog_compiler_static='-Bstatic'
14448 ;;
14449
14450 sysv4 | sysv4.2uw2* | sysv4.3*)
14451 lt_prog_compiler_wl='-Wl,'
14452 lt_prog_compiler_pic='-KPIC'
14453 lt_prog_compiler_static='-Bstatic'
14454 ;;
14455
14456 sysv4*MP*)
14457 if test -d /usr/nec ;then
14458 lt_prog_compiler_pic='-Kconform_pic'
14459 lt_prog_compiler_static='-Bstatic'
14460 fi
14461 ;;
14462
14463 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14464 lt_prog_compiler_wl='-Wl,'
14465 lt_prog_compiler_pic='-KPIC'
14466 lt_prog_compiler_static='-Bstatic'
14467 ;;
14468
14469 unicos*)
14470 lt_prog_compiler_wl='-Wl,'
14471 lt_prog_compiler_can_build_shared=no
14472 ;;
14473
14474 uts4*)
14475 lt_prog_compiler_pic='-pic'
14476 lt_prog_compiler_static='-Bstatic'
14477 ;;
14478
14479 *)
14480 lt_prog_compiler_can_build_shared=no
14481 ;;
14482 esac
14483 fi
14484
14485case $host_os in
14486 # For platforms which do not support PIC, -DPIC is meaningless:
14487 *djgpp*)
14488 lt_prog_compiler_pic=
14489 ;;
14490 *)
14491 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14492 ;;
14493esac
cristy73bd4a52010-10-05 11:24:23 +000014494
cristyda16f162011-02-19 23:52:17 +000014495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14496$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14497if ${lt_cv_prog_compiler_pic+:} false; then :
14498 $as_echo_n "(cached) " >&6
14499else
14500 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14501fi
14502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14503$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14504lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014505
14506#
14507# Check to make sure the PIC flag actually works.
14508#
14509if test -n "$lt_prog_compiler_pic"; then
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14511$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014512if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014513 $as_echo_n "(cached) " >&6
14514else
14515 lt_cv_prog_compiler_pic_works=no
14516 ac_outfile=conftest.$ac_objext
14517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14518 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14519 # Insert the option either (1) after the last *FLAGS variable, or
14520 # (2) before a word containing "conftest.", or (3) at the end.
14521 # Note that $ac_compile itself does not contain backslashes and begins
14522 # with a dollar sign (not a hyphen), so the echo should work correctly.
14523 # The option is referenced via a variable to avoid confusing sed.
14524 lt_compile=`echo "$ac_compile" | $SED \
14525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14527 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014528 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014529 (eval "$lt_compile" 2>conftest.err)
14530 ac_status=$?
14531 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014533 if (exit $ac_status) && test -s "$ac_outfile"; then
14534 # The compiler can only warn and ignore the option if not recognized
14535 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014536 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014537 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14538 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14539 lt_cv_prog_compiler_pic_works=yes
14540 fi
14541 fi
14542 $RM conftest*
14543
14544fi
14545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14546$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14547
14548if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14549 case $lt_prog_compiler_pic in
14550 "" | " "*) ;;
14551 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14552 esac
14553else
14554 lt_prog_compiler_pic=
14555 lt_prog_compiler_can_build_shared=no
14556fi
14557
14558fi
14559
14560
14561
14562
14563
14564
cristyda16f162011-02-19 23:52:17 +000014565
14566
14567
14568
14569
cristy73bd4a52010-10-05 11:24:23 +000014570#
14571# Check to make sure the static flag actually works.
14572#
14573wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14575$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014576if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014577 $as_echo_n "(cached) " >&6
14578else
14579 lt_cv_prog_compiler_static_works=no
14580 save_LDFLAGS="$LDFLAGS"
14581 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14582 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14583 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14584 # The linker can only warn and ignore the option if not recognized
14585 # So say no if there are warnings
14586 if test -s conftest.err; then
14587 # Append any errors to the config.log.
14588 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014589 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14591 if diff conftest.exp conftest.er2 >/dev/null; then
14592 lt_cv_prog_compiler_static_works=yes
14593 fi
14594 else
14595 lt_cv_prog_compiler_static_works=yes
14596 fi
14597 fi
14598 $RM -r conftest*
14599 LDFLAGS="$save_LDFLAGS"
14600
14601fi
14602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14603$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14604
14605if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14606 :
14607else
14608 lt_prog_compiler_static=
14609fi
14610
14611
14612
14613
14614
14615
14616
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14618$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014619if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014620 $as_echo_n "(cached) " >&6
14621else
14622 lt_cv_prog_compiler_c_o=no
14623 $RM -r conftest 2>/dev/null
14624 mkdir conftest
14625 cd conftest
14626 mkdir out
14627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14628
14629 lt_compiler_flag="-o out/conftest2.$ac_objext"
14630 # Insert the option either (1) after the last *FLAGS variable, or
14631 # (2) before a word containing "conftest.", or (3) at the end.
14632 # Note that $ac_compile itself does not contain backslashes and begins
14633 # with a dollar sign (not a hyphen), so the echo should work correctly.
14634 lt_compile=`echo "$ac_compile" | $SED \
14635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14637 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014638 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014639 (eval "$lt_compile" 2>out/conftest.err)
14640 ac_status=$?
14641 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014643 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14644 then
14645 # The compiler can only warn and ignore the option if not recognized
14646 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014647 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014648 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14649 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14650 lt_cv_prog_compiler_c_o=yes
14651 fi
14652 fi
14653 chmod u+w . 2>&5
14654 $RM conftest*
14655 # SGI C++ compiler will create directory out/ii_files/ for
14656 # template instantiation
14657 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14658 $RM out/* && rmdir out
14659 cd ..
14660 $RM -r conftest
14661 $RM conftest*
14662
14663fi
14664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14665$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14666
14667
14668
14669
14670
14671
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14673$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014674if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014675 $as_echo_n "(cached) " >&6
14676else
14677 lt_cv_prog_compiler_c_o=no
14678 $RM -r conftest 2>/dev/null
14679 mkdir conftest
14680 cd conftest
14681 mkdir out
14682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14683
14684 lt_compiler_flag="-o out/conftest2.$ac_objext"
14685 # Insert the option either (1) after the last *FLAGS variable, or
14686 # (2) before a word containing "conftest.", or (3) at the end.
14687 # Note that $ac_compile itself does not contain backslashes and begins
14688 # with a dollar sign (not a hyphen), so the echo should work correctly.
14689 lt_compile=`echo "$ac_compile" | $SED \
14690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14692 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014693 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014694 (eval "$lt_compile" 2>out/conftest.err)
14695 ac_status=$?
14696 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014698 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14699 then
14700 # The compiler can only warn and ignore the option if not recognized
14701 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014702 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014703 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14704 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14705 lt_cv_prog_compiler_c_o=yes
14706 fi
14707 fi
14708 chmod u+w . 2>&5
14709 $RM conftest*
14710 # SGI C++ compiler will create directory out/ii_files/ for
14711 # template instantiation
14712 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14713 $RM out/* && rmdir out
14714 cd ..
14715 $RM -r conftest
14716 $RM conftest*
14717
14718fi
14719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14720$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14721
14722
14723
14724
14725hard_links="nottested"
14726if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14727 # do not overwrite the value of need_locks provided by the user
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14729$as_echo_n "checking if we can lock with hard links... " >&6; }
14730 hard_links=yes
14731 $RM conftest*
14732 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14733 touch conftest.a
14734 ln conftest.a conftest.b 2>&5 || hard_links=no
14735 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14737$as_echo "$hard_links" >&6; }
14738 if test "$hard_links" = no; then
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14740$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14741 need_locks=warn
14742 fi
14743else
14744 need_locks=no
14745fi
14746
14747
14748
14749
14750
14751
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14753$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14754
14755 runpath_var=
14756 allow_undefined_flag=
14757 always_export_symbols=no
14758 archive_cmds=
14759 archive_expsym_cmds=
14760 compiler_needs_object=no
14761 enable_shared_with_static_runtimes=no
14762 export_dynamic_flag_spec=
14763 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14764 hardcode_automatic=no
14765 hardcode_direct=no
14766 hardcode_direct_absolute=no
14767 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014768 hardcode_libdir_separator=
14769 hardcode_minus_L=no
14770 hardcode_shlibpath_var=unsupported
14771 inherit_rpath=no
14772 link_all_deplibs=unknown
14773 module_cmds=
14774 module_expsym_cmds=
14775 old_archive_from_new_cmds=
14776 old_archive_from_expsyms_cmds=
14777 thread_safe_flag_spec=
14778 whole_archive_flag_spec=
14779 # include_expsyms should be a list of space-separated symbols to be *always*
14780 # included in the symbol list
14781 include_expsyms=
14782 # exclude_expsyms can be an extended regexp of symbols to exclude
14783 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14784 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14785 # as well as any symbol that contains `d'.
14786 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14787 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14788 # platforms (ab)use it in PIC code, but their linkers get confused if
14789 # the symbol is explicitly referenced. Since portable code cannot
14790 # rely on this symbol name, it's probably fine to never include it in
14791 # preloaded symbol tables.
14792 # Exclude shared library initialization/finalization symbols.
14793 extract_expsyms_cmds=
14794
14795 case $host_os in
14796 cygwin* | mingw* | pw32* | cegcc*)
14797 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14798 # When not using gcc, we currently assume that we are using
14799 # Microsoft Visual C++.
14800 if test "$GCC" != yes; then
14801 with_gnu_ld=no
14802 fi
14803 ;;
14804 interix*)
14805 # we just hope/assume this is gcc and not c89 (= MSVC++)
14806 with_gnu_ld=yes
14807 ;;
14808 openbsd*)
14809 with_gnu_ld=no
14810 ;;
14811 esac
14812
14813 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014814
14815 # On some targets, GNU ld is compatible enough with the native linker
14816 # that we're better off using the native interface for both.
14817 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014818 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014819 case $host_os in
14820 aix*)
14821 # The AIX port of GNU ld has always aspired to compatibility
14822 # with the native linker. However, as the warning in the GNU ld
14823 # block says, versions before 2.19.5* couldn't really create working
14824 # shared libraries, regardless of the interface used.
14825 case `$LD -v 2>&1` in
14826 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14827 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14828 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14829 *)
14830 lt_use_gnu_ld_interface=yes
14831 ;;
14832 esac
14833 ;;
14834 *)
14835 lt_use_gnu_ld_interface=yes
14836 ;;
14837 esac
14838 fi
14839
14840 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014841 # If archive_cmds runs LD, not CC, wlarc should be empty
14842 wlarc='${wl}'
14843
14844 # Set some defaults for GNU ld with shared library support. These
14845 # are reset later if shared libraries are not supported. Putting them
14846 # here allows them to be overridden if necessary.
14847 runpath_var=LD_RUN_PATH
14848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14849 export_dynamic_flag_spec='${wl}--export-dynamic'
14850 # ancient GNU ld didn't support --whole-archive et. al.
14851 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14852 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14853 else
14854 whole_archive_flag_spec=
14855 fi
14856 supports_anon_versioning=no
14857 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014858 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014859 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14860 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14861 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14862 *\ 2.11.*) ;; # other 2.11 versions
14863 *) supports_anon_versioning=yes ;;
14864 esac
14865
14866 # See if GNU ld supports shared libraries.
14867 case $host_os in
14868 aix[3-9]*)
14869 # On AIX/PPC, the GNU linker is very broken
14870 if test "$host_cpu" != ia64; then
14871 ld_shlibs=no
14872 cat <<_LT_EOF 1>&2
14873
cristy0c60a692010-11-04 01:09:47 +000014874*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014875*** to be unable to reliably create shared libraries on AIX.
14876*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014877*** really care for shared libraries, you may want to install binutils
14878*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14879*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014880
14881_LT_EOF
14882 fi
14883 ;;
14884
14885 amigaos*)
14886 case $host_cpu in
14887 powerpc)
14888 # see comment about AmigaOS4 .so support
14889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14890 archive_expsym_cmds=''
14891 ;;
14892 m68k)
14893 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)'
14894 hardcode_libdir_flag_spec='-L$libdir'
14895 hardcode_minus_L=yes
14896 ;;
14897 esac
14898 ;;
14899
14900 beos*)
14901 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14902 allow_undefined_flag=unsupported
14903 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14904 # support --undefined. This deserves some investigation. FIXME
14905 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14906 else
14907 ld_shlibs=no
14908 fi
14909 ;;
14910
14911 cygwin* | mingw* | pw32* | cegcc*)
14912 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14913 # as there is no search path for DLLs.
14914 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014915 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014916 allow_undefined_flag=unsupported
14917 always_export_symbols=no
14918 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014919 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'
14920 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 +000014921
14922 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14924 # If the export-symbols file already is a .def file (1st line
14925 # is EXPORTS), use it as is; otherwise, prepend...
14926 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14927 cp $export_symbols $output_objdir/$soname.def;
14928 else
14929 echo EXPORTS > $output_objdir/$soname.def;
14930 cat $export_symbols >> $output_objdir/$soname.def;
14931 fi~
14932 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14933 else
14934 ld_shlibs=no
14935 fi
14936 ;;
14937
cristy0c60a692010-11-04 01:09:47 +000014938 haiku*)
14939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14940 link_all_deplibs=yes
14941 ;;
14942
cristy73bd4a52010-10-05 11:24:23 +000014943 interix[3-9]*)
14944 hardcode_direct=no
14945 hardcode_shlibpath_var=no
14946 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14947 export_dynamic_flag_spec='${wl}-E'
14948 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14949 # Instead, shared libraries are loaded at an image base (0x10000000 by
14950 # default) and relocated if they conflict, which is a slow very memory
14951 # consuming and fragmenting process. To avoid this, we pick a random,
14952 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14953 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14954 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14955 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'
14956 ;;
14957
cristy0c60a692010-11-04 01:09:47 +000014958 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014959 tmp_diet=no
14960 if test "$host_os" = linux-dietlibc; then
14961 case $cc_basename in
14962 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14963 esac
14964 fi
14965 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14966 && test "$tmp_diet" = no
14967 then
cristyda16f162011-02-19 23:52:17 +000014968 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014969 tmp_sharedflag='-shared'
14970 case $cc_basename,$host_cpu in
14971 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014972 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 +000014973 tmp_addflag=' $pic_flag'
14974 ;;
cristy0c60a692010-11-04 01:09:47 +000014975 pgf77* | pgf90* | pgf95* | pgfortran*)
14976 # Portland Group f77 and f90 compilers
14977 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 +000014978 tmp_addflag=' $pic_flag -Mnomain' ;;
14979 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14980 tmp_addflag=' -i_dynamic' ;;
14981 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14982 tmp_addflag=' -i_dynamic -nofor_main' ;;
14983 ifc* | ifort*) # Intel Fortran compiler
14984 tmp_addflag=' -nofor_main' ;;
14985 lf95*) # Lahey Fortran 8.1
14986 whole_archive_flag_spec=
14987 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014988 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014989 tmp_sharedflag='-qmkshrobj'
14990 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014991 nvcc*) # Cuda Compiler Driver 2.2
14992 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'
14993 compiler_needs_object=yes
14994 ;;
cristy73bd4a52010-10-05 11:24:23 +000014995 esac
14996 case `$CC -V 2>&1 | sed 5q` in
14997 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014998 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 +000014999 compiler_needs_object=yes
15000 tmp_sharedflag='-G' ;;
15001 *Sun\ F*) # Sun Fortran 8.3
15002 tmp_sharedflag='-G' ;;
15003 esac
15004 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15005
15006 if test "x$supports_anon_versioning" = xyes; then
15007 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15008 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15009 echo "local: *; };" >> $output_objdir/$libname.ver~
15010 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15011 fi
15012
15013 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015014 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015015 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15016 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015017 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015018 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015019 if test "x$supports_anon_versioning" = xyes; then
15020 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15021 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15022 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015023 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015024 fi
15025 ;;
15026 esac
15027 else
15028 ld_shlibs=no
15029 fi
15030 ;;
15031
15032 netbsd*)
15033 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15034 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15035 wlarc=
15036 else
cristyda16f162011-02-19 23:52:17 +000015037 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15038 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 +000015039 fi
15040 ;;
15041
15042 solaris*)
15043 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15044 ld_shlibs=no
15045 cat <<_LT_EOF 1>&2
15046
15047*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15048*** create shared libraries on Solaris systems. Therefore, libtool
15049*** is disabling shared libraries support. We urge you to upgrade GNU
15050*** binutils to release 2.9.1 or newer. Another option is to modify
15051*** your PATH or compiler configuration so that the native linker is
15052*** used, and then restart.
15053
15054_LT_EOF
15055 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015056 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15057 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 +000015058 else
15059 ld_shlibs=no
15060 fi
15061 ;;
15062
15063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15064 case `$LD -v 2>&1` in
15065 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15066 ld_shlibs=no
15067 cat <<_LT_EOF 1>&2
15068
15069*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15070*** reliably create shared libraries on SCO systems. Therefore, libtool
15071*** is disabling shared libraries support. We urge you to upgrade GNU
15072*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15073*** your PATH or compiler configuration so that the native linker is
15074*** used, and then restart.
15075
15076_LT_EOF
15077 ;;
15078 *)
15079 # For security reasons, it is highly recommended that you always
15080 # use absolute paths for naming shared libraries, and exclude the
15081 # DT_RUNPATH tag from executables and libraries. But doing so
15082 # requires that you compile everything twice, which is a pain.
15083 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15086 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15087 else
15088 ld_shlibs=no
15089 fi
15090 ;;
15091 esac
15092 ;;
15093
15094 sunos4*)
15095 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15096 wlarc=
15097 hardcode_direct=yes
15098 hardcode_shlibpath_var=no
15099 ;;
15100
15101 *)
15102 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015103 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15104 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 +000015105 else
15106 ld_shlibs=no
15107 fi
15108 ;;
15109 esac
15110
15111 if test "$ld_shlibs" = no; then
15112 runpath_var=
15113 hardcode_libdir_flag_spec=
15114 export_dynamic_flag_spec=
15115 whole_archive_flag_spec=
15116 fi
15117 else
15118 # PORTME fill in a description of your system's linker (not GNU ld)
15119 case $host_os in
15120 aix3*)
15121 allow_undefined_flag=unsupported
15122 always_export_symbols=yes
15123 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'
15124 # Note: this linker hardcodes the directories in LIBPATH if there
15125 # are no directories specified by -L.
15126 hardcode_minus_L=yes
15127 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15128 # Neither direct hardcoding nor static linking is supported with a
15129 # broken collect2.
15130 hardcode_direct=unsupported
15131 fi
15132 ;;
15133
15134 aix[4-9]*)
15135 if test "$host_cpu" = ia64; then
15136 # On IA64, the linker does run time linking by default, so we don't
15137 # have to do anything special.
15138 aix_use_runtimelinking=no
15139 exp_sym_flag='-Bexport'
15140 no_entry_flag=""
15141 else
15142 # If we're using GNU nm, then we don't want the "-C" option.
15143 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015144 # Also, AIX nm treats weak defined symbols like other global
15145 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015146 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015147 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 +000015148 else
15149 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'
15150 fi
15151 aix_use_runtimelinking=no
15152
15153 # Test if we are trying to use run time linking or normal
15154 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15155 # need to do runtime linking.
15156 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15157 for ld_flag in $LDFLAGS; do
15158 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15159 aix_use_runtimelinking=yes
15160 break
15161 fi
15162 done
15163 ;;
15164 esac
15165
15166 exp_sym_flag='-bexport'
15167 no_entry_flag='-bnoentry'
15168 fi
15169
15170 # When large executables or shared objects are built, AIX ld can
15171 # have problems creating the table of contents. If linking a library
15172 # or program results in "error TOC overflow" add -mminimal-toc to
15173 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15174 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15175
15176 archive_cmds=''
15177 hardcode_direct=yes
15178 hardcode_direct_absolute=yes
15179 hardcode_libdir_separator=':'
15180 link_all_deplibs=yes
15181 file_list_spec='${wl}-f,'
15182
15183 if test "$GCC" = yes; then
15184 case $host_os in aix4.[012]|aix4.[012].*)
15185 # We only want to do this on AIX 4.2 and lower, the check
15186 # below for broken collect2 doesn't work under 4.3+
15187 collect2name=`${CC} -print-prog-name=collect2`
15188 if test -f "$collect2name" &&
15189 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15190 then
15191 # We have reworked collect2
15192 :
15193 else
15194 # We have old collect2
15195 hardcode_direct=unsupported
15196 # It fails to find uninstalled libraries when the uninstalled
15197 # path is not listed in the libpath. Setting hardcode_minus_L
15198 # to unsupported forces relinking
15199 hardcode_minus_L=yes
15200 hardcode_libdir_flag_spec='-L$libdir'
15201 hardcode_libdir_separator=
15202 fi
15203 ;;
15204 esac
15205 shared_flag='-shared'
15206 if test "$aix_use_runtimelinking" = yes; then
15207 shared_flag="$shared_flag "'${wl}-G'
15208 fi
15209 else
15210 # not using gcc
15211 if test "$host_cpu" = ia64; then
15212 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15213 # chokes on -Wl,-G. The following line is correct:
15214 shared_flag='-G'
15215 else
15216 if test "$aix_use_runtimelinking" = yes; then
15217 shared_flag='${wl}-G'
15218 else
15219 shared_flag='${wl}-bM:SRE'
15220 fi
15221 fi
15222 fi
15223
15224 export_dynamic_flag_spec='${wl}-bexpall'
15225 # It seems that -bexpall does not export symbols beginning with
15226 # underscore (_), so it is better to generate a list of symbols to export.
15227 always_export_symbols=yes
15228 if test "$aix_use_runtimelinking" = yes; then
15229 # Warning - without using the other runtime loading flags (-brtl),
15230 # -berok will link without error, but may produce a broken library.
15231 allow_undefined_flag='-berok'
15232 # Determine the default libpath from the value encoded in an
15233 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015234 if test "${lt_cv_aix_libpath+set}" = set; then
15235 aix_libpath=$lt_cv_aix_libpath
15236else
15237 if ${lt_cv_aix_libpath_+:} false; then :
15238 $as_echo_n "(cached) " >&6
15239else
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015241/* end confdefs.h. */
15242
15243int
15244main ()
15245{
15246
15247 ;
15248 return 0;
15249}
15250_ACEOF
15251if ac_fn_c_try_link "$LINENO"; then :
15252
cristyda16f162011-02-19 23:52:17 +000015253 lt_aix_libpath_sed='
15254 /Import File Strings/,/^$/ {
15255 /^0/ {
15256 s/^0 *\([^ ]*\) *$/\1/
15257 p
15258 }
15259 }'
15260 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15261 # Check for a 64-bit object if we didn't find anything.
15262 if test -z "$lt_cv_aix_libpath_"; then
15263 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15264 fi
cristy73bd4a52010-10-05 11:24:23 +000015265fi
15266rm -f core conftest.err conftest.$ac_objext \
15267 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015268 if test -z "$lt_cv_aix_libpath_"; then
15269 lt_cv_aix_libpath_="/usr/lib:/lib"
15270 fi
15271
15272fi
15273
15274 aix_libpath=$lt_cv_aix_libpath_
15275fi
cristy73bd4a52010-10-05 11:24:23 +000015276
15277 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015278 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 +000015279 else
15280 if test "$host_cpu" = ia64; then
15281 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15282 allow_undefined_flag="-z nodefs"
15283 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"
15284 else
15285 # Determine the default libpath from the value encoded in an
15286 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015287 if test "${lt_cv_aix_libpath+set}" = set; then
15288 aix_libpath=$lt_cv_aix_libpath
15289else
15290 if ${lt_cv_aix_libpath_+:} false; then :
15291 $as_echo_n "(cached) " >&6
15292else
15293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015294/* end confdefs.h. */
15295
15296int
15297main ()
15298{
15299
15300 ;
15301 return 0;
15302}
15303_ACEOF
15304if ac_fn_c_try_link "$LINENO"; then :
15305
cristyda16f162011-02-19 23:52:17 +000015306 lt_aix_libpath_sed='
15307 /Import File Strings/,/^$/ {
15308 /^0/ {
15309 s/^0 *\([^ ]*\) *$/\1/
15310 p
15311 }
15312 }'
15313 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15314 # Check for a 64-bit object if we didn't find anything.
15315 if test -z "$lt_cv_aix_libpath_"; then
15316 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15317 fi
cristy73bd4a52010-10-05 11:24:23 +000015318fi
15319rm -f core conftest.err conftest.$ac_objext \
15320 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015321 if test -z "$lt_cv_aix_libpath_"; then
15322 lt_cv_aix_libpath_="/usr/lib:/lib"
15323 fi
15324
15325fi
15326
15327 aix_libpath=$lt_cv_aix_libpath_
15328fi
cristy73bd4a52010-10-05 11:24:23 +000015329
15330 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15331 # Warning - without using the other run time loading flags,
15332 # -berok will link without error, but may produce a broken library.
15333 no_undefined_flag=' ${wl}-bernotok'
15334 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015335 if test "$with_gnu_ld" = yes; then
15336 # We only use this code for GNU lds that support --whole-archive.
15337 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15338 else
15339 # Exported symbols can be pulled into shared objects from archives
15340 whole_archive_flag_spec='$convenience'
15341 fi
cristy73bd4a52010-10-05 11:24:23 +000015342 archive_cmds_need_lc=yes
15343 # This is similar to how AIX traditionally builds its shared libraries.
15344 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'
15345 fi
15346 fi
15347 ;;
15348
15349 amigaos*)
15350 case $host_cpu in
15351 powerpc)
15352 # see comment about AmigaOS4 .so support
15353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15354 archive_expsym_cmds=''
15355 ;;
15356 m68k)
15357 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)'
15358 hardcode_libdir_flag_spec='-L$libdir'
15359 hardcode_minus_L=yes
15360 ;;
15361 esac
15362 ;;
15363
15364 bsdi[45]*)
15365 export_dynamic_flag_spec=-rdynamic
15366 ;;
15367
15368 cygwin* | mingw* | pw32* | cegcc*)
15369 # When not using gcc, we currently assume that we are using
15370 # Microsoft Visual C++.
15371 # hardcode_libdir_flag_spec is actually meaningless, as there is
15372 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015373 case $cc_basename in
15374 cl*)
15375 # Native MSVC
15376 hardcode_libdir_flag_spec=' '
15377 allow_undefined_flag=unsupported
15378 always_export_symbols=yes
15379 file_list_spec='@'
15380 # Tell ltmain to make .lib files, not .a files.
15381 libext=lib
15382 # Tell ltmain to make .dll files, not .so files.
15383 shrext_cmds=".dll"
15384 # FIXME: Setting linknames here is a bad hack.
15385 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15386 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15387 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15388 else
15389 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15390 fi~
15391 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15392 linknames='
15393 # The linker will not automatically build a static lib if we build a DLL.
15394 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15395 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015396 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015397 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15398 # Don't use ranlib
15399 old_postinstall_cmds='chmod 644 $oldlib'
15400 postlink_cmds='lt_outputfile="@OUTPUT@"~
15401 lt_tool_outputfile="@TOOL_OUTPUT@"~
15402 case $lt_outputfile in
15403 *.exe|*.EXE) ;;
15404 *)
15405 lt_outputfile="$lt_outputfile.exe"
15406 lt_tool_outputfile="$lt_tool_outputfile.exe"
15407 ;;
15408 esac~
15409 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15410 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15411 $RM "$lt_outputfile.manifest";
15412 fi'
15413 ;;
15414 *)
15415 # Assume MSVC wrapper
15416 hardcode_libdir_flag_spec=' '
15417 allow_undefined_flag=unsupported
15418 # Tell ltmain to make .lib files, not .a files.
15419 libext=lib
15420 # Tell ltmain to make .dll files, not .so files.
15421 shrext_cmds=".dll"
15422 # FIXME: Setting linknames here is a bad hack.
15423 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15424 # The linker will automatically build a .lib file if we build a DLL.
15425 old_archive_from_new_cmds='true'
15426 # FIXME: Should let the user specify the lib program.
15427 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15428 enable_shared_with_static_runtimes=yes
15429 ;;
15430 esac
cristy73bd4a52010-10-05 11:24:23 +000015431 ;;
15432
15433 darwin* | rhapsody*)
15434
15435
15436 archive_cmds_need_lc=no
15437 hardcode_direct=no
15438 hardcode_automatic=yes
15439 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015440 if test "$lt_cv_ld_force_load" = "yes"; then
15441 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 +000015442
cristy0c60a692010-11-04 01:09:47 +000015443 else
15444 whole_archive_flag_spec=''
15445 fi
cristy73bd4a52010-10-05 11:24:23 +000015446 link_all_deplibs=yes
15447 allow_undefined_flag="$_lt_dar_allow_undefined"
15448 case $cc_basename in
15449 ifort*) _lt_dar_can_shared=yes ;;
15450 *) _lt_dar_can_shared=$GCC ;;
15451 esac
15452 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015453 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015454 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15455 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15456 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}"
15457 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}"
15458
15459 else
15460 ld_shlibs=no
15461 fi
15462
15463 ;;
15464
15465 dgux*)
15466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15467 hardcode_libdir_flag_spec='-L$libdir'
15468 hardcode_shlibpath_var=no
15469 ;;
15470
cristy73bd4a52010-10-05 11:24:23 +000015471 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15472 # support. Future versions do this automatically, but an explicit c++rt0.o
15473 # does not break anything, and helps significantly (at the cost of a little
15474 # extra space).
15475 freebsd2.2*)
15476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15477 hardcode_libdir_flag_spec='-R$libdir'
15478 hardcode_direct=yes
15479 hardcode_shlibpath_var=no
15480 ;;
15481
15482 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015483 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15485 hardcode_direct=yes
15486 hardcode_minus_L=yes
15487 hardcode_shlibpath_var=no
15488 ;;
15489
15490 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15491 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015492 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015493 hardcode_libdir_flag_spec='-R$libdir'
15494 hardcode_direct=yes
15495 hardcode_shlibpath_var=no
15496 ;;
15497
15498 hpux9*)
15499 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015500 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 +000015501 else
15502 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'
15503 fi
15504 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15505 hardcode_libdir_separator=:
15506 hardcode_direct=yes
15507
15508 # hardcode_minus_L: Not really in the search PATH,
15509 # but as the default location of the library.
15510 hardcode_minus_L=yes
15511 export_dynamic_flag_spec='${wl}-E'
15512 ;;
15513
15514 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015515 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015516 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 +000015517 else
15518 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15519 fi
15520 if test "$with_gnu_ld" = no; then
15521 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015522 hardcode_libdir_separator=:
15523 hardcode_direct=yes
15524 hardcode_direct_absolute=yes
15525 export_dynamic_flag_spec='${wl}-E'
15526 # hardcode_minus_L: Not really in the search PATH,
15527 # but as the default location of the library.
15528 hardcode_minus_L=yes
15529 fi
15530 ;;
15531
15532 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015533 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015534 case $host_cpu in
15535 hppa*64*)
15536 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15537 ;;
15538 ia64*)
cristyda16f162011-02-19 23:52:17 +000015539 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015540 ;;
15541 *)
cristyda16f162011-02-19 23:52:17 +000015542 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 +000015543 ;;
15544 esac
15545 else
15546 case $host_cpu in
15547 hppa*64*)
15548 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15549 ;;
15550 ia64*)
15551 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15552 ;;
15553 *)
cristy0c60a692010-11-04 01:09:47 +000015554
15555 # Older versions of the 11.00 compiler do not understand -b yet
15556 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15558$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015559if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015560 $as_echo_n "(cached) " >&6
15561else
15562 lt_cv_prog_compiler__b=no
15563 save_LDFLAGS="$LDFLAGS"
15564 LDFLAGS="$LDFLAGS -b"
15565 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15566 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15567 # The linker can only warn and ignore the option if not recognized
15568 # So say no if there are warnings
15569 if test -s conftest.err; then
15570 # Append any errors to the config.log.
15571 cat conftest.err 1>&5
15572 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15574 if diff conftest.exp conftest.er2 >/dev/null; then
15575 lt_cv_prog_compiler__b=yes
15576 fi
15577 else
15578 lt_cv_prog_compiler__b=yes
15579 fi
15580 fi
15581 $RM -r conftest*
15582 LDFLAGS="$save_LDFLAGS"
15583
15584fi
15585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15586$as_echo "$lt_cv_prog_compiler__b" >&6; }
15587
15588if test x"$lt_cv_prog_compiler__b" = xyes; then
15589 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15590else
15591 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15592fi
15593
cristy73bd4a52010-10-05 11:24:23 +000015594 ;;
15595 esac
15596 fi
15597 if test "$with_gnu_ld" = no; then
15598 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15599 hardcode_libdir_separator=:
15600
15601 case $host_cpu in
15602 hppa*64*|ia64*)
15603 hardcode_direct=no
15604 hardcode_shlibpath_var=no
15605 ;;
15606 *)
15607 hardcode_direct=yes
15608 hardcode_direct_absolute=yes
15609 export_dynamic_flag_spec='${wl}-E'
15610
15611 # hardcode_minus_L: Not really in the search PATH,
15612 # but as the default location of the library.
15613 hardcode_minus_L=yes
15614 ;;
15615 esac
15616 fi
15617 ;;
15618
15619 irix5* | irix6* | nonstopux*)
15620 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015621 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 +000015622 # Try to use the -exported_symbol ld option, if it does not
15623 # work, assume that -exports_file does not work either and
15624 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015625 # This should be the same for all languages, so no per-tag cache variable.
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15627$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15628if ${lt_cv_irix_exported_symbol+:} false; then :
15629 $as_echo_n "(cached) " >&6
15630else
15631 save_LDFLAGS="$LDFLAGS"
15632 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015634/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015635int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015636_ACEOF
15637if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015638 lt_cv_irix_exported_symbol=yes
15639else
15640 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015641fi
15642rm -f core conftest.err conftest.$ac_objext \
15643 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015644 LDFLAGS="$save_LDFLAGS"
15645fi
15646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15647$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15648 if test "$lt_cv_irix_exported_symbol" = yes; then
15649 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'
15650 fi
cristy73bd4a52010-10-05 11:24:23 +000015651 else
cristy0c60a692010-11-04 01:09:47 +000015652 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'
15653 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 +000015654 fi
15655 archive_cmds_need_lc='no'
15656 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15657 hardcode_libdir_separator=:
15658 inherit_rpath=yes
15659 link_all_deplibs=yes
15660 ;;
15661
15662 netbsd*)
15663 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15665 else
15666 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15667 fi
15668 hardcode_libdir_flag_spec='-R$libdir'
15669 hardcode_direct=yes
15670 hardcode_shlibpath_var=no
15671 ;;
15672
15673 newsos6)
15674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15675 hardcode_direct=yes
15676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15677 hardcode_libdir_separator=:
15678 hardcode_shlibpath_var=no
15679 ;;
15680
15681 *nto* | *qnx*)
15682 ;;
15683
15684 openbsd*)
15685 if test -f /usr/libexec/ld.so; then
15686 hardcode_direct=yes
15687 hardcode_shlibpath_var=no
15688 hardcode_direct_absolute=yes
15689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15690 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15691 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15692 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15693 export_dynamic_flag_spec='${wl}-E'
15694 else
15695 case $host_os in
15696 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15697 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15698 hardcode_libdir_flag_spec='-R$libdir'
15699 ;;
15700 *)
15701 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15702 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15703 ;;
15704 esac
15705 fi
15706 else
15707 ld_shlibs=no
15708 fi
15709 ;;
15710
15711 os2*)
15712 hardcode_libdir_flag_spec='-L$libdir'
15713 hardcode_minus_L=yes
15714 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015715 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 +000015716 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15717 ;;
15718
15719 osf3*)
15720 if test "$GCC" = yes; then
15721 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015722 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 +000015723 else
15724 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015725 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 +000015726 fi
15727 archive_cmds_need_lc='no'
15728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15729 hardcode_libdir_separator=:
15730 ;;
15731
15732 osf4* | osf5*) # as osf3* with the addition of -msym flag
15733 if test "$GCC" = yes; then
15734 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015735 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 +000015736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15737 else
15738 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015739 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 +000015740 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 +000015741 $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 +000015742
15743 # Both c and cxx compiler support -rpath directly
15744 hardcode_libdir_flag_spec='-rpath $libdir'
15745 fi
15746 archive_cmds_need_lc='no'
15747 hardcode_libdir_separator=:
15748 ;;
15749
15750 solaris*)
15751 no_undefined_flag=' -z defs'
15752 if test "$GCC" = yes; then
15753 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015754 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 +000015755 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 +000015756 $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 +000015757 else
15758 case `$CC -V 2>&1` in
15759 *"Compilers 5.0"*)
15760 wlarc=''
15761 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15762 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15763 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15764 ;;
15765 *)
15766 wlarc='${wl}'
15767 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15768 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15769 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15770 ;;
15771 esac
15772 fi
15773 hardcode_libdir_flag_spec='-R$libdir'
15774 hardcode_shlibpath_var=no
15775 case $host_os in
15776 solaris2.[0-5] | solaris2.[0-5].*) ;;
15777 *)
15778 # The compiler driver will combine and reorder linker options,
15779 # but understands `-z linker_flag'. GCC discards it without `$wl',
15780 # but is careful enough not to reorder.
15781 # Supported since Solaris 2.6 (maybe 2.5.1?)
15782 if test "$GCC" = yes; then
15783 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15784 else
15785 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15786 fi
15787 ;;
15788 esac
15789 link_all_deplibs=yes
15790 ;;
15791
15792 sunos4*)
15793 if test "x$host_vendor" = xsequent; then
15794 # Use $CC to link under sequent, because it throws in some extra .o
15795 # files that make .init and .fini sections work.
15796 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15797 else
15798 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15799 fi
15800 hardcode_libdir_flag_spec='-L$libdir'
15801 hardcode_direct=yes
15802 hardcode_minus_L=yes
15803 hardcode_shlibpath_var=no
15804 ;;
15805
15806 sysv4)
15807 case $host_vendor in
15808 sni)
15809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15810 hardcode_direct=yes # is this really true???
15811 ;;
15812 siemens)
15813 ## LD is ld it makes a PLAMLIB
15814 ## CC just makes a GrossModule.
15815 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15816 reload_cmds='$CC -r -o $output$reload_objs'
15817 hardcode_direct=no
15818 ;;
15819 motorola)
15820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15821 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15822 ;;
15823 esac
15824 runpath_var='LD_RUN_PATH'
15825 hardcode_shlibpath_var=no
15826 ;;
15827
15828 sysv4.3*)
15829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15830 hardcode_shlibpath_var=no
15831 export_dynamic_flag_spec='-Bexport'
15832 ;;
15833
15834 sysv4*MP*)
15835 if test -d /usr/nec; then
15836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15837 hardcode_shlibpath_var=no
15838 runpath_var=LD_RUN_PATH
15839 hardcode_runpath_var=yes
15840 ld_shlibs=yes
15841 fi
15842 ;;
15843
15844 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15845 no_undefined_flag='${wl}-z,text'
15846 archive_cmds_need_lc=no
15847 hardcode_shlibpath_var=no
15848 runpath_var='LD_RUN_PATH'
15849
15850 if test "$GCC" = yes; then
15851 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15852 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15853 else
15854 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15855 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15856 fi
15857 ;;
15858
15859 sysv5* | sco3.2v5* | sco5v6*)
15860 # Note: We can NOT use -z defs as we might desire, because we do not
15861 # link with -lc, and that would cause any symbols used from libc to
15862 # always be unresolved, which means just about no library would
15863 # ever link correctly. If we're not using GNU ld we use -z text
15864 # though, which does catch some bad symbols but isn't as heavy-handed
15865 # as -z defs.
15866 no_undefined_flag='${wl}-z,text'
15867 allow_undefined_flag='${wl}-z,nodefs'
15868 archive_cmds_need_lc=no
15869 hardcode_shlibpath_var=no
15870 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15871 hardcode_libdir_separator=':'
15872 link_all_deplibs=yes
15873 export_dynamic_flag_spec='${wl}-Bexport'
15874 runpath_var='LD_RUN_PATH'
15875
15876 if test "$GCC" = yes; then
15877 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15878 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15879 else
15880 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15881 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15882 fi
15883 ;;
15884
15885 uts4*)
15886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15887 hardcode_libdir_flag_spec='-L$libdir'
15888 hardcode_shlibpath_var=no
15889 ;;
15890
15891 *)
15892 ld_shlibs=no
15893 ;;
15894 esac
15895
15896 if test x$host_vendor = xsni; then
15897 case $host in
15898 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15899 export_dynamic_flag_spec='${wl}-Blargedynsym'
15900 ;;
15901 esac
15902 fi
15903 fi
15904
15905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15906$as_echo "$ld_shlibs" >&6; }
15907test "$ld_shlibs" = no && can_build_shared=no
15908
15909with_gnu_ld=$with_gnu_ld
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925#
15926# Do we need to explicitly link libc?
15927#
15928case "x$archive_cmds_need_lc" in
15929x|xyes)
15930 # Assume -lc should be added
15931 archive_cmds_need_lc=yes
15932
15933 if test "$enable_shared" = yes && test "$GCC" = yes; then
15934 case $archive_cmds in
15935 *'~'*)
15936 # FIXME: we may have to deal with multi-command sequences.
15937 ;;
15938 '$CC '*)
15939 # Test whether the compiler implicitly links with -lc since on some
15940 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15941 # to ld, don't add -lc before -lgcc.
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15943$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015944if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015945 $as_echo_n "(cached) " >&6
15946else
15947 $RM conftest*
15948 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015949
cristy0c60a692010-11-04 01:09:47 +000015950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015951 (eval $ac_compile) 2>&5
15952 ac_status=$?
15953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15954 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015955 soname=conftest
15956 lib=conftest
15957 libobjs=conftest.$ac_objext
15958 deplibs=
15959 wl=$lt_prog_compiler_wl
15960 pic_flag=$lt_prog_compiler_pic
15961 compiler_flags=-v
15962 linker_flags=-v
15963 verstring=
15964 output_objdir=.
15965 libname=conftest
15966 lt_save_allow_undefined_flag=$allow_undefined_flag
15967 allow_undefined_flag=
15968 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 +000015969 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15970 ac_status=$?
15971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15972 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015973 then
15974 lt_cv_archive_cmds_need_lc=no
15975 else
15976 lt_cv_archive_cmds_need_lc=yes
15977 fi
15978 allow_undefined_flag=$lt_save_allow_undefined_flag
15979 else
15980 cat conftest.err 1>&5
15981 fi
15982 $RM conftest*
15983
15984fi
15985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15986$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15987 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015988 ;;
15989 esac
15990 fi
15991 ;;
15992esac
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
cristy73bd4a52010-10-05 11:24:23 +000016145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16146$as_echo_n "checking dynamic linker characteristics... " >&6; }
16147
16148if test "$GCC" = yes; then
16149 case $host_os in
16150 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16151 *) lt_awk_arg="/^libraries:/" ;;
16152 esac
cristy0c60a692010-11-04 01:09:47 +000016153 case $host_os in
16154 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16155 *) lt_sed_strip_eq="s,=/,/,g" ;;
16156 esac
16157 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16158 case $lt_search_path_spec in
16159 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016160 # if the path contains ";" then we assume it to be the separator
16161 # otherwise default to the standard path separator (i.e. ":") - it is
16162 # assumed that no part of a normal pathname contains ";" but that should
16163 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016164 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16165 ;;
16166 *)
16167 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16168 ;;
16169 esac
cristy73bd4a52010-10-05 11:24:23 +000016170 # Ok, now we have the path, separated by spaces, we can step through it
16171 # and add multilib dir if necessary.
16172 lt_tmp_lt_search_path_spec=
16173 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16174 for lt_sys_path in $lt_search_path_spec; do
16175 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16176 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16177 else
16178 test -d "$lt_sys_path" && \
16179 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16180 fi
16181 done
cristy0c60a692010-11-04 01:09:47 +000016182 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016183BEGIN {RS=" "; FS="/|\n";} {
16184 lt_foo="";
16185 lt_count=0;
16186 for (lt_i = NF; lt_i > 0; lt_i--) {
16187 if ($lt_i != "" && $lt_i != ".") {
16188 if ($lt_i == "..") {
16189 lt_count++;
16190 } else {
16191 if (lt_count == 0) {
16192 lt_foo="/" $lt_i lt_foo;
16193 } else {
16194 lt_count--;
16195 }
16196 }
16197 }
16198 }
16199 if (lt_foo != "") { lt_freq[lt_foo]++; }
16200 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16201}'`
cristy0c60a692010-11-04 01:09:47 +000016202 # AWK program above erroneously prepends '/' to C:/dos/paths
16203 # for these hosts.
16204 case $host_os in
16205 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16206 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16207 esac
16208 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016209else
16210 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16211fi
16212library_names_spec=
16213libname_spec='lib$name'
16214soname_spec=
16215shrext_cmds=".so"
16216postinstall_cmds=
16217postuninstall_cmds=
16218finish_cmds=
16219finish_eval=
16220shlibpath_var=
16221shlibpath_overrides_runpath=unknown
16222version_type=none
16223dynamic_linker="$host_os ld.so"
16224sys_lib_dlsearch_path_spec="/lib /usr/lib"
16225need_lib_prefix=unknown
16226hardcode_into_libs=no
16227
16228# when you set need_version to no, make sure it does not cause -set_version
16229# flags to be left without arguments
16230need_version=unknown
16231
16232case $host_os in
16233aix3*)
cristy99bd5232011-12-07 14:38:20 +000016234 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16236 shlibpath_var=LIBPATH
16237
16238 # AIX 3 has no versioning support, so we append a major version to the name.
16239 soname_spec='${libname}${release}${shared_ext}$major'
16240 ;;
16241
16242aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016243 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016244 need_lib_prefix=no
16245 need_version=no
16246 hardcode_into_libs=yes
16247 if test "$host_cpu" = ia64; then
16248 # AIX 5 supports IA64
16249 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16250 shlibpath_var=LD_LIBRARY_PATH
16251 else
16252 # With GCC up to 2.95.x, collect2 would create an import file
16253 # for dependence libraries. The import file would start with
16254 # the line `#! .'. This would cause the generated library to
16255 # depend on `.', always an invalid library. This was fixed in
16256 # development snapshots of GCC prior to 3.0.
16257 case $host_os in
16258 aix4 | aix4.[01] | aix4.[01].*)
16259 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16260 echo ' yes '
16261 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16262 :
16263 else
16264 can_build_shared=no
16265 fi
16266 ;;
16267 esac
16268 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16269 # soname into executable. Probably we can add versioning support to
16270 # collect2, so additional links can be useful in future.
16271 if test "$aix_use_runtimelinking" = yes; then
16272 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16273 # instead of lib<name>.a to let people know that these are not
16274 # typical AIX shared libraries.
16275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16276 else
16277 # We preserve .a as extension for shared libraries through AIX4.2
16278 # and later when we are not doing run time linking.
16279 library_names_spec='${libname}${release}.a $libname.a'
16280 soname_spec='${libname}${release}${shared_ext}$major'
16281 fi
16282 shlibpath_var=LIBPATH
16283 fi
16284 ;;
16285
16286amigaos*)
16287 case $host_cpu in
16288 powerpc)
16289 # Since July 2007 AmigaOS4 officially supports .so libraries.
16290 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16292 ;;
16293 m68k)
16294 library_names_spec='$libname.ixlibrary $libname.a'
16295 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016296 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 +000016297 ;;
16298 esac
16299 ;;
16300
16301beos*)
16302 library_names_spec='${libname}${shared_ext}'
16303 dynamic_linker="$host_os ld.so"
16304 shlibpath_var=LIBRARY_PATH
16305 ;;
16306
16307bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016308 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016309 need_version=no
16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16311 soname_spec='${libname}${release}${shared_ext}$major'
16312 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16313 shlibpath_var=LD_LIBRARY_PATH
16314 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16315 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16316 # the default ld.so.conf also contains /usr/contrib/lib and
16317 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16318 # libtool to hard-code these into programs
16319 ;;
16320
16321cygwin* | mingw* | pw32* | cegcc*)
16322 version_type=windows
16323 shrext_cmds=".dll"
16324 need_version=no
16325 need_lib_prefix=no
16326
cristyda16f162011-02-19 23:52:17 +000016327 case $GCC,$cc_basename in
16328 yes,*)
16329 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016330 library_names_spec='$libname.dll.a'
16331 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16332 postinstall_cmds='base_file=`basename \${file}`~
16333 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16334 dldir=$destdir/`dirname \$dlpath`~
16335 test -d \$dldir || mkdir -p \$dldir~
16336 $install_prog $dir/$dlname \$dldir/$dlname~
16337 chmod a+x \$dldir/$dlname~
16338 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16339 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16340 fi'
16341 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16342 dlpath=$dir/\$dldll~
16343 $RM \$dlpath'
16344 shlibpath_overrides_runpath=yes
16345
16346 case $host_os in
16347 cygwin*)
16348 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16349 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016350
16351 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016352 ;;
16353 mingw* | cegcc*)
16354 # MinGW DLLs use traditional 'lib' prefix
16355 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016356 ;;
16357 pw32*)
16358 # pw32 DLLs use 'pw' prefix rather than 'lib'
16359 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16360 ;;
16361 esac
cristyda16f162011-02-19 23:52:17 +000016362 dynamic_linker='Win32 ld.exe'
16363 ;;
16364
16365 *,cl*)
16366 # Native MSVC
16367 libname_spec='$name'
16368 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16369 library_names_spec='${libname}.dll.lib'
16370
16371 case $build_os in
16372 mingw*)
16373 sys_lib_search_path_spec=
16374 lt_save_ifs=$IFS
16375 IFS=';'
16376 for lt_path in $LIB
16377 do
16378 IFS=$lt_save_ifs
16379 # Let DOS variable expansion print the short 8.3 style file name.
16380 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16381 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16382 done
16383 IFS=$lt_save_ifs
16384 # Convert to MSYS style.
16385 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16386 ;;
16387 cygwin*)
16388 # Convert to unix form, then to dos form, then back to unix form
16389 # but this time dos style (no spaces!) so that the unix form looks
16390 # like /cygdrive/c/PROGRA~1:/cygdr...
16391 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16392 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16393 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16394 ;;
16395 *)
16396 sys_lib_search_path_spec="$LIB"
16397 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16398 # It is most probably a Windows format PATH.
16399 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16400 else
16401 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16402 fi
16403 # FIXME: find the short name or the path components, as spaces are
16404 # common. (e.g. "Program Files" -> "PROGRA~1")
16405 ;;
16406 esac
16407
16408 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16409 postinstall_cmds='base_file=`basename \${file}`~
16410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16411 dldir=$destdir/`dirname \$dlpath`~
16412 test -d \$dldir || mkdir -p \$dldir~
16413 $install_prog $dir/$dlname \$dldir/$dlname'
16414 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16415 dlpath=$dir/\$dldll~
16416 $RM \$dlpath'
16417 shlibpath_overrides_runpath=yes
16418 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016419 ;;
16420
16421 *)
cristyda16f162011-02-19 23:52:17 +000016422 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016423 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016424 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016425 ;;
16426 esac
cristy73bd4a52010-10-05 11:24:23 +000016427 # FIXME: first we should search . and the directory the executable is in
16428 shlibpath_var=PATH
16429 ;;
16430
16431darwin* | rhapsody*)
16432 dynamic_linker="$host_os dyld"
16433 version_type=darwin
16434 need_lib_prefix=no
16435 need_version=no
16436 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16437 soname_spec='${libname}${release}${major}$shared_ext'
16438 shlibpath_overrides_runpath=yes
16439 shlibpath_var=DYLD_LIBRARY_PATH
16440 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16441
16442 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16443 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16444 ;;
16445
16446dgux*)
cristy99bd5232011-12-07 14:38:20 +000016447 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016448 need_lib_prefix=no
16449 need_version=no
16450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16451 soname_spec='${libname}${release}${shared_ext}$major'
16452 shlibpath_var=LD_LIBRARY_PATH
16453 ;;
16454
cristy73bd4a52010-10-05 11:24:23 +000016455freebsd* | dragonfly*)
16456 # DragonFly does not have aout. When/if they implement a new
16457 # versioning mechanism, adjust this.
16458 if test -x /usr/bin/objformat; then
16459 objformat=`/usr/bin/objformat`
16460 else
16461 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016462 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016463 *) objformat=elf ;;
16464 esac
16465 fi
16466 version_type=freebsd-$objformat
16467 case $version_type in
16468 freebsd-elf*)
16469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16470 need_version=no
16471 need_lib_prefix=no
16472 ;;
16473 freebsd-*)
16474 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16475 need_version=yes
16476 ;;
16477 esac
16478 shlibpath_var=LD_LIBRARY_PATH
16479 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016480 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016481 shlibpath_overrides_runpath=yes
16482 ;;
16483 freebsd3.[01]* | freebsdelf3.[01]*)
16484 shlibpath_overrides_runpath=yes
16485 hardcode_into_libs=yes
16486 ;;
16487 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16488 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16489 shlibpath_overrides_runpath=no
16490 hardcode_into_libs=yes
16491 ;;
16492 *) # from 4.6 on, and DragonFly
16493 shlibpath_overrides_runpath=yes
16494 hardcode_into_libs=yes
16495 ;;
16496 esac
16497 ;;
16498
16499gnu*)
cristy99bd5232011-12-07 14:38:20 +000016500 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016501 need_lib_prefix=no
16502 need_version=no
16503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16504 soname_spec='${libname}${release}${shared_ext}$major'
16505 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016506 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016507 hardcode_into_libs=yes
16508 ;;
16509
cristy0c60a692010-11-04 01:09:47 +000016510haiku*)
cristy99bd5232011-12-07 14:38:20 +000016511 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016512 need_lib_prefix=no
16513 need_version=no
16514 dynamic_linker="$host_os runtime_loader"
16515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16516 soname_spec='${libname}${release}${shared_ext}$major'
16517 shlibpath_var=LIBRARY_PATH
16518 shlibpath_overrides_runpath=yes
16519 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16520 hardcode_into_libs=yes
16521 ;;
16522
cristy73bd4a52010-10-05 11:24:23 +000016523hpux9* | hpux10* | hpux11*)
16524 # Give a soname corresponding to the major version so that dld.sl refuses to
16525 # link against other versions.
16526 version_type=sunos
16527 need_lib_prefix=no
16528 need_version=no
16529 case $host_cpu in
16530 ia64*)
16531 shrext_cmds='.so'
16532 hardcode_into_libs=yes
16533 dynamic_linker="$host_os dld.so"
16534 shlibpath_var=LD_LIBRARY_PATH
16535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16537 soname_spec='${libname}${release}${shared_ext}$major'
16538 if test "X$HPUX_IA64_MODE" = X32; then
16539 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16540 else
16541 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16542 fi
16543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16544 ;;
16545 hppa*64*)
16546 shrext_cmds='.sl'
16547 hardcode_into_libs=yes
16548 dynamic_linker="$host_os dld.sl"
16549 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16552 soname_spec='${libname}${release}${shared_ext}$major'
16553 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16555 ;;
16556 *)
16557 shrext_cmds='.sl'
16558 dynamic_linker="$host_os dld.sl"
16559 shlibpath_var=SHLIB_PATH
16560 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16562 soname_spec='${libname}${release}${shared_ext}$major'
16563 ;;
16564 esac
cristy0c60a692010-11-04 01:09:47 +000016565 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016566 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016567 # or fails outright, so override atomically:
16568 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016569 ;;
16570
16571interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016572 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016573 need_lib_prefix=no
16574 need_version=no
16575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16576 soname_spec='${libname}${release}${shared_ext}$major'
16577 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16578 shlibpath_var=LD_LIBRARY_PATH
16579 shlibpath_overrides_runpath=no
16580 hardcode_into_libs=yes
16581 ;;
16582
16583irix5* | irix6* | nonstopux*)
16584 case $host_os in
16585 nonstopux*) version_type=nonstopux ;;
16586 *)
16587 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016588 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016589 else
16590 version_type=irix
16591 fi ;;
16592 esac
16593 need_lib_prefix=no
16594 need_version=no
16595 soname_spec='${libname}${release}${shared_ext}$major'
16596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16597 case $host_os in
16598 irix5* | nonstopux*)
16599 libsuff= shlibsuff=
16600 ;;
16601 *)
16602 case $LD in # libtool.m4 will add one of these switches to LD
16603 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16604 libsuff= shlibsuff= libmagic=32-bit;;
16605 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16606 libsuff=32 shlibsuff=N32 libmagic=N32;;
16607 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16608 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16609 *) libsuff= shlibsuff= libmagic=never-match;;
16610 esac
16611 ;;
16612 esac
16613 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16614 shlibpath_overrides_runpath=no
16615 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16616 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16617 hardcode_into_libs=yes
16618 ;;
16619
16620# No shared lib support for Linux oldld, aout, or coff.
16621linux*oldld* | linux*aout* | linux*coff*)
16622 dynamic_linker=no
16623 ;;
16624
cristy99bd5232011-12-07 14:38:20 +000016625# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016626linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016627 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016628 need_lib_prefix=no
16629 need_version=no
16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16631 soname_spec='${libname}${release}${shared_ext}$major'
16632 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16633 shlibpath_var=LD_LIBRARY_PATH
16634 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016635
cristy73bd4a52010-10-05 11:24:23 +000016636 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016637 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016638 $as_echo_n "(cached) " >&6
16639else
16640 lt_cv_shlibpath_overrides_runpath=no
16641 save_LDFLAGS=$LDFLAGS
16642 save_libdir=$libdir
16643 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16644 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016646/* end confdefs.h. */
16647
16648int
16649main ()
16650{
16651
16652 ;
16653 return 0;
16654}
16655_ACEOF
16656if ac_fn_c_try_link "$LINENO"; then :
16657 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016658 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016659fi
16660fi
16661rm -f core conftest.err conftest.$ac_objext \
16662 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016663 LDFLAGS=$save_LDFLAGS
16664 libdir=$save_libdir
16665
16666fi
16667
16668 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016669
16670 # This implies no fast_install, which is unacceptable.
16671 # Some rework will be needed to allow for fast_install
16672 # before this can be enabled.
16673 hardcode_into_libs=yes
16674
16675 # Add ABI-specific directories to the system library path.
16676 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16677
16678 # Append ld.so.conf contents to the search path
16679 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016680 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 +000016681 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016682
cristy73bd4a52010-10-05 11:24:23 +000016683 fi
16684
16685 # We used to test for /lib/ld.so.1 and disable shared libraries on
16686 # powerpc, because MkLinux only supported shared libraries with the
16687 # GNU dynamic linker. Since this was broken with cross compilers,
16688 # most powerpc-linux boxes support dynamic linking these days and
16689 # people can always --disable-shared, the test was removed, and we
16690 # assume the GNU/Linux dynamic linker is in use.
16691 dynamic_linker='GNU/Linux ld.so'
16692 ;;
16693
16694netbsd*)
16695 version_type=sunos
16696 need_lib_prefix=no
16697 need_version=no
16698 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16701 dynamic_linker='NetBSD (a.out) ld.so'
16702 else
16703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16704 soname_spec='${libname}${release}${shared_ext}$major'
16705 dynamic_linker='NetBSD ld.elf_so'
16706 fi
16707 shlibpath_var=LD_LIBRARY_PATH
16708 shlibpath_overrides_runpath=yes
16709 hardcode_into_libs=yes
16710 ;;
16711
16712newsos6)
cristy99bd5232011-12-07 14:38:20 +000016713 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16715 shlibpath_var=LD_LIBRARY_PATH
16716 shlibpath_overrides_runpath=yes
16717 ;;
16718
16719*nto* | *qnx*)
16720 version_type=qnx
16721 need_lib_prefix=no
16722 need_version=no
16723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16724 soname_spec='${libname}${release}${shared_ext}$major'
16725 shlibpath_var=LD_LIBRARY_PATH
16726 shlibpath_overrides_runpath=no
16727 hardcode_into_libs=yes
16728 dynamic_linker='ldqnx.so'
16729 ;;
16730
16731openbsd*)
16732 version_type=sunos
16733 sys_lib_dlsearch_path_spec="/usr/lib"
16734 need_lib_prefix=no
16735 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16736 case $host_os in
16737 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16738 *) need_version=no ;;
16739 esac
16740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16742 shlibpath_var=LD_LIBRARY_PATH
16743 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16744 case $host_os in
16745 openbsd2.[89] | openbsd2.[89].*)
16746 shlibpath_overrides_runpath=no
16747 ;;
16748 *)
16749 shlibpath_overrides_runpath=yes
16750 ;;
16751 esac
16752 else
16753 shlibpath_overrides_runpath=yes
16754 fi
16755 ;;
16756
16757os2*)
16758 libname_spec='$name'
16759 shrext_cmds=".dll"
16760 need_lib_prefix=no
16761 library_names_spec='$libname${shared_ext} $libname.a'
16762 dynamic_linker='OS/2 ld.exe'
16763 shlibpath_var=LIBPATH
16764 ;;
16765
16766osf3* | osf4* | osf5*)
16767 version_type=osf
16768 need_lib_prefix=no
16769 need_version=no
16770 soname_spec='${libname}${release}${shared_ext}$major'
16771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772 shlibpath_var=LD_LIBRARY_PATH
16773 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16774 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16775 ;;
16776
16777rdos*)
16778 dynamic_linker=no
16779 ;;
16780
16781solaris*)
cristy99bd5232011-12-07 14:38:20 +000016782 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016783 need_lib_prefix=no
16784 need_version=no
16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16786 soname_spec='${libname}${release}${shared_ext}$major'
16787 shlibpath_var=LD_LIBRARY_PATH
16788 shlibpath_overrides_runpath=yes
16789 hardcode_into_libs=yes
16790 # ldd complains unless libraries are executable
16791 postinstall_cmds='chmod +x $lib'
16792 ;;
16793
16794sunos4*)
16795 version_type=sunos
16796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16797 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16798 shlibpath_var=LD_LIBRARY_PATH
16799 shlibpath_overrides_runpath=yes
16800 if test "$with_gnu_ld" = yes; then
16801 need_lib_prefix=no
16802 fi
16803 need_version=yes
16804 ;;
16805
16806sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016807 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16809 soname_spec='${libname}${release}${shared_ext}$major'
16810 shlibpath_var=LD_LIBRARY_PATH
16811 case $host_vendor in
16812 sni)
16813 shlibpath_overrides_runpath=no
16814 need_lib_prefix=no
16815 runpath_var=LD_RUN_PATH
16816 ;;
16817 siemens)
16818 need_lib_prefix=no
16819 ;;
16820 motorola)
16821 need_lib_prefix=no
16822 need_version=no
16823 shlibpath_overrides_runpath=no
16824 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16825 ;;
16826 esac
16827 ;;
16828
16829sysv4*MP*)
16830 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016831 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016832 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16833 soname_spec='$libname${shared_ext}.$major'
16834 shlibpath_var=LD_LIBRARY_PATH
16835 fi
16836 ;;
16837
16838sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16839 version_type=freebsd-elf
16840 need_lib_prefix=no
16841 need_version=no
16842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16843 soname_spec='${libname}${release}${shared_ext}$major'
16844 shlibpath_var=LD_LIBRARY_PATH
16845 shlibpath_overrides_runpath=yes
16846 hardcode_into_libs=yes
16847 if test "$with_gnu_ld" = yes; then
16848 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16849 else
16850 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16851 case $host_os in
16852 sco3.2v5*)
16853 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16854 ;;
16855 esac
16856 fi
16857 sys_lib_dlsearch_path_spec='/usr/lib'
16858 ;;
16859
16860tpf*)
16861 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016862 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016863 need_lib_prefix=no
16864 need_version=no
16865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16866 shlibpath_var=LD_LIBRARY_PATH
16867 shlibpath_overrides_runpath=no
16868 hardcode_into_libs=yes
16869 ;;
16870
16871uts4*)
cristy99bd5232011-12-07 14:38:20 +000016872 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874 soname_spec='${libname}${release}${shared_ext}$major'
16875 shlibpath_var=LD_LIBRARY_PATH
16876 ;;
16877
16878*)
16879 dynamic_linker=no
16880 ;;
16881esac
16882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16883$as_echo "$dynamic_linker" >&6; }
16884test "$dynamic_linker" = no && can_build_shared=no
16885
16886variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16887if test "$GCC" = yes; then
16888 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16889fi
16890
16891if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16892 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16893fi
16894if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16895 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16896fi
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
cristy0c60a692010-11-04 01:09:47 +000016984
16985
16986
16987
16988
cristy73bd4a52010-10-05 11:24:23 +000016989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16990$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16991hardcode_action=
16992if test -n "$hardcode_libdir_flag_spec" ||
16993 test -n "$runpath_var" ||
16994 test "X$hardcode_automatic" = "Xyes" ; then
16995
16996 # We can hardcode non-existent directories.
16997 if test "$hardcode_direct" != no &&
16998 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16999 # have to relink, otherwise we might link with an installed library
17000 # when we should be linking with a yet-to-be-installed one
17001 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17002 test "$hardcode_minus_L" != no; then
17003 # Linking always hardcodes the temporary library directory.
17004 hardcode_action=relink
17005 else
17006 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17007 hardcode_action=immediate
17008 fi
17009else
17010 # We cannot hardcode anything, or else we can only hardcode existing
17011 # directories.
17012 hardcode_action=unsupported
17013fi
17014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17015$as_echo "$hardcode_action" >&6; }
17016
17017if test "$hardcode_action" = relink ||
17018 test "$inherit_rpath" = yes; then
17019 # Fast installation is not supported
17020 enable_fast_install=no
17021elif test "$shlibpath_overrides_runpath" = yes ||
17022 test "$enable_shared" = no; then
17023 # Fast installation is not necessary
17024 enable_fast_install=needless
17025fi
17026
17027
17028
17029
17030
17031
17032 if test "x$enable_dlopen" != xyes; then
17033 enable_dlopen=unknown
17034 enable_dlopen_self=unknown
17035 enable_dlopen_self_static=unknown
17036else
17037 lt_cv_dlopen=no
17038 lt_cv_dlopen_libs=
17039
17040 case $host_os in
17041 beos*)
17042 lt_cv_dlopen="load_add_on"
17043 lt_cv_dlopen_libs=
17044 lt_cv_dlopen_self=yes
17045 ;;
17046
17047 mingw* | pw32* | cegcc*)
17048 lt_cv_dlopen="LoadLibrary"
17049 lt_cv_dlopen_libs=
17050 ;;
17051
17052 cygwin*)
17053 lt_cv_dlopen="dlopen"
17054 lt_cv_dlopen_libs=
17055 ;;
17056
17057 darwin*)
17058 # if libdl is installed we need to link against it
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17060$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017061if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017062 $as_echo_n "(cached) " >&6
17063else
17064 ac_check_lib_save_LIBS=$LIBS
17065LIBS="-ldl $LIBS"
17066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17067/* end confdefs.h. */
17068
17069/* Override any GCC internal prototype to avoid an error.
17070 Use char because int might match the return type of a GCC
17071 builtin and then its argument prototype would still apply. */
17072#ifdef __cplusplus
17073extern "C"
17074#endif
17075char dlopen ();
17076int
17077main ()
17078{
17079return dlopen ();
17080 ;
17081 return 0;
17082}
17083_ACEOF
17084if ac_fn_c_try_link "$LINENO"; then :
17085 ac_cv_lib_dl_dlopen=yes
17086else
17087 ac_cv_lib_dl_dlopen=no
17088fi
17089rm -f core conftest.err conftest.$ac_objext \
17090 conftest$ac_exeext conftest.$ac_ext
17091LIBS=$ac_check_lib_save_LIBS
17092fi
17093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17094$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017095if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017096 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17097else
17098
17099 lt_cv_dlopen="dyld"
17100 lt_cv_dlopen_libs=
17101 lt_cv_dlopen_self=yes
17102
17103fi
17104
17105 ;;
17106
17107 *)
17108 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017109if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017110 lt_cv_dlopen="shl_load"
17111else
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17113$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017114if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017115 $as_echo_n "(cached) " >&6
17116else
17117 ac_check_lib_save_LIBS=$LIBS
17118LIBS="-ldld $LIBS"
17119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17120/* end confdefs.h. */
17121
17122/* Override any GCC internal prototype to avoid an error.
17123 Use char because int might match the return type of a GCC
17124 builtin and then its argument prototype would still apply. */
17125#ifdef __cplusplus
17126extern "C"
17127#endif
17128char shl_load ();
17129int
17130main ()
17131{
17132return shl_load ();
17133 ;
17134 return 0;
17135}
17136_ACEOF
17137if ac_fn_c_try_link "$LINENO"; then :
17138 ac_cv_lib_dld_shl_load=yes
17139else
17140 ac_cv_lib_dld_shl_load=no
17141fi
17142rm -f core conftest.err conftest.$ac_objext \
17143 conftest$ac_exeext conftest.$ac_ext
17144LIBS=$ac_check_lib_save_LIBS
17145fi
17146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17147$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017148if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017149 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17150else
17151 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017152if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017153 lt_cv_dlopen="dlopen"
17154else
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17156$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017157if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017158 $as_echo_n "(cached) " >&6
17159else
17160 ac_check_lib_save_LIBS=$LIBS
17161LIBS="-ldl $LIBS"
17162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17163/* end confdefs.h. */
17164
17165/* Override any GCC internal prototype to avoid an error.
17166 Use char because int might match the return type of a GCC
17167 builtin and then its argument prototype would still apply. */
17168#ifdef __cplusplus
17169extern "C"
17170#endif
17171char dlopen ();
17172int
17173main ()
17174{
17175return dlopen ();
17176 ;
17177 return 0;
17178}
17179_ACEOF
17180if ac_fn_c_try_link "$LINENO"; then :
17181 ac_cv_lib_dl_dlopen=yes
17182else
17183 ac_cv_lib_dl_dlopen=no
17184fi
17185rm -f core conftest.err conftest.$ac_objext \
17186 conftest$ac_exeext conftest.$ac_ext
17187LIBS=$ac_check_lib_save_LIBS
17188fi
17189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17190$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017191if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017192 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17193else
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17195$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017196if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017197 $as_echo_n "(cached) " >&6
17198else
17199 ac_check_lib_save_LIBS=$LIBS
17200LIBS="-lsvld $LIBS"
17201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202/* end confdefs.h. */
17203
17204/* Override any GCC internal prototype to avoid an error.
17205 Use char because int might match the return type of a GCC
17206 builtin and then its argument prototype would still apply. */
17207#ifdef __cplusplus
17208extern "C"
17209#endif
17210char dlopen ();
17211int
17212main ()
17213{
17214return dlopen ();
17215 ;
17216 return 0;
17217}
17218_ACEOF
17219if ac_fn_c_try_link "$LINENO"; then :
17220 ac_cv_lib_svld_dlopen=yes
17221else
17222 ac_cv_lib_svld_dlopen=no
17223fi
17224rm -f core conftest.err conftest.$ac_objext \
17225 conftest$ac_exeext conftest.$ac_ext
17226LIBS=$ac_check_lib_save_LIBS
17227fi
17228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17229$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017230if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017231 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17232else
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17234$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017235if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017236 $as_echo_n "(cached) " >&6
17237else
17238 ac_check_lib_save_LIBS=$LIBS
17239LIBS="-ldld $LIBS"
17240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17241/* end confdefs.h. */
17242
17243/* Override any GCC internal prototype to avoid an error.
17244 Use char because int might match the return type of a GCC
17245 builtin and then its argument prototype would still apply. */
17246#ifdef __cplusplus
17247extern "C"
17248#endif
17249char dld_link ();
17250int
17251main ()
17252{
17253return dld_link ();
17254 ;
17255 return 0;
17256}
17257_ACEOF
17258if ac_fn_c_try_link "$LINENO"; then :
17259 ac_cv_lib_dld_dld_link=yes
17260else
17261 ac_cv_lib_dld_dld_link=no
17262fi
17263rm -f core conftest.err conftest.$ac_objext \
17264 conftest$ac_exeext conftest.$ac_ext
17265LIBS=$ac_check_lib_save_LIBS
17266fi
17267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17268$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017269if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017270 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17271fi
17272
17273
17274fi
17275
17276
17277fi
17278
17279
17280fi
17281
17282
17283fi
17284
17285
17286fi
17287
17288 ;;
17289 esac
17290
17291 if test "x$lt_cv_dlopen" != xno; then
17292 enable_dlopen=yes
17293 else
17294 enable_dlopen=no
17295 fi
17296
17297 case $lt_cv_dlopen in
17298 dlopen)
17299 save_CPPFLAGS="$CPPFLAGS"
17300 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17301
17302 save_LDFLAGS="$LDFLAGS"
17303 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17304
17305 save_LIBS="$LIBS"
17306 LIBS="$lt_cv_dlopen_libs $LIBS"
17307
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17309$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017310if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017311 $as_echo_n "(cached) " >&6
17312else
17313 if test "$cross_compiling" = yes; then :
17314 lt_cv_dlopen_self=cross
17315else
17316 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17317 lt_status=$lt_dlunknown
17318 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017319#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017320#include "confdefs.h"
17321
17322#if HAVE_DLFCN_H
17323#include <dlfcn.h>
17324#endif
17325
17326#include <stdio.h>
17327
17328#ifdef RTLD_GLOBAL
17329# define LT_DLGLOBAL RTLD_GLOBAL
17330#else
17331# ifdef DL_GLOBAL
17332# define LT_DLGLOBAL DL_GLOBAL
17333# else
17334# define LT_DLGLOBAL 0
17335# endif
17336#endif
17337
17338/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17339 find out it does not work in some platform. */
17340#ifndef LT_DLLAZY_OR_NOW
17341# ifdef RTLD_LAZY
17342# define LT_DLLAZY_OR_NOW RTLD_LAZY
17343# else
17344# ifdef DL_LAZY
17345# define LT_DLLAZY_OR_NOW DL_LAZY
17346# else
17347# ifdef RTLD_NOW
17348# define LT_DLLAZY_OR_NOW RTLD_NOW
17349# else
17350# ifdef DL_NOW
17351# define LT_DLLAZY_OR_NOW DL_NOW
17352# else
17353# define LT_DLLAZY_OR_NOW 0
17354# endif
17355# endif
17356# endif
17357# endif
17358#endif
17359
cristy0c60a692010-11-04 01:09:47 +000017360/* When -fvisbility=hidden is used, assume the code has been annotated
17361 correspondingly for the symbols needed. */
17362#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017363int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017364#endif
17365
cristyda16f162011-02-19 23:52:17 +000017366int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017367int main ()
17368{
17369 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17370 int status = $lt_dlunknown;
17371
17372 if (self)
17373 {
17374 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017375 else
17376 {
17377 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17378 else puts (dlerror ());
17379 }
cristy73bd4a52010-10-05 11:24:23 +000017380 /* dlclose (self); */
17381 }
17382 else
17383 puts (dlerror ());
17384
17385 return status;
17386}
17387_LT_EOF
17388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17389 (eval $ac_link) 2>&5
17390 ac_status=$?
17391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17392 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17393 (./conftest; exit; ) >&5 2>/dev/null
17394 lt_status=$?
17395 case x$lt_status in
17396 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17397 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17398 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17399 esac
17400 else :
17401 # compilation failed
17402 lt_cv_dlopen_self=no
17403 fi
17404fi
17405rm -fr conftest*
17406
17407
17408fi
17409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17410$as_echo "$lt_cv_dlopen_self" >&6; }
17411
17412 if test "x$lt_cv_dlopen_self" = xyes; then
17413 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17415$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017416if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017417 $as_echo_n "(cached) " >&6
17418else
17419 if test "$cross_compiling" = yes; then :
17420 lt_cv_dlopen_self_static=cross
17421else
17422 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17423 lt_status=$lt_dlunknown
17424 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017425#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017426#include "confdefs.h"
17427
17428#if HAVE_DLFCN_H
17429#include <dlfcn.h>
17430#endif
17431
17432#include <stdio.h>
17433
17434#ifdef RTLD_GLOBAL
17435# define LT_DLGLOBAL RTLD_GLOBAL
17436#else
17437# ifdef DL_GLOBAL
17438# define LT_DLGLOBAL DL_GLOBAL
17439# else
17440# define LT_DLGLOBAL 0
17441# endif
17442#endif
17443
17444/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17445 find out it does not work in some platform. */
17446#ifndef LT_DLLAZY_OR_NOW
17447# ifdef RTLD_LAZY
17448# define LT_DLLAZY_OR_NOW RTLD_LAZY
17449# else
17450# ifdef DL_LAZY
17451# define LT_DLLAZY_OR_NOW DL_LAZY
17452# else
17453# ifdef RTLD_NOW
17454# define LT_DLLAZY_OR_NOW RTLD_NOW
17455# else
17456# ifdef DL_NOW
17457# define LT_DLLAZY_OR_NOW DL_NOW
17458# else
17459# define LT_DLLAZY_OR_NOW 0
17460# endif
17461# endif
17462# endif
17463# endif
17464#endif
17465
cristy0c60a692010-11-04 01:09:47 +000017466/* When -fvisbility=hidden is used, assume the code has been annotated
17467 correspondingly for the symbols needed. */
17468#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017469int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017470#endif
17471
cristyda16f162011-02-19 23:52:17 +000017472int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017473int main ()
17474{
17475 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17476 int status = $lt_dlunknown;
17477
17478 if (self)
17479 {
17480 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017481 else
17482 {
17483 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17484 else puts (dlerror ());
17485 }
cristy73bd4a52010-10-05 11:24:23 +000017486 /* dlclose (self); */
17487 }
17488 else
17489 puts (dlerror ());
17490
17491 return status;
17492}
17493_LT_EOF
17494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17495 (eval $ac_link) 2>&5
17496 ac_status=$?
17497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17498 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17499 (./conftest; exit; ) >&5 2>/dev/null
17500 lt_status=$?
17501 case x$lt_status in
17502 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17503 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17504 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17505 esac
17506 else :
17507 # compilation failed
17508 lt_cv_dlopen_self_static=no
17509 fi
17510fi
17511rm -fr conftest*
17512
17513
17514fi
17515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17516$as_echo "$lt_cv_dlopen_self_static" >&6; }
17517 fi
17518
17519 CPPFLAGS="$save_CPPFLAGS"
17520 LDFLAGS="$save_LDFLAGS"
17521 LIBS="$save_LIBS"
17522 ;;
17523 esac
17524
17525 case $lt_cv_dlopen_self in
17526 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17527 *) enable_dlopen_self=unknown ;;
17528 esac
17529
17530 case $lt_cv_dlopen_self_static in
17531 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17532 *) enable_dlopen_self_static=unknown ;;
17533 esac
17534fi
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552striplib=
17553old_striplib=
17554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17555$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17556if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17557 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17558 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17560$as_echo "yes" >&6; }
17561else
17562# FIXME - insert some real tests, host_os isn't really good enough
17563 case $host_os in
17564 darwin*)
17565 if test -n "$STRIP" ; then
17566 striplib="$STRIP -x"
17567 old_striplib="$STRIP -S"
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17569$as_echo "yes" >&6; }
17570 else
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17572$as_echo "no" >&6; }
17573 fi
17574 ;;
17575 *)
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17577$as_echo "no" >&6; }
17578 ;;
17579 esac
17580fi
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593 # Report which library types will actually be built
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17595$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17597$as_echo "$can_build_shared" >&6; }
17598
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17600$as_echo_n "checking whether to build shared libraries... " >&6; }
17601 test "$can_build_shared" = "no" && enable_shared=no
17602
17603 # On AIX, shared libraries and static libraries use the same namespace, and
17604 # are all built from PIC.
17605 case $host_os in
17606 aix3*)
17607 test "$enable_shared" = yes && enable_static=no
17608 if test -n "$RANLIB"; then
17609 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17610 postinstall_cmds='$RANLIB $lib'
17611 fi
17612 ;;
17613
17614 aix[4-9]*)
17615 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17616 test "$enable_shared" = yes && enable_static=no
17617 fi
17618 ;;
17619 esac
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17621$as_echo "$enable_shared" >&6; }
17622
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17624$as_echo_n "checking whether to build static libraries... " >&6; }
17625 # Make sure either enable_shared or enable_static is yes.
17626 test "$enable_shared" = yes || enable_static=yes
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17628$as_echo "$enable_static" >&6; }
17629
17630
17631
17632
17633fi
17634ac_ext=c
17635ac_cpp='$CPP $CPPFLAGS'
17636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17638ac_compiler_gnu=$ac_cv_c_compiler_gnu
17639
17640CC="$lt_save_CC"
17641
cristy0c60a692010-11-04 01:09:47 +000017642 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17643 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17644 (test "X$CXX" != "Xg++"))) ; then
17645 ac_ext=cpp
17646ac_cpp='$CXXCPP $CPPFLAGS'
17647ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17648ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17649ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17651$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17652if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017653 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017654 $as_echo_n "(cached) " >&6
17655else
17656 # Double quotes because CXXCPP needs to be expanded
17657 for CXXCPP in "$CXX -E" "/lib/cpp"
17658 do
17659 ac_preproc_ok=false
17660for ac_cxx_preproc_warn_flag in '' yes
17661do
17662 # Use a header file that comes with gcc, so configuring glibc
17663 # with a fresh cross-compiler works.
17664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17665 # <limits.h> exists even on freestanding compilers.
17666 # On the NeXT, cc -E runs the code through the compiler's parser,
17667 # not just through cpp. "Syntax error" is here to catch this case.
17668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17669/* end confdefs.h. */
17670#ifdef __STDC__
17671# include <limits.h>
17672#else
17673# include <assert.h>
17674#endif
17675 Syntax error
17676_ACEOF
17677if ac_fn_cxx_try_cpp "$LINENO"; then :
17678
17679else
17680 # Broken: fails on valid input.
17681continue
17682fi
cristyda16f162011-02-19 23:52:17 +000017683rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017684
17685 # OK, works on sane cases. Now check whether nonexistent headers
17686 # can be detected and how.
17687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17688/* end confdefs.h. */
17689#include <ac_nonexistent.h>
17690_ACEOF
17691if ac_fn_cxx_try_cpp "$LINENO"; then :
17692 # Broken: success on invalid input.
17693continue
17694else
17695 # Passes both tests.
17696ac_preproc_ok=:
17697break
17698fi
cristyda16f162011-02-19 23:52:17 +000017699rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017700
17701done
17702# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017703rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017704if $ac_preproc_ok; then :
17705 break
17706fi
17707
17708 done
17709 ac_cv_prog_CXXCPP=$CXXCPP
17710
17711fi
17712 CXXCPP=$ac_cv_prog_CXXCPP
17713else
17714 ac_cv_prog_CXXCPP=$CXXCPP
17715fi
17716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17717$as_echo "$CXXCPP" >&6; }
17718ac_preproc_ok=false
17719for ac_cxx_preproc_warn_flag in '' yes
17720do
17721 # Use a header file that comes with gcc, so configuring glibc
17722 # with a fresh cross-compiler works.
17723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17724 # <limits.h> exists even on freestanding compilers.
17725 # On the NeXT, cc -E runs the code through the compiler's parser,
17726 # not just through cpp. "Syntax error" is here to catch this case.
17727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17728/* end confdefs.h. */
17729#ifdef __STDC__
17730# include <limits.h>
17731#else
17732# include <assert.h>
17733#endif
17734 Syntax error
17735_ACEOF
17736if ac_fn_cxx_try_cpp "$LINENO"; then :
17737
17738else
17739 # Broken: fails on valid input.
17740continue
17741fi
cristyda16f162011-02-19 23:52:17 +000017742rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017743
17744 # OK, works on sane cases. Now check whether nonexistent headers
17745 # can be detected and how.
17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747/* end confdefs.h. */
17748#include <ac_nonexistent.h>
17749_ACEOF
17750if ac_fn_cxx_try_cpp "$LINENO"; then :
17751 # Broken: success on invalid input.
17752continue
17753else
17754 # Passes both tests.
17755ac_preproc_ok=:
17756break
17757fi
cristyda16f162011-02-19 23:52:17 +000017758rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017759
17760done
17761# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017762rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017763if $ac_preproc_ok; then :
17764
17765else
17766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17768as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17769See \`config.log' for more details" "$LINENO" 5; }
17770fi
17771
17772ac_ext=c
17773ac_cpp='$CPP $CPPFLAGS'
17774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17776ac_compiler_gnu=$ac_cv_c_compiler_gnu
17777
17778else
17779 _lt_caught_CXX_error=yes
17780fi
cristy73bd4a52010-10-05 11:24:23 +000017781
17782ac_ext=cpp
17783ac_cpp='$CXXCPP $CPPFLAGS'
17784ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17785ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17786ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17787
17788archive_cmds_need_lc_CXX=no
17789allow_undefined_flag_CXX=
17790always_export_symbols_CXX=no
17791archive_expsym_cmds_CXX=
17792compiler_needs_object_CXX=no
17793export_dynamic_flag_spec_CXX=
17794hardcode_direct_CXX=no
17795hardcode_direct_absolute_CXX=no
17796hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017797hardcode_libdir_separator_CXX=
17798hardcode_minus_L_CXX=no
17799hardcode_shlibpath_var_CXX=unsupported
17800hardcode_automatic_CXX=no
17801inherit_rpath_CXX=no
17802module_cmds_CXX=
17803module_expsym_cmds_CXX=
17804link_all_deplibs_CXX=unknown
17805old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017806reload_flag_CXX=$reload_flag
17807reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017808no_undefined_flag_CXX=
17809whole_archive_flag_spec_CXX=
17810enable_shared_with_static_runtimes_CXX=no
17811
17812# Source file extension for C++ test sources.
17813ac_ext=cpp
17814
17815# Object file extension for compiled C++ test sources.
17816objext=o
17817objext_CXX=$objext
17818
17819# No sense in running all these tests if we already determined that
17820# the CXX compiler isn't working. Some variables (like enable_shared)
17821# are currently assumed to apply to all compilers on this platform,
17822# and will be corrupted by setting them based on a non-working compiler.
17823if test "$_lt_caught_CXX_error" != yes; then
17824 # Code to be used in simple compile tests
17825 lt_simple_compile_test_code="int some_variable = 0;"
17826
17827 # Code to be used in simple link tests
17828 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17829
17830 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17831
17832
17833
17834
17835
17836
17837# If no C compiler was specified, use CC.
17838LTCC=${LTCC-"$CC"}
17839
17840# If no C compiler flags were specified, use CFLAGS.
17841LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17842
17843# Allow CC to be a program name with arguments.
17844compiler=$CC
17845
17846
17847 # save warnings/boilerplate of simple test code
17848 ac_outfile=conftest.$ac_objext
17849echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17850eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17851_lt_compiler_boilerplate=`cat conftest.err`
17852$RM conftest*
17853
17854 ac_outfile=conftest.$ac_objext
17855echo "$lt_simple_link_test_code" >conftest.$ac_ext
17856eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17857_lt_linker_boilerplate=`cat conftest.err`
17858$RM -r conftest*
17859
17860
17861 # Allow CC to be a program name with arguments.
17862 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017863 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017864 lt_save_LD=$LD
17865 lt_save_GCC=$GCC
17866 GCC=$GXX
17867 lt_save_with_gnu_ld=$with_gnu_ld
17868 lt_save_path_LD=$lt_cv_path_LD
17869 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17870 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17871 else
17872 $as_unset lt_cv_prog_gnu_ld
17873 fi
17874 if test -n "${lt_cv_path_LDCXX+set}"; then
17875 lt_cv_path_LD=$lt_cv_path_LDCXX
17876 else
17877 $as_unset lt_cv_path_LD
17878 fi
17879 test -z "${LDCXX+set}" || LD=$LDCXX
17880 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017881 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017882 compiler=$CC
17883 compiler_CXX=$CC
17884 for cc_temp in $compiler""; do
17885 case $cc_temp in
17886 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17887 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17888 \-*) ;;
17889 *) break;;
17890 esac
17891done
cristy0c60a692010-11-04 01:09:47 +000017892cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017893
17894
17895 if test -n "$compiler"; then
17896 # We don't want -fno-exception when compiling C++ code, so set the
17897 # no_builtin_flag separately
17898 if test "$GXX" = yes; then
17899 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17900 else
17901 lt_prog_compiler_no_builtin_flag_CXX=
17902 fi
17903
17904 if test "$GXX" = yes; then
17905 # Set up default GNU C++ configuration
17906
17907
17908
17909# Check whether --with-gnu-ld was given.
17910if test "${with_gnu_ld+set}" = set; then :
17911 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17912else
17913 with_gnu_ld=no
17914fi
17915
17916ac_prog=ld
17917if test "$GCC" = yes; then
17918 # Check if gcc -print-prog-name=ld gives a path.
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17920$as_echo_n "checking for ld used by $CC... " >&6; }
17921 case $host in
17922 *-*-mingw*)
17923 # gcc leaves a trailing carriage return which upsets mingw
17924 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17925 *)
17926 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17927 esac
17928 case $ac_prog in
17929 # Accept absolute paths.
17930 [\\/]* | ?:[\\/]*)
17931 re_direlt='/[^/][^/]*/\.\./'
17932 # Canonicalize the pathname of ld
17933 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17934 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17935 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17936 done
17937 test -z "$LD" && LD="$ac_prog"
17938 ;;
17939 "")
17940 # If it fails, then pretend we aren't using GCC.
17941 ac_prog=ld
17942 ;;
17943 *)
17944 # If it is relative, then search for the first ld in PATH.
17945 with_gnu_ld=unknown
17946 ;;
17947 esac
17948elif test "$with_gnu_ld" = yes; then
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17950$as_echo_n "checking for GNU ld... " >&6; }
17951else
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17953$as_echo_n "checking for non-GNU ld... " >&6; }
17954fi
cristyda16f162011-02-19 23:52:17 +000017955if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017956 $as_echo_n "(cached) " >&6
17957else
17958 if test -z "$LD"; then
17959 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17960 for ac_dir in $PATH; do
17961 IFS="$lt_save_ifs"
17962 test -z "$ac_dir" && ac_dir=.
17963 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17964 lt_cv_path_LD="$ac_dir/$ac_prog"
17965 # Check to see if the program is GNU ld. I'd rather use --version,
17966 # but apparently some variants of GNU ld only accept -v.
17967 # Break only if it was the GNU/non-GNU ld that we prefer.
17968 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17969 *GNU* | *'with BFD'*)
17970 test "$with_gnu_ld" != no && break
17971 ;;
17972 *)
17973 test "$with_gnu_ld" != yes && break
17974 ;;
17975 esac
17976 fi
17977 done
17978 IFS="$lt_save_ifs"
17979else
17980 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17981fi
17982fi
17983
17984LD="$lt_cv_path_LD"
17985if test -n "$LD"; then
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17987$as_echo "$LD" >&6; }
17988else
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17990$as_echo "no" >&6; }
17991fi
cristy98dddb52010-11-04 00:30:15 +000017992test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17994$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017995if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017996 $as_echo_n "(cached) " >&6
17997else
17998 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17999case `$LD -v 2>&1 </dev/null` in
18000*GNU* | *'with BFD'*)
18001 lt_cv_prog_gnu_ld=yes
18002 ;;
18003*)
18004 lt_cv_prog_gnu_ld=no
18005 ;;
18006esac
18007fi
18008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18009$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18010with_gnu_ld=$lt_cv_prog_gnu_ld
18011
18012
18013
18014
18015
18016
18017
18018 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18019 # archiving commands below assume that GNU ld is being used.
18020 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018021 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18022 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 +000018023
18024 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18025 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18026
18027 # If archive_cmds runs LD, not CC, wlarc should be empty
18028 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18029 # investigate it a little bit more. (MM)
18030 wlarc='${wl}'
18031
18032 # ancient GNU ld didn't support --whole-archive et. al.
18033 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18034 $GREP 'no-whole-archive' > /dev/null; then
18035 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18036 else
18037 whole_archive_flag_spec_CXX=
18038 fi
18039 else
18040 with_gnu_ld=no
18041 wlarc=
18042
18043 # A generic and very simple default shared library creation
18044 # command for GNU C++ for the case where it uses the native
18045 # linker, instead of GNU ld. If possible, this setting should
18046 # overridden to take advantage of the native linker features on
18047 # the platform it is being used on.
18048 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18049 fi
18050
18051 # Commands to make compiler produce verbose output that lists
18052 # what "hidden" libraries, object files and flags are used when
18053 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018054 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018055
18056 else
18057 GXX=no
18058 with_gnu_ld=no
18059 wlarc=
18060 fi
18061
18062 # PORTME: fill in a description of your system's C++ link characteristics
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18064$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18065 ld_shlibs_CXX=yes
18066 case $host_os in
18067 aix3*)
18068 # FIXME: insert proper C++ library support
18069 ld_shlibs_CXX=no
18070 ;;
18071 aix[4-9]*)
18072 if test "$host_cpu" = ia64; then
18073 # On IA64, the linker does run time linking by default, so we don't
18074 # have to do anything special.
18075 aix_use_runtimelinking=no
18076 exp_sym_flag='-Bexport'
18077 no_entry_flag=""
18078 else
18079 aix_use_runtimelinking=no
18080
18081 # Test if we are trying to use run time linking or normal
18082 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18083 # need to do runtime linking.
18084 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18085 for ld_flag in $LDFLAGS; do
18086 case $ld_flag in
18087 *-brtl*)
18088 aix_use_runtimelinking=yes
18089 break
18090 ;;
18091 esac
18092 done
18093 ;;
18094 esac
18095
18096 exp_sym_flag='-bexport'
18097 no_entry_flag='-bnoentry'
18098 fi
18099
18100 # When large executables or shared objects are built, AIX ld can
18101 # have problems creating the table of contents. If linking a library
18102 # or program results in "error TOC overflow" add -mminimal-toc to
18103 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18104 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18105
18106 archive_cmds_CXX=''
18107 hardcode_direct_CXX=yes
18108 hardcode_direct_absolute_CXX=yes
18109 hardcode_libdir_separator_CXX=':'
18110 link_all_deplibs_CXX=yes
18111 file_list_spec_CXX='${wl}-f,'
18112
18113 if test "$GXX" = yes; then
18114 case $host_os in aix4.[012]|aix4.[012].*)
18115 # We only want to do this on AIX 4.2 and lower, the check
18116 # below for broken collect2 doesn't work under 4.3+
18117 collect2name=`${CC} -print-prog-name=collect2`
18118 if test -f "$collect2name" &&
18119 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18120 then
18121 # We have reworked collect2
18122 :
18123 else
18124 # We have old collect2
18125 hardcode_direct_CXX=unsupported
18126 # It fails to find uninstalled libraries when the uninstalled
18127 # path is not listed in the libpath. Setting hardcode_minus_L
18128 # to unsupported forces relinking
18129 hardcode_minus_L_CXX=yes
18130 hardcode_libdir_flag_spec_CXX='-L$libdir'
18131 hardcode_libdir_separator_CXX=
18132 fi
18133 esac
18134 shared_flag='-shared'
18135 if test "$aix_use_runtimelinking" = yes; then
18136 shared_flag="$shared_flag "'${wl}-G'
18137 fi
18138 else
18139 # not using gcc
18140 if test "$host_cpu" = ia64; then
18141 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18142 # chokes on -Wl,-G. The following line is correct:
18143 shared_flag='-G'
18144 else
18145 if test "$aix_use_runtimelinking" = yes; then
18146 shared_flag='${wl}-G'
18147 else
18148 shared_flag='${wl}-bM:SRE'
18149 fi
18150 fi
18151 fi
18152
18153 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18154 # It seems that -bexpall does not export symbols beginning with
18155 # underscore (_), so it is better to generate a list of symbols to
18156 # export.
18157 always_export_symbols_CXX=yes
18158 if test "$aix_use_runtimelinking" = yes; then
18159 # Warning - without using the other runtime loading flags (-brtl),
18160 # -berok will link without error, but may produce a broken library.
18161 allow_undefined_flag_CXX='-berok'
18162 # Determine the default libpath from the value encoded in an empty
18163 # executable.
cristyda16f162011-02-19 23:52:17 +000018164 if test "${lt_cv_aix_libpath+set}" = set; then
18165 aix_libpath=$lt_cv_aix_libpath
18166else
18167 if ${lt_cv_aix_libpath__CXX+:} false; then :
18168 $as_echo_n "(cached) " >&6
18169else
18170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018171/* end confdefs.h. */
18172
18173int
18174main ()
18175{
18176
18177 ;
18178 return 0;
18179}
18180_ACEOF
18181if ac_fn_cxx_try_link "$LINENO"; then :
18182
cristyda16f162011-02-19 23:52:17 +000018183 lt_aix_libpath_sed='
18184 /Import File Strings/,/^$/ {
18185 /^0/ {
18186 s/^0 *\([^ ]*\) *$/\1/
18187 p
18188 }
18189 }'
18190 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18191 # Check for a 64-bit object if we didn't find anything.
18192 if test -z "$lt_cv_aix_libpath__CXX"; then
18193 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18194 fi
cristy73bd4a52010-10-05 11:24:23 +000018195fi
18196rm -f core conftest.err conftest.$ac_objext \
18197 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018198 if test -z "$lt_cv_aix_libpath__CXX"; then
18199 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18200 fi
18201
18202fi
18203
18204 aix_libpath=$lt_cv_aix_libpath__CXX
18205fi
cristy73bd4a52010-10-05 11:24:23 +000018206
18207 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18208
cristy0c60a692010-11-04 01:09:47 +000018209 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 +000018210 else
18211 if test "$host_cpu" = ia64; then
18212 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18213 allow_undefined_flag_CXX="-z nodefs"
18214 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"
18215 else
18216 # Determine the default libpath from the value encoded in an
18217 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018218 if test "${lt_cv_aix_libpath+set}" = set; then
18219 aix_libpath=$lt_cv_aix_libpath
18220else
18221 if ${lt_cv_aix_libpath__CXX+:} false; then :
18222 $as_echo_n "(cached) " >&6
18223else
18224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018225/* end confdefs.h. */
18226
18227int
18228main ()
18229{
18230
18231 ;
18232 return 0;
18233}
18234_ACEOF
18235if ac_fn_cxx_try_link "$LINENO"; then :
18236
cristyda16f162011-02-19 23:52:17 +000018237 lt_aix_libpath_sed='
18238 /Import File Strings/,/^$/ {
18239 /^0/ {
18240 s/^0 *\([^ ]*\) *$/\1/
18241 p
18242 }
18243 }'
18244 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18245 # Check for a 64-bit object if we didn't find anything.
18246 if test -z "$lt_cv_aix_libpath__CXX"; then
18247 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18248 fi
cristy73bd4a52010-10-05 11:24:23 +000018249fi
18250rm -f core conftest.err conftest.$ac_objext \
18251 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018252 if test -z "$lt_cv_aix_libpath__CXX"; then
18253 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18254 fi
18255
18256fi
18257
18258 aix_libpath=$lt_cv_aix_libpath__CXX
18259fi
cristy73bd4a52010-10-05 11:24:23 +000018260
18261 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18262 # Warning - without using the other run time loading flags,
18263 # -berok will link without error, but may produce a broken library.
18264 no_undefined_flag_CXX=' ${wl}-bernotok'
18265 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018266 if test "$with_gnu_ld" = yes; then
18267 # We only use this code for GNU lds that support --whole-archive.
18268 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18269 else
18270 # Exported symbols can be pulled into shared objects from archives
18271 whole_archive_flag_spec_CXX='$convenience'
18272 fi
cristy73bd4a52010-10-05 11:24:23 +000018273 archive_cmds_need_lc_CXX=yes
18274 # This is similar to how AIX traditionally builds its shared
18275 # libraries.
18276 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'
18277 fi
18278 fi
18279 ;;
18280
18281 beos*)
18282 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18283 allow_undefined_flag_CXX=unsupported
18284 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18285 # support --undefined. This deserves some investigation. FIXME
18286 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18287 else
18288 ld_shlibs_CXX=no
18289 fi
18290 ;;
18291
18292 chorus*)
18293 case $cc_basename in
18294 *)
18295 # FIXME: insert proper C++ library support
18296 ld_shlibs_CXX=no
18297 ;;
18298 esac
18299 ;;
18300
18301 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018302 case $GXX,$cc_basename in
18303 ,cl* | no,cl*)
18304 # Native MSVC
18305 # hardcode_libdir_flag_spec is actually meaningless, as there is
18306 # no search path for DLLs.
18307 hardcode_libdir_flag_spec_CXX=' '
18308 allow_undefined_flag_CXX=unsupported
18309 always_export_symbols_CXX=yes
18310 file_list_spec_CXX='@'
18311 # Tell ltmain to make .lib files, not .a files.
18312 libext=lib
18313 # Tell ltmain to make .dll files, not .so files.
18314 shrext_cmds=".dll"
18315 # FIXME: Setting linknames here is a bad hack.
18316 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18317 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18318 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18319 else
18320 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18321 fi~
18322 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18323 linknames='
18324 # The linker will not automatically build a static lib if we build a DLL.
18325 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18326 enable_shared_with_static_runtimes_CXX=yes
18327 # Don't use ranlib
18328 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18329 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18330 lt_tool_outputfile="@TOOL_OUTPUT@"~
18331 case $lt_outputfile in
18332 *.exe|*.EXE) ;;
18333 *)
18334 lt_outputfile="$lt_outputfile.exe"
18335 lt_tool_outputfile="$lt_tool_outputfile.exe"
18336 ;;
18337 esac~
18338 func_to_tool_file "$lt_outputfile"~
18339 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18340 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18341 $RM "$lt_outputfile.manifest";
18342 fi'
18343 ;;
18344 *)
18345 # g++
18346 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18347 # as there is no search path for DLLs.
18348 hardcode_libdir_flag_spec_CXX='-L$libdir'
18349 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18350 allow_undefined_flag_CXX=unsupported
18351 always_export_symbols_CXX=no
18352 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018353
cristyda16f162011-02-19 23:52:17 +000018354 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18355 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'
18356 # If the export-symbols file already is a .def file (1st line
18357 # is EXPORTS), use it as is; otherwise, prepend...
18358 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18359 cp $export_symbols $output_objdir/$soname.def;
18360 else
18361 echo EXPORTS > $output_objdir/$soname.def;
18362 cat $export_symbols >> $output_objdir/$soname.def;
18363 fi~
18364 $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'
18365 else
18366 ld_shlibs_CXX=no
18367 fi
18368 ;;
18369 esac
18370 ;;
cristy73bd4a52010-10-05 11:24:23 +000018371 darwin* | rhapsody*)
18372
18373
18374 archive_cmds_need_lc_CXX=no
18375 hardcode_direct_CXX=no
18376 hardcode_automatic_CXX=yes
18377 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018378 if test "$lt_cv_ld_force_load" = "yes"; then
18379 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 +000018380
cristy0c60a692010-11-04 01:09:47 +000018381 else
18382 whole_archive_flag_spec_CXX=''
18383 fi
cristy73bd4a52010-10-05 11:24:23 +000018384 link_all_deplibs_CXX=yes
18385 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18386 case $cc_basename in
18387 ifort*) _lt_dar_can_shared=yes ;;
18388 *) _lt_dar_can_shared=$GCC ;;
18389 esac
18390 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018391 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018392 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}"
18393 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18394 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}"
18395 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}"
18396 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18397 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}"
18398 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}"
18399 fi
18400
18401 else
18402 ld_shlibs_CXX=no
18403 fi
18404
18405 ;;
18406
18407 dgux*)
18408 case $cc_basename in
18409 ec++*)
18410 # FIXME: insert proper C++ library support
18411 ld_shlibs_CXX=no
18412 ;;
18413 ghcx*)
18414 # Green Hills C++ Compiler
18415 # FIXME: insert proper C++ library support
18416 ld_shlibs_CXX=no
18417 ;;
18418 *)
18419 # FIXME: insert proper C++ library support
18420 ld_shlibs_CXX=no
18421 ;;
18422 esac
18423 ;;
18424
cristy99bd5232011-12-07 14:38:20 +000018425 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018426 # C++ shared libraries reported to be fairly broken before
18427 # switch to ELF
18428 ld_shlibs_CXX=no
18429 ;;
18430
18431 freebsd-elf*)
18432 archive_cmds_need_lc_CXX=no
18433 ;;
18434
18435 freebsd* | dragonfly*)
18436 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18437 # conventions
18438 ld_shlibs_CXX=yes
18439 ;;
18440
18441 gnu*)
18442 ;;
18443
cristy0c60a692010-11-04 01:09:47 +000018444 haiku*)
18445 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18446 link_all_deplibs_CXX=yes
18447 ;;
18448
cristy73bd4a52010-10-05 11:24:23 +000018449 hpux9*)
18450 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18451 hardcode_libdir_separator_CXX=:
18452 export_dynamic_flag_spec_CXX='${wl}-E'
18453 hardcode_direct_CXX=yes
18454 hardcode_minus_L_CXX=yes # Not in the search PATH,
18455 # but as the default
18456 # location of the library.
18457
18458 case $cc_basename in
18459 CC*)
18460 # FIXME: insert proper C++ library support
18461 ld_shlibs_CXX=no
18462 ;;
18463 aCC*)
18464 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'
18465 # Commands to make compiler produce verbose output that lists
18466 # what "hidden" libraries, object files and flags are used when
18467 # linking a shared library.
18468 #
18469 # There doesn't appear to be a way to prevent this compiler from
18470 # explicitly linking system object files so we need to strip them
18471 # from the output so that they don't get included in the library
18472 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018473 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 +000018474 ;;
18475 *)
18476 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018477 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 +000018478 else
18479 # FIXME: insert proper C++ library support
18480 ld_shlibs_CXX=no
18481 fi
18482 ;;
18483 esac
18484 ;;
18485
18486 hpux10*|hpux11*)
18487 if test $with_gnu_ld = no; then
18488 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18489 hardcode_libdir_separator_CXX=:
18490
18491 case $host_cpu in
18492 hppa*64*|ia64*)
18493 ;;
18494 *)
18495 export_dynamic_flag_spec_CXX='${wl}-E'
18496 ;;
18497 esac
18498 fi
18499 case $host_cpu in
18500 hppa*64*|ia64*)
18501 hardcode_direct_CXX=no
18502 hardcode_shlibpath_var_CXX=no
18503 ;;
18504 *)
18505 hardcode_direct_CXX=yes
18506 hardcode_direct_absolute_CXX=yes
18507 hardcode_minus_L_CXX=yes # Not in the search PATH,
18508 # but as the default
18509 # location of the library.
18510 ;;
18511 esac
18512
18513 case $cc_basename in
18514 CC*)
18515 # FIXME: insert proper C++ library support
18516 ld_shlibs_CXX=no
18517 ;;
18518 aCC*)
18519 case $host_cpu in
18520 hppa*64*)
18521 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18522 ;;
18523 ia64*)
18524 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18525 ;;
18526 *)
18527 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18528 ;;
18529 esac
18530 # Commands to make compiler produce verbose output that lists
18531 # what "hidden" libraries, object files and flags are used when
18532 # linking a shared library.
18533 #
18534 # There doesn't appear to be a way to prevent this compiler from
18535 # explicitly linking system object files so we need to strip them
18536 # from the output so that they don't get included in the library
18537 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018538 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 +000018539 ;;
18540 *)
18541 if test "$GXX" = yes; then
18542 if test $with_gnu_ld = no; then
18543 case $host_cpu in
18544 hppa*64*)
18545 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18546 ;;
18547 ia64*)
cristyda16f162011-02-19 23:52:17 +000018548 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 +000018549 ;;
18550 *)
cristyda16f162011-02-19 23:52:17 +000018551 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 +000018552 ;;
18553 esac
18554 fi
18555 else
18556 # FIXME: insert proper C++ library support
18557 ld_shlibs_CXX=no
18558 fi
18559 ;;
18560 esac
18561 ;;
18562
18563 interix[3-9]*)
18564 hardcode_direct_CXX=no
18565 hardcode_shlibpath_var_CXX=no
18566 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18567 export_dynamic_flag_spec_CXX='${wl}-E'
18568 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18569 # Instead, shared libraries are loaded at an image base (0x10000000 by
18570 # default) and relocated if they conflict, which is a slow very memory
18571 # consuming and fragmenting process. To avoid this, we pick a random,
18572 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18573 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18574 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'
18575 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'
18576 ;;
18577 irix5* | irix6*)
18578 case $cc_basename in
18579 CC*)
18580 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018581 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 +000018582
18583 # Archives containing C++ object files must be created using
18584 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18585 # necessary to make sure instantiated templates are included
18586 # in the archive.
18587 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18588 ;;
18589 *)
18590 if test "$GXX" = yes; then
18591 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018592 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 +000018593 else
cristyda16f162011-02-19 23:52:17 +000018594 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018595 fi
18596 fi
18597 link_all_deplibs_CXX=yes
18598 ;;
18599 esac
18600 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18601 hardcode_libdir_separator_CXX=:
18602 inherit_rpath_CXX=yes
18603 ;;
18604
cristy0c60a692010-11-04 01:09:47 +000018605 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018606 case $cc_basename in
18607 KCC*)
18608 # Kuck and Associates, Inc. (KAI) C++ Compiler
18609
18610 # KCC will only create a shared library if the output file
18611 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18612 # to its proper name (with version) after linking.
18613 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'
18614 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'
18615 # Commands to make compiler produce verbose output that lists
18616 # what "hidden" libraries, object files and flags are used when
18617 # linking a shared library.
18618 #
18619 # There doesn't appear to be a way to prevent this compiler from
18620 # explicitly linking system object files so we need to strip them
18621 # from the output so that they don't get included in the library
18622 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018623 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 +000018624
18625 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18626 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18627
18628 # Archives containing C++ object files must be created using
18629 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18630 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18631 ;;
18632 icpc* | ecpc* )
18633 # Intel C++
18634 with_gnu_ld=yes
18635 # version 8.0 and above of icpc choke on multiply defined symbols
18636 # if we add $predep_objects and $postdep_objects, however 7.1 and
18637 # earlier do not add the objects themselves.
18638 case `$CC -V 2>&1` in
18639 *"Version 7."*)
18640 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18641 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'
18642 ;;
18643 *) # Version 8.0 or newer
18644 tmp_idyn=
18645 case $host_cpu in
18646 ia64*) tmp_idyn=' -i_dynamic';;
18647 esac
18648 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18649 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'
18650 ;;
18651 esac
18652 archive_cmds_need_lc_CXX=no
18653 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18654 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18655 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18656 ;;
18657 pgCC* | pgcpp*)
18658 # Portland Group C++ compiler
18659 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018660 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018661 prelink_cmds_CXX='tpldir=Template.dir~
18662 rm -rf $tpldir~
18663 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018664 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018665 old_archive_cmds_CXX='tpldir=Template.dir~
18666 rm -rf $tpldir~
18667 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018668 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018669 $RANLIB $oldlib'
18670 archive_cmds_CXX='tpldir=Template.dir~
18671 rm -rf $tpldir~
18672 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018673 $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 +000018674 archive_expsym_cmds_CXX='tpldir=Template.dir~
18675 rm -rf $tpldir~
18676 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018677 $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 +000018678 ;;
cristy0c60a692010-11-04 01:09:47 +000018679 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018680 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18681 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'
18682 ;;
18683 esac
18684
18685 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18686 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018687 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 +000018688 ;;
18689 cxx*)
18690 # Compaq C++
18691 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18692 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'
18693
18694 runpath_var=LD_RUN_PATH
18695 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18696 hardcode_libdir_separator_CXX=:
18697
18698 # Commands to make compiler produce verbose output that lists
18699 # what "hidden" libraries, object files and flags are used when
18700 # linking a shared library.
18701 #
18702 # There doesn't appear to be a way to prevent this compiler from
18703 # explicitly linking system object files so we need to strip them
18704 # from the output so that they don't get included in the library
18705 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018706 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 +000018707 ;;
cristy0c60a692010-11-04 01:09:47 +000018708 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018709 # IBM XL 8.0 on PPC, with GNU ld
18710 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18711 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18712 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18713 if test "x$supports_anon_versioning" = xyes; then
18714 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18715 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18716 echo "local: *; };" >> $output_objdir/$libname.ver~
18717 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18718 fi
18719 ;;
18720 *)
18721 case `$CC -V 2>&1 | sed 5q` in
18722 *Sun\ C*)
18723 # Sun C++ 5.9
18724 no_undefined_flag_CXX=' -zdefs'
18725 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18726 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'
18727 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018728 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 +000018729 compiler_needs_object_CXX=yes
18730
18731 # Not sure whether something based on
18732 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18733 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018734 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018735
18736 # Archives containing C++ object files must be created using
18737 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18738 # necessary to make sure instantiated templates are included
18739 # in the archive.
18740 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18741 ;;
18742 esac
18743 ;;
18744 esac
18745 ;;
18746
18747 lynxos*)
18748 # FIXME: insert proper C++ library support
18749 ld_shlibs_CXX=no
18750 ;;
18751
18752 m88k*)
18753 # FIXME: insert proper C++ library support
18754 ld_shlibs_CXX=no
18755 ;;
18756
18757 mvs*)
18758 case $cc_basename in
18759 cxx*)
18760 # FIXME: insert proper C++ library support
18761 ld_shlibs_CXX=no
18762 ;;
18763 *)
18764 # FIXME: insert proper C++ library support
18765 ld_shlibs_CXX=no
18766 ;;
18767 esac
18768 ;;
18769
18770 netbsd*)
18771 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18772 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18773 wlarc=
18774 hardcode_libdir_flag_spec_CXX='-R$libdir'
18775 hardcode_direct_CXX=yes
18776 hardcode_shlibpath_var_CXX=no
18777 fi
18778 # Workaround some broken pre-1.5 toolchains
18779 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18780 ;;
18781
18782 *nto* | *qnx*)
18783 ld_shlibs_CXX=yes
18784 ;;
18785
18786 openbsd2*)
18787 # C++ shared libraries are fairly broken
18788 ld_shlibs_CXX=no
18789 ;;
18790
18791 openbsd*)
18792 if test -f /usr/libexec/ld.so; then
18793 hardcode_direct_CXX=yes
18794 hardcode_shlibpath_var_CXX=no
18795 hardcode_direct_absolute_CXX=yes
18796 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18797 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18798 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18799 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18800 export_dynamic_flag_spec_CXX='${wl}-E'
18801 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18802 fi
cristy0c60a692010-11-04 01:09:47 +000018803 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018804 else
18805 ld_shlibs_CXX=no
18806 fi
18807 ;;
18808
18809 osf3* | osf4* | osf5*)
18810 case $cc_basename in
18811 KCC*)
18812 # Kuck and Associates, Inc. (KAI) C++ Compiler
18813
18814 # KCC will only create a shared library if the output file
18815 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18816 # to its proper name (with version) after linking.
18817 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'
18818
18819 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18820 hardcode_libdir_separator_CXX=:
18821
18822 # Archives containing C++ object files must be created using
18823 # the KAI C++ compiler.
18824 case $host in
18825 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18826 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18827 esac
18828 ;;
18829 RCC*)
18830 # Rational C++ 2.4.1
18831 # FIXME: insert proper C++ library support
18832 ld_shlibs_CXX=no
18833 ;;
18834 cxx*)
18835 case $host in
18836 osf3*)
18837 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018838 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 +000018839 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18840 ;;
18841 *)
18842 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018843 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 +000018844 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18845 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018846 $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 +000018847 $RM $lib.exp'
18848 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18849 ;;
18850 esac
18851
18852 hardcode_libdir_separator_CXX=:
18853
18854 # Commands to make compiler produce verbose output that lists
18855 # what "hidden" libraries, object files and flags are used when
18856 # linking a shared library.
18857 #
18858 # There doesn't appear to be a way to prevent this compiler from
18859 # explicitly linking system object files so we need to strip them
18860 # from the output so that they don't get included in the library
18861 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018862 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 +000018863 ;;
18864 *)
18865 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18866 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18867 case $host in
18868 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018869 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 +000018870 ;;
18871 *)
cristyda16f162011-02-19 23:52:17 +000018872 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 +000018873 ;;
18874 esac
18875
18876 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18877 hardcode_libdir_separator_CXX=:
18878
18879 # Commands to make compiler produce verbose output that lists
18880 # what "hidden" libraries, object files and flags are used when
18881 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018882 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018883
18884 else
18885 # FIXME: insert proper C++ library support
18886 ld_shlibs_CXX=no
18887 fi
18888 ;;
18889 esac
18890 ;;
18891
18892 psos*)
18893 # FIXME: insert proper C++ library support
18894 ld_shlibs_CXX=no
18895 ;;
18896
18897 sunos4*)
18898 case $cc_basename in
18899 CC*)
18900 # Sun C++ 4.x
18901 # FIXME: insert proper C++ library support
18902 ld_shlibs_CXX=no
18903 ;;
18904 lcc*)
18905 # Lucid
18906 # FIXME: insert proper C++ library support
18907 ld_shlibs_CXX=no
18908 ;;
18909 *)
18910 # FIXME: insert proper C++ library support
18911 ld_shlibs_CXX=no
18912 ;;
18913 esac
18914 ;;
18915
18916 solaris*)
18917 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018918 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018919 # Sun C++ 4.2, 5.x and Centerline C++
18920 archive_cmds_need_lc_CXX=yes
18921 no_undefined_flag_CXX=' -zdefs'
18922 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18923 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18924 $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'
18925
18926 hardcode_libdir_flag_spec_CXX='-R$libdir'
18927 hardcode_shlibpath_var_CXX=no
18928 case $host_os in
18929 solaris2.[0-5] | solaris2.[0-5].*) ;;
18930 *)
18931 # The compiler driver will combine and reorder linker options,
18932 # but understands `-z linker_flag'.
18933 # Supported since Solaris 2.6 (maybe 2.5.1?)
18934 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18935 ;;
18936 esac
18937 link_all_deplibs_CXX=yes
18938
cristy0c60a692010-11-04 01:09:47 +000018939 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018940
18941 # Archives containing C++ object files must be created using
18942 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18943 # necessary to make sure instantiated templates are included
18944 # in the archive.
18945 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18946 ;;
18947 gcx*)
18948 # Green Hills C++ Compiler
18949 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18950
18951 # The C++ compiler must be used to create the archive.
18952 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18953 ;;
18954 *)
18955 # GNU C++ compiler with Solaris linker
18956 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18957 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18958 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018959 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 +000018960 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 +000018961 $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 +000018962
18963 # Commands to make compiler produce verbose output that lists
18964 # what "hidden" libraries, object files and flags are used when
18965 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018966 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018967 else
18968 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18969 # platform.
18970 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18971 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18972 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18973
18974 # Commands to make compiler produce verbose output that lists
18975 # what "hidden" libraries, object files and flags are used when
18976 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018977 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018978 fi
18979
18980 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18981 case $host_os in
18982 solaris2.[0-5] | solaris2.[0-5].*) ;;
18983 *)
18984 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18985 ;;
18986 esac
18987 fi
18988 ;;
18989 esac
18990 ;;
18991
18992 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18993 no_undefined_flag_CXX='${wl}-z,text'
18994 archive_cmds_need_lc_CXX=no
18995 hardcode_shlibpath_var_CXX=no
18996 runpath_var='LD_RUN_PATH'
18997
18998 case $cc_basename in
18999 CC*)
19000 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19001 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19002 ;;
19003 *)
19004 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19005 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19006 ;;
19007 esac
19008 ;;
19009
19010 sysv5* | sco3.2v5* | sco5v6*)
19011 # Note: We can NOT use -z defs as we might desire, because we do not
19012 # link with -lc, and that would cause any symbols used from libc to
19013 # always be unresolved, which means just about no library would
19014 # ever link correctly. If we're not using GNU ld we use -z text
19015 # though, which does catch some bad symbols but isn't as heavy-handed
19016 # as -z defs.
19017 no_undefined_flag_CXX='${wl}-z,text'
19018 allow_undefined_flag_CXX='${wl}-z,nodefs'
19019 archive_cmds_need_lc_CXX=no
19020 hardcode_shlibpath_var_CXX=no
19021 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19022 hardcode_libdir_separator_CXX=':'
19023 link_all_deplibs_CXX=yes
19024 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19025 runpath_var='LD_RUN_PATH'
19026
19027 case $cc_basename in
19028 CC*)
19029 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19030 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 +000019031 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19032 '"$old_archive_cmds_CXX"
19033 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19034 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019035 ;;
19036 *)
19037 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19038 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19039 ;;
19040 esac
19041 ;;
19042
19043 tandem*)
19044 case $cc_basename in
19045 NCC*)
19046 # NonStop-UX NCC 3.20
19047 # FIXME: insert proper C++ library support
19048 ld_shlibs_CXX=no
19049 ;;
19050 *)
19051 # FIXME: insert proper C++ library support
19052 ld_shlibs_CXX=no
19053 ;;
19054 esac
19055 ;;
19056
19057 vxworks*)
19058 # FIXME: insert proper C++ library support
19059 ld_shlibs_CXX=no
19060 ;;
19061
19062 *)
19063 # FIXME: insert proper C++ library support
19064 ld_shlibs_CXX=no
19065 ;;
19066 esac
19067
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19069$as_echo "$ld_shlibs_CXX" >&6; }
19070 test "$ld_shlibs_CXX" = no && can_build_shared=no
19071
19072 GCC_CXX="$GXX"
19073 LD_CXX="$LD"
19074
19075 ## CAVEAT EMPTOR:
19076 ## There is no encapsulation within the following macros, do not change
19077 ## the running order or otherwise move them around unless you know exactly
19078 ## what you are doing...
19079 # Dependencies to place before and after the object being linked:
19080predep_objects_CXX=
19081postdep_objects_CXX=
19082predeps_CXX=
19083postdeps_CXX=
19084compiler_lib_search_path_CXX=
19085
19086cat > conftest.$ac_ext <<_LT_EOF
19087class Foo
19088{
19089public:
19090 Foo (void) { a = 0; }
19091private:
19092 int a;
19093};
19094_LT_EOF
19095
cristyda16f162011-02-19 23:52:17 +000019096
19097_lt_libdeps_save_CFLAGS=$CFLAGS
19098case "$CC $CFLAGS " in #(
19099*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19100*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019101*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019102esac
19103
cristy73bd4a52010-10-05 11:24:23 +000019104if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19105 (eval $ac_compile) 2>&5
19106 ac_status=$?
19107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19108 test $ac_status = 0; }; then
19109 # Parse the compiler output and extract the necessary
19110 # objects, libraries and library flags.
19111
19112 # Sentinel used to keep track of whether or not we are before
19113 # the conftest object file.
19114 pre_test_object_deps_done=no
19115
19116 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019117 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019118
19119 -L* | -R* | -l*)
19120 # Some compilers place space between "-{L,R}" and the path.
19121 # Remove the space.
19122 if test $p = "-L" ||
19123 test $p = "-R"; then
19124 prev=$p
19125 continue
cristy73bd4a52010-10-05 11:24:23 +000019126 fi
19127
cristyda16f162011-02-19 23:52:17 +000019128 # Expand the sysroot to ease extracting the directories later.
19129 if test -z "$prev"; then
19130 case $p in
19131 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19132 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19133 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19134 esac
19135 fi
19136 case $p in
19137 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19138 esac
cristy73bd4a52010-10-05 11:24:23 +000019139 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019140 case ${prev} in
19141 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019142 # Internal compiler library paths should come after those
19143 # provided the user. The postdeps already come after the
19144 # user supplied libs so there is no need to process them.
19145 if test -z "$compiler_lib_search_path_CXX"; then
19146 compiler_lib_search_path_CXX="${prev}${p}"
19147 else
19148 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19149 fi
19150 ;;
19151 # The "-l" case would never come before the object being
19152 # linked, so don't bother handling this case.
19153 esac
19154 else
19155 if test -z "$postdeps_CXX"; then
19156 postdeps_CXX="${prev}${p}"
19157 else
19158 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19159 fi
19160 fi
cristyda16f162011-02-19 23:52:17 +000019161 prev=
cristy73bd4a52010-10-05 11:24:23 +000019162 ;;
19163
cristyda16f162011-02-19 23:52:17 +000019164 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019165 *.$objext)
19166 # This assumes that the test object file only shows up
19167 # once in the compiler output.
19168 if test "$p" = "conftest.$objext"; then
19169 pre_test_object_deps_done=yes
19170 continue
19171 fi
19172
19173 if test "$pre_test_object_deps_done" = no; then
19174 if test -z "$predep_objects_CXX"; then
19175 predep_objects_CXX="$p"
19176 else
19177 predep_objects_CXX="$predep_objects_CXX $p"
19178 fi
19179 else
19180 if test -z "$postdep_objects_CXX"; then
19181 postdep_objects_CXX="$p"
19182 else
19183 postdep_objects_CXX="$postdep_objects_CXX $p"
19184 fi
19185 fi
19186 ;;
19187
19188 *) ;; # Ignore the rest.
19189
19190 esac
19191 done
19192
19193 # Clean up.
19194 rm -f a.out a.exe
19195else
19196 echo "libtool.m4: error: problem compiling CXX test program"
19197fi
19198
19199$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019200CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019201
19202# PORTME: override above test on systems where it is broken
19203case $host_os in
19204interix[3-9]*)
19205 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19206 # hack all around it, let's just trust "g++" to DTRT.
19207 predep_objects_CXX=
19208 postdep_objects_CXX=
19209 postdeps_CXX=
19210 ;;
19211
19212linux*)
19213 case `$CC -V 2>&1 | sed 5q` in
19214 *Sun\ C*)
19215 # Sun C++ 5.9
19216
19217 # The more standards-conforming stlport4 library is
19218 # incompatible with the Cstd library. Avoid specifying
19219 # it if it's in CXXFLAGS. Ignore libCrun as
19220 # -library=stlport4 depends on it.
19221 case " $CXX $CXXFLAGS " in
19222 *" -library=stlport4 "*)
19223 solaris_use_stlport4=yes
19224 ;;
19225 esac
19226
19227 if test "$solaris_use_stlport4" != yes; then
19228 postdeps_CXX='-library=Cstd -library=Crun'
19229 fi
19230 ;;
19231 esac
19232 ;;
19233
19234solaris*)
19235 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019236 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019237 # The more standards-conforming stlport4 library is
19238 # incompatible with the Cstd library. Avoid specifying
19239 # it if it's in CXXFLAGS. Ignore libCrun as
19240 # -library=stlport4 depends on it.
19241 case " $CXX $CXXFLAGS " in
19242 *" -library=stlport4 "*)
19243 solaris_use_stlport4=yes
19244 ;;
19245 esac
19246
19247 # Adding this requires a known-good setup of shared libraries for
19248 # Sun compiler versions before 5.6, else PIC objects from an old
19249 # archive will be linked into the output, leading to subtle bugs.
19250 if test "$solaris_use_stlport4" != yes; then
19251 postdeps_CXX='-library=Cstd -library=Crun'
19252 fi
19253 ;;
19254 esac
19255 ;;
19256esac
19257
19258
19259case " $postdeps_CXX " in
19260*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19261esac
19262 compiler_lib_search_dirs_CXX=
19263if test -n "${compiler_lib_search_path_CXX}"; then
19264 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19265fi
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297 lt_prog_compiler_wl_CXX=
19298lt_prog_compiler_pic_CXX=
19299lt_prog_compiler_static_CXX=
19300
cristy73bd4a52010-10-05 11:24:23 +000019301
19302 # C++ specific cases for pic, static, wl, etc.
19303 if test "$GXX" = yes; then
19304 lt_prog_compiler_wl_CXX='-Wl,'
19305 lt_prog_compiler_static_CXX='-static'
19306
19307 case $host_os in
19308 aix*)
19309 # All AIX code is PIC.
19310 if test "$host_cpu" = ia64; then
19311 # AIX 5 now supports IA64 processor
19312 lt_prog_compiler_static_CXX='-Bstatic'
19313 fi
19314 ;;
19315
19316 amigaos*)
19317 case $host_cpu in
19318 powerpc)
19319 # see comment about AmigaOS4 .so support
19320 lt_prog_compiler_pic_CXX='-fPIC'
19321 ;;
19322 m68k)
19323 # FIXME: we need at least 68020 code to build shared libraries, but
19324 # adding the `-m68020' flag to GCC prevents building anything better,
19325 # like `-m68040'.
19326 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19327 ;;
19328 esac
19329 ;;
19330
19331 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19332 # PIC is the default for these OSes.
19333 ;;
19334 mingw* | cygwin* | os2* | pw32* | cegcc*)
19335 # This hack is so that the source file can tell whether it is being
19336 # built for inclusion in a dll (and should export symbols for example).
19337 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19338 # (--disable-auto-import) libraries
19339 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19340 ;;
19341 darwin* | rhapsody*)
19342 # PIC is the default on this platform
19343 # Common symbols not allowed in MH_DYLIB files
19344 lt_prog_compiler_pic_CXX='-fno-common'
19345 ;;
19346 *djgpp*)
19347 # DJGPP does not support shared libraries at all
19348 lt_prog_compiler_pic_CXX=
19349 ;;
cristy0c60a692010-11-04 01:09:47 +000019350 haiku*)
19351 # PIC is the default for Haiku.
19352 # The "-static" flag exists, but is broken.
19353 lt_prog_compiler_static_CXX=
19354 ;;
cristy73bd4a52010-10-05 11:24:23 +000019355 interix[3-9]*)
19356 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19357 # Instead, we relocate shared libraries at runtime.
19358 ;;
19359 sysv4*MP*)
19360 if test -d /usr/nec; then
19361 lt_prog_compiler_pic_CXX=-Kconform_pic
19362 fi
19363 ;;
19364 hpux*)
19365 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19366 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19367 # sets the default TLS model and affects inlining.
19368 case $host_cpu in
19369 hppa*64*)
19370 ;;
19371 *)
19372 lt_prog_compiler_pic_CXX='-fPIC'
19373 ;;
19374 esac
19375 ;;
19376 *qnx* | *nto*)
19377 # QNX uses GNU C++, but need to define -shared option too, otherwise
19378 # it will coredump.
19379 lt_prog_compiler_pic_CXX='-fPIC -shared'
19380 ;;
19381 *)
19382 lt_prog_compiler_pic_CXX='-fPIC'
19383 ;;
19384 esac
19385 else
19386 case $host_os in
19387 aix[4-9]*)
19388 # All AIX code is PIC.
19389 if test "$host_cpu" = ia64; then
19390 # AIX 5 now supports IA64 processor
19391 lt_prog_compiler_static_CXX='-Bstatic'
19392 else
19393 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19394 fi
19395 ;;
19396 chorus*)
19397 case $cc_basename in
19398 cxch68*)
19399 # Green Hills C++ Compiler
19400 # _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"
19401 ;;
19402 esac
19403 ;;
cristyda16f162011-02-19 23:52:17 +000019404 mingw* | cygwin* | os2* | pw32* | cegcc*)
19405 # This hack is so that the source file can tell whether it is being
19406 # built for inclusion in a dll (and should export symbols for example).
19407 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19408 ;;
cristy73bd4a52010-10-05 11:24:23 +000019409 dgux*)
19410 case $cc_basename in
19411 ec++*)
19412 lt_prog_compiler_pic_CXX='-KPIC'
19413 ;;
19414 ghcx*)
19415 # Green Hills C++ Compiler
19416 lt_prog_compiler_pic_CXX='-pic'
19417 ;;
19418 *)
19419 ;;
19420 esac
19421 ;;
19422 freebsd* | dragonfly*)
19423 # FreeBSD uses GNU C++
19424 ;;
19425 hpux9* | hpux10* | hpux11*)
19426 case $cc_basename in
19427 CC*)
19428 lt_prog_compiler_wl_CXX='-Wl,'
19429 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19430 if test "$host_cpu" != ia64; then
19431 lt_prog_compiler_pic_CXX='+Z'
19432 fi
19433 ;;
19434 aCC*)
19435 lt_prog_compiler_wl_CXX='-Wl,'
19436 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19437 case $host_cpu in
19438 hppa*64*|ia64*)
19439 # +Z the default
19440 ;;
19441 *)
19442 lt_prog_compiler_pic_CXX='+Z'
19443 ;;
19444 esac
19445 ;;
19446 *)
19447 ;;
19448 esac
19449 ;;
19450 interix*)
19451 # This is c89, which is MS Visual C++ (no shared libs)
19452 # Anyone wants to do a port?
19453 ;;
19454 irix5* | irix6* | nonstopux*)
19455 case $cc_basename in
19456 CC*)
19457 lt_prog_compiler_wl_CXX='-Wl,'
19458 lt_prog_compiler_static_CXX='-non_shared'
19459 # CC pic flag -KPIC is the default.
19460 ;;
19461 *)
19462 ;;
19463 esac
19464 ;;
cristy0c60a692010-11-04 01:09:47 +000019465 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019466 case $cc_basename in
19467 KCC*)
19468 # KAI C++ Compiler
19469 lt_prog_compiler_wl_CXX='--backend -Wl,'
19470 lt_prog_compiler_pic_CXX='-fPIC'
19471 ;;
19472 ecpc* )
19473 # old Intel C++ for x86_64 which still supported -KPIC.
19474 lt_prog_compiler_wl_CXX='-Wl,'
19475 lt_prog_compiler_pic_CXX='-KPIC'
19476 lt_prog_compiler_static_CXX='-static'
19477 ;;
19478 icpc* )
19479 # Intel C++, used to be incompatible with GCC.
19480 # ICC 10 doesn't accept -KPIC any more.
19481 lt_prog_compiler_wl_CXX='-Wl,'
19482 lt_prog_compiler_pic_CXX='-fPIC'
19483 lt_prog_compiler_static_CXX='-static'
19484 ;;
19485 pgCC* | pgcpp*)
19486 # Portland Group C++ compiler
19487 lt_prog_compiler_wl_CXX='-Wl,'
19488 lt_prog_compiler_pic_CXX='-fpic'
19489 lt_prog_compiler_static_CXX='-Bstatic'
19490 ;;
19491 cxx*)
19492 # Compaq C++
19493 # Make sure the PIC flag is empty. It appears that all Alpha
19494 # Linux and Compaq Tru64 Unix objects are PIC.
19495 lt_prog_compiler_pic_CXX=
19496 lt_prog_compiler_static_CXX='-non_shared'
19497 ;;
cristy0c60a692010-11-04 01:09:47 +000019498 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19499 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019500 lt_prog_compiler_wl_CXX='-Wl,'
19501 lt_prog_compiler_pic_CXX='-qpic'
19502 lt_prog_compiler_static_CXX='-qstaticlink'
19503 ;;
19504 *)
19505 case `$CC -V 2>&1 | sed 5q` in
19506 *Sun\ C*)
19507 # Sun C++ 5.9
19508 lt_prog_compiler_pic_CXX='-KPIC'
19509 lt_prog_compiler_static_CXX='-Bstatic'
19510 lt_prog_compiler_wl_CXX='-Qoption ld '
19511 ;;
19512 esac
19513 ;;
19514 esac
19515 ;;
19516 lynxos*)
19517 ;;
19518 m88k*)
19519 ;;
19520 mvs*)
19521 case $cc_basename in
19522 cxx*)
19523 lt_prog_compiler_pic_CXX='-W c,exportall'
19524 ;;
19525 *)
19526 ;;
19527 esac
19528 ;;
19529 netbsd*)
19530 ;;
19531 *qnx* | *nto*)
19532 # QNX uses GNU C++, but need to define -shared option too, otherwise
19533 # it will coredump.
19534 lt_prog_compiler_pic_CXX='-fPIC -shared'
19535 ;;
19536 osf3* | osf4* | osf5*)
19537 case $cc_basename in
19538 KCC*)
19539 lt_prog_compiler_wl_CXX='--backend -Wl,'
19540 ;;
19541 RCC*)
19542 # Rational C++ 2.4.1
19543 lt_prog_compiler_pic_CXX='-pic'
19544 ;;
19545 cxx*)
19546 # Digital/Compaq C++
19547 lt_prog_compiler_wl_CXX='-Wl,'
19548 # Make sure the PIC flag is empty. It appears that all Alpha
19549 # Linux and Compaq Tru64 Unix objects are PIC.
19550 lt_prog_compiler_pic_CXX=
19551 lt_prog_compiler_static_CXX='-non_shared'
19552 ;;
19553 *)
19554 ;;
19555 esac
19556 ;;
19557 psos*)
19558 ;;
19559 solaris*)
19560 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019561 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019562 # Sun C++ 4.2, 5.x and Centerline C++
19563 lt_prog_compiler_pic_CXX='-KPIC'
19564 lt_prog_compiler_static_CXX='-Bstatic'
19565 lt_prog_compiler_wl_CXX='-Qoption ld '
19566 ;;
19567 gcx*)
19568 # Green Hills C++ Compiler
19569 lt_prog_compiler_pic_CXX='-PIC'
19570 ;;
19571 *)
19572 ;;
19573 esac
19574 ;;
19575 sunos4*)
19576 case $cc_basename in
19577 CC*)
19578 # Sun C++ 4.x
19579 lt_prog_compiler_pic_CXX='-pic'
19580 lt_prog_compiler_static_CXX='-Bstatic'
19581 ;;
19582 lcc*)
19583 # Lucid
19584 lt_prog_compiler_pic_CXX='-pic'
19585 ;;
19586 *)
19587 ;;
19588 esac
19589 ;;
19590 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19591 case $cc_basename in
19592 CC*)
19593 lt_prog_compiler_wl_CXX='-Wl,'
19594 lt_prog_compiler_pic_CXX='-KPIC'
19595 lt_prog_compiler_static_CXX='-Bstatic'
19596 ;;
19597 esac
19598 ;;
19599 tandem*)
19600 case $cc_basename in
19601 NCC*)
19602 # NonStop-UX NCC 3.20
19603 lt_prog_compiler_pic_CXX='-KPIC'
19604 ;;
19605 *)
19606 ;;
19607 esac
19608 ;;
19609 vxworks*)
19610 ;;
19611 *)
19612 lt_prog_compiler_can_build_shared_CXX=no
19613 ;;
19614 esac
19615 fi
19616
19617case $host_os in
19618 # For platforms which do not support PIC, -DPIC is meaningless:
19619 *djgpp*)
19620 lt_prog_compiler_pic_CXX=
19621 ;;
19622 *)
19623 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19624 ;;
19625esac
cristy73bd4a52010-10-05 11:24:23 +000019626
cristyda16f162011-02-19 23:52:17 +000019627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19628$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19629if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19630 $as_echo_n "(cached) " >&6
19631else
19632 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19633fi
19634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19635$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19636lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019637
19638#
19639# Check to make sure the PIC flag actually works.
19640#
19641if test -n "$lt_prog_compiler_pic_CXX"; then
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19643$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019644if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019645 $as_echo_n "(cached) " >&6
19646else
19647 lt_cv_prog_compiler_pic_works_CXX=no
19648 ac_outfile=conftest.$ac_objext
19649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19650 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19651 # Insert the option either (1) after the last *FLAGS variable, or
19652 # (2) before a word containing "conftest.", or (3) at the end.
19653 # Note that $ac_compile itself does not contain backslashes and begins
19654 # with a dollar sign (not a hyphen), so the echo should work correctly.
19655 # The option is referenced via a variable to avoid confusing sed.
19656 lt_compile=`echo "$ac_compile" | $SED \
19657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19659 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019661 (eval "$lt_compile" 2>conftest.err)
19662 ac_status=$?
19663 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019665 if (exit $ac_status) && test -s "$ac_outfile"; then
19666 # The compiler can only warn and ignore the option if not recognized
19667 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19671 lt_cv_prog_compiler_pic_works_CXX=yes
19672 fi
19673 fi
19674 $RM conftest*
19675
19676fi
19677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19678$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19679
19680if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19681 case $lt_prog_compiler_pic_CXX in
19682 "" | " "*) ;;
19683 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19684 esac
19685else
19686 lt_prog_compiler_pic_CXX=
19687 lt_prog_compiler_can_build_shared_CXX=no
19688fi
19689
19690fi
19691
19692
19693
cristyda16f162011-02-19 23:52:17 +000019694
19695
cristy73bd4a52010-10-05 11:24:23 +000019696#
19697# Check to make sure the static flag actually works.
19698#
19699wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19701$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019702if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019703 $as_echo_n "(cached) " >&6
19704else
19705 lt_cv_prog_compiler_static_works_CXX=no
19706 save_LDFLAGS="$LDFLAGS"
19707 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19708 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19709 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19710 # The linker can only warn and ignore the option if not recognized
19711 # So say no if there are warnings
19712 if test -s conftest.err; then
19713 # Append any errors to the config.log.
19714 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019715 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19717 if diff conftest.exp conftest.er2 >/dev/null; then
19718 lt_cv_prog_compiler_static_works_CXX=yes
19719 fi
19720 else
19721 lt_cv_prog_compiler_static_works_CXX=yes
19722 fi
19723 fi
19724 $RM -r conftest*
19725 LDFLAGS="$save_LDFLAGS"
19726
19727fi
19728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19729$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19730
19731if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19732 :
19733else
19734 lt_prog_compiler_static_CXX=
19735fi
19736
19737
19738
19739
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19741$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019742if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019743 $as_echo_n "(cached) " >&6
19744else
19745 lt_cv_prog_compiler_c_o_CXX=no
19746 $RM -r conftest 2>/dev/null
19747 mkdir conftest
19748 cd conftest
19749 mkdir out
19750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19751
19752 lt_compiler_flag="-o out/conftest2.$ac_objext"
19753 # Insert the option either (1) after the last *FLAGS variable, or
19754 # (2) before a word containing "conftest.", or (3) at the end.
19755 # Note that $ac_compile itself does not contain backslashes and begins
19756 # with a dollar sign (not a hyphen), so the echo should work correctly.
19757 lt_compile=`echo "$ac_compile" | $SED \
19758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19760 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019761 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019762 (eval "$lt_compile" 2>out/conftest.err)
19763 ac_status=$?
19764 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019766 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19767 then
19768 # The compiler can only warn and ignore the option if not recognized
19769 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019770 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019771 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19772 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19773 lt_cv_prog_compiler_c_o_CXX=yes
19774 fi
19775 fi
19776 chmod u+w . 2>&5
19777 $RM conftest*
19778 # SGI C++ compiler will create directory out/ii_files/ for
19779 # template instantiation
19780 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19781 $RM out/* && rmdir out
19782 cd ..
19783 $RM -r conftest
19784 $RM conftest*
19785
19786fi
19787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19788$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19789
19790
19791
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19793$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019794if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019795 $as_echo_n "(cached) " >&6
19796else
19797 lt_cv_prog_compiler_c_o_CXX=no
19798 $RM -r conftest 2>/dev/null
19799 mkdir conftest
19800 cd conftest
19801 mkdir out
19802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19803
19804 lt_compiler_flag="-o out/conftest2.$ac_objext"
19805 # Insert the option either (1) after the last *FLAGS variable, or
19806 # (2) before a word containing "conftest.", or (3) at the end.
19807 # Note that $ac_compile itself does not contain backslashes and begins
19808 # with a dollar sign (not a hyphen), so the echo should work correctly.
19809 lt_compile=`echo "$ac_compile" | $SED \
19810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19812 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019814 (eval "$lt_compile" 2>out/conftest.err)
19815 ac_status=$?
19816 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019818 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19819 then
19820 # The compiler can only warn and ignore the option if not recognized
19821 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019823 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19824 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19825 lt_cv_prog_compiler_c_o_CXX=yes
19826 fi
19827 fi
19828 chmod u+w . 2>&5
19829 $RM conftest*
19830 # SGI C++ compiler will create directory out/ii_files/ for
19831 # template instantiation
19832 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19833 $RM out/* && rmdir out
19834 cd ..
19835 $RM -r conftest
19836 $RM conftest*
19837
19838fi
19839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19840$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19841
19842
19843
19844
19845hard_links="nottested"
19846if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19847 # do not overwrite the value of need_locks provided by the user
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19849$as_echo_n "checking if we can lock with hard links... " >&6; }
19850 hard_links=yes
19851 $RM conftest*
19852 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19853 touch conftest.a
19854 ln conftest.a conftest.b 2>&5 || hard_links=no
19855 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19857$as_echo "$hard_links" >&6; }
19858 if test "$hard_links" = no; then
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19860$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19861 need_locks=warn
19862 fi
19863else
19864 need_locks=no
19865fi
19866
19867
19868
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19870$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19871
19872 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019873 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019874 case $host_os in
19875 aix[4-9]*)
19876 # If we're using GNU nm, then we don't want the "-C" option.
19877 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019878 # Also, AIX nm treats weak defined symbols like other global defined
19879 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019880 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019881 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 +000019882 else
19883 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'
19884 fi
19885 ;;
19886 pw32*)
19887 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019888 ;;
cristy73bd4a52010-10-05 11:24:23 +000019889 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019890 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019891 cl*)
19892 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19893 ;;
cristyda16f162011-02-19 23:52:17 +000019894 *)
19895 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'
19896 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19897 ;;
19898 esac
19899 ;;
cristy73bd4a52010-10-05 11:24:23 +000019900 *)
19901 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019902 ;;
cristy73bd4a52010-10-05 11:24:23 +000019903 esac
cristy73bd4a52010-10-05 11:24:23 +000019904
19905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19906$as_echo "$ld_shlibs_CXX" >&6; }
19907test "$ld_shlibs_CXX" = no && can_build_shared=no
19908
19909with_gnu_ld_CXX=$with_gnu_ld
19910
19911
19912
19913
19914
19915
19916#
19917# Do we need to explicitly link libc?
19918#
19919case "x$archive_cmds_need_lc_CXX" in
19920x|xyes)
19921 # Assume -lc should be added
19922 archive_cmds_need_lc_CXX=yes
19923
19924 if test "$enable_shared" = yes && test "$GCC" = yes; then
19925 case $archive_cmds_CXX in
19926 *'~'*)
19927 # FIXME: we may have to deal with multi-command sequences.
19928 ;;
19929 '$CC '*)
19930 # Test whether the compiler implicitly links with -lc since on some
19931 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19932 # to ld, don't add -lc before -lgcc.
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19934$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019935if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019936 $as_echo_n "(cached) " >&6
19937else
19938 $RM conftest*
19939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019940
cristy0c60a692010-11-04 01:09:47 +000019941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019942 (eval $ac_compile) 2>&5
19943 ac_status=$?
19944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19945 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019946 soname=conftest
19947 lib=conftest
19948 libobjs=conftest.$ac_objext
19949 deplibs=
19950 wl=$lt_prog_compiler_wl_CXX
19951 pic_flag=$lt_prog_compiler_pic_CXX
19952 compiler_flags=-v
19953 linker_flags=-v
19954 verstring=
19955 output_objdir=.
19956 libname=conftest
19957 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19958 allow_undefined_flag_CXX=
19959 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 +000019960 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19961 ac_status=$?
19962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19963 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019964 then
19965 lt_cv_archive_cmds_need_lc_CXX=no
19966 else
19967 lt_cv_archive_cmds_need_lc_CXX=yes
19968 fi
19969 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19970 else
19971 cat conftest.err 1>&5
19972 fi
19973 $RM conftest*
19974
19975fi
19976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19977$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19978 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019979 ;;
19980 esac
19981 fi
19982 ;;
19983esac
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
cristy73bd4a52010-10-05 11:24:23 +000020046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20047$as_echo_n "checking dynamic linker characteristics... " >&6; }
20048
20049library_names_spec=
20050libname_spec='lib$name'
20051soname_spec=
20052shrext_cmds=".so"
20053postinstall_cmds=
20054postuninstall_cmds=
20055finish_cmds=
20056finish_eval=
20057shlibpath_var=
20058shlibpath_overrides_runpath=unknown
20059version_type=none
20060dynamic_linker="$host_os ld.so"
20061sys_lib_dlsearch_path_spec="/lib /usr/lib"
20062need_lib_prefix=unknown
20063hardcode_into_libs=no
20064
20065# when you set need_version to no, make sure it does not cause -set_version
20066# flags to be left without arguments
20067need_version=unknown
20068
20069case $host_os in
20070aix3*)
cristy99bd5232011-12-07 14:38:20 +000020071 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20073 shlibpath_var=LIBPATH
20074
20075 # AIX 3 has no versioning support, so we append a major version to the name.
20076 soname_spec='${libname}${release}${shared_ext}$major'
20077 ;;
20078
20079aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020080 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020081 need_lib_prefix=no
20082 need_version=no
20083 hardcode_into_libs=yes
20084 if test "$host_cpu" = ia64; then
20085 # AIX 5 supports IA64
20086 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20087 shlibpath_var=LD_LIBRARY_PATH
20088 else
20089 # With GCC up to 2.95.x, collect2 would create an import file
20090 # for dependence libraries. The import file would start with
20091 # the line `#! .'. This would cause the generated library to
20092 # depend on `.', always an invalid library. This was fixed in
20093 # development snapshots of GCC prior to 3.0.
20094 case $host_os in
20095 aix4 | aix4.[01] | aix4.[01].*)
20096 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20097 echo ' yes '
20098 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20099 :
20100 else
20101 can_build_shared=no
20102 fi
20103 ;;
20104 esac
20105 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20106 # soname into executable. Probably we can add versioning support to
20107 # collect2, so additional links can be useful in future.
20108 if test "$aix_use_runtimelinking" = yes; then
20109 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20110 # instead of lib<name>.a to let people know that these are not
20111 # typical AIX shared libraries.
20112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20113 else
20114 # We preserve .a as extension for shared libraries through AIX4.2
20115 # and later when we are not doing run time linking.
20116 library_names_spec='${libname}${release}.a $libname.a'
20117 soname_spec='${libname}${release}${shared_ext}$major'
20118 fi
20119 shlibpath_var=LIBPATH
20120 fi
20121 ;;
20122
20123amigaos*)
20124 case $host_cpu in
20125 powerpc)
20126 # Since July 2007 AmigaOS4 officially supports .so libraries.
20127 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20129 ;;
20130 m68k)
20131 library_names_spec='$libname.ixlibrary $libname.a'
20132 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020133 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 +000020134 ;;
20135 esac
20136 ;;
20137
20138beos*)
20139 library_names_spec='${libname}${shared_ext}'
20140 dynamic_linker="$host_os ld.so"
20141 shlibpath_var=LIBRARY_PATH
20142 ;;
20143
20144bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020145 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020146 need_version=no
20147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20148 soname_spec='${libname}${release}${shared_ext}$major'
20149 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20150 shlibpath_var=LD_LIBRARY_PATH
20151 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20152 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20153 # the default ld.so.conf also contains /usr/contrib/lib and
20154 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20155 # libtool to hard-code these into programs
20156 ;;
20157
20158cygwin* | mingw* | pw32* | cegcc*)
20159 version_type=windows
20160 shrext_cmds=".dll"
20161 need_version=no
20162 need_lib_prefix=no
20163
cristyda16f162011-02-19 23:52:17 +000020164 case $GCC,$cc_basename in
20165 yes,*)
20166 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020167 library_names_spec='$libname.dll.a'
20168 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20169 postinstall_cmds='base_file=`basename \${file}`~
20170 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20171 dldir=$destdir/`dirname \$dlpath`~
20172 test -d \$dldir || mkdir -p \$dldir~
20173 $install_prog $dir/$dlname \$dldir/$dlname~
20174 chmod a+x \$dldir/$dlname~
20175 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20176 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20177 fi'
20178 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20179 dlpath=$dir/\$dldll~
20180 $RM \$dlpath'
20181 shlibpath_overrides_runpath=yes
20182
20183 case $host_os in
20184 cygwin*)
20185 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20186 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020187
cristy73bd4a52010-10-05 11:24:23 +000020188 ;;
20189 mingw* | cegcc*)
20190 # MinGW DLLs use traditional 'lib' prefix
20191 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020192 ;;
20193 pw32*)
20194 # pw32 DLLs use 'pw' prefix rather than 'lib'
20195 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20196 ;;
20197 esac
cristyda16f162011-02-19 23:52:17 +000020198 dynamic_linker='Win32 ld.exe'
20199 ;;
20200
20201 *,cl*)
20202 # Native MSVC
20203 libname_spec='$name'
20204 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20205 library_names_spec='${libname}.dll.lib'
20206
20207 case $build_os in
20208 mingw*)
20209 sys_lib_search_path_spec=
20210 lt_save_ifs=$IFS
20211 IFS=';'
20212 for lt_path in $LIB
20213 do
20214 IFS=$lt_save_ifs
20215 # Let DOS variable expansion print the short 8.3 style file name.
20216 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20217 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20218 done
20219 IFS=$lt_save_ifs
20220 # Convert to MSYS style.
20221 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20222 ;;
20223 cygwin*)
20224 # Convert to unix form, then to dos form, then back to unix form
20225 # but this time dos style (no spaces!) so that the unix form looks
20226 # like /cygdrive/c/PROGRA~1:/cygdr...
20227 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20228 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20229 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20230 ;;
20231 *)
20232 sys_lib_search_path_spec="$LIB"
20233 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20234 # It is most probably a Windows format PATH.
20235 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20236 else
20237 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20238 fi
20239 # FIXME: find the short name or the path components, as spaces are
20240 # common. (e.g. "Program Files" -> "PROGRA~1")
20241 ;;
20242 esac
20243
20244 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20245 postinstall_cmds='base_file=`basename \${file}`~
20246 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20247 dldir=$destdir/`dirname \$dlpath`~
20248 test -d \$dldir || mkdir -p \$dldir~
20249 $install_prog $dir/$dlname \$dldir/$dlname'
20250 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20251 dlpath=$dir/\$dldll~
20252 $RM \$dlpath'
20253 shlibpath_overrides_runpath=yes
20254 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020255 ;;
20256
20257 *)
cristyda16f162011-02-19 23:52:17 +000020258 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020259 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020260 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020261 ;;
20262 esac
cristy73bd4a52010-10-05 11:24:23 +000020263 # FIXME: first we should search . and the directory the executable is in
20264 shlibpath_var=PATH
20265 ;;
20266
20267darwin* | rhapsody*)
20268 dynamic_linker="$host_os dyld"
20269 version_type=darwin
20270 need_lib_prefix=no
20271 need_version=no
20272 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20273 soname_spec='${libname}${release}${major}$shared_ext'
20274 shlibpath_overrides_runpath=yes
20275 shlibpath_var=DYLD_LIBRARY_PATH
20276 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20277
20278 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20279 ;;
20280
20281dgux*)
cristy99bd5232011-12-07 14:38:20 +000020282 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020283 need_lib_prefix=no
20284 need_version=no
20285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20286 soname_spec='${libname}${release}${shared_ext}$major'
20287 shlibpath_var=LD_LIBRARY_PATH
20288 ;;
20289
cristy73bd4a52010-10-05 11:24:23 +000020290freebsd* | dragonfly*)
20291 # DragonFly does not have aout. When/if they implement a new
20292 # versioning mechanism, adjust this.
20293 if test -x /usr/bin/objformat; then
20294 objformat=`/usr/bin/objformat`
20295 else
20296 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020297 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020298 *) objformat=elf ;;
20299 esac
20300 fi
20301 version_type=freebsd-$objformat
20302 case $version_type in
20303 freebsd-elf*)
20304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20305 need_version=no
20306 need_lib_prefix=no
20307 ;;
20308 freebsd-*)
20309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20310 need_version=yes
20311 ;;
20312 esac
20313 shlibpath_var=LD_LIBRARY_PATH
20314 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020315 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020316 shlibpath_overrides_runpath=yes
20317 ;;
20318 freebsd3.[01]* | freebsdelf3.[01]*)
20319 shlibpath_overrides_runpath=yes
20320 hardcode_into_libs=yes
20321 ;;
20322 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20323 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20324 shlibpath_overrides_runpath=no
20325 hardcode_into_libs=yes
20326 ;;
20327 *) # from 4.6 on, and DragonFly
20328 shlibpath_overrides_runpath=yes
20329 hardcode_into_libs=yes
20330 ;;
20331 esac
20332 ;;
20333
20334gnu*)
cristy99bd5232011-12-07 14:38:20 +000020335 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020336 need_lib_prefix=no
20337 need_version=no
20338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20339 soname_spec='${libname}${release}${shared_ext}$major'
20340 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020341 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020342 hardcode_into_libs=yes
20343 ;;
20344
cristy0c60a692010-11-04 01:09:47 +000020345haiku*)
cristy99bd5232011-12-07 14:38:20 +000020346 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020347 need_lib_prefix=no
20348 need_version=no
20349 dynamic_linker="$host_os runtime_loader"
20350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20351 soname_spec='${libname}${release}${shared_ext}$major'
20352 shlibpath_var=LIBRARY_PATH
20353 shlibpath_overrides_runpath=yes
20354 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20355 hardcode_into_libs=yes
20356 ;;
20357
cristy73bd4a52010-10-05 11:24:23 +000020358hpux9* | hpux10* | hpux11*)
20359 # Give a soname corresponding to the major version so that dld.sl refuses to
20360 # link against other versions.
20361 version_type=sunos
20362 need_lib_prefix=no
20363 need_version=no
20364 case $host_cpu in
20365 ia64*)
20366 shrext_cmds='.so'
20367 hardcode_into_libs=yes
20368 dynamic_linker="$host_os dld.so"
20369 shlibpath_var=LD_LIBRARY_PATH
20370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20372 soname_spec='${libname}${release}${shared_ext}$major'
20373 if test "X$HPUX_IA64_MODE" = X32; then
20374 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20375 else
20376 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20377 fi
20378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20379 ;;
20380 hppa*64*)
20381 shrext_cmds='.sl'
20382 hardcode_into_libs=yes
20383 dynamic_linker="$host_os dld.sl"
20384 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20387 soname_spec='${libname}${release}${shared_ext}$major'
20388 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20390 ;;
20391 *)
20392 shrext_cmds='.sl'
20393 dynamic_linker="$host_os dld.sl"
20394 shlibpath_var=SHLIB_PATH
20395 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20397 soname_spec='${libname}${release}${shared_ext}$major'
20398 ;;
20399 esac
cristy0c60a692010-11-04 01:09:47 +000020400 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020401 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020402 # or fails outright, so override atomically:
20403 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020404 ;;
20405
20406interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020407 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020408 need_lib_prefix=no
20409 need_version=no
20410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20411 soname_spec='${libname}${release}${shared_ext}$major'
20412 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20413 shlibpath_var=LD_LIBRARY_PATH
20414 shlibpath_overrides_runpath=no
20415 hardcode_into_libs=yes
20416 ;;
20417
20418irix5* | irix6* | nonstopux*)
20419 case $host_os in
20420 nonstopux*) version_type=nonstopux ;;
20421 *)
20422 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020423 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020424 else
20425 version_type=irix
20426 fi ;;
20427 esac
20428 need_lib_prefix=no
20429 need_version=no
20430 soname_spec='${libname}${release}${shared_ext}$major'
20431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20432 case $host_os in
20433 irix5* | nonstopux*)
20434 libsuff= shlibsuff=
20435 ;;
20436 *)
20437 case $LD in # libtool.m4 will add one of these switches to LD
20438 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20439 libsuff= shlibsuff= libmagic=32-bit;;
20440 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20441 libsuff=32 shlibsuff=N32 libmagic=N32;;
20442 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20443 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20444 *) libsuff= shlibsuff= libmagic=never-match;;
20445 esac
20446 ;;
20447 esac
20448 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20449 shlibpath_overrides_runpath=no
20450 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20451 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20452 hardcode_into_libs=yes
20453 ;;
20454
20455# No shared lib support for Linux oldld, aout, or coff.
20456linux*oldld* | linux*aout* | linux*coff*)
20457 dynamic_linker=no
20458 ;;
20459
cristy99bd5232011-12-07 14:38:20 +000020460# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020461linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020462 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020463 need_lib_prefix=no
20464 need_version=no
20465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20466 soname_spec='${libname}${release}${shared_ext}$major'
20467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20468 shlibpath_var=LD_LIBRARY_PATH
20469 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020470
cristy73bd4a52010-10-05 11:24:23 +000020471 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020472 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020473 $as_echo_n "(cached) " >&6
20474else
20475 lt_cv_shlibpath_overrides_runpath=no
20476 save_LDFLAGS=$LDFLAGS
20477 save_libdir=$libdir
20478 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20479 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020481/* end confdefs.h. */
20482
20483int
20484main ()
20485{
20486
20487 ;
20488 return 0;
20489}
20490_ACEOF
20491if ac_fn_cxx_try_link "$LINENO"; then :
20492 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020493 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020494fi
20495fi
20496rm -f core conftest.err conftest.$ac_objext \
20497 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020498 LDFLAGS=$save_LDFLAGS
20499 libdir=$save_libdir
20500
20501fi
20502
20503 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020504
20505 # This implies no fast_install, which is unacceptable.
20506 # Some rework will be needed to allow for fast_install
20507 # before this can be enabled.
20508 hardcode_into_libs=yes
20509
20510 # Add ABI-specific directories to the system library path.
20511 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20512
20513 # Append ld.so.conf contents to the search path
20514 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020515 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 +000020516 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020517
cristy73bd4a52010-10-05 11:24:23 +000020518 fi
20519
20520 # We used to test for /lib/ld.so.1 and disable shared libraries on
20521 # powerpc, because MkLinux only supported shared libraries with the
20522 # GNU dynamic linker. Since this was broken with cross compilers,
20523 # most powerpc-linux boxes support dynamic linking these days and
20524 # people can always --disable-shared, the test was removed, and we
20525 # assume the GNU/Linux dynamic linker is in use.
20526 dynamic_linker='GNU/Linux ld.so'
20527 ;;
20528
20529netbsd*)
20530 version_type=sunos
20531 need_lib_prefix=no
20532 need_version=no
20533 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20536 dynamic_linker='NetBSD (a.out) ld.so'
20537 else
20538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20539 soname_spec='${libname}${release}${shared_ext}$major'
20540 dynamic_linker='NetBSD ld.elf_so'
20541 fi
20542 shlibpath_var=LD_LIBRARY_PATH
20543 shlibpath_overrides_runpath=yes
20544 hardcode_into_libs=yes
20545 ;;
20546
20547newsos6)
cristy99bd5232011-12-07 14:38:20 +000020548 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20550 shlibpath_var=LD_LIBRARY_PATH
20551 shlibpath_overrides_runpath=yes
20552 ;;
20553
20554*nto* | *qnx*)
20555 version_type=qnx
20556 need_lib_prefix=no
20557 need_version=no
20558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20559 soname_spec='${libname}${release}${shared_ext}$major'
20560 shlibpath_var=LD_LIBRARY_PATH
20561 shlibpath_overrides_runpath=no
20562 hardcode_into_libs=yes
20563 dynamic_linker='ldqnx.so'
20564 ;;
20565
20566openbsd*)
20567 version_type=sunos
20568 sys_lib_dlsearch_path_spec="/usr/lib"
20569 need_lib_prefix=no
20570 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20571 case $host_os in
20572 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20573 *) need_version=no ;;
20574 esac
20575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20576 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20577 shlibpath_var=LD_LIBRARY_PATH
20578 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20579 case $host_os in
20580 openbsd2.[89] | openbsd2.[89].*)
20581 shlibpath_overrides_runpath=no
20582 ;;
20583 *)
20584 shlibpath_overrides_runpath=yes
20585 ;;
20586 esac
20587 else
20588 shlibpath_overrides_runpath=yes
20589 fi
20590 ;;
20591
20592os2*)
20593 libname_spec='$name'
20594 shrext_cmds=".dll"
20595 need_lib_prefix=no
20596 library_names_spec='$libname${shared_ext} $libname.a'
20597 dynamic_linker='OS/2 ld.exe'
20598 shlibpath_var=LIBPATH
20599 ;;
20600
20601osf3* | osf4* | osf5*)
20602 version_type=osf
20603 need_lib_prefix=no
20604 need_version=no
20605 soname_spec='${libname}${release}${shared_ext}$major'
20606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20607 shlibpath_var=LD_LIBRARY_PATH
20608 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20609 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20610 ;;
20611
20612rdos*)
20613 dynamic_linker=no
20614 ;;
20615
20616solaris*)
cristy99bd5232011-12-07 14:38:20 +000020617 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020618 need_lib_prefix=no
20619 need_version=no
20620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20621 soname_spec='${libname}${release}${shared_ext}$major'
20622 shlibpath_var=LD_LIBRARY_PATH
20623 shlibpath_overrides_runpath=yes
20624 hardcode_into_libs=yes
20625 # ldd complains unless libraries are executable
20626 postinstall_cmds='chmod +x $lib'
20627 ;;
20628
20629sunos4*)
20630 version_type=sunos
20631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20632 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20633 shlibpath_var=LD_LIBRARY_PATH
20634 shlibpath_overrides_runpath=yes
20635 if test "$with_gnu_ld" = yes; then
20636 need_lib_prefix=no
20637 fi
20638 need_version=yes
20639 ;;
20640
20641sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020642 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20644 soname_spec='${libname}${release}${shared_ext}$major'
20645 shlibpath_var=LD_LIBRARY_PATH
20646 case $host_vendor in
20647 sni)
20648 shlibpath_overrides_runpath=no
20649 need_lib_prefix=no
20650 runpath_var=LD_RUN_PATH
20651 ;;
20652 siemens)
20653 need_lib_prefix=no
20654 ;;
20655 motorola)
20656 need_lib_prefix=no
20657 need_version=no
20658 shlibpath_overrides_runpath=no
20659 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20660 ;;
20661 esac
20662 ;;
20663
20664sysv4*MP*)
20665 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020666 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020667 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20668 soname_spec='$libname${shared_ext}.$major'
20669 shlibpath_var=LD_LIBRARY_PATH
20670 fi
20671 ;;
20672
20673sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20674 version_type=freebsd-elf
20675 need_lib_prefix=no
20676 need_version=no
20677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20678 soname_spec='${libname}${release}${shared_ext}$major'
20679 shlibpath_var=LD_LIBRARY_PATH
20680 shlibpath_overrides_runpath=yes
20681 hardcode_into_libs=yes
20682 if test "$with_gnu_ld" = yes; then
20683 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20684 else
20685 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20686 case $host_os in
20687 sco3.2v5*)
20688 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20689 ;;
20690 esac
20691 fi
20692 sys_lib_dlsearch_path_spec='/usr/lib'
20693 ;;
20694
20695tpf*)
20696 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020697 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020698 need_lib_prefix=no
20699 need_version=no
20700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20701 shlibpath_var=LD_LIBRARY_PATH
20702 shlibpath_overrides_runpath=no
20703 hardcode_into_libs=yes
20704 ;;
20705
20706uts4*)
cristy99bd5232011-12-07 14:38:20 +000020707 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20709 soname_spec='${libname}${release}${shared_ext}$major'
20710 shlibpath_var=LD_LIBRARY_PATH
20711 ;;
20712
20713*)
20714 dynamic_linker=no
20715 ;;
20716esac
20717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20718$as_echo "$dynamic_linker" >&6; }
20719test "$dynamic_linker" = no && can_build_shared=no
20720
20721variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20722if test "$GCC" = yes; then
20723 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20724fi
20725
20726if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20727 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20728fi
20729if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20730 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20731fi
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
cristy0c60a692010-11-04 01:09:47 +000020768
20769
cristy73bd4a52010-10-05 11:24:23 +000020770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20771$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20772hardcode_action_CXX=
20773if test -n "$hardcode_libdir_flag_spec_CXX" ||
20774 test -n "$runpath_var_CXX" ||
20775 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20776
20777 # We can hardcode non-existent directories.
20778 if test "$hardcode_direct_CXX" != no &&
20779 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20780 # have to relink, otherwise we might link with an installed library
20781 # when we should be linking with a yet-to-be-installed one
20782 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20783 test "$hardcode_minus_L_CXX" != no; then
20784 # Linking always hardcodes the temporary library directory.
20785 hardcode_action_CXX=relink
20786 else
20787 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20788 hardcode_action_CXX=immediate
20789 fi
20790else
20791 # We cannot hardcode anything, or else we can only hardcode existing
20792 # directories.
20793 hardcode_action_CXX=unsupported
20794fi
20795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20796$as_echo "$hardcode_action_CXX" >&6; }
20797
20798if test "$hardcode_action_CXX" = relink ||
20799 test "$inherit_rpath_CXX" = yes; then
20800 # Fast installation is not supported
20801 enable_fast_install=no
20802elif test "$shlibpath_overrides_runpath" = yes ||
20803 test "$enable_shared" = no; then
20804 # Fast installation is not necessary
20805 enable_fast_install=needless
20806fi
20807
20808
20809
20810
20811
20812
20813
20814 fi # test -n "$compiler"
20815
20816 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020817 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020818 LDCXX=$LD
20819 LD=$lt_save_LD
20820 GCC=$lt_save_GCC
20821 with_gnu_ld=$lt_save_with_gnu_ld
20822 lt_cv_path_LDCXX=$lt_cv_path_LD
20823 lt_cv_path_LD=$lt_save_path_LD
20824 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20825 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20826fi # test "$_lt_caught_CXX_error" != yes
20827
20828ac_ext=c
20829ac_cpp='$CPP $CPPFLAGS'
20830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20832ac_compiler_gnu=$ac_cv_c_compiler_gnu
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
cristy99bd5232011-12-07 14:38:20 +000020846
20847
cristy73bd4a52010-10-05 11:24:23 +000020848 ac_config_commands="$ac_config_commands libtool"
20849
20850
20851
20852
20853# Only expand once:
20854
20855
20856
cristy3ed852e2009-09-05 21:47:34 +000020857
20858
cristy3ed852e2009-09-05 21:47:34 +000020859# Check to see if building shared libraries
20860libtool_build_shared_libs='no'
20861if test "$enable_shared" = 'yes'; then
20862 libtool_build_shared_libs='yes'
20863fi
20864
20865# Check to see if building static libraries
20866libtool_build_static_libs='no'
20867if test "$enable_static" = 'yes'; then
20868 libtool_build_static_libs='yes'
20869fi
20870
cristy73bd4a52010-10-05 11:24:23 +000020871 if test "${libtool_build_shared_libs}" = 'yes'; then
20872 WITH_SHARED_LIBS_TRUE=
20873 WITH_SHARED_LIBS_FALSE='#'
20874else
20875 WITH_SHARED_LIBS_TRUE='#'
20876 WITH_SHARED_LIBS_FALSE=
20877fi
20878
cristy3ed852e2009-09-05 21:47:34 +000020879#
20880# Enable support for building loadable modules
20881#
cristyaf4cbf32012-10-16 23:47:41 +000020882build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020883
20884# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020885if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020886 withval=$with_modules; with_modules=$withval
20887else
cristy5a1cefd2010-01-06 20:42:35 +000020888 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020889fi
20890
20891
20892# Only allow building loadable modules if we are building shared libraries
20893if test "$with_modules" != 'no' ; then
20894 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020895 { $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 +000020896$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020897 build_modules='no'
20898 else
20899 build_modules='yes'
20900 fi
cristy3ed852e2009-09-05 21:47:34 +000020901fi
cristyc6722092012-10-14 00:19:31 +000020902if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020903
cristy8b350f62009-11-15 23:12:43 +000020904$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020905
cristyfa161182012-12-19 15:45:28 +000020906 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020907fi
cristyc6722092012-10-14 00:19:31 +000020908 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020909 WITH_MODULES_TRUE=
20910 WITH_MODULES_FALSE='#'
20911else
20912 WITH_MODULES_TRUE='#'
20913 WITH_MODULES_FALSE=
20914fi
20915
cristy3ed852e2009-09-05 21:47:34 +000020916
cristy3ed852e2009-09-05 21:47:34 +000020917# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020918# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020919# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020920if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020921 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20922else
20923 enable_delegate_build='no'
20924fi
20925
20926
20927# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020928if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020929 enableval=$enable_deprecated; enable_deprecated=$enableval
20930else
20931 enable_deprecated='no'
20932fi
20933
20934
20935if test "$enable_deprecated" = 'yes'; then
20936
cristy8b350f62009-11-15 23:12:43 +000020937$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020938
20939else
20940 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20941fi
20942
20943# Build a version of ImageMagick which operates uninstalled.
20944# Used to build distributions located via MAGICK_HOME / executable path
20945# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020946if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020947 enableval=$enable_installed; enable_installed=$enableval
20948else
20949 enable_installed='yes'
20950fi
20951
20952
20953if test "$enable_installed" = 'yes'; then
20954
cristy8b350f62009-11-15 23:12:43 +000020955$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020956
20957else
20958 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20959fi
20960
20961# Permit enciphering and deciphering image pixels.
20962# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020963if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020964 enableval=$enable_cipher; enable_cipher=$enableval
20965else
20966 enable_cipher='yes'
20967fi
20968
20969
20970if test "$enable_cipher" = 'yes'; then
20971
cristy8b350f62009-11-15 23:12:43 +000020972$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020973
20974fi
20975
cristy6e3607c2011-09-13 13:59:17 +000020976# Build a zero-configuration version of ImageMagick.
20977# Check whether --enable-zero-configuration was given.
20978if test "${enable_zero_configuration+set}" = set; then :
20979 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020980else
cristy6e3607c2011-09-13 13:59:17 +000020981 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020982fi
20983
20984
cristy6e3607c2011-09-13 13:59:17 +000020985if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020986
cristy6e3607c2011-09-13 13:59:17 +000020987$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020988
cristy81af5702011-09-13 14:20:58 +000020989 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020990fi
20991
20992# Build a high dynamic range version of ImageMagick.
20993# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020994if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020995 enableval=$enable_hdri; enable_hdri=$enableval
20996else
cristy191c0b72012-08-12 16:29:52 +000020997 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000020998fi
20999
21000
21001MAGICK_HDRI=""
21002if test "$enable_hdri" = 'yes'; then
21003 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021004 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021005 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021006else
21007 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021008fi
21009
cristye52f12f2012-12-31 15:32:36 +000021010cat >>confdefs.h <<_ACEOF
21011#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21012_ACEOF
21013
21014MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21015CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021016CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021017
cristy3ed852e2009-09-05 21:47:34 +000021018# Build a version of ImageMagick with assert statements.
21019# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021020if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021021 enableval=$enable_assert; enable_assert=$enableval
21022else
21023 enable_assert='yes'
21024fi
21025
21026
21027if test "$enable_assert" = 'no'; then
21028
cristy8b350f62009-11-15 23:12:43 +000021029$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021030
21031fi
21032
cristya448bd22011-10-14 12:38:13 +000021033# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021034
21035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21036$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21037 # Check whether --enable-maintainer-mode was given.
21038if test "${enable_maintainer_mode+set}" = set; then :
21039 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21040else
21041 USE_MAINTAINER_MODE=no
21042fi
21043
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21045$as_echo "$USE_MAINTAINER_MODE" >&6; }
21046 if test $USE_MAINTAINER_MODE = yes; then
21047 MAINTAINER_MODE_TRUE=
21048 MAINTAINER_MODE_FALSE='#'
21049else
21050 MAINTAINER_MODE_TRUE='#'
21051 MAINTAINER_MODE_FALSE=
21052fi
21053
21054 MAINT=$MAINTAINER_MODE_TRUE
21055
21056
cristy3ed852e2009-09-05 21:47:34 +000021057
cristy3ed852e2009-09-05 21:47:34 +000021058# Enable ccmalloc memory debugging support
21059# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021060if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021061 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21062else
21063 enable_ccmalloc='no'
21064fi
21065
21066
21067# Enable Electric Fence memory debugging support
21068# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021069if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021070 enableval=$enable_efence; enable_efence=$enableval
21071else
21072 enable_efence='no'
21073fi
21074
21075
21076# Enable prof-based profiling support
21077# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021078if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021079 enableval=$enable_prof; enable_prof=$enableval
21080else
21081 enable_prof='no'
21082fi
21083
21084
21085# Enable gprof-based profiling support
21086# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021087if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021088 enableval=$enable_gprof; enable_gprof=$enableval
21089else
21090 enable_gprof='no'
21091fi
21092
21093
21094# Enable gcov-based profiling support
21095# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021096if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021097 enableval=$enable_gcov; enable_gcov=$enableval
21098else
21099 enable_gcov='no'
21100fi
21101
21102
21103enable_profiling='no'
21104if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21105 enable_profiling='yes'
21106 if test "$libtool_build_shared_libs" = 'yes'; then
21107 echo "Warning: Can not profile code using shared libraries"
21108 fi
21109fi
21110
21111# Magick API method prefix
21112
21113# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021114if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021115 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021116else
cristyfc3d0222012-02-07 15:05:57 +000021117 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021118fi
21119
21120
cristyfc3d0222012-02-07 15:05:57 +000021121if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021122
21123cat >>confdefs.h <<_ACEOF
21124#define NAMESPACE_PREFIX $with_method_prefix
21125_ACEOF
21126
cristyfc3d0222012-02-07 15:05:57 +000021127 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021128fi
21129
cristy71d8c202012-03-20 17:05:01 +000021130# Enable legacy support (default no)
21131# Check whether --enable-legacy-support was given.
21132if test "${enable_legacy_support+set}" = set; then :
21133 enableval=$enable_legacy_support; with_legacy_support=$enableval
21134else
21135 with_legacy_support='no'
21136fi
21137
21138 if test "$with_legacy_support" != 'no'; then
21139 LEGACY_SUPPORT_TRUE=
21140 LEGACY_SUPPORT_FALSE='#'
21141else
21142 LEGACY_SUPPORT_TRUE='#'
21143 LEGACY_SUPPORT_FALSE=
21144fi
21145
21146
cristy3ed852e2009-09-05 21:47:34 +000021147# Number of bits in a Quantum
21148
21149# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021150if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021151 withval=$with_quantum_depth; with_quantum_depth=$withval
21152else
21153 with_quantum_depth=16
21154fi
21155
21156
21157if test "$with_quantum_depth" != '8'; then
21158 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21159fi
21160
21161case "${with_quantum_depth}" in
21162 8 ) ;;
21163 16 ) ;;
21164 32 ) ;;
21165 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021166 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021167esac
21168QUANTUM_DEPTH="$with_quantum_depth"
21169
21170cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021171#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021172_ACEOF
21173
cristya371edf2013-02-06 13:42:17 +000021174MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021175CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021176CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021177
cristy01ff9f32012-12-01 18:15:29 +000021178# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021179MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021180if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021181 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021182fi
cristy01ff9f32012-12-01 18:15:29 +000021183
21184
cristy3ed852e2009-09-05 21:47:34 +000021185# Set pixel cache threshold
21186
21187# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021188if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021189 withval=$with_cache; with_cache=$withval
21190else
21191 with_cache=''
21192fi
21193
21194
21195if test "$with_cache" != ''; then
21196
21197cat >>confdefs.h <<_ACEOF
21198#define PixelCacheThreshold $with_cache
21199_ACEOF
21200
21201 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21202fi
21203
21204# Disable/Enable support for full delegate paths
21205
21206# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021207if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021208 withval=$with_frozenpaths; with_frozenpaths=$withval
21209else
21210 with_frozenpaths='no'
21211fi
21212
21213
21214# Enable build/install of Magick++
21215
21216# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021217if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021218 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21219else
21220 with_magick_plus_plus='yes'
21221fi
21222
21223
cristy3a75f062012-09-08 23:29:40 +000021224# Encode the this name into the shared library.
21225
21226# Check whether --with-package-release-name was given.
21227if test "${with_package_release_name+set}" = set; then :
21228 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21229fi
21230
21231
21232
cristy3ed852e2009-09-05 21:47:34 +000021233# Disable build/install of PerlMagick.
21234
21235# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021236if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021237 withval=$with_perl; with_perl=$withval
21238else
cristyb5f4e2f2010-04-25 00:49:11 +000021239 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021240fi
21241
21242
21243# Options to pass when configuring PerlMagick
21244
21245# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021246if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021247 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021248fi
21249
21250
cristy3ed852e2009-09-05 21:47:34 +000021251
21252# Enable umem, object-caching memory allocation library.
21253
21254# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021255if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021256 withval=$with_umem; with_umem=$withval
21257else
21258 with_umem='no'
21259fi
21260
21261if test "$with_umem" != 'yes' ; then
21262 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21263fi
21264
21265#
21266# Specify path to shared libstdc++ if not in normal location
21267#
21268
21269# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021270if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021271 withval=$with_libstdc; with_libstdc=$withval
21272else
21273 with_libstdc=''
21274fi
21275
21276
21277if test "$with_libstdc" != ''; then
21278 if test -d "$with_libstdc"; then
21279 LIBSTDCLDFLAGS="-L$with_libstdc"
21280 fi
21281fi
21282
21283
21284# Does gcc required -traditional?
21285if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021287$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021288if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021289 $as_echo_n "(cached) " >&6
21290else
21291 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021293/* end confdefs.h. */
21294#include <sgtty.h>
21295Autoconf TIOCGETP
21296_ACEOF
21297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021298 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021299 ac_cv_prog_gcc_traditional=yes
21300else
21301 ac_cv_prog_gcc_traditional=no
21302fi
21303rm -f conftest*
21304
21305
21306 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021308/* end confdefs.h. */
21309#include <termio.h>
21310Autoconf TCGETA
21311_ACEOF
21312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021313 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021314 ac_cv_prog_gcc_traditional=yes
21315fi
21316rm -f conftest*
21317
21318 fi
21319fi
cristy8b350f62009-11-15 23:12:43 +000021320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021321$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21322 if test $ac_cv_prog_gcc_traditional = yes; then
21323 CC="$CC -traditional"
21324 fi
21325fi
21326
21327
21328########
21329#
21330# Set defines required to build DLLs and modules using MinGW
21331#
21332########
21333# These options are set for multi-thread DLL module build
21334# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21335# module: _DLL
21336# executable/Magick++: _DLL _MAGICKMOD_
21337MODULE_EXTRA_CPPFLAGS=''
21338LIBRARY_EXTRA_CPPFLAGS=''
21339if test "${native_win32_build}" = 'yes'; then
21340 if test "${libtool_build_shared_libs}" = 'yes'; then
21341 CPPFLAGS="$CPPFLAGS -D_DLL"
21342 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21343 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21344 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021345 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021346 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21347 else
21348 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21349 fi
21350 else
21351 CPPFLAGS="$CPPFLAGS -D_LIB"
21352 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21353 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21354 fi
21355 if test "$with_threads" = 'yes'; then
21356 CPPFLAGS="$CPPFLAGS -D_MT"
21357 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21358 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21359 fi
21360fi
21361
21362
21363
21364# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021366$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021367if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021368 $as_echo_n "(cached) " >&6
21369else
cristy8b350f62009-11-15 23:12:43 +000021370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021371/* end confdefs.h. */
21372#include <stdlib.h>
21373#include <stdarg.h>
21374#include <string.h>
21375#include <float.h>
21376
21377int
21378main ()
21379{
21380
21381 ;
21382 return 0;
21383}
21384_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021385if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021386 ac_cv_header_stdc=yes
21387else
cristy8b350f62009-11-15 23:12:43 +000021388 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021389fi
cristy3ed852e2009-09-05 21:47:34 +000021390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21391
21392if test $ac_cv_header_stdc = yes; then
21393 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021395/* end confdefs.h. */
21396#include <string.h>
21397
21398_ACEOF
21399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021400 $EGREP "memchr" >/dev/null 2>&1; then :
21401
cristy3ed852e2009-09-05 21:47:34 +000021402else
21403 ac_cv_header_stdc=no
21404fi
21405rm -f conftest*
21406
21407fi
21408
21409if test $ac_cv_header_stdc = yes; then
21410 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021412/* end confdefs.h. */
21413#include <stdlib.h>
21414
21415_ACEOF
21416if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021417 $EGREP "free" >/dev/null 2>&1; then :
21418
cristy3ed852e2009-09-05 21:47:34 +000021419else
21420 ac_cv_header_stdc=no
21421fi
21422rm -f conftest*
21423
21424fi
21425
21426if test $ac_cv_header_stdc = yes; then
21427 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021428 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021429 :
21430else
cristy8b350f62009-11-15 23:12:43 +000021431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021432/* end confdefs.h. */
21433#include <ctype.h>
21434#include <stdlib.h>
21435#if ((' ' & 0x0FF) == 0x020)
21436# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21437# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21438#else
21439# define ISLOWER(c) \
21440 (('a' <= (c) && (c) <= 'i') \
21441 || ('j' <= (c) && (c) <= 'r') \
21442 || ('s' <= (c) && (c) <= 'z'))
21443# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21444#endif
21445
21446#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21447int
21448main ()
21449{
21450 int i;
21451 for (i = 0; i < 256; i++)
21452 if (XOR (islower (i), ISLOWER (i))
21453 || toupper (i) != TOUPPER (i))
21454 return 2;
21455 return 0;
21456}
21457_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021458if ac_fn_c_try_run "$LINENO"; then :
21459
cristy3ed852e2009-09-05 21:47:34 +000021460else
cristy8b350f62009-11-15 23:12:43 +000021461 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021462fi
cristy8b350f62009-11-15 23:12:43 +000021463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21464 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021465fi
21466
cristy3ed852e2009-09-05 21:47:34 +000021467fi
21468fi
cristy8b350f62009-11-15 23:12:43 +000021469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021470$as_echo "$ac_cv_header_stdc" >&6; }
21471if test $ac_cv_header_stdc = yes; then
21472
cristy8b350f62009-11-15 23:12:43 +000021473$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021474
21475fi
21476
21477if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021478 { $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 +000021479 header files. Compilation cannot proceed. Please install the ANSI C
21480 headers and rerun this script." >&5
21481$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21482 header files. Compilation cannot proceed. Please install the ANSI C
21483 headers and rerun this script." >&2;};
21484fi
cristya0b81c32010-01-22 02:54:33 +000021485
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21487$as_echo_n "checking whether to enable assertions... " >&6; }
21488 # Check whether --enable-assert was given.
21489if test "${enable_assert+set}" = set; then :
21490 enableval=$enable_assert; ac_enable_assert=$enableval
21491 if test "x$enableval" = xno; then :
21492
21493$as_echo "#define NDEBUG 1" >>confdefs.h
21494
21495elif test "x$enableval" != xyes; then :
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21497$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21498 ac_enable_assert=yes
21499fi
21500else
21501 ac_enable_assert=yes
21502fi
21503
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21505$as_echo "$ac_enable_assert" >&6; }
21506
cristy3ed852e2009-09-05 21:47:34 +000021507ac_header_dirent=no
21508for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21509 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021511$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021512if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021513 $as_echo_n "(cached) " >&6
21514else
cristy8b350f62009-11-15 23:12:43 +000021515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021516/* end confdefs.h. */
21517#include <sys/types.h>
21518#include <$ac_hdr>
21519
21520int
21521main ()
21522{
21523if ((DIR *) 0)
21524return 0;
21525 ;
21526 return 0;
21527}
21528_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021529if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021530 eval "$as_ac_Header=yes"
21531else
cristy8b350f62009-11-15 23:12:43 +000021532 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021533fi
cristy3ed852e2009-09-05 21:47:34 +000021534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21535fi
cristy8b350f62009-11-15 23:12:43 +000021536eval ac_res=\$$as_ac_Header
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021538$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021539if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021540 cat >>confdefs.h <<_ACEOF
21541#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21542_ACEOF
21543
21544ac_header_dirent=$ac_hdr; break
21545fi
21546
21547done
21548# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21549if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021551$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021552if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021553 $as_echo_n "(cached) " >&6
21554else
21555 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021557/* end confdefs.h. */
21558
21559/* Override any GCC internal prototype to avoid an error.
21560 Use char because int might match the return type of a GCC
21561 builtin and then its argument prototype would still apply. */
21562#ifdef __cplusplus
21563extern "C"
21564#endif
21565char opendir ();
21566int
21567main ()
21568{
21569return opendir ();
21570 ;
21571 return 0;
21572}
21573_ACEOF
21574for ac_lib in '' dir; do
21575 if test -z "$ac_lib"; then
21576 ac_res="none required"
21577 else
21578 ac_res=-l$ac_lib
21579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21580 fi
cristy8b350f62009-11-15 23:12:43 +000021581 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021582 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021583fi
cristy8b350f62009-11-15 23:12:43 +000021584rm -f core conftest.err conftest.$ac_objext \
21585 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021586 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021587 break
21588fi
21589done
cristyda16f162011-02-19 23:52:17 +000021590if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021591
cristy3ed852e2009-09-05 21:47:34 +000021592else
21593 ac_cv_search_opendir=no
21594fi
21595rm conftest.$ac_ext
21596LIBS=$ac_func_search_save_LIBS
21597fi
cristy8b350f62009-11-15 23:12:43 +000021598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021599$as_echo "$ac_cv_search_opendir" >&6; }
21600ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021601if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21603
21604fi
21605
21606else
cristy8b350f62009-11-15 23:12:43 +000021607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021608$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021609if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021610 $as_echo_n "(cached) " >&6
21611else
21612 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021614/* end confdefs.h. */
21615
21616/* Override any GCC internal prototype to avoid an error.
21617 Use char because int might match the return type of a GCC
21618 builtin and then its argument prototype would still apply. */
21619#ifdef __cplusplus
21620extern "C"
21621#endif
21622char opendir ();
21623int
21624main ()
21625{
21626return opendir ();
21627 ;
21628 return 0;
21629}
21630_ACEOF
21631for ac_lib in '' x; do
21632 if test -z "$ac_lib"; then
21633 ac_res="none required"
21634 else
21635 ac_res=-l$ac_lib
21636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21637 fi
cristy8b350f62009-11-15 23:12:43 +000021638 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021639 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021640fi
cristy8b350f62009-11-15 23:12:43 +000021641rm -f core conftest.err conftest.$ac_objext \
21642 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021643 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021644 break
21645fi
21646done
cristyda16f162011-02-19 23:52:17 +000021647if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021648
cristy3ed852e2009-09-05 21:47:34 +000021649else
21650 ac_cv_search_opendir=no
21651fi
21652rm conftest.$ac_ext
21653LIBS=$ac_func_search_save_LIBS
21654fi
cristy8b350f62009-11-15 23:12:43 +000021655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021656$as_echo "$ac_cv_search_opendir" >&6; }
21657ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021658if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21660
21661fi
21662
21663fi
21664
21665
21666# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021667for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000021668do :
21669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21670ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021671if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021672 cat >>confdefs.h <<_ACEOF
21673#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21674_ACEOF
21675
21676fi
21677
21678done
21679
21680
21681########
21682#
21683# Checks for typedefs, structures, and compiler characteristics.
21684#
21685########
21686
cristy8b350f62009-11-15 23:12:43 +000021687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021688$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021689if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021690 $as_echo_n "(cached) " >&6
21691else
cristy8b350f62009-11-15 23:12:43 +000021692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021693/* end confdefs.h. */
21694
cristy14fefe52012-05-21 00:59:18 +000021695 #include <stdbool.h>
21696 #ifndef bool
21697 "error: bool is not defined"
21698 #endif
21699 #ifndef false
21700 "error: false is not defined"
21701 #endif
21702 #if false
21703 "error: false is not 0"
21704 #endif
21705 #ifndef true
21706 "error: true is not defined"
21707 #endif
21708 #if true != 1
21709 "error: true is not 1"
21710 #endif
21711 #ifndef __bool_true_false_are_defined
21712 "error: __bool_true_false_are_defined is not defined"
21713 #endif
cristy3ed852e2009-09-05 21:47:34 +000021714
cristy14fefe52012-05-21 00:59:18 +000021715 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021716
cristy14fefe52012-05-21 00:59:18 +000021717 char a[true == 1 ? 1 : -1];
21718 char b[false == 0 ? 1 : -1];
21719 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21720 char d[(bool) 0.5 == true ? 1 : -1];
21721 /* See body of main program for 'e'. */
21722 char f[(_Bool) 0.0 == false ? 1 : -1];
21723 char g[true];
21724 char h[sizeof (_Bool)];
21725 char i[sizeof s.t];
21726 enum { j = false, k = true, l = false * true, m = true * 256 };
21727 /* The following fails for
21728 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21729 _Bool n[m];
21730 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21731 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21732 /* Catch a bug in an HP-UX C compiler. See
21733 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21734 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21735 */
21736 _Bool q = true;
21737 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021738
21739int
21740main ()
21741{
21742
cristy14fefe52012-05-21 00:59:18 +000021743 bool e = &s;
21744 *pq |= q;
21745 *pq |= ! q;
21746 /* Refer to every declared value, to avoid compiler optimizations. */
21747 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21748 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021749
21750 ;
21751 return 0;
21752}
21753_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021754if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021755 ac_cv_header_stdbool_h=yes
21756else
cristy8b350f62009-11-15 23:12:43 +000021757 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021758fi
cristy3ed852e2009-09-05 21:47:34 +000021759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21760fi
cristy8b350f62009-11-15 23:12:43 +000021761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021762$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021763 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021764if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021765
21766cat >>confdefs.h <<_ACEOF
21767#define HAVE__BOOL 1
21768_ACEOF
21769
21770
21771fi
21772
cristy14fefe52012-05-21 00:59:18 +000021773
cristy3ed852e2009-09-05 21:47:34 +000021774if test $ac_cv_header_stdbool_h = yes; then
21775
cristy8b350f62009-11-15 23:12:43 +000021776$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021777
21778fi
21779
cristy8b350f62009-11-15 23:12:43 +000021780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021781$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021782if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021783 $as_echo_n "(cached) " >&6
21784else
cristy8b350f62009-11-15 23:12:43 +000021785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021786/* end confdefs.h. */
21787
21788int
21789main ()
21790{
21791
21792volatile int x;
21793int * volatile y = (int *) 0;
21794return !x && !y;
21795 ;
21796 return 0;
21797}
21798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021799if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021800 ac_cv_c_volatile=yes
21801else
cristy8b350f62009-11-15 23:12:43 +000021802 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021803fi
cristy3ed852e2009-09-05 21:47:34 +000021804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805fi
cristy8b350f62009-11-15 23:12:43 +000021806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021807$as_echo "$ac_cv_c_volatile" >&6; }
21808if test $ac_cv_c_volatile = no; then
21809
cristy8b350f62009-11-15 23:12:43 +000021810$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021811
21812fi
21813
cristy8b350f62009-11-15 23:12:43 +000021814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021815$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021816if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021817 $as_echo_n "(cached) " >&6
21818else
cristy8b350f62009-11-15 23:12:43 +000021819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021820/* end confdefs.h. */
21821#define x(y) #y
21822
21823char *s = x(teststring);
21824_ACEOF
21825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021826 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021827 ac_cv_c_stringize=no
21828else
21829 ac_cv_c_stringize=yes
21830fi
21831rm -f conftest*
21832
21833fi
cristy8b350f62009-11-15 23:12:43 +000021834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021835$as_echo "$ac_cv_c_stringize" >&6; }
21836if test $ac_cv_c_stringize = yes; then
21837
cristy8b350f62009-11-15 23:12:43 +000021838$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021839
21840fi
21841
cristy8b350f62009-11-15 23:12:43 +000021842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021843$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021844if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021845 $as_echo_n "(cached) " >&6
21846else
cristy8b350f62009-11-15 23:12:43 +000021847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021848/* end confdefs.h. */
21849#include <sys/types.h>
21850#include <sys/stat.h>
21851
21852#if defined S_ISBLK && defined S_IFDIR
21853extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21854#endif
21855
21856#if defined S_ISBLK && defined S_IFCHR
21857extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21858#endif
21859
21860#if defined S_ISLNK && defined S_IFREG
21861extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21862#endif
21863
21864#if defined S_ISSOCK && defined S_IFREG
21865extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21866#endif
21867
21868_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021869if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021870 ac_cv_header_stat_broken=no
21871else
cristy8b350f62009-11-15 23:12:43 +000021872 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021873fi
cristy3ed852e2009-09-05 21:47:34 +000021874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21875fi
cristy8b350f62009-11-15 23:12:43 +000021876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021877$as_echo "$ac_cv_header_stat_broken" >&6; }
21878if test $ac_cv_header_stat_broken = yes; then
21879
cristy8b350f62009-11-15 23:12:43 +000021880$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021881
21882fi
21883
cristy8b350f62009-11-15 23:12:43 +000021884{ $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 +000021885$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021886if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021887 $as_echo_n "(cached) " >&6
21888else
cristy8b350f62009-11-15 23:12:43 +000021889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021890/* end confdefs.h. */
21891#include <sys/types.h>
21892#include <sys/time.h>
21893#include <time.h>
21894
21895int
21896main ()
21897{
21898if ((struct tm *) 0)
21899return 0;
21900 ;
21901 return 0;
21902}
21903_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021904if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021905 ac_cv_header_time=yes
21906else
cristy8b350f62009-11-15 23:12:43 +000021907 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021908fi
cristy3ed852e2009-09-05 21:47:34 +000021909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21910fi
cristy8b350f62009-11-15 23:12:43 +000021911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021912$as_echo "$ac_cv_header_time" >&6; }
21913if test $ac_cv_header_time = yes; then
21914
cristy8b350f62009-11-15 23:12:43 +000021915$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021916
21917fi
21918
cristy8b350f62009-11-15 23:12:43 +000021919{ $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 +000021920$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021921if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021922 $as_echo_n "(cached) " >&6
21923else
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#include <sys/types.h>
21927#include <time.h>
21928
21929int
21930main ()
21931{
21932struct tm tm;
21933 int *p = &tm.tm_sec;
21934 return !p;
21935 ;
21936 return 0;
21937}
21938_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021939if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021940 ac_cv_struct_tm=time.h
21941else
cristy8b350f62009-11-15 23:12:43 +000021942 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021943fi
cristy3ed852e2009-09-05 21:47:34 +000021944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21945fi
cristy8b350f62009-11-15 23:12:43 +000021946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021947$as_echo "$ac_cv_struct_tm" >&6; }
21948if test $ac_cv_struct_tm = sys/time.h; then
21949
cristy8b350f62009-11-15 23:12:43 +000021950$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021951
21952fi
21953
cristy92703d82010-04-26 00:18:18 +000021954ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21955#include <$ac_cv_struct_tm>
21956
21957"
cristyda16f162011-02-19 23:52:17 +000021958if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021959
21960cat >>confdefs.h <<_ACEOF
21961#define HAVE_STRUCT_TM_TM_ZONE 1
21962_ACEOF
21963
21964
21965fi
21966
21967if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21968
21969$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21970
21971else
21972 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21973"
cristyda16f162011-02-19 23:52:17 +000021974if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021975 ac_have_decl=1
21976else
21977 ac_have_decl=0
21978fi
21979
21980cat >>confdefs.h <<_ACEOF
21981#define HAVE_DECL_TZNAME $ac_have_decl
21982_ACEOF
21983
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21985$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021986if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021987 $as_echo_n "(cached) " >&6
21988else
21989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21990/* end confdefs.h. */
21991#include <time.h>
21992#if !HAVE_DECL_TZNAME
21993extern char *tzname[];
21994#endif
21995
21996int
21997main ()
21998{
21999return tzname[0][0];
22000 ;
22001 return 0;
22002}
22003_ACEOF
22004if ac_fn_c_try_link "$LINENO"; then :
22005 ac_cv_var_tzname=yes
22006else
22007 ac_cv_var_tzname=no
22008fi
22009rm -f core conftest.err conftest.$ac_objext \
22010 conftest$ac_exeext conftest.$ac_ext
22011fi
22012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22013$as_echo "$ac_cv_var_tzname" >&6; }
22014 if test $ac_cv_var_tzname = yes; then
22015
22016$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22017
22018 fi
22019fi
22020
cristy8b350f62009-11-15 23:12:43 +000022021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022022$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022023if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022024 $as_echo_n "(cached) " >&6
22025else
22026 echo '#! /bin/cat
22027exit 69
22028' >conftest
22029chmod u+x conftest
22030(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22031if test $? -ne 69; then
22032 ac_cv_sys_interpreter=yes
22033else
22034 ac_cv_sys_interpreter=no
22035fi
22036rm -f conftest
22037fi
cristy8b350f62009-11-15 23:12:43 +000022038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022039$as_echo "$ac_cv_sys_interpreter" >&6; }
22040interpval=$ac_cv_sys_interpreter
22041
22042
cristye80f9cb2013-01-09 01:09:31 +000022043#
22044# Checks for language qualifiers and semantics.
22045#
22046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22047$as_echo_n "checking whether char is unsigned... " >&6; }
22048if ${ac_cv_c_char_unsigned+:} false; then :
22049 $as_echo_n "(cached) " >&6
22050else
22051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22052/* end confdefs.h. */
22053$ac_includes_default
22054int
22055main ()
22056{
22057static int test_array [1 - 2 * !(((char) -1) < 0)];
22058test_array [0] = 0;
22059return test_array [0];
22060
22061 ;
22062 return 0;
22063}
22064_ACEOF
22065if ac_fn_c_try_compile "$LINENO"; then :
22066 ac_cv_c_char_unsigned=no
22067else
22068 ac_cv_c_char_unsigned=yes
22069fi
22070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22071fi
22072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22073$as_echo "$ac_cv_c_char_unsigned" >&6; }
22074if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22075 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22076
22077fi
22078
22079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22080$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22081if ${ac_cv_c_const+:} false; then :
22082 $as_echo_n "(cached) " >&6
22083else
22084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22085/* end confdefs.h. */
22086
22087int
22088main ()
22089{
22090
22091#ifndef __cplusplus
22092 /* Ultrix mips cc rejects this sort of thing. */
22093 typedef int charset[2];
22094 const charset cs = { 0, 0 };
22095 /* SunOS 4.1.1 cc rejects this. */
22096 char const *const *pcpcc;
22097 char **ppc;
22098 /* NEC SVR4.0.2 mips cc rejects this. */
22099 struct point {int x, y;};
22100 static struct point const zero = {0,0};
22101 /* AIX XL C 1.02.0.0 rejects this.
22102 It does not let you subtract one const X* pointer from another in
22103 an arm of an if-expression whose if-part is not a constant
22104 expression */
22105 const char *g = "string";
22106 pcpcc = &g + (g ? g-g : 0);
22107 /* HPUX 7.0 cc rejects these. */
22108 ++pcpcc;
22109 ppc = (char**) pcpcc;
22110 pcpcc = (char const *const *) ppc;
22111 { /* SCO 3.2v4 cc rejects this sort of thing. */
22112 char tx;
22113 char *t = &tx;
22114 char const *s = 0 ? (char *) 0 : (char const *) 0;
22115
22116 *t++ = 0;
22117 if (s) return 0;
22118 }
22119 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22120 int x[] = {25, 17};
22121 const int *foo = &x[0];
22122 ++foo;
22123 }
22124 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22125 typedef const int *iptr;
22126 iptr p = 0;
22127 ++p;
22128 }
22129 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22130 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22131 struct s { int j; const int *ap[3]; } bx;
22132 struct s *b = &bx; b->j = 5;
22133 }
22134 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22135 const int foo = 10;
22136 if (!foo) return 0;
22137 }
22138 return !cs[0] && !zero.x;
22139#endif
22140
22141 ;
22142 return 0;
22143}
22144_ACEOF
22145if ac_fn_c_try_compile "$LINENO"; then :
22146 ac_cv_c_const=yes
22147else
22148 ac_cv_c_const=no
22149fi
22150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22151fi
22152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22153$as_echo "$ac_cv_c_const" >&6; }
22154if test $ac_cv_c_const = no; then
22155
22156$as_echo "#define const /**/" >>confdefs.h
22157
22158fi
22159
cristy8b350f62009-11-15 23:12:43 +000022160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022161$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022162if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022163 $as_echo_n "(cached) " >&6
22164else
22165 ac_cv_c_inline=no
22166for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022168/* end confdefs.h. */
22169#ifndef __cplusplus
22170typedef int foo_t;
22171static $ac_kw foo_t static_foo () {return 0; }
22172$ac_kw foo_t foo () {return 0; }
22173#endif
22174
22175_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022176if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022177 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022178fi
cristy3ed852e2009-09-05 21:47:34 +000022179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22180 test "$ac_cv_c_inline" != no && break
22181done
22182
22183fi
cristy8b350f62009-11-15 23:12:43 +000022184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022185$as_echo "$ac_cv_c_inline" >&6; }
22186
cristy3ed852e2009-09-05 21:47:34 +000022187case $ac_cv_c_inline in
22188 inline | yes) ;;
22189 *)
22190 case $ac_cv_c_inline in
22191 no) ac_val=;;
22192 *) ac_val=$ac_cv_c_inline;;
22193 esac
22194 cat >>confdefs.h <<_ACEOF
22195#ifndef __cplusplus
22196#define inline $ac_val
22197#endif
22198_ACEOF
22199 ;;
22200esac
22201
cristy8b350f62009-11-15 23:12:43 +000022202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022203$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022204if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022205 $as_echo_n "(cached) " >&6
22206else
22207 ac_cv_c_restrict=no
22208 # The order here caters to the fact that C++ does not require restrict.
22209 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022211/* end confdefs.h. */
22212typedef int * int_ptr;
22213 int foo (int_ptr $ac_kw ip) {
22214 return ip[0];
22215 }
22216int
22217main ()
22218{
22219int s[1];
22220 int * $ac_kw t = s;
22221 t[0] = 0;
22222 return foo(t)
22223 ;
22224 return 0;
22225}
22226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022227if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022228 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022229fi
cristy3ed852e2009-09-05 21:47:34 +000022230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22231 test "$ac_cv_c_restrict" != no && break
22232 done
22233
22234fi
cristy8b350f62009-11-15 23:12:43 +000022235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022236$as_echo "$ac_cv_c_restrict" >&6; }
22237
cristy3ed852e2009-09-05 21:47:34 +000022238 case $ac_cv_c_restrict in
22239 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022240 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022241 ;;
22242 *) cat >>confdefs.h <<_ACEOF
22243#define restrict $ac_cv_c_restrict
22244_ACEOF
22245 ;;
22246 esac
22247
cristye80f9cb2013-01-09 01:09:31 +000022248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22249$as_echo_n "checking for working volatile... " >&6; }
22250if ${ac_cv_c_volatile+:} false; then :
22251 $as_echo_n "(cached) " >&6
22252else
22253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22254/* end confdefs.h. */
22255
22256int
22257main ()
22258{
22259
22260volatile int x;
22261int * volatile y = (int *) 0;
22262return !x && !y;
22263 ;
22264 return 0;
22265}
22266_ACEOF
22267if ac_fn_c_try_compile "$LINENO"; then :
22268 ac_cv_c_volatile=yes
22269else
22270 ac_cv_c_volatile=no
22271fi
22272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22273fi
22274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22275$as_echo "$ac_cv_c_volatile" >&6; }
22276if test $ac_cv_c_volatile = no; then
22277
22278$as_echo "#define volatile /**/" >>confdefs.h
22279
22280fi
22281
cristy3ed852e2009-09-05 21:47:34 +000022282
22283# If words are stored with the most significant byte first (like
22284# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022286$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022287if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022288 $as_echo_n "(cached) " >&6
22289else
22290 ac_cv_c_bigendian=unknown
22291 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022293/* end confdefs.h. */
22294#ifndef __APPLE_CC__
22295 not a universal capable compiler
22296 #endif
22297 typedef int dummy;
22298
22299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022300if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022301
22302 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022303 # there are at least two -arch flags with different values.
22304 ac_arch=
22305 ac_prev=
22306 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22307 if test -n "$ac_prev"; then
22308 case $ac_word in
22309 i?86 | x86_64 | ppc | ppc64)
22310 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22311 ac_arch=$ac_word
22312 else
22313 ac_cv_c_bigendian=universal
22314 break
22315 fi
22316 ;;
22317 esac
22318 ac_prev=
22319 elif test "x$ac_word" = "x-arch"; then
22320 ac_prev=arch
22321 fi
22322 done
cristy3ed852e2009-09-05 21:47:34 +000022323fi
cristy3ed852e2009-09-05 21:47:34 +000022324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22325 if test $ac_cv_c_bigendian = unknown; then
22326 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022328/* end confdefs.h. */
22329#include <sys/types.h>
22330 #include <sys/param.h>
22331
22332int
22333main ()
22334{
22335#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22336 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22337 && LITTLE_ENDIAN)
22338 bogus endian macros
22339 #endif
22340
22341 ;
22342 return 0;
22343}
22344_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022345if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022346 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022348/* end confdefs.h. */
22349#include <sys/types.h>
22350 #include <sys/param.h>
22351
22352int
22353main ()
22354{
22355#if BYTE_ORDER != BIG_ENDIAN
22356 not big endian
22357 #endif
22358
22359 ;
22360 return 0;
22361}
22362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022363if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022364 ac_cv_c_bigendian=yes
22365else
cristy8b350f62009-11-15 23:12:43 +000022366 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022367fi
cristy3ed852e2009-09-05 21:47:34 +000022368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022369fi
cristy3ed852e2009-09-05 21:47:34 +000022370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22371 fi
22372 if test $ac_cv_c_bigendian = unknown; then
22373 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022375/* end confdefs.h. */
22376#include <limits.h>
22377
22378int
22379main ()
22380{
22381#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22382 bogus endian macros
22383 #endif
22384
22385 ;
22386 return 0;
22387}
22388_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022389if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022390 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022392/* end confdefs.h. */
22393#include <limits.h>
22394
22395int
22396main ()
22397{
22398#ifndef _BIG_ENDIAN
22399 not big endian
22400 #endif
22401
22402 ;
22403 return 0;
22404}
22405_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022406if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022407 ac_cv_c_bigendian=yes
22408else
cristy8b350f62009-11-15 23:12:43 +000022409 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022410fi
cristy3ed852e2009-09-05 21:47:34 +000022411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022412fi
cristy3ed852e2009-09-05 21:47:34 +000022413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22414 fi
22415 if test $ac_cv_c_bigendian = unknown; then
22416 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022417 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022418 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022420/* end confdefs.h. */
22421short int ascii_mm[] =
22422 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22423 short int ascii_ii[] =
22424 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22425 int use_ascii (int i) {
22426 return ascii_mm[i] + ascii_ii[i];
22427 }
22428 short int ebcdic_ii[] =
22429 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22430 short int ebcdic_mm[] =
22431 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22432 int use_ebcdic (int i) {
22433 return ebcdic_mm[i] + ebcdic_ii[i];
22434 }
22435 extern int foo;
22436
22437int
22438main ()
22439{
22440return use_ascii (foo) == use_ebcdic (foo);
22441 ;
22442 return 0;
22443}
22444_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022445if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022446 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22447 ac_cv_c_bigendian=yes
22448 fi
22449 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22450 if test "$ac_cv_c_bigendian" = unknown; then
22451 ac_cv_c_bigendian=no
22452 else
22453 # finding both strings is unlikely to happen, but who knows?
22454 ac_cv_c_bigendian=unknown
22455 fi
22456 fi
cristy3ed852e2009-09-05 21:47:34 +000022457fi
cristy3ed852e2009-09-05 21:47:34 +000022458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22459else
cristy8b350f62009-11-15 23:12:43 +000022460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022461/* end confdefs.h. */
22462$ac_includes_default
22463int
22464main ()
22465{
22466
22467 /* Are we little or big endian? From Harbison&Steele. */
22468 union
22469 {
22470 long int l;
22471 char c[sizeof (long int)];
22472 } u;
22473 u.l = 1;
22474 return u.c[sizeof (long int) - 1] == 1;
22475
22476 ;
22477 return 0;
22478}
22479_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022480if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022481 ac_cv_c_bigendian=no
22482else
cristy8b350f62009-11-15 23:12:43 +000022483 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022484fi
cristy8b350f62009-11-15 23:12:43 +000022485rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22486 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022487fi
22488
cristy3ed852e2009-09-05 21:47:34 +000022489 fi
22490fi
cristy8b350f62009-11-15 23:12:43 +000022491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022492$as_echo "$ac_cv_c_bigendian" >&6; }
22493 case $ac_cv_c_bigendian in #(
22494 yes)
cristy8b350f62009-11-15 23:12:43 +000022495 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022496;; #(
22497 no)
22498 ;; #(
22499 universal)
22500
cristy8b350f62009-11-15 23:12:43 +000022501$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022502
22503 ;; #(
22504 *)
cristy98dddb52010-11-04 00:30:15 +000022505 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022506 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022507 esac
22508
22509
cristy501c8042011-05-26 17:46:28 +000022510# Define to a suitable type, if standard headers do not define it.
22511ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22512case $ac_cv_c_int8_t in #(
22513 no|yes) ;; #(
22514 *)
cristy3ed852e2009-09-05 21:47:34 +000022515
22516cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022517#define int8_t $ac_cv_c_int8_t
22518_ACEOF
22519;;
22520esac
22521
22522ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22523case $ac_cv_c_int16_t in #(
22524 no|yes) ;; #(
22525 *)
22526
22527cat >>confdefs.h <<_ACEOF
22528#define int16_t $ac_cv_c_int16_t
22529_ACEOF
22530;;
22531esac
22532
22533ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22534case $ac_cv_c_int32_t in #(
22535 no|yes) ;; #(
22536 *)
22537
22538cat >>confdefs.h <<_ACEOF
22539#define int32_t $ac_cv_c_int32_t
22540_ACEOF
22541;;
22542esac
22543
22544ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22545case $ac_cv_c_int64_t in #(
22546 no|yes) ;; #(
22547 *)
22548
22549cat >>confdefs.h <<_ACEOF
22550#define int64_t $ac_cv_c_int64_t
22551_ACEOF
22552;;
22553esac
22554
22555
cristybdabdd62013-03-04 17:43:36 +000022556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22557$as_echo_n "checking for long long int... " >&6; }
22558if ${ac_cv_type_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022559 $as_echo_n "(cached) " >&6
22560else
cristybdabdd62013-03-04 17:43:36 +000022561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022562/* end confdefs.h. */
22563
22564 /* For now, do not test the preprocessor; as of 2007 there are too many
cristybdabdd62013-03-04 17:43:36 +000022565 implementations with broken preprocessors. Perhaps this can
22566 be revisited in 2012. In the meantime, code should not expect
22567 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022568 /* Test literals. */
22569 long long int ll = 9223372036854775807ll;
22570 long long int nll = -9223372036854775807LL;
22571 unsigned long long int ull = 18446744073709551615ULL;
22572 /* Test constant expressions. */
22573 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristybdabdd62013-03-04 17:43:36 +000022574 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022575 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristybdabdd62013-03-04 17:43:36 +000022576 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022577 int i = 63;
22578int
22579main ()
22580{
22581/* Test availability of runtime routines for shift and division. */
22582 long long int llmax = 9223372036854775807ll;
22583 unsigned long long int ullmax = 18446744073709551615ull;
22584 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristybdabdd62013-03-04 17:43:36 +000022585 | (llmax / ll) | (llmax % ll)
22586 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22587 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022588 ;
22589 return 0;
22590}
22591
22592_ACEOF
22593if ac_fn_c_try_link "$LINENO"; then :
cristybdabdd62013-03-04 17:43:36 +000022594 if test "$cross_compiling" = yes; then :
cristy501c8042011-05-26 17:46:28 +000022595 ac_cv_type_long_long_int=yes
22596else
22597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22598/* end confdefs.h. */
22599#include <limits.h>
cristybdabdd62013-03-04 17:43:36 +000022600 #ifndef LLONG_MAX
22601 # define HALF \
22602 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22603 # define LLONG_MAX (HALF - 1 + HALF)
22604 #endif
cristy501c8042011-05-26 17:46:28 +000022605int
22606main ()
22607{
22608long long int n = 1;
cristybdabdd62013-03-04 17:43:36 +000022609 int i;
22610 for (i = 0; ; i++)
22611 {
22612 long long int m = n << i;
22613 if (m >> i != n)
22614 return 1;
22615 if (LLONG_MAX / 2 < m)
22616 break;
22617 }
22618 return 0;
cristy501c8042011-05-26 17:46:28 +000022619 ;
22620 return 0;
22621}
22622_ACEOF
22623if ac_fn_c_try_run "$LINENO"; then :
cristybdabdd62013-03-04 17:43:36 +000022624 ac_cv_type_long_long_int=yes
cristy501c8042011-05-26 17:46:28 +000022625else
22626 ac_cv_type_long_long_int=no
22627fi
22628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22629 conftest.$ac_objext conftest.beam conftest.$ac_ext
22630fi
22631
cristybdabdd62013-03-04 17:43:36 +000022632else
22633 ac_cv_type_long_long_int=no
22634fi
22635rm -f core conftest.err conftest.$ac_objext \
22636 conftest$ac_exeext conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022637fi
22638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22639$as_echo "$ac_cv_type_long_long_int" >&6; }
22640 if test $ac_cv_type_long_long_int = yes; then
22641
22642$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22643
22644 fi
22645
22646
22647
22648 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22649if test "x$ac_cv_type_intmax_t" = xyes; then :
22650
22651$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22652
22653else
22654 test $ac_cv_type_long_long_int = yes \
22655 && ac_type='long long int' \
22656 || ac_type='long int'
22657
22658cat >>confdefs.h <<_ACEOF
22659#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022660_ACEOF
22661
22662fi
22663
22664
cristy501c8042011-05-26 17:46:28 +000022665
22666 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22667if test "x$ac_cv_type_intptr_t" = xyes; then :
22668
22669$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022670
cristy3ed852e2009-09-05 21:47:34 +000022671else
cristy501c8042011-05-26 17:46:28 +000022672 for ac_type in 'int' 'long int' 'long long int'; do
22673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22674/* end confdefs.h. */
22675$ac_includes_default
22676int
22677main ()
22678{
22679static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022680test_array [0] = 0;
22681return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022682
22683 ;
22684 return 0;
22685}
22686_ACEOF
22687if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022688
22689cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022690#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022691_ACEOF
22692
cristy501c8042011-05-26 17:46:28 +000022693 ac_type=
22694fi
22695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22696 test -z "$ac_type" && break
22697 done
cristy3ed852e2009-09-05 21:47:34 +000022698fi
22699
22700
cristy3ed852e2009-09-05 21:47:34 +000022701
cristy501c8042011-05-26 17:46:28 +000022702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22703$as_echo_n "checking for long double... " >&6; }
22704if ${ac_cv_type_long_double+:} false; then :
22705 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022706else
cristy501c8042011-05-26 17:46:28 +000022707 if test "$GCC" = yes; then
22708 ac_cv_type_long_double=yes
22709 else
22710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22711/* end confdefs.h. */
22712/* The Stardent Vistra knows sizeof (long double), but does
22713 not support it. */
22714 long double foo = 0.0L;
22715int
22716main ()
22717{
22718static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22719 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022720test_array [0] = 0;
22721return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022722
cristy501c8042011-05-26 17:46:28 +000022723 ;
22724 return 0;
22725}
cristy3ed852e2009-09-05 21:47:34 +000022726_ACEOF
cristy501c8042011-05-26 17:46:28 +000022727if ac_fn_c_try_compile "$LINENO"; then :
22728 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022729else
cristy501c8042011-05-26 17:46:28 +000022730 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022731fi
cristy501c8042011-05-26 17:46:28 +000022732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22733 fi
cristy3ed852e2009-09-05 21:47:34 +000022734fi
cristy501c8042011-05-26 17:46:28 +000022735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22736$as_echo "$ac_cv_type_long_double" >&6; }
22737 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022738
cristy501c8042011-05-26 17:46:28 +000022739$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022740
cristy501c8042011-05-26 17:46:28 +000022741 fi
22742
cristy3ed852e2009-09-05 21:47:34 +000022743
cristy8b350f62009-11-15 23:12:43 +000022744 { $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 +000022745$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022746if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022747 $as_echo_n "(cached) " >&6
22748else
cristy8b350f62009-11-15 23:12:43 +000022749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022750/* end confdefs.h. */
22751#include <float.h>
22752 long double const a[] =
22753 {
22754 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22755 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22756 };
22757 long double
22758 f (long double x)
22759 {
22760 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22761 + (x ? f (x) : 'c'));
22762 }
22763
22764int
22765main ()
22766{
22767static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22768 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22769 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22770 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22771 && (int) LDBL_EPSILON == 0
22772 )];
cristy14fefe52012-05-21 00:59:18 +000022773test_array [0] = 0;
22774return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022775
22776 ;
22777 return 0;
22778}
22779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022780if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022781 ac_cv_type_long_double_wider=yes
22782else
cristy8b350f62009-11-15 23:12:43 +000022783 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022784fi
cristy3ed852e2009-09-05 21:47:34 +000022785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22786fi
cristy8b350f62009-11-15 23:12:43 +000022787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022788$as_echo "$ac_cv_type_long_double_wider" >&6; }
22789 if test $ac_cv_type_long_double_wider = yes; then
22790
cristy8b350f62009-11-15 23:12:43 +000022791$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022792
22793 fi
22794
22795
cristy501c8042011-05-26 17:46:28 +000022796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22797$as_echo_n "checking for long long int... " >&6; }
22798if ${ac_cv_type_long_long_int+:} false; then :
22799 $as_echo_n "(cached) " >&6
22800else
cristybdabdd62013-03-04 17:43:36 +000022801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22802/* end confdefs.h. */
22803
22804 /* For now, do not test the preprocessor; as of 2007 there are too many
22805 implementations with broken preprocessors. Perhaps this can
22806 be revisited in 2012. In the meantime, code should not expect
22807 #if to work with literals wider than 32 bits. */
22808 /* Test literals. */
22809 long long int ll = 9223372036854775807ll;
22810 long long int nll = -9223372036854775807LL;
22811 unsigned long long int ull = 18446744073709551615ULL;
22812 /* Test constant expressions. */
22813 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22814 ? 1 : -1)];
22815 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22816 ? 1 : -1)];
22817 int i = 63;
22818int
22819main ()
22820{
22821/* Test availability of runtime routines for shift and division. */
22822 long long int llmax = 9223372036854775807ll;
22823 unsigned long long int ullmax = 18446744073709551615ull;
22824 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22825 | (llmax / ll) | (llmax % ll)
22826 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22827 | (ullmax / ull) | (ullmax % ull));
22828 ;
22829 return 0;
22830}
22831
22832_ACEOF
22833if ac_fn_c_try_link "$LINENO"; then :
22834 if test "$cross_compiling" = yes; then :
cristy501c8042011-05-26 17:46:28 +000022835 ac_cv_type_long_long_int=yes
22836else
22837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22838/* end confdefs.h. */
22839#include <limits.h>
cristybdabdd62013-03-04 17:43:36 +000022840 #ifndef LLONG_MAX
22841 # define HALF \
22842 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22843 # define LLONG_MAX (HALF - 1 + HALF)
22844 #endif
cristy501c8042011-05-26 17:46:28 +000022845int
22846main ()
22847{
22848long long int n = 1;
cristybdabdd62013-03-04 17:43:36 +000022849 int i;
22850 for (i = 0; ; i++)
22851 {
22852 long long int m = n << i;
22853 if (m >> i != n)
22854 return 1;
22855 if (LLONG_MAX / 2 < m)
22856 break;
22857 }
22858 return 0;
cristy501c8042011-05-26 17:46:28 +000022859 ;
22860 return 0;
22861}
22862_ACEOF
22863if ac_fn_c_try_run "$LINENO"; then :
cristybdabdd62013-03-04 17:43:36 +000022864 ac_cv_type_long_long_int=yes
cristy501c8042011-05-26 17:46:28 +000022865else
22866 ac_cv_type_long_long_int=no
22867fi
22868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22869 conftest.$ac_objext conftest.beam conftest.$ac_ext
22870fi
22871
cristybdabdd62013-03-04 17:43:36 +000022872else
22873 ac_cv_type_long_long_int=no
22874fi
22875rm -f core conftest.err conftest.$ac_objext \
22876 conftest$ac_exeext conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022877fi
22878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22879$as_echo "$ac_cv_type_long_long_int" >&6; }
22880 if test $ac_cv_type_long_long_int = yes; then
22881
22882$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22883
22884 fi
22885
22886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22887$as_echo_n "checking for mbstate_t... " >&6; }
22888if ${ac_cv_type_mbstate_t+:} false; then :
22889 $as_echo_n "(cached) " >&6
22890else
22891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22892/* end confdefs.h. */
22893$ac_includes_default
22894# include <wchar.h>
22895int
22896main ()
22897{
22898mbstate_t x; return sizeof x;
22899 ;
22900 return 0;
22901}
22902_ACEOF
22903if ac_fn_c_try_compile "$LINENO"; then :
22904 ac_cv_type_mbstate_t=yes
22905else
22906 ac_cv_type_mbstate_t=no
22907fi
22908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22909fi
22910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22911$as_echo "$ac_cv_type_mbstate_t" >&6; }
22912 if test $ac_cv_type_mbstate_t = yes; then
22913
22914$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22915
22916 else
22917
22918$as_echo "#define mbstate_t int" >>confdefs.h
22919
22920 fi
22921ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22922if test "x$ac_cv_type_mode_t" = xyes; then :
22923
22924else
22925
22926cat >>confdefs.h <<_ACEOF
22927#define mode_t int
22928_ACEOF
22929
22930fi
22931
22932ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22933if test "x$ac_cv_type_off_t" = xyes; then :
22934
22935else
22936
22937cat >>confdefs.h <<_ACEOF
22938#define off_t long int
22939_ACEOF
22940
22941fi
22942
22943ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22944if test "x$ac_cv_type_pid_t" = xyes; then :
22945
22946else
22947
22948cat >>confdefs.h <<_ACEOF
22949#define pid_t int
22950_ACEOF
22951
22952fi
22953
22954ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22955if test "x$ac_cv_type_size_t" = xyes; then :
22956
22957else
22958
22959cat >>confdefs.h <<_ACEOF
22960#define size_t unsigned int
22961_ACEOF
22962
22963fi
22964
22965ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22966if test "x$ac_cv_type_ssize_t" = xyes; then :
22967
22968else
22969
22970cat >>confdefs.h <<_ACEOF
22971#define ssize_t int
22972_ACEOF
22973
22974fi
22975
22976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22977$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22978if ${ac_cv_type_uid_t+:} false; then :
22979 $as_echo_n "(cached) " >&6
22980else
22981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22982/* end confdefs.h. */
22983#include <sys/types.h>
22984
22985_ACEOF
22986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22987 $EGREP "uid_t" >/dev/null 2>&1; then :
22988 ac_cv_type_uid_t=yes
22989else
22990 ac_cv_type_uid_t=no
22991fi
22992rm -f conftest*
22993
22994fi
22995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22996$as_echo "$ac_cv_type_uid_t" >&6; }
22997if test $ac_cv_type_uid_t = no; then
22998
22999$as_echo "#define uid_t int" >>confdefs.h
23000
23001
23002$as_echo "#define gid_t int" >>confdefs.h
23003
23004fi
23005
23006ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23007case $ac_cv_c_uint8_t in #(
23008 no|yes) ;; #(
23009 *)
23010
23011$as_echo "#define _UINT8_T 1" >>confdefs.h
23012
23013
23014cat >>confdefs.h <<_ACEOF
23015#define uint8_t $ac_cv_c_uint8_t
23016_ACEOF
23017;;
23018 esac
23019
23020ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23021case $ac_cv_c_uint16_t in #(
23022 no|yes) ;; #(
23023 *)
23024
23025
23026cat >>confdefs.h <<_ACEOF
23027#define uint16_t $ac_cv_c_uint16_t
23028_ACEOF
23029;;
23030 esac
23031
23032ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23033case $ac_cv_c_uint32_t in #(
23034 no|yes) ;; #(
23035 *)
23036
23037$as_echo "#define _UINT32_T 1" >>confdefs.h
23038
23039
23040cat >>confdefs.h <<_ACEOF
23041#define uint32_t $ac_cv_c_uint32_t
23042_ACEOF
23043;;
23044 esac
23045
23046ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23047case $ac_cv_c_uint64_t in #(
23048 no|yes) ;; #(
23049 *)
23050
23051$as_echo "#define _UINT64_T 1" >>confdefs.h
23052
23053
23054cat >>confdefs.h <<_ACEOF
23055#define uint64_t $ac_cv_c_uint64_t
23056_ACEOF
23057;;
23058 esac
23059
23060
cristybdabdd62013-03-04 17:43:36 +000023061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23062$as_echo_n "checking for unsigned long long int... " >&6; }
23063if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23064 $as_echo_n "(cached) " >&6
23065else
23066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23067/* end confdefs.h. */
23068
23069 /* For now, do not test the preprocessor; as of 2007 there are too many
23070 implementations with broken preprocessors. Perhaps this can
23071 be revisited in 2012. In the meantime, code should not expect
23072 #if to work with literals wider than 32 bits. */
23073 /* Test literals. */
23074 long long int ll = 9223372036854775807ll;
23075 long long int nll = -9223372036854775807LL;
23076 unsigned long long int ull = 18446744073709551615ULL;
23077 /* Test constant expressions. */
23078 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23079 ? 1 : -1)];
23080 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23081 ? 1 : -1)];
23082 int i = 63;
23083int
23084main ()
23085{
23086/* Test availability of runtime routines for shift and division. */
23087 long long int llmax = 9223372036854775807ll;
23088 unsigned long long int ullmax = 18446744073709551615ull;
23089 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23090 | (llmax / ll) | (llmax % ll)
23091 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23092 | (ullmax / ull) | (ullmax % ull));
23093 ;
23094 return 0;
23095}
23096
23097_ACEOF
23098if ac_fn_c_try_link "$LINENO"; then :
23099 ac_cv_type_unsigned_long_long_int=yes
23100else
23101 ac_cv_type_unsigned_long_long_int=no
23102fi
23103rm -f core conftest.err conftest.$ac_objext \
23104 conftest$ac_exeext conftest.$ac_ext
23105fi
23106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23107$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23108 if test $ac_cv_type_unsigned_long_long_int = yes; then
23109
23110$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23111
23112 fi
23113
23114
cristy501c8042011-05-26 17:46:28 +000023115
23116 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23117if test "x$ac_cv_type_uintmax_t" = xyes; then :
23118
23119$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23120
23121else
23122 test $ac_cv_type_unsigned_long_long_int = yes \
23123 && ac_type='unsigned long long int' \
23124 || ac_type='unsigned long int'
23125
23126cat >>confdefs.h <<_ACEOF
23127#define uintmax_t $ac_type
23128_ACEOF
23129
23130fi
23131
23132
23133
23134 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23135if test "x$ac_cv_type_uintptr_t" = xyes; then :
23136
23137$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23138
23139else
23140 for ac_type in 'unsigned int' 'unsigned long int' \
23141 'unsigned long long int'; do
23142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23143/* end confdefs.h. */
23144$ac_includes_default
23145int
23146main ()
23147{
23148static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023149test_array [0] = 0;
23150return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023151
23152 ;
23153 return 0;
23154}
23155_ACEOF
23156if ac_fn_c_try_compile "$LINENO"; then :
23157
23158cat >>confdefs.h <<_ACEOF
23159#define uintptr_t $ac_type
23160_ACEOF
23161
23162 ac_type=
23163fi
23164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23165 test -z "$ac_type" && break
23166 done
23167fi
23168
23169
23170
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23172$as_echo_n "checking for unsigned long long int... " >&6; }
23173if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23174 $as_echo_n "(cached) " >&6
23175else
cristybdabdd62013-03-04 17:43:36 +000023176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023177/* end confdefs.h. */
23178
23179 /* For now, do not test the preprocessor; as of 2007 there are too many
cristybdabdd62013-03-04 17:43:36 +000023180 implementations with broken preprocessors. Perhaps this can
23181 be revisited in 2012. In the meantime, code should not expect
23182 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023183 /* Test literals. */
23184 long long int ll = 9223372036854775807ll;
23185 long long int nll = -9223372036854775807LL;
23186 unsigned long long int ull = 18446744073709551615ULL;
23187 /* Test constant expressions. */
23188 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristybdabdd62013-03-04 17:43:36 +000023189 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023190 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristybdabdd62013-03-04 17:43:36 +000023191 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023192 int i = 63;
23193int
23194main ()
23195{
23196/* Test availability of runtime routines for shift and division. */
23197 long long int llmax = 9223372036854775807ll;
23198 unsigned long long int ullmax = 18446744073709551615ull;
23199 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristybdabdd62013-03-04 17:43:36 +000023200 | (llmax / ll) | (llmax % ll)
23201 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23202 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023203 ;
23204 return 0;
23205}
23206
23207_ACEOF
23208if ac_fn_c_try_link "$LINENO"; then :
cristybdabdd62013-03-04 17:43:36 +000023209 ac_cv_type_unsigned_long_long_int=yes
cristy501c8042011-05-26 17:46:28 +000023210else
23211 ac_cv_type_unsigned_long_long_int=no
23212fi
23213rm -f core conftest.err conftest.$ac_objext \
23214 conftest$ac_exeext conftest.$ac_ext
23215fi
23216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23217$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23218 if test $ac_cv_type_unsigned_long_long_int = yes; then
23219
23220$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23221
23222 fi
23223
23224
cristy9b86f202012-11-28 21:55:35 +000023225# Float_t and double_t are intended to be the the most efficient type.
cristyf0cf9a22012-10-24 12:05:01 +000023226ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23227"
23228if test "x$ac_cv_type_float_t" = xyes; then :
23229
23230cat >>confdefs.h <<_ACEOF
23231#define HAVE_FLOAT_T 1
23232_ACEOF
23233
23234
23235fi
23236
23237ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23238"
23239if test "x$ac_cv_type_double_t" = xyes; then :
23240
23241cat >>confdefs.h <<_ACEOF
23242#define HAVE_DOUBLE_T 1
23243_ACEOF
23244
23245
23246fi
23247
cristy9b86f202012-11-28 21:55:35 +000023248# The cast to long int works around a bug in the HP C Compiler
23249# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23250# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23251# This bug is HP SR number 8606223364.
23252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23253$as_echo_n "checking size of float_t... " >&6; }
23254if ${ac_cv_sizeof_float_t+:} false; then :
23255 $as_echo_n "(cached) " >&6
23256else
23257 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23258"; then :
23259
23260else
23261 if test "$ac_cv_type_float_t" = yes; then
23262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23264as_fn_error 77 "cannot compute sizeof (float_t)
23265See \`config.log' for more details" "$LINENO" 5; }
23266 else
23267 ac_cv_sizeof_float_t=0
23268 fi
23269fi
23270
23271fi
23272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23273$as_echo "$ac_cv_sizeof_float_t" >&6; }
23274
23275
23276
23277cat >>confdefs.h <<_ACEOF
23278#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23279_ACEOF
23280
23281
23282# The cast to long int works around a bug in the HP C Compiler
23283# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23284# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23285# This bug is HP SR number 8606223364.
23286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23287$as_echo_n "checking size of double_t... " >&6; }
23288if ${ac_cv_sizeof_double_t+:} false; then :
23289 $as_echo_n "(cached) " >&6
23290else
23291 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23292"; then :
23293
23294else
23295 if test "$ac_cv_type_double_t" = yes; then
23296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23298as_fn_error 77 "cannot compute sizeof (double_t)
23299See \`config.log' for more details" "$LINENO" 5; }
23300 else
23301 ac_cv_sizeof_double_t=0
23302 fi
23303fi
23304
23305fi
23306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23307$as_echo "$ac_cv_sizeof_double_t" >&6; }
23308
23309
23310
23311cat >>confdefs.h <<_ACEOF
23312#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23313_ACEOF
23314
23315
23316
23317# Get size of float, double and long double for comparaison.
23318# The cast to long int works around a bug in the HP C Compiler
23319# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23320# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23321# This bug is HP SR number 8606223364.
23322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23323$as_echo_n "checking size of float... " >&6; }
23324if ${ac_cv_sizeof_float+:} false; then :
23325 $as_echo_n "(cached) " >&6
23326else
23327 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23328
23329else
23330 if test "$ac_cv_type_float" = yes; then
23331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23333as_fn_error 77 "cannot compute sizeof (float)
23334See \`config.log' for more details" "$LINENO" 5; }
23335 else
23336 ac_cv_sizeof_float=0
23337 fi
23338fi
23339
23340fi
23341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23342$as_echo "$ac_cv_sizeof_float" >&6; }
23343
23344
23345
23346cat >>confdefs.h <<_ACEOF
23347#define SIZEOF_FLOAT $ac_cv_sizeof_float
23348_ACEOF
23349
23350
23351# The cast to long int works around a bug in the HP C Compiler
23352# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23353# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23354# This bug is HP SR number 8606223364.
23355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23356$as_echo_n "checking size of double... " >&6; }
23357if ${ac_cv_sizeof_double+:} false; then :
23358 $as_echo_n "(cached) " >&6
23359else
23360 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23361
23362else
23363 if test "$ac_cv_type_double" = yes; then
23364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23366as_fn_error 77 "cannot compute sizeof (double)
23367See \`config.log' for more details" "$LINENO" 5; }
23368 else
23369 ac_cv_sizeof_double=0
23370 fi
23371fi
23372
23373fi
23374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23375$as_echo "$ac_cv_sizeof_double" >&6; }
23376
23377
23378
23379cat >>confdefs.h <<_ACEOF
23380#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23381_ACEOF
23382
23383
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 long double" >&5
23389$as_echo_n "checking size of long double... " >&6; }
23390if ${ac_cv_sizeof_long_double+:} false; then :
23391 $as_echo_n "(cached) " >&6
23392else
23393 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23394
23395else
23396 if test "$ac_cv_type_long_double" = 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;}
23399as_fn_error 77 "cannot compute sizeof (long double)
23400See \`config.log' for more details" "$LINENO" 5; }
23401 else
23402 ac_cv_sizeof_long_double=0
23403 fi
23404fi
23405
23406fi
23407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23408$as_echo "$ac_cv_sizeof_long_double" >&6; }
23409
23410
23411
23412cat >>confdefs.h <<_ACEOF
23413#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23414_ACEOF
23415
23416
cristyf0cf9a22012-10-24 12:05:01 +000023417
cristy3ed852e2009-09-05 21:47:34 +000023418# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
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 signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023424$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023425if ${ac_cv_sizeof_signed_short+:} 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 (signed short))" "ac_cv_sizeof_signed_short" "$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_signed_short" = 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 (signed short)
23435See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023436 else
23437 ac_cv_sizeof_signed_short=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_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023443$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23444
23445
23446
23447cat >>confdefs.h <<_ACEOF
23448#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23449_ACEOF
23450
23451
23452
23453# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23454# The cast to long int works around a bug in the HP C Compiler
23455# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23456# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23457# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023459$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023460if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023461 $as_echo_n "(cached) " >&6
23462else
cristy8b350f62009-11-15 23:12:43 +000023463 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 +000023464
cristy3ed852e2009-09-05 21:47:34 +000023465else
cristy8b350f62009-11-15 23:12:43 +000023466 if test "$ac_cv_type_unsigned_short" = yes; then
23467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023469as_fn_error 77 "cannot compute sizeof (unsigned short)
23470See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023471 else
23472 ac_cv_sizeof_unsigned_short=0
23473 fi
23474fi
cristy8b350f62009-11-15 23:12:43 +000023475
cristy3ed852e2009-09-05 21:47:34 +000023476fi
cristy8b350f62009-11-15 23:12:43 +000023477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023478$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23479
23480
23481
23482cat >>confdefs.h <<_ACEOF
23483#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23484_ACEOF
23485
23486
23487
23488# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23489# The cast to long int works around a bug in the HP C Compiler
23490# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23491# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23492# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023494$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023495if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023496 $as_echo_n "(cached) " >&6
23497else
cristy8b350f62009-11-15 23:12:43 +000023498 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 +000023499
cristy3ed852e2009-09-05 21:47:34 +000023500else
cristy8b350f62009-11-15 23:12:43 +000023501 if test "$ac_cv_type_signed_int" = yes; then
23502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023504as_fn_error 77 "cannot compute sizeof (signed int)
23505See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023506 else
23507 ac_cv_sizeof_signed_int=0
23508 fi
23509fi
cristy8b350f62009-11-15 23:12:43 +000023510
cristy3ed852e2009-09-05 21:47:34 +000023511fi
cristy8b350f62009-11-15 23:12:43 +000023512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023513$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23514
23515
23516
23517cat >>confdefs.h <<_ACEOF
23518#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23519_ACEOF
23520
23521
23522
23523# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23524# The cast to long int works around a bug in the HP C Compiler
23525# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23526# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23527# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023529$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023530if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023531 $as_echo_n "(cached) " >&6
23532else
cristy8b350f62009-11-15 23:12:43 +000023533 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 +000023534
cristy3ed852e2009-09-05 21:47:34 +000023535else
cristy8b350f62009-11-15 23:12:43 +000023536 if test "$ac_cv_type_unsigned_int" = yes; then
23537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023539as_fn_error 77 "cannot compute sizeof (unsigned int)
23540See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023541 else
23542 ac_cv_sizeof_unsigned_int=0
23543 fi
23544fi
cristy8b350f62009-11-15 23:12:43 +000023545
cristy3ed852e2009-09-05 21:47:34 +000023546fi
cristy8b350f62009-11-15 23:12:43 +000023547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023548$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23549
23550
23551
23552cat >>confdefs.h <<_ACEOF
23553#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23554_ACEOF
23555
23556
23557
23558# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23559# The cast to long int works around a bug in the HP C Compiler
23560# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23561# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23562# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023564$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023565if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023566 $as_echo_n "(cached) " >&6
23567else
cristy8b350f62009-11-15 23:12:43 +000023568 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 +000023569
cristy3ed852e2009-09-05 21:47:34 +000023570else
cristy8b350f62009-11-15 23:12:43 +000023571 if test "$ac_cv_type_signed_long" = yes; then
23572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023574as_fn_error 77 "cannot compute sizeof (signed long)
23575See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023576 else
23577 ac_cv_sizeof_signed_long=0
23578 fi
23579fi
cristy8b350f62009-11-15 23:12:43 +000023580
cristy3ed852e2009-09-05 21:47:34 +000023581fi
cristy8b350f62009-11-15 23:12:43 +000023582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023583$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23584
23585
23586
23587cat >>confdefs.h <<_ACEOF
23588#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23589_ACEOF
23590
23591
23592
23593# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23594# The cast to long int works around a bug in the HP C Compiler
23595# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23596# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23597# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023599$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023600if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023601 $as_echo_n "(cached) " >&6
23602else
cristy8b350f62009-11-15 23:12:43 +000023603 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 +000023604
cristy3ed852e2009-09-05 21:47:34 +000023605else
cristy8b350f62009-11-15 23:12:43 +000023606 if test "$ac_cv_type_unsigned_long" = yes; then
23607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023609as_fn_error 77 "cannot compute sizeof (unsigned long)
23610See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023611 else
23612 ac_cv_sizeof_unsigned_long=0
23613 fi
23614fi
cristy8b350f62009-11-15 23:12:43 +000023615
cristy3ed852e2009-09-05 21:47:34 +000023616fi
cristy8b350f62009-11-15 23:12:43 +000023617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023618$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23619
23620
23621
23622cat >>confdefs.h <<_ACEOF
23623#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23624_ACEOF
23625
23626
23627
23628# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23629# 'signed long long' is not supported then the value defined is zero.
23630# The cast to long int works around a bug in the HP C Compiler
23631# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23632# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23633# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023635$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023636if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023637 $as_echo_n "(cached) " >&6
23638else
cristy8b350f62009-11-15 23:12:43 +000023639 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 +000023640
cristy3ed852e2009-09-05 21:47:34 +000023641else
cristy8b350f62009-11-15 23:12:43 +000023642 if test "$ac_cv_type_signed_long_long" = yes; then
23643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023645as_fn_error 77 "cannot compute sizeof (signed long long)
23646See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023647 else
23648 ac_cv_sizeof_signed_long_long=0
23649 fi
23650fi
cristy8b350f62009-11-15 23:12:43 +000023651
cristy3ed852e2009-09-05 21:47:34 +000023652fi
cristy8b350f62009-11-15 23:12:43 +000023653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023654$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23655
23656
23657
23658cat >>confdefs.h <<_ACEOF
23659#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23660_ACEOF
23661
23662
23663
23664# Obtain size of a 'unsigned long long' and define as
23665# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23666# supported then the value defined is zero.
23667# The cast to long int works around a bug in the HP C Compiler
23668# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23669# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23670# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023672$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023673if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023674 $as_echo_n "(cached) " >&6
23675else
cristy8b350f62009-11-15 23:12:43 +000023676 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 +000023677
cristy3ed852e2009-09-05 21:47:34 +000023678else
cristy8b350f62009-11-15 23:12:43 +000023679 if test "$ac_cv_type_unsigned_long_long" = yes; then
23680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023682as_fn_error 77 "cannot compute sizeof (unsigned long long)
23683See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023684 else
23685 ac_cv_sizeof_unsigned_long_long=0
23686 fi
23687fi
cristy8b350f62009-11-15 23:12:43 +000023688
cristy3ed852e2009-09-05 21:47:34 +000023689fi
cristy8b350f62009-11-15 23:12:43 +000023690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023691$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23692
23693
23694
23695cat >>confdefs.h <<_ACEOF
23696#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23697_ACEOF
23698
23699
23700
23701# Obtain size of off_t and define as SIZEOF_OFF_T
23702# The cast to long int works around a bug in the HP C Compiler
23703# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23704# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23705# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023707$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023708if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023709 $as_echo_n "(cached) " >&6
23710else
cristy8b350f62009-11-15 23:12:43 +000023711 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 +000023712
cristy3ed852e2009-09-05 21:47:34 +000023713else
cristy8b350f62009-11-15 23:12:43 +000023714 if test "$ac_cv_type_off_t" = yes; then
23715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023717as_fn_error 77 "cannot compute sizeof (off_t)
23718See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023719 else
23720 ac_cv_sizeof_off_t=0
23721 fi
23722fi
cristy8b350f62009-11-15 23:12:43 +000023723
cristy3ed852e2009-09-05 21:47:34 +000023724fi
cristy8b350f62009-11-15 23:12:43 +000023725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023726$as_echo "$ac_cv_sizeof_off_t" >&6; }
23727
23728
23729
23730cat >>confdefs.h <<_ACEOF
23731#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23732_ACEOF
23733
23734
23735
23736# Obtain size of size_t and define as SIZEOF_SIZE_T
23737# The cast to long int works around a bug in the HP C Compiler
23738# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23739# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23740# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023742$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023743if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023744 $as_echo_n "(cached) " >&6
23745else
cristy8b350f62009-11-15 23:12:43 +000023746 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 +000023747
cristy3ed852e2009-09-05 21:47:34 +000023748else
cristy8b350f62009-11-15 23:12:43 +000023749 if test "$ac_cv_type_size_t" = yes; then
23750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023752as_fn_error 77 "cannot compute sizeof (size_t)
23753See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023754 else
23755 ac_cv_sizeof_size_t=0
23756 fi
23757fi
cristy8b350f62009-11-15 23:12:43 +000023758
cristy3ed852e2009-09-05 21:47:34 +000023759fi
cristy8b350f62009-11-15 23:12:43 +000023760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023761$as_echo "$ac_cv_sizeof_size_t" >&6; }
23762
23763
23764
23765cat >>confdefs.h <<_ACEOF
23766#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23767_ACEOF
23768
23769
23770
cristy330e9352010-06-01 18:42:49 +000023771# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23772# The cast to long int works around a bug in the HP C Compiler
23773# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23774# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23775# This bug is HP SR number 8606223364.
23776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23777$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023778if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023779 $as_echo_n "(cached) " >&6
23780else
23781 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23782
23783else
23784 if test "$ac_cv_type_ssize_t" = yes; then
23785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023787as_fn_error 77 "cannot compute sizeof (ssize_t)
23788See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023789 else
23790 ac_cv_sizeof_ssize_t=0
23791 fi
23792fi
23793
23794fi
23795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23796$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23797
23798
23799
23800cat >>confdefs.h <<_ACEOF
23801#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23802_ACEOF
23803
23804
23805
cristy3ed852e2009-09-05 21:47:34 +000023806# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23807# The cast to long int works around a bug in the HP C Compiler
23808# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23809# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23810# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023812$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023813if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023814 $as_echo_n "(cached) " >&6
23815else
cristy8b350f62009-11-15 23:12:43 +000023816 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 +000023817
cristy3ed852e2009-09-05 21:47:34 +000023818else
cristy8b350f62009-11-15 23:12:43 +000023819 if test "$ac_cv_type_unsigned_intp" = yes; then
23820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023822as_fn_error 77 "cannot compute sizeof (unsigned int*)
23823See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023824 else
23825 ac_cv_sizeof_unsigned_intp=0
23826 fi
23827fi
cristy8b350f62009-11-15 23:12:43 +000023828
cristy3ed852e2009-09-05 21:47:34 +000023829fi
cristy8b350f62009-11-15 23:12:43 +000023830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023831$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23832
23833
23834
23835cat >>confdefs.h <<_ACEOF
23836#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23837_ACEOF
23838
23839
23840
23841#
23842# Compute sized types for current CPU and compiler options.
23843#
23844
cristy8b350f62009-11-15 23:12:43 +000023845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023846$as_echo_n "checking for signed 8-bit type... " >&6; }
23847INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23849$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023850
23851
cristy8b350f62009-11-15 23:12:43 +000023852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023853$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23854UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23856$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023857
23858
cristy8b350f62009-11-15 23:12:43 +000023859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023860$as_echo_n "checking for signed 16-bit type... " >&6; }
23861INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23863$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023864
23865
cristy8b350f62009-11-15 23:12:43 +000023866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023867$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23868UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23870$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023871
23872
cristy8b350f62009-11-15 23:12:43 +000023873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023874$as_echo_n "checking for signed 32-bit type... " >&6; }
23875INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023876INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023877if test $ac_cv_sizeof_signed_int -eq 4; then
23878 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023879 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023880elif test $ac_cv_sizeof_signed_long -eq 4; then
23881 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023882 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023883fi
cristyad38abe2012-12-23 23:03:21 +000023884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23885$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023886
23887
cristy6d5e20f2011-04-25 13:48:54 +000023888
cristy8b350f62009-11-15 23:12:43 +000023889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023890$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23891UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023892UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023893if test $ac_cv_sizeof_unsigned_int -eq 4; then
23894 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023895 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023896elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23897 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023898 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023899fi
cristyad38abe2012-12-23 23:03:21 +000023900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23901$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023902
23903
cristy6d5e20f2011-04-25 13:48:54 +000023904
cristy8b350f62009-11-15 23:12:43 +000023905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023906$as_echo_n "checking for signed 64-bit type... " >&6; }
23907INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023908INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023909if test $ac_cv_sizeof_signed_long -eq 8; then
23910 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023911 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023912elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23913 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023914 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023915fi
cristy3a99dcf2011-12-17 01:29:40 +000023916case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023917 mingw* )
23918 INT64_F='"I64"'
23919 ;;
23920esac
cristyad38abe2012-12-23 23:03:21 +000023921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23922$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023923
23924
cristy6d5e20f2011-04-25 13:48:54 +000023925
cristy8b350f62009-11-15 23:12:43 +000023926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023927$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23928UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023929UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023930if test $ac_cv_sizeof_unsigned_long -eq 8; then
23931 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023932 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023933elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23934 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023935 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023936fi
cristy3a99dcf2011-12-17 01:29:40 +000023937case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023938 mingw* )
23939 UINT64_F='"I64"'
23940 ;;
23941esac
cristyad38abe2012-12-23 23:03:21 +000023942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23943$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023944
23945
cristy6d5e20f2011-04-25 13:48:54 +000023946
cristy8b350f62009-11-15 23:12:43 +000023947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023948$as_echo_n "checking for unsigned maximum type... " >&6; }
23949UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023950UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023951if test "$UINT64_T" != 'none'; then
23952 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023953 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023954elif test "$UINT32_T" != 'none'; then
23955 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023956 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023957fi
cristyad38abe2012-12-23 23:03:21 +000023958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23959$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023960
23961
cristy6d5e20f2011-04-25 13:48:54 +000023962
cristy8b350f62009-11-15 23:12:43 +000023963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023964$as_echo_n "checking for pointer difference type... " >&6; }
23965UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023966UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023967if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23968 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023969 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023970elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23971 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023972 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023973fi
cristyad38abe2012-12-23 23:03:21 +000023974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23975$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023976
23977
cristy6d5e20f2011-04-25 13:48:54 +000023978
cristy8b350f62009-11-15 23:12:43 +000023979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023980$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023982/* end confdefs.h. */
23983
23984int
23985main ()
23986{
23987{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23988 ;
23989 return 0;
23990}
23991_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023992if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23994$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023995else
cristyad38abe2012-12-23 23:03:21 +000023996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23997$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023999$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024001/* end confdefs.h. */
24002
24003int
24004main ()
24005{
24006{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24007 ;
24008 return 0;
24009}
24010_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024011if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24013$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024014
cristy8b350f62009-11-15 23:12:43 +000024015$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024016
24017else
cristyad38abe2012-12-23 23:03:21 +000024018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24019$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024020
cristy8b350f62009-11-15 23:12:43 +000024021$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024022
24023fi
cristy3ed852e2009-09-05 21:47:34 +000024024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24025fi
cristy3ed852e2009-09-05 21:47:34 +000024026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24027
24028########
24029#
24030# Check for functions
24031#
24032########
cristy73bd4a52010-10-05 11:24:23 +000024033for ac_header in stdlib.h unistd.h
24034do :
24035 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24036ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024037if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024038 cat >>confdefs.h <<_ACEOF
24039#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24040_ACEOF
24041
24042fi
24043
24044done
24045
24046for ac_func in getpagesize
24047do :
24048 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024049if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024050 cat >>confdefs.h <<_ACEOF
24051#define HAVE_GETPAGESIZE 1
24052_ACEOF
24053
24054fi
24055done
24056
24057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24058$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024059if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024060 $as_echo_n "(cached) " >&6
24061else
24062 if test "$cross_compiling" = yes; then :
24063 magick_cv_func_mmap_fileio=no
24064else
24065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24066/* end confdefs.h. */
24067$ac_includes_default
24068/* malloc might have been renamed as rpl_malloc. */
24069#undef malloc
24070
24071/*
24072 This test is derived from GNU Autoconf's similar macro.
24073 The purpose of this test is to verify that files may be memory
24074 mapped, and that memory mapping and file I/O are coherent.
24075
24076 The test creates a test file, memory maps the file, updates
24077 the file using the memory map, and then reads the file using
24078 file I/O to verify that the file contains the updates.
24079*/
24080
24081#include <fcntl.h>
24082#include <sys/mman.h>
24083
24084#if !STDC_HEADERS && !HAVE_STDLIB_H
24085char *malloc ();
24086#endif
24087
24088/* This mess was copied from the GNU getpagesize.h. */
24089#if !HAVE_GETPAGESIZE
24090/* Assume that all systems that can run configure have sys/param.h. */
24091# if !HAVE_SYS_PARAM_H
24092# define HAVE_SYS_PARAM_H 1
24093# endif
24094
24095# ifdef _SC_PAGESIZE
24096# define getpagesize() sysconf(_SC_PAGESIZE)
24097# else /* no _SC_PAGESIZE */
24098# if HAVE_SYS_PARAM_H
24099# include <sys/param.h>
24100# ifdef EXEC_PAGESIZE
24101# define getpagesize() EXEC_PAGESIZE
24102# else /* no EXEC_PAGESIZE */
24103# ifdef NBPG
24104# define getpagesize() NBPG * CLSIZE
24105# ifndef CLSIZE
24106# define CLSIZE 1
24107# endif /* no CLSIZE */
24108# else /* no NBPG */
24109# ifdef NBPC
24110# define getpagesize() NBPC
24111# else /* no NBPC */
24112# ifdef PAGESIZE
24113# define getpagesize() PAGESIZE
24114# endif /* PAGESIZE */
24115# endif /* no NBPC */
24116# endif /* no NBPG */
24117# endif /* no EXEC_PAGESIZE */
24118# else /* no HAVE_SYS_PARAM_H */
24119# define getpagesize() 8192 /* punt totally */
24120# endif /* no HAVE_SYS_PARAM_H */
24121# endif /* no _SC_PAGESIZE */
24122
24123#endif /* no HAVE_GETPAGESIZE */
24124
24125int
24126main ()
24127{
24128 char *data, *data2, *data3;
24129 int i, pagesize;
24130 int fd;
24131
24132 pagesize = getpagesize ();
24133
24134 /* First, make a file with some known garbage in it. */
24135 data = (char *) malloc (pagesize);
24136 if (!data)
24137 exit (1);
24138 for (i = 0; i < pagesize; ++i)
24139 *(data + i) = rand ();
24140 umask (0);
24141 fd = creat ("conftest.mmap", 0600);
24142 if (fd < 0)
24143 exit (1);
24144 if (write (fd, data, pagesize) != pagesize)
24145 exit (1);
24146 close (fd);
24147
24148 /* Mmap the file as read/write/shared and verify that we see the
24149 same garbage. */
24150 fd = open ("conftest.mmap", O_RDWR);
24151 if (fd < 0)
24152 exit (1);
24153 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24154 if (data2 == 0)
24155 exit (1);
24156 for (i = 0; i < pagesize; ++i)
24157 if (*(data + i) != *(data2 + i))
24158 exit (1);
24159
24160 /* Finally, make sure that changes to the mapped area
24161 percolate back to the file as seen by read(). */
24162 for (i = 0; i < pagesize; ++i)
24163 *(data2 + i) = *(data2 + i) + 1;
24164 data3 = (char *) malloc (pagesize);
24165 if (!data3)
24166 exit (1);
24167 if (read (fd, data3, pagesize) != pagesize)
24168 exit (1);
24169 for (i = 0; i < pagesize; ++i)
24170 if (*(data2 + i) != *(data3 + i))
24171 exit (1);
24172 close (fd);
24173 exit (0);
24174}
24175_ACEOF
24176if ac_fn_c_try_run "$LINENO"; then :
24177 magick_cv_func_mmap_fileio=yes
24178else
24179 magick_cv_func_mmap_fileio=no
24180fi
24181rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24182 conftest.$ac_objext conftest.beam conftest.$ac_ext
24183fi
24184
24185fi
24186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24187$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24188if test $magick_cv_func_mmap_fileio = yes; then
24189
24190$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24191
24192fi
24193rm -f conftest.mmap
24194
cristy8b350f62009-11-15 23:12:43 +000024195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024196$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024197if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024198 $as_echo_n "(cached) " >&6
24199else
cristy8b350f62009-11-15 23:12:43 +000024200 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024201 ac_cv_func_closedir_void=yes
24202else
cristy8b350f62009-11-15 23:12:43 +000024203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024204/* end confdefs.h. */
24205$ac_includes_default
24206#include <$ac_header_dirent>
24207#ifndef __cplusplus
24208int closedir ();
24209#endif
24210
24211int
24212main ()
24213{
24214return closedir (opendir (".")) != 0;
24215 ;
24216 return 0;
24217}
24218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024219if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024220 ac_cv_func_closedir_void=no
24221else
cristy8b350f62009-11-15 23:12:43 +000024222 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024223fi
cristy8b350f62009-11-15 23:12:43 +000024224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24225 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024226fi
24227
cristy3ed852e2009-09-05 21:47:34 +000024228fi
cristy8b350f62009-11-15 23:12:43 +000024229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024230$as_echo "$ac_cv_func_closedir_void" >&6; }
24231if test $ac_cv_func_closedir_void = yes; then
24232
cristy8b350f62009-11-15 23:12:43 +000024233$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024234
24235fi
24236
cristycd4c5312009-11-22 01:19:08 +000024237
24238
24239
24240 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024241do :
24242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024243ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24244"
cristy98dddb52010-11-04 00:30:15 +000024245if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024246 cat >>confdefs.h <<_ACEOF
24247#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24248_ACEOF
24249
24250fi
24251
24252done
24253
cristycd4c5312009-11-22 01:19:08 +000024254
24255
24256
24257
24258
24259
24260
cristy3ed852e2009-09-05 21:47:34 +000024261for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024262do :
24263 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024264if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024265 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024266#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024267_ACEOF
24268
24269fi
24270done
24271
cristy8b350f62009-11-15 23:12:43 +000024272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024273$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024274if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024275 $as_echo_n "(cached) " >&6
24276else
cristy8b350f62009-11-15 23:12:43 +000024277 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024278 ac_cv_func_mmap_fixed_mapped=no
24279else
cristy8b350f62009-11-15 23:12:43 +000024280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024281/* end confdefs.h. */
24282$ac_includes_default
24283/* malloc might have been renamed as rpl_malloc. */
24284#undef malloc
24285
24286/* Thanks to Mike Haertel and Jim Avera for this test.
24287 Here is a matrix of mmap possibilities:
24288 mmap private not fixed
24289 mmap private fixed at somewhere currently unmapped
24290 mmap private fixed at somewhere already mapped
24291 mmap shared not fixed
24292 mmap shared fixed at somewhere currently unmapped
24293 mmap shared fixed at somewhere already mapped
24294 For private mappings, we should verify that changes cannot be read()
24295 back from the file, nor mmap's back from the file at a different
24296 address. (There have been systems where private was not correctly
24297 implemented like the infamous i386 svr4.0, and systems where the
24298 VM page cache was not coherent with the file system buffer cache
24299 like early versions of FreeBSD and possibly contemporary NetBSD.)
24300 For shared mappings, we should conversely verify that changes get
24301 propagated back to all the places they're supposed to be.
24302
24303 Grep wants private fixed already mapped.
24304 The main things grep needs to know about mmap are:
24305 * does it exist and is it safe to write into the mmap'd area
24306 * how to use it (BSD variants) */
24307
24308#include <fcntl.h>
24309#include <sys/mman.h>
24310
24311#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24312char *malloc ();
24313#endif
24314
24315/* This mess was copied from the GNU getpagesize.h. */
24316#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024317# ifdef _SC_PAGESIZE
24318# define getpagesize() sysconf(_SC_PAGESIZE)
24319# else /* no _SC_PAGESIZE */
24320# ifdef HAVE_SYS_PARAM_H
24321# include <sys/param.h>
24322# ifdef EXEC_PAGESIZE
24323# define getpagesize() EXEC_PAGESIZE
24324# else /* no EXEC_PAGESIZE */
24325# ifdef NBPG
24326# define getpagesize() NBPG * CLSIZE
24327# ifndef CLSIZE
24328# define CLSIZE 1
24329# endif /* no CLSIZE */
24330# else /* no NBPG */
24331# ifdef NBPC
24332# define getpagesize() NBPC
24333# else /* no NBPC */
24334# ifdef PAGESIZE
24335# define getpagesize() PAGESIZE
24336# endif /* PAGESIZE */
24337# endif /* no NBPC */
24338# endif /* no NBPG */
24339# endif /* no EXEC_PAGESIZE */
24340# else /* no HAVE_SYS_PARAM_H */
24341# define getpagesize() 8192 /* punt totally */
24342# endif /* no HAVE_SYS_PARAM_H */
24343# endif /* no _SC_PAGESIZE */
24344
24345#endif /* no HAVE_GETPAGESIZE */
24346
24347int
24348main ()
24349{
24350 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024351 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024352 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024353 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024354
24355 pagesize = getpagesize ();
24356
24357 /* First, make a file with some known garbage in it. */
24358 data = (char *) malloc (pagesize);
24359 if (!data)
24360 return 1;
24361 for (i = 0; i < pagesize; ++i)
24362 *(data + i) = rand ();
24363 umask (0);
24364 fd = creat ("conftest.mmap", 0600);
24365 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024366 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024367 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024368 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024369 close (fd);
24370
cristycd4c5312009-11-22 01:19:08 +000024371 /* Next, check that the tail of a page is zero-filled. File must have
24372 non-zero length, otherwise we risk SIGBUS for entire page. */
24373 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24374 if (fd2 < 0)
24375 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024376 cdata2 = "";
24377 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024378 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024379 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024380 if (data2 == MAP_FAILED)
24381 return 6;
24382 for (i = 0; i < pagesize; ++i)
24383 if (*(data2 + i))
24384 return 7;
24385 close (fd2);
24386 if (munmap (data2, pagesize))
24387 return 8;
24388
cristy3ed852e2009-09-05 21:47:34 +000024389 /* Next, try to mmap the file at a fixed address which already has
24390 something else allocated at it. If we can, also make sure that
24391 we see the same garbage. */
24392 fd = open ("conftest.mmap", O_RDWR);
24393 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024394 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024395 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24396 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024397 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024398 for (i = 0; i < pagesize; ++i)
24399 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024400 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024401
24402 /* Finally, make sure that changes to the mapped area do not
24403 percolate back to the file as seen by read(). (This is a bug on
24404 some variants of i386 svr4.0.) */
24405 for (i = 0; i < pagesize; ++i)
24406 *(data2 + i) = *(data2 + i) + 1;
24407 data3 = (char *) malloc (pagesize);
24408 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024409 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024410 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024411 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024412 for (i = 0; i < pagesize; ++i)
24413 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024414 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024415 close (fd);
24416 return 0;
24417}
24418_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024419if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024420 ac_cv_func_mmap_fixed_mapped=yes
24421else
cristy8b350f62009-11-15 23:12:43 +000024422 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024423fi
cristy8b350f62009-11-15 23:12:43 +000024424rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24425 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024426fi
24427
cristy3ed852e2009-09-05 21:47:34 +000024428fi
cristy8b350f62009-11-15 23:12:43 +000024429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024430$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24431if test $ac_cv_func_mmap_fixed_mapped = yes; then
24432
cristy8b350f62009-11-15 23:12:43 +000024433$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024434
24435fi
cristycd4c5312009-11-22 01:19:08 +000024436rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024437
cristy3ed852e2009-09-05 21:47:34 +000024438for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024439do :
24440 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024441if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024442 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024443#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024444_ACEOF
24445
24446fi
24447
24448done
24449
cristy3ed852e2009-09-05 21:47:34 +000024450for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024451do :
24452 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24453ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024454if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024455 cat >>confdefs.h <<_ACEOF
24456#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24457_ACEOF
24458
24459fi
24460done
24461
24462if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024464$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024465if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024466 $as_echo_n "(cached) " >&6
24467else
cristy8b350f62009-11-15 23:12:43 +000024468 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024469 ac_cv_func_fork_works=cross
24470else
cristy8b350f62009-11-15 23:12:43 +000024471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024472/* end confdefs.h. */
24473$ac_includes_default
24474int
24475main ()
24476{
24477
24478 /* By Ruediger Kuhlmann. */
24479 return fork () < 0;
24480
24481 ;
24482 return 0;
24483}
24484_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024485if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024486 ac_cv_func_fork_works=yes
24487else
cristy8b350f62009-11-15 23:12:43 +000024488 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024489fi
cristy8b350f62009-11-15 23:12:43 +000024490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24491 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024492fi
24493
cristy3ed852e2009-09-05 21:47:34 +000024494fi
cristy8b350f62009-11-15 23:12:43 +000024495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024496$as_echo "$ac_cv_func_fork_works" >&6; }
24497
24498else
24499 ac_cv_func_fork_works=$ac_cv_func_fork
24500fi
24501if test "x$ac_cv_func_fork_works" = xcross; then
24502 case $host in
24503 *-*-amigaos* | *-*-msdosdjgpp*)
24504 # Override, as these systems have only a dummy fork() stub
24505 ac_cv_func_fork_works=no
24506 ;;
24507 *)
24508 ac_cv_func_fork_works=yes
24509 ;;
24510 esac
cristy8b350f62009-11-15 23:12:43 +000024511 { $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 +000024512$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24513fi
24514ac_cv_func_vfork_works=$ac_cv_func_vfork
24515if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024517$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024518if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024519 $as_echo_n "(cached) " >&6
24520else
cristy8b350f62009-11-15 23:12:43 +000024521 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024522 ac_cv_func_vfork_works=cross
24523else
cristy8b350f62009-11-15 23:12:43 +000024524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024525/* end confdefs.h. */
24526/* Thanks to Paul Eggert for this test. */
24527$ac_includes_default
24528#include <sys/wait.h>
24529#ifdef HAVE_VFORK_H
24530# include <vfork.h>
24531#endif
24532/* On some sparc systems, changes by the child to local and incoming
24533 argument registers are propagated back to the parent. The compiler
24534 is told about this with #include <vfork.h>, but some compilers
24535 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24536 static variable whose address is put into a register that is
24537 clobbered by the vfork. */
24538static void
24539#ifdef __cplusplus
24540sparc_address_test (int arg)
24541# else
24542sparc_address_test (arg) int arg;
24543#endif
24544{
24545 static pid_t child;
24546 if (!child) {
24547 child = vfork ();
24548 if (child < 0) {
24549 perror ("vfork");
24550 _exit(2);
24551 }
24552 if (!child) {
24553 arg = getpid();
24554 write(-1, "", 0);
24555 _exit (arg);
24556 }
24557 }
24558}
24559
24560int
24561main ()
24562{
24563 pid_t parent = getpid ();
24564 pid_t child;
24565
24566 sparc_address_test (0);
24567
24568 child = vfork ();
24569
24570 if (child == 0) {
24571 /* Here is another test for sparc vfork register problems. This
24572 test uses lots of local variables, at least as many local
24573 variables as main has allocated so far including compiler
24574 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24575 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24576 reuse the register of parent for one of the local variables,
24577 since it will think that parent can't possibly be used any more
24578 in this routine. Assigning to the local variable will thus
24579 munge parent in the parent process. */
24580 pid_t
24581 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24582 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24583 /* Convince the compiler that p..p7 are live; otherwise, it might
24584 use the same hardware register for all 8 local variables. */
24585 if (p != p1 || p != p2 || p != p3 || p != p4
24586 || p != p5 || p != p6 || p != p7)
24587 _exit(1);
24588
24589 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24590 from child file descriptors. If the child closes a descriptor
24591 before it execs or exits, this munges the parent's descriptor
24592 as well. Test for this by closing stdout in the child. */
24593 _exit(close(fileno(stdout)) != 0);
24594 } else {
24595 int status;
24596 struct stat st;
24597
24598 while (wait(&status) != child)
24599 ;
24600 return (
24601 /* Was there some problem with vforking? */
24602 child < 0
24603
24604 /* Did the child fail? (This shouldn't happen.) */
24605 || status
24606
24607 /* Did the vfork/compiler bug occur? */
24608 || parent != getpid()
24609
24610 /* Did the file descriptor bug occur? */
24611 || fstat(fileno(stdout), &st) != 0
24612 );
24613 }
24614}
24615_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024616if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024617 ac_cv_func_vfork_works=yes
24618else
cristy8b350f62009-11-15 23:12:43 +000024619 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024620fi
cristy8b350f62009-11-15 23:12:43 +000024621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24622 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024623fi
24624
cristy3ed852e2009-09-05 21:47:34 +000024625fi
cristy8b350f62009-11-15 23:12:43 +000024626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024627$as_echo "$ac_cv_func_vfork_works" >&6; }
24628
24629fi;
24630if test "x$ac_cv_func_fork_works" = xcross; then
24631 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024632 { $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 +000024633$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24634fi
24635
24636if test "x$ac_cv_func_vfork_works" = xyes; then
24637
cristy8b350f62009-11-15 23:12:43 +000024638$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024639
24640else
24641
cristy8b350f62009-11-15 23:12:43 +000024642$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024643
24644fi
24645if test "x$ac_cv_func_fork_works" = xyes; then
24646
cristy8b350f62009-11-15 23:12:43 +000024647$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024648
24649fi
24650
cristy8b350f62009-11-15 23:12:43 +000024651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024652$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024653if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024654 $as_echo_n "(cached) " >&6
24655else
cristy8b350f62009-11-15 23:12:43 +000024656 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024657 ac_cv_func_memcmp_working=no
24658else
cristy8b350f62009-11-15 23:12:43 +000024659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024660/* end confdefs.h. */
24661$ac_includes_default
24662int
24663main ()
24664{
24665
24666 /* Some versions of memcmp are not 8-bit clean. */
24667 char c0 = '\100', c1 = '\200', c2 = '\201';
24668 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24669 return 1;
24670
24671 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24672 or more and with at least one buffer not starting on a 4-byte boundary.
24673 William Lewis provided this test program. */
24674 {
24675 char foo[21];
24676 char bar[21];
24677 int i;
24678 for (i = 0; i < 4; i++)
24679 {
24680 char *a = foo + i;
24681 char *b = bar + i;
24682 strcpy (a, "--------01111111");
24683 strcpy (b, "--------10000000");
24684 if (memcmp (a, b, 16) >= 0)
24685 return 1;
24686 }
24687 return 0;
24688 }
24689
24690 ;
24691 return 0;
24692}
24693_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024694if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024695 ac_cv_func_memcmp_working=yes
24696else
cristy8b350f62009-11-15 23:12:43 +000024697 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024698fi
cristy8b350f62009-11-15 23:12:43 +000024699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24700 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024701fi
24702
cristy3ed852e2009-09-05 21:47:34 +000024703fi
cristy8b350f62009-11-15 23:12:43 +000024704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024705$as_echo "$ac_cv_func_memcmp_working" >&6; }
24706test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24707 *" memcmp.$ac_objext "* ) ;;
24708 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24709 ;;
24710esac
24711
24712
cristy3ed852e2009-09-05 21:47:34 +000024713for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024714do :
24715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24716ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024717if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024718 cat >>confdefs.h <<_ACEOF
24719#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24720_ACEOF
24721
24722fi
24723
24724done
24725
cristy8b350f62009-11-15 23:12:43 +000024726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024727$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024728if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024729 $as_echo_n "(cached) " >&6
24730else
24731 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24732 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24733 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024735/* end confdefs.h. */
24736$ac_includes_default
24737#ifdef HAVE_SYS_SELECT_H
24738# include <sys/select.h>
24739#endif
24740#ifdef HAVE_SYS_SOCKET_H
24741# include <sys/socket.h>
24742#endif
24743
24744int
24745main ()
24746{
24747extern int select ($ac_arg1,
24748 $ac_arg234, $ac_arg234, $ac_arg234,
24749 $ac_arg5);
24750 ;
24751 return 0;
24752}
24753_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024754if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024755 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024756fi
cristy3ed852e2009-09-05 21:47:34 +000024757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24758 done
24759 done
24760done
24761# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024762: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024763
24764fi
cristy8b350f62009-11-15 23:12:43 +000024765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024766$as_echo "$ac_cv_func_select_args" >&6; }
24767ac_save_IFS=$IFS; IFS=','
24768set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24769IFS=$ac_save_IFS
24770shift
24771
24772cat >>confdefs.h <<_ACEOF
24773#define SELECT_TYPE_ARG1 $1
24774_ACEOF
24775
24776
24777cat >>confdefs.h <<_ACEOF
24778#define SELECT_TYPE_ARG234 ($2)
24779_ACEOF
24780
24781
24782cat >>confdefs.h <<_ACEOF
24783#define SELECT_TYPE_ARG5 ($3)
24784_ACEOF
24785
24786rm -f conftest*
24787
cristyda16f162011-02-19 23:52:17 +000024788if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024789 $as_echo_n "(cached) " >&6
24790else
24791 ac_cv_func_setvbuf_reversed=no
24792fi
24793
24794
cristy8b350f62009-11-15 23:12:43 +000024795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024796$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024797if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024798 $as_echo_n "(cached) " >&6
24799else
cristy8b350f62009-11-15 23:12:43 +000024800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024801/* end confdefs.h. */
24802#include <sys/types.h>
24803#include <signal.h>
24804
24805int
24806main ()
24807{
24808return *(signal (0, 0)) (0) == 1;
24809 ;
24810 return 0;
24811}
24812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024813if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024814 ac_cv_type_signal=int
24815else
cristy8b350f62009-11-15 23:12:43 +000024816 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024817fi
cristy3ed852e2009-09-05 21:47:34 +000024818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24819fi
cristy8b350f62009-11-15 23:12:43 +000024820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024821$as_echo "$ac_cv_type_signal" >&6; }
24822
24823cat >>confdefs.h <<_ACEOF
24824#define RETSIGTYPE $ac_cv_type_signal
24825_ACEOF
24826
24827
cristy8b350f62009-11-15 23:12:43 +000024828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024829$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024830if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024831 $as_echo_n "(cached) " >&6
24832else
cristy8b350f62009-11-15 23:12:43 +000024833 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024834 ac_cv_func_strtod=no
24835else
cristy8b350f62009-11-15 23:12:43 +000024836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024837/* end confdefs.h. */
24838
24839$ac_includes_default
24840#ifndef strtod
24841double strtod ();
24842#endif
24843int
24844main()
24845{
24846 {
24847 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24848 char *string = " +69";
24849 char *term;
24850 double value;
24851 value = strtod (string, &term);
24852 if (value != 69 || term != (string + 4))
24853 return 1;
24854 }
24855
24856 {
24857 /* Under Solaris 2.4, strtod returns the wrong value for the
24858 terminating character under some conditions. */
24859 char *string = "NaN";
24860 char *term;
24861 strtod (string, &term);
24862 if (term != string && *(term - 1) == 0)
24863 return 1;
24864 }
24865 return 0;
24866}
24867
24868_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024869if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024870 ac_cv_func_strtod=yes
24871else
cristy8b350f62009-11-15 23:12:43 +000024872 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024873fi
cristy8b350f62009-11-15 23:12:43 +000024874rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24875 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024876fi
24877
cristy3ed852e2009-09-05 21:47:34 +000024878fi
cristy8b350f62009-11-15 23:12:43 +000024879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024880$as_echo "$ac_cv_func_strtod" >&6; }
24881if test $ac_cv_func_strtod = no; then
24882 case " $LIBOBJS " in
24883 *" strtod.$ac_objext "* ) ;;
24884 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24885 ;;
24886esac
24887
cristy8b350f62009-11-15 23:12:43 +000024888ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024889if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024890
cristy3ed852e2009-09-05 21:47:34 +000024891fi
24892
cristy3ed852e2009-09-05 21:47:34 +000024893if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024895$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024896if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024897 $as_echo_n "(cached) " >&6
24898else
24899 ac_check_lib_save_LIBS=$LIBS
24900LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024902/* end confdefs.h. */
24903
24904/* Override any GCC internal prototype to avoid an error.
24905 Use char because int might match the return type of a GCC
24906 builtin and then its argument prototype would still apply. */
24907#ifdef __cplusplus
24908extern "C"
24909#endif
24910char pow ();
24911int
24912main ()
24913{
24914return pow ();
24915 ;
24916 return 0;
24917}
24918_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024919if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024920 ac_cv_lib_m_pow=yes
24921else
cristy8b350f62009-11-15 23:12:43 +000024922 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024923fi
cristy8b350f62009-11-15 23:12:43 +000024924rm -f core conftest.err conftest.$ac_objext \
24925 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024926LIBS=$ac_check_lib_save_LIBS
24927fi
cristy8b350f62009-11-15 23:12:43 +000024928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024929$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024930if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024931 POW_LIB=-lm
24932else
cristy8b350f62009-11-15 23:12:43 +000024933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024934$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24935fi
24936
24937fi
24938
24939fi
24940
cristy7d4a1d62011-10-13 15:54:12 +000024941ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24942if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24943 ac_have_decl=1
24944else
24945 ac_have_decl=0
24946fi
24947
24948cat >>confdefs.h <<_ACEOF
24949#define HAVE_DECL_STRERROR_R $ac_have_decl
24950_ACEOF
24951
24952for ac_func in strerror_r
24953do :
24954 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24955if test "x$ac_cv_func_strerror_r" = xyes; then :
24956 cat >>confdefs.h <<_ACEOF
24957#define HAVE_STRERROR_R 1
24958_ACEOF
24959
24960fi
24961done
24962
24963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24964$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24965if ${ac_cv_func_strerror_r_char_p+:} false; then :
24966 $as_echo_n "(cached) " >&6
24967else
24968
24969 ac_cv_func_strerror_r_char_p=no
24970 if test $ac_cv_have_decl_strerror_r = yes; then
24971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24972/* end confdefs.h. */
24973$ac_includes_default
24974int
24975main ()
24976{
24977
24978 char buf[100];
24979 char x = *strerror_r (0, buf, sizeof buf);
24980 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024981 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024982
24983 ;
24984 return 0;
24985}
24986_ACEOF
24987if ac_fn_c_try_compile "$LINENO"; then :
24988 ac_cv_func_strerror_r_char_p=yes
24989fi
24990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24991 else
24992 # strerror_r is not declared. Choose between
24993 # systems that have relatively inaccessible declarations for the
24994 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24995 # former has a strerror_r that returns char*, while the latter
24996 # has a strerror_r that returns `int'.
24997 # This test should segfault on the DEC system.
24998 if test "$cross_compiling" = yes; then :
24999 :
25000else
25001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25002/* end confdefs.h. */
25003$ac_includes_default
25004 extern char *strerror_r ();
25005int
25006main ()
25007{
25008char buf[100];
25009 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025010 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025011 ;
25012 return 0;
25013}
25014_ACEOF
25015if ac_fn_c_try_run "$LINENO"; then :
25016 ac_cv_func_strerror_r_char_p=yes
25017fi
25018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25019 conftest.$ac_objext conftest.beam conftest.$ac_ext
25020fi
25021
25022 fi
25023
25024fi
25025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25026$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25027if test $ac_cv_func_strerror_r_char_p = yes; then
25028
25029$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25030
25031fi
25032
cristy3ed852e2009-09-05 21:47:34 +000025033for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025034do :
25035 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025036if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025037 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025038#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025039_ACEOF
25040
cristy8b350f62009-11-15 23:12:43 +000025041ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025042if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025043
cristy8b350f62009-11-15 23:12:43 +000025044$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025045
25046fi
25047
25048fi
25049done
25050
25051
25052
cristy161b9262010-03-20 19:34:32 +000025053#
25054# Find math library
25055#
25056MATH_LIBS=''
25057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25058$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025059if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025060 $as_echo_n "(cached) " >&6
25061else
25062 ac_check_lib_save_LIBS=$LIBS
25063LIBS="-lm $LIBS"
25064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25065/* end confdefs.h. */
25066
25067/* Override any GCC internal prototype to avoid an error.
25068 Use char because int might match the return type of a GCC
25069 builtin and then its argument prototype would still apply. */
25070#ifdef __cplusplus
25071extern "C"
25072#endif
25073char sqrt ();
25074int
25075main ()
25076{
25077return sqrt ();
25078 ;
25079 return 0;
25080}
25081_ACEOF
25082if ac_fn_c_try_link "$LINENO"; then :
25083 ac_cv_lib_m_sqrt=yes
25084else
25085 ac_cv_lib_m_sqrt=no
25086fi
25087rm -f core conftest.err conftest.$ac_objext \
25088 conftest$ac_exeext conftest.$ac_ext
25089LIBS=$ac_check_lib_save_LIBS
25090fi
25091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25092$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025093if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025094 MATH_LIBS="-lm"
25095fi
25096
25097LIBS="$MATH_LIBS $LIBS"
25098
25099
cristy85572162013-01-04 19:19:32 +000025100#
25101# Find socket library
25102#
cristy8a5d7f42013-01-06 15:24:33 +000025103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25104$as_echo_n "checking for library containing gethostbyname... " >&6; }
25105if ${ac_cv_search_gethostbyname+:} false; then :
25106 $as_echo_n "(cached) " >&6
25107else
25108 ac_func_search_save_LIBS=$LIBS
25109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25110/* end confdefs.h. */
25111
25112/* Override any GCC internal prototype to avoid an error.
25113 Use char because int might match the return type of a GCC
25114 builtin and then its argument prototype would still apply. */
25115#ifdef __cplusplus
25116extern "C"
25117#endif
25118char gethostbyname ();
25119int
25120main ()
25121{
25122return gethostbyname ();
25123 ;
25124 return 0;
25125}
25126_ACEOF
25127for ac_lib in '' resolv nsl; do
25128 if test -z "$ac_lib"; then
25129 ac_res="none required"
25130 else
25131 ac_res=-l$ac_lib
25132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25133 fi
25134 if ac_fn_c_try_link "$LINENO"; then :
25135 ac_cv_search_gethostbyname=$ac_res
25136fi
25137rm -f core conftest.err conftest.$ac_objext \
25138 conftest$ac_exeext
25139 if ${ac_cv_search_gethostbyname+:} false; then :
25140 break
25141fi
25142done
25143if ${ac_cv_search_gethostbyname+:} false; then :
25144
25145else
25146 ac_cv_search_gethostbyname=no
25147fi
25148rm conftest.$ac_ext
25149LIBS=$ac_func_search_save_LIBS
25150fi
25151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25152$as_echo "$ac_cv_search_gethostbyname" >&6; }
25153ac_res=$ac_cv_search_gethostbyname
25154if test "$ac_res" != no; then :
25155 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25156
25157fi
25158
cristy85572162013-01-04 19:19:32 +000025159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25160$as_echo_n "checking for library containing socket... " >&6; }
25161if ${ac_cv_search_socket+:} false; then :
25162 $as_echo_n "(cached) " >&6
25163else
25164 ac_func_search_save_LIBS=$LIBS
25165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25166/* end confdefs.h. */
25167
25168/* Override any GCC internal prototype to avoid an error.
25169 Use char because int might match the return type of a GCC
25170 builtin and then its argument prototype would still apply. */
25171#ifdef __cplusplus
25172extern "C"
25173#endif
25174char socket ();
25175int
25176main ()
25177{
25178return socket ();
25179 ;
25180 return 0;
25181}
25182_ACEOF
25183for ac_lib in '' socket; do
25184 if test -z "$ac_lib"; then
25185 ac_res="none required"
25186 else
25187 ac_res=-l$ac_lib
25188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25189 fi
25190 if ac_fn_c_try_link "$LINENO"; then :
25191 ac_cv_search_socket=$ac_res
25192fi
25193rm -f core conftest.err conftest.$ac_objext \
25194 conftest$ac_exeext
25195 if ${ac_cv_search_socket+:} false; then :
25196 break
25197fi
25198done
25199if ${ac_cv_search_socket+:} false; then :
25200
25201else
25202 ac_cv_search_socket=no
25203fi
25204rm conftest.$ac_ext
25205LIBS=$ac_func_search_save_LIBS
25206fi
25207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25208$as_echo "$ac_cv_search_socket" >&6; }
25209ac_res=$ac_cv_search_socket
25210if test "$ac_res" != no; then :
25211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25212
cristy85572162013-01-04 19:19:32 +000025213
cristy8a5d7f42013-01-06 15:24:33 +000025214$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025215
cristy03f187e2013-01-24 00:22:19 +000025216 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025217
25218fi
25219
25220
25221for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale socket sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025222do :
25223 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25224ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025225if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025226 cat >>confdefs.h <<_ACEOF
25227#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25228_ACEOF
25229
25230fi
25231done
25232
25233
cristye43a45e2009-09-28 14:49:00 +000025234#
25235# Check for clock_gettime().
25236#
cristy8b350f62009-11-15 23:12:43 +000025237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025238$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025239if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025240 $as_echo_n "(cached) " >&6
25241else
25242 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025244/* end confdefs.h. */
25245
25246/* Override any GCC internal prototype to avoid an error.
25247 Use char because int might match the return type of a GCC
25248 builtin and then its argument prototype would still apply. */
25249#ifdef __cplusplus
25250extern "C"
25251#endif
25252char clock_gettime ();
25253int
25254main ()
25255{
25256return clock_gettime ();
25257 ;
25258 return 0;
25259}
25260_ACEOF
25261for ac_lib in '' rt; do
25262 if test -z "$ac_lib"; then
25263 ac_res="none required"
25264 else
25265 ac_res=-l$ac_lib
25266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25267 fi
cristy8b350f62009-11-15 23:12:43 +000025268 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025269 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025270fi
cristy8b350f62009-11-15 23:12:43 +000025271rm -f core conftest.err conftest.$ac_objext \
25272 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025273 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025274 break
25275fi
25276done
cristyda16f162011-02-19 23:52:17 +000025277if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025278
cristye43a45e2009-09-28 14:49:00 +000025279else
25280 ac_cv_search_clock_gettime=no
25281fi
25282rm conftest.$ac_ext
25283LIBS=$ac_func_search_save_LIBS
25284fi
cristy8b350f62009-11-15 23:12:43 +000025285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025286$as_echo "$ac_cv_search_clock_gettime" >&6; }
25287ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025288if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25290
25291
cristy8b350f62009-11-15 23:12:43 +000025292$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025293
cristy8b350f62009-11-15 23:12:43 +000025294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025295$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025297/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025298
25299 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025300int
25301main ()
25302{
25303clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025304 ;
25305 return 0;
25306}
25307_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025308if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025309
cristyad38abe2012-12-23 23:03:21 +000025310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25311$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025312
cristy8b350f62009-11-15 23:12:43 +000025313$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025314
25315
25316else
cristyad38abe2012-12-23 23:03:21 +000025317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25318$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025319
25320fi
cristye43a45e2009-09-28 14:49:00 +000025321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25322
25323else
25324
cristy8b350f62009-11-15 23:12:43 +000025325 for ac_func in gettimeofday ftime
25326do :
25327 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25328ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025329if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025330 cat >>confdefs.h <<_ACEOF
25331#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25332_ACEOF
25333 break
25334fi
25335done
25336
25337
25338
25339fi
25340
25341
cristy3ed852e2009-09-05 21:47:34 +000025342########
25343#
25344# Check for function prototypes
25345#
25346########
25347
cristy8b350f62009-11-15 23:12:43 +000025348ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025349#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025350"
cristyda16f162011-02-19 23:52:17 +000025351if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025352 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025353else
cristy8b350f62009-11-15 23:12:43 +000025354 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025355fi
25356
cristy3ed852e2009-09-05 21:47:34 +000025357cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025358#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025359_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025360ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025361#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025362"
cristyda16f162011-02-19 23:52:17 +000025363if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025364 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025365else
cristy8b350f62009-11-15 23:12:43 +000025366 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025367fi
25368
cristy3ed852e2009-09-05 21:47:34 +000025369cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025370#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025371_ACEOF
25372
25373
cristy8b350f62009-11-15 23:12:43 +000025374ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025375#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025376"
cristyda16f162011-02-19 23:52:17 +000025377if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025378 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025379else
cristy8b350f62009-11-15 23:12:43 +000025380 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025381fi
25382
cristy3ed852e2009-09-05 21:47:34 +000025383cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025384#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025385_ACEOF
25386
25387
cristy8b350f62009-11-15 23:12:43 +000025388ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025389#include <stdio.h>
25390#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025391"
cristyda16f162011-02-19 23:52:17 +000025392if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025393 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025394else
cristy8b350f62009-11-15 23:12:43 +000025395 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025396fi
25397
cristy3ed852e2009-09-05 21:47:34 +000025398cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025399#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025400_ACEOF
25401
25402
cristy3ed852e2009-09-05 21:47:34 +000025403########
25404#
25405# C++ Support Tests (For Magick++)
25406#
25407########
25408have_magick_plus_plus='no'
25409if test "$with_magick_plus_plus" = 'yes'; then
25410 OLIBS="$LIBS"
25411 LIBS=''
25412 ac_ext=cpp
25413ac_cpp='$CXXCPP $CPPFLAGS'
25414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25417
25418
25419 # Full set of headers used...
25420 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25421 # functional iomanip iosfwd iostream iterator list string strstream utility
25422 ac_ext=cpp
25423ac_cpp='$CXXCPP $CPPFLAGS'
25424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25427
25428 ac_ext=cpp
25429ac_cpp='$CXXCPP $CPPFLAGS'
25430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25433if test -z "$CXX"; then
25434 if test -n "$CCC"; then
25435 CXX=$CCC
25436 else
25437 if test -n "$ac_tool_prefix"; then
25438 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25439 do
25440 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25441set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025443$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025444if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025445 $as_echo_n "(cached) " >&6
25446else
25447 if test -n "$CXX"; then
25448 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25449else
25450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25451for as_dir in $PATH
25452do
25453 IFS=$as_save_IFS
25454 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025455 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025457 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025459 break 2
25460 fi
25461done
cristy8b350f62009-11-15 23:12:43 +000025462 done
cristy3ed852e2009-09-05 21:47:34 +000025463IFS=$as_save_IFS
25464
25465fi
25466fi
25467CXX=$ac_cv_prog_CXX
25468if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025470$as_echo "$CXX" >&6; }
25471else
cristy8b350f62009-11-15 23:12:43 +000025472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025473$as_echo "no" >&6; }
25474fi
25475
25476
25477 test -n "$CXX" && break
25478 done
25479fi
25480if test -z "$CXX"; then
25481 ac_ct_CXX=$CXX
25482 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25483do
25484 # Extract the first word of "$ac_prog", so it can be a program name with args.
25485set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025487$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025488if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025489 $as_echo_n "(cached) " >&6
25490else
25491 if test -n "$ac_ct_CXX"; then
25492 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25493else
25494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25495for as_dir in $PATH
25496do
25497 IFS=$as_save_IFS
25498 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025499 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025501 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025503 break 2
25504 fi
25505done
cristy8b350f62009-11-15 23:12:43 +000025506 done
cristy3ed852e2009-09-05 21:47:34 +000025507IFS=$as_save_IFS
25508
25509fi
25510fi
25511ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25512if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025514$as_echo "$ac_ct_CXX" >&6; }
25515else
cristy8b350f62009-11-15 23:12:43 +000025516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025517$as_echo "no" >&6; }
25518fi
25519
25520
25521 test -n "$ac_ct_CXX" && break
25522done
25523
25524 if test "x$ac_ct_CXX" = x; then
25525 CXX="g++"
25526 else
25527 case $cross_compiling:$ac_tool_warned in
25528yes:)
cristy8b350f62009-11-15 23:12:43 +000025529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25531ac_tool_warned=yes ;;
25532esac
25533 CXX=$ac_ct_CXX
25534 fi
25535fi
25536
25537 fi
25538fi
25539# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025540$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025541set X $ac_compile
25542ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025543for ac_option in --version -v -V -qversion; do
25544 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025545case "(($ac_try" in
25546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25547 *) ac_try_echo=$ac_try;;
25548esac
cristy8b350f62009-11-15 23:12:43 +000025549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25550$as_echo "$ac_try_echo"; } >&5
25551 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025552 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025553 if test -s conftest.err; then
25554 sed '10a\
25555... rest of stderr output deleted ...
25556 10q' conftest.err >conftest.er1
25557 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025558 fi
cristycd4c5312009-11-22 01:19:08 +000025559 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25561 test $ac_status = 0; }
25562done
cristy3ed852e2009-09-05 21:47:34 +000025563
cristy8b350f62009-11-15 23:12:43 +000025564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025565$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025566if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025567 $as_echo_n "(cached) " >&6
25568else
cristy8b350f62009-11-15 23:12:43 +000025569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025570/* end confdefs.h. */
25571
25572int
25573main ()
25574{
25575#ifndef __GNUC__
25576 choke me
25577#endif
25578
25579 ;
25580 return 0;
25581}
25582_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025583if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025584 ac_compiler_gnu=yes
25585else
cristy8b350f62009-11-15 23:12:43 +000025586 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025587fi
cristy3ed852e2009-09-05 21:47:34 +000025588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25589ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25590
25591fi
cristy8b350f62009-11-15 23:12:43 +000025592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025593$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25594if test $ac_compiler_gnu = yes; then
25595 GXX=yes
25596else
25597 GXX=
25598fi
25599ac_test_CXXFLAGS=${CXXFLAGS+set}
25600ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025602$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025603if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025604 $as_echo_n "(cached) " >&6
25605else
25606 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25607 ac_cxx_werror_flag=yes
25608 ac_cv_prog_cxx_g=no
25609 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025611/* end confdefs.h. */
25612
25613int
25614main ()
25615{
25616
25617 ;
25618 return 0;
25619}
25620_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025621if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025622 ac_cv_prog_cxx_g=yes
25623else
cristy8b350f62009-11-15 23:12:43 +000025624 CXXFLAGS=""
25625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025626/* end confdefs.h. */
25627
25628int
25629main ()
25630{
25631
25632 ;
25633 return 0;
25634}
25635_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025636if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025637
cristy8b350f62009-11-15 23:12:43 +000025638else
25639 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025640 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025642/* end confdefs.h. */
25643
25644int
25645main ()
25646{
25647
25648 ;
25649 return 0;
25650}
25651_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025652if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025653 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025654fi
cristy3ed852e2009-09-05 21:47:34 +000025655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25656fi
cristy3ed852e2009-09-05 21:47:34 +000025657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25658fi
cristy3ed852e2009-09-05 21:47:34 +000025659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25660 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25661fi
cristy8b350f62009-11-15 23:12:43 +000025662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025663$as_echo "$ac_cv_prog_cxx_g" >&6; }
25664if test "$ac_test_CXXFLAGS" = set; then
25665 CXXFLAGS=$ac_save_CXXFLAGS
25666elif test $ac_cv_prog_cxx_g = yes; then
25667 if test "$GXX" = yes; then
25668 CXXFLAGS="-g -O2"
25669 else
25670 CXXFLAGS="-g"
25671 fi
25672else
25673 if test "$GXX" = yes; then
25674 CXXFLAGS="-O2"
25675 else
25676 CXXFLAGS=
25677 fi
25678fi
25679ac_ext=cpp
25680ac_cpp='$CXXCPP $CPPFLAGS'
25681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25684
cristy73bd4a52010-10-05 11:24:23 +000025685depcc="$CXX" am_compiler_list=
25686
25687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25688$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025689if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025690 $as_echo_n "(cached) " >&6
25691else
25692 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25693 # We make a subdir and do the tests there. Otherwise we can end up
25694 # making bogus files that we don't know about and never remove. For
25695 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025696 # making a dummy file named 'D' -- because '-MD' means "put the output
25697 # in D".
cristy7247bba2012-02-05 16:37:27 +000025698 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025699 mkdir conftest.dir
25700 # Copy depcomp to subdir because otherwise we won't find it if we're
25701 # using a relative directory.
25702 cp "$am_depcomp" conftest.dir
25703 cd conftest.dir
25704 # We will build objects and dependencies in a subdirectory because
25705 # it helps to detect inapplicable dependency modes. For instance
25706 # both Tru64's cc and ICC support -MD to output dependencies as a
25707 # side effect of compilation, but ICC will put the dependencies in
25708 # the current directory while Tru64 will put them in the object
25709 # directory.
25710 mkdir sub
25711
25712 am_cv_CXX_dependencies_compiler_type=none
25713 if test "$am_compiler_list" = ""; then
25714 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25715 fi
25716 am__universal=false
25717 case " $depcc " in #(
25718 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25719 esac
25720
25721 for depmode in $am_compiler_list; do
25722 # Setup a source with many dependencies, because some compilers
25723 # like to wrap large dependency lists on column 80 (with \), and
25724 # we should not choose a depcomp mode which is confused by this.
25725 #
25726 # We need to recreate these files for each test, as the compiler may
25727 # overwrite some of them when testing with obscure command lines.
25728 # This happens at least with the AIX C compiler.
25729 : > sub/conftest.c
25730 for i in 1 2 3 4 5 6; do
25731 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025732 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25733 # Solaris 10 /bin/sh.
25734 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025735 done
25736 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25737
cristyc0890a62012-07-19 00:18:20 +000025738 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025739 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025740 # handle '-M -o', and we need to detect this. Also, some Intel
25741 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025742 am__obj=sub/conftest.${OBJEXT-o}
25743 am__minus_obj="-o $am__obj"
25744 case $depmode in
25745 gcc)
25746 # This depmode causes a compiler race in universal mode.
25747 test "$am__universal" = false || continue
25748 ;;
25749 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025750 # After this tag, mechanisms are not by side-effect, so they'll
25751 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025752 if test "x$enable_dependency_tracking" = xyes; then
25753 continue
25754 else
25755 break
25756 fi
25757 ;;
cristy7247bba2012-02-05 16:37:27 +000025758 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025759 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025760 # not run yet. These depmodes are late enough in the game, and
25761 # so weak that their functioning should not be impacted.
25762 am__obj=conftest.${OBJEXT-o}
25763 am__minus_obj=
25764 ;;
25765 none) break ;;
25766 esac
25767 if depmode=$depmode \
25768 source=sub/conftest.c object=$am__obj \
25769 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25770 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25771 >/dev/null 2>conftest.err &&
25772 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25773 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25774 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25775 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25776 # icc doesn't choke on unknown options, it will just issue warnings
25777 # or remarks (even with -Werror). So we grep stderr for any message
25778 # that says an option was ignored or not supported.
25779 # When given -MP, icc 7.0 and 7.1 complain thusly:
25780 # icc: Command line warning: ignoring option '-M'; no argument required
25781 # The diagnosis changed in icc 8.0:
25782 # icc: Command line remark: option '-MP' not supported
25783 if (grep 'ignoring option' conftest.err ||
25784 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25785 am_cv_CXX_dependencies_compiler_type=$depmode
25786 break
25787 fi
25788 fi
25789 done
25790
25791 cd ..
25792 rm -rf conftest.dir
25793else
25794 am_cv_CXX_dependencies_compiler_type=none
25795fi
25796
25797fi
25798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25799$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25800CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25801
25802 if
25803 test "x$enable_dependency_tracking" != xno \
25804 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25805 am__fastdepCXX_TRUE=
25806 am__fastdepCXX_FALSE='#'
25807else
25808 am__fastdepCXX_TRUE='#'
25809 am__fastdepCXX_FALSE=
25810fi
25811
25812
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25814$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025815if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025816 $as_echo_n "(cached) " >&6
25817else
25818
25819 ac_ext=cpp
25820ac_cpp='$CXXCPP $CPPFLAGS'
25821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25824
25825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25826/* end confdefs.h. */
25827
25828int f(int x){return 1;}
25829int f(char x){return 1;}
25830int f(bool x){return 1;}
25831
25832int
25833main ()
25834{
25835bool b = true; return f(b);
25836 ;
25837 return 0;
25838}
25839_ACEOF
25840if ac_fn_cxx_try_compile "$LINENO"; then :
25841 ax_cv_cxx_bool=yes
25842else
25843 ax_cv_cxx_bool=no
25844fi
25845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25846 ac_ext=cpp
25847ac_cpp='$CXXCPP $CPPFLAGS'
25848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25851
25852
25853fi
25854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25855$as_echo "$ax_cv_cxx_bool" >&6; }
25856if test "$ax_cv_cxx_bool" = yes; then
25857
25858$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25859
25860fi
25861
25862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25863$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025864if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025865 $as_echo_n "(cached) " >&6
25866else
25867
25868 ac_ext=cpp
25869ac_cpp='$CXXCPP $CPPFLAGS'
25870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25873
25874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25875/* end confdefs.h. */
25876namespace Outer { namespace Inner { int i = 0; }}
25877int
25878main ()
25879{
25880using namespace Outer::Inner; return i;
25881 ;
25882 return 0;
25883}
25884_ACEOF
25885if ac_fn_cxx_try_compile "$LINENO"; then :
25886 ax_cv_cxx_namespaces=yes
25887else
25888 ax_cv_cxx_namespaces=no
25889fi
25890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25891 ac_ext=cpp
25892ac_cpp='$CXXCPP $CPPFLAGS'
25893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25896
25897
25898fi
25899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25900$as_echo "$ax_cv_cxx_namespaces" >&6; }
25901if test "$ax_cv_cxx_namespaces" = yes; then
25902
25903$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25904
25905fi
25906
25907
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25909$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025910if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025911 $as_echo_n "(cached) " >&6
25912else
25913
25914 ac_ext=cpp
25915ac_cpp='$CXXCPP $CPPFLAGS'
25916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25919
25920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25921/* end confdefs.h. */
25922#include <iostream>
25923 std::istream& is = std::cin;
25924int
25925main ()
25926{
25927
25928 ;
25929 return 0;
25930}
25931_ACEOF
25932if ac_fn_cxx_try_compile "$LINENO"; then :
25933 ax_cv_cxx_have_std_namespace=yes
25934else
25935 ax_cv_cxx_have_std_namespace=no
25936fi
25937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25938 ac_ext=cpp
25939ac_cpp='$CXXCPP $CPPFLAGS'
25940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25943
25944
25945fi
25946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25947$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25948 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25949
25950$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25951
25952 fi
25953
25954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25955$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025956if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025957 $as_echo_n "(cached) " >&6
25958else
25959
25960
25961 ac_ext=cpp
25962ac_cpp='$CXXCPP $CPPFLAGS'
25963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25966
25967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25968/* end confdefs.h. */
25969#include <iostream>
25970#include <map>
25971#include <iomanip>
25972#include <cmath>
25973#ifdef HAVE_NAMESPACES
25974using namespace std;
25975#endif
25976int
25977main ()
25978{
25979return 0;
25980 ;
25981 return 0;
25982}
25983_ACEOF
25984if ac_fn_cxx_try_compile "$LINENO"; then :
25985 ac_cv_cxx_have_std_libs=yes
25986else
25987 ac_cv_cxx_have_std_libs=no
25988fi
25989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25990 ac_ext=cpp
25991ac_cpp='$CXXCPP $CPPFLAGS'
25992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25995
25996
25997fi
25998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25999$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26000if test "$ac_cv_cxx_have_std_libs" = yes; then
26001
26002$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26003
26004fi
26005
cristy3ed852e2009-09-05 21:47:34 +000026006
26007 OPENMP_CXXFLAGS=
26008 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026009if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026010 enableval=$enable_openmp;
26011fi
26012
26013 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26015$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026016if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026017 $as_echo_n "(cached) " >&6
26018else
cristy8b350f62009-11-15 23:12:43 +000026019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26020/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026021
26022#ifndef _OPENMP
26023 choke me
26024#endif
26025#include <omp.h>
26026int main () { return omp_get_num_threads (); }
26027
26028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026029if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026030 ac_cv_prog_cxx_openmp='none needed'
26031else
cristy8b350f62009-11-15 23:12:43 +000026032 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026033 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26034 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026035 ac_save_CXXFLAGS=$CXXFLAGS
26036 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26038/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026039
26040#ifndef _OPENMP
26041 choke me
26042#endif
26043#include <omp.h>
26044int main () { return omp_get_num_threads (); }
26045
26046_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026047if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026048 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026049fi
cristy8b350f62009-11-15 23:12:43 +000026050rm -f core conftest.err conftest.$ac_objext \
26051 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026052 CXXFLAGS=$ac_save_CXXFLAGS
26053 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26054 break
26055 fi
26056 done
26057fi
cristy8b350f62009-11-15 23:12:43 +000026058rm -f core conftest.err conftest.$ac_objext \
26059 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026060fi
cristy8b350f62009-11-15 23:12:43 +000026061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026062$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26063 case $ac_cv_prog_cxx_openmp in #(
26064 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026065 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026066 *)
cristy8b350f62009-11-15 23:12:43 +000026067 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026068 esac
26069 fi
26070
26071
26072 ac_ext=c
26073ac_cpp='$CPP $CPPFLAGS'
26074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26076ac_compiler_gnu=$ac_cv_c_compiler_gnu
26077
26078
cristy8b350f62009-11-15 23:12:43 +000026079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026080$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26081 if \
cristy964cb7f2010-04-25 23:18:00 +000026082 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026083 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026084 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026085 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026086 have_magick_plus_plus='yes'
26087 else
26088 have_magick_plus_plus='no (failed tests)'
26089 fi
cristyad38abe2012-12-23 23:03:21 +000026090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26091$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026092 LIBS="$OLIBS"
26093fi
cristy73bd4a52010-10-05 11:24:23 +000026094 if test "$have_magick_plus_plus" = 'yes'; then
26095 WITH_MAGICK_PLUS_PLUS_TRUE=
26096 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26097else
26098 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26099 WITH_MAGICK_PLUS_PLUS_FALSE=
26100fi
26101
cristy3ed852e2009-09-05 21:47:34 +000026102
26103# Only check for delegate libraries in subdirectories if requested.
26104if test "$enable_delegate_build" != 'no'; then
26105 # Check for delegate sub-directories and add -I & -L options as required.
26106 # This presumes that delegates are installed as detailed in the ImageMagick
26107 # README. If delegates are installed in a standard location where the
26108 # compiler will automatically find them then these options should not be
26109 # required.
26110
26111 #
26112 # Most delegates have includes in the same directory as the library, but not all...
26113 #
26114 # Includes
cristy2542fc62011-12-06 17:50:25 +000026115 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 +000026116 if test -d "$builddir/$dir"; then
26117 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26118 else
26119 if test -d "$srcdirfull/$dir"; then
26120 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26121 fi
26122 fi
26123 done
26124
26125 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026126 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 +000026127 if test -d "$builddir/$dir/.libs"; then
26128 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26129 else
26130 if test -d "$srcdirfull/$dir/.libs"; then
26131 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26132 fi
26133 fi
26134 if test -d "$builddir/$dir"; then
26135 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26136 else
26137 if test -d "$srcdirfull/$dir"; then
26138 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26139 fi
26140 fi
26141 done
26142fi
26143
26144# Assume that delegate headers reside under same directory as ImageMagick
26145# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026146MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026147
26148#
26149# Find the X11 RGB database
26150#
cristy8b350f62009-11-15 23:12:43 +000026151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026152$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026153if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026154 $as_echo_n "(cached) " >&6
26155else
26156 # Look for the header file in a standard set of common directories.
26157# Check X11 before X11Rn because it is often a symlink to the current release.
26158 for ac_dir in \
26159 /lib/usr/lib/X11 \
26160 /usr/X11/lib \
26161 /usr/X11R4/lib \
26162 /usr/X11R5/lib \
26163 /usr/X11R6/lib \
26164 /usr/X11R7/lib \
26165 /usr/X386/lib \
26166 /usr/XFree86/lib/X11 \
26167 /usr/athena/lib \
26168 /usr/lib \
26169 /usr/lib/X11 \
26170 /usr/lib/X11R4 \
26171 /usr/lib/X11R5 \
26172 /usr/lib/X11R6 \
26173 /usr/lib/X11R7 \
26174 /usr/local/X11/lib \
26175 /usr/local/X11R4/lib \
26176 /usr/local/X11R5/lib \
26177 /usr/local/X11R6/lib \
26178 /usr/local/lib \
26179 /usr/local/lib/X11 \
26180 /usr/local/lib/X11R4 \
26181 /usr/local/lib/X11R5 \
26182 /usr/local/lib/X11R6 \
26183 /usr/local/lib/X11R7 \
26184 /usr/local/x11r5/lib \
26185 /usr/lpp/Xamples/lib \
26186 /usr/openwin/lib \
26187 /usr/openwin/share/lib \
26188 /usr/unsupported/lib \
26189 /usr/x386/lib \
26190 ; do
26191 if test -f "$ac_dir/X11/rgb.txt"; then
26192 im_cv_x_configure="$ac_dir/X11/"
26193 break
26194 elif test -f "$ac_dir/rgb.txt"; then
26195 im_cv_x_configure="$ac_dir/"
26196 break
26197 fi
26198
26199 done
26200fi
cristy8b350f62009-11-15 23:12:43 +000026201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026202$as_echo "$im_cv_x_configure" >&6; }
26203X11_CONFIGURE_PATH="$im_cv_x_configure"
26204case "${build_os}" in
26205 mingw* )
26206 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26207 ;;
26208esac
26209
26210cat >>confdefs.h <<_ACEOF
26211#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26212_ACEOF
26213
26214
26215#
26216# Find OpenMP library
26217#
26218GOMP_LIBS=''
26219if test "$enable_openmp" != 'no'; then
26220 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026221 # Open64 (passes for GCC but uses different OpenMP implementation)
26222 if test "x$GOMP_LIBS" = x ; then
26223 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26225$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26226if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26227 $as_echo_n "(cached) " >&6
26228else
26229 ac_check_lib_save_LIBS=$LIBS
26230LIBS="-lopenmp $LIBS"
26231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26232/* end confdefs.h. */
26233
26234/* Override any GCC internal prototype to avoid an error.
26235 Use char because int might match the return type of a GCC
26236 builtin and then its argument prototype would still apply. */
26237#ifdef __cplusplus
26238extern "C"
26239#endif
26240char omp_get_num_procs ();
26241int
26242main ()
26243{
26244return omp_get_num_procs ();
26245 ;
26246 return 0;
26247}
26248_ACEOF
26249if ac_fn_c_try_link "$LINENO"; then :
26250 ac_cv_lib_openmp_omp_get_num_procs=yes
26251else
26252 ac_cv_lib_openmp_omp_get_num_procs=no
26253fi
26254rm -f core conftest.err conftest.$ac_objext \
26255 conftest$ac_exeext conftest.$ac_ext
26256LIBS=$ac_check_lib_save_LIBS
26257fi
26258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26259$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26260if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26261 GOMP_LIBS="-lopenmp"
26262fi
26263
26264 fi
26265 fi
26266 # GCC
26267 if test "x$GOMP_LIBS" = x ; then
26268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026269$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026270if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026271 $as_echo_n "(cached) " >&6
26272else
26273 ac_check_lib_save_LIBS=$LIBS
26274LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026276/* end confdefs.h. */
26277
26278/* Override any GCC internal prototype to avoid an error.
26279 Use char because int might match the return type of a GCC
26280 builtin and then its argument prototype would still apply. */
26281#ifdef __cplusplus
26282extern "C"
26283#endif
26284char GOMP_parallel_start ();
26285int
26286main ()
26287{
26288return GOMP_parallel_start ();
26289 ;
26290 return 0;
26291}
26292_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026293if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026294 ac_cv_lib_gomp_GOMP_parallel_start=yes
26295else
cristy8b350f62009-11-15 23:12:43 +000026296 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026297fi
cristy8b350f62009-11-15 23:12:43 +000026298rm -f core conftest.err conftest.$ac_objext \
26299 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026300LIBS=$ac_check_lib_save_LIBS
26301fi
cristy8b350f62009-11-15 23:12:43 +000026302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026303$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026304if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026305 GOMP_LIBS="-lgomp"
26306fi
cristy18307f12011-12-30 01:20:16 +000026307
26308 fi
cristy3ed852e2009-09-05 21:47:34 +000026309 else
cristy18307f12011-12-30 01:20:16 +000026310 # Sun CC
26311 if test "x$GOMP_LIBS" = x ; then
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026313$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026314if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026315 $as_echo_n "(cached) " >&6
26316else
26317 ac_check_lib_save_LIBS=$LIBS
26318LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026320/* end confdefs.h. */
26321
26322/* Override any GCC internal prototype to avoid an error.
26323 Use char because int might match the return type of a GCC
26324 builtin and then its argument prototype would still apply. */
26325#ifdef __cplusplus
26326extern "C"
26327#endif
26328char sunw_mp_register_warn ();
26329int
26330main ()
26331{
26332return sunw_mp_register_warn ();
26333 ;
26334 return 0;
26335}
26336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026337if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026338 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26339else
cristy8b350f62009-11-15 23:12:43 +000026340 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026341fi
cristy8b350f62009-11-15 23:12:43 +000026342rm -f core conftest.err conftest.$ac_objext \
26343 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026344LIBS=$ac_check_lib_save_LIBS
26345fi
cristy8b350f62009-11-15 23:12:43 +000026346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026347$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026348if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026349 GOMP_LIBS="-lmtsk"
26350fi
cristy18307f12011-12-30 01:20:16 +000026351
26352 fi
26353 # AIX xlc
26354 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026356$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026357if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026358 $as_echo_n "(cached) " >&6
26359else
26360 ac_check_lib_save_LIBS=$LIBS
26361LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026363/* end confdefs.h. */
26364
26365/* Override any GCC internal prototype to avoid an error.
26366 Use char because int might match the return type of a GCC
26367 builtin and then its argument prototype would still apply. */
26368#ifdef __cplusplus
26369extern "C"
26370#endif
26371char _xlsmpFlush ();
26372int
26373main ()
26374{
26375return _xlsmpFlush ();
26376 ;
26377 return 0;
26378}
26379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026380if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026381 ac_cv_lib_xlsmp__xlsmpFlush=yes
26382else
cristy8b350f62009-11-15 23:12:43 +000026383 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026384fi
cristy8b350f62009-11-15 23:12:43 +000026385rm -f core conftest.err conftest.$ac_objext \
26386 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026387LIBS=$ac_check_lib_save_LIBS
26388fi
cristy8b350f62009-11-15 23:12:43 +000026389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026390$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026391if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026392 GOMP_LIBS="-lxlsmp"
26393fi
cristy18307f12011-12-30 01:20:16 +000026394
26395 fi
26396 # SGI IRIX 6.5 MIPSpro C/C++
26397 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026399$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026400if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026401 $as_echo_n "(cached) " >&6
26402else
26403 ac_check_lib_save_LIBS=$LIBS
26404LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026406/* end confdefs.h. */
26407
26408/* Override any GCC internal prototype to avoid an error.
26409 Use char because int might match the return type of a GCC
26410 builtin and then its argument prototype would still apply. */
26411#ifdef __cplusplus
26412extern "C"
26413#endif
26414char mp_destroy ();
26415int
26416main ()
26417{
26418return mp_destroy ();
26419 ;
26420 return 0;
26421}
26422_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026423if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026424 ac_cv_lib_mp_mp_destroy=yes
26425else
cristy8b350f62009-11-15 23:12:43 +000026426 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026427fi
cristy8b350f62009-11-15 23:12:43 +000026428rm -f core conftest.err conftest.$ac_objext \
26429 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026430LIBS=$ac_check_lib_save_LIBS
26431fi
cristy8b350f62009-11-15 23:12:43 +000026432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026433$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026434if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026435 GOMP_LIBS="-lmp"
26436fi
cristy18307f12011-12-30 01:20:16 +000026437
26438 fi
cristy3ed852e2009-09-05 21:47:34 +000026439 fi
26440 LIBS="$GOMP_LIBS $LIBS"
26441fi
26442
26443
26444#
26445# Find Posix threads library
26446#
26447THREAD_LIBS=''
26448if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26449
26450 if test "x$PTHREAD_LIBS" = "x"; then
26451 case "${host_cpu}-${host_os}" in
26452 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026453
26454
26455
26456ac_ext=c
26457ac_cpp='$CPP $CPPFLAGS'
26458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26460ac_compiler_gnu=$ac_cv_c_compiler_gnu
26461
26462magick_pthread_lib_ok=no
26463
26464LIB=-lc_r
26465save_LIBS="$LIBS"
26466LIBS="$LIBS $LIB"
26467
26468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26469$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26471/* end confdefs.h. */
26472#include <pthread.h>
26473int
26474main ()
26475{
26476 pthread_t th;
26477 pthread_join(th, 0);
26478 pthread_attr_init(0);
26479 pthread_cleanup_push(0, 0);
26480 pthread_create(0,0,0,0);
26481 pthread_cleanup_pop(0);
26482 ;
26483 return 0;
26484}
26485_ACEOF
26486if ac_fn_c_try_link "$LINENO"; then :
26487 magick_pthread_lib_ok=yes
26488fi
26489rm -f core conftest.err conftest.$ac_objext \
26490 conftest$ac_exeext conftest.$ac_ext
26491
26492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26493$as_echo "${magick_pthread_lib_ok}" >&6; }
26494if test "$magick_pthread_lib_ok" = yes
26495then
26496 PTHREAD_LIBS=-lc_r
26497 :
26498else
26499
26500 :
26501fi
26502
26503LIBS="$save_LIBS"
26504
26505ac_ext=c
26506ac_cpp='$CPP $CPPFLAGS'
26507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26509ac_compiler_gnu=$ac_cv_c_compiler_gnu
26510
26511 ;;
cristy3ed852e2009-09-05 21:47:34 +000026512 esac
26513 fi
26514
26515 for lib in pthread pthreads; do
26516 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026517
26518
26519
26520ac_ext=c
26521ac_cpp='$CPP $CPPFLAGS'
26522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26524ac_compiler_gnu=$ac_cv_c_compiler_gnu
26525
26526magick_pthread_lib_ok=no
26527
26528LIB=-l$lib
26529save_LIBS="$LIBS"
26530LIBS="$LIBS $LIB"
26531
26532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26533$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26535/* end confdefs.h. */
26536#include <pthread.h>
26537int
26538main ()
26539{
26540 pthread_t th;
26541 pthread_join(th, 0);
26542 pthread_attr_init(0);
26543 pthread_cleanup_push(0, 0);
26544 pthread_create(0,0,0,0);
26545 pthread_cleanup_pop(0);
26546 ;
26547 return 0;
26548}
26549_ACEOF
26550if ac_fn_c_try_link "$LINENO"; then :
26551 magick_pthread_lib_ok=yes
26552fi
26553rm -f core conftest.err conftest.$ac_objext \
26554 conftest$ac_exeext conftest.$ac_ext
26555
26556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26557$as_echo "${magick_pthread_lib_ok}" >&6; }
26558if test "$magick_pthread_lib_ok" = yes
26559then
26560 PTHREAD_LIBS=-l$lib
26561 :
26562else
26563
26564 :
26565fi
26566
26567LIBS="$save_LIBS"
26568
26569ac_ext=c
26570ac_cpp='$CPP $CPPFLAGS'
26571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26573ac_compiler_gnu=$ac_cv_c_compiler_gnu
26574
26575
cristy3ed852e2009-09-05 21:47:34 +000026576 fi
26577 done
26578
26579 THREAD_LIBS="$PTHREAD_LIBS"
26580 LIBS="$LIBS $THREAD_LIBS"
26581fi
26582
26583
26584#
26585# Check for umem.
26586#
26587have_umem='no'
26588UMEM_LIBS=''
26589if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026591$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26593$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026594 failed=0
26595 passed=0
cristy8b350f62009-11-15 23:12:43 +000026596 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026597if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026598 passed=`expr $passed + 1`
26599else
26600 failed=`expr $failed + 1`
26601fi
26602
26603
cristy8b350f62009-11-15 23:12:43 +000026604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026605$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026606if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026607 $as_echo_n "(cached) " >&6
26608else
26609 ac_check_lib_save_LIBS=$LIBS
26610LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026612/* end confdefs.h. */
26613
26614/* Override any GCC internal prototype to avoid an error.
26615 Use char because int might match the return type of a GCC
26616 builtin and then its argument prototype would still apply. */
26617#ifdef __cplusplus
26618extern "C"
26619#endif
26620char umem_alloc ();
26621int
26622main ()
26623{
26624return umem_alloc ();
26625 ;
26626 return 0;
26627}
26628_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026629if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026630 ac_cv_lib_umem_umem_alloc=yes
26631else
cristy8b350f62009-11-15 23:12:43 +000026632 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026633fi
cristy8b350f62009-11-15 23:12:43 +000026634rm -f core conftest.err conftest.$ac_objext \
26635 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026636LIBS=$ac_check_lib_save_LIBS
26637fi
cristy8b350f62009-11-15 23:12:43 +000026638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026639$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026640if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026641 passed=`expr $passed + 1`
26642else
26643 failed=`expr $failed + 1`
26644fi
26645
cristy8b350f62009-11-15 23:12:43 +000026646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026647$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026648if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026649 $as_echo_n "(cached) " >&6
26650else
26651 ac_check_lib_save_LIBS=$LIBS
26652LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026654/* end confdefs.h. */
26655
26656/* Override any GCC internal prototype to avoid an error.
26657 Use char because int might match the return type of a GCC
26658 builtin and then its argument prototype would still apply. */
26659#ifdef __cplusplus
26660extern "C"
26661#endif
26662char umem_free ();
26663int
26664main ()
26665{
26666return umem_free ();
26667 ;
26668 return 0;
26669}
26670_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026671if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026672 ac_cv_lib_umem_umem_free=yes
26673else
cristy8b350f62009-11-15 23:12:43 +000026674 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026675fi
cristy8b350f62009-11-15 23:12:43 +000026676rm -f core conftest.err conftest.$ac_objext \
26677 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026678LIBS=$ac_check_lib_save_LIBS
26679fi
cristy8b350f62009-11-15 23:12:43 +000026680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026681$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026682if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026683 passed=`expr $passed + 1`
26684else
26685 failed=`expr $failed + 1`
26686fi
26687
cristy8b350f62009-11-15 23:12:43 +000026688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026689$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26690 if test $passed -gt 0; then
26691 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26693$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026694 have_umem='no (failed tests)'
26695 else
26696 UMEM_LIBS='-lumem'
26697 LIBS="$UMEM_LIBS $LIBS"
26698
cristy8b350f62009-11-15 23:12:43 +000026699$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026700
cristyad38abe2012-12-23 23:03:21 +000026701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26702$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026703 have_umem='yes'
26704 fi
26705 else
cristyad38abe2012-12-23 23:03:21 +000026706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26707$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026708 fi
26709fi
cristy73bd4a52010-10-05 11:24:23 +000026710 if test "$have_umem" = 'yes'; then
26711 HasUMEM_TRUE=
26712 HasUMEM_FALSE='#'
26713else
26714 HasUMEM_TRUE='#'
26715 HasUMEM_FALSE=
26716fi
26717
cristy3ed852e2009-09-05 21:47:34 +000026718
26719
26720#
26721# Add support for ccmalloc memory debugging library if requested
26722#
26723have_ccmalloc='no'
26724CCMALLOC_LIBS=''
26725if test "$enable_ccmalloc" = 'yes'; then
26726 # Extract the first word of "ccmalloc", so it can be a program name with args.
26727set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026729$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026730if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026731 $as_echo_n "(cached) " >&6
26732else
26733 case $CCMALLOCDelegate in
26734 [\\/]* | ?:[\\/]*)
26735 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26736 ;;
26737 *)
26738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26739for as_dir in $PATH
26740do
26741 IFS=$as_save_IFS
26742 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026743 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026745 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026747 break 2
26748 fi
26749done
cristy8b350f62009-11-15 23:12:43 +000026750 done
cristy3ed852e2009-09-05 21:47:34 +000026751IFS=$as_save_IFS
26752
26753 ;;
26754esac
26755fi
26756CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26757if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026759$as_echo "$CCMALLOCDelegate" >&6; }
26760else
cristy8b350f62009-11-15 23:12:43 +000026761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026762$as_echo "no" >&6; }
26763fi
26764
26765
26766 if test -n "$CCMALLOCDelegate"; then
26767 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26768 OLIBS="$LIBS"
26769 # Assume that gcc is used with ccmalloc.
26770 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026772$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026773if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026774 $as_echo_n "(cached) " >&6
26775else
26776 ac_check_lib_save_LIBS=$LIBS
26777LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026779/* end confdefs.h. */
26780
26781/* Override any GCC internal prototype to avoid an error.
26782 Use char because int might match the return type of a GCC
26783 builtin and then its argument prototype would still apply. */
26784#ifdef __cplusplus
26785extern "C"
26786#endif
26787char ccmalloc_malloc ();
26788int
26789main ()
26790{
26791return ccmalloc_malloc ();
26792 ;
26793 return 0;
26794}
26795_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026796if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026797 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26798else
cristy8b350f62009-11-15 23:12:43 +000026799 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026800fi
cristy8b350f62009-11-15 23:12:43 +000026801rm -f core conftest.err conftest.$ac_objext \
26802 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026803LIBS=$ac_check_lib_save_LIBS
26804fi
cristy8b350f62009-11-15 23:12:43 +000026805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026806$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026807if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026808 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26809fi
26810
26811 if test -n "$CCMALLOC_LIBS"; then
26812 LIBS="$OLIBS"
26813 LIBS="$LIBS $CCMALLOC_LIBS"
26814 have_ccmalloc='yes'
26815 else
26816 LIBS="$OLIBS"
26817 fi
26818 fi
26819fi
26820
26821#
26822# Add support for efence memory debugging library if requested
26823#
26824if test "$enable_efence" = 'yes'; then
26825 EFENCE_LIBS='-lefence'
26826 LIBS="$EFENCE_LIBS $LIBS"
26827fi
26828
cristy3ed852e2009-09-05 21:47:34 +000026829
26830#
26831# Check for BZLIB
26832#
26833
26834
26835# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026836if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026837 withval=$with_bzlib; with_bzlib=$withval
26838else
26839 with_bzlib='yes'
26840fi
26841
26842
26843if test "$with_bzlib" != 'yes'; then
26844 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26845fi
26846
26847have_bzlib='no'
26848if test "$with_bzlib" != 'no'; then
26849 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26851$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026853$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26855$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026856 failed=0
26857 passed=0
26858 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026859 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026860if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026861 passed=`expr $passed + 1`
26862else
26863 failed=`expr $failed + 1`
26864fi
26865
26866
cristy8b350f62009-11-15 23:12:43 +000026867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026868$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026869if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026870 $as_echo_n "(cached) " >&6
26871else
26872 ac_check_lib_save_LIBS=$LIBS
26873LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026875/* end confdefs.h. */
26876
26877/* Override any GCC internal prototype to avoid an error.
26878 Use char because int might match the return type of a GCC
26879 builtin and then its argument prototype would still apply. */
26880#ifdef __cplusplus
26881extern "C"
26882#endif
26883char BZ2_bzDecompress ();
26884int
26885main ()
26886{
26887return BZ2_bzDecompress ();
26888 ;
26889 return 0;
26890}
26891_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026892if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026893 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26894else
cristy8b350f62009-11-15 23:12:43 +000026895 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026896fi
cristy8b350f62009-11-15 23:12:43 +000026897rm -f core conftest.err conftest.$ac_objext \
26898 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026899LIBS=$ac_check_lib_save_LIBS
26900fi
cristy8b350f62009-11-15 23:12:43 +000026901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026902$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026903if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026904 found_libbz=`expr $found_libbz + 1`
26905fi
26906
26907 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026909$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026910if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026911 $as_echo_n "(cached) " >&6
26912else
26913 ac_check_lib_save_LIBS=$LIBS
26914LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026916/* end confdefs.h. */
26917
26918/* Override any GCC internal prototype to avoid an error.
26919 Use char because int might match the return type of a GCC
26920 builtin and then its argument prototype would still apply. */
26921#ifdef __cplusplus
26922extern "C"
26923#endif
26924char _imp__BZ2_decompress ();
26925int
26926main ()
26927{
26928return _imp__BZ2_decompress ();
26929 ;
26930 return 0;
26931}
26932_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026933if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026934 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26935else
cristy8b350f62009-11-15 23:12:43 +000026936 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026937fi
cristy8b350f62009-11-15 23:12:43 +000026938rm -f core conftest.err conftest.$ac_objext \
26939 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026940LIBS=$ac_check_lib_save_LIBS
26941fi
cristy8b350f62009-11-15 23:12:43 +000026942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026943$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026944if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026945 found_libbz=`expr $found_libbz + 1`
26946fi
26947
26948 fi
26949 if test $found_libbz -gt 0; then
26950 passed=`expr $passed + 1`
26951 else
26952 failed=`expr $failed + 1`
26953 fi
cristy8b350f62009-11-15 23:12:43 +000026954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026955$as_echo_n "checking if BZLIB package is complete... " >&6; }
26956 if test $passed -gt 0; then
26957 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26959$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026960 have_bzlib='no (failed tests)'
26961 else
26962 BZLIB_LIBS='-lbz2'
26963 LIBS="$BZLIB_LIBS $LIBS"
26964
cristy8b350f62009-11-15 23:12:43 +000026965$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026966
cristyad38abe2012-12-23 23:03:21 +000026967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26968$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026969 have_bzlib='yes'
26970 fi
26971 else
cristyad38abe2012-12-23 23:03:21 +000026972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26973$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026974 fi
26975fi
cristy73bd4a52010-10-05 11:24:23 +000026976 if test "$have_bzlib" = 'yes'; then
26977 BZLIB_DELEGATE_TRUE=
26978 BZLIB_DELEGATE_FALSE='#'
26979else
26980 BZLIB_DELEGATE_TRUE='#'
26981 BZLIB_DELEGATE_FALSE=
26982fi
26983
cristy3ed852e2009-09-05 21:47:34 +000026984
26985
26986#
26987# Find the X11 include and library directories.
26988#
26989IPC_LIBS=''
26990X11_LIBS=''
26991XEXT_LIBS=''
26992XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026994$as_echo_n "checking for X... " >&6; }
26995
26996
26997# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026998if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026999 withval=$with_x;
27000fi
27001
27002# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27003if test "x$with_x" = xno; then
27004 # The user explicitly disabled X.
27005 have_x=disabled
27006else
27007 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027008 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027009 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027010 $as_echo_n "(cached) " >&6
27011else
27012 # One or both of the vars are not set, and there is no cached value.
27013ac_x_includes=no ac_x_libraries=no
27014rm -f -r conftest.dir
27015if mkdir conftest.dir; then
27016 cd conftest.dir
27017 cat >Imakefile <<'_ACEOF'
27018incroot:
27019 @echo incroot='${INCROOT}'
27020usrlibdir:
27021 @echo usrlibdir='${USRLIBDIR}'
27022libdir:
27023 @echo libdir='${LIBDIR}'
27024_ACEOF
27025 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027026 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027027 for ac_var in incroot usrlibdir libdir; do
27028 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27029 done
27030 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27031 for ac_extension in a so sl dylib la dll; do
27032 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27033 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27034 ac_im_usrlibdir=$ac_im_libdir; break
27035 fi
27036 done
27037 # Screen out bogus values from the imake configuration. They are
27038 # bogus both because they are the default anyway, and because
27039 # using them would break gcc on systems where it needs fixed includes.
27040 case $ac_im_incroot in
27041 /usr/include) ac_x_includes= ;;
27042 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27043 esac
27044 case $ac_im_usrlibdir in
27045 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27046 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27047 esac
27048 fi
27049 cd ..
27050 rm -f -r conftest.dir
27051fi
27052
27053# Standard set of common directories for X headers.
27054# Check X11 before X11Rn because it is often a symlink to the current release.
27055ac_x_header_dirs='
27056/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027057/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027058/usr/X11R6/include
27059/usr/X11R5/include
27060/usr/X11R4/include
27061
27062/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027063/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027064/usr/include/X11R6
27065/usr/include/X11R5
27066/usr/include/X11R4
27067
27068/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027069/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027070/usr/local/X11R6/include
27071/usr/local/X11R5/include
27072/usr/local/X11R4/include
27073
27074/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027075/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027076/usr/local/include/X11R6
27077/usr/local/include/X11R5
27078/usr/local/include/X11R4
27079
27080/usr/X386/include
27081/usr/x386/include
27082/usr/XFree86/include/X11
27083
27084/usr/include
27085/usr/local/include
27086/usr/unsupported/include
27087/usr/athena/include
27088/usr/local/x11r5/include
27089/usr/lpp/Xamples/include
27090
27091/usr/openwin/include
27092/usr/openwin/share/include'
27093
27094if test "$ac_x_includes" = no; then
27095 # Guess where to find include files, by looking for Xlib.h.
27096 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027098/* end confdefs.h. */
27099#include <X11/Xlib.h>
27100_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027101if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027102 # We can compile using X headers with no special include directory.
27103ac_x_includes=
27104else
cristyc7083c12009-10-14 03:16:55 +000027105 for ac_dir in $ac_x_header_dirs; do
27106 if test -r "$ac_dir/X11/Xlib.h"; then
27107 ac_x_includes=$ac_dir
27108 break
27109 fi
27110done
27111fi
cristyda16f162011-02-19 23:52:17 +000027112rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027113fi # $ac_x_includes = no
27114
27115if test "$ac_x_libraries" = no; then
27116 # Check for the libraries.
27117 # See if we find them without any special options.
27118 # Don't add to $LIBS permanently.
27119 ac_save_LIBS=$LIBS
27120 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027122/* end confdefs.h. */
27123#include <X11/Xlib.h>
27124int
27125main ()
27126{
27127XrmInitialize ()
27128 ;
27129 return 0;
27130}
27131_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027132if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027133 LIBS=$ac_save_LIBS
27134# We can link X programs with no special library path.
27135ac_x_libraries=
27136else
cristy8b350f62009-11-15 23:12:43 +000027137 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027138for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27139do
27140 # Don't even attempt the hair of trying to link an X program!
27141 for ac_extension in a so sl dylib la dll; do
27142 if test -r "$ac_dir/libX11.$ac_extension"; then
27143 ac_x_libraries=$ac_dir
27144 break 2
27145 fi
27146 done
27147done
27148fi
cristy8b350f62009-11-15 23:12:43 +000027149rm -f core conftest.err conftest.$ac_objext \
27150 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027151fi # $ac_x_libraries = no
27152
27153case $ac_x_includes,$ac_x_libraries in #(
27154 no,* | *,no | *\'*)
27155 # Didn't find X, or a directory has "'" in its name.
27156 ac_cv_have_x="have_x=no";; #(
27157 *)
27158 # Record where we found X for the cache.
27159 ac_cv_have_x="have_x=yes\
27160 ac_x_includes='$ac_x_includes'\
27161 ac_x_libraries='$ac_x_libraries'"
27162esac
27163fi
27164;; #(
27165 *) have_x=yes;;
27166 esac
27167 eval "$ac_cv_have_x"
27168fi # $with_x != no
27169
27170if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027172$as_echo "$have_x" >&6; }
27173 no_x=yes
27174else
27175 # If each of the values was on the command line, it overrides each guess.
27176 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27177 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27178 # Update the cache value to reflect the command line values.
27179 ac_cv_have_x="have_x=yes\
27180 ac_x_includes='$x_includes'\
27181 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027183$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27184fi
27185
cristy3ed852e2009-09-05 21:47:34 +000027186if test "$no_x" = yes; then
27187 # Not all programs may use this symbol, but it does not hurt to define it.
27188
cristy8b350f62009-11-15 23:12:43 +000027189$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027190
27191 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27192else
27193 if test -n "$x_includes"; then
27194 X_CFLAGS="$X_CFLAGS -I$x_includes"
27195 fi
27196
27197 # It would also be nice to do this for all -L options, not just this one.
27198 if test -n "$x_libraries"; then
27199 X_LIBS="$X_LIBS -L$x_libraries"
27200 # For Solaris; some versions of Sun CC require a space after -R and
27201 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027203$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27204 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27205 ac_xsave_c_werror_flag=$ac_c_werror_flag
27206 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027208/* end confdefs.h. */
27209
27210int
27211main ()
27212{
27213
27214 ;
27215 return 0;
27216}
27217_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027218if ac_fn_c_try_link "$LINENO"; then :
27219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027220$as_echo "no" >&6; }
27221 X_LIBS="$X_LIBS -R$x_libraries"
27222else
cristy8b350f62009-11-15 23:12:43 +000027223 LIBS="$ac_xsave_LIBS -R $x_libraries"
27224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027225/* end confdefs.h. */
27226
27227int
27228main ()
27229{
27230
27231 ;
27232 return 0;
27233}
27234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027235if ac_fn_c_try_link "$LINENO"; then :
27236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027237$as_echo "yes" >&6; }
27238 X_LIBS="$X_LIBS -R $x_libraries"
27239else
cristy8b350f62009-11-15 23:12:43 +000027240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027241$as_echo "neither works" >&6; }
27242fi
cristy8b350f62009-11-15 23:12:43 +000027243rm -f core conftest.err conftest.$ac_objext \
27244 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027245fi
cristy8b350f62009-11-15 23:12:43 +000027246rm -f core conftest.err conftest.$ac_objext \
27247 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027248 ac_c_werror_flag=$ac_xsave_c_werror_flag
27249 LIBS=$ac_xsave_LIBS
27250 fi
27251
27252 # Check for system-dependent libraries X programs must link with.
27253 # Do this before checking for the system-independent R6 libraries
27254 # (-lICE), since we may need -lsocket or whatever for X linking.
27255
27256 if test "$ISC" = yes; then
27257 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27258 else
27259 # Martyn Johnson says this is needed for Ultrix, if the X
27260 # libraries were built with DECnet support. And Karl Berry says
27261 # the Alpha needs dnet_stub (dnet does not exist).
27262 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027264/* end confdefs.h. */
27265
27266/* Override any GCC internal prototype to avoid an error.
27267 Use char because int might match the return type of a GCC
27268 builtin and then its argument prototype would still apply. */
27269#ifdef __cplusplus
27270extern "C"
27271#endif
27272char XOpenDisplay ();
27273int
27274main ()
27275{
27276return XOpenDisplay ();
27277 ;
27278 return 0;
27279}
27280_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027281if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027282
cristy8b350f62009-11-15 23:12:43 +000027283else
27284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027285$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027286if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027287 $as_echo_n "(cached) " >&6
27288else
27289 ac_check_lib_save_LIBS=$LIBS
27290LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027292/* end confdefs.h. */
27293
27294/* Override any GCC internal prototype to avoid an error.
27295 Use char because int might match the return type of a GCC
27296 builtin and then its argument prototype would still apply. */
27297#ifdef __cplusplus
27298extern "C"
27299#endif
27300char dnet_ntoa ();
27301int
27302main ()
27303{
27304return dnet_ntoa ();
27305 ;
27306 return 0;
27307}
27308_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027309if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027310 ac_cv_lib_dnet_dnet_ntoa=yes
27311else
cristy8b350f62009-11-15 23:12:43 +000027312 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027313fi
cristy8b350f62009-11-15 23:12:43 +000027314rm -f core conftest.err conftest.$ac_objext \
27315 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027316LIBS=$ac_check_lib_save_LIBS
27317fi
cristy8b350f62009-11-15 23:12:43 +000027318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027319$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027320if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027321 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27322fi
27323
27324 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027326$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027327if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027328 $as_echo_n "(cached) " >&6
27329else
27330 ac_check_lib_save_LIBS=$LIBS
27331LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027333/* end confdefs.h. */
27334
27335/* Override any GCC internal prototype to avoid an error.
27336 Use char because int might match the return type of a GCC
27337 builtin and then its argument prototype would still apply. */
27338#ifdef __cplusplus
27339extern "C"
27340#endif
27341char dnet_ntoa ();
27342int
27343main ()
27344{
27345return dnet_ntoa ();
27346 ;
27347 return 0;
27348}
27349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027350if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027351 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27352else
cristy8b350f62009-11-15 23:12:43 +000027353 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027354fi
cristy8b350f62009-11-15 23:12:43 +000027355rm -f core conftest.err conftest.$ac_objext \
27356 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027357LIBS=$ac_check_lib_save_LIBS
27358fi
cristy8b350f62009-11-15 23:12:43 +000027359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027360$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027361if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027362 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27363fi
27364
27365 fi
27366fi
cristy8b350f62009-11-15 23:12:43 +000027367rm -f core conftest.err conftest.$ac_objext \
27368 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027369 LIBS="$ac_xsave_LIBS"
27370
27371 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27372 # to get the SysV transport functions.
27373 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27374 # needs -lnsl.
27375 # The nsl library prevents programs from opening the X display
27376 # on Irix 5.2, according to T.E. Dickey.
27377 # The functions gethostbyname, getservbyname, and inet_addr are
27378 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027379 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027380if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027381
cristy3ed852e2009-09-05 21:47:34 +000027382fi
27383
cristy3ed852e2009-09-05 21:47:34 +000027384 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027386$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027387if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027388 $as_echo_n "(cached) " >&6
27389else
27390 ac_check_lib_save_LIBS=$LIBS
27391LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027393/* end confdefs.h. */
27394
27395/* Override any GCC internal prototype to avoid an error.
27396 Use char because int might match the return type of a GCC
27397 builtin and then its argument prototype would still apply. */
27398#ifdef __cplusplus
27399extern "C"
27400#endif
27401char gethostbyname ();
27402int
27403main ()
27404{
27405return gethostbyname ();
27406 ;
27407 return 0;
27408}
27409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027410if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027411 ac_cv_lib_nsl_gethostbyname=yes
27412else
cristy8b350f62009-11-15 23:12:43 +000027413 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027414fi
cristy8b350f62009-11-15 23:12:43 +000027415rm -f core conftest.err conftest.$ac_objext \
27416 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027417LIBS=$ac_check_lib_save_LIBS
27418fi
cristy8b350f62009-11-15 23:12:43 +000027419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027420$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027421if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027422 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27423fi
27424
27425 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027427$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027428if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027429 $as_echo_n "(cached) " >&6
27430else
27431 ac_check_lib_save_LIBS=$LIBS
27432LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027434/* end confdefs.h. */
27435
27436/* Override any GCC internal prototype to avoid an error.
27437 Use char because int might match the return type of a GCC
27438 builtin and then its argument prototype would still apply. */
27439#ifdef __cplusplus
27440extern "C"
27441#endif
27442char gethostbyname ();
27443int
27444main ()
27445{
27446return gethostbyname ();
27447 ;
27448 return 0;
27449}
27450_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027451if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027452 ac_cv_lib_bsd_gethostbyname=yes
27453else
cristy8b350f62009-11-15 23:12:43 +000027454 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027455fi
cristy8b350f62009-11-15 23:12:43 +000027456rm -f core conftest.err conftest.$ac_objext \
27457 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027458LIBS=$ac_check_lib_save_LIBS
27459fi
cristy8b350f62009-11-15 23:12:43 +000027460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027461$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027462if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027463 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27464fi
27465
27466 fi
27467 fi
27468
27469 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27470 # socket/setsockopt and other routines are undefined under SCO ODT
27471 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27472 # on later versions), says Simon Leinen: it contains gethostby*
27473 # variants that don't use the name server (or something). -lsocket
27474 # must be given before -lnsl if both are needed. We assume that
27475 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027476 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027477if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027478
cristy3ed852e2009-09-05 21:47:34 +000027479fi
27480
cristy3ed852e2009-09-05 21:47:34 +000027481 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027483$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027484if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027485 $as_echo_n "(cached) " >&6
27486else
27487 ac_check_lib_save_LIBS=$LIBS
27488LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027490/* end confdefs.h. */
27491
27492/* Override any GCC internal prototype to avoid an error.
27493 Use char because int might match the return type of a GCC
27494 builtin and then its argument prototype would still apply. */
27495#ifdef __cplusplus
27496extern "C"
27497#endif
27498char connect ();
27499int
27500main ()
27501{
27502return connect ();
27503 ;
27504 return 0;
27505}
27506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027507if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027508 ac_cv_lib_socket_connect=yes
27509else
cristy8b350f62009-11-15 23:12:43 +000027510 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027511fi
cristy8b350f62009-11-15 23:12:43 +000027512rm -f core conftest.err conftest.$ac_objext \
27513 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027514LIBS=$ac_check_lib_save_LIBS
27515fi
cristy8b350f62009-11-15 23:12:43 +000027516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027517$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027518if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027519 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27520fi
27521
27522 fi
27523
27524 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027525 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027526if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027527
cristy3ed852e2009-09-05 21:47:34 +000027528fi
27529
cristy3ed852e2009-09-05 21:47:34 +000027530 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027532$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027533if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027534 $as_echo_n "(cached) " >&6
27535else
27536 ac_check_lib_save_LIBS=$LIBS
27537LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027539/* end confdefs.h. */
27540
27541/* Override any GCC internal prototype to avoid an error.
27542 Use char because int might match the return type of a GCC
27543 builtin and then its argument prototype would still apply. */
27544#ifdef __cplusplus
27545extern "C"
27546#endif
27547char remove ();
27548int
27549main ()
27550{
27551return remove ();
27552 ;
27553 return 0;
27554}
27555_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027556if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027557 ac_cv_lib_posix_remove=yes
27558else
cristy8b350f62009-11-15 23:12:43 +000027559 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027560fi
cristy8b350f62009-11-15 23:12:43 +000027561rm -f core conftest.err conftest.$ac_objext \
27562 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027563LIBS=$ac_check_lib_save_LIBS
27564fi
cristy8b350f62009-11-15 23:12:43 +000027565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027566$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027567if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27569fi
27570
27571 fi
27572
27573 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027574 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027575if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027576
cristy3ed852e2009-09-05 21:47:34 +000027577fi
27578
cristy3ed852e2009-09-05 21:47:34 +000027579 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027581$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027582if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027583 $as_echo_n "(cached) " >&6
27584else
27585 ac_check_lib_save_LIBS=$LIBS
27586LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027588/* end confdefs.h. */
27589
27590/* Override any GCC internal prototype to avoid an error.
27591 Use char because int might match the return type of a GCC
27592 builtin and then its argument prototype would still apply. */
27593#ifdef __cplusplus
27594extern "C"
27595#endif
27596char shmat ();
27597int
27598main ()
27599{
27600return shmat ();
27601 ;
27602 return 0;
27603}
27604_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027605if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027606 ac_cv_lib_ipc_shmat=yes
27607else
cristy8b350f62009-11-15 23:12:43 +000027608 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027609fi
cristy8b350f62009-11-15 23:12:43 +000027610rm -f core conftest.err conftest.$ac_objext \
27611 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027612LIBS=$ac_check_lib_save_LIBS
27613fi
cristy8b350f62009-11-15 23:12:43 +000027614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027615$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027616if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027617 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27618fi
27619
27620 fi
27621 fi
27622
27623 # Check for libraries that X11R6 Xt/Xaw programs need.
27624 ac_save_LDFLAGS=$LDFLAGS
27625 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27626 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27627 # check for ICE first), but we must link in the order -lSM -lICE or
27628 # we get undefined symbols. So assume we have SM if we have ICE.
27629 # These have to be linked with before -lX11, unlike the other
27630 # libraries we check for below, so use a different variable.
27631 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027633$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027634if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027635 $as_echo_n "(cached) " >&6
27636else
27637 ac_check_lib_save_LIBS=$LIBS
27638LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027640/* end confdefs.h. */
27641
27642/* Override any GCC internal prototype to avoid an error.
27643 Use char because int might match the return type of a GCC
27644 builtin and then its argument prototype would still apply. */
27645#ifdef __cplusplus
27646extern "C"
27647#endif
27648char IceConnectionNumber ();
27649int
27650main ()
27651{
27652return IceConnectionNumber ();
27653 ;
27654 return 0;
27655}
27656_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027657if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027658 ac_cv_lib_ICE_IceConnectionNumber=yes
27659else
cristy8b350f62009-11-15 23:12:43 +000027660 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027661fi
cristy8b350f62009-11-15 23:12:43 +000027662rm -f core conftest.err conftest.$ac_objext \
27663 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027664LIBS=$ac_check_lib_save_LIBS
27665fi
cristy8b350f62009-11-15 23:12:43 +000027666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027667$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027668if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027669 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27670fi
27671
27672 LDFLAGS=$ac_save_LDFLAGS
27673
27674fi
27675
27676if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27678$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027680$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27682$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027683 LDFLAGS="$LDFLAGS $X_LIBS"
27684 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27685 LIBS="$X11_LIBS $LIBS"
27686 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27687
27688
cristy8b350f62009-11-15 23:12:43 +000027689$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027690
27691 #
27692 # Check for X11 shared memory extension
27693 #
27694 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027695 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027696if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027697 have_shmctl='yes'
27698fi
27699
27700 if test "$have_shmctl" != 'yes'; then
27701 PERSIST_LIBS=$LIBS
27702 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027704/* end confdefs.h. */
27705
27706/* Override any GCC internal prototype to avoid an error.
27707 Use char because int might match the return type of a GCC
27708 builtin and then its argument prototype would still apply. */
27709#ifdef __cplusplus
27710extern "C"
27711#endif
27712char shmctl ();
27713int
27714main ()
27715{
27716return shmctl ();
27717 ;
27718 return 0;
27719}
27720_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027721if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027722 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027723fi
cristy8b350f62009-11-15 23:12:43 +000027724rm -f core conftest.err conftest.$ac_objext \
27725 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027726 LIBS=$PERSIST_LIBS
27727 fi
27728
27729 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027731$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027732if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027733 $as_echo_n "(cached) " >&6
27734else
27735 ac_check_lib_save_LIBS=$LIBS
27736LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027738/* end confdefs.h. */
27739
27740/* Override any GCC internal prototype to avoid an error.
27741 Use char because int might match the return type of a GCC
27742 builtin and then its argument prototype would still apply. */
27743#ifdef __cplusplus
27744extern "C"
27745#endif
27746char XShmAttach ();
27747int
27748main ()
27749{
27750return XShmAttach ();
27751 ;
27752 return 0;
27753}
27754_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027755if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027756 ac_cv_lib_Xext_XShmAttach=yes
27757else
cristy8b350f62009-11-15 23:12:43 +000027758 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027759fi
cristy8b350f62009-11-15 23:12:43 +000027760rm -f core conftest.err conftest.$ac_objext \
27761 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027762LIBS=$ac_check_lib_save_LIBS
27763fi
cristy8b350f62009-11-15 23:12:43 +000027764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027765$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027766if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027767 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027768$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027769
27770fi
27771
27772 fi
27773
27774 #
27775 # Check for X11 shape extension
27776 #
cristy8b350f62009-11-15 23:12:43 +000027777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027778$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027779if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027780 $as_echo_n "(cached) " >&6
27781else
27782 ac_check_lib_save_LIBS=$LIBS
27783LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027785/* end confdefs.h. */
27786
27787/* Override any GCC internal prototype to avoid an error.
27788 Use char because int might match the return type of a GCC
27789 builtin and then its argument prototype would still apply. */
27790#ifdef __cplusplus
27791extern "C"
27792#endif
27793char XShapeCombineMask ();
27794int
27795main ()
27796{
27797return XShapeCombineMask ();
27798 ;
27799 return 0;
27800}
27801_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027802if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027803 ac_cv_lib_Xext_XShapeCombineMask=yes
27804else
cristy8b350f62009-11-15 23:12:43 +000027805 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027806fi
cristy8b350f62009-11-15 23:12:43 +000027807rm -f core conftest.err conftest.$ac_objext \
27808 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027809LIBS=$ac_check_lib_save_LIBS
27810fi
cristy8b350f62009-11-15 23:12:43 +000027811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027812$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027813if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027814 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027815$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027816
27817fi
27818
cristy8b350f62009-11-15 23:12:43 +000027819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027820$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027821if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027822 $as_echo_n "(cached) " >&6
27823else
27824 ac_check_lib_save_LIBS=$LIBS
27825LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027827/* end confdefs.h. */
27828
27829/* Override any GCC internal prototype to avoid an error.
27830 Use char because int might match the return type of a GCC
27831 builtin and then its argument prototype would still apply. */
27832#ifdef __cplusplus
27833extern "C"
27834#endif
27835char XtSetEventDispatcher ();
27836int
27837main ()
27838{
27839return XtSetEventDispatcher ();
27840 ;
27841 return 0;
27842}
27843_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027844if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027845 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27846else
cristy8b350f62009-11-15 23:12:43 +000027847 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027848fi
cristy8b350f62009-11-15 23:12:43 +000027849rm -f core conftest.err conftest.$ac_objext \
27850 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027851LIBS=$ac_check_lib_save_LIBS
27852fi
cristy8b350f62009-11-15 23:12:43 +000027853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027854$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027855if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027856 XT_LIBS='-lXt'
27857fi
27858
27859 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27860fi
27861if test "$no_x" != 'yes'; then
27862 have_x='yes'
27863else
27864 have_x='no'
27865fi
cristy73bd4a52010-10-05 11:24:23 +000027866 if test "$have_x" = 'yes'; then
27867 X11_DELEGATE_TRUE=
27868 X11_DELEGATE_FALSE='#'
27869else
27870 X11_DELEGATE_TRUE='#'
27871 X11_DELEGATE_FALSE=
27872fi
27873
cristy3ed852e2009-09-05 21:47:34 +000027874
27875
27876
27877
27878#
27879# Check for ZLIB
27880#
27881
27882# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027883if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027884 withval=$with_zlib; with_zlib=$withval
27885else
27886 with_zlib='yes'
27887fi
27888
27889
27890if test "$with_zlib" != 'yes'; then
27891 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27892fi
27893
27894have_zlib='no'
27895ZLIB_LIBS=''
27896if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27898$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027900$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27902$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027903 ZLIB_LIBS=''
27904 failed=0
27905 passed=0
cristy8b350f62009-11-15 23:12:43 +000027906 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027907if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027908 passed=`expr $passed + 1`
27909else
27910 failed=`expr $failed + 1`
27911fi
27912
27913
cristy8b350f62009-11-15 23:12:43 +000027914 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027915if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027916 passed=`expr $passed + 1`
27917else
27918 failed=`expr $failed + 1`
27919fi
27920
27921
cristy8b350f62009-11-15 23:12:43 +000027922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027923$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027924if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027925 $as_echo_n "(cached) " >&6
27926else
27927 ac_check_lib_save_LIBS=$LIBS
27928LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027930/* end confdefs.h. */
27931
27932/* Override any GCC internal prototype to avoid an error.
27933 Use char because int might match the return type of a GCC
27934 builtin and then its argument prototype would still apply. */
27935#ifdef __cplusplus
27936extern "C"
27937#endif
27938char compress ();
27939int
27940main ()
27941{
27942return compress ();
27943 ;
27944 return 0;
27945}
27946_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027947if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027948 ac_cv_lib_z_compress=yes
27949else
cristy8b350f62009-11-15 23:12:43 +000027950 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027951fi
cristy8b350f62009-11-15 23:12:43 +000027952rm -f core conftest.err conftest.$ac_objext \
27953 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027954LIBS=$ac_check_lib_save_LIBS
27955fi
cristy8b350f62009-11-15 23:12:43 +000027956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027957$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027958if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027959 passed=`expr $passed + 1`
27960else
27961 failed=`expr $failed + 1`
27962fi
27963
cristy8b350f62009-11-15 23:12:43 +000027964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027965$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027966if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027967 $as_echo_n "(cached) " >&6
27968else
27969 ac_check_lib_save_LIBS=$LIBS
27970LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027972/* end confdefs.h. */
27973
27974/* Override any GCC internal prototype to avoid an error.
27975 Use char because int might match the return type of a GCC
27976 builtin and then its argument prototype would still apply. */
27977#ifdef __cplusplus
27978extern "C"
27979#endif
27980char uncompress ();
27981int
27982main ()
27983{
27984return uncompress ();
27985 ;
27986 return 0;
27987}
27988_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027989if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027990 ac_cv_lib_z_uncompress=yes
27991else
cristy8b350f62009-11-15 23:12:43 +000027992 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027993fi
cristy8b350f62009-11-15 23:12:43 +000027994rm -f core conftest.err conftest.$ac_objext \
27995 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027996LIBS=$ac_check_lib_save_LIBS
27997fi
cristy8b350f62009-11-15 23:12:43 +000027998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027999$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028000if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028001 passed=`expr $passed + 1`
28002else
28003 failed=`expr $failed + 1`
28004fi
28005
cristy8b350f62009-11-15 23:12:43 +000028006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028007$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028008if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028009 $as_echo_n "(cached) " >&6
28010else
28011 ac_check_lib_save_LIBS=$LIBS
28012LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028014/* end confdefs.h. */
28015
28016/* Override any GCC internal prototype to avoid an error.
28017 Use char because int might match the return type of a GCC
28018 builtin and then its argument prototype would still apply. */
28019#ifdef __cplusplus
28020extern "C"
28021#endif
28022char deflate ();
28023int
28024main ()
28025{
28026return deflate ();
28027 ;
28028 return 0;
28029}
28030_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028031if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028032 ac_cv_lib_z_deflate=yes
28033else
cristy8b350f62009-11-15 23:12:43 +000028034 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028035fi
cristy8b350f62009-11-15 23:12:43 +000028036rm -f core conftest.err conftest.$ac_objext \
28037 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028038LIBS=$ac_check_lib_save_LIBS
28039fi
cristy8b350f62009-11-15 23:12:43 +000028040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028041$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028042if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028043 passed=`expr $passed + 1`
28044else
28045 failed=`expr $failed + 1`
28046fi
28047
cristy8b350f62009-11-15 23:12:43 +000028048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028049$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028050if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028051 $as_echo_n "(cached) " >&6
28052else
28053 ac_check_lib_save_LIBS=$LIBS
28054LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028056/* end confdefs.h. */
28057
28058/* Override any GCC internal prototype to avoid an error.
28059 Use char because int might match the return type of a GCC
28060 builtin and then its argument prototype would still apply. */
28061#ifdef __cplusplus
28062extern "C"
28063#endif
28064char inflate ();
28065int
28066main ()
28067{
28068return inflate ();
28069 ;
28070 return 0;
28071}
28072_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028073if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028074 ac_cv_lib_z_inflate=yes
28075else
cristy8b350f62009-11-15 23:12:43 +000028076 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028077fi
cristy8b350f62009-11-15 23:12:43 +000028078rm -f core conftest.err conftest.$ac_objext \
28079 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028080LIBS=$ac_check_lib_save_LIBS
28081fi
cristy8b350f62009-11-15 23:12:43 +000028082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028083$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028084if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028085 passed=`expr $passed + 1`
28086else
28087 failed=`expr $failed + 1`
28088fi
28089
cristy8b350f62009-11-15 23:12:43 +000028090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028091$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028092if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028093 $as_echo_n "(cached) " >&6
28094else
28095 ac_check_lib_save_LIBS=$LIBS
28096LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028098/* end confdefs.h. */
28099
28100/* Override any GCC internal prototype to avoid an error.
28101 Use char because int might match the return type of a GCC
28102 builtin and then its argument prototype would still apply. */
28103#ifdef __cplusplus
28104extern "C"
28105#endif
28106char gzseek ();
28107int
28108main ()
28109{
28110return gzseek ();
28111 ;
28112 return 0;
28113}
28114_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028115if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028116 ac_cv_lib_z_gzseek=yes
28117else
cristy8b350f62009-11-15 23:12:43 +000028118 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028119fi
cristy8b350f62009-11-15 23:12:43 +000028120rm -f core conftest.err conftest.$ac_objext \
28121 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028122LIBS=$ac_check_lib_save_LIBS
28123fi
cristy8b350f62009-11-15 23:12:43 +000028124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028125$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028126if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028127 passed=`expr $passed + 1`
28128else
28129 failed=`expr $failed + 1`
28130fi
28131
cristy8b350f62009-11-15 23:12:43 +000028132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028133$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028134if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028135 $as_echo_n "(cached) " >&6
28136else
28137 ac_check_lib_save_LIBS=$LIBS
28138LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028140/* end confdefs.h. */
28141
28142/* Override any GCC internal prototype to avoid an error.
28143 Use char because int might match the return type of a GCC
28144 builtin and then its argument prototype would still apply. */
28145#ifdef __cplusplus
28146extern "C"
28147#endif
28148char gztell ();
28149int
28150main ()
28151{
28152return gztell ();
28153 ;
28154 return 0;
28155}
28156_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028157if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028158 ac_cv_lib_z_gztell=yes
28159else
cristy8b350f62009-11-15 23:12:43 +000028160 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028161fi
cristy8b350f62009-11-15 23:12:43 +000028162rm -f core conftest.err conftest.$ac_objext \
28163 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028164LIBS=$ac_check_lib_save_LIBS
28165fi
cristy8b350f62009-11-15 23:12:43 +000028166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028167$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028168if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028169 passed=`expr $passed + 1`
28170else
28171 failed=`expr $failed + 1`
28172fi
28173
cristy8b350f62009-11-15 23:12:43 +000028174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028175$as_echo_n "checking if ZLIB package is complete... " >&6; }
28176 if test $passed -gt 0; then
28177 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28179$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028180 have_zlib='no (failed tests)'
28181 else
28182 ZLIB_LIBS='-lz'
28183 LIBS="$ZLIB_LIBS $LIBS"
28184
cristy8b350f62009-11-15 23:12:43 +000028185$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028186
cristyad38abe2012-12-23 23:03:21 +000028187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28188$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028189 have_zlib='yes'
28190 fi
28191 else
cristyad38abe2012-12-23 23:03:21 +000028192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28193$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028194 fi
28195fi
cristy73bd4a52010-10-05 11:24:23 +000028196 if test "$have_zlib" = 'yes'; then
28197 ZLIB_DELEGATE_TRUE=
28198 ZLIB_DELEGATE_FALSE='#'
28199else
28200 ZLIB_DELEGATE_TRUE='#'
28201 ZLIB_DELEGATE_FALSE=
28202fi
28203
cristy3ed852e2009-09-05 21:47:34 +000028204
28205
cristy5eef09f2012-10-16 12:08:28 +000028206# whether modules are built or not.
28207with_ltdl='yes'
28208have_ltdl='no'
28209LTDL_LIBS=''
28210if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28212$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28214$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28216$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028217 failed=0
28218 passed=0
28219 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28220if test "x$ac_cv_header_ltdl_h" = xyes; then :
28221 passed=`expr $passed + 1`
28222else
28223 failed=`expr $failed + 1`
28224fi
28225
28226
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28228$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28229if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28230 $as_echo_n "(cached) " >&6
28231else
28232 ac_check_lib_save_LIBS=$LIBS
28233LIBS="-lltdl $LIBS"
28234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28235/* end confdefs.h. */
28236
28237/* Override any GCC internal prototype to avoid an error.
28238 Use char because int might match the return type of a GCC
28239 builtin and then its argument prototype would still apply. */
28240#ifdef __cplusplus
28241extern "C"
28242#endif
28243char lt_dlinit ();
28244int
28245main ()
28246{
28247return lt_dlinit ();
28248 ;
28249 return 0;
28250}
28251_ACEOF
28252if ac_fn_c_try_link "$LINENO"; then :
28253 ac_cv_lib_ltdl_lt_dlinit=yes
28254else
28255 ac_cv_lib_ltdl_lt_dlinit=no
28256fi
28257rm -f core conftest.err conftest.$ac_objext \
28258 conftest$ac_exeext conftest.$ac_ext
28259LIBS=$ac_check_lib_save_LIBS
28260fi
28261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28262$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28263if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28264 passed=`expr $passed + 1`
28265else
28266 failed=`expr $failed + 1`
28267fi
28268
28269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28270$as_echo_n "checking if libltdl package is complete... " >&6; }
28271 if test $passed -gt 0 ; then
28272 if test $failed -gt 0 ; then
28273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28274$as_echo "no -- some components failed test" >&6; }
28275 have_ltdl='no (failed tests)'
28276 else
28277 LTDL_LIBS='-lltdl'
28278 LIBS="$LTDL_LIBS $LIBS"
28279
28280$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28281
28282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28283$as_echo "yes" >&6; }
28284 have_ltdl='yes'
28285 fi
28286 else
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28288$as_echo "no" >&6; }
28289 fi
cristyaf4cbf32012-10-16 23:47:41 +000028290 if test "$have_ltdl" != 'yes' ; then
28291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28293as_fn_error 1 "libltdl is required for modules build
28294See \`config.log' for more details" "$LINENO" 5; }
28295 fi
cristy5eef09f2012-10-16 12:08:28 +000028296fi
28297 if test "$have_ltdl" != 'no'; then
28298 WITH_LTDL_TRUE=
28299 WITH_LTDL_FALSE='#'
28300else
28301 WITH_LTDL_TRUE='#'
28302 WITH_LTDL_FALSE=
28303fi
28304
28305
cristy3ed852e2009-09-05 21:47:34 +000028306#
28307# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28308#
28309LIB_DL=''
28310if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028312$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028313if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028314 $as_echo_n "(cached) " >&6
28315else
28316 ac_check_lib_save_LIBS=$LIBS
28317LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028319/* end confdefs.h. */
28320
28321/* Override any GCC internal prototype to avoid an error.
28322 Use char because int might match the return type of a GCC
28323 builtin and then its argument prototype would still apply. */
28324#ifdef __cplusplus
28325extern "C"
28326#endif
28327char dlopen ();
28328int
28329main ()
28330{
28331return dlopen ();
28332 ;
28333 return 0;
28334}
28335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028336if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028337 ac_cv_lib_dl_dlopen=yes
28338else
cristy8b350f62009-11-15 23:12:43 +000028339 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028340fi
cristy8b350f62009-11-15 23:12:43 +000028341rm -f core conftest.err conftest.$ac_objext \
28342 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028343LIBS=$ac_check_lib_save_LIBS
28344fi
cristy8b350f62009-11-15 23:12:43 +000028345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028346$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028347if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028348 LIB_DL='-ldl'
28349fi
28350
28351 LIBS="$LIB_DL $LIBS"
28352fi
28353
28354
28355
28356#
28357# Check for Autotrace delegate library.
28358#
28359
28360# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028361if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028362 withval=$with_autotrace; with_autotrace=$withval
28363else
28364 with_autotrace='no'
28365fi
28366
28367
28368if test "$with_autotrace" != 'yes'; then
28369 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28370fi
28371
28372have_autotrace='no'
28373AUTOTRACE_CFLAGS=""
28374AUTOTRACE_LIBS=""
28375AUTOTRACE_PKG=""
28376if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28378$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028379
28380pkg_failed=no
28381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28382$as_echo_n "checking for AUTOTRACE... " >&6; }
28383
28384if test -n "$AUTOTRACE_CFLAGS"; then
28385 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28386 elif test -n "$PKG_CONFIG"; then
28387 if test -n "$PKG_CONFIG" && \
28388 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28389 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28390 ac_status=$?
28391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28392 test $ac_status = 0; }; then
28393 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28394else
28395 pkg_failed=yes
28396fi
28397 else
28398 pkg_failed=untried
28399fi
28400if test -n "$AUTOTRACE_LIBS"; then
28401 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28402 elif test -n "$PKG_CONFIG"; then
28403 if test -n "$PKG_CONFIG" && \
28404 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28405 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28406 ac_status=$?
28407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28408 test $ac_status = 0; }; then
28409 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28410else
28411 pkg_failed=yes
28412fi
28413 else
28414 pkg_failed=untried
28415fi
28416
28417
28418
28419if test $pkg_failed = yes; then
28420
28421if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28422 _pkg_short_errors_supported=yes
28423else
28424 _pkg_short_errors_supported=no
28425fi
28426 if test $_pkg_short_errors_supported = yes; then
28427 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28428 else
28429 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28430 fi
28431 # Put the nasty error message in config.log where it belongs
28432 echo "$AUTOTRACE_PKG_ERRORS" >&5
28433
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28435$as_echo "no" >&6; }
28436 have_autotrace=no
28437elif test $pkg_failed = untried; then
28438 have_autotrace=no
28439else
28440 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28441 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28443$as_echo "yes" >&6; }
28444 have_autotrace=yes
28445fi
cristyad38abe2012-12-23 23:03:21 +000028446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28447$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028448fi
28449
28450if test "$have_autotrace" = 'yes'; then
28451 failed=0
28452
cristy8b350f62009-11-15 23:12:43 +000028453$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028454
cristyc6722092012-10-14 00:19:31 +000028455 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028456 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028457 fi
28458fi
28459
cristy73bd4a52010-10-05 11:24:23 +000028460 if test "$have_autotrace" = 'yes'; then
28461 AUTOTRACE_DELEGATE_TRUE=
28462 AUTOTRACE_DELEGATE_FALSE='#'
28463else
28464 AUTOTRACE_DELEGATE_TRUE='#'
28465 AUTOTRACE_DELEGATE_FALSE=
28466fi
28467
cristy3ed852e2009-09-05 21:47:34 +000028468
28469
28470
28471
28472#
28473# Check for Display Postscript delegate library.
28474#
28475
28476# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028477if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028478 withval=$with_dps; with_dps=$withval
28479else
28480 with_dps='yes'
28481fi
28482
28483
28484if test "$with_dps" != 'yes'; then
28485 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28486fi
28487
28488have_dps='no'
28489DPS_LIBS=''
28490if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28492$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028494$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28496$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028497 failed=0
28498 passed=0
28499 PERSIST_CPPFLAGS="$CPPFLAGS"
28500 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028501 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 +000028502if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028503 passed=`expr $passed + 1`
28504else
28505 failed=`expr $failed + 1`
28506fi
28507
28508
28509 # DPS issues:
28510 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28511 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28512 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28513 # ImageMagick itself doesn't use -lXt.
28514 have_libdps='no'
28515 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028517$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028518if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028519 $as_echo_n "(cached) " >&6
28520else
28521 ac_check_lib_save_LIBS=$LIBS
28522LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028524/* end confdefs.h. */
28525
28526/* Override any GCC internal prototype to avoid an error.
28527 Use char because int might match the return type of a GCC
28528 builtin and then its argument prototype would still apply. */
28529#ifdef __cplusplus
28530extern "C"
28531#endif
28532char DPSInitialize ();
28533int
28534main ()
28535{
28536return DPSInitialize ();
28537 ;
28538 return 0;
28539}
28540_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028541if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028542 ac_cv_lib_dps_DPSInitialize=yes
28543else
cristy8b350f62009-11-15 23:12:43 +000028544 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028545fi
cristy8b350f62009-11-15 23:12:43 +000028546rm -f core conftest.err conftest.$ac_objext \
28547 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028548LIBS=$ac_check_lib_save_LIBS
28549fi
cristy8b350f62009-11-15 23:12:43 +000028550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028551$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028552if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028553 have_libdps='yes'
28554else
28555 have_libdps='no'
28556fi
28557
28558 if test "$have_libdps" != 'yes'; then
28559 # Unset cache variable so we can try again.
28560 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028562$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028563if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028564 $as_echo_n "(cached) " >&6
28565else
28566 ac_check_lib_save_LIBS=$LIBS
28567LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028569/* end confdefs.h. */
28570
28571/* Override any GCC internal prototype to avoid an error.
28572 Use char because int might match the return type of a GCC
28573 builtin and then its argument prototype would still apply. */
28574#ifdef __cplusplus
28575extern "C"
28576#endif
28577char DPSInitialize ();
28578int
28579main ()
28580{
28581return DPSInitialize ();
28582 ;
28583 return 0;
28584}
28585_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028586if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028587 ac_cv_lib_dps_DPSInitialize=yes
28588else
cristy8b350f62009-11-15 23:12:43 +000028589 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028590fi
cristy8b350f62009-11-15 23:12:43 +000028591rm -f core conftest.err conftest.$ac_objext \
28592 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028593LIBS=$ac_check_lib_save_LIBS
28594fi
cristy8b350f62009-11-15 23:12:43 +000028595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028596$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028597if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028598 have_libdps='yes'
28599else
28600 have_libdps='no'
28601fi
28602
28603 if test "$have_libdps" = 'yes'; then
28604 LIBDPS_XT='-lXt'
28605 fi
28606 fi
28607 if test "$have_libdps" = 'yes'; then
28608 passed=`expr $passed + 1`
28609 else
28610 failed=`expr $failed + 1`
28611 fi
cristy8b350f62009-11-15 23:12:43 +000028612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028613$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028614if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028615 $as_echo_n "(cached) " >&6
28616else
28617 ac_check_lib_save_LIBS=$LIBS
28618LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028620/* end confdefs.h. */
28621
28622/* Override any GCC internal prototype to avoid an error.
28623 Use char because int might match the return type of a GCC
28624 builtin and then its argument prototype would still apply. */
28625#ifdef __cplusplus
28626extern "C"
28627#endif
28628char XDPSPixelsPerPoint ();
28629int
28630main ()
28631{
28632return XDPSPixelsPerPoint ();
28633 ;
28634 return 0;
28635}
28636_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028637if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028638 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28639else
cristy8b350f62009-11-15 23:12:43 +000028640 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028641fi
cristy8b350f62009-11-15 23:12:43 +000028642rm -f core conftest.err conftest.$ac_objext \
28643 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028644LIBS=$ac_check_lib_save_LIBS
28645fi
cristy8b350f62009-11-15 23:12:43 +000028646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028647$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028648if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028649 passed=`expr $passed + 1`
28650else
28651 failed=`expr $failed + 1`
28652fi
28653
cristy8b350f62009-11-15 23:12:43 +000028654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028655$as_echo_n "checking if DPS package is complete... " >&6; }
28656 if test $passed -gt 0; then
28657 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28659$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028660 have_dps='no (failed tests)'
28661 CPPFLAGS="$PERSIST_CPPFLAGS"
28662 else
28663 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28664 LIBS="$DPS_LIBS $LIBS"
28665
cristy8b350f62009-11-15 23:12:43 +000028666$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028667
cristyad38abe2012-12-23 23:03:21 +000028668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28669$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028670 have_dps='yes'
28671 fi
28672 else
cristyad38abe2012-12-23 23:03:21 +000028673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28674$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028675 CPPFLAGS=$PERSIST_CPPFLAGS
28676 fi
28677fi
cristy73bd4a52010-10-05 11:24:23 +000028678 if test "$have_dps" = 'yes'; then
28679 DPS_DELEGATE_TRUE=
28680 DPS_DELEGATE_FALSE='#'
28681else
28682 DPS_DELEGATE_TRUE='#'
28683 DPS_DELEGATE_FALSE=
28684fi
28685
cristy3ed852e2009-09-05 21:47:34 +000028686
28687
28688
28689#
28690# Check for DJVU delegate library.
28691#
28692
28693# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028694if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028695 withval=$with_djvu; with_djvu=$withval
28696else
28697 with_djvu='yes'
28698fi
28699
28700
28701if test "$with_djvu" != 'yes'; then
28702 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28703fi
28704
28705have_djvu='no'
28706DJVU_LIBS=''
28707if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28709$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028711$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28713$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028714 failed=0
28715 passed=0
cristy8b350f62009-11-15 23:12:43 +000028716 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 +000028717if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028718 passed=`expr $passed + 1`
28719else
28720 failed=`expr $failed + 1`
28721fi
28722
28723
cristy8b350f62009-11-15 23:12:43 +000028724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028725$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028726if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028727 $as_echo_n "(cached) " >&6
28728else
28729 ac_check_lib_save_LIBS=$LIBS
28730LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028732/* end confdefs.h. */
28733
28734/* Override any GCC internal prototype to avoid an error.
28735 Use char because int might match the return type of a GCC
28736 builtin and then its argument prototype would still apply. */
28737#ifdef __cplusplus
28738extern "C"
28739#endif
28740char ddjvu_context_create ();
28741int
28742main ()
28743{
28744return ddjvu_context_create ();
28745 ;
28746 return 0;
28747}
28748_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028749if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028750 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28751else
cristy8b350f62009-11-15 23:12:43 +000028752 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028753fi
cristy8b350f62009-11-15 23:12:43 +000028754rm -f core conftest.err conftest.$ac_objext \
28755 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028756LIBS=$ac_check_lib_save_LIBS
28757fi
cristy8b350f62009-11-15 23:12:43 +000028758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028759$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028760if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028761 passed=`expr $passed + 1`
28762else
28763 failed=`expr $failed + 1`
28764fi
28765
cristy8b350f62009-11-15 23:12:43 +000028766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028767$as_echo_n "checking if DJVU package is complete... " >&6; }
28768 if test $passed -gt 0; then
28769 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28771$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028772 have_djvu='no (failed tests)'
28773 else
28774 DJVU_LIBS='-ldjvulibre'
28775 LIBS="$DJVU_LIBS $LIBS"
28776
cristy8b350f62009-11-15 23:12:43 +000028777$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028778
cristyad38abe2012-12-23 23:03:21 +000028779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28780$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028781 have_djvu='yes'
28782 fi
28783 else
cristyad38abe2012-12-23 23:03:21 +000028784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28785$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028786 fi
28787fi
cristy73bd4a52010-10-05 11:24:23 +000028788 if test "$have_djvu" = 'yes'; then
28789 DJVU_DELEGATE_TRUE=
28790 DJVU_DELEGATE_FALSE='#'
28791else
28792 DJVU_DELEGATE_TRUE='#'
28793 DJVU_DELEGATE_FALSE=
28794fi
28795
cristy3ed852e2009-09-05 21:47:34 +000028796
28797
28798
28799#
cristy430a7312010-01-21 20:44:04 +000028800# Set DejaVu font directory.
28801#
28802
28803# Check whether --with-dejavu-font-dir was given.
28804if test "${with_dejavu_font_dir+set}" = set; then :
28805 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28806else
28807 with_dejavu_font_dir='default'
28808fi
28809
28810
28811if test "$with_dejavu_font_dir" != 'default'; then
28812 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28813fi
28814
28815
28816#
cristy3ed852e2009-09-05 21:47:34 +000028817# Check for FFTW delegate library.
28818#
28819
28820# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028821if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028822 withval=$with_fftw; with_fftw=$withval
28823else
28824 with_fftw='yes'
28825fi
28826
28827
28828if test "$with_fftw" != 'yes'; then
28829 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28830fi
28831
cristy81beccd2011-10-03 18:17:24 +000028832have_fftw='no'
28833FFTW_LIBS=''
28834if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28836$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28838$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28840$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028841 failed=0
28842 passed=0
28843 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28844if test "x$ac_cv_header_fftw3_h" = xyes; then :
28845 passed=`expr $passed + 1`
28846else
28847 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028848fi
28849
cristy81beccd2011-10-03 18:17:24 +000028850
28851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28852$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28853if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28854 $as_echo_n "(cached) " >&6
28855else
28856 ac_check_lib_save_LIBS=$LIBS
28857LIBS="-lfftw3 $LIBS"
28858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28859/* end confdefs.h. */
28860
28861/* Override any GCC internal prototype to avoid an error.
28862 Use char because int might match the return type of a GCC
28863 builtin and then its argument prototype would still apply. */
28864#ifdef __cplusplus
28865extern "C"
28866#endif
28867char fftw_execute ();
28868int
28869main ()
28870{
28871return fftw_execute ();
28872 ;
28873 return 0;
28874}
28875_ACEOF
28876if ac_fn_c_try_link "$LINENO"; then :
28877 ac_cv_lib_fftw3_fftw_execute=yes
28878else
28879 ac_cv_lib_fftw3_fftw_execute=no
28880fi
28881rm -f core conftest.err conftest.$ac_objext \
28882 conftest$ac_exeext conftest.$ac_ext
28883LIBS=$ac_check_lib_save_LIBS
28884fi
28885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28886$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28887if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28888 passed=`expr $passed + 1`
28889else
28890 failed=`expr $failed + 1`
28891fi
28892
28893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28894$as_echo_n "checking if FFTW package is complete... " >&6; }
28895 if test $passed -gt 0; then
28896 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28898$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028899 have_fftw='no (failed tests)'
28900 else
28901 FFTW_LIBS='-lfftw3'
28902 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028903
cristy8b350f62009-11-15 23:12:43 +000028904$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028905
cristyad38abe2012-12-23 23:03:21 +000028906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28907$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028908 have_fftw='yes'
28909 fi
28910 else
cristyad38abe2012-12-23 23:03:21 +000028911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28912$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028913 fi
28914fi
cristy73bd4a52010-10-05 11:24:23 +000028915 if test "$have_fftw" = 'yes'; then
28916 FFTW_DELEGATE_TRUE=
28917 FFTW_DELEGATE_FALSE='#'
28918else
28919 FFTW_DELEGATE_TRUE='#'
28920 FFTW_DELEGATE_FALSE=
28921fi
28922
cristy3ed852e2009-09-05 21:47:34 +000028923
28924
28925
28926#
28927# Check for FlashPIX delegate library.
28928#
28929
28930# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028931if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028932 withval=$with_fpx; with_fpx=$withval
28933else
28934 with_fpx='yes'
28935fi
28936
28937
28938if test "$with_fpx" != 'yes'; then
28939 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28940fi
28941
28942have_fpx='no'
28943FPX_LIBS=''
28944if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28946$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028948$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28950$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028951 failed=0
28952 passed=0
28953 ac_ext=cpp
28954ac_cpp='$CXXCPP $CPPFLAGS'
28955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28958
28959
cristy8b350f62009-11-15 23:12:43 +000028960ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028961if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028962 passed=`expr $passed + 1`
28963else
28964 failed=`expr $failed + 1`
28965fi
28966
28967
cristy8b350f62009-11-15 23:12:43 +000028968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028969$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028970if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028971 $as_echo_n "(cached) " >&6
28972else
28973 ac_check_lib_save_LIBS=$LIBS
28974LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028976/* end confdefs.h. */
28977
28978/* Override any GCC internal prototype to avoid an error.
28979 Use char because int might match the return type of a GCC
28980 builtin and then its argument prototype would still apply. */
28981#ifdef __cplusplus
28982extern "C"
28983#endif
28984char FPX_OpenImageByFilename ();
28985int
28986main ()
28987{
28988return FPX_OpenImageByFilename ();
28989 ;
28990 return 0;
28991}
28992_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028993if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028994 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28995else
cristy8b350f62009-11-15 23:12:43 +000028996 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028997fi
cristy8b350f62009-11-15 23:12:43 +000028998rm -f core conftest.err conftest.$ac_objext \
28999 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029000LIBS=$ac_check_lib_save_LIBS
29001fi
cristy8b350f62009-11-15 23:12:43 +000029002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029003$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029004if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029005 passed=`expr $passed + 1`
29006else
29007 failed=`expr $failed + 1`
29008fi
29009
29010 ac_ext=c
29011ac_cpp='$CPP $CPPFLAGS'
29012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29014ac_compiler_gnu=$ac_cv_c_compiler_gnu
29015
cristy8b350f62009-11-15 23:12:43 +000029016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029017$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29018 if test $passed -gt 0; then
29019 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29021$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029022 have_fpx='no (failed tests)'
29023 else
29024 FPX_LIBS='-lfpx'
29025
cristy8b350f62009-11-15 23:12:43 +000029026$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029027
cristyad38abe2012-12-23 23:03:21 +000029028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29029$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029030 have_fpx='yes'
29031 PERLMAINCC="$CXX"
29032 fi
29033 else
cristyad38abe2012-12-23 23:03:21 +000029034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29035$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029036 fi
29037fi
cristy73bd4a52010-10-05 11:24:23 +000029038 if test "$have_fpx" = 'yes'; then
29039 FPX_DELEGATE_TRUE=
29040 FPX_DELEGATE_FALSE='#'
29041else
29042 FPX_DELEGATE_TRUE='#'
29043 FPX_DELEGATE_FALSE=
29044fi
29045
cristy3ed852e2009-09-05 21:47:34 +000029046
29047
29048
29049#
29050# Check for fontconfig delegate library.
29051#
29052
29053# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029054if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029055 withval=$with_fontconfig; with_fontconfig=$withval
29056else
cristyfc3d0222012-02-07 15:05:57 +000029057 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029058fi
29059
29060
29061if test "$with_fontconfig" != 'yes'; then
29062 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29063fi
29064
29065have_fontconfig='no'
29066FONTCONFIG_CFLAGS=""
29067FONTCONFIG_LIBS=""
29068FONTCONFIG_PKG=""
29069if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29071$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029072
29073pkg_failed=no
29074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29075$as_echo_n "checking for FONTCONFIG... " >&6; }
29076
29077if test -n "$FONTCONFIG_CFLAGS"; then
29078 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29079 elif test -n "$PKG_CONFIG"; then
29080 if test -n "$PKG_CONFIG" && \
29081 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29082 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29083 ac_status=$?
29084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29085 test $ac_status = 0; }; then
29086 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29087else
29088 pkg_failed=yes
29089fi
29090 else
29091 pkg_failed=untried
29092fi
29093if test -n "$FONTCONFIG_LIBS"; then
29094 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29095 elif test -n "$PKG_CONFIG"; then
29096 if test -n "$PKG_CONFIG" && \
29097 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29098 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29099 ac_status=$?
29100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29101 test $ac_status = 0; }; then
29102 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29103else
29104 pkg_failed=yes
29105fi
29106 else
29107 pkg_failed=untried
29108fi
29109
29110
29111
29112if test $pkg_failed = yes; then
29113
29114if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29115 _pkg_short_errors_supported=yes
29116else
29117 _pkg_short_errors_supported=no
29118fi
29119 if test $_pkg_short_errors_supported = yes; then
29120 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29121 else
29122 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29123 fi
29124 # Put the nasty error message in config.log where it belongs
29125 echo "$FONTCONFIG_PKG_ERRORS" >&5
29126
29127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29128$as_echo "no" >&6; }
29129 have_fontconfig=no
29130elif test $pkg_failed = untried; then
29131 have_fontconfig=no
29132else
29133 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29134 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29136$as_echo "yes" >&6; }
29137 have_fontconfig=yes
29138fi
cristyad38abe2012-12-23 23:03:21 +000029139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29140$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029141fi
29142
29143if test "$have_fontconfig" = 'yes'; then
29144
cristy8b350f62009-11-15 23:12:43 +000029145$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029146
cristyc6722092012-10-14 00:19:31 +000029147 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029148 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029149 fi
cristy3ed852e2009-09-05 21:47:34 +000029150fi
29151
cristy73bd4a52010-10-05 11:24:23 +000029152 if test "$have_fontconfig" = 'yes'; then
29153 FONTCONFIG_DELEGATE_TRUE=
29154 FONTCONFIG_DELEGATE_FALSE='#'
29155else
29156 FONTCONFIG_DELEGATE_TRUE='#'
29157 FONTCONFIG_DELEGATE_FALSE=
29158fi
29159
cristy3ed852e2009-09-05 21:47:34 +000029160
29161
29162
29163
29164#
cristy03f187e2013-01-24 00:22:19 +000029165# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029166#
29167
29168# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029169if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029170 withval=$with_freetype; with_freetype=$withval
29171else
29172 with_freetype='yes'
29173fi
29174
29175
cristy3ed852e2009-09-05 21:47:34 +000029176if test "$with_freetype" != 'yes'; then
29177 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29178fi
29179
cristy81beccd2011-10-03 18:17:24 +000029180have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029181FREETYPE_CFLAGS=""
29182FREETYPE_LIBS=""
29183FREETYPE_PKG=""
29184if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29186$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029187
29188pkg_failed=no
29189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29190$as_echo_n "checking for FREETYPE... " >&6; }
29191
29192if test -n "$FREETYPE_CFLAGS"; then
29193 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29194 elif test -n "$PKG_CONFIG"; then
29195 if test -n "$PKG_CONFIG" && \
29196 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29197 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29198 ac_status=$?
29199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29200 test $ac_status = 0; }; then
29201 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29202else
29203 pkg_failed=yes
29204fi
29205 else
29206 pkg_failed=untried
29207fi
29208if test -n "$FREETYPE_LIBS"; then
29209 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29210 elif test -n "$PKG_CONFIG"; then
29211 if test -n "$PKG_CONFIG" && \
29212 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29213 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29214 ac_status=$?
29215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29216 test $ac_status = 0; }; then
29217 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29218else
29219 pkg_failed=yes
29220fi
29221 else
29222 pkg_failed=untried
29223fi
29224
29225
29226
29227if test $pkg_failed = yes; then
29228
29229if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29230 _pkg_short_errors_supported=yes
29231else
29232 _pkg_short_errors_supported=no
29233fi
29234 if test $_pkg_short_errors_supported = yes; then
29235 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29236 else
29237 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29238 fi
29239 # Put the nasty error message in config.log where it belongs
29240 echo "$FREETYPE_PKG_ERRORS" >&5
29241
29242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29243$as_echo "no" >&6; }
29244 have_freetype=no
29245elif test $pkg_failed = untried; then
29246 have_freetype=no
29247else
29248 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29249 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29251$as_echo "yes" >&6; }
29252 have_freetype=yes
29253fi
cristyad38abe2012-12-23 23:03:21 +000029254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29255$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029256fi
29257
cristy03f187e2013-01-24 00:22:19 +000029258if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029259
cristy8b350f62009-11-15 23:12:43 +000029260$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029261
cristy03f187e2013-01-24 00:22:19 +000029262 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029263fi
cristy03f187e2013-01-24 00:22:19 +000029264
cristy73bd4a52010-10-05 11:24:23 +000029265 if test "$have_freetype" = 'yes'; then
29266 FREETYPE_DELEGATE_TRUE=
29267 FREETYPE_DELEGATE_FALSE='#'
29268else
29269 FREETYPE_DELEGATE_TRUE='#'
29270 FREETYPE_DELEGATE_FALSE=
29271fi
29272
cristy3ed852e2009-09-05 21:47:34 +000029273
29274
29275
cristy03f187e2013-01-24 00:22:19 +000029276
cristy3ed852e2009-09-05 21:47:34 +000029277#
29278# Check for Ghostscript library or framework.
29279#
29280# Test for iapi.h & test for gsapi_new_instance in -lgs
29281# or -framework Ghostscript
29282
29283
29284# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029285if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029286 withval=$with_gslib; with_gslib=$withval
29287else
29288 with_gslib='no'
29289fi
29290
29291
cristyb7931f12009-09-25 10:22:21 +000029292gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029293if test "$with_gslib" != 'yes'; then
29294 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29295fi
29296
29297have_gslib='no'
29298GS_LIBS=''
29299if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29301$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029303$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29305$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029306 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029307 failed=0
29308 passed=0
cristy8b350f62009-11-15 23:12:43 +000029309 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 +000029310if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029311 passed=`expr $passed + 1`
29312else
29313 failed=`expr $failed + 1`
29314fi
29315
29316
cristy8b350f62009-11-15 23:12:43 +000029317 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 +000029318if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029319 passed=`expr $passed + 1`
29320else
29321 failed=`expr $failed + 1`
29322fi
29323
29324
cristy73bd4a52010-10-05 11:24:23 +000029325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29326$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029327if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029328 $as_echo_n "(cached) " >&6
29329else
29330 ac_check_framework_save_LIBS=$LIBS
29331LIBS="-framework Ghostscript $LIBS"
29332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29333/* end confdefs.h. */
29334
29335/* Override any GCC internal prototype to avoid an error.
29336 Use char because int might match the return type of a GCC
29337 builtin and then its argument prototype would still apply. */
29338#ifdef __cplusplus
29339extern "C"
29340#endif
29341char gsapi_new_instance ();
29342int
29343main ()
29344{
29345return gsapi_new_instance ();
29346 ;
29347 return 0;
29348}
29349_ACEOF
29350if ac_fn_c_try_link "$LINENO"; then :
29351 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29352else
29353 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29354fi
29355rm -f core conftest.err conftest.$ac_objext \
29356 conftest$ac_exeext conftest.$ac_ext
29357LIBS=$ac_check_framework_save_LIBS
29358fi
29359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29360$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29361if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29362 framework=`expr $framework + 1`
29363else
29364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029365$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029366if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029367 $as_echo_n "(cached) " >&6
29368else
29369 ac_check_lib_save_LIBS=$LIBS
29370LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029372/* end confdefs.h. */
29373
29374/* Override any GCC internal prototype to avoid an error.
29375 Use char because int might match the return type of a GCC
29376 builtin and then its argument prototype would still apply. */
29377#ifdef __cplusplus
29378extern "C"
29379#endif
29380char gsapi_new_instance ();
29381int
29382main ()
29383{
29384return gsapi_new_instance ();
29385 ;
29386 return 0;
29387}
29388_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029389if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029390 ac_cv_lib_gs_gsapi_new_instance=yes
29391else
cristy8b350f62009-11-15 23:12:43 +000029392 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029393fi
cristy8b350f62009-11-15 23:12:43 +000029394rm -f core conftest.err conftest.$ac_objext \
29395 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029396LIBS=$ac_check_lib_save_LIBS
29397fi
cristy8b350f62009-11-15 23:12:43 +000029398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029399$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029400if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029401 passed=`expr $passed + 1`
29402else
29403 failed=`expr $failed + 1`
29404fi
cristy73bd4a52010-10-05 11:24:23 +000029405
29406fi
cristy8b350f62009-11-15 23:12:43 +000029407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029408$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29409 if test $passed -gt 0; then
29410 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29412$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029413 have_gslib='no (failed tests)'
29414 else
29415 if test $framework -gt 0; then
29416 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029417 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29419$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029420 else
cristyad38abe2012-12-23 23:03:21 +000029421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29422$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029423 GS_LIBS='-lgs'
29424 fi
29425 LIBS="$GS_LIBS $LIBS"
29426
cristy8b350f62009-11-15 23:12:43 +000029427$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029428
29429 have_gslib='yes'
29430 fi
29431 else
cristyad38abe2012-12-23 23:03:21 +000029432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29433$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029434 fi
29435fi
cristy73bd4a52010-10-05 11:24:23 +000029436 if test "$have_gslib" = 'yes'; then
29437 GS_DELEGATE_TRUE=
29438 GS_DELEGATE_FALSE='#'
29439else
29440 GS_DELEGATE_TRUE='#'
29441 GS_DELEGATE_FALSE=
29442fi
29443
cristy3ed852e2009-09-05 21:47:34 +000029444
29445
29446# Set default font search path
29447
29448# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029449if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029450 withval=$with_fontpath; with_fontpath=$withval
29451else
29452 with_fontpath=''
29453fi
29454
29455
29456if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29457 with_fontpath=''
29458else
29459
29460cat >>confdefs.h <<_ACEOF
29461#define MAGICK_FONT_PATH "$with_fontpath"
29462_ACEOF
29463
29464fi
29465if test "$with_fontpath=" != ''; then
29466 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29467fi
29468
29469# Set Ghostscript font directory
29470
29471# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029472if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029473 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29474else
29475 with_gs_font_dir='default'
29476fi
29477
29478
29479if test "$with_gs_font_dir" != 'default'; then
29480 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29481fi
29482
29483
29484#
29485# Check for GVC delegate library.
29486#
29487
29488# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029489if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029490 withval=$with_gvc; with_gvc=$withval
29491else
cristy1b70dc82012-07-01 23:15:05 +000029492 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029493fi
29494
29495
29496if test "$with_gvc" != 'yes'; then
29497 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29498fi
29499
29500GVC_PKG=""
29501if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29503$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029504
29505pkg_failed=no
29506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29507$as_echo_n "checking for GVC... " >&6; }
29508
29509if test -n "$GVC_CFLAGS"; then
29510 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29511 elif test -n "$PKG_CONFIG"; then
29512 if test -n "$PKG_CONFIG" && \
29513 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29514 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29515 ac_status=$?
29516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29517 test $ac_status = 0; }; then
29518 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29519else
29520 pkg_failed=yes
29521fi
29522 else
29523 pkg_failed=untried
29524fi
29525if test -n "$GVC_LIBS"; then
29526 pkg_cv_GVC_LIBS="$GVC_LIBS"
29527 elif test -n "$PKG_CONFIG"; then
29528 if test -n "$PKG_CONFIG" && \
29529 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29530 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29531 ac_status=$?
29532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29533 test $ac_status = 0; }; then
29534 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29535else
29536 pkg_failed=yes
29537fi
29538 else
29539 pkg_failed=untried
29540fi
29541
29542
29543
29544if test $pkg_failed = yes; then
29545
29546if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29547 _pkg_short_errors_supported=yes
29548else
29549 _pkg_short_errors_supported=no
29550fi
29551 if test $_pkg_short_errors_supported = yes; then
29552 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29553 else
29554 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29555 fi
29556 # Put the nasty error message in config.log where it belongs
29557 echo "$GVC_PKG_ERRORS" >&5
29558
29559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29560$as_echo "no" >&6; }
29561 have_gvc=no
29562elif test $pkg_failed = untried; then
29563 have_gvc=no
29564else
29565 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29566 GVC_LIBS=$pkg_cv_GVC_LIBS
29567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29568$as_echo "yes" >&6; }
29569 have_gvc=yes
29570fi
cristyad38abe2012-12-23 23:03:21 +000029571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29572$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029573fi
29574
29575if test "$have_gvc" = 'yes'; then
29576
cristy8b350f62009-11-15 23:12:43 +000029577$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029578
cristyc6722092012-10-14 00:19:31 +000029579 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029580 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29581 fi
29582fi
29583
cristy73bd4a52010-10-05 11:24:23 +000029584 if test "$have_gvc" = 'yes'; then
29585 GVC_DELEGATE_TRUE=
29586 GVC_DELEGATE_FALSE='#'
29587else
29588 GVC_DELEGATE_TRUE='#'
29589 GVC_DELEGATE_FALSE=
29590fi
29591
cristy3ed852e2009-09-05 21:47:34 +000029592
29593
29594
29595
29596#
29597# Check for JBIG delegate library.
29598#
29599
29600
29601# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029602if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029603 withval=$with_jbig; with_jbig=$withval
29604else
29605 with_jbig='yes'
29606fi
29607
29608
29609have_jbig='no'
29610JBIG_LIBS=''
29611if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29613$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029615$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29617$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029618 failed=0
29619 passed=0
cristy8b350f62009-11-15 23:12:43 +000029620 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029621if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029622 passed=`expr $passed + 1`
29623else
29624 failed=`expr $failed + 1`
29625fi
29626
29627
cristy8b350f62009-11-15 23:12:43 +000029628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029629$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029630if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029631 $as_echo_n "(cached) " >&6
29632else
29633 ac_check_lib_save_LIBS=$LIBS
29634LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029636/* end confdefs.h. */
29637
29638/* Override any GCC internal prototype to avoid an error.
29639 Use char because int might match the return type of a GCC
29640 builtin and then its argument prototype would still apply. */
29641#ifdef __cplusplus
29642extern "C"
29643#endif
29644char jbg_dec_init ();
29645int
29646main ()
29647{
29648return jbg_dec_init ();
29649 ;
29650 return 0;
29651}
29652_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029653if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029654 ac_cv_lib_jbig_jbg_dec_init=yes
29655else
cristy8b350f62009-11-15 23:12:43 +000029656 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029657fi
cristy8b350f62009-11-15 23:12:43 +000029658rm -f core conftest.err conftest.$ac_objext \
29659 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029660LIBS=$ac_check_lib_save_LIBS
29661fi
cristy8b350f62009-11-15 23:12:43 +000029662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029663$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029664if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029665 passed=`expr $passed + 1`
29666else
29667 failed=`expr $failed + 1`
29668fi
29669
cristy8b350f62009-11-15 23:12:43 +000029670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029671$as_echo_n "checking if JBIG package is complete... " >&6; }
29672 if test $passed -gt 0; then
29673 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29675$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029676 have_jbig='no (failed tests)'
29677 else
29678 JBIG_LIBS='-ljbig'
29679 LIBS="$JBIG_LIBS $LIBS"
29680
cristy8b350f62009-11-15 23:12:43 +000029681$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029682
cristyad38abe2012-12-23 23:03:21 +000029683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29684$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029685 have_jbig='yes'
29686 fi
29687 else
cristyad38abe2012-12-23 23:03:21 +000029688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29689$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029690 fi
29691fi
cristy73bd4a52010-10-05 11:24:23 +000029692 if test "$have_jbig" = 'yes'; then
29693 JBIG_DELEGATE_TRUE=
29694 JBIG_DELEGATE_FALSE='#'
29695else
29696 JBIG_DELEGATE_TRUE='#'
29697 JBIG_DELEGATE_FALSE=
29698fi
29699
cristy3ed852e2009-09-05 21:47:34 +000029700
29701
29702
29703#
29704# Check for JPEG delegate library.
29705#
29706
29707# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029708if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029709 withval=$with_jpeg; with_jpeg=$withval
29710else
29711 with_jpeg='yes'
29712fi
29713
29714
29715if test "$with_jpeg" != 'yes'; then
29716 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29717fi
29718
29719have_jpeg='no'
29720JPEG_LIBS=''
29721if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29723$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029725$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29727$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029728 failed=0
29729 passed=0
cristy8b350f62009-11-15 23:12:43 +000029730 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029731if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029732 passed=`expr $passed + 1`
29733else
29734 failed=`expr $failed + 1`
29735fi
29736
29737
cristy8b350f62009-11-15 23:12:43 +000029738 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029739if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029740 passed=`expr $passed + 1`
29741else
29742 failed=`expr $failed + 1`
29743fi
29744
29745
cristy8b350f62009-11-15 23:12:43 +000029746 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029747if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029748 passed=`expr $passed + 1`
29749else
29750 failed=`expr $failed + 1`
29751fi
29752
29753
cristy8b350f62009-11-15 23:12:43 +000029754 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029755if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029756 passed=`expr $passed + 1`
29757else
29758 failed=`expr $failed + 1`
29759fi
29760
29761
cristy8b350f62009-11-15 23:12:43 +000029762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029763$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029764if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029765 $as_echo_n "(cached) " >&6
29766else
29767 ac_check_lib_save_LIBS=$LIBS
29768LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029770/* end confdefs.h. */
29771
29772/* Override any GCC internal prototype to avoid an error.
29773 Use char because int might match the return type of a GCC
29774 builtin and then its argument prototype would still apply. */
29775#ifdef __cplusplus
29776extern "C"
29777#endif
29778char jpeg_read_header ();
29779int
29780main ()
29781{
29782return jpeg_read_header ();
29783 ;
29784 return 0;
29785}
29786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029787if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029788 ac_cv_lib_jpeg_jpeg_read_header=yes
29789else
cristy8b350f62009-11-15 23:12:43 +000029790 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029791fi
cristy8b350f62009-11-15 23:12:43 +000029792rm -f core conftest.err conftest.$ac_objext \
29793 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029794LIBS=$ac_check_lib_save_LIBS
29795fi
cristy8b350f62009-11-15 23:12:43 +000029796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029797$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029798if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029799 passed=`expr $passed + 1`
29800else
29801 failed=`expr $failed + 1`
29802fi
29803
29804
29805# Test for compatible JPEG library
29806if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029808$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029809if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029810 $as_echo_n "(cached) " >&6
29811else
cristy8b350f62009-11-15 23:12:43 +000029812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029813/* end confdefs.h. */
29814#include <stdio.h>
29815#include <stdlib.h>
29816#include <jpeglib.h>
29817
29818int
29819main ()
29820{
29821
29822#if JPEG_LIB_VERSION < 62
29823#error IJG JPEG library must be version 6b or newer!
29824#endif
29825return 0;
29826
29827 ;
29828 return 0;
29829}
29830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029831if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029832 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29833else
cristy8b350f62009-11-15 23:12:43 +000029834 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029835fi
cristy3ed852e2009-09-05 21:47:34 +000029836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29837fi
cristy8b350f62009-11-15 23:12:43 +000029838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029839$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29840fi
cristy8b350f62009-11-15 23:12:43 +000029841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029842$as_echo_n "checking if JPEG package is complete... " >&6; }
29843 if test $passed -gt 0; then
29844 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29846$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029847 have_jpeg='no (failed tests)'
29848 else
29849 JPEG_LIBS='-ljpeg'
29850 LIBS="$JPEG_LIBS $LIBS"
29851
cristy8b350f62009-11-15 23:12:43 +000029852$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029853
cristyad38abe2012-12-23 23:03:21 +000029854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29855$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029856 have_jpeg='yes'
29857 fi
29858 else
cristyad38abe2012-12-23 23:03:21 +000029859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29860$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029861 fi
29862fi
cristy73bd4a52010-10-05 11:24:23 +000029863 if test "$have_jpeg" = 'yes'; then
29864 JPEG_DELEGATE_TRUE=
29865 JPEG_DELEGATE_FALSE='#'
29866else
29867 JPEG_DELEGATE_TRUE='#'
29868 JPEG_DELEGATE_FALSE=
29869fi
29870
cristy3ed852e2009-09-05 21:47:34 +000029871
29872
29873
29874#
29875# Check for JPEG Version 2 delegate library.
29876#
29877
29878# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029879if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029880 withval=$with_jp2; with_jp2=$withval
29881else
29882 with_jp2='yes'
29883fi
29884
29885
29886if test "$with_jp2" != 'yes'; then
29887 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29888fi
29889
29890have_jp2='no'
29891JP2_LIBS=''
29892if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29894$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029896$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29898$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029899 failed=0
29900 passed=0
cristy8b350f62009-11-15 23:12:43 +000029901 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 +000029902if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029903 passed=`expr $passed + 1`
29904else
29905 failed=`expr $failed + 1`
29906fi
29907
29908
cristy8b350f62009-11-15 23:12:43 +000029909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029910$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029911if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029912 $as_echo_n "(cached) " >&6
29913else
29914 ac_check_lib_save_LIBS=$LIBS
29915LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029917/* end confdefs.h. */
29918
29919/* Override any GCC internal prototype to avoid an error.
29920 Use char because int might match the return type of a GCC
29921 builtin and then its argument prototype would still apply. */
29922#ifdef __cplusplus
29923extern "C"
29924#endif
29925char jas_stream_fopen ();
29926int
29927main ()
29928{
29929return jas_stream_fopen ();
29930 ;
29931 return 0;
29932}
29933_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029934if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029935 ac_cv_lib_jasper_jas_stream_fopen=yes
29936else
cristy8b350f62009-11-15 23:12:43 +000029937 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029938fi
cristy8b350f62009-11-15 23:12:43 +000029939rm -f core conftest.err conftest.$ac_objext \
29940 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029941LIBS=$ac_check_lib_save_LIBS
29942fi
cristy8b350f62009-11-15 23:12:43 +000029943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029944$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029945if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029946 passed=`expr $passed + 1`
29947else
29948 failed=`expr $failed + 1`
29949fi
29950
cristy8b350f62009-11-15 23:12:43 +000029951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029952$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29953 if test $passed -gt 0; then
29954 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29956$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029957 have_jp2='no (failed tests)'
29958 else
29959 JP2_LIBS='-ljasper'
29960 LIBS="$JP2_LIBS $LIBS"
29961
cristy8b350f62009-11-15 23:12:43 +000029962$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029963
cristyad38abe2012-12-23 23:03:21 +000029964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29965$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029966 have_jp2='yes'
29967 fi
29968 else
cristyad38abe2012-12-23 23:03:21 +000029969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29970$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029971 fi
29972fi
cristy73bd4a52010-10-05 11:24:23 +000029973 if test "$have_jp2" = 'yes'; then
29974 JP2_DELEGATE_TRUE=
29975 JP2_DELEGATE_FALSE='#'
29976else
29977 JP2_DELEGATE_TRUE='#'
29978 JP2_DELEGATE_FALSE=
29979fi
29980
cristy3ed852e2009-09-05 21:47:34 +000029981
29982
29983
29984#
29985# Check for LCMS delegate library.
29986#
cristy71203402010-06-18 13:12:03 +000029987# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029988
29989# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029990if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029991 withval=$with_lcms; with_lcms=$withval
29992else
29993 with_lcms='yes'
29994fi
29995
cristy71203402010-06-18 13:12:03 +000029996if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029997 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29998fi
29999
cristy71203402010-06-18 13:12:03 +000030000# Disable LCMS2.
30001
30002# Check whether --with-lcms2 was given.
30003if test "${with_lcms2+set}" = set; then :
30004 withval=$with_lcms2; with_lcms2=$withval
30005else
30006 with_lcms2='yes'
30007fi
30008
30009if test "$with_lcms2" != 'yes' ; then
30010 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30011fi
30012
30013have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030014LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030015if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30017$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30019$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30021$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030022 failed=0
30023 passed=0
30024 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030025
30026 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030027 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030028if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030029 have_lcms_header='yes'
30030fi
30031
30032
30033 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030034
30035$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30036
cristy71203402010-06-18 13:12:03 +000030037 passed=`expr $passed + 1`
30038 fi
30039
30040 # Check for <lcms2/lcms2.h)
30041 if test "$have_lcms_header" != 'yes'; then
30042 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 +000030043if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030044 have_lcms_header='yes'
30045fi
30046
30047
cristy71203402010-06-18 13:12:03 +000030048 if test "$have_lcms_header" = 'yes'; then
30049 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030050
cristy71203402010-06-18 13:12:03 +000030051$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030052
cristy71203402010-06-18 13:12:03 +000030053 fi
cristyd09bcf92010-03-25 03:04:45 +000030054 fi
cristy71203402010-06-18 13:12:03 +000030055
30056 # Failed to find lcms header?
30057 if test "$have_lcms_header" != 'yes'; then
30058 failed=`expr $failed + 1`
30059 fi
30060
30061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30062$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030063if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030064 $as_echo_n "(cached) " >&6
30065else
30066 ac_check_lib_save_LIBS=$LIBS
30067LIBS="-llcms2 $LIBS"
30068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30069/* end confdefs.h. */
30070
30071/* Override any GCC internal prototype to avoid an error.
30072 Use char because int might match the return type of a GCC
30073 builtin and then its argument prototype would still apply. */
30074#ifdef __cplusplus
30075extern "C"
30076#endif
cristy71203402010-06-18 13:12:03 +000030077char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030078int
30079main ()
30080{
cristy71203402010-06-18 13:12:03 +000030081return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030082 ;
30083 return 0;
30084}
30085_ACEOF
30086if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030087 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030088else
cristy71203402010-06-18 13:12:03 +000030089 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030090fi
30091rm -f core conftest.err conftest.$ac_objext \
30092 conftest$ac_exeext conftest.$ac_ext
30093LIBS=$ac_check_lib_save_LIBS
30094fi
cristy71203402010-06-18 13:12:03 +000030095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30096$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030097if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030098 passed=`expr $passed + 1`
30099else
30100 failed=`expr $failed + 1`
30101fi
30102
cristy71203402010-06-18 13:12:03 +000030103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30104$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030105 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030106 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30108$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030109 have_lcms2='no (failed tests)'
30110 else
30111 LCMS_LIBS='-llcms2'
30112 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30114$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030115 have_lcms2='yes'
30116 fi
cristyd09bcf92010-03-25 03:04:45 +000030117 else
cristyad38abe2012-12-23 23:03:21 +000030118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30119$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030120 fi
30121fi
30122
cristy71203402010-06-18 13:12:03 +000030123#
30124# Check for LCMS v1 (1.11 or later)
30125#
30126if test $have_lcms2 = 'yes'; then
30127 with_lcms='no'
30128fi
30129
30130have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030131if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30133$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30135$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30137$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030138 failed=0
30139 passed=0
30140 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030141
30142 # Check for <lcms.h>
30143 if test "$have_lcms_header" != 'yes'; then
30144 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030145if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030146 have_lcms_header='yes'
30147fi
30148
30149
cristy71203402010-06-18 13:12:03 +000030150 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030151 passed=`expr $passed + 1`
30152
cristy8b350f62009-11-15 23:12:43 +000030153$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030154
cristy71203402010-06-18 13:12:03 +000030155 fi
30156 fi
30157
30158 # Check for <lcms/lcms.h>
30159 if test "$have_lcms_header" != 'yes'; then
30160 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 +000030161if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030162 have_lcms_header='yes'
30163fi
30164
30165
cristy71203402010-06-18 13:12:03 +000030166 if test "$have_lcms_header" = 'yes'; then
30167 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030168
cristy8b350f62009-11-15 23:12:43 +000030169$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030170
cristy71203402010-06-18 13:12:03 +000030171 fi
cristy3ed852e2009-09-05 21:47:34 +000030172 fi
cristy71203402010-06-18 13:12:03 +000030173
30174 # Failed to find lcms header?
30175 if test "$have_lcms_header" != 'yes'; then
30176 failed=`expr $failed + 1`
30177 fi
30178
30179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30180$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030181if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030182 $as_echo_n "(cached) " >&6
30183else
30184 ac_check_lib_save_LIBS=$LIBS
30185LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030187/* end confdefs.h. */
30188
30189/* Override any GCC internal prototype to avoid an error.
30190 Use char because int might match the return type of a GCC
30191 builtin and then its argument prototype would still apply. */
30192#ifdef __cplusplus
30193extern "C"
30194#endif
cristy71203402010-06-18 13:12:03 +000030195char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030196int
30197main ()
30198{
cristy71203402010-06-18 13:12:03 +000030199return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030200 ;
30201 return 0;
30202}
30203_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030204if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030205 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030206else
cristy71203402010-06-18 13:12:03 +000030207 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030208fi
cristy8b350f62009-11-15 23:12:43 +000030209rm -f core conftest.err conftest.$ac_objext \
30210 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030211LIBS=$ac_check_lib_save_LIBS
30212fi
cristy71203402010-06-18 13:12:03 +000030213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30214$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030215if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030216 passed=`expr $passed + 1`
30217else
30218 failed=`expr $failed + 1`
30219fi
30220
cristy8b350f62009-11-15 23:12:43 +000030221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030222$as_echo_n "checking if LCMS package is complete... " >&6; }
30223 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030224 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30226$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030227 have_lcms='no (failed tests)'
30228 else
30229 LCMS_LIBS='-llcms'
30230 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30232$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030233 have_lcms='yes'
30234 fi
cristy3ed852e2009-09-05 21:47:34 +000030235 else
cristyad38abe2012-12-23 23:03:21 +000030236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30237$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030238 fi
30239fi
cristy71203402010-06-18 13:12:03 +000030240
cristy73bd4a52010-10-05 11:24:23 +000030241 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30242 LCMS_DELEGATE_TRUE=
30243 LCMS_DELEGATE_FALSE='#'
30244else
30245 LCMS_DELEGATE_TRUE='#'
30246 LCMS_DELEGATE_FALSE=
30247fi
30248
cristy71203402010-06-18 13:12:03 +000030249if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30250
30251$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30252
30253fi
30254
cristy3ed852e2009-09-05 21:47:34 +000030255
30256
30257
30258#
30259# Check for the LQR (Liquid Rescale) delegate library.
30260#
30261
30262# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030263if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030264 withval=$with_lqr; with_lqr=$withval
30265else
30266 with_lqr='yes'
30267fi
30268
30269
30270if test "$with_lqr" != 'yes'; then
30271 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30272fi
30273
30274have_lqr='no'
30275LQR_CFLAGS=""
30276LQR_LIBS=""
30277LQR_PKG=""
30278if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30280$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030281
30282pkg_failed=no
30283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30284$as_echo_n "checking for LQR... " >&6; }
30285
30286if test -n "$LQR_CFLAGS"; then
30287 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30288 elif test -n "$PKG_CONFIG"; then
30289 if test -n "$PKG_CONFIG" && \
30290 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30291 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30292 ac_status=$?
30293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30294 test $ac_status = 0; }; then
30295 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30296else
30297 pkg_failed=yes
30298fi
30299 else
30300 pkg_failed=untried
30301fi
30302if test -n "$LQR_LIBS"; then
30303 pkg_cv_LQR_LIBS="$LQR_LIBS"
30304 elif test -n "$PKG_CONFIG"; then
30305 if test -n "$PKG_CONFIG" && \
30306 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30307 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30308 ac_status=$?
30309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30310 test $ac_status = 0; }; then
30311 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30312else
30313 pkg_failed=yes
30314fi
30315 else
30316 pkg_failed=untried
30317fi
30318
30319
30320
30321if test $pkg_failed = yes; then
30322
30323if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30324 _pkg_short_errors_supported=yes
30325else
30326 _pkg_short_errors_supported=no
30327fi
30328 if test $_pkg_short_errors_supported = yes; then
30329 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30330 else
30331 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30332 fi
30333 # Put the nasty error message in config.log where it belongs
30334 echo "$LQR_PKG_ERRORS" >&5
30335
30336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30337$as_echo "no" >&6; }
30338 have_lqr=no
30339elif test $pkg_failed = untried; then
30340 have_lqr=no
30341else
30342 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30343 LQR_LIBS=$pkg_cv_LQR_LIBS
30344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30345$as_echo "yes" >&6; }
30346 have_lqr=yes
30347fi
cristyad38abe2012-12-23 23:03:21 +000030348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30349$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030350fi
30351
30352if test "$have_lqr" = 'yes'; then
30353
cristy8b350f62009-11-15 23:12:43 +000030354$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030355
30356 CFLAGS="$LQR_CFLAGS $CFLAGS"
30357fi
30358
cristy73bd4a52010-10-05 11:24:23 +000030359 if test "$have_lqr" = 'yes'; then
30360 LQR_DELEGATE_TRUE=
30361 LQR_DELEGATE_FALSE='#'
30362else
30363 LQR_DELEGATE_TRUE='#'
30364 LQR_DELEGATE_FALSE=
30365fi
30366
cristy3ed852e2009-09-05 21:47:34 +000030367
30368
30369
30370
cristy81beccd2011-10-03 18:17:24 +000030371# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030372
30373# Check whether --with-lzma was given.
30374if test "${with_lzma+set}" = set; then :
30375 withval=$with_lzma; with_lzma=$withval
30376else
30377 with_lzma='yes'
30378fi
30379
cristy81beccd2011-10-03 18:17:24 +000030380if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030381 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30382fi
30383
cristyb94e5002011-11-14 13:20:10 +000030384LZMA_PKG=""
30385if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30387$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030388
30389pkg_failed=no
30390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030391$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030392
30393if test -n "$LZMA_CFLAGS"; then
30394 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30395 elif test -n "$PKG_CONFIG"; then
30396 if test -n "$PKG_CONFIG" && \
30397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30398 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30399 ac_status=$?
30400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30401 test $ac_status = 0; }; then
30402 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30403else
30404 pkg_failed=yes
30405fi
30406 else
30407 pkg_failed=untried
30408fi
30409if test -n "$LZMA_LIBS"; then
30410 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30411 elif test -n "$PKG_CONFIG"; then
30412 if test -n "$PKG_CONFIG" && \
30413 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30414 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30415 ac_status=$?
30416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30417 test $ac_status = 0; }; then
30418 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30419else
30420 pkg_failed=yes
30421fi
30422 else
30423 pkg_failed=untried
30424fi
30425
30426
30427
30428if test $pkg_failed = yes; then
30429
30430if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30431 _pkg_short_errors_supported=yes
30432else
30433 _pkg_short_errors_supported=no
30434fi
30435 if test $_pkg_short_errors_supported = yes; then
30436 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30437 else
30438 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30439 fi
30440 # Put the nasty error message in config.log where it belongs
30441 echo "$LZMA_PKG_ERRORS" >&5
30442
30443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30444$as_echo "no" >&6; }
30445 have_lzma=no
30446elif test $pkg_failed = untried; then
30447 have_lzma=no
30448else
30449 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30450 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30452$as_echo "yes" >&6; }
30453 have_lzma=yes
30454fi
cristyad38abe2012-12-23 23:03:21 +000030455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30456$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030457fi
30458
cristyb94e5002011-11-14 13:20:10 +000030459if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030460
30461$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30462
cristyc6722092012-10-14 00:19:31 +000030463 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030464 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030465 fi
cristyfbb0ef02010-12-19 02:32:11 +000030466fi
cristyb94e5002011-11-14 13:20:10 +000030467
cristyfbb0ef02010-12-19 02:32:11 +000030468 if test "$have_lzma" = 'yes'; then
30469 LZMA_DELEGATE_TRUE=
30470 LZMA_DELEGATE_FALSE='#'
30471else
30472 LZMA_DELEGATE_TRUE='#'
30473 LZMA_DELEGATE_FALSE=
30474fi
30475
30476
30477
30478
cristyb94e5002011-11-14 13:20:10 +000030479
cristy3ed852e2009-09-05 21:47:34 +000030480#
30481# Check for the OpenEXR delegate library.
30482#
30483
30484# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030485if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030486 withval=$with_openexr; with_openexr=$withval
30487else
30488 with_openexr='yes'
30489fi
30490
30491
30492if test "$with_openexr" != 'yes'; then
30493 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30494fi
30495
30496have_openexr='no'
30497OPENEXR_CFLAGS=""
30498OPENEXR_LIBS=""
30499OPENEXR_PKG=""
30500if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30502$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030503
30504pkg_failed=no
30505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30506$as_echo_n "checking for OPENEXR... " >&6; }
30507
30508if test -n "$OPENEXR_CFLAGS"; then
30509 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30510 elif test -n "$PKG_CONFIG"; then
30511 if test -n "$PKG_CONFIG" && \
30512 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30513 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30514 ac_status=$?
30515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30516 test $ac_status = 0; }; then
30517 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30518else
30519 pkg_failed=yes
30520fi
30521 else
30522 pkg_failed=untried
30523fi
30524if test -n "$OPENEXR_LIBS"; then
30525 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30526 elif test -n "$PKG_CONFIG"; then
30527 if test -n "$PKG_CONFIG" && \
30528 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30529 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30530 ac_status=$?
30531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30532 test $ac_status = 0; }; then
30533 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30534else
30535 pkg_failed=yes
30536fi
30537 else
30538 pkg_failed=untried
30539fi
30540
30541
30542
30543if test $pkg_failed = yes; then
30544
30545if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30546 _pkg_short_errors_supported=yes
30547else
30548 _pkg_short_errors_supported=no
30549fi
30550 if test $_pkg_short_errors_supported = yes; then
30551 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30552 else
30553 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30554 fi
30555 # Put the nasty error message in config.log where it belongs
30556 echo "$OPENEXR_PKG_ERRORS" >&5
30557
30558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30559$as_echo "no" >&6; }
30560 have_openexr=no
30561elif test $pkg_failed = untried; then
30562 have_openexr=no
30563else
30564 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30565 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30567$as_echo "yes" >&6; }
30568 have_openexr=yes
30569fi
cristyad38abe2012-12-23 23:03:21 +000030570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30571$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030572fi
30573
30574if test "$have_openexr" = 'yes'; then
30575
cristy8b350f62009-11-15 23:12:43 +000030576$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030577
cristyc6722092012-10-14 00:19:31 +000030578 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030579 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30580 fi
30581fi
30582
cristy73bd4a52010-10-05 11:24:23 +000030583 if test "$have_openexr" = 'yes'; then
30584 OPENEXR_DELEGATE_TRUE=
30585 OPENEXR_DELEGATE_FALSE='#'
30586else
30587 OPENEXR_DELEGATE_TRUE='#'
30588 OPENEXR_DELEGATE_FALSE=
30589fi
30590
cristy3ed852e2009-09-05 21:47:34 +000030591
30592
30593
30594
30595#
cristy41cbe8a2011-10-27 01:35:18 +000030596# Check for PANGO delegate library.
30597#
30598
30599# Check whether --with-pango was given.
30600if test "${with_pango+set}" = set; then :
30601 withval=$with_pango; with_pango=$withval
30602else
cristyfc3d0222012-02-07 15:05:57 +000030603 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030604fi
30605
30606
30607if test "$with_pango" != 'yes'; then
30608 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30609fi
30610
30611have_pango='no'
cristya054b762012-03-26 23:16:00 +000030612have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030613PANGO_CFLAGS=""
30614PANGO_LIBS=""
30615PANGO_PKG=""
30616if test "x$with_pango" = "xyes"; then
30617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30618$as_echo "-------------------------------------------------------------" >&6; }
30619
30620pkg_failed=no
30621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30622$as_echo_n "checking for PANGO... " >&6; }
30623
30624if test -n "$PANGO_CFLAGS"; then
30625 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30626 elif test -n "$PKG_CONFIG"; then
30627 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030628 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30629 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030630 ac_status=$?
30631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30632 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030633 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030634else
30635 pkg_failed=yes
30636fi
30637 else
30638 pkg_failed=untried
30639fi
30640if test -n "$PANGO_LIBS"; then
30641 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30642 elif test -n "$PKG_CONFIG"; then
30643 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030644 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30645 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030646 ac_status=$?
30647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30648 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030649 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030650else
30651 pkg_failed=yes
30652fi
30653 else
30654 pkg_failed=untried
30655fi
30656
30657
30658
30659if test $pkg_failed = yes; then
30660
30661if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30662 _pkg_short_errors_supported=yes
30663else
30664 _pkg_short_errors_supported=no
30665fi
30666 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030667 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030668 else
cristya054b762012-03-26 23:16:00 +000030669 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030670 fi
30671 # Put the nasty error message in config.log where it belongs
30672 echo "$PANGO_PKG_ERRORS" >&5
30673
30674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30675$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030676 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030677elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030678 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030679else
30680 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30681 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30683$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030684 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030685fi
30686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30687$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030688
30689pkg_failed=no
30690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30691$as_echo_n "checking for PANGO... " >&6; }
30692
30693if test -n "$PANGO_CFLAGS"; then
30694 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30695 elif test -n "$PKG_CONFIG"; then
30696 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030697 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30698 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030699 ac_status=$?
30700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30701 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030702 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030703else
30704 pkg_failed=yes
30705fi
30706 else
30707 pkg_failed=untried
30708fi
30709if test -n "$PANGO_LIBS"; then
30710 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30711 elif test -n "$PKG_CONFIG"; then
30712 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030713 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30714 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030715 ac_status=$?
30716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30717 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030718 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030719else
30720 pkg_failed=yes
30721fi
30722 else
30723 pkg_failed=untried
30724fi
30725
30726
30727
30728if test $pkg_failed = yes; then
30729
30730if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30731 _pkg_short_errors_supported=yes
30732else
30733 _pkg_short_errors_supported=no
30734fi
30735 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030736 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030737 else
cristy2542fc62011-12-06 17:50:25 +000030738 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030739 fi
30740 # Put the nasty error message in config.log where it belongs
30741 echo "$PANGO_PKG_ERRORS" >&5
30742
30743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30744$as_echo "no" >&6; }
30745 have_pango=no
30746elif test $pkg_failed = untried; then
30747 have_pango=no
30748else
30749 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30750 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30752$as_echo "yes" >&6; }
30753 have_pango=yes
30754fi
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30756$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030757fi
30758
30759if test "$have_pango" = 'yes'; then
30760
30761$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30762
cristyc6722092012-10-14 00:19:31 +000030763 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030764 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30765 fi
30766fi
30767
cristya054b762012-03-26 23:16:00 +000030768if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030769
cristya054b762012-03-26 23:16:00 +000030770$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030771
cristyc6722092012-10-14 00:19:31 +000030772 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030773 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030774 fi
30775fi
30776
30777 if test "$have_pango" = 'yes'; then
30778 PANGO_DELEGATE_TRUE=
30779 PANGO_DELEGATE_FALSE='#'
30780else
30781 PANGO_DELEGATE_TRUE='#'
30782 PANGO_DELEGATE_FALSE=
30783fi
30784
cristya054b762012-03-26 23:16:00 +000030785 if test "$have_pangocairo" = 'yes'; then
30786 PANGOCAIRO_DELEGATE_TRUE=
30787 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030788else
cristya054b762012-03-26 23:16:00 +000030789 PANGOCAIRO_DELEGATE_TRUE='#'
30790 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030791fi
30792
30793
30794
30795
30796
30797#
cristy3ed852e2009-09-05 21:47:34 +000030798# Check for PNG delegate library.
30799#
30800
30801# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030802if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030803 withval=$with_png; with_png=$withval
30804else
30805 with_png='yes'
30806fi
30807
30808
30809if test "$with_png" != 'yes'; then
30810 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30811fi
30812
cristy81beccd2011-10-03 18:17:24 +000030813have_png='no'
30814PNG_LIBS=''
30815
30816if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30818$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30820$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30822$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030823 failed=0
30824 passed=0
30825 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30826if test "x$ac_cv_header_png_h" = xyes; then :
30827 passed=`expr $passed + 1`
30828else
30829 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030830fi
30831
cristy81beccd2011-10-03 18:17:24 +000030832
30833
30834 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030835 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030836 if test "$have_png" = 'no' ; then
30837 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030838 pnglib='png'
30839 else
30840 pnglib="png1${var}"
30841 fi
30842
30843# Test for compatible LIBPNG library
30844 failed=0
30845 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030846 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030847 if test "${pnglib}" != 'png' ; then
30848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30849$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30851/* end confdefs.h. */
30852#include <stdio.h>
30853#include <stdlib.h>
30854#include <png.h>
30855
30856int
30857main ()
30858{
30859
30860#if PNG_LIBPNG_VER_MINOR != ${var}
30861#error LIBPNG library must be version 1${var}!
30862Kaboom, Kaboom
30863#endif
30864return 0;
30865
30866 ;
30867 return 0;
30868}
30869_ACEOF
30870if ac_fn_c_try_compile "$LINENO"; then :
30871 ac_cv_libpng_ok='yes'
30872else
30873 ac_cv_libpng_ok='no'
30874fi
30875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30876 if test "$ac_cv_libpng_ok" = 'yes' ; then
30877 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30879$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030880 else
30881 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30883$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030884 fi
30885 else
30886 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30888$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030889 fi
30890 fi
30891
30892 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030893 if test "1${var}" = '17' ; then
30894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30895$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30896if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30897 $as_echo_n "(cached) " >&6
30898else
30899 ac_check_lib_save_LIBS=$LIBS
30900LIBS="-lpng17 $LIBS"
30901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30902/* end confdefs.h. */
30903
30904/* Override any GCC internal prototype to avoid an error.
30905 Use char because int might match the return type of a GCC
30906 builtin and then its argument prototype would still apply. */
30907#ifdef __cplusplus
30908extern "C"
30909#endif
30910char png_get_io_ptr ();
30911int
30912main ()
30913{
30914return png_get_io_ptr ();
30915 ;
30916 return 0;
30917}
30918_ACEOF
30919if ac_fn_c_try_link "$LINENO"; then :
30920 ac_cv_lib_png17_png_get_io_ptr=yes
30921else
30922 ac_cv_lib_png17_png_get_io_ptr=no
30923fi
30924rm -f core conftest.err conftest.$ac_objext \
30925 conftest$ac_exeext conftest.$ac_ext
30926LIBS=$ac_check_lib_save_LIBS
30927fi
30928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30929$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30930if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30931 passed=`expr $passed + 1`
30932else
30933 failed=`expr $failed + 1`
30934fi
30935
30936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30937$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30938if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30939 $as_echo_n "(cached) " >&6
30940else
30941 ac_check_lib_save_LIBS=$LIBS
30942LIBS="-lpng17 $LIBS"
30943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30944/* end confdefs.h. */
30945
30946/* Override any GCC internal prototype to avoid an error.
30947 Use char because int might match the return type of a GCC
30948 builtin and then its argument prototype would still apply. */
30949#ifdef __cplusplus
30950extern "C"
30951#endif
30952char png_longjmp ();
30953int
30954main ()
30955{
30956return png_longjmp ();
30957 ;
30958 return 0;
30959}
30960_ACEOF
30961if ac_fn_c_try_link "$LINENO"; then :
30962 ac_cv_lib_png17_png_longjmp=yes
30963else
30964 ac_cv_lib_png17_png_longjmp=no
30965fi
30966rm -f core conftest.err conftest.$ac_objext \
30967 conftest$ac_exeext conftest.$ac_ext
30968LIBS=$ac_check_lib_save_LIBS
30969fi
30970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30971$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30972if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30973 passed=`expr $passed + 1`
30974else
30975 failed=`expr $failed + 1`
30976fi
30977
30978 fi
30979 if test "1${var}" = '16' ; then
30980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30981$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30982if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30983 $as_echo_n "(cached) " >&6
30984else
30985 ac_check_lib_save_LIBS=$LIBS
30986LIBS="-lpng16 $LIBS"
30987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30988/* end confdefs.h. */
30989
30990/* Override any GCC internal prototype to avoid an error.
30991 Use char because int might match the return type of a GCC
30992 builtin and then its argument prototype would still apply. */
30993#ifdef __cplusplus
30994extern "C"
30995#endif
30996char png_get_io_ptr ();
30997int
30998main ()
30999{
31000return png_get_io_ptr ();
31001 ;
31002 return 0;
31003}
31004_ACEOF
31005if ac_fn_c_try_link "$LINENO"; then :
31006 ac_cv_lib_png16_png_get_io_ptr=yes
31007else
31008 ac_cv_lib_png16_png_get_io_ptr=no
31009fi
31010rm -f core conftest.err conftest.$ac_objext \
31011 conftest$ac_exeext conftest.$ac_ext
31012LIBS=$ac_check_lib_save_LIBS
31013fi
31014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31015$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31016if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31017 passed=`expr $passed + 1`
31018else
31019 failed=`expr $failed + 1`
31020fi
31021
31022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31023$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31024if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31025 $as_echo_n "(cached) " >&6
31026else
31027 ac_check_lib_save_LIBS=$LIBS
31028LIBS="-lpng16 $LIBS"
31029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31030/* end confdefs.h. */
31031
31032/* Override any GCC internal prototype to avoid an error.
31033 Use char because int might match the return type of a GCC
31034 builtin and then its argument prototype would still apply. */
31035#ifdef __cplusplus
31036extern "C"
31037#endif
31038char png_longjmp ();
31039int
31040main ()
31041{
31042return png_longjmp ();
31043 ;
31044 return 0;
31045}
31046_ACEOF
31047if ac_fn_c_try_link "$LINENO"; then :
31048 ac_cv_lib_png16_png_longjmp=yes
31049else
31050 ac_cv_lib_png16_png_longjmp=no
31051fi
31052rm -f core conftest.err conftest.$ac_objext \
31053 conftest$ac_exeext conftest.$ac_ext
31054LIBS=$ac_check_lib_save_LIBS
31055fi
31056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31057$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31058if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31059 passed=`expr $passed + 1`
31060else
31061 failed=`expr $failed + 1`
31062fi
31063
31064 fi
cristy81beccd2011-10-03 18:17:24 +000031065 if test "1${var}" = '15' ; then
31066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31067$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31068if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31069 $as_echo_n "(cached) " >&6
31070else
31071 ac_check_lib_save_LIBS=$LIBS
31072LIBS="-lpng15 $LIBS"
31073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31074/* end confdefs.h. */
31075
31076/* Override any GCC internal prototype to avoid an error.
31077 Use char because int might match the return type of a GCC
31078 builtin and then its argument prototype would still apply. */
31079#ifdef __cplusplus
31080extern "C"
31081#endif
31082char png_get_io_ptr ();
31083int
31084main ()
31085{
31086return png_get_io_ptr ();
31087 ;
31088 return 0;
31089}
31090_ACEOF
31091if ac_fn_c_try_link "$LINENO"; then :
31092 ac_cv_lib_png15_png_get_io_ptr=yes
31093else
31094 ac_cv_lib_png15_png_get_io_ptr=no
31095fi
31096rm -f core conftest.err conftest.$ac_objext \
31097 conftest$ac_exeext conftest.$ac_ext
31098LIBS=$ac_check_lib_save_LIBS
31099fi
31100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31101$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31102if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31103 passed=`expr $passed + 1`
31104else
31105 failed=`expr $failed + 1`
31106fi
31107
31108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31109$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31110if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31111 $as_echo_n "(cached) " >&6
31112else
31113 ac_check_lib_save_LIBS=$LIBS
31114LIBS="-lpng15 $LIBS"
31115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31116/* end confdefs.h. */
31117
31118/* Override any GCC internal prototype to avoid an error.
31119 Use char because int might match the return type of a GCC
31120 builtin and then its argument prototype would still apply. */
31121#ifdef __cplusplus
31122extern "C"
31123#endif
31124char png_longjmp ();
31125int
31126main ()
31127{
31128return png_longjmp ();
31129 ;
31130 return 0;
31131}
31132_ACEOF
31133if ac_fn_c_try_link "$LINENO"; then :
31134 ac_cv_lib_png15_png_longjmp=yes
31135else
31136 ac_cv_lib_png15_png_longjmp=no
31137fi
31138rm -f core conftest.err conftest.$ac_objext \
31139 conftest$ac_exeext conftest.$ac_ext
31140LIBS=$ac_check_lib_save_LIBS
31141fi
31142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31143$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31144if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31145 passed=`expr $passed + 1`
31146else
31147 failed=`expr $failed + 1`
31148fi
31149
31150 fi
31151 if test "1${var}" = '14' ; then
31152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31153$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31154if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31155 $as_echo_n "(cached) " >&6
31156else
31157 ac_check_lib_save_LIBS=$LIBS
31158LIBS="-lpng14 $LIBS"
31159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31160/* end confdefs.h. */
31161
31162/* Override any GCC internal prototype to avoid an error.
31163 Use char because int might match the return type of a GCC
31164 builtin and then its argument prototype would still apply. */
31165#ifdef __cplusplus
31166extern "C"
31167#endif
31168char png_get_io_ptr ();
31169int
31170main ()
31171{
31172return png_get_io_ptr ();
31173 ;
31174 return 0;
31175}
31176_ACEOF
31177if ac_fn_c_try_link "$LINENO"; then :
31178 ac_cv_lib_png14_png_get_io_ptr=yes
31179else
31180 ac_cv_lib_png14_png_get_io_ptr=no
31181fi
31182rm -f core conftest.err conftest.$ac_objext \
31183 conftest$ac_exeext conftest.$ac_ext
31184LIBS=$ac_check_lib_save_LIBS
31185fi
31186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31187$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31188if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31189 passed=`expr $passed + 1`
31190else
31191 failed=`expr $failed + 1`
31192fi
31193
31194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31195$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31196if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31197 $as_echo_n "(cached) " >&6
31198else
31199 ac_check_lib_save_LIBS=$LIBS
31200LIBS="-lpng14 $LIBS"
31201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31202/* end confdefs.h. */
31203
31204/* Override any GCC internal prototype to avoid an error.
31205 Use char because int might match the return type of a GCC
31206 builtin and then its argument prototype would still apply. */
31207#ifdef __cplusplus
31208extern "C"
31209#endif
31210char png_get_io_state ();
31211int
31212main ()
31213{
31214return png_get_io_state ();
31215 ;
31216 return 0;
31217}
31218_ACEOF
31219if ac_fn_c_try_link "$LINENO"; then :
31220 ac_cv_lib_png14_png_get_io_state=yes
31221else
31222 ac_cv_lib_png14_png_get_io_state=no
31223fi
31224rm -f core conftest.err conftest.$ac_objext \
31225 conftest$ac_exeext conftest.$ac_ext
31226LIBS=$ac_check_lib_save_LIBS
31227fi
31228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31229$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31230if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31231 passed=`expr $passed + 1`
31232else
31233 failed=`expr $failed + 1`
31234fi
31235
31236 fi
31237 if test "1${var}" = '12' ; then
31238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31239$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31240if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31241 $as_echo_n "(cached) " >&6
31242else
31243 ac_check_lib_save_LIBS=$LIBS
31244LIBS="-lpng12 $LIBS"
31245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31246/* end confdefs.h. */
31247
31248/* Override any GCC internal prototype to avoid an error.
31249 Use char because int might match the return type of a GCC
31250 builtin and then its argument prototype would still apply. */
31251#ifdef __cplusplus
31252extern "C"
31253#endif
31254char png_get_io_ptr ();
31255int
31256main ()
31257{
31258return png_get_io_ptr ();
31259 ;
31260 return 0;
31261}
31262_ACEOF
31263if ac_fn_c_try_link "$LINENO"; then :
31264 ac_cv_lib_png12_png_get_io_ptr=yes
31265else
31266 ac_cv_lib_png12_png_get_io_ptr=no
31267fi
31268rm -f core conftest.err conftest.$ac_objext \
31269 conftest$ac_exeext conftest.$ac_ext
31270LIBS=$ac_check_lib_save_LIBS
31271fi
31272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31273$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31274if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31275 passed=`expr $passed + 1`
31276else
31277 failed=`expr $failed + 1`
31278fi
31279
31280 fi
31281 if test "1${var}" = '1' ; then
31282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31283$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31284if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31285 $as_echo_n "(cached) " >&6
31286else
31287 ac_check_lib_save_LIBS=$LIBS
31288LIBS="-lpng $LIBS"
31289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31290/* end confdefs.h. */
31291
31292/* Override any GCC internal prototype to avoid an error.
31293 Use char because int might match the return type of a GCC
31294 builtin and then its argument prototype would still apply. */
31295#ifdef __cplusplus
31296extern "C"
31297#endif
31298char png_get_io_ptr ();
31299int
31300main ()
31301{
31302return png_get_io_ptr ();
31303 ;
31304 return 0;
31305}
31306_ACEOF
31307if ac_fn_c_try_link "$LINENO"; then :
31308 ac_cv_lib_png_png_get_io_ptr=yes
31309else
31310 ac_cv_lib_png_png_get_io_ptr=no
31311fi
31312rm -f core conftest.err conftest.$ac_objext \
31313 conftest$ac_exeext conftest.$ac_ext
31314LIBS=$ac_check_lib_save_LIBS
31315fi
31316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31317$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31318if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31319 passed=`expr $passed + 1`
31320else
31321 failed=`expr $failed + 1`
31322fi
31323
31324 fi
31325 if test $passed -gt 0 -a $failed -le 0 ; then
31326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31327$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31328 if test $passed -gt 0 ; then
31329 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31331$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031332 have_png='no (failed tests)'
31333 else
31334 PNG_LIBS="-l${pnglib}"
31335 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031336
cristy8b350f62009-11-15 23:12:43 +000031337$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031338
cristyad38abe2012-12-23 23:03:21 +000031339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31340$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031341 have_png='yes'
31342 fi
31343 fi
31344 fi
31345 fi
31346 fi
31347 done
31348 fi
cristy3ed852e2009-09-05 21:47:34 +000031349fi
cristy64877302011-08-23 19:10:31 +000031350
cristy73bd4a52010-10-05 11:24:23 +000031351 if test "$have_png" = 'yes'; then
31352 PNG_DELEGATE_TRUE=
31353 PNG_DELEGATE_FALSE='#'
31354else
31355 PNG_DELEGATE_TRUE='#'
31356 PNG_DELEGATE_FALSE=
31357fi
31358
cristy3ed852e2009-09-05 21:47:34 +000031359
cristy50d3f5c2011-09-10 20:09:06 +000031360
cristy3ed852e2009-09-05 21:47:34 +000031361
31362
31363#
31364# Check for RSVG delegate library.
31365#
31366
31367# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031368if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031369 withval=$with_rsvg; with_rsvg=$withval
31370else
cristy1164d5f2012-08-15 00:58:25 +000031371 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031372fi
31373
31374
31375if test "$with_rsvg" != 'yes'; then
31376 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31377fi
31378
31379have_rsvg='no'
31380have_cairo='no'
31381RSVG_CFLAGS=""
31382RSVG_LIBS=""
31383RSVG_PKG=""
31384if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31386$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031387
31388pkg_failed=no
31389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31390$as_echo_n "checking for RSVG... " >&6; }
31391
31392if test -n "$RSVG_CFLAGS"; then
31393 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31394 elif test -n "$PKG_CONFIG"; then
31395 if test -n "$PKG_CONFIG" && \
31396 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31397 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31398 ac_status=$?
31399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31400 test $ac_status = 0; }; then
31401 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31402else
31403 pkg_failed=yes
31404fi
31405 else
31406 pkg_failed=untried
31407fi
31408if test -n "$RSVG_LIBS"; then
31409 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31410 elif test -n "$PKG_CONFIG"; then
31411 if test -n "$PKG_CONFIG" && \
31412 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31413 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31414 ac_status=$?
31415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31416 test $ac_status = 0; }; then
31417 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31418else
31419 pkg_failed=yes
31420fi
31421 else
31422 pkg_failed=untried
31423fi
31424
31425
31426
31427if test $pkg_failed = yes; then
31428
31429if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31430 _pkg_short_errors_supported=yes
31431else
31432 _pkg_short_errors_supported=no
31433fi
31434 if test $_pkg_short_errors_supported = yes; then
31435 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31436 else
31437 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31438 fi
31439 # Put the nasty error message in config.log where it belongs
31440 echo "$RSVG_PKG_ERRORS" >&5
31441
31442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31443$as_echo "no" >&6; }
31444 have_rsvg=no
31445elif test $pkg_failed = untried; then
31446 have_rsvg=no
31447else
31448 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31449 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31451$as_echo "yes" >&6; }
31452 have_rsvg=yes
31453fi
cristyad38abe2012-12-23 23:03:21 +000031454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31455$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031456
31457pkg_failed=no
31458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31459$as_echo_n "checking for CAIRO_SVG... " >&6; }
31460
31461if test -n "$CAIRO_SVG_CFLAGS"; then
31462 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31463 elif test -n "$PKG_CONFIG"; then
31464 if test -n "$PKG_CONFIG" && \
31465 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31466 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31467 ac_status=$?
31468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31469 test $ac_status = 0; }; then
31470 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31471else
31472 pkg_failed=yes
31473fi
31474 else
31475 pkg_failed=untried
31476fi
31477if test -n "$CAIRO_SVG_LIBS"; then
31478 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31479 elif test -n "$PKG_CONFIG"; then
31480 if test -n "$PKG_CONFIG" && \
31481 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31482 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31483 ac_status=$?
31484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31485 test $ac_status = 0; }; then
31486 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31487else
31488 pkg_failed=yes
31489fi
31490 else
31491 pkg_failed=untried
31492fi
31493
31494
31495
31496if test $pkg_failed = yes; then
31497
31498if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31499 _pkg_short_errors_supported=yes
31500else
31501 _pkg_short_errors_supported=no
31502fi
31503 if test $_pkg_short_errors_supported = yes; then
31504 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31505 else
31506 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31507 fi
31508 # Put the nasty error message in config.log where it belongs
31509 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31510
31511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31512$as_echo "no" >&6; }
31513 have_cairo=no
31514elif test $pkg_failed = untried; then
31515 have_cairo=no
31516else
31517 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31518 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31520$as_echo "yes" >&6; }
31521 have_cairo=yes
31522fi
cristyad38abe2012-12-23 23:03:21 +000031523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31524$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031525fi
31526
31527if test "$have_rsvg" = 'yes'; then
31528
cristy8b350f62009-11-15 23:12:43 +000031529$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031530
cristyc6722092012-10-14 00:19:31 +000031531 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031532 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31533 fi
31534fi
31535
31536if test "$have_cairo" = 'yes'; then
31537
cristy8b350f62009-11-15 23:12:43 +000031538$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031539
cristyc6722092012-10-14 00:19:31 +000031540 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031541 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31542 fi
31543fi
31544
cristy73bd4a52010-10-05 11:24:23 +000031545 if test "$have_rsvg" = 'yes'; then
31546 RSVG_DELEGATE_TRUE=
31547 RSVG_DELEGATE_FALSE='#'
31548else
31549 RSVG_DELEGATE_TRUE='#'
31550 RSVG_DELEGATE_FALSE=
31551fi
31552
31553 if test "$have_cairo" = 'yes'; then
31554 CAIRO_DELEGATE_TRUE=
31555 CAIRO_DELEGATE_FALSE='#'
31556else
31557 CAIRO_DELEGATE_TRUE='#'
31558 CAIRO_DELEGATE_FALSE=
31559fi
31560
cristy3ed852e2009-09-05 21:47:34 +000031561
31562
31563
31564
31565#
31566# Check for TIFF delegate library.
31567#
31568
31569# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031570if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031571 withval=$with_tiff; with_tiff=$withval
31572else
31573 with_tiff='yes'
31574fi
31575
31576
31577if test "$with_tiff" != 'yes'; then
31578 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31579fi
31580
31581have_tiff='no'
31582TIFF_LIBS=''
31583if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31585$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031587$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31589$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031590 failed=0
31591 passed=0
cristy8b350f62009-11-15 23:12:43 +000031592 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031593if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031594 passed=`expr $passed + 1`
31595else
31596 failed=`expr $failed + 1`
31597fi
31598
31599
cristy8b350f62009-11-15 23:12:43 +000031600 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031601if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031602 passed=`expr $passed + 1`
31603else
31604 failed=`expr $failed + 1`
31605fi
31606
31607
cristy8b350f62009-11-15 23:12:43 +000031608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031609$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031610if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031611 $as_echo_n "(cached) " >&6
31612else
31613 ac_check_lib_save_LIBS=$LIBS
31614LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031616/* end confdefs.h. */
31617
31618/* Override any GCC internal prototype to avoid an error.
31619 Use char because int might match the return type of a GCC
31620 builtin and then its argument prototype would still apply. */
31621#ifdef __cplusplus
31622extern "C"
31623#endif
31624char TIFFOpen ();
31625int
31626main ()
31627{
31628return TIFFOpen ();
31629 ;
31630 return 0;
31631}
31632_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031633if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031634 ac_cv_lib_tiff_TIFFOpen=yes
31635else
cristy8b350f62009-11-15 23:12:43 +000031636 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031637fi
cristy8b350f62009-11-15 23:12:43 +000031638rm -f core conftest.err conftest.$ac_objext \
31639 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031640LIBS=$ac_check_lib_save_LIBS
31641fi
cristy8b350f62009-11-15 23:12:43 +000031642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031643$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031644if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031645 passed=`expr $passed + 1`
31646else
31647 failed=`expr $failed + 1`
31648fi
31649
cristy8b350f62009-11-15 23:12:43 +000031650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031651$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031652if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031653 $as_echo_n "(cached) " >&6
31654else
31655 ac_check_lib_save_LIBS=$LIBS
31656LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031658/* end confdefs.h. */
31659
31660/* Override any GCC internal prototype to avoid an error.
31661 Use char because int might match the return type of a GCC
31662 builtin and then its argument prototype would still apply. */
31663#ifdef __cplusplus
31664extern "C"
31665#endif
31666char TIFFClientOpen ();
31667int
31668main ()
31669{
31670return TIFFClientOpen ();
31671 ;
31672 return 0;
31673}
31674_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031675if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031676 ac_cv_lib_tiff_TIFFClientOpen=yes
31677else
cristy8b350f62009-11-15 23:12:43 +000031678 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031679fi
cristy8b350f62009-11-15 23:12:43 +000031680rm -f core conftest.err conftest.$ac_objext \
31681 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031682LIBS=$ac_check_lib_save_LIBS
31683fi
cristy8b350f62009-11-15 23:12:43 +000031684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031685$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031686if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031687 passed=`expr $passed + 1`
31688else
31689 failed=`expr $failed + 1`
31690fi
31691
cristy8b350f62009-11-15 23:12:43 +000031692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031693$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031694if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031695 $as_echo_n "(cached) " >&6
31696else
31697 ac_check_lib_save_LIBS=$LIBS
31698LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031700/* end confdefs.h. */
31701
31702/* Override any GCC internal prototype to avoid an error.
31703 Use char because int might match the return type of a GCC
31704 builtin and then its argument prototype would still apply. */
31705#ifdef __cplusplus
31706extern "C"
31707#endif
31708char TIFFIsByteSwapped ();
31709int
31710main ()
31711{
31712return TIFFIsByteSwapped ();
31713 ;
31714 return 0;
31715}
31716_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031717if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031718 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31719else
cristy8b350f62009-11-15 23:12:43 +000031720 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031721fi
cristy8b350f62009-11-15 23:12:43 +000031722rm -f core conftest.err conftest.$ac_objext \
31723 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031724LIBS=$ac_check_lib_save_LIBS
31725fi
cristy8b350f62009-11-15 23:12:43 +000031726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031727$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031728if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031729 passed=`expr $passed + 1`
31730else
31731 failed=`expr $failed + 1`
31732fi
31733
cristy8b350f62009-11-15 23:12:43 +000031734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031735$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031736if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031737 $as_echo_n "(cached) " >&6
31738else
31739 ac_check_lib_save_LIBS=$LIBS
31740LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031742/* end confdefs.h. */
31743
31744/* Override any GCC internal prototype to avoid an error.
31745 Use char because int might match the return type of a GCC
31746 builtin and then its argument prototype would still apply. */
31747#ifdef __cplusplus
31748extern "C"
31749#endif
31750char TIFFReadRGBATile ();
31751int
31752main ()
31753{
31754return TIFFReadRGBATile ();
31755 ;
31756 return 0;
31757}
31758_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031759if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031760 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31761else
cristy8b350f62009-11-15 23:12:43 +000031762 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031763fi
cristy8b350f62009-11-15 23:12:43 +000031764rm -f core conftest.err conftest.$ac_objext \
31765 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031766LIBS=$ac_check_lib_save_LIBS
31767fi
cristy8b350f62009-11-15 23:12:43 +000031768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031769$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031770if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031771 passed=`expr $passed + 1`
31772else
31773 failed=`expr $failed + 1`
31774fi
31775
cristy8b350f62009-11-15 23:12:43 +000031776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031777$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031778if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031779 $as_echo_n "(cached) " >&6
31780else
31781 ac_check_lib_save_LIBS=$LIBS
31782LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031784/* end confdefs.h. */
31785
31786/* Override any GCC internal prototype to avoid an error.
31787 Use char because int might match the return type of a GCC
31788 builtin and then its argument prototype would still apply. */
31789#ifdef __cplusplus
31790extern "C"
31791#endif
31792char TIFFReadRGBAStrip ();
31793int
31794main ()
31795{
31796return TIFFReadRGBAStrip ();
31797 ;
31798 return 0;
31799}
31800_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031801if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031802 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31803else
cristy8b350f62009-11-15 23:12:43 +000031804 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031805fi
cristy8b350f62009-11-15 23:12:43 +000031806rm -f core conftest.err conftest.$ac_objext \
31807 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031808LIBS=$ac_check_lib_save_LIBS
31809fi
cristy8b350f62009-11-15 23:12:43 +000031810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031811$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031812if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031813 passed=`expr $passed + 1`
31814else
31815 failed=`expr $failed + 1`
31816fi
31817
cristy8b350f62009-11-15 23:12:43 +000031818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031819$as_echo_n "checking if TIFF package is complete... " >&6; }
31820 if test $passed -gt 0; then
31821 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31823$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031824 have_tiff='no (failed tests)'
31825 else
31826 TIFF_LIBS='-ltiff'
31827 LIBS="$TIFF_LIBS $LIBS"
31828
cristy8b350f62009-11-15 23:12:43 +000031829$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031830
cristyad38abe2012-12-23 23:03:21 +000031831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31832$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031833 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031834 for ac_header in tiffconf.h
31835do :
31836 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031837if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031838 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031839#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031840_ACEOF
31841
31842fi
31843
31844done
31845
cristy8b350f62009-11-15 23:12:43 +000031846 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031847 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31848 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31849 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031850do :
31851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31852ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031853if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031854 cat >>confdefs.h <<_ACEOF
31855#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31856_ACEOF
31857
31858fi
31859done
31860
31861 fi
31862 else
cristyad38abe2012-12-23 23:03:21 +000031863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31864$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031865 fi
31866fi
cristy73bd4a52010-10-05 11:24:23 +000031867 if test "$have_tiff" = 'yes'; then
31868 TIFF_DELEGATE_TRUE=
31869 TIFF_DELEGATE_FALSE='#'
31870else
31871 TIFF_DELEGATE_TRUE='#'
31872 TIFF_DELEGATE_FALSE=
31873fi
31874
cristy3ed852e2009-09-05 21:47:34 +000031875
31876
31877
31878#
cristyb1860752011-03-14 00:27:46 +000031879# Check for WEBP delegate library.
31880#
31881
31882# Check whether --with-webp was given.
31883if test "${with_webp+set}" = set; then :
31884 withval=$with_webp; with_webp=$withval
31885else
31886 with_webp='yes'
31887fi
31888
31889
31890if test "$with_webp" != 'yes'; then
31891 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31892fi
31893
31894have_webp='no'
31895WEBP_LIBS=''
31896if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31898$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31900$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31902$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031903 failed=0
31904 passed=0
31905 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31906if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31907 passed=`expr $passed + 1`
31908else
31909 failed=`expr $failed + 1`
31910fi
31911
31912
cristy6d670312013-03-22 23:23:01 +000031913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31914$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31915if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031916 $as_echo_n "(cached) " >&6
31917else
31918 ac_check_lib_save_LIBS=$LIBS
31919LIBS="-lwebp $LIBS"
31920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31921/* end confdefs.h. */
31922
31923/* Override any GCC internal prototype to avoid an error.
31924 Use char because int might match the return type of a GCC
31925 builtin and then its argument prototype would still apply. */
31926#ifdef __cplusplus
31927extern "C"
31928#endif
cristy6d670312013-03-22 23:23:01 +000031929char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031930int
31931main ()
31932{
cristy6d670312013-03-22 23:23:01 +000031933return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031934 ;
31935 return 0;
31936}
31937_ACEOF
31938if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031939 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031940else
cristy6d670312013-03-22 23:23:01 +000031941 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031942fi
31943rm -f core conftest.err conftest.$ac_objext \
31944 conftest$ac_exeext conftest.$ac_ext
31945LIBS=$ac_check_lib_save_LIBS
31946fi
cristy6d670312013-03-22 23:23:01 +000031947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31948$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31949if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031950 passed=`expr $passed + 1`
31951else
31952 failed=`expr $failed + 1`
31953fi
31954
31955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31956$as_echo_n "checking if WEBP package is complete... " >&6; }
31957 if test $passed -gt 0; then
31958 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31960$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031961 have_webp='no (failed tests)'
31962 else
31963 WEBP_LIBS='-lwebp'
31964 LIBS="$WEBP_LIBS $LIBS"
31965
31966$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31967
cristyad38abe2012-12-23 23:03:21 +000031968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31969$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031970 have_webp='yes'
31971 fi
31972 else
cristyad38abe2012-12-23 23:03:21 +000031973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31974$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031975 fi
31976fi
31977 if test "$have_webp" = 'yes'; then
31978 WEBP_DELEGATE_TRUE=
31979 WEBP_DELEGATE_FALSE='#'
31980else
31981 WEBP_DELEGATE_TRUE='#'
31982 WEBP_DELEGATE_FALSE=
31983fi
31984
31985
31986
31987
31988#
cristy3ed852e2009-09-05 21:47:34 +000031989# Set Windows font directory.
31990#
31991
31992# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031993if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031994 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31995else
31996 with_windows_font_dir=''
31997fi
31998
31999if test "$with_windows_font_dir" != '' ; then
32000 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32001fi
32002
32003
32004#
32005# Check for WMF delegate library.
32006#
32007
32008# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032009if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032010 withval=$with_wmf; with_wmf=$withval
32011else
cristyfc3d0222012-02-07 15:05:57 +000032012 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032013fi
32014
32015
32016if test "$with_wmf" != 'yes'; then
32017 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32018fi
32019
32020have_wmf='no'
32021WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032022WMF_LIBS_DEPS=''
32023OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032024if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32026$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032028$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32030$as_echo "" >&6; }
32031 have_libwmf='no'
32032 have_libwmflite='no'
32033 have_libwmf_ipa_h='no'
32034
32035 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32036"
32037if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32038 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032039fi
32040
32041
cristy03f7cf92011-12-15 01:40:41 +000032042 if test "$have_libwmf_ipa_h" = 'yes'; then
32043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32044$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32045if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032046 $as_echo_n "(cached) " >&6
32047else
32048 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032049LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032051/* end confdefs.h. */
32052
32053/* Override any GCC internal prototype to avoid an error.
32054 Use char because int might match the return type of a GCC
32055 builtin and then its argument prototype would still apply. */
32056#ifdef __cplusplus
32057extern "C"
32058#endif
cristy03f7cf92011-12-15 01:40:41 +000032059char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032060int
32061main ()
32062{
cristy03f7cf92011-12-15 01:40:41 +000032063return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032064 ;
32065 return 0;
32066}
32067_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032068if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032069 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032070else
cristy03f7cf92011-12-15 01:40:41 +000032071 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032072fi
cristy8b350f62009-11-15 23:12:43 +000032073rm -f core conftest.err conftest.$ac_objext \
32074 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032075LIBS=$ac_check_lib_save_LIBS
32076fi
cristy03f7cf92011-12-15 01:40:41 +000032077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32078$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32079if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32080 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032081fi
32082
cristy03f7cf92011-12-15 01:40:41 +000032083 if test "$have_libwmflite" = 'yes'; then
32084
32085$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32086
32087 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032088 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032089 have_wmf='yes'
32090 else
32091 WMF_LIBS_DEPS=''
32092 WMF_CONFIG_LIBS=`libwmf-config --libs`
32093 for lib in xml2 expat freetype jpeg png z; do
32094 testlib="-l${lib}"
32095 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32096 done
32097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32098$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32099if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32100 $as_echo_n "(cached) " >&6
32101else
32102 ac_check_lib_save_LIBS=$LIBS
32103LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32105/* end confdefs.h. */
32106
32107/* Override any GCC internal prototype to avoid an error.
32108 Use char because int might match the return type of a GCC
32109 builtin and then its argument prototype would still apply. */
32110#ifdef __cplusplus
32111extern "C"
32112#endif
32113char wmf_api_create ();
32114int
32115main ()
32116{
32117return wmf_api_create ();
32118 ;
32119 return 0;
32120}
32121_ACEOF
32122if ac_fn_c_try_link "$LINENO"; then :
32123 ac_cv_lib_wmf_wmf_api_create=yes
32124else
32125 ac_cv_lib_wmf_wmf_api_create=no
32126fi
32127rm -f core conftest.err conftest.$ac_objext \
32128 conftest$ac_exeext conftest.$ac_ext
32129LIBS=$ac_check_lib_save_LIBS
32130fi
32131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32132$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32133if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32134 have_libwmf='yes'
32135fi
32136
32137 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032138
cristy8b350f62009-11-15 23:12:43 +000032139$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032140
cristy03f7cf92011-12-15 01:40:41 +000032141 WMF_LIBS='-lwmf'
32142 LIBS="$WMF_LIBS $LIBS"
32143 have_wmf='yes'
32144 else
32145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32146$as_echo "no -- some components failed test" >&6; }
32147 have_wmf='no (failed tests)'
32148 have_wmflite='no (failed tests)'
32149 LIBS="$OLIBS"
32150 WMF_LIBS=''
32151 fi
glennrp33e524b2011-08-24 17:41:57 +000032152 fi
cristy03f7cf92011-12-15 01:40:41 +000032153 fi
32154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32155$as_echo_n "checking if WMF package is complete... " >&6; }
32156 if test "$have_wmf" = 'yes'; then
32157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32158$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032159 else
cristy03f7cf92011-12-15 01:40:41 +000032160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32161$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032162 fi
cristy3ed852e2009-09-05 21:47:34 +000032163fi
cristy73bd4a52010-10-05 11:24:23 +000032164 if test "$have_wmf" = 'yes'; then
32165 WMF_DELEGATE_TRUE=
32166 WMF_DELEGATE_FALSE='#'
32167else
32168 WMF_DELEGATE_TRUE='#'
32169 WMF_DELEGATE_FALSE=
32170fi
32171
cristy3ed852e2009-09-05 21:47:34 +000032172
32173
32174
cristy81beccd2011-10-03 18:17:24 +000032175
32176
cristy3ed852e2009-09-05 21:47:34 +000032177#
32178# Check for XML delegate library.
32179#
32180
32181# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032182if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032183 withval=$with_xml; with_xml=$withval
32184else
cristyfc3d0222012-02-07 15:05:57 +000032185 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032186fi
32187
32188
cristy81beccd2011-10-03 18:17:24 +000032189if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032190 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32191fi
32192
cristy81beccd2011-10-03 18:17:24 +000032193have_xml='no'
32194XML_LIBS=''
32195if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32197$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32199$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32201$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032202 PERSIST_LDFLAGS=$LDFLAGS
32203 PERSIST_CPPFLAGS=$CPPFLAGS
32204 xml2_config=''
32205 # Extract the first word of "xml2-config", so it can be a program name with args.
32206set dummy xml2-config; ac_word=$2
32207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32208$as_echo_n "checking for $ac_word... " >&6; }
32209if ${ac_cv_path_xml2_config+:} false; then :
32210 $as_echo_n "(cached) " >&6
32211else
32212 case $xml2_config in
32213 [\\/]* | ?:[\\/]*)
32214 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32215 ;;
32216 *)
32217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32218for as_dir in $PATH
32219do
32220 IFS=$as_save_IFS
32221 test -z "$as_dir" && as_dir=.
32222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032224 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32226 break 2
32227 fi
32228done
32229 done
32230IFS=$as_save_IFS
32231
32232 ;;
32233esac
32234fi
32235xml2_config=$ac_cv_path_xml2_config
32236if test -n "$xml2_config"; then
32237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32238$as_echo "$xml2_config" >&6; }
32239else
32240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32241$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032242fi
32243
cristy81beccd2011-10-03 18:17:24 +000032244 if test -n "$xml2_config"; then
32245 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32246 # the shared library installed under /usr/lib, whereas the package
32247 # installs itself under $prefix/libxml and $prefix/lib.
32248 xml2_prefix=`xml2-config --prefix`
32249 if test -d "${xml2_prefix}/include/libxml2"; then
32250 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32251 fi
32252 if test "${xml2_prefix}" != '/usr'; then
32253 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32254 fi
32255 fi
32256 failed=0
32257 passed=0
32258 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32259if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32260 passed=`expr $passed + 1`
32261else
32262 failed=`expr $failed + 1`
32263fi
32264
32265
32266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32267$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32268if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32269 $as_echo_n "(cached) " >&6
32270else
32271 ac_check_lib_save_LIBS=$LIBS
32272LIBS="-lxml2 $LIBS"
32273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32274/* end confdefs.h. */
32275
32276/* Override any GCC internal prototype to avoid an error.
32277 Use char because int might match the return type of a GCC
32278 builtin and then its argument prototype would still apply. */
32279#ifdef __cplusplus
32280extern "C"
32281#endif
32282char xmlSAXVersion ();
32283int
32284main ()
32285{
32286return xmlSAXVersion ();
32287 ;
32288 return 0;
32289}
32290_ACEOF
32291if ac_fn_c_try_link "$LINENO"; then :
32292 ac_cv_lib_xml2_xmlSAXVersion=yes
32293else
32294 ac_cv_lib_xml2_xmlSAXVersion=no
32295fi
32296rm -f core conftest.err conftest.$ac_objext \
32297 conftest$ac_exeext conftest.$ac_ext
32298LIBS=$ac_check_lib_save_LIBS
32299fi
32300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32301$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32302if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32303 passed=`expr $passed + 1`
32304else
32305 failed=`expr $failed + 1`
32306fi
32307
32308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32309$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32310if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32311 $as_echo_n "(cached) " >&6
32312else
32313 ac_check_lib_save_LIBS=$LIBS
32314LIBS="-lxml2 $LIBS"
32315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32316/* end confdefs.h. */
32317
32318/* Override any GCC internal prototype to avoid an error.
32319 Use char because int might match the return type of a GCC
32320 builtin and then its argument prototype would still apply. */
32321#ifdef __cplusplus
32322extern "C"
32323#endif
32324char xmlParseChunk ();
32325int
32326main ()
32327{
32328return xmlParseChunk ();
32329 ;
32330 return 0;
32331}
32332_ACEOF
32333if ac_fn_c_try_link "$LINENO"; then :
32334 ac_cv_lib_xml2_xmlParseChunk=yes
32335else
32336 ac_cv_lib_xml2_xmlParseChunk=no
32337fi
32338rm -f core conftest.err conftest.$ac_objext \
32339 conftest$ac_exeext conftest.$ac_ext
32340LIBS=$ac_check_lib_save_LIBS
32341fi
32342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32343$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32344if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32345 passed=`expr $passed + 1`
32346else
32347 failed=`expr $failed + 1`
32348fi
32349
32350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32351$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32352if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32353 $as_echo_n "(cached) " >&6
32354else
32355 ac_check_lib_save_LIBS=$LIBS
32356LIBS="-lxml2 $LIBS"
32357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32358/* end confdefs.h. */
32359
32360/* Override any GCC internal prototype to avoid an error.
32361 Use char because int might match the return type of a GCC
32362 builtin and then its argument prototype would still apply. */
32363#ifdef __cplusplus
32364extern "C"
32365#endif
32366char xmlCreatePushParserCtxt ();
32367int
32368main ()
32369{
32370return xmlCreatePushParserCtxt ();
32371 ;
32372 return 0;
32373}
32374_ACEOF
32375if ac_fn_c_try_link "$LINENO"; then :
32376 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32377else
32378 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32379fi
32380rm -f core conftest.err conftest.$ac_objext \
32381 conftest$ac_exeext conftest.$ac_ext
32382LIBS=$ac_check_lib_save_LIBS
32383fi
32384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32385$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32386if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32387 passed=`expr $passed + 1`
32388else
32389 failed=`expr $failed + 1`
32390fi
32391
32392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32393$as_echo_n "checking if XML package is complete... " >&6; }
32394 if test $passed -gt 0; then
32395 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32397$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032398 have_xml='no (failed tests)'
32399 LDFLAGS="$PERSIST_LDFLAGS"
32400 CPPFLAGS="$PERSIST_CPPFLAGS"
32401 else
32402 XML_LIBS='-lxml2'
32403 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032404
cristy8b350f62009-11-15 23:12:43 +000032405$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032406
cristyad38abe2012-12-23 23:03:21 +000032407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32408$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032409 have_xml='yes'
32410 fi
32411 else
cristyad38abe2012-12-23 23:03:21 +000032412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32413$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032414 fi
32415fi
cristy73bd4a52010-10-05 11:24:23 +000032416 if test "$have_xml" = 'yes'; then
32417 XML_DELEGATE_TRUE=
32418 XML_DELEGATE_FALSE='#'
32419else
32420 XML_DELEGATE_TRUE='#'
32421 XML_DELEGATE_FALSE=
32422fi
32423
cristy3ed852e2009-09-05 21:47:34 +000032424
32425
32426
32427# Substitute compiler name to build/link PerlMagick
32428#
32429
32430
32431#
32432# Configure install Paths
32433#
cristy7def36a2011-10-28 19:04:41 +000032434
cristy2a11bef2011-10-28 18:33:11 +000032435# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032436INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032437INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32438DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032439case "${build_os}" in
32440 mingw* )
32441 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32442 ;;
32443esac
32444
32445cat >>confdefs.h <<_ACEOF
32446#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32447_ACEOF
32448
32449
cristy3ed852e2009-09-05 21:47:34 +000032450
cristye52f12f2012-12-31 15:32:36 +000032451# Path to ImageMagick header files (arch part)
32452INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32453DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32454case "${build_os}" in
32455 mingw* )
32456 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32457 ;;
32458esac
32459
32460cat >>confdefs.h <<_ACEOF
32461#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32462_ACEOF
32463
32464
32465
cristy3ed852e2009-09-05 21:47:34 +000032466# Subdirectory under lib to place ImageMagick lib files
32467LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32468
32469cat >>confdefs.h <<_ACEOF
32470#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32471_ACEOF
32472
32473
32474# Path to ImageMagick bin directory
32475EXECUTABLE_PATH="${BIN_DIR}"
32476DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32477case "${build_os}" in
32478 mingw* )
32479 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32480 ;;
32481esac
32482
32483cat >>confdefs.h <<_ACEOF
32484#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32485_ACEOF
32486
32487
32488
32489# Path to ImageMagick lib
32490LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32491DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32492case "${build_os}" in
32493 mingw* )
32494 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32495 ;;
32496esac
32497
32498cat >>confdefs.h <<_ACEOF
32499#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32500_ACEOF
32501
32502
32503
cristy3ed852e2009-09-05 21:47:34 +000032504#
cristy8d0ff762013-03-10 20:33:28 +000032505# path to local binaries
32506if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32507 LIB_BIN_BASEDIRNAME="bin"
32508fi
32509
32510cat >>confdefs.h <<_ACEOF
32511#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32512_ACEOF
32513
32514
32515
32516if test "x$LIB_BIN_DIR" = "x"; then
32517 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32518fi
32519
32520
32521LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32522
32523LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32524
32525
32526#
cristy01ff9f32012-12-01 18:15:29 +000032527# path to modules lib
32528if test "x$MODULES_BASEDIRNAME" = "x"; then
32529 MODULES_BASEDIRNAME="modules"
32530fi
cristy3ed852e2009-09-05 21:47:34 +000032531
32532cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032533#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032534_ACEOF
32535
cristy01ff9f32012-12-01 18:15:29 +000032536
32537
32538if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032539 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32540else
cristy3ed852e2009-09-05 21:47:34 +000032541
32542cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032543#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032544_ACEOF
32545
cristycf4a3c22012-12-02 21:47:25 +000032546fi
cristy01ff9f32012-12-01 18:15:29 +000032547
32548
cristy371d4812012-12-01 19:48:10 +000032549MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032550
32551MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32552
32553
32554#
32555# path to coders lib
32556if test "x$CODER_DIRNAME" = "x"; then
32557 CODER_DIRNAME="coders"
32558fi
32559
32560cat >>confdefs.h <<_ACEOF
32561#define CODER_DIRNAME "$CODER_DIRNAME"
32562_ACEOF
32563
32564
32565
cristy371d4812012-12-01 19:48:10 +000032566CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032567CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032568
32569
32570#
32571# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032572#
32573# path to coders lib
32574if test "x$FILTER_DIRNAME" = "x"; then
32575 FILTER_DIRNAME="filters"
32576fi
cristy3ed852e2009-09-05 21:47:34 +000032577
32578cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032579#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032580_ACEOF
32581
cristy3ed852e2009-09-05 21:47:34 +000032582
cristy3ed852e2009-09-05 21:47:34 +000032583
cristy371d4812012-12-01 19:48:10 +000032584FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032585FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032586
32587
32588#
32589# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032590DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032591DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32592DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032593case "${build_os}" in
32594 mingw* )
32595 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32596 ;;
32597esac
32598
32599cat >>confdefs.h <<_ACEOF
32600#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32601_ACEOF
32602
32603
32604
cristy2a11bef2011-10-28 18:33:11 +000032605# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032606CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032607
32608cat >>confdefs.h <<_ACEOF
32609#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32610_ACEOF
32611
cristy7def36a2011-10-28 19:04:41 +000032612CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032613DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32614case "${build_os}" in
32615 mingw* )
32616 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32617 ;;
32618esac
32619
32620cat >>confdefs.h <<_ACEOF
32621#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32622_ACEOF
32623
32624
32625
cristy2a11bef2011-10-28 18:33:11 +000032626# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032627SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032628
32629cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032630#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032631_ACEOF
32632
cristy670aa3c2011-11-03 00:54:00 +000032633SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032634DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032635case "${build_os}" in
32636 mingw* )
cristy4f820712011-04-01 12:35:43 +000032637 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032638 ;;
32639esac
32640
32641cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032642#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032643_ACEOF
32644
32645
32646
cristy54378032012-12-04 15:52:20 +000032647#
32648# Subdirectory to place architecture-dependent configuration files.
32649if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32650 SHAREARCH_BASEDIRNAME="config"
32651fi
cristy670aa3c2011-11-03 00:54:00 +000032652
32653cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032654#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032655_ACEOF
32656
cristy54378032012-12-04 15:52:20 +000032657
32658
32659if test "x$SHAREARCH_DIRNAME" = "x"; then
32660 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32661else
cristy670aa3c2011-11-03 00:54:00 +000032662
32663cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032664#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032665_ACEOF
32666
cristy54378032012-12-04 15:52:20 +000032667fi
32668
32669
32670SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32671
32672SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032673
32674
cristy3ed852e2009-09-05 21:47:34 +000032675#
32676# program_transform_name is formed for use in a Makefile, so create a
32677# modified version for use in a shell script.
32678configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32679
32680# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32682$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032684$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32686$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032687AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032688BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032689BZIPDelegateDefault='bzip2'
32690BrowseDelegateDefault='xdg-open'
32691CGMDecodeDelegateDefault='ralcgm'
32692CatDelegateDefault='cat'
32693DNGDecodeDelegateDefault='ufraw-batch'
32694GVCDecodeDelegateDefault='dot'
32695DVIDecodeDelegateDefault='dvips'
32696EchoDelegateDefault='echo'
32697EditorDelegateDefault='xterm'
32698FIGDecodeDelegateDefault='fig2dev'
32699ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32700DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32701MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32702GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032703HPGLDecodeDelegateDefault='hp2xx'
32704HTMLDecodeDelegateDefault='html2ps'
32705ILBMDecodeDelegateDefault='ilbmtoppm'
32706ILBMEncodeDelegateDefault='ppmtoilbm'
32707LPDelegateDefault='lp'
32708LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032709LaunchDelegateDefault='gimp'
32710MANDelegateDefault='groff'
32711MPEGDecodeDelegateDefault='ffmpeg'
32712MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032713MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032714MVDelegateDefault='mv'
32715PCLDelegateDefault='pcl6'
32716PGPDecodeDelegateDefault='pgpv'
32717POVDelegateDefault='povray'
32718if test "$native_win32_build" = 'yes'; then
32719 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032720elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032721 PSDelegateDefault='gsc'
32722else
32723 PSDelegateDefault='gs'
32724fi
32725RLEEncodeDelegateDefault='rawtorle'
32726RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032727RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032728SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032729SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032730TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032731UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032732WMFDecodeDelegateDefault='wmf2eps'
32733WWWDecodeDelegateDefault='curl'
32734XPSDelegateDefault='gxps'
32735ZipDelegateDefault='gzip'
32736
32737# Search for delegates
32738# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32739set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032742if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032743 $as_echo_n "(cached) " >&6
32744else
32745 case $AutotraceDecodeDelegate in
32746 [\\/]* | ?:[\\/]*)
32747 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32748 ;;
32749 *)
32750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32751for as_dir in $PATH
32752do
32753 IFS=$as_save_IFS
32754 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032757 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032759 break 2
32760 fi
32761done
cristy8b350f62009-11-15 23:12:43 +000032762 done
cristy3ed852e2009-09-05 21:47:34 +000032763IFS=$as_save_IFS
32764
32765 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32766 ;;
32767esac
32768fi
32769AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32770if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032772$as_echo "$AutotraceDecodeDelegate" >&6; }
32773else
cristy8b350f62009-11-15 23:12:43 +000032774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032775$as_echo "no" >&6; }
32776fi
32777
32778
cristy3ed852e2009-09-05 21:47:34 +000032779# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32780set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032783if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032784 $as_echo_n "(cached) " >&6
32785else
32786 case $BlenderDecodeDelegate in
32787 [\\/]* | ?:[\\/]*)
32788 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32789 ;;
32790 *)
32791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32792for as_dir in $PATH
32793do
32794 IFS=$as_save_IFS
32795 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032798 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032800 break 2
32801 fi
32802done
cristy8b350f62009-11-15 23:12:43 +000032803 done
cristy3ed852e2009-09-05 21:47:34 +000032804IFS=$as_save_IFS
32805
32806 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32807 ;;
32808esac
32809fi
32810BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32811if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032813$as_echo "$BlenderDecodeDelegate" >&6; }
32814else
cristy8b350f62009-11-15 23:12:43 +000032815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032816$as_echo "no" >&6; }
32817fi
32818
32819
32820# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32821set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032823$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032824if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032825 $as_echo_n "(cached) " >&6
32826else
32827 case $BZIPDelegate in
32828 [\\/]* | ?:[\\/]*)
32829 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32830 ;;
32831 *)
32832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32833for as_dir in $PATH
32834do
32835 IFS=$as_save_IFS
32836 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032837 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032839 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032841 break 2
32842 fi
32843done
cristy8b350f62009-11-15 23:12:43 +000032844 done
cristy3ed852e2009-09-05 21:47:34 +000032845IFS=$as_save_IFS
32846
32847 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32848 ;;
32849esac
32850fi
32851BZIPDelegate=$ac_cv_path_BZIPDelegate
32852if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032854$as_echo "$BZIPDelegate" >&6; }
32855else
cristy8b350f62009-11-15 23:12:43 +000032856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032857$as_echo "no" >&6; }
32858fi
32859
32860
cristyc59f0e72012-08-27 12:59:33 +000032861for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32862do
32863 # Extract the first word of "$ac_prog", so it can be a program name with args.
32864set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032866$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032867if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032868 $as_echo_n "(cached) " >&6
32869else
32870 case $BrowseDelegate in
32871 [\\/]* | ?:[\\/]*)
32872 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32873 ;;
32874 *)
32875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32876for as_dir in $PATH
32877do
32878 IFS=$as_save_IFS
32879 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032880 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032882 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032884 break 2
32885 fi
32886done
cristy8b350f62009-11-15 23:12:43 +000032887 done
cristy3ed852e2009-09-05 21:47:34 +000032888IFS=$as_save_IFS
32889
cristy3ed852e2009-09-05 21:47:34 +000032890 ;;
32891esac
32892fi
32893BrowseDelegate=$ac_cv_path_BrowseDelegate
32894if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032896$as_echo "$BrowseDelegate" >&6; }
32897else
cristy8b350f62009-11-15 23:12:43 +000032898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032899$as_echo "no" >&6; }
32900fi
32901
32902
cristyc59f0e72012-08-27 12:59:33 +000032903 test -n "$BrowseDelegate" && break
32904done
32905test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32906
cristy3ed852e2009-09-05 21:47:34 +000032907# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32908set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032910$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032911if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032912 $as_echo_n "(cached) " >&6
32913else
32914 case $CGMDecodeDelegate in
32915 [\\/]* | ?:[\\/]*)
32916 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32917 ;;
32918 *)
32919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32920for as_dir in $PATH
32921do
32922 IFS=$as_save_IFS
32923 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032924 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032926 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032928 break 2
32929 fi
32930done
cristy8b350f62009-11-15 23:12:43 +000032931 done
cristy3ed852e2009-09-05 21:47:34 +000032932IFS=$as_save_IFS
32933
32934 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32935 ;;
32936esac
32937fi
32938CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32939if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032941$as_echo "$CGMDecodeDelegate" >&6; }
32942else
cristy8b350f62009-11-15 23:12:43 +000032943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032944$as_echo "no" >&6; }
32945fi
32946
32947
32948# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32949set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032951$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032952if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032953 $as_echo_n "(cached) " >&6
32954else
32955 case $CatDelegate in
32956 [\\/]* | ?:[\\/]*)
32957 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32958 ;;
32959 *)
32960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32961for as_dir in $PATH
32962do
32963 IFS=$as_save_IFS
32964 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032965 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032967 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032969 break 2
32970 fi
32971done
cristy8b350f62009-11-15 23:12:43 +000032972 done
cristy3ed852e2009-09-05 21:47:34 +000032973IFS=$as_save_IFS
32974
32975 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32976 ;;
32977esac
32978fi
32979CatDelegate=$ac_cv_path_CatDelegate
32980if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032982$as_echo "$CatDelegate" >&6; }
32983else
cristy8b350f62009-11-15 23:12:43 +000032984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032985$as_echo "no" >&6; }
32986fi
32987
32988
32989# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32990set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032992$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032993if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032994 $as_echo_n "(cached) " >&6
32995else
32996 case $DNGDecodeDelegate in
32997 [\\/]* | ?:[\\/]*)
32998 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32999 ;;
33000 *)
33001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33002for as_dir in $PATH
33003do
33004 IFS=$as_save_IFS
33005 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033006 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033008 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033010 break 2
33011 fi
33012done
cristy8b350f62009-11-15 23:12:43 +000033013 done
cristy3ed852e2009-09-05 21:47:34 +000033014IFS=$as_save_IFS
33015
33016 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33017 ;;
33018esac
33019fi
33020DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33021if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033023$as_echo "$DNGDecodeDelegate" >&6; }
33024else
cristy8b350f62009-11-15 23:12:43 +000033025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033026$as_echo "no" >&6; }
33027fi
33028
33029
33030# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33031set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033033$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033034if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033035 $as_echo_n "(cached) " >&6
33036else
33037 case $GVCDecodeDelegate in
33038 [\\/]* | ?:[\\/]*)
33039 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33040 ;;
33041 *)
33042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33043for as_dir in $PATH
33044do
33045 IFS=$as_save_IFS
33046 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033047 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033049 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033051 break 2
33052 fi
33053done
cristy8b350f62009-11-15 23:12:43 +000033054 done
cristy3ed852e2009-09-05 21:47:34 +000033055IFS=$as_save_IFS
33056
33057 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33058 ;;
33059esac
33060fi
33061GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33062if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033064$as_echo "$GVCDecodeDelegate" >&6; }
33065else
cristy8b350f62009-11-15 23:12:43 +000033066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033067$as_echo "no" >&6; }
33068fi
33069
33070
33071# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33072set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033074$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033075if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033076 $as_echo_n "(cached) " >&6
33077else
33078 case $DVIDecodeDelegate in
33079 [\\/]* | ?:[\\/]*)
33080 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33081 ;;
33082 *)
33083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33084for as_dir in $PATH
33085do
33086 IFS=$as_save_IFS
33087 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033088 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033090 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033092 break 2
33093 fi
33094done
cristy8b350f62009-11-15 23:12:43 +000033095 done
cristy3ed852e2009-09-05 21:47:34 +000033096IFS=$as_save_IFS
33097
33098 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33099 ;;
33100esac
33101fi
33102DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33103if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033105$as_echo "$DVIDecodeDelegate" >&6; }
33106else
cristy8b350f62009-11-15 23:12:43 +000033107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033108$as_echo "no" >&6; }
33109fi
33110
33111
33112# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33113set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033115$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033116if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033117 $as_echo_n "(cached) " >&6
33118else
33119 case $EchoDelegate in
33120 [\\/]* | ?:[\\/]*)
33121 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33122 ;;
33123 *)
33124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33125for as_dir in $PATH
33126do
33127 IFS=$as_save_IFS
33128 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033129 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033131 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033133 break 2
33134 fi
33135done
cristy8b350f62009-11-15 23:12:43 +000033136 done
cristy3ed852e2009-09-05 21:47:34 +000033137IFS=$as_save_IFS
33138
33139 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33140 ;;
33141esac
33142fi
33143EchoDelegate=$ac_cv_path_EchoDelegate
33144if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033146$as_echo "$EchoDelegate" >&6; }
33147else
cristy8b350f62009-11-15 23:12:43 +000033148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033149$as_echo "no" >&6; }
33150fi
33151
33152
33153# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33154set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033156$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033157if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033158 $as_echo_n "(cached) " >&6
33159else
33160 case $EditorDelegate in
33161 [\\/]* | ?:[\\/]*)
33162 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33163 ;;
33164 *)
33165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33166for as_dir in $PATH
33167do
33168 IFS=$as_save_IFS
33169 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033170 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033172 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033174 break 2
33175 fi
33176done
cristy8b350f62009-11-15 23:12:43 +000033177 done
cristy3ed852e2009-09-05 21:47:34 +000033178IFS=$as_save_IFS
33179
33180 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33181 ;;
33182esac
33183fi
33184EditorDelegate=$ac_cv_path_EditorDelegate
33185if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033187$as_echo "$EditorDelegate" >&6; }
33188else
cristy8b350f62009-11-15 23:12:43 +000033189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033190$as_echo "no" >&6; }
33191fi
33192
33193
33194# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33195set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033197$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033198if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033199 $as_echo_n "(cached) " >&6
33200else
33201 case $FIGDecodeDelegate in
33202 [\\/]* | ?:[\\/]*)
33203 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33204 ;;
33205 *)
33206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33207for as_dir in $PATH
33208do
33209 IFS=$as_save_IFS
33210 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033211 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033213 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033215 break 2
33216 fi
33217done
cristy8b350f62009-11-15 23:12:43 +000033218 done
cristy3ed852e2009-09-05 21:47:34 +000033219IFS=$as_save_IFS
33220
33221 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33222 ;;
33223esac
33224fi
33225FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33226if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033228$as_echo "$FIGDecodeDelegate" >&6; }
33229else
cristy8b350f62009-11-15 23:12:43 +000033230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033231$as_echo "no" >&6; }
33232fi
33233
33234
33235# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33236set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033238$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033239if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033240 $as_echo_n "(cached) " >&6
33241else
33242 case $ConvertDelegate in
33243 [\\/]* | ?:[\\/]*)
33244 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33245 ;;
33246 *)
33247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33248for as_dir in $PATH
33249do
33250 IFS=$as_save_IFS
33251 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033252 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033254 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033256 break 2
33257 fi
33258done
cristy8b350f62009-11-15 23:12:43 +000033259 done
cristy3ed852e2009-09-05 21:47:34 +000033260IFS=$as_save_IFS
33261
33262 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33263 ;;
33264esac
33265fi
33266ConvertDelegate=$ac_cv_path_ConvertDelegate
33267if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033269$as_echo "$ConvertDelegate" >&6; }
33270else
cristy8b350f62009-11-15 23:12:43 +000033271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033272$as_echo "no" >&6; }
33273fi
33274
33275
33276# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33277set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033279$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033280if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033281 $as_echo_n "(cached) " >&6
33282else
33283 case $DisplayDelegate in
33284 [\\/]* | ?:[\\/]*)
33285 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33286 ;;
33287 *)
33288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33289for as_dir in $PATH
33290do
33291 IFS=$as_save_IFS
33292 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033293 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033295 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033297 break 2
33298 fi
33299done
cristy8b350f62009-11-15 23:12:43 +000033300 done
cristy3ed852e2009-09-05 21:47:34 +000033301IFS=$as_save_IFS
33302
33303 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33304 ;;
33305esac
33306fi
33307DisplayDelegate=$ac_cv_path_DisplayDelegate
33308if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033310$as_echo "$DisplayDelegate" >&6; }
33311else
cristy8b350f62009-11-15 23:12:43 +000033312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033313$as_echo "no" >&6; }
33314fi
33315
33316
33317# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33318set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033320$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033321if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033322 $as_echo_n "(cached) " >&6
33323else
33324 case $MogrifyDelegate in
33325 [\\/]* | ?:[\\/]*)
33326 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33327 ;;
33328 *)
33329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33330for as_dir in $PATH
33331do
33332 IFS=$as_save_IFS
33333 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033334 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033336 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033338 break 2
33339 fi
33340done
cristy8b350f62009-11-15 23:12:43 +000033341 done
cristy3ed852e2009-09-05 21:47:34 +000033342IFS=$as_save_IFS
33343
33344 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33345 ;;
33346esac
33347fi
33348MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33349if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033351$as_echo "$MogrifyDelegate" >&6; }
33352else
cristy8b350f62009-11-15 23:12:43 +000033353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033354$as_echo "no" >&6; }
33355fi
33356
33357
33358# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33359set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033361$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033362if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033363 $as_echo_n "(cached) " >&6
33364else
33365 case $GnuplotDecodeDelegate in
33366 [\\/]* | ?:[\\/]*)
33367 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33368 ;;
33369 *)
33370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33371for as_dir in $PATH
33372do
33373 IFS=$as_save_IFS
33374 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033375 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033377 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033379 break 2
33380 fi
33381done
cristy8b350f62009-11-15 23:12:43 +000033382 done
cristy3ed852e2009-09-05 21:47:34 +000033383IFS=$as_save_IFS
33384
33385 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33386 ;;
33387esac
33388fi
33389GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33390if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033392$as_echo "$GnuplotDecodeDelegate" >&6; }
33393else
cristy8b350f62009-11-15 23:12:43 +000033394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033395$as_echo "no" >&6; }
33396fi
33397
33398
cristy3ed852e2009-09-05 21:47:34 +000033399# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33400set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033402$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033403if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033404 $as_echo_n "(cached) " >&6
33405else
33406 case $HPGLDecodeDelegate in
33407 [\\/]* | ?:[\\/]*)
33408 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33409 ;;
33410 *)
33411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33412for as_dir in $PATH
33413do
33414 IFS=$as_save_IFS
33415 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033416 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033418 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033420 break 2
33421 fi
33422done
cristy8b350f62009-11-15 23:12:43 +000033423 done
cristy3ed852e2009-09-05 21:47:34 +000033424IFS=$as_save_IFS
33425
33426 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33427 ;;
33428esac
33429fi
33430HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33431if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033433$as_echo "$HPGLDecodeDelegate" >&6; }
33434else
cristy8b350f62009-11-15 23:12:43 +000033435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033436$as_echo "no" >&6; }
33437fi
33438
33439
33440# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33441set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033443$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033444if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033445 $as_echo_n "(cached) " >&6
33446else
33447 case $HTMLDecodeDelegate in
33448 [\\/]* | ?:[\\/]*)
33449 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33450 ;;
33451 *)
33452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33453for as_dir in $PATH
33454do
33455 IFS=$as_save_IFS
33456 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033457 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033459 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033461 break 2
33462 fi
33463done
cristy8b350f62009-11-15 23:12:43 +000033464 done
cristy3ed852e2009-09-05 21:47:34 +000033465IFS=$as_save_IFS
33466
33467 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33468 ;;
33469esac
33470fi
33471HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33472if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033474$as_echo "$HTMLDecodeDelegate" >&6; }
33475else
cristy8b350f62009-11-15 23:12:43 +000033476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033477$as_echo "no" >&6; }
33478fi
33479
33480
33481# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33482set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033484$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033485if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033486 $as_echo_n "(cached) " >&6
33487else
33488 case $ILBMDecodeDelegate in
33489 [\\/]* | ?:[\\/]*)
33490 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33491 ;;
33492 *)
33493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33494for as_dir in $PATH
33495do
33496 IFS=$as_save_IFS
33497 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033498 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033500 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033502 break 2
33503 fi
33504done
cristy8b350f62009-11-15 23:12:43 +000033505 done
cristy3ed852e2009-09-05 21:47:34 +000033506IFS=$as_save_IFS
33507
33508 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33509 ;;
33510esac
33511fi
33512ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33513if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033515$as_echo "$ILBMDecodeDelegate" >&6; }
33516else
cristy8b350f62009-11-15 23:12:43 +000033517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033518$as_echo "no" >&6; }
33519fi
33520
33521
33522# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33523set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033525$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033526if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033527 $as_echo_n "(cached) " >&6
33528else
33529 case $ILBMEncodeDelegate in
33530 [\\/]* | ?:[\\/]*)
33531 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33532 ;;
33533 *)
33534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33535for as_dir in $PATH
33536do
33537 IFS=$as_save_IFS
33538 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033539 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033541 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033543 break 2
33544 fi
33545done
cristy8b350f62009-11-15 23:12:43 +000033546 done
cristy3ed852e2009-09-05 21:47:34 +000033547IFS=$as_save_IFS
33548
33549 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33550 ;;
33551esac
33552fi
33553ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33554if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033556$as_echo "$ILBMEncodeDelegate" >&6; }
33557else
cristy8b350f62009-11-15 23:12:43 +000033558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033559$as_echo "no" >&6; }
33560fi
33561
33562
33563# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33564set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033566$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033567if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033568 $as_echo_n "(cached) " >&6
33569else
33570 case $LPDelegate in
33571 [\\/]* | ?:[\\/]*)
33572 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33573 ;;
33574 *)
33575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33576for as_dir in $PATH
33577do
33578 IFS=$as_save_IFS
33579 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033580 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033582 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033584 break 2
33585 fi
33586done
cristy8b350f62009-11-15 23:12:43 +000033587 done
cristy3ed852e2009-09-05 21:47:34 +000033588IFS=$as_save_IFS
33589
33590 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33591 ;;
33592esac
33593fi
33594LPDelegate=$ac_cv_path_LPDelegate
33595if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033597$as_echo "$LPDelegate" >&6; }
33598else
cristy8b350f62009-11-15 23:12:43 +000033599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033600$as_echo "no" >&6; }
33601fi
33602
33603
33604# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33605set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033607$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033608if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033609 $as_echo_n "(cached) " >&6
33610else
33611 case $LPRDelegate in
33612 [\\/]* | ?:[\\/]*)
33613 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33614 ;;
33615 *)
33616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33617for as_dir in $PATH
33618do
33619 IFS=$as_save_IFS
33620 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033621 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033623 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033625 break 2
33626 fi
33627done
cristy8b350f62009-11-15 23:12:43 +000033628 done
cristy3ed852e2009-09-05 21:47:34 +000033629IFS=$as_save_IFS
33630
33631 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33632 ;;
33633esac
33634fi
33635LPRDelegate=$ac_cv_path_LPRDelegate
33636if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033638$as_echo "$LPRDelegate" >&6; }
33639else
cristy8b350f62009-11-15 23:12:43 +000033640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033641$as_echo "no" >&6; }
33642fi
33643
33644
cristy3ed852e2009-09-05 21:47:34 +000033645# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33646set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033648$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033649if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033650 $as_echo_n "(cached) " >&6
33651else
33652 case $LaunchDelegate in
33653 [\\/]* | ?:[\\/]*)
33654 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33655 ;;
33656 *)
33657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33658for as_dir in $PATH
33659do
33660 IFS=$as_save_IFS
33661 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033662 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033664 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033666 break 2
33667 fi
33668done
cristy8b350f62009-11-15 23:12:43 +000033669 done
cristy3ed852e2009-09-05 21:47:34 +000033670IFS=$as_save_IFS
33671
33672 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33673 ;;
33674esac
33675fi
33676LaunchDelegate=$ac_cv_path_LaunchDelegate
33677if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033679$as_echo "$LaunchDelegate" >&6; }
33680else
cristy8b350f62009-11-15 23:12:43 +000033681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033682$as_echo "no" >&6; }
33683fi
33684
33685
33686# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33687set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033689$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033690if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033691 $as_echo_n "(cached) " >&6
33692else
33693 case $MANDelegate in
33694 [\\/]* | ?:[\\/]*)
33695 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33696 ;;
33697 *)
33698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33699for as_dir in $PATH
33700do
33701 IFS=$as_save_IFS
33702 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033703 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033705 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033707 break 2
33708 fi
33709done
cristy8b350f62009-11-15 23:12:43 +000033710 done
cristy3ed852e2009-09-05 21:47:34 +000033711IFS=$as_save_IFS
33712
33713 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33714 ;;
33715esac
33716fi
33717MANDelegate=$ac_cv_path_MANDelegate
33718if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033720$as_echo "$MANDelegate" >&6; }
33721else
cristy8b350f62009-11-15 23:12:43 +000033722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033723$as_echo "no" >&6; }
33724fi
33725
33726
33727# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33728set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033730$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033731if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033732 $as_echo_n "(cached) " >&6
33733else
33734 case $MPEGDecodeDelegate in
33735 [\\/]* | ?:[\\/]*)
33736 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33737 ;;
33738 *)
33739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33740for as_dir in $PATH
33741do
33742 IFS=$as_save_IFS
33743 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033746 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033748 break 2
33749 fi
33750done
cristy8b350f62009-11-15 23:12:43 +000033751 done
cristy3ed852e2009-09-05 21:47:34 +000033752IFS=$as_save_IFS
33753
33754 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33755 ;;
33756esac
33757fi
33758MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33759if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033761$as_echo "$MPEGDecodeDelegate" >&6; }
33762else
cristy8b350f62009-11-15 23:12:43 +000033763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033764$as_echo "no" >&6; }
33765fi
33766
33767
33768# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33769set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033771$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033772if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033773 $as_echo_n "(cached) " >&6
33774else
33775 case $MPEGEncodeDelegate in
33776 [\\/]* | ?:[\\/]*)
33777 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33778 ;;
33779 *)
33780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33781for as_dir in $PATH
33782do
33783 IFS=$as_save_IFS
33784 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033785 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033787 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033789 break 2
33790 fi
33791done
cristy8b350f62009-11-15 23:12:43 +000033792 done
cristy3ed852e2009-09-05 21:47:34 +000033793IFS=$as_save_IFS
33794
33795 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33796 ;;
33797esac
33798fi
33799MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33800if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033802$as_echo "$MPEGEncodeDelegate" >&6; }
33803else
cristy8b350f62009-11-15 23:12:43 +000033804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033805$as_echo "no" >&6; }
33806fi
33807
33808
cristy935c86e2010-06-05 23:50:07 +000033809# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33810set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33812$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033813if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033814 $as_echo_n "(cached) " >&6
33815else
33816 case $MrSIDDecodeDelegate in
33817 [\\/]* | ?:[\\/]*)
33818 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33819 ;;
33820 *)
33821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33822for as_dir in $PATH
33823do
33824 IFS=$as_save_IFS
33825 test -z "$as_dir" && as_dir=.
33826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033828 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33830 break 2
33831 fi
33832done
33833 done
33834IFS=$as_save_IFS
33835
33836 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33837 ;;
33838esac
33839fi
33840MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33841if test -n "$MrSIDDecodeDelegate"; then
33842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33843$as_echo "$MrSIDDecodeDelegate" >&6; }
33844else
33845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33846$as_echo "no" >&6; }
33847fi
33848
33849
cristy3ed852e2009-09-05 21:47:34 +000033850# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33851set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033853$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033854if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033855 $as_echo_n "(cached) " >&6
33856else
33857 case $MVDelegate in
33858 [\\/]* | ?:[\\/]*)
33859 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33860 ;;
33861 *)
33862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33863for as_dir in $PATH
33864do
33865 IFS=$as_save_IFS
33866 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033867 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033869 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033871 break 2
33872 fi
33873done
cristy8b350f62009-11-15 23:12:43 +000033874 done
cristy3ed852e2009-09-05 21:47:34 +000033875IFS=$as_save_IFS
33876
33877 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33878 ;;
33879esac
33880fi
33881MVDelegate=$ac_cv_path_MVDelegate
33882if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033884$as_echo "$MVDelegate" >&6; }
33885else
cristy8b350f62009-11-15 23:12:43 +000033886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033887$as_echo "no" >&6; }
33888fi
33889
33890
33891# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33892set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033894$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033895if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033896 $as_echo_n "(cached) " >&6
33897else
33898 case $PCLDelegate in
33899 [\\/]* | ?:[\\/]*)
33900 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33901 ;;
33902 *)
33903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33904for as_dir in $PATH
33905do
33906 IFS=$as_save_IFS
33907 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033908 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033910 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033912 break 2
33913 fi
33914done
cristy8b350f62009-11-15 23:12:43 +000033915 done
cristy3ed852e2009-09-05 21:47:34 +000033916IFS=$as_save_IFS
33917
33918 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33919 ;;
33920esac
33921fi
33922PCLDelegate=$ac_cv_path_PCLDelegate
33923if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033925$as_echo "$PCLDelegate" >&6; }
33926else
cristy8b350f62009-11-15 23:12:43 +000033927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033928$as_echo "no" >&6; }
33929fi
33930
33931
33932# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33933set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033935$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033936if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033937 $as_echo_n "(cached) " >&6
33938else
33939 case $PGPDecodeDelegate in
33940 [\\/]* | ?:[\\/]*)
33941 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33942 ;;
33943 *)
33944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33945for as_dir in $PATH
33946do
33947 IFS=$as_save_IFS
33948 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033949 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033951 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033953 break 2
33954 fi
33955done
cristy8b350f62009-11-15 23:12:43 +000033956 done
cristy3ed852e2009-09-05 21:47:34 +000033957IFS=$as_save_IFS
33958
33959 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33960 ;;
33961esac
33962fi
33963PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33964if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033966$as_echo "$PGPDecodeDelegate" >&6; }
33967else
cristy8b350f62009-11-15 23:12:43 +000033968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033969$as_echo "no" >&6; }
33970fi
33971
33972
33973# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33974set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033976$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033977if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033978 $as_echo_n "(cached) " >&6
33979else
33980 case $POVDelegate in
33981 [\\/]* | ?:[\\/]*)
33982 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33983 ;;
33984 *)
33985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33986for as_dir in $PATH
33987do
33988 IFS=$as_save_IFS
33989 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033990 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033992 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033994 break 2
33995 fi
33996done
cristy8b350f62009-11-15 23:12:43 +000033997 done
cristy3ed852e2009-09-05 21:47:34 +000033998IFS=$as_save_IFS
33999
34000 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34001 ;;
34002esac
34003fi
34004POVDelegate=$ac_cv_path_POVDelegate
34005if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034007$as_echo "$POVDelegate" >&6; }
34008else
cristy8b350f62009-11-15 23:12:43 +000034009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034010$as_echo "no" >&6; }
34011fi
34012
34013
34014for ac_prog in gsx gsc "$PSDelegateDefault"
34015do
34016 # Extract the first word of "$ac_prog", so it can be a program name with args.
34017set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034019$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034020if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034021 $as_echo_n "(cached) " >&6
34022else
34023 case $PSDelegate in
34024 [\\/]* | ?:[\\/]*)
34025 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34026 ;;
34027 *)
34028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34029for as_dir in $PATH
34030do
34031 IFS=$as_save_IFS
34032 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034033 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034035 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034037 break 2
34038 fi
34039done
cristy8b350f62009-11-15 23:12:43 +000034040 done
cristy3ed852e2009-09-05 21:47:34 +000034041IFS=$as_save_IFS
34042
34043 ;;
34044esac
34045fi
34046PSDelegate=$ac_cv_path_PSDelegate
34047if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034049$as_echo "$PSDelegate" >&6; }
34050else
cristy8b350f62009-11-15 23:12:43 +000034051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034052$as_echo "no" >&6; }
34053fi
34054
34055
34056 test -n "$PSDelegate" && break
34057done
34058test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34059
34060# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34061set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034063$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034064if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034065 $as_echo_n "(cached) " >&6
34066else
34067 case $RLEEncodeDelegate in
34068 [\\/]* | ?:[\\/]*)
34069 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34070 ;;
34071 *)
34072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34073for as_dir in $PATH
34074do
34075 IFS=$as_save_IFS
34076 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034077 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034079 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034081 break 2
34082 fi
34083done
cristy8b350f62009-11-15 23:12:43 +000034084 done
cristy3ed852e2009-09-05 21:47:34 +000034085IFS=$as_save_IFS
34086
34087 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34088 ;;
34089esac
34090fi
34091RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34092if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034094$as_echo "$RLEEncodeDelegate" >&6; }
34095else
cristy8b350f62009-11-15 23:12:43 +000034096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034097$as_echo "no" >&6; }
34098fi
34099
34100
34101# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34102set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034104$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034105if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034106 $as_echo_n "(cached) " >&6
34107else
34108 case $RMDelegate in
34109 [\\/]* | ?:[\\/]*)
34110 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34111 ;;
34112 *)
34113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34114for as_dir in $PATH
34115do
34116 IFS=$as_save_IFS
34117 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034118 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034120 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034122 break 2
34123 fi
34124done
cristy8b350f62009-11-15 23:12:43 +000034125 done
cristy3ed852e2009-09-05 21:47:34 +000034126IFS=$as_save_IFS
34127
34128 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34129 ;;
34130esac
34131fi
34132RMDelegate=$ac_cv_path_RMDelegate
34133if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034135$as_echo "$RMDelegate" >&6; }
34136else
cristy8b350f62009-11-15 23:12:43 +000034137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034138$as_echo "no" >&6; }
34139fi
34140
34141
cristy4689cf02010-02-17 21:15:45 +000034142# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34143set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34145$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034146if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034147 $as_echo_n "(cached) " >&6
34148else
34149 case $RSVGDecodeDelegate in
34150 [\\/]* | ?:[\\/]*)
34151 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34152 ;;
34153 *)
34154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34155for as_dir in $PATH
34156do
34157 IFS=$as_save_IFS
34158 test -z "$as_dir" && as_dir=.
34159 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034161 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34163 break 2
34164 fi
34165done
34166 done
34167IFS=$as_save_IFS
34168
34169 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34170 ;;
34171esac
34172fi
34173RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34174if test -n "$RSVGDecodeDelegate"; then
34175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34176$as_echo "$RSVGDecodeDelegate" >&6; }
34177else
34178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34179$as_echo "no" >&6; }
34180fi
34181
34182
cristy3ed852e2009-09-05 21:47:34 +000034183# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34184set dummy "$SCANDecodeDelegateDefault"; 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_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034188 $as_echo_n "(cached) " >&6
34189else
34190 case $SCANDecodeDelegate in
34191 [\\/]* | ?:[\\/]*)
34192 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34193 ;;
34194 *)
34195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34196for as_dir in $PATH
34197do
34198 IFS=$as_save_IFS
34199 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034200 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034202 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034204 break 2
34205 fi
34206done
cristy8b350f62009-11-15 23:12:43 +000034207 done
cristy3ed852e2009-09-05 21:47:34 +000034208IFS=$as_save_IFS
34209
34210 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34211 ;;
34212esac
34213fi
34214SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34215if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034217$as_echo "$SCANDecodeDelegate" >&6; }
34218else
cristy8b350f62009-11-15 23:12:43 +000034219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034220$as_echo "no" >&6; }
34221fi
34222
34223
cristyec6934f2012-08-14 18:38:40 +000034224# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34225set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34227$as_echo_n "checking for $ac_word... " >&6; }
34228if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34229 $as_echo_n "(cached) " >&6
34230else
34231 case $SVGDecodeDelegate in
34232 [\\/]* | ?:[\\/]*)
34233 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34234 ;;
34235 *)
34236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34237for as_dir in $PATH
34238do
34239 IFS=$as_save_IFS
34240 test -z "$as_dir" && as_dir=.
34241 for ac_exec_ext in '' $ac_executable_extensions; do
34242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34243 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34245 break 2
34246 fi
34247done
34248 done
34249IFS=$as_save_IFS
34250
34251 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34252 ;;
34253esac
34254fi
34255SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34256if test -n "$SVGDecodeDelegate"; then
34257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34258$as_echo "$SVGDecodeDelegate" >&6; }
34259else
34260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34261$as_echo "no" >&6; }
34262fi
34263
34264
cristy3ed852e2009-09-05 21:47:34 +000034265# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34266set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034268$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034269if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034270 $as_echo_n "(cached) " >&6
34271else
34272 case $TXTDelegate in
34273 [\\/]* | ?:[\\/]*)
34274 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34275 ;;
34276 *)
34277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34278for as_dir in $PATH
34279do
34280 IFS=$as_save_IFS
34281 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034282 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034284 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034286 break 2
34287 fi
34288done
cristy8b350f62009-11-15 23:12:43 +000034289 done
cristy3ed852e2009-09-05 21:47:34 +000034290IFS=$as_save_IFS
34291
34292 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34293 ;;
34294esac
34295fi
34296TXTDelegate=$ac_cv_path_TXTDelegate
34297if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034299$as_echo "$TXTDelegate" >&6; }
34300else
cristy8b350f62009-11-15 23:12:43 +000034301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034302$as_echo "no" >&6; }
34303fi
34304
34305
cristy5ac9ac82010-07-29 13:24:24 +000034306# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34307set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34309$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034310if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034311 $as_echo_n "(cached) " >&6
34312else
34313 case $UniconvertorDelegate in
34314 [\\/]* | ?:[\\/]*)
34315 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34316 ;;
34317 *)
34318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34319for as_dir in $PATH
34320do
34321 IFS=$as_save_IFS
34322 test -z "$as_dir" && as_dir=.
34323 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034325 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34327 break 2
34328 fi
34329done
34330 done
34331IFS=$as_save_IFS
34332
34333 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34334 ;;
34335esac
34336fi
34337UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34338if test -n "$UniconvertorDelegate"; then
34339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34340$as_echo "$UniconvertorDelegate" >&6; }
34341else
34342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34343$as_echo "no" >&6; }
34344fi
34345
34346
cristy3ed852e2009-09-05 21:47:34 +000034347# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34348set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034350$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034351if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034352 $as_echo_n "(cached) " >&6
34353else
34354 case $WMFDecodeDelegate in
34355 [\\/]* | ?:[\\/]*)
34356 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34357 ;;
34358 *)
34359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34360for as_dir in $PATH
34361do
34362 IFS=$as_save_IFS
34363 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034364 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034366 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034368 break 2
34369 fi
34370done
cristy8b350f62009-11-15 23:12:43 +000034371 done
cristy3ed852e2009-09-05 21:47:34 +000034372IFS=$as_save_IFS
34373
34374 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34375 ;;
34376esac
34377fi
34378WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34379if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034381$as_echo "$WMFDecodeDelegate" >&6; }
34382else
cristy8b350f62009-11-15 23:12:43 +000034383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034384$as_echo "no" >&6; }
34385fi
34386
34387
34388# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34389set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034391$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034392if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034393 $as_echo_n "(cached) " >&6
34394else
34395 case $WWWDecodeDelegate in
34396 [\\/]* | ?:[\\/]*)
34397 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34398 ;;
34399 *)
34400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34401for as_dir in $PATH
34402do
34403 IFS=$as_save_IFS
34404 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034405 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034407 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034409 break 2
34410 fi
34411done
cristy8b350f62009-11-15 23:12:43 +000034412 done
cristy3ed852e2009-09-05 21:47:34 +000034413IFS=$as_save_IFS
34414
34415 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34416 ;;
34417esac
34418fi
34419WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34420if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034422$as_echo "$WWWDecodeDelegate" >&6; }
34423else
cristy8b350f62009-11-15 23:12:43 +000034424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034425$as_echo "no" >&6; }
34426fi
34427
34428
34429# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34430set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034432$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034433if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034434 $as_echo_n "(cached) " >&6
34435else
34436 case $XPSDelegate in
34437 [\\/]* | ?:[\\/]*)
34438 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34439 ;;
34440 *)
34441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34442for as_dir in $PATH
34443do
34444 IFS=$as_save_IFS
34445 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034448 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034450 break 2
34451 fi
34452done
cristy8b350f62009-11-15 23:12:43 +000034453 done
cristy3ed852e2009-09-05 21:47:34 +000034454IFS=$as_save_IFS
34455
34456 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34457 ;;
34458esac
34459fi
34460XPSDelegate=$ac_cv_path_XPSDelegate
34461if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034463$as_echo "$XPSDelegate" >&6; }
34464else
cristy8b350f62009-11-15 23:12:43 +000034465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034466$as_echo "no" >&6; }
34467fi
34468
34469
34470# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34471set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034473$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034474if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034475 $as_echo_n "(cached) " >&6
34476else
34477 case $ZipDelegate in
34478 [\\/]* | ?:[\\/]*)
34479 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34480 ;;
34481 *)
34482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34483for as_dir in $PATH
34484do
34485 IFS=$as_save_IFS
34486 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034487 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034489 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034491 break 2
34492 fi
34493done
cristy8b350f62009-11-15 23:12:43 +000034494 done
cristy3ed852e2009-09-05 21:47:34 +000034495IFS=$as_save_IFS
34496
34497 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34498 ;;
34499esac
34500fi
34501ZipDelegate=$ac_cv_path_ZipDelegate
34502if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034504$as_echo "$ZipDelegate" >&6; }
34505else
cristy8b350f62009-11-15 23:12:43 +000034506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034507$as_echo "no" >&6; }
34508fi
34509
34510
34511
34512# Prefer lpr to lp; lp needs options tacked on.
34513if test "$LPRDelegate" != no; then
34514 PrintDelegate="$LPRDelegate"
34515else
34516 PrintDelegate="$LPDelegate -c -s"
34517fi
34518
34519
34520# Installed ImageMagick utiltity paths
34521ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34522DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34523MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34524
34525# Set delegate booleans
34526have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34527have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34528have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34529have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34530have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034531have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034532have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34533have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034534have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34535have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34536
34537#
34538# Test for font directories
34539#
34540type_include_files=''
34541
cristy430a7312010-01-21 20:44:04 +000034542# Dejavu fonts.
34543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34544$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34545dejavu_font_dir=''
34546if test "${with_dejavu_font_dir}" != 'default'; then
34547 dejavu_font_dir="${with_dejavu_font_dir}/"
34548else
34549 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34550 if test -f "${font_dir}DejaVuSerif.ttf"; then
34551 dejavu_font_dir="${font_dir}"
34552 break 1
34553 fi
34554 done
34555fi
34556if test "${dejavu_font_dir}x" != 'x'; then
34557 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34559$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034560else
cristyad38abe2012-12-23 23:03:21 +000034561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34562$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034563fi
34564
34565
cristy3ed852e2009-09-05 21:47:34 +000034566# Windows
34567windows_font_dir=''
34568if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34569 windows_font_dir="${with_windows_font_dir}/"
34570fi
cristy430a7312010-01-21 20:44:04 +000034571if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034572 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34573 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34574 fi
34575 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34576 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34577 fi
34578 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34579 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34580 fi
34581fi
cristy430a7312010-01-21 20:44:04 +000034582if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034583 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34584fi
34585
34586
34587# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034589$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34590ghostscript_font_dir=''
34591if test "${with_gs_font_dir}" != 'default'; then
34592 ghostscript_font_dir="${with_gs_font_dir}/"
34593else
34594 if test "${native_win32_build}" = 'yes'; then
34595 # Native Windows Build
34596 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34597 if test -f "${font_dir}a010013l.pfb"; then
34598 ghostscript_font_dir="$font_dir"
34599 break 1
34600 fi
34601 done
34602 if test "${PSDelegate}" != 'gswin32c'; then
34603 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34604 fi
34605 else
34606 # Linux / Mac OS X / Unix Build
34607 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
34608 if test -f "${font_dir}a010013l.pfb"; then
34609 ghostscript_font_dir="${font_dir}"
34610 break 1
34611 fi
34612 done
34613 if test "${ghostscript_font_dir}x" = 'x'; then
34614 if test "$PSDelegate" != 'gs'; then
34615 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34616 fi
34617 fi
34618 fi
34619fi
34620if test "${ghostscript_font_dir}x" != 'x'; then
34621 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34623$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034624else
cristyad38abe2012-12-23 23:03:21 +000034625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34626$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034627fi
34628
34629case "${build_os}" in
34630 mingw* )
34631 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34632 ;;
34633esac
34634
34635
34636
34637#
34638# Handle case where user doesn't want frozen paths
34639#
34640if test "$with_frozenpaths" != 'yes'; then
34641 # Re-set delegate definitions to default (no paths)
34642 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034643 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34644 BZIPDelegate="$BZIPDelegateDefault"
34645 BrowseDelegate="$BrowseDelegateDefault"
34646 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34647 CatDelegate="$CatDelegateDefault"
34648 ConvertDelegate="$ConvertDelegateDefault"
34649 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34650 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34651 EchoDelegate="$EchoDelegateDefault"
34652 EditorDelegate="$EditorDelegateDefault"
34653 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34654 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34655 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34656 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34657 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34658 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34659 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034660 LaunchDelegate="$LaunchDelegateDefault"
34661 MANDelegate="$MANDelegateDefault"
34662 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34663 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034664 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034665 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34666 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034667 PCLDelegate="$PCLDelegateDefault"
34668 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34669 POVDelegate="$POVDelegateDefault"
34670 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034671 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34672 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034673 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034674 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034675 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034676 ShowImageDelegate="$ShowImageDelegateDefault"
34677 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034678 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034679 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34680 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34681 XPSDelegate="$XPSDelegateDefault"
34682 ZipDelegate="$ZipDelegateDefault"
34683fi
34684
34685# Delegate substitutions
34686
34687
34688
34689
34690
34691
34692
34693
34694
34695
34696
34697
34698
34699
34700
34701
34702
34703
34704
34705
34706
34707
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717
34718
34719
34720
34721
34722
34723
34724
34725
cristy3ed852e2009-09-05 21:47:34 +000034726#
34727# RPM support.
34728#
34729RPM=''
34730for ac_prog in gnutar gtar tar
34731do
34732 # Extract the first word of "$ac_prog", so it can be a program name with args.
34733set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034735$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034736if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034737 $as_echo_n "(cached) " >&6
34738else
34739 if test -n "$TAR"; then
34740 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34741else
34742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34743for as_dir in $PATH
34744do
34745 IFS=$as_save_IFS
34746 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034747 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034749 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034751 break 2
34752 fi
34753done
cristy8b350f62009-11-15 23:12:43 +000034754 done
cristy3ed852e2009-09-05 21:47:34 +000034755IFS=$as_save_IFS
34756
34757fi
34758fi
34759TAR=$ac_cv_prog_TAR
34760if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034762$as_echo "$TAR" >&6; }
34763else
cristy8b350f62009-11-15 23:12:43 +000034764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034765$as_echo "no" >&6; }
34766fi
34767
34768
34769 test -n "$TAR" && break
34770done
34771
34772for ac_prog in perl
34773do
34774 # Extract the first word of "$ac_prog", so it can be a program name with args.
34775set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034777$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034778if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034779 $as_echo_n "(cached) " >&6
34780else
34781 if test -n "$PERL"; then
34782 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34783else
34784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34785for as_dir in $PATH
34786do
34787 IFS=$as_save_IFS
34788 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034789 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034791 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034793 break 2
34794 fi
34795done
cristy8b350f62009-11-15 23:12:43 +000034796 done
cristy3ed852e2009-09-05 21:47:34 +000034797IFS=$as_save_IFS
34798
34799fi
34800fi
34801PERL=$ac_cv_prog_PERL
34802if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034804$as_echo "$PERL" >&6; }
34805else
cristy8b350f62009-11-15 23:12:43 +000034806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034807$as_echo "no" >&6; }
34808fi
34809
34810
34811 test -n "$PERL" && break
34812done
34813
34814for ac_prog in rpmbuild rpm
34815do
34816 # Extract the first word of "$ac_prog", so it can be a program name with args.
34817set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034819$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034820if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034821 $as_echo_n "(cached) " >&6
34822else
34823 if test -n "$RPM"; then
34824 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34825else
34826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34827for as_dir in $PATH
34828do
34829 IFS=$as_save_IFS
34830 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034831 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034833 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034835 break 2
34836 fi
34837done
cristy8b350f62009-11-15 23:12:43 +000034838 done
cristy3ed852e2009-09-05 21:47:34 +000034839IFS=$as_save_IFS
34840
34841fi
34842fi
34843RPM=$ac_cv_prog_RPM
34844if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034846$as_echo "$RPM" >&6; }
34847else
cristy8b350f62009-11-15 23:12:43 +000034848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034849$as_echo "no" >&6; }
34850fi
34851
34852
34853 test -n "$RPM" && break
34854done
34855
34856
cristy73bd4a52010-10-05 11:24:23 +000034857ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34858
34859
34860AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34861
34862
34863AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34864
34865
34866AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34867
34868
34869 if test "x$RPM" != "x" ; then
34870 RPM_DELEGATE_TRUE=
34871 RPM_DELEGATE_FALSE='#'
34872else
34873 RPM_DELEGATE_TRUE='#'
34874 RPM_DELEGATE_FALSE=
34875fi
34876
cristy3ed852e2009-09-05 21:47:34 +000034877
34878#
34879# 7ZIP support (http://p7zip.sourceforge.net/)
34880#
34881P7ZIP=''
34882for ac_prog in 7za
34883do
34884 # Extract the first word of "$ac_prog", so it can be a program name with args.
34885set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034887$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034888if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034889 $as_echo_n "(cached) " >&6
34890else
34891 if test -n "$P7ZIP"; then
34892 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34893else
34894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34895for as_dir in $PATH
34896do
34897 IFS=$as_save_IFS
34898 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034899 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034901 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034903 break 2
34904 fi
34905done
cristy8b350f62009-11-15 23:12:43 +000034906 done
cristy3ed852e2009-09-05 21:47:34 +000034907IFS=$as_save_IFS
34908
34909fi
34910fi
34911P7ZIP=$ac_cv_prog_P7ZIP
34912if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034914$as_echo "$P7ZIP" >&6; }
34915else
cristy8b350f62009-11-15 23:12:43 +000034916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034917$as_echo "no" >&6; }
34918fi
34919
34920
34921 test -n "$P7ZIP" && break
34922done
34923
34924
cristy73bd4a52010-10-05 11:24:23 +000034925 if test "x$P7ZIP" != "x" ; then
34926 P7ZIP_DELEGATE_TRUE=
34927 P7ZIP_DELEGATE_FALSE='#'
34928else
34929 P7ZIP_DELEGATE_TRUE='#'
34930 P7ZIP_DELEGATE_FALSE=
34931fi
34932
cristy3ed852e2009-09-05 21:47:34 +000034933
34934#
34935# ZIP support (http://www.info-zip.org/Zip.html)
34936#
34937ZIP=''
34938for ac_prog in zip
34939do
34940 # Extract the first word of "$ac_prog", so it can be a program name with args.
34941set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034943$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034944if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034945 $as_echo_n "(cached) " >&6
34946else
34947 if test -n "$ZIP"; then
34948 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34949else
34950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34951for as_dir in $PATH
34952do
34953 IFS=$as_save_IFS
34954 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034955 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034957 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034959 break 2
34960 fi
34961done
cristy8b350f62009-11-15 23:12:43 +000034962 done
cristy3ed852e2009-09-05 21:47:34 +000034963IFS=$as_save_IFS
34964
34965fi
34966fi
34967ZIP=$ac_cv_prog_ZIP
34968if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034970$as_echo "$ZIP" >&6; }
34971else
cristy8b350f62009-11-15 23:12:43 +000034972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034973$as_echo "no" >&6; }
34974fi
34975
34976
34977 test -n "$ZIP" && break
34978done
34979
34980
cristy73bd4a52010-10-05 11:24:23 +000034981 if test "x$ZIP" != "x" ; then
34982 ZIP_DELEGATE_TRUE=
34983 ZIP_DELEGATE_FALSE='#'
34984else
34985 ZIP_DELEGATE_TRUE='#'
34986 ZIP_DELEGATE_FALSE=
34987fi
34988
cristy3ed852e2009-09-05 21:47:34 +000034989
34990#
34991# GhostPCL related configuration.
34992#
34993PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034994PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034995PCLMonoDevice=pbmraw
34996if test -z "$PCLVersion"; then
34997 PCLVersion='unknown'
34998fi
34999if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35001$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035003$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35005$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035006 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035008$as_echo_n "checking for pcl color device... " >&6; }
35009 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35010 :
35011 else
35012 PCLColorDevice=ppmraw
35013 fi
cristyad38abe2012-12-23 23:03:21 +000035014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35015$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035016
35017 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035019$as_echo_n "checking for pcl CMYK device... " >&6; }
35020 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35021 :
35022 else
35023 PCLCMYKDevice=$PCLColorDevice
35024 fi
cristyad38abe2012-12-23 23:03:21 +000035025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35026$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035027
35028 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035030$as_echo_n "checking for pcl mono device... " >&6; }
35031 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35032 :
35033 else
35034 PCLMonoDevice=$PCLColorDevice
35035 fi
cristyad38abe2012-12-23 23:03:21 +000035036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35037$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035038fi
35039
35040
35041
35042
35043
35044
35045#
35046# GhostXPS related configuration.
35047#
35048XPSColorDevice=ppmraw
35049XPSCMYKDevice=bmpsep8
35050XPSMonoDevice=pbmraw
35051if test -z "$XPSVersion"; then
35052 XPSVersion='unknown'
35053fi
35054if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35056$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035058$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35060$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035061 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035063$as_echo_n "checking for xps color device... " >&6; }
35064 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35065 :
35066 else
35067 XPSColorDevice=ppmraw
35068 fi
cristyad38abe2012-12-23 23:03:21 +000035069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35070$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035071
35072 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035074$as_echo_n "checking for xps CMYK device... " >&6; }
35075 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35076 :
35077 else
35078 XPSCMYKDevice=$XPSColorDevice
35079 fi
cristyad38abe2012-12-23 23:03:21 +000035080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35081$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035082
35083 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035085$as_echo_n "checking for xps mono device... " >&6; }
35086 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35087 :
35088 else
35089 XPSMonoDevice=$XPSColorDevice
35090 fi
cristyad38abe2012-12-23 23:03:21 +000035091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35092$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035093fi
35094
35095
35096
35097
35098
35099
35100#
35101# Ghostscript related configuration.
35102#
cristya97426c2011-02-04 01:41:27 +000035103GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035104GSColorDevice=pnmraw
35105GSCMYKDevice=pam
35106GSMonoDevice=pbmraw
35107GSPDFDevice=pdfwrite
35108GSPSDevice=pswrite
35109GSEPSDevice=epswrite
35110GSVersion='unknown'
35111if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35113$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035115$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35117$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035119$as_echo_n "checking for Ghostscript version... " >&6; }
35120 if GSVersion=`$PSDelegate --version`; then
35121 :
35122 else
35123 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35124 fi
cristyad38abe2012-12-23 23:03:21 +000035125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35126$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035127
35128 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035130$as_echo_n "checking for gs alpha device... " >&6; }
35131 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35132 :
35133 else
35134 GSAlphaDevice=pnmraw
35135 fi
cristyad38abe2012-12-23 23:03:21 +000035136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35137$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035138
35139 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035141$as_echo_n "checking for gs color device... " >&6; }
35142 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35143 :
35144 else
35145 GSColorDevice=pnmraw
35146 fi
cristyad38abe2012-12-23 23:03:21 +000035147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35148$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035149
35150 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035152$as_echo_n "checking for gs CMYK device... " >&6; }
35153 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35154 :
35155 else
35156 GSCMYKDevice=bmpsep8
35157 fi
cristyad38abe2012-12-23 23:03:21 +000035158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35159$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035160
35161 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035163$as_echo_n "checking for gs mono device... " >&6; }
35164 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35165 :
35166 else
35167 GSMonoDevice=$GSColorDevice
35168 fi
cristyad38abe2012-12-23 23:03:21 +000035169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35170$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035171
35172 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035174$as_echo_n "checking for gs PDF writing device... " >&6; }
35175 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35176 :
35177 else
35178 GSPDFDevice=nodevice
35179 fi
cristyad38abe2012-12-23 23:03:21 +000035180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35181$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035182
35183 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035185$as_echo_n "checking for gs PS writing device... " >&6; }
35186 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35187 :
35188 else
35189 GSPSDevice=nodevice
35190 fi
cristyad38abe2012-12-23 23:03:21 +000035191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35192$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035193
35194 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035196$as_echo_n "checking for gs EPS writing device... " >&6; }
35197 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35198 :
35199 else
35200 GSEPSDevice=nodevice
35201 fi
cristyad38abe2012-12-23 23:03:21 +000035202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35203$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035204fi
35205
35206
35207
35208
35209
35210
35211
35212
35213
35214
35215#
35216# PerlMagick-related configuration
35217#
35218
35219# Look for PERL if PerlMagick requested
35220# If name/path of desired PERL interpreter is specified, look for that one first
35221have_perl='no'
35222if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35224$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035226$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35228$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035229 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035231$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035232if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035233 $as_echo_n "(cached) " >&6
35234else
35235 ac_cv_path_PERL="$with_perl"
35236fi
cristy8b350f62009-11-15 23:12:43 +000035237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035238$as_echo "$ac_cv_path_PERL" >&6; };
35239 PERL=$ac_cv_path_PERL
35240 have_perl="$ac_cv_path_PERL"
35241 else
35242 for ac_prog in perl perl5
35243do
35244 # Extract the first word of "$ac_prog", so it can be a program name with args.
35245set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035247$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035248if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035249 $as_echo_n "(cached) " >&6
35250else
35251 case $PERL in
35252 [\\/]* | ?:[\\/]*)
35253 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35254 ;;
35255 *)
35256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35257for as_dir in $PATH
35258do
35259 IFS=$as_save_IFS
35260 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035261 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035263 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035265 break 2
35266 fi
35267done
cristy8b350f62009-11-15 23:12:43 +000035268 done
cristy3ed852e2009-09-05 21:47:34 +000035269IFS=$as_save_IFS
35270
35271 ;;
35272esac
35273fi
35274PERL=$ac_cv_path_PERL
35275if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035277$as_echo "$PERL" >&6; }
35278else
cristy8b350f62009-11-15 23:12:43 +000035279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035280$as_echo "no" >&6; }
35281fi
35282
35283
35284 test -n "$PERL" && break
35285done
35286 if test "$ac_cv_path_PERL"; then
35287 have_perl="$ac_cv_path_PERL"
35288 fi
35289 fi
35290fi
35291
cristy949301e2010-01-06 01:38:40 +000035292if test "$with_perl" != 'yes' ; then
35293 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35294fi
35295
35296PERL_SUPPORTS_DESTDIR='no'
35297
cristy3ed852e2009-09-05 21:47:34 +000035298with_perl_static='no'
35299with_perl_dynamic='no'
35300if test "$have_perl" != 'no'; then
35301 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35302 with_perl_static='yes'
35303 fi
35304 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35305 with_perl_dynamic='yes'
35306 fi
35307 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035308
35309
35310
35311
35312 if test -n "$PERL"; then :
35313
35314 ax_perl_version="5.8.1"
35315
35316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35317$as_echo_n "checking for perl version... " >&6; }
35318
35319 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35320
35321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35322$as_echo "$perl_version" >&6; }
35323
35324 PERL_VERSION=$perl_version
35325
35326
35327
35328
35329
35330 # Used to indicate true or false condition
35331 ax_compare_version=false
35332
35333 # Convert the two version strings to be compared into a format that
35334 # allows a simple string comparison. The end result is that a version
35335 # string of the form 1.12.5-r617 will be converted to the form
35336 # 0001001200050617. In other words, each number is zero padded to four
35337 # digits, and non digits are removed.
35338
35339 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35340 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35341 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35342 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35343 -e 's/[^0-9]//g'`
35344
35345
35346 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35347 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35348 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35349 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35350 -e 's/[^0-9]//g'`
35351
35352
35353 ax_compare_version=`echo "x$ax_compare_version_A
35354x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35355
35356
35357
35358 if test "$ax_compare_version" = "true" ; then
35359
35360 :
35361 PERL_SUPPORTS_DESTDIR='yes'
35362
35363 else
35364 :
35365 PERL_SUPPORTS_DESTDIR='no'
35366
35367 fi
35368
35369
35370else
35371
35372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35373$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35374 PERL_SUPPORTS_DESTDIR='no'
35375
cristy3ed852e2009-09-05 21:47:34 +000035376fi
cristy73bd4a52010-10-05 11:24:23 +000035377
35378fi
35379 if test "$have_perl" != 'no'; then
35380 WITH_PERL_TRUE=
35381 WITH_PERL_FALSE='#'
35382else
35383 WITH_PERL_TRUE='#'
35384 WITH_PERL_FALSE=
35385fi
35386
35387 if test $with_perl_static = 'yes'; then
35388 WITH_PERL_STATIC_TRUE=
35389 WITH_PERL_STATIC_FALSE='#'
35390else
35391 WITH_PERL_STATIC_TRUE='#'
35392 WITH_PERL_STATIC_FALSE=
35393fi
35394
35395 if test $with_perl_dynamic = 'yes'; then
35396 WITH_PERL_DYNAMIC_TRUE=
35397 WITH_PERL_DYNAMIC_FALSE='#'
35398else
35399 WITH_PERL_DYNAMIC_TRUE='#'
35400 WITH_PERL_DYNAMIC_FALSE=
35401fi
35402
cristy3ed852e2009-09-05 21:47:34 +000035403
35404
35405# Determine path to pick up MagickCore library from for use with building PerlMagick
35406MAGICKCORE_PATH="${LIB_DIR}"
35407if test $with_perl_static = 'yes'; then
35408 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35409 libtool_objdir=$objdir
35410
35411 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035412 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035413fi
35414
35415
cristy2a3eb392012-12-17 13:39:20 +000035416# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035417MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035418if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035419 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035420fi
cristy2a3eb392012-12-17 13:39:20 +000035421if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035422 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035423fi
35424if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035425 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035426fi
35427if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035428 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035429fi
35430if test "$have_ffmpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035431 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035432fi
35433if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035434 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035435fi
35436if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035437 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
cristy2a3eb392012-12-17 13:39:20 +000035438fi
35439if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035440 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035441fi
35442if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035443 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035444fi
35445if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035446 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035447fi
35448if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035449 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035450fi
35451if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035452 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035453fi
35454if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035455 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035456fi
35457if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035458 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035459fi
35460if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035461 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035462fi
35463if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035464 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035465fi
35466if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035467 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035468fi
35469if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035470 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035471fi
35472if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035473 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035474fi
35475if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035476 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035477fi
35478if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035479 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035480fi
35481have_ps='no'
35482if test "$have_dps" = 'yes' || \
35483 test "$have_gs" = 'yes' || \
35484 test "${native_win32_build}" = 'yes' ; then
35485 have_ps='yes'
35486fi
35487if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035488 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035489fi
35490if test "$have_ralcgm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035491 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
cristy2a3eb392012-12-17 13:39:20 +000035492fi
35493if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035494 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035495fi
35496if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035497 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035498fi
35499if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035500 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035501fi
35502if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035503 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035504fi
35505if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035506 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035507fi
35508if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035509 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035510fi
35511if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035512 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035513fi
35514if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035515 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035516fi
cristy2a3eb392012-12-17 13:39:20 +000035517# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035518MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035519MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035520
35521
cristyfa161182012-12-19 15:45:28 +000035522
cristy3ed852e2009-09-05 21:47:34 +000035523#
35524# Handle special compiler flags
35525#
35526
35527# Add '-p' if prof source profiling support enabled
35528if test "$enable_prof" = 'yes'; then
35529 CFLAGS="-p $CFLAGS"
35530 CXXFLAGS="-p $CXXFLAGS"
35531 LDFLAGS="-p $LDFLAGS"
35532fi
35533
35534# Add '-pg' if gprof source profiling support enabled
35535if test "$enable_gprof" = 'yes'; then
35536 CFLAGS="-pg $CFLAGS"
35537 CXXFLAGS="-pg $CXXFLAGS"
35538 LDFLAGS="-pg $LDFLAGS"
35539fi
35540
35541# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35542# This is a gcc-specific feature
35543if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035545$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035546if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035547 $as_echo_n "(cached) " >&6
35548else
35549 ac_check_lib_save_LIBS=$LIBS
35550LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035552/* end confdefs.h. */
35553
35554/* Override any GCC internal prototype to avoid an error.
35555 Use char because int might match the return type of a GCC
35556 builtin and then its argument prototype would still apply. */
35557#ifdef __cplusplus
35558extern "C"
35559#endif
35560char _gcov_init ();
35561int
35562main ()
35563{
35564return _gcov_init ();
35565 ;
35566 return 0;
35567}
35568_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035569if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035570 ac_cv_lib_gcov__gcov_init=yes
35571else
cristy8b350f62009-11-15 23:12:43 +000035572 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035573fi
cristy8b350f62009-11-15 23:12:43 +000035574rm -f core conftest.err conftest.$ac_objext \
35575 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035576LIBS=$ac_check_lib_save_LIBS
35577fi
cristy8b350f62009-11-15 23:12:43 +000035578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035579$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035580if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035581 cat >>confdefs.h <<_ACEOF
35582#define HAVE_LIBGCOV 1
35583_ACEOF
35584
35585 LIBS="-lgcov $LIBS"
35586
35587fi
35588
cristy8b350f62009-11-15 23:12:43 +000035589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035590$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035591if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035592 $as_echo_n "(cached) " >&6
35593else
35594 ac_check_lib_save_LIBS=$LIBS
35595LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035597/* end confdefs.h. */
35598
35599/* Override any GCC internal prototype to avoid an error.
35600 Use char because int might match the return type of a GCC
35601 builtin and then its argument prototype would still apply. */
35602#ifdef __cplusplus
35603extern "C"
35604#endif
35605char __gcov_init ();
35606int
35607main ()
35608{
35609return __gcov_init ();
35610 ;
35611 return 0;
35612}
35613_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035614if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035615 ac_cv_lib_gcov___gcov_init=yes
35616else
cristy8b350f62009-11-15 23:12:43 +000035617 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035618fi
cristy8b350f62009-11-15 23:12:43 +000035619rm -f core conftest.err conftest.$ac_objext \
35620 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035621LIBS=$ac_check_lib_save_LIBS
35622fi
cristy8b350f62009-11-15 23:12:43 +000035623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035624$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035625if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035626 cat >>confdefs.h <<_ACEOF
35627#define HAVE_LIBGCOV 1
35628_ACEOF
35629
35630 LIBS="-lgcov $LIBS"
35631
35632fi
35633
35634 case "$target_os" in
35635 darwin*)
35636 OSX_GCOV_LDFLAG="-Wl,-single_module"
35637 ;;
35638 *)
35639 OSX_GCOV_LDFLAG=""
35640 ;;
35641 esac
35642
35643 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35644 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35645 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35646fi
35647
35648#
35649# Build library dependency list for libMagickCore
35650#
35651
cristyc6722092012-10-14 00:19:31 +000035652if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035653 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 +000035654else
cristy3a75f062012-09-08 23:29:40 +000035655 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 +000035656fi
35657
35658
35659#
35660# Remove extraneous spaces from output variables (asthetic)
35661#
35662X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35663X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35664X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35665X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35666
35667CC=`echo $CC | sed -e 's/ */ /g'`
35668CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35669CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35670CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035671DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35672LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35673TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35674MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35675#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35676
35677# Pass only user-provided LIBS as "global" libraries
35678LIBS=$USER_LIBS
35679
35680#AC_SUBST(CPPFLAGS)
35681
35682#AC_SUBST(LDFLAGS)
35683#AC_SUBST(X_PRE_LIBS)
35684#AC_SUBST(X_LIBS)
35685#AC_SUBST(X_EXTRA_LIBS)
35686
35687MAGICK_CFLAGS=$CFLAGS
35688MAGICK_CXXFLAGS="$CXXFLAGS"
35689MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35690MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35691MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035692MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035693
35694
35695
35696
35697
35698
35699
35700
35701# Set configured scripts to executable.
35702ac_config_commands="$ac_config_commands default"
35703
cristy2bd4b6e2012-07-22 15:29:11 +000035704ac_config_commands="$ac_config_commands magick.sh.in"
35705
cristy3ed852e2009-09-05 21:47:34 +000035706ac_config_commands="$ac_config_commands MagickCore-config.in"
35707
cristy3ed852e2009-09-05 21:47:34 +000035708ac_config_commands="$ac_config_commands MagickWand-config.in"
35709
cristy3ed852e2009-09-05 21:47:34 +000035710ac_config_commands="$ac_config_commands Magick++-config.in"
35711
35712ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35713
35714
cristyad38abe2012-12-23 23:03:21 +000035715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35716$as_echo "-------------------------------------------------------------" >&6; }
35717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35718$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035719cat >confcache <<\_ACEOF
35720# This file is a shell script that caches the results of configure
35721# tests run on this system so they can be shared between configure
35722# scripts and configure runs, see configure's option --config-cache.
35723# It is not useful on other systems. If it contains results you don't
35724# want to keep, you may remove or edit it.
35725#
35726# config.status only pays attention to the cache file if you give it
35727# the --recheck option to rerun configure.
35728#
35729# `ac_cv_env_foo' variables (set or unset) will be overridden when
35730# loading this file, other *unset* `ac_cv_foo' will be assigned the
35731# following values.
35732
35733_ACEOF
35734
35735# The following way of writing the cache mishandles newlines in values,
35736# but we know of no workaround that is simple, portable, and efficient.
35737# So, we kill variables containing newlines.
35738# Ultrix sh set writes to stderr and can't be redirected directly,
35739# and sets the high bit in the cache file unless we assign to the vars.
35740(
35741 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35742 eval ac_val=\$$ac_var
35743 case $ac_val in #(
35744 *${as_nl}*)
35745 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035746 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035747$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35748 esac
35749 case $ac_var in #(
35750 _ | IFS | as_nl) ;; #(
35751 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035752 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035753 esac ;;
35754 esac
35755 done
35756
35757 (set) 2>&1 |
35758 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35759 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035760 # `set' does not quote correctly, so add quotes: double-quote
35761 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035762 sed -n \
35763 "s/'/'\\\\''/g;
35764 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35765 ;; #(
35766 *)
35767 # `set' quotes correctly as required by POSIX, so do not add quotes.
35768 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35769 ;;
35770 esac |
35771 sort
35772) |
35773 sed '
35774 /^ac_cv_env_/b end
35775 t clear
35776 :clear
35777 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35778 t end
35779 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35780 :end' >>confcache
35781if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35782 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035783 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035784 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035785$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035786 if test ! -f "$cache_file" || test -h "$cache_file"; then
35787 cat confcache >"$cache_file"
35788 else
35789 case $cache_file in #(
35790 */* | ?:*)
35791 mv -f confcache "$cache_file"$$ &&
35792 mv -f "$cache_file"$$ "$cache_file" ;; #(
35793 *)
35794 mv -f confcache "$cache_file" ;;
35795 esac
35796 fi
35797 fi
cristy3ed852e2009-09-05 21:47:34 +000035798 else
cristy8b350f62009-11-15 23:12:43 +000035799 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035800$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35801 fi
35802fi
35803rm -f confcache
35804
35805test "x$prefix" = xNONE && prefix=$ac_default_prefix
35806# Let make expand exec_prefix.
35807test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35808
35809DEFS=-DHAVE_CONFIG_H
35810
35811ac_libobjs=
35812ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035813U=
cristy3ed852e2009-09-05 21:47:34 +000035814for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35815 # 1. Remove the extension, and $U if already installed.
35816 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35817 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35818 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35819 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035820 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35821 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035822done
35823LIBOBJS=$ac_libobjs
35824
35825LTLIBOBJS=$ac_ltlibobjs
35826
35827
cristyc0890a62012-07-19 00:18:20 +000035828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35829$as_echo_n "checking that generated files are newer than configure... " >&6; }
35830 if test -n "$am_sleep_pid"; then
35831 # Hide warnings about reused PIDs.
35832 wait $am_sleep_pid 2>/dev/null
35833 fi
35834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35835$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035836 if test -n "$EXEEXT"; then
35837 am__EXEEXT_TRUE=
35838 am__EXEEXT_FALSE='#'
35839else
35840 am__EXEEXT_TRUE='#'
35841 am__EXEEXT_FALSE=
35842fi
cristy3ed852e2009-09-05 21:47:34 +000035843
cristy73bd4a52010-10-05 11:24:23 +000035844if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035845 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035846Usually this means the macro was only invoked conditionally." "$LINENO" 5
35847fi
35848if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035849 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035850Usually this means the macro was only invoked conditionally." "$LINENO" 5
35851fi
35852if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035853 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035854Usually this means the macro was only invoked conditionally." "$LINENO" 5
35855fi
35856if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035857 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035858Usually this means the macro was only invoked conditionally." "$LINENO" 5
35859fi
cristy9b86f202012-11-28 21:55:35 +000035860if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35861 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35862Usually this means the macro was only invoked conditionally." "$LINENO" 5
35863fi
cristy73bd4a52010-10-05 11:24:23 +000035864if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035865 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035866Usually this means the macro was only invoked conditionally." "$LINENO" 5
35867fi
35868if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035869 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035870Usually this means the macro was only invoked conditionally." "$LINENO" 5
35871fi
35872if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035873 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035874Usually this means the macro was only invoked conditionally." "$LINENO" 5
35875fi
35876if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035877 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035878Usually this means the macro was only invoked conditionally." "$LINENO" 5
35879fi
cristy73bd4a52010-10-05 11:24:23 +000035880if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035881 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035882Usually this means the macro was only invoked conditionally." "$LINENO" 5
35883fi
35884if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035885 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035886Usually this means the macro was only invoked conditionally." "$LINENO" 5
35887fi
cristy73bd4a52010-10-05 11:24:23 +000035888if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035889 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035890Usually this means the macro was only invoked conditionally." "$LINENO" 5
35891fi
cristy71d8c202012-03-20 17:05:01 +000035892if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35893 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35894Usually this means the macro was only invoked conditionally." "$LINENO" 5
35895fi
cristy73bd4a52010-10-05 11:24:23 +000035896
35897if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035898 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035899Usually this means the macro was only invoked conditionally." "$LINENO" 5
35900fi
35901if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035902 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035903Usually this means the macro was only invoked conditionally." "$LINENO" 5
35904fi
35905if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035906 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035907Usually this means the macro was only invoked conditionally." "$LINENO" 5
35908fi
35909if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035910 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035911Usually this means the macro was only invoked conditionally." "$LINENO" 5
35912fi
35913if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035914 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035915Usually this means the macro was only invoked conditionally." "$LINENO" 5
35916fi
35917if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035918 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035919Usually this means the macro was only invoked conditionally." "$LINENO" 5
35920fi
cristy5eef09f2012-10-16 12:08:28 +000035921if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35922 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35923Usually this means the macro was only invoked conditionally." "$LINENO" 5
35924fi
cristy73bd4a52010-10-05 11:24:23 +000035925if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035926 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035927Usually this means the macro was only invoked conditionally." "$LINENO" 5
35928fi
35929if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035930 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035931Usually this means the macro was only invoked conditionally." "$LINENO" 5
35932fi
35933if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035934 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035935Usually this means the macro was only invoked conditionally." "$LINENO" 5
35936fi
35937if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035938 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035939Usually this means the macro was only invoked conditionally." "$LINENO" 5
35940fi
35941if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035942 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035943Usually this means the macro was only invoked conditionally." "$LINENO" 5
35944fi
35945if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035946 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035947Usually this means the macro was only invoked conditionally." "$LINENO" 5
35948fi
35949if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035950 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035951Usually this means the macro was only invoked conditionally." "$LINENO" 5
35952fi
35953if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035954 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035955Usually this means the macro was only invoked conditionally." "$LINENO" 5
35956fi
35957if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035958 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035959Usually this means the macro was only invoked conditionally." "$LINENO" 5
35960fi
35961if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035962 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035963Usually this means the macro was only invoked conditionally." "$LINENO" 5
35964fi
35965if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035966 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035967Usually this means the macro was only invoked conditionally." "$LINENO" 5
35968fi
35969if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035970 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035971Usually this means the macro was only invoked conditionally." "$LINENO" 5
35972fi
35973if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035974 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035975Usually this means the macro was only invoked conditionally." "$LINENO" 5
35976fi
35977if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035978 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035979Usually this means the macro was only invoked conditionally." "$LINENO" 5
35980fi
cristyfbb0ef02010-12-19 02:32:11 +000035981if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35982 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35983Usually this means the macro was only invoked conditionally." "$LINENO" 5
35984fi
cristy73bd4a52010-10-05 11:24:23 +000035985if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035986 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035987Usually this means the macro was only invoked conditionally." "$LINENO" 5
35988fi
cristy41cbe8a2011-10-27 01:35:18 +000035989if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35990 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35991Usually this means the macro was only invoked conditionally." "$LINENO" 5
35992fi
cristya054b762012-03-26 23:16:00 +000035993if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35994 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035995Usually this means the macro was only invoked conditionally." "$LINENO" 5
35996fi
cristy73bd4a52010-10-05 11:24:23 +000035997if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035998 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035999Usually this means the macro was only invoked conditionally." "$LINENO" 5
36000fi
36001if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036002 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036003Usually this means the macro was only invoked conditionally." "$LINENO" 5
36004fi
36005if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036006 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036007Usually this means the macro was only invoked conditionally." "$LINENO" 5
36008fi
36009if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036010 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036011Usually this means the macro was only invoked conditionally." "$LINENO" 5
36012fi
cristyb1860752011-03-14 00:27:46 +000036013if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36014 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36015Usually this means the macro was only invoked conditionally." "$LINENO" 5
36016fi
cristy73bd4a52010-10-05 11:24:23 +000036017if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036018 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036019Usually this means the macro was only invoked conditionally." "$LINENO" 5
36020fi
36021if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036022 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036023Usually this means the macro was only invoked conditionally." "$LINENO" 5
36024fi
36025if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036026 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036027Usually this means the macro was only invoked conditionally." "$LINENO" 5
36028fi
36029if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036030 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036031Usually this means the macro was only invoked conditionally." "$LINENO" 5
36032fi
36033if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036034 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036035Usually this means the macro was only invoked conditionally." "$LINENO" 5
36036fi
36037if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036038 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036039Usually this means the macro was only invoked conditionally." "$LINENO" 5
36040fi
36041if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036042 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036043Usually this means the macro was only invoked conditionally." "$LINENO" 5
36044fi
36045if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036046 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036047Usually this means the macro was only invoked conditionally." "$LINENO" 5
36048fi
cristy3ed852e2009-09-05 21:47:34 +000036049
cristyda16f162011-02-19 23:52:17 +000036050: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036051ac_write_fail=0
36052ac_clean_files_save=$ac_clean_files
36053ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036054{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036055$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036056as_write_fail=0
36057cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036058#! $SHELL
36059# Generated by $as_me.
36060# Run this file to recreate the current configuration.
36061# Compiler output produced by configure, useful for debugging
36062# configure, is in config.log if it exists.
36063
36064debug=false
36065ac_cs_recheck=false
36066ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036067
cristy8b350f62009-11-15 23:12:43 +000036068SHELL=\${CONFIG_SHELL-$SHELL}
36069export SHELL
36070_ASEOF
36071cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36072## -------------------- ##
36073## M4sh Initialization. ##
36074## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036075
36076# Be more Bourne compatible
36077DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036078if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036079 emulate sh
36080 NULLCMD=:
36081 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36082 # is contrary to our usage. Disable this feature.
36083 alias -g '${1+"$@"}'='"$@"'
36084 setopt NO_GLOB_SUBST
36085else
cristy8b350f62009-11-15 23:12:43 +000036086 case `(set -o) 2>/dev/null` in #(
36087 *posix*) :
36088 set -o posix ;; #(
36089 *) :
36090 ;;
cristy3ed852e2009-09-05 21:47:34 +000036091esac
cristy3ed852e2009-09-05 21:47:34 +000036092fi
36093
36094
cristy3ed852e2009-09-05 21:47:34 +000036095as_nl='
36096'
36097export as_nl
36098# Printing a long string crashes Solaris 7 /usr/bin/printf.
36099as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36100as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36101as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036102# Prefer a ksh shell builtin over an external printf program on Solaris,
36103# but without wasting forks for bash or zsh.
36104if test -z "$BASH_VERSION$ZSH_VERSION" \
36105 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36106 as_echo='print -r --'
36107 as_echo_n='print -rn --'
36108elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036109 as_echo='printf %s\n'
36110 as_echo_n='printf %s'
36111else
36112 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36113 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36114 as_echo_n='/usr/ucb/echo -n'
36115 else
36116 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36117 as_echo_n_body='eval
36118 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036119 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036120 *"$as_nl"*)
36121 expr "X$arg" : "X\\(.*\\)$as_nl";
36122 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36123 esac;
36124 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36125 '
36126 export as_echo_n_body
36127 as_echo_n='sh -c $as_echo_n_body as_echo'
36128 fi
36129 export as_echo_body
36130 as_echo='sh -c $as_echo_body as_echo'
36131fi
36132
36133# The user is always right.
36134if test "${PATH_SEPARATOR+set}" != set; then
36135 PATH_SEPARATOR=:
36136 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36137 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36138 PATH_SEPARATOR=';'
36139 }
36140fi
36141
cristy3ed852e2009-09-05 21:47:34 +000036142
36143# IFS
36144# We need space, tab and new line, in precisely that order. Quoting is
36145# there to prevent editors from complaining about space-tab.
36146# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36147# splitting by setting IFS to empty value.)
36148IFS=" "" $as_nl"
36149
36150# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036151as_myself=
cristy8b350f62009-11-15 23:12:43 +000036152case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036153 *[\\/]* ) as_myself=$0 ;;
36154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36155for as_dir in $PATH
36156do
36157 IFS=$as_save_IFS
36158 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36160 done
cristy3ed852e2009-09-05 21:47:34 +000036161IFS=$as_save_IFS
36162
36163 ;;
36164esac
36165# We did not find ourselves, most probably we were run as `sh COMMAND'
36166# in which case we are not to be found in the path.
36167if test "x$as_myself" = x; then
36168 as_myself=$0
36169fi
36170if test ! -f "$as_myself"; then
36171 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036172 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036173fi
36174
cristy8b350f62009-11-15 23:12:43 +000036175# Unset variables that we do not need and which cause bugs (e.g. in
36176# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36177# suppresses any "Segmentation fault" message there. '((' could
36178# trigger a bug in pdksh 5.2.14.
36179for as_var in BASH_ENV ENV MAIL MAILPATH
36180do eval test x\${$as_var+set} = xset \
36181 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036182done
36183PS1='$ '
36184PS2='> '
36185PS4='+ '
36186
36187# NLS nuisances.
36188LC_ALL=C
36189export LC_ALL
36190LANGUAGE=C
36191export LANGUAGE
36192
cristy8b350f62009-11-15 23:12:43 +000036193# CDPATH.
36194(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36195
36196
cristy98dddb52010-11-04 00:30:15 +000036197# as_fn_error STATUS ERROR [LINENO LOG_FD]
36198# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036199# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36200# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036201# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036202as_fn_error ()
36203{
cristy98dddb52010-11-04 00:30:15 +000036204 as_status=$1; test $as_status -eq 0 && as_status=1
36205 if test "$4"; then
36206 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36207 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036208 fi
cristy98dddb52010-11-04 00:30:15 +000036209 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036210 as_fn_exit $as_status
36211} # as_fn_error
36212
36213
36214# as_fn_set_status STATUS
36215# -----------------------
36216# Set $? to STATUS, without forking.
36217as_fn_set_status ()
36218{
36219 return $1
36220} # as_fn_set_status
36221
36222# as_fn_exit STATUS
36223# -----------------
36224# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36225as_fn_exit ()
36226{
36227 set +e
36228 as_fn_set_status $1
36229 exit $1
36230} # as_fn_exit
36231
36232# as_fn_unset VAR
36233# ---------------
36234# Portably unset VAR.
36235as_fn_unset ()
36236{
36237 { eval $1=; unset $1;}
36238}
36239as_unset=as_fn_unset
36240# as_fn_append VAR VALUE
36241# ----------------------
36242# Append the text in VALUE to the end of the definition contained in VAR. Take
36243# advantage of any shell optimizations that allow amortized linear growth over
36244# repeated appends, instead of the typical quadratic growth present in naive
36245# implementations.
36246if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36247 eval 'as_fn_append ()
36248 {
36249 eval $1+=\$2
36250 }'
36251else
36252 as_fn_append ()
36253 {
36254 eval $1=\$$1\$2
36255 }
36256fi # as_fn_append
36257
36258# as_fn_arith ARG...
36259# ------------------
36260# Perform arithmetic evaluation on the ARGs, and store the result in the
36261# global $as_val. Take advantage of shells that can avoid forks. The arguments
36262# must be portable across $(()) and expr.
36263if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36264 eval 'as_fn_arith ()
36265 {
36266 as_val=$(( $* ))
36267 }'
36268else
36269 as_fn_arith ()
36270 {
36271 as_val=`expr "$@" || test $? -eq 1`
36272 }
36273fi # as_fn_arith
36274
36275
cristy3ed852e2009-09-05 21:47:34 +000036276if expr a : '\(a\)' >/dev/null 2>&1 &&
36277 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36278 as_expr=expr
36279else
36280 as_expr=false
36281fi
36282
36283if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36284 as_basename=basename
36285else
36286 as_basename=false
36287fi
36288
cristy8b350f62009-11-15 23:12:43 +000036289if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36290 as_dirname=dirname
36291else
36292 as_dirname=false
36293fi
cristy3ed852e2009-09-05 21:47:34 +000036294
cristy3ed852e2009-09-05 21:47:34 +000036295as_me=`$as_basename -- "$0" ||
36296$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36297 X"$0" : 'X\(//\)$' \| \
36298 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36299$as_echo X/"$0" |
36300 sed '/^.*\/\([^/][^/]*\)\/*$/{
36301 s//\1/
36302 q
36303 }
36304 /^X\/\(\/\/\)$/{
36305 s//\1/
36306 q
36307 }
36308 /^X\/\(\/\).*/{
36309 s//\1/
36310 q
36311 }
36312 s/.*/./; q'`
36313
cristy8b350f62009-11-15 23:12:43 +000036314# Avoid depending upon Character Ranges.
36315as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36316as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36317as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36318as_cr_digits='0123456789'
36319as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036320
36321ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036322case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036323-n*)
cristy8b350f62009-11-15 23:12:43 +000036324 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036325 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036326 xy) ECHO_C='\c';;
36327 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36328 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036329 esac;;
36330*)
36331 ECHO_N='-n';;
36332esac
cristy3ed852e2009-09-05 21:47:34 +000036333
36334rm -f conf$$ conf$$.exe conf$$.file
36335if test -d conf$$.dir; then
36336 rm -f conf$$.dir/conf$$.file
36337else
36338 rm -f conf$$.dir
36339 mkdir conf$$.dir 2>/dev/null
36340fi
36341if (echo >conf$$.file) 2>/dev/null; then
36342 if ln -s conf$$.file conf$$ 2>/dev/null; then
36343 as_ln_s='ln -s'
36344 # ... but there are two gotchas:
36345 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36346 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036347 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036348 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036349 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036350 elif ln conf$$.file conf$$ 2>/dev/null; then
36351 as_ln_s=ln
36352 else
cristy14fefe52012-05-21 00:59:18 +000036353 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036354 fi
36355else
cristy14fefe52012-05-21 00:59:18 +000036356 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036357fi
36358rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36359rmdir conf$$.dir 2>/dev/null
36360
cristy8b350f62009-11-15 23:12:43 +000036361
36362# as_fn_mkdir_p
36363# -------------
36364# Create "$as_dir" as a directory, including parents if necessary.
36365as_fn_mkdir_p ()
36366{
36367
36368 case $as_dir in #(
36369 -*) as_dir=./$as_dir;;
36370 esac
36371 test -d "$as_dir" || eval $as_mkdir_p || {
36372 as_dirs=
36373 while :; do
36374 case $as_dir in #(
36375 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36376 *) as_qdir=$as_dir;;
36377 esac
36378 as_dirs="'$as_qdir' $as_dirs"
36379 as_dir=`$as_dirname -- "$as_dir" ||
36380$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36381 X"$as_dir" : 'X\(//\)[^/]' \| \
36382 X"$as_dir" : 'X\(//\)$' \| \
36383 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36384$as_echo X"$as_dir" |
36385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36386 s//\1/
36387 q
36388 }
36389 /^X\(\/\/\)[^/].*/{
36390 s//\1/
36391 q
36392 }
36393 /^X\(\/\/\)$/{
36394 s//\1/
36395 q
36396 }
36397 /^X\(\/\).*/{
36398 s//\1/
36399 q
36400 }
36401 s/.*/./; q'`
36402 test -d "$as_dir" && break
36403 done
36404 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036405 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036406
36407
36408} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036409if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036410 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036411else
36412 test -d ./-p && rmdir ./-p
36413 as_mkdir_p=false
36414fi
36415
cristy14fefe52012-05-21 00:59:18 +000036416
36417# as_fn_executable_p FILE
36418# -----------------------
36419# Test if FILE is an executable regular file.
36420as_fn_executable_p ()
36421{
36422 test -f "$1" && test -x "$1"
36423} # as_fn_executable_p
36424as_test_x='test -x'
36425as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036426
36427# Sed expression to map a string onto a valid CPP name.
36428as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36429
36430# Sed expression to map a string onto a valid variable name.
36431as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36432
36433
36434exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036435## ----------------------------------- ##
36436## Main body of $CONFIG_STATUS script. ##
36437## ----------------------------------- ##
36438_ASEOF
36439test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036440
cristy8b350f62009-11-15 23:12:43 +000036441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36442# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036443# report actual input values of CONFIG_FILES etc. instead of their
36444# values after options handling.
36445ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036446This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036447generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036448
36449 CONFIG_FILES = $CONFIG_FILES
36450 CONFIG_HEADERS = $CONFIG_HEADERS
36451 CONFIG_LINKS = $CONFIG_LINKS
36452 CONFIG_COMMANDS = $CONFIG_COMMANDS
36453 $ $0 $@
36454
36455on `(hostname || uname -n) 2>/dev/null | sed 1q`
36456"
36457
36458_ACEOF
36459
36460case $ac_config_files in *"
36461"*) set x $ac_config_files; shift; ac_config_files=$*;;
36462esac
36463
36464case $ac_config_headers in *"
36465"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36466esac
36467
36468
36469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36470# Files that config.status was made for.
36471config_files="$ac_config_files"
36472config_headers="$ac_config_headers"
36473config_commands="$ac_config_commands"
36474
36475_ACEOF
36476
36477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36478ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036479\`$as_me' instantiates files and other configuration actions
36480from templates according to the current configuration. Unless the files
36481and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036482
cristy8b350f62009-11-15 23:12:43 +000036483Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036484
36485 -h, --help print this help, then exit
36486 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036487 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036488 -q, --quiet, --silent
36489 do not print progress messages
36490 -d, --debug don't remove temporary files
36491 --recheck update $as_me by reconfiguring in the same conditions
36492 --file=FILE[:TEMPLATE]
36493 instantiate the configuration file FILE
36494 --header=FILE[:TEMPLATE]
36495 instantiate the configuration header FILE
36496
36497Configuration files:
36498$config_files
36499
36500Configuration headers:
36501$config_headers
36502
36503Configuration commands:
36504$config_commands
36505
cristy8b350f62009-11-15 23:12:43 +000036506Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036507
36508_ACEOF
36509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036510ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036511ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036512ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036513configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036514 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036515
cristy14fefe52012-05-21 00:59:18 +000036516Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036517This config.status script is free software; the Free Software Foundation
36518gives unlimited permission to copy, distribute and modify it."
36519
36520ac_pwd='$ac_pwd'
36521srcdir='$srcdir'
36522INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036523MKDIR_P='$MKDIR_P'
36524AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036525test -n "\$AWK" || AWK=awk
36526_ACEOF
36527
36528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36529# The default lists apply if the user does not specify any file.
36530ac_need_defaults=:
36531while test $# != 0
36532do
36533 case $1 in
cristyda16f162011-02-19 23:52:17 +000036534 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036535 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36536 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36537 ac_shift=:
36538 ;;
cristyda16f162011-02-19 23:52:17 +000036539 --*=)
36540 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36541 ac_optarg=
36542 ac_shift=:
36543 ;;
cristy3ed852e2009-09-05 21:47:34 +000036544 *)
36545 ac_option=$1
36546 ac_optarg=$2
36547 ac_shift=shift
36548 ;;
36549 esac
36550
36551 case $ac_option in
36552 # Handling of the options.
36553 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36554 ac_cs_recheck=: ;;
36555 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36556 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036557 --config | --confi | --conf | --con | --co | --c )
36558 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036559 --debug | --debu | --deb | --de | --d | -d )
36560 debug=: ;;
36561 --file | --fil | --fi | --f )
36562 $ac_shift
36563 case $ac_optarg in
36564 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036565 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036566 esac
cristy8b350f62009-11-15 23:12:43 +000036567 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036568 ac_need_defaults=false;;
36569 --header | --heade | --head | --hea )
36570 $ac_shift
36571 case $ac_optarg in
36572 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36573 esac
cristy8b350f62009-11-15 23:12:43 +000036574 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036575 ac_need_defaults=false;;
36576 --he | --h)
36577 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036578 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036579Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036580 --help | --hel | -h )
36581 $as_echo "$ac_cs_usage"; exit ;;
36582 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36583 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36584 ac_cs_silent=: ;;
36585
36586 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036587 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036588Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036589
cristy8b350f62009-11-15 23:12:43 +000036590 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036591 ac_need_defaults=false ;;
36592
36593 esac
36594 shift
36595done
36596
36597ac_configure_extra_args=
36598
36599if $ac_cs_silent; then
36600 exec 6>/dev/null
36601 ac_configure_extra_args="$ac_configure_extra_args --silent"
36602fi
36603
36604_ACEOF
36605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36606if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036607 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036608 shift
36609 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36610 CONFIG_SHELL='$SHELL'
36611 export CONFIG_SHELL
36612 exec "\$@"
36613fi
36614
36615_ACEOF
36616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36617exec 5>>config.log
36618{
36619 echo
36620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36621## Running $as_me. ##
36622_ASBOX
36623 $as_echo "$ac_log"
36624} >&5
36625
36626_ACEOF
36627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036628#
36629# INIT-COMMANDS
36630#
36631PACKAGE="$PACKAGE"
36632AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36633
36634
36635# The HP-UX ksh and POSIX shell print the target directory to stdout
36636# if CDPATH is set.
36637(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36638
36639sed_quote_subst='$sed_quote_subst'
36640double_quote_subst='$double_quote_subst'
36641delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036642SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36643Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36644GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36645EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36646FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36647SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36648ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36649LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36650macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36651macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36652AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36653DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36654OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36655enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36656enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36657pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36658enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036659PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036660host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36661host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36662host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36663build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36664build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36665build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36666NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36667LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36668max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36669ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36670exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36671lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36672lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36673lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036674lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36675lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036676reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36677reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36678deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36679file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036680file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36681want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36682sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036683AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36684AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036685archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036686STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36687RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36688old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36689old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36690old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36691lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36692CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36693CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36694compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36695GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36696lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36697lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36698lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36699lt_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 +000036700nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36701lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036702objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36703MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36704lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036705lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036706lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036707lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36708lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36709need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036710MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036711DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36712NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36713LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36714OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36715OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36716libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36717shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36718extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36719archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36720enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36721export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36722whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36723compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36724old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36725old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36726archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36727archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36728module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36729module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36730with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36731allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36732no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36733hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036734hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36735hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36736hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36737hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36738hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36739hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36740inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36741link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036742always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36743export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36744exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36745include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36746prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036747postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036748file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36749variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36750need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36751need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36752version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36753runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36754shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36755shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36756libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36757library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36758soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36759install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36760postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36761postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36762finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36763finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36764hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36765sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36766sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36767hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36768enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36769enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36770enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36771old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36772striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36773compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36774predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36775postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36776predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36777postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36778compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36779LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36780reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36781reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36782old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36783compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36784GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36785lt_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 +000036786lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036787lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036788lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36789lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36790archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36791enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36792export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36793whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36794compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36795old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36796old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36797archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36798archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36799module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36800module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36801with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36802allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36803no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36804hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036805hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36806hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36807hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36808hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36809hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36810hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36811inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36812link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036813always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36814export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36815exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36816include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36817prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036818postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036819file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36820hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36821compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36822predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36823postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36824predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36825postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36826compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036827
36828LTCC='$LTCC'
36829LTCFLAGS='$LTCFLAGS'
36830compiler='$compiler_DEFAULT'
36831
cristy0c60a692010-11-04 01:09:47 +000036832# A function that is used when there is no print builtin or printf.
36833func_fallback_echo ()
36834{
36835 eval 'cat <<_LTECHO_EOF
36836\$1
36837_LTECHO_EOF'
36838}
36839
cristy73bd4a52010-10-05 11:24:23 +000036840# Quote evaled strings.
36841for var in SED \
36842GREP \
36843EGREP \
36844FGREP \
cristy0c60a692010-11-04 01:09:47 +000036845SHELL \
36846ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036847LD \
cristy0c60a692010-11-04 01:09:47 +000036848AS \
36849DLLTOOL \
36850OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036851PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036852NM \
36853LN_S \
36854lt_SP2NL \
36855lt_NL2SP \
36856reload_flag \
36857deplibs_check_method \
36858file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036859file_magic_glob \
36860want_nocaseglob \
36861sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036862AR \
36863AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036864archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036865STRIP \
36866RANLIB \
36867CC \
36868CFLAGS \
36869compiler \
36870lt_cv_sys_global_symbol_pipe \
36871lt_cv_sys_global_symbol_to_cdecl \
36872lt_cv_sys_global_symbol_to_c_name_address \
36873lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036874nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036875lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036876lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036877lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036878lt_prog_compiler_static \
36879lt_cv_prog_compiler_c_o \
36880need_locks \
cristyda16f162011-02-19 23:52:17 +000036881MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036882DSYMUTIL \
36883NMEDIT \
36884LIPO \
36885OTOOL \
36886OTOOL64 \
36887shrext_cmds \
36888export_dynamic_flag_spec \
36889whole_archive_flag_spec \
36890compiler_needs_object \
36891with_gnu_ld \
36892allow_undefined_flag \
36893no_undefined_flag \
36894hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036895hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036896exclude_expsyms \
36897include_expsyms \
36898file_list_spec \
36899variables_saved_for_relink \
36900libname_spec \
36901library_names_spec \
36902soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036903install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036904finish_eval \
36905old_striplib \
36906striplib \
36907compiler_lib_search_dirs \
36908predep_objects \
36909postdep_objects \
36910predeps \
36911postdeps \
36912compiler_lib_search_path \
36913LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036914reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036915compiler_CXX \
36916lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036917lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036918lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036919lt_prog_compiler_static_CXX \
36920lt_cv_prog_compiler_c_o_CXX \
36921export_dynamic_flag_spec_CXX \
36922whole_archive_flag_spec_CXX \
36923compiler_needs_object_CXX \
36924with_gnu_ld_CXX \
36925allow_undefined_flag_CXX \
36926no_undefined_flag_CXX \
36927hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036928hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036929exclude_expsyms_CXX \
36930include_expsyms_CXX \
36931file_list_spec_CXX \
36932compiler_lib_search_dirs_CXX \
36933predep_objects_CXX \
36934postdep_objects_CXX \
36935predeps_CXX \
36936postdeps_CXX \
36937compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036938 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036939 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036940 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036941 ;;
36942 *)
36943 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36944 ;;
36945 esac
36946done
36947
36948# Double-quote double-evaled strings.
36949for var in reload_cmds \
36950old_postinstall_cmds \
36951old_postuninstall_cmds \
36952old_archive_cmds \
36953extract_expsyms_cmds \
36954old_archive_from_new_cmds \
36955old_archive_from_expsyms_cmds \
36956archive_cmds \
36957archive_expsym_cmds \
36958module_cmds \
36959module_expsym_cmds \
36960export_symbols_cmds \
36961prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036962postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036963postinstall_cmds \
36964postuninstall_cmds \
36965finish_cmds \
36966sys_lib_search_path_spec \
36967sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036968reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036969old_archive_cmds_CXX \
36970old_archive_from_new_cmds_CXX \
36971old_archive_from_expsyms_cmds_CXX \
36972archive_cmds_CXX \
36973archive_expsym_cmds_CXX \
36974module_cmds_CXX \
36975module_expsym_cmds_CXX \
36976export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036977prelink_cmds_CXX \
36978postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036979 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036980 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036981 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036982 ;;
36983 *)
36984 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36985 ;;
36986 esac
36987done
36988
cristy73bd4a52010-10-05 11:24:23 +000036989ac_aux_dir='$ac_aux_dir'
36990xsi_shell='$xsi_shell'
36991lt_shell_append='$lt_shell_append'
36992
36993# See if we are running on zsh, and set the options which allow our
36994# commands through without removal of \ escapes INIT.
36995if test -n "\${ZSH_VERSION+set}" ; then
36996 setopt NO_GLOB_SUBST
36997fi
36998
36999
37000 PACKAGE='$PACKAGE'
37001 VERSION='$VERSION'
37002 TIMESTAMP='$TIMESTAMP'
37003 RM='$RM'
37004 ofile='$ofile'
37005
37006
37007
37008
37009
37010
cristy3ed852e2009-09-05 21:47:34 +000037011_ACEOF
37012
37013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37014
37015# Handling of arguments.
37016for ac_config_target in $ac_config_targets
37017do
37018 case $ac_config_target in
37019 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037020 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037021 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037022 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37023 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37024 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37025 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37026 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037027 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037028 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037029 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37030 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37031 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37032 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37033 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037034 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037035 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037036 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37037 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37038 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037039 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37040 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037041 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037042 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037043 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037044 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037045 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37046 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37047 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37048 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037049 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37050 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37051 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37052 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37053 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37054 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37055 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37056 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37057 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37058 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37059 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37060 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037061 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37062 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037063 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37064 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037065 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037066 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037067 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037068 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037069 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37070 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37071
cristy98dddb52010-11-04 00:30:15 +000037072 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037073 esac
37074done
37075
37076
37077# If the user did not use the arguments to specify the items to instantiate,
37078# then the envvar interface is used. Set only those that are not.
37079# We use the long form for the default assignment because of an extremely
37080# bizarre bug on SunOS 4.1.3.
37081if $ac_need_defaults; then
37082 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37083 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37084 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37085fi
37086
37087# Have a temporary directory for convenience. Make it in the build tree
37088# simply because there is no reason against having it here, and in addition,
37089# creating and moving files from /tmp can sometimes cause problems.
37090# Hook for its removal unless debugging.
37091# Note that there is a small window in which the directory will not be cleaned:
37092# after its creation but before its name has been assigned to `$tmp'.
37093$debug ||
37094{
cristyda16f162011-02-19 23:52:17 +000037095 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037096 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037097 : "${ac_tmp:=$tmp}"
37098 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037099' 0
cristy8b350f62009-11-15 23:12:43 +000037100 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037101}
37102# Create a (secure) tmp directory for tmp files.
37103
37104{
37105 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037106 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037107} ||
37108{
37109 tmp=./conf$$-$RANDOM
37110 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037111} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037112ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037113
37114# Set up the scripts for CONFIG_FILES section.
37115# No need to generate them if there are no CONFIG_FILES.
37116# This happens for instance with `./config.status config.h'.
37117if test -n "$CONFIG_FILES"; then
37118
37119
cristy8b350f62009-11-15 23:12:43 +000037120ac_cr=`echo X | tr X '\015'`
37121# On cygwin, bash can eat \r inside `` if the user requested igncr.
37122# But we know of no other shell where ac_cr would be empty at this
37123# point, so we can use a bashism as a fallback.
37124if test "x$ac_cr" = x; then
37125 eval ac_cr=\$\'\\r\'
37126fi
cristy3ed852e2009-09-05 21:47:34 +000037127ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37128if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037129 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037130else
37131 ac_cs_awk_cr=$ac_cr
37132fi
37133
cristyda16f162011-02-19 23:52:17 +000037134echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037135_ACEOF
37136
37137
37138{
37139 echo "cat >conf$$subs.awk <<_ACEOF" &&
37140 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37141 echo "_ACEOF"
37142} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037143 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37144ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037145ac_delim='%!_!# '
37146for ac_last_try in false false false false false :; do
37147 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037148 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037149
37150 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37151 if test $ac_delim_n = $ac_delim_num; then
37152 break
37153 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037154 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037155 else
37156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37157 fi
37158done
37159rm -f conf$$subs.sh
37160
37161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037162cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037163_ACEOF
37164sed -n '
37165h
37166s/^/S["/; s/!.*/"]=/
37167p
37168g
37169s/^[^!]*!//
37170:repl
37171t repl
37172s/'"$ac_delim"'$//
37173t delim
37174:nl
37175h
cristycd4c5312009-11-22 01:19:08 +000037176s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037177t more1
37178s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37179p
37180n
37181b repl
37182:more1
37183s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37184p
37185g
37186s/.\{148\}//
37187t nl
37188:delim
37189h
cristycd4c5312009-11-22 01:19:08 +000037190s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037191t more2
37192s/["\\]/\\&/g; s/^/"/; s/$/"/
37193p
37194b
37195:more2
37196s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37197p
37198g
37199s/.\{148\}//
37200t delim
37201' <conf$$subs.awk | sed '
37202/^[^""]/{
37203 N
37204 s/\n//
37205}
37206' >>$CONFIG_STATUS || ac_write_fail=1
37207rm -f conf$$subs.awk
37208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37209_ACAWK
cristyda16f162011-02-19 23:52:17 +000037210cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037211 for (key in S) S_is_set[key] = 1
37212 FS = ""
37213
37214}
37215{
37216 line = $ 0
37217 nfields = split(line, field, "@")
37218 substed = 0
37219 len = length(field[1])
37220 for (i = 2; i < nfields; i++) {
37221 key = field[i]
37222 keylen = length(key)
37223 if (S_is_set[key]) {
37224 value = S[key]
37225 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37226 len += length(value) + length(field[++i])
37227 substed = 1
37228 } else
37229 len += 1 + keylen
37230 }
37231
37232 print line
37233}
37234
37235_ACAWK
37236_ACEOF
37237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37238if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37239 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37240else
37241 cat
cristyda16f162011-02-19 23:52:17 +000037242fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037243 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037244_ACEOF
37245
cristy98dddb52010-11-04 00:30:15 +000037246# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37247# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037248# trailing colons and then remove the whole line if VPATH becomes empty
37249# (actually we leave an empty line to preserve line numbers).
37250if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037251 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37252h
37253s///
37254s/^/:/
37255s/[ ]*$/:/
37256s/:\$(srcdir):/:/g
37257s/:\${srcdir}:/:/g
37258s/:@srcdir@:/:/g
37259s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037260s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037261x
37262s/\(=[ ]*\).*/\1/
37263G
37264s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037265s/^[^=]*=[ ]*$//
37266}'
37267fi
37268
37269cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37270fi # test -n "$CONFIG_FILES"
37271
37272# Set up the scripts for CONFIG_HEADERS section.
37273# No need to generate them if there are no CONFIG_HEADERS.
37274# This happens for instance with `./config.status Makefile'.
37275if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037276cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037277BEGIN {
37278_ACEOF
37279
37280# Transform confdefs.h into an awk script `defines.awk', embedded as
37281# here-document in config.status, that substitutes the proper values into
37282# config.h.in to produce config.h.
37283
37284# Create a delimiter string that does not exist in confdefs.h, to ease
37285# handling of long lines.
37286ac_delim='%!_!# '
37287for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037288 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37289 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037290 break
37291 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037292 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037293 else
37294 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37295 fi
37296done
37297
37298# For the awk script, D is an array of macro values keyed by name,
37299# likewise P contains macro parameters if any. Preserve backslash
37300# newline sequences.
37301
37302ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37303sed -n '
37304s/.\{148\}/&'"$ac_delim"'/g
37305t rset
37306:rset
37307s/^[ ]*#[ ]*define[ ][ ]*/ /
37308t def
37309d
37310:def
37311s/\\$//
37312t bsnl
37313s/["\\]/\\&/g
37314s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37315D["\1"]=" \3"/p
37316s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37317d
37318:bsnl
37319s/["\\]/\\&/g
37320s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37321D["\1"]=" \3\\\\\\n"\\/p
37322t cont
37323s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37324t cont
37325d
37326:cont
37327n
37328s/.\{148\}/&'"$ac_delim"'/g
37329t clear
37330:clear
37331s/\\$//
37332t bsnlc
37333s/["\\]/\\&/g; s/^/"/; s/$/"/p
37334d
37335:bsnlc
37336s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37337b cont
37338' <confdefs.h | sed '
37339s/'"$ac_delim"'/"\\\
37340"/g' >>$CONFIG_STATUS || ac_write_fail=1
37341
37342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37343 for (key in D) D_is_set[key] = 1
37344 FS = ""
37345}
37346/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37347 line = \$ 0
37348 split(line, arg, " ")
37349 if (arg[1] == "#") {
37350 defundef = arg[2]
37351 mac1 = arg[3]
37352 } else {
37353 defundef = substr(arg[1], 2)
37354 mac1 = arg[2]
37355 }
37356 split(mac1, mac2, "(") #)
37357 macro = mac2[1]
37358 prefix = substr(line, 1, index(line, defundef) - 1)
37359 if (D_is_set[macro]) {
37360 # Preserve the white space surrounding the "#".
37361 print prefix "define", macro P[macro] D[macro]
37362 next
37363 } else {
37364 # Replace #undef with comments. This is necessary, for example,
37365 # in the case of _POSIX_SOURCE, which is predefined and required
37366 # on some systems where configure will not decide to define it.
37367 if (defundef == "undef") {
37368 print "/*", prefix defundef, macro, "*/"
37369 next
37370 }
37371 }
37372}
37373{ print }
37374_ACAWK
37375_ACEOF
37376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037377 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037378fi # test -n "$CONFIG_HEADERS"
37379
37380
37381eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37382shift
37383for ac_tag
37384do
37385 case $ac_tag in
37386 :[FHLC]) ac_mode=$ac_tag; continue;;
37387 esac
37388 case $ac_mode$ac_tag in
37389 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037390 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037391 :[FH]-) ac_tag=-:-;;
37392 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37393 esac
37394 ac_save_IFS=$IFS
37395 IFS=:
37396 set x $ac_tag
37397 IFS=$ac_save_IFS
37398 shift
37399 ac_file=$1
37400 shift
37401
37402 case $ac_mode in
37403 :L) ac_source=$1;;
37404 :[FH])
37405 ac_file_inputs=
37406 for ac_f
37407 do
37408 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037409 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037410 *) # Look for the file first in the build tree, then in the source tree
37411 # (if the path is not absolute). The absolute path cannot be DOS-style,
37412 # because $ac_f cannot contain `:'.
37413 test -f "$ac_f" ||
37414 case $ac_f in
37415 [\\/$]*) false;;
37416 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37417 esac ||
cristy98dddb52010-11-04 00:30:15 +000037418 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037419 esac
37420 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037421 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037422 done
37423
37424 # Let's still pretend it is `configure' which instantiates (i.e., don't
37425 # use $as_me), people would be surprised to read:
37426 # /* config.h. Generated by config.status. */
37427 configure_input='Generated from '`
37428 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37429 `' by configure.'
37430 if test x"$ac_file" != x-; then
37431 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037432 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037433$as_echo "$as_me: creating $ac_file" >&6;}
37434 fi
37435 # Neutralize special characters interpreted by sed in replacement strings.
37436 case $configure_input in #(
37437 *\&* | *\|* | *\\* )
37438 ac_sed_conf_input=`$as_echo "$configure_input" |
37439 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37440 *) ac_sed_conf_input=$configure_input;;
37441 esac
37442
37443 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037444 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037445 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037446 esac
37447 ;;
37448 esac
37449
37450 ac_dir=`$as_dirname -- "$ac_file" ||
37451$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37452 X"$ac_file" : 'X\(//\)[^/]' \| \
37453 X"$ac_file" : 'X\(//\)$' \| \
37454 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37455$as_echo X"$ac_file" |
37456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37457 s//\1/
37458 q
37459 }
37460 /^X\(\/\/\)[^/].*/{
37461 s//\1/
37462 q
37463 }
37464 /^X\(\/\/\)$/{
37465 s//\1/
37466 q
37467 }
37468 /^X\(\/\).*/{
37469 s//\1/
37470 q
37471 }
37472 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037473 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037474 ac_builddir=.
37475
37476case "$ac_dir" in
37477.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37478*)
37479 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37480 # A ".." for each directory in $ac_dir_suffix.
37481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37482 case $ac_top_builddir_sub in
37483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37485 esac ;;
37486esac
37487ac_abs_top_builddir=$ac_pwd
37488ac_abs_builddir=$ac_pwd$ac_dir_suffix
37489# for backward compatibility:
37490ac_top_builddir=$ac_top_build_prefix
37491
37492case $srcdir in
37493 .) # We are building in place.
37494 ac_srcdir=.
37495 ac_top_srcdir=$ac_top_builddir_sub
37496 ac_abs_top_srcdir=$ac_pwd ;;
37497 [\\/]* | ?:[\\/]* ) # Absolute name.
37498 ac_srcdir=$srcdir$ac_dir_suffix;
37499 ac_top_srcdir=$srcdir
37500 ac_abs_top_srcdir=$srcdir ;;
37501 *) # Relative name.
37502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37503 ac_top_srcdir=$ac_top_build_prefix$srcdir
37504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37505esac
37506ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37507
37508
37509 case $ac_mode in
37510 :F)
37511 #
37512 # CONFIG_FILE
37513 #
37514
37515 case $INSTALL in
37516 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37517 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37518 esac
cristy73bd4a52010-10-05 11:24:23 +000037519 ac_MKDIR_P=$MKDIR_P
37520 case $MKDIR_P in
37521 [\\/$]* | ?:[\\/]* ) ;;
37522 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37523 esac
cristy3ed852e2009-09-05 21:47:34 +000037524_ACEOF
37525
37526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37527# If the template does not know about datarootdir, expand it.
37528# FIXME: This hack should be removed a few years after 2.60.
37529ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037530ac_sed_dataroot='
37531/datarootdir/ {
37532 p
37533 q
37534}
37535/@datadir@/p
37536/@docdir@/p
37537/@infodir@/p
37538/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037539/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037540case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37541*datarootdir*) ac_datarootdir_seen=yes;;
37542*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037544$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37545_ACEOF
37546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37547 ac_datarootdir_hack='
37548 s&@datadir@&$datadir&g
37549 s&@docdir@&$docdir&g
37550 s&@infodir@&$infodir&g
37551 s&@localedir@&$localedir&g
37552 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037553 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037554esac
37555_ACEOF
37556
37557# Neutralize VPATH when `$srcdir' = `.'.
37558# Shell code in configure.ac might set extrasub.
37559# FIXME: do we really want to maintain this feature?
37560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37561ac_sed_extra="$ac_vpsub
37562$extrasub
37563_ACEOF
37564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37565:t
37566/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37567s|@configure_input@|$ac_sed_conf_input|;t t
37568s&@top_builddir@&$ac_top_builddir_sub&;t t
37569s&@top_build_prefix@&$ac_top_build_prefix&;t t
37570s&@srcdir@&$ac_srcdir&;t t
37571s&@abs_srcdir@&$ac_abs_srcdir&;t t
37572s&@top_srcdir@&$ac_top_srcdir&;t t
37573s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37574s&@builddir@&$ac_builddir&;t t
37575s&@abs_builddir@&$ac_abs_builddir&;t t
37576s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37577s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037578s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037579$ac_datarootdir_hack
37580"
cristyda16f162011-02-19 23:52:17 +000037581eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37582 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037583
37584test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037585 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37586 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37587 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037589which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037590$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037591which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037592
cristyda16f162011-02-19 23:52:17 +000037593 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037594 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037595 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37596 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037597 esac \
cristy98dddb52010-11-04 00:30:15 +000037598 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037599 ;;
37600 :H)
37601 #
37602 # CONFIG_HEADER
37603 #
37604 if test x"$ac_file" != x-; then
37605 {
37606 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037607 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37608 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037610 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037611 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037612$as_echo "$as_me: $ac_file is unchanged" >&6;}
37613 else
37614 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037615 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037616 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037617 fi
37618 else
37619 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037620 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037621 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037622 fi
cristy73bd4a52010-10-05 11:24:23 +000037623# Compute "$ac_file"'s index in $config_headers.
37624_am_arg="$ac_file"
37625_am_stamp_count=1
37626for _am_header in $config_headers :; do
37627 case $_am_header in
37628 $_am_arg | $_am_arg:* )
37629 break ;;
37630 * )
37631 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37632 esac
37633done
37634echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37635$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37636 X"$_am_arg" : 'X\(//\)[^/]' \| \
37637 X"$_am_arg" : 'X\(//\)$' \| \
37638 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37639$as_echo X"$_am_arg" |
37640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37641 s//\1/
37642 q
37643 }
37644 /^X\(\/\/\)[^/].*/{
37645 s//\1/
37646 q
37647 }
37648 /^X\(\/\/\)$/{
37649 s//\1/
37650 q
37651 }
37652 /^X\(\/\).*/{
37653 s//\1/
37654 q
37655 }
37656 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037657 ;;
37658
cristy8b350f62009-11-15 23:12:43 +000037659 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037660$as_echo "$as_me: executing $ac_file commands" >&6;}
37661 ;;
37662 esac
37663
37664
37665 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037666 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037667ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37668ac_prefix_conf_PKG=`echo MagickCore`
37669ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37670ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37671ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37672if test ".$ac_prefix_conf_INP" = "."; then
37673 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37674 case "$ac_file" in
37675 *.h) ac_prefix_conf_INP=$ac_file ;;
37676 *)
37677 esac
37678 test ".$ac_prefix_conf_INP" != "." && break
37679 done
37680fi
37681if test ".$ac_prefix_conf_INP" = "."; then
37682 case "$ac_prefix_conf_OUT" in
37683 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37684 ;;
37685 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37686 ;;
37687 *) ac_prefix_conf_INP=config.h
37688 ;;
37689 esac
37690fi
37691if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037692 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037693else
37694 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37695 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37696 fi fi
37697 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37698$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37699 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037700 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37701 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37702 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37703 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37704 $as_echo "#endif/" >> conftest.prefix
37705 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37706 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37707 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037708 # now executing _script on _DEF input to create _OUT output file
37709 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37710 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37711 echo ' ' >>$tmp/pconfig.h
37712 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37713
37714 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37715 echo ' ' >>$tmp/pconfig.h
37716 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37717 echo "#endif" >>$tmp/pconfig.h
37718 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37719 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37720$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37721 else
37722 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37723$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37724 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37725 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37726 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37727$as_echo X"$ac_prefix_conf_OUT" |
37728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37729 s//\1/
37730 q
37731 }
37732 /^X\(\/\/\)[^/].*/{
37733 s//\1/
37734 q
37735 }
37736 /^X\(\/\/\)$/{
37737 s//\1/
37738 q
37739 }
37740 /^X\(\/\).*/{
37741 s//\1/
37742 q
37743 }
37744 s/.*/./; q'`
37745 as_dir="$ac_dir"; as_fn_mkdir_p
37746 rm -f "$ac_prefix_conf_OUT"
37747 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37748 fi
37749 cp conftest.prefix _configs.sed
37750 else
cristy98dddb52010-11-04 00:30:15 +000037751 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 +000037752 fi
37753 rm -f conftest.*
37754fi
37755 ;;
37756 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037757 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037758 # are listed without --file. Let's play safe and only enable the eval
37759 # if we detect the quoting.
37760 case $CONFIG_FILES in
37761 *\'*) eval set x "$CONFIG_FILES" ;;
37762 *) set x $CONFIG_FILES ;;
37763 esac
37764 shift
37765 for mf
37766 do
37767 # Strip MF so we end up with the name of the file.
37768 mf=`echo "$mf" | sed -e 's/:.*$//'`
37769 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037770 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037771 # some people rename them; so instead we look at the file content.
37772 # Grep'ing the first line is not enough: some people post-process
37773 # each Makefile.in and add a new line on top of each file to say so.
37774 # Grep'ing the whole file is not good either: AIX grep has a line
37775 # limit of 2048, but all sed's we know have understand at least 4000.
37776 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37777 dirpart=`$as_dirname -- "$mf" ||
37778$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37779 X"$mf" : 'X\(//\)[^/]' \| \
37780 X"$mf" : 'X\(//\)$' \| \
37781 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37782$as_echo X"$mf" |
37783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37784 s//\1/
37785 q
37786 }
37787 /^X\(\/\/\)[^/].*/{
37788 s//\1/
37789 q
37790 }
37791 /^X\(\/\/\)$/{
37792 s//\1/
37793 q
37794 }
37795 /^X\(\/\).*/{
37796 s//\1/
37797 q
37798 }
37799 s/.*/./; q'`
37800 else
37801 continue
37802 fi
37803 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037804 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037805 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37806 test -z "$DEPDIR" && continue
37807 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37808 test -z "am__include" && continue
37809 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037810 # Find all dependency output files, they are included files with
37811 # $(DEPDIR) in their names. We invoke sed twice because it is the
37812 # simplest approach to changing $(DEPDIR) to its actual value in the
37813 # expansion.
37814 for file in `sed -n "
37815 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037816 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037817 # Make sure the directory exists.
37818 test -f "$dirpart/$file" && continue
37819 fdir=`$as_dirname -- "$file" ||
37820$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37821 X"$file" : 'X\(//\)[^/]' \| \
37822 X"$file" : 'X\(//\)$' \| \
37823 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37824$as_echo X"$file" |
37825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37826 s//\1/
37827 q
37828 }
37829 /^X\(\/\/\)[^/].*/{
37830 s//\1/
37831 q
37832 }
37833 /^X\(\/\/\)$/{
37834 s//\1/
37835 q
37836 }
37837 /^X\(\/\).*/{
37838 s//\1/
37839 q
37840 }
37841 s/.*/./; q'`
37842 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37843 # echo "creating $dirpart/$file"
37844 echo '# dummy' > "$dirpart/$file"
37845 done
37846 done
37847}
37848 ;;
37849 "libtool":C)
37850
37851 # See if we are running on zsh, and set the options which allow our
37852 # commands through without removal of \ escapes.
37853 if test -n "${ZSH_VERSION+set}" ; then
37854 setopt NO_GLOB_SUBST
37855 fi
37856
37857 cfgfile="${ofile}T"
37858 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37859 $RM "$cfgfile"
37860
37861 cat <<_LT_EOF >> "$cfgfile"
37862#! $SHELL
37863
37864# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37865# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37866# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37867# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37868#
37869# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037870# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37871# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037872# Written by Gordon Matzigkeit, 1996
37873#
37874# This file is part of GNU Libtool.
37875#
37876# GNU Libtool is free software; you can redistribute it and/or
37877# modify it under the terms of the GNU General Public License as
37878# published by the Free Software Foundation; either version 2 of
37879# the License, or (at your option) any later version.
37880#
37881# As a special exception to the GNU General Public License,
37882# if you distribute this file as part of a program or library that
37883# is built using GNU Libtool, you may include this file under the
37884# same distribution terms that you use for the rest of that program.
37885#
37886# GNU Libtool is distributed in the hope that it will be useful,
37887# but WITHOUT ANY WARRANTY; without even the implied warranty of
37888# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37889# GNU General Public License for more details.
37890#
37891# You should have received a copy of the GNU General Public License
37892# along with GNU Libtool; see the file COPYING. If not, a copy
37893# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37894# obtained by writing to the Free Software Foundation, Inc.,
37895# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37896
37897
37898# The names of the tagged configurations supported by this script.
37899available_tags="CXX "
37900
37901# ### BEGIN LIBTOOL CONFIG
37902
37903# A sed program that does not truncate output.
37904SED=$lt_SED
37905
37906# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37907Xsed="\$SED -e 1s/^X//"
37908
37909# A grep program that handles long lines.
37910GREP=$lt_GREP
37911
37912# An ERE matcher.
37913EGREP=$lt_EGREP
37914
37915# A literal string matcher.
37916FGREP=$lt_FGREP
37917
cristy0c60a692010-11-04 01:09:47 +000037918# Shell to use when invoking shell scripts.
37919SHELL=$lt_SHELL
37920
37921# An echo program that protects backslashes.
37922ECHO=$lt_ECHO
37923
cristy73bd4a52010-10-05 11:24:23 +000037924# Which release of libtool.m4 was used?
37925macro_version=$macro_version
37926macro_revision=$macro_revision
37927
37928# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037929AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037930
37931# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037932DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037933
37934# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037935OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037936
37937# Whether or not to build shared libraries.
37938build_libtool_libs=$enable_shared
37939
37940# Whether or not to build static libraries.
37941build_old_libs=$enable_static
37942
37943# What type of objects to build.
37944pic_mode=$pic_mode
37945
37946# Whether or not to optimize for fast installation.
37947fast_install=$enable_fast_install
37948
cristy99bd5232011-12-07 14:38:20 +000037949# The PATH separator for the build system.
37950PATH_SEPARATOR=$lt_PATH_SEPARATOR
37951
cristy73bd4a52010-10-05 11:24:23 +000037952# The host system.
37953host_alias=$host_alias
37954host=$host
37955host_os=$host_os
37956
37957# The build system.
37958build_alias=$build_alias
37959build=$build
37960build_os=$build_os
37961
37962# A BSD- or MS-compatible name lister.
37963NM=$lt_NM
37964
37965# Whether we need soft or hard links.
37966LN_S=$lt_LN_S
37967
37968# What is the maximum length of a command?
37969max_cmd_len=$max_cmd_len
37970
37971# Object file suffix (normally "o").
37972objext=$ac_objext
37973
37974# Executable file suffix (normally "").
37975exeext=$exeext
37976
37977# whether the shell understands "unset".
37978lt_unset=$lt_unset
37979
37980# turn spaces into newlines.
37981SP2NL=$lt_lt_SP2NL
37982
37983# turn newlines into spaces.
37984NL2SP=$lt_lt_NL2SP
37985
cristyda16f162011-02-19 23:52:17 +000037986# convert \$build file names to \$host format.
37987to_host_file_cmd=$lt_cv_to_host_file_cmd
37988
37989# convert \$build files to toolchain format.
37990to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37991
cristy73bd4a52010-10-05 11:24:23 +000037992# Method to check whether dependent libraries are shared objects.
37993deplibs_check_method=$lt_deplibs_check_method
37994
cristyda16f162011-02-19 23:52:17 +000037995# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037996file_magic_cmd=$lt_file_magic_cmd
37997
cristyda16f162011-02-19 23:52:17 +000037998# How to find potential files when deplibs_check_method = "file_magic".
37999file_magic_glob=$lt_file_magic_glob
38000
38001# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38002want_nocaseglob=$lt_want_nocaseglob
38003
38004# Command to associate shared and link libraries.
38005sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38006
cristy73bd4a52010-10-05 11:24:23 +000038007# The archiver.
38008AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038009
38010# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038011AR_FLAGS=$lt_AR_FLAGS
38012
cristyda16f162011-02-19 23:52:17 +000038013# How to feed a file listing to the archiver.
38014archiver_list_spec=$lt_archiver_list_spec
38015
cristy73bd4a52010-10-05 11:24:23 +000038016# A symbol stripping program.
38017STRIP=$lt_STRIP
38018
38019# Commands used to install an old-style archive.
38020RANLIB=$lt_RANLIB
38021old_postinstall_cmds=$lt_old_postinstall_cmds
38022old_postuninstall_cmds=$lt_old_postuninstall_cmds
38023
cristy0c60a692010-11-04 01:09:47 +000038024# Whether to use a lock for old archive extraction.
38025lock_old_archive_extraction=$lock_old_archive_extraction
38026
cristy73bd4a52010-10-05 11:24:23 +000038027# A C compiler.
38028LTCC=$lt_CC
38029
38030# LTCC compiler flags.
38031LTCFLAGS=$lt_CFLAGS
38032
38033# Take the output of nm and produce a listing of raw symbols and C names.
38034global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38035
38036# Transform the output of nm in a proper C declaration.
38037global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38038
38039# Transform the output of nm in a C name address pair.
38040global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38041
38042# Transform the output of nm in a C name address pair when lib prefix is needed.
38043global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38044
cristyda16f162011-02-19 23:52:17 +000038045# Specify filename containing input files for \$NM.
38046nm_file_list_spec=$lt_nm_file_list_spec
38047
38048# The root where to search for dependent libraries,and in which our libraries should be installed.
38049lt_sysroot=$lt_sysroot
38050
cristy73bd4a52010-10-05 11:24:23 +000038051# The name of the directory that contains temporary libtool files.
38052objdir=$objdir
38053
cristy73bd4a52010-10-05 11:24:23 +000038054# Used to examine libraries when file_magic_cmd begins with "file".
38055MAGIC_CMD=$MAGIC_CMD
38056
38057# Must we lock files when doing compilation?
38058need_locks=$lt_need_locks
38059
cristyda16f162011-02-19 23:52:17 +000038060# Manifest tool.
38061MANIFEST_TOOL=$lt_MANIFEST_TOOL
38062
cristy73bd4a52010-10-05 11:24:23 +000038063# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38064DSYMUTIL=$lt_DSYMUTIL
38065
38066# Tool to change global to local symbols on Mac OS X.
38067NMEDIT=$lt_NMEDIT
38068
38069# Tool to manipulate fat objects and archives on Mac OS X.
38070LIPO=$lt_LIPO
38071
38072# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38073OTOOL=$lt_OTOOL
38074
38075# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38076OTOOL64=$lt_OTOOL64
38077
38078# Old archive suffix (normally "a").
38079libext=$libext
38080
38081# Shared library suffix (normally ".so").
38082shrext_cmds=$lt_shrext_cmds
38083
38084# The commands to extract the exported symbol list from a shared archive.
38085extract_expsyms_cmds=$lt_extract_expsyms_cmds
38086
38087# Variables whose values should be saved in libtool wrapper scripts and
38088# restored at link time.
38089variables_saved_for_relink=$lt_variables_saved_for_relink
38090
38091# Do we need the "lib" prefix for modules?
38092need_lib_prefix=$need_lib_prefix
38093
38094# Do we need a version for libraries?
38095need_version=$need_version
38096
38097# Library versioning type.
38098version_type=$version_type
38099
38100# Shared library runtime path variable.
38101runpath_var=$runpath_var
38102
38103# Shared library path variable.
38104shlibpath_var=$shlibpath_var
38105
38106# Is shlibpath searched before the hard-coded library search path?
38107shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38108
38109# Format of library name prefix.
38110libname_spec=$lt_libname_spec
38111
38112# List of archive names. First name is the real one, the rest are links.
38113# The last name is the one that the linker finds with -lNAME
38114library_names_spec=$lt_library_names_spec
38115
38116# The coded name of the library, if different from the real name.
38117soname_spec=$lt_soname_spec
38118
cristy0c60a692010-11-04 01:09:47 +000038119# Permission mode override for installation of shared libraries.
38120install_override_mode=$lt_install_override_mode
38121
cristy73bd4a52010-10-05 11:24:23 +000038122# Command to use after installation of a shared archive.
38123postinstall_cmds=$lt_postinstall_cmds
38124
38125# Command to use after uninstallation of a shared archive.
38126postuninstall_cmds=$lt_postuninstall_cmds
38127
38128# Commands used to finish a libtool library installation in a directory.
38129finish_cmds=$lt_finish_cmds
38130
38131# As "finish_cmds", except a single script fragment to be evaled but
38132# not shown.
38133finish_eval=$lt_finish_eval
38134
38135# Whether we should hardcode library paths into libraries.
38136hardcode_into_libs=$hardcode_into_libs
38137
38138# Compile-time system search path for libraries.
38139sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38140
38141# Run-time system search path for libraries.
38142sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38143
38144# Whether dlopen is supported.
38145dlopen_support=$enable_dlopen
38146
38147# Whether dlopen of programs is supported.
38148dlopen_self=$enable_dlopen_self
38149
38150# Whether dlopen of statically linked programs is supported.
38151dlopen_self_static=$enable_dlopen_self_static
38152
38153# Commands to strip libraries.
38154old_striplib=$lt_old_striplib
38155striplib=$lt_striplib
38156
38157
38158# The linker used to build libraries.
38159LD=$lt_LD
38160
cristy0c60a692010-11-04 01:09:47 +000038161# How to create reloadable object files.
38162reload_flag=$lt_reload_flag
38163reload_cmds=$lt_reload_cmds
38164
cristy73bd4a52010-10-05 11:24:23 +000038165# Commands used to build an old-style archive.
38166old_archive_cmds=$lt_old_archive_cmds
38167
38168# A language specific compiler.
38169CC=$lt_compiler
38170
38171# Is the compiler the GNU compiler?
38172with_gcc=$GCC
38173
38174# Compiler flag to turn off builtin functions.
38175no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38176
cristy73bd4a52010-10-05 11:24:23 +000038177# Additional compiler flags for building library objects.
38178pic_flag=$lt_lt_prog_compiler_pic
38179
cristyda16f162011-02-19 23:52:17 +000038180# How to pass a linker flag through the compiler.
38181wl=$lt_lt_prog_compiler_wl
38182
cristy73bd4a52010-10-05 11:24:23 +000038183# Compiler flag to prevent dynamic linking.
38184link_static_flag=$lt_lt_prog_compiler_static
38185
38186# Does compiler simultaneously support -c and -o options?
38187compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38188
38189# Whether or not to add -lc for building shared libraries.
38190build_libtool_need_lc=$archive_cmds_need_lc
38191
38192# Whether or not to disallow shared libs when runtime libs are static.
38193allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38194
38195# Compiler flag to allow reflexive dlopens.
38196export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38197
38198# Compiler flag to generate shared objects directly from archives.
38199whole_archive_flag_spec=$lt_whole_archive_flag_spec
38200
38201# Whether the compiler copes with passing no objects directly.
38202compiler_needs_object=$lt_compiler_needs_object
38203
38204# Create an old-style archive from a shared archive.
38205old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38206
38207# Create a temporary old-style archive to link instead of a shared archive.
38208old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38209
38210# Commands used to build a shared archive.
38211archive_cmds=$lt_archive_cmds
38212archive_expsym_cmds=$lt_archive_expsym_cmds
38213
38214# Commands used to build a loadable module if different from building
38215# a shared archive.
38216module_cmds=$lt_module_cmds
38217module_expsym_cmds=$lt_module_expsym_cmds
38218
38219# Whether we are building with GNU ld or not.
38220with_gnu_ld=$lt_with_gnu_ld
38221
38222# Flag that allows shared libraries with undefined symbols to be built.
38223allow_undefined_flag=$lt_allow_undefined_flag
38224
38225# Flag that enforces no undefined symbols.
38226no_undefined_flag=$lt_no_undefined_flag
38227
38228# Flag to hardcode \$libdir into a binary during linking.
38229# This must work even if \$libdir does not exist
38230hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38231
cristy73bd4a52010-10-05 11:24:23 +000038232# Whether we need a single "-rpath" flag with a separated argument.
38233hardcode_libdir_separator=$lt_hardcode_libdir_separator
38234
38235# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38236# DIR into the resulting binary.
38237hardcode_direct=$hardcode_direct
38238
38239# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38240# DIR into the resulting binary and the resulting library dependency is
38241# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38242# library is relocated.
38243hardcode_direct_absolute=$hardcode_direct_absolute
38244
38245# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38246# into the resulting binary.
38247hardcode_minus_L=$hardcode_minus_L
38248
38249# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38250# into the resulting binary.
38251hardcode_shlibpath_var=$hardcode_shlibpath_var
38252
38253# Set to "yes" if building a shared library automatically hardcodes DIR
38254# into the library and all subsequent libraries and executables linked
38255# against it.
38256hardcode_automatic=$hardcode_automatic
38257
38258# Set to yes if linker adds runtime paths of dependent libraries
38259# to runtime path list.
38260inherit_rpath=$inherit_rpath
38261
38262# Whether libtool must link a program against all its dependency libraries.
38263link_all_deplibs=$link_all_deplibs
38264
cristy73bd4a52010-10-05 11:24:23 +000038265# Set to "yes" if exported symbols are required.
38266always_export_symbols=$always_export_symbols
38267
38268# The commands to list exported symbols.
38269export_symbols_cmds=$lt_export_symbols_cmds
38270
38271# Symbols that should not be listed in the preloaded symbols.
38272exclude_expsyms=$lt_exclude_expsyms
38273
38274# Symbols that must always be exported.
38275include_expsyms=$lt_include_expsyms
38276
38277# Commands necessary for linking programs (against libraries) with templates.
38278prelink_cmds=$lt_prelink_cmds
38279
cristyda16f162011-02-19 23:52:17 +000038280# Commands necessary for finishing linking programs.
38281postlink_cmds=$lt_postlink_cmds
38282
cristy73bd4a52010-10-05 11:24:23 +000038283# Specify filename containing input files.
38284file_list_spec=$lt_file_list_spec
38285
38286# How to hardcode a shared library path into an executable.
38287hardcode_action=$hardcode_action
38288
38289# The directories searched by this compiler when creating a shared library.
38290compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38291
38292# Dependencies to place before and after the objects being linked to
38293# create a shared library.
38294predep_objects=$lt_predep_objects
38295postdep_objects=$lt_postdep_objects
38296predeps=$lt_predeps
38297postdeps=$lt_postdeps
38298
38299# The library search path used internally by the compiler when linking
38300# a shared library.
38301compiler_lib_search_path=$lt_compiler_lib_search_path
38302
38303# ### END LIBTOOL CONFIG
38304
38305_LT_EOF
38306
38307 case $host_os in
38308 aix3*)
38309 cat <<\_LT_EOF >> "$cfgfile"
38310# AIX sometimes has problems with the GCC collect2 program. For some
38311# reason, if we set the COLLECT_NAMES environment variable, the problems
38312# vanish in a puff of smoke.
38313if test "X${COLLECT_NAMES+set}" != Xset; then
38314 COLLECT_NAMES=
38315 export COLLECT_NAMES
38316fi
38317_LT_EOF
38318 ;;
38319 esac
38320
38321
38322ltmain="$ac_aux_dir/ltmain.sh"
38323
38324
38325 # We use sed instead of cat because bash on DJGPP gets confused if
38326 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38327 # text mode, it properly converts lines to CR/LF. This bash problem
38328 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038329 sed '$q' "$ltmain" >> "$cfgfile" \
38330 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038331
cristyda16f162011-02-19 23:52:17 +000038332 if test x"$xsi_shell" = xyes; then
38333 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38334func_dirname ()\
38335{\
38336\ case ${1} in\
38337\ */*) func_dirname_result="${1%/*}${2}" ;;\
38338\ * ) func_dirname_result="${3}" ;;\
38339\ esac\
38340} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38341 && mv -f "$cfgfile.tmp" "$cfgfile" \
38342 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38343test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038344
38345
cristyda16f162011-02-19 23:52:17 +000038346 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38347func_basename ()\
38348{\
38349\ func_basename_result="${1##*/}"\
38350} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38351 && mv -f "$cfgfile.tmp" "$cfgfile" \
38352 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38353test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038354
38355
cristyda16f162011-02-19 23:52:17 +000038356 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38357func_dirname_and_basename ()\
38358{\
38359\ case ${1} in\
38360\ */*) func_dirname_result="${1%/*}${2}" ;;\
38361\ * ) func_dirname_result="${3}" ;;\
38362\ esac\
38363\ func_basename_result="${1##*/}"\
38364} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38365 && mv -f "$cfgfile.tmp" "$cfgfile" \
38366 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38367test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038368
cristyda16f162011-02-19 23:52:17 +000038369
38370 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38371func_stripname ()\
38372{\
38373\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38374\ # positional parameters, so assign one to ordinary parameter first.\
38375\ func_stripname_result=${3}\
38376\ func_stripname_result=${func_stripname_result#"${1}"}\
38377\ func_stripname_result=${func_stripname_result%"${2}"}\
38378} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38379 && mv -f "$cfgfile.tmp" "$cfgfile" \
38380 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38381test 0 -eq $? || _lt_function_replace_fail=:
38382
38383
38384 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38385func_split_long_opt ()\
38386{\
38387\ func_split_long_opt_name=${1%%=*}\
38388\ func_split_long_opt_arg=${1#*=}\
38389} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38390 && mv -f "$cfgfile.tmp" "$cfgfile" \
38391 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38392test 0 -eq $? || _lt_function_replace_fail=:
38393
38394
38395 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38396func_split_short_opt ()\
38397{\
38398\ func_split_short_opt_arg=${1#??}\
38399\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38400} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38401 && mv -f "$cfgfile.tmp" "$cfgfile" \
38402 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38403test 0 -eq $? || _lt_function_replace_fail=:
38404
38405
38406 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38407func_lo2o ()\
38408{\
38409\ case ${1} in\
38410\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38411\ *) func_lo2o_result=${1} ;;\
38412\ esac\
38413} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38414 && mv -f "$cfgfile.tmp" "$cfgfile" \
38415 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38416test 0 -eq $? || _lt_function_replace_fail=:
38417
38418
38419 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38420func_xform ()\
38421{\
38422 func_xform_result=${1%.*}.lo\
38423} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38424 && mv -f "$cfgfile.tmp" "$cfgfile" \
38425 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38426test 0 -eq $? || _lt_function_replace_fail=:
38427
38428
38429 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38430func_arith ()\
38431{\
38432 func_arith_result=$(( $* ))\
38433} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38434 && mv -f "$cfgfile.tmp" "$cfgfile" \
38435 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38436test 0 -eq $? || _lt_function_replace_fail=:
38437
38438
38439 sed -e '/^func_len ()$/,/^} # func_len /c\
38440func_len ()\
38441{\
38442 func_len_result=${#1}\
38443} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38444 && mv -f "$cfgfile.tmp" "$cfgfile" \
38445 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38446test 0 -eq $? || _lt_function_replace_fail=:
38447
38448fi
38449
38450if test x"$lt_shell_append" = xyes; then
38451 sed -e '/^func_append ()$/,/^} # func_append /c\
38452func_append ()\
38453{\
38454 eval "${1}+=\\${2}"\
38455} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38456 && mv -f "$cfgfile.tmp" "$cfgfile" \
38457 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38458test 0 -eq $? || _lt_function_replace_fail=:
38459
38460
38461 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38462func_append_quoted ()\
38463{\
38464\ func_quote_for_eval "${2}"\
38465\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38466} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38467 && mv -f "$cfgfile.tmp" "$cfgfile" \
38468 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38469test 0 -eq $? || _lt_function_replace_fail=:
38470
38471
38472 # Save a `func_append' function call where possible by direct use of '+='
38473 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38474 && mv -f "$cfgfile.tmp" "$cfgfile" \
38475 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38476 test 0 -eq $? || _lt_function_replace_fail=:
38477else
38478 # Save a `func_append' function call even when '+=' is not available
38479 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38480 && mv -f "$cfgfile.tmp" "$cfgfile" \
38481 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38482 test 0 -eq $? || _lt_function_replace_fail=:
38483fi
38484
38485if test x"$_lt_function_replace_fail" = x":"; then
38486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38487$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38488fi
38489
38490
38491 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038492 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38493 chmod +x "$ofile"
38494
38495
38496 cat <<_LT_EOF >> "$ofile"
38497
38498# ### BEGIN LIBTOOL TAG CONFIG: CXX
38499
38500# The linker used to build libraries.
38501LD=$lt_LD_CXX
38502
cristy0c60a692010-11-04 01:09:47 +000038503# How to create reloadable object files.
38504reload_flag=$lt_reload_flag_CXX
38505reload_cmds=$lt_reload_cmds_CXX
38506
cristy73bd4a52010-10-05 11:24:23 +000038507# Commands used to build an old-style archive.
38508old_archive_cmds=$lt_old_archive_cmds_CXX
38509
38510# A language specific compiler.
38511CC=$lt_compiler_CXX
38512
38513# Is the compiler the GNU compiler?
38514with_gcc=$GCC_CXX
38515
38516# Compiler flag to turn off builtin functions.
38517no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38518
cristy73bd4a52010-10-05 11:24:23 +000038519# Additional compiler flags for building library objects.
38520pic_flag=$lt_lt_prog_compiler_pic_CXX
38521
cristyda16f162011-02-19 23:52:17 +000038522# How to pass a linker flag through the compiler.
38523wl=$lt_lt_prog_compiler_wl_CXX
38524
cristy73bd4a52010-10-05 11:24:23 +000038525# Compiler flag to prevent dynamic linking.
38526link_static_flag=$lt_lt_prog_compiler_static_CXX
38527
38528# Does compiler simultaneously support -c and -o options?
38529compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38530
38531# Whether or not to add -lc for building shared libraries.
38532build_libtool_need_lc=$archive_cmds_need_lc_CXX
38533
38534# Whether or not to disallow shared libs when runtime libs are static.
38535allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38536
38537# Compiler flag to allow reflexive dlopens.
38538export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38539
38540# Compiler flag to generate shared objects directly from archives.
38541whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38542
38543# Whether the compiler copes with passing no objects directly.
38544compiler_needs_object=$lt_compiler_needs_object_CXX
38545
38546# Create an old-style archive from a shared archive.
38547old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38548
38549# Create a temporary old-style archive to link instead of a shared archive.
38550old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38551
38552# Commands used to build a shared archive.
38553archive_cmds=$lt_archive_cmds_CXX
38554archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38555
38556# Commands used to build a loadable module if different from building
38557# a shared archive.
38558module_cmds=$lt_module_cmds_CXX
38559module_expsym_cmds=$lt_module_expsym_cmds_CXX
38560
38561# Whether we are building with GNU ld or not.
38562with_gnu_ld=$lt_with_gnu_ld_CXX
38563
38564# Flag that allows shared libraries with undefined symbols to be built.
38565allow_undefined_flag=$lt_allow_undefined_flag_CXX
38566
38567# Flag that enforces no undefined symbols.
38568no_undefined_flag=$lt_no_undefined_flag_CXX
38569
38570# Flag to hardcode \$libdir into a binary during linking.
38571# This must work even if \$libdir does not exist
38572hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38573
cristy73bd4a52010-10-05 11:24:23 +000038574# Whether we need a single "-rpath" flag with a separated argument.
38575hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38576
38577# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38578# DIR into the resulting binary.
38579hardcode_direct=$hardcode_direct_CXX
38580
38581# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38582# DIR into the resulting binary and the resulting library dependency is
38583# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38584# library is relocated.
38585hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38586
38587# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38588# into the resulting binary.
38589hardcode_minus_L=$hardcode_minus_L_CXX
38590
38591# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38592# into the resulting binary.
38593hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38594
38595# Set to "yes" if building a shared library automatically hardcodes DIR
38596# into the library and all subsequent libraries and executables linked
38597# against it.
38598hardcode_automatic=$hardcode_automatic_CXX
38599
38600# Set to yes if linker adds runtime paths of dependent libraries
38601# to runtime path list.
38602inherit_rpath=$inherit_rpath_CXX
38603
38604# Whether libtool must link a program against all its dependency libraries.
38605link_all_deplibs=$link_all_deplibs_CXX
38606
cristy73bd4a52010-10-05 11:24:23 +000038607# Set to "yes" if exported symbols are required.
38608always_export_symbols=$always_export_symbols_CXX
38609
38610# The commands to list exported symbols.
38611export_symbols_cmds=$lt_export_symbols_cmds_CXX
38612
38613# Symbols that should not be listed in the preloaded symbols.
38614exclude_expsyms=$lt_exclude_expsyms_CXX
38615
38616# Symbols that must always be exported.
38617include_expsyms=$lt_include_expsyms_CXX
38618
38619# Commands necessary for linking programs (against libraries) with templates.
38620prelink_cmds=$lt_prelink_cmds_CXX
38621
cristyda16f162011-02-19 23:52:17 +000038622# Commands necessary for finishing linking programs.
38623postlink_cmds=$lt_postlink_cmds_CXX
38624
cristy73bd4a52010-10-05 11:24:23 +000038625# Specify filename containing input files.
38626file_list_spec=$lt_file_list_spec_CXX
38627
38628# How to hardcode a shared library path into an executable.
38629hardcode_action=$hardcode_action_CXX
38630
38631# The directories searched by this compiler when creating a shared library.
38632compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38633
38634# Dependencies to place before and after the objects being linked to
38635# create a shared library.
38636predep_objects=$lt_predep_objects_CXX
38637postdep_objects=$lt_postdep_objects_CXX
38638predeps=$lt_predeps_CXX
38639postdeps=$lt_postdeps_CXX
38640
38641# The library search path used internally by the compiler when linking
38642# a shared library.
38643compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38644
38645# ### END LIBTOOL TAG CONFIG: CXX
38646_LT_EOF
38647
38648 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038649 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038650 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038651 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038652 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38653 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38654
38655 esac
38656done # for ac_tag
38657
38658
cristy8b350f62009-11-15 23:12:43 +000038659as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038660_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038661ac_clean_files=$ac_clean_files_save
38662
38663test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038664 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038665
38666
38667# configure is writing to config.log, and then calls config.status.
38668# config.status does its own redirection, appending to config.log.
38669# Unfortunately, on DOS this fails, as config.log is still kept open
38670# by configure, so config.status won't be able to write to it; its
38671# output is simply discarded. So we exec the FD to /dev/null,
38672# effectively closing config.log, so it can be properly (re)opened and
38673# appended to by config.status. When coming back to configure, we
38674# need to make the FD available again.
38675if test "$no_create" != yes; then
38676 ac_cs_success=:
38677 ac_config_status_args=
38678 test "$silent" = yes &&
38679 ac_config_status_args="$ac_config_status_args --quiet"
38680 exec 5>/dev/null
38681 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38682 exec 5>>config.log
38683 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38684 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038685 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038686fi
38687if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038689$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38690fi
38691
38692
38693rm -f magick-version
38694
cristy430a7312010-01-21 20:44:04 +000038695result_dejavu_font_dir='none'
38696if test "${dejavu_font_dir}x" != 'x'; then
38697 result_dejavu_font_dir=$dejavu_font_dir
38698fi
38699
cristy3ed852e2009-09-05 21:47:34 +000038700result_ghostscript_font_dir='none'
38701if test "${ghostscript_font_dir}x" != 'x'; then
38702 result_ghostscript_font_dir=$ghostscript_font_dir
38703fi
38704
38705result_windows_font_dir='none'
38706if test "${windows_font_dir}x" != 'x'; then
38707 result_windows_font_dir=${windows_font_dir}
38708fi
38709
cristyad38abe2012-12-23 23:03:21 +000038710{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038711ImageMagick is configured as follows. Please verify that this configuration
38712matches your expectations.
38713
38714Host system type: $host
38715Build system type: $build
38716
38717 Option Value
38718-------------------------------------------------------------------------------
38719Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38720Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038721Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038722GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38723Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38724High Dynamic Range Imagery
38725 --enable-hdri=$enable_hdri $enable_hdri
38726
38727Delegate Configuration:
38728BZLIB --with-bzlib=$with_bzlib $have_bzlib
38729Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038730Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038731DJVU --with-djvu=$with_djvu $have_djvu
38732DPS --with-dps=$with_dps $have_dps
38733FFTW --with-fftw=$with_fftw $have_fftw
38734FlashPIX --with-fpx=$with_fpx $have_fpx
38735FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38736FreeType --with-freetype=$with_freetype $have_freetype
38737GhostPCL None $PCLDelegate ($PCLVersion)
38738GhostXPS None $XPSDelegate ($XPSVersion)
38739Ghostscript None $PSDelegate ($GSVersion)
38740Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38741Ghostscript lib --with-gslib=$with_gslib $have_gslib
38742Graphviz --with-gvc=$with_gvc $have_gvc
38743JBIG --with-jbig=$with_jbig $have_jbig
38744JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38745JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038746LCMS v1 --with-lcms=$with_lcms $have_lcms
38747LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038748LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038749LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038750LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038751Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38752OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038753PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038754PERL --with-perl=$with_perl $have_perl
38755PNG --with-png=$with_png $have_png
38756RSVG --with-rsvg=$with_rsvg $have_rsvg
38757TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038758WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038759Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038760WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038761X11 --with-x=$with_x $have_x
38762XML --with-xml=$with_xml $have_xml
38763ZLIB --with-zlib=$with_zlib $have_zlib
38764
38765X11 Configuration:
38766 X_CFLAGS = $X_CFLAGS
38767 X_PRE_LIBS = $X_PRE_LIBS
38768 X_LIBS = $X_LIBS
38769 X_EXTRA_LIBS = $X_EXTRA_LIBS
38770
38771Options used to compile and link:
38772 PREFIX = $PREFIX_DIR
38773 EXEC-PREFIX = $EXEC_PREFIX_DIR
38774 VERSION = $PACKAGE_VERSION
38775 CC = $CC
38776 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038777 CPPFLAGS = $MAGICK_CPPFLAGS
38778 PCFLAGS = $MAGICK_PCFLAGS
38779 DEFS = $DEFS
38780 LDFLAGS = $LDFLAGS
38781 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38782 LIBS = $MAGICK_LIBS
38783 CXX = $CXX
38784 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038785 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038786 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038787" >&5
cristyad38abe2012-12-23 23:03:21 +000038788$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038789ImageMagick is configured as follows. Please verify that this configuration
38790matches your expectations.
38791
38792Host system type: $host
38793Build system type: $build
38794
38795 Option Value
38796-------------------------------------------------------------------------------
38797Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38798Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038799Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038800GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38801Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38802High Dynamic Range Imagery
38803 --enable-hdri=$enable_hdri $enable_hdri
38804
38805Delegate Configuration:
38806BZLIB --with-bzlib=$with_bzlib $have_bzlib
38807Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038808Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038809DJVU --with-djvu=$with_djvu $have_djvu
38810DPS --with-dps=$with_dps $have_dps
38811FFTW --with-fftw=$with_fftw $have_fftw
38812FlashPIX --with-fpx=$with_fpx $have_fpx
38813FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38814FreeType --with-freetype=$with_freetype $have_freetype
38815GhostPCL None $PCLDelegate ($PCLVersion)
38816GhostXPS None $XPSDelegate ($XPSVersion)
38817Ghostscript None $PSDelegate ($GSVersion)
38818Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38819Ghostscript lib --with-gslib=$with_gslib $have_gslib
38820Graphviz --with-gvc=$with_gvc $have_gvc
38821JBIG --with-jbig=$with_jbig $have_jbig
38822JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38823JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038824LCMS v1 --with-lcms=$with_lcms $have_lcms
38825LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038826LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038827LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038828LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038829Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38830OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038831PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038832PERL --with-perl=$with_perl $have_perl
38833PNG --with-png=$with_png $have_png
38834RSVG --with-rsvg=$with_rsvg $have_rsvg
38835TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038836WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038837Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038838WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038839X11 --with-x=$with_x $have_x
38840XML --with-xml=$with_xml $have_xml
38841ZLIB --with-zlib=$with_zlib $have_zlib
38842
38843X11 Configuration:
38844 X_CFLAGS = $X_CFLAGS
38845 X_PRE_LIBS = $X_PRE_LIBS
38846 X_LIBS = $X_LIBS
38847 X_EXTRA_LIBS = $X_EXTRA_LIBS
38848
38849Options used to compile and link:
38850 PREFIX = $PREFIX_DIR
38851 EXEC-PREFIX = $EXEC_PREFIX_DIR
38852 VERSION = $PACKAGE_VERSION
38853 CC = $CC
38854 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038855 CPPFLAGS = $MAGICK_CPPFLAGS
38856 PCFLAGS = $MAGICK_PCFLAGS
38857 DEFS = $DEFS
38858 LDFLAGS = $LDFLAGS
38859 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38860 LIBS = $MAGICK_LIBS
38861 CXX = $CXX
38862 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038863 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038864 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038865" >&6; }