blob: 71ea86e5ea37a61a218945f8ed42f4243b74c7c0 [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
cristy86e86092013-08-04 17:43:57 +0000695WebPEncodeDelegate
696WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000697UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000699SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000701RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000702RMDelegate
703RLEEncodeDelegate
704PSDelegate
705POVDelegate
706PGPDecodeDelegate
707PCLDelegate
708MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000709MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000710MPEGEncodeDelegate
711MPEGDecodeDelegate
712MANDelegate
713LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000714LPRDelegate
715LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000716JXREncodeDelegate
717JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718ILBMEncodeDelegate
719ILBMDecodeDelegate
720HTMLDecodeDelegate
721HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000722GnuplotDecodeDelegate
723MogrifyDelegate
724DisplayDelegate
725ConvertDelegate
cristy3ed852e2009-09-05 21:47:34 +0000726EditorDelegate
727EchoDelegate
728DVIDecodeDelegate
729GVCDecodeDelegate
730DNGDecodeDelegate
731CatDelegate
cristy3ed852e2009-09-05 21:47:34 +0000732BrowseDelegate
733BZIPDelegate
734BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000735AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000736SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000737SHAREARCH_RELATIVE_PATH
738SHAREARCH_DIRNAME
739SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000740SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000741CONFIGURE_PATH
cristydd17feb2014-03-05 02:06:32 +0000742INSTALL_DOC_FALSE
743INSTALL_DOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000744DOCUMENTATION_PATH
745FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000746FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000747CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000748CODER_DIRNAME
749MODULES_PATH
750MODULES_RELATIVE_PATH
751MODULES_DIRNAME
752MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000753LIB_BIN_DIR_PATH
754LIB_BIN_DIR_RELATIVE_PATH
755LIB_BIN_DIR
756LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000757LIBRARY_PATH
758EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000759INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000760INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000761PERLMAINCC
762XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000763XML_DELEGATE_FALSE
764XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000765xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000766WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000767WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000768WMF_DELEGATE_FALSE
769WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000770WEBP_LIBS
771WEBP_DELEGATE_FALSE
772WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000773TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774TIFF_DELEGATE_FALSE
775TIFF_DELEGATE_TRUE
776CAIRO_DELEGATE_FALSE
777CAIRO_DELEGATE_TRUE
778RSVG_DELEGATE_FALSE
779RSVG_DELEGATE_TRUE
780CAIRO_SVG_LIBS
781CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000782RSVG_LIBS
783RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000784PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000785PNG_DELEGATE_FALSE
786PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000787PANGOCAIRO_DELEGATE_FALSE
788PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000789PANGO_DELEGATE_FALSE
790PANGO_DELEGATE_TRUE
791PANGO_LIBS
792PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000793OPENEXR_DELEGATE_FALSE
794OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000795OPENEXR_LIBS
796OPENEXR_CFLAGS
cristy854c9cf2013-08-10 21:03:06 +0000797MUPDF_LIBS
798MUPDF_DELEGATE_FALSE
799MUPDF_DELEGATE_TRUE
cristyfbb0ef02010-12-19 02:32:11 +0000800LZMA_DELEGATE_FALSE
801LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000802LZMA_LIBS
803LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000804LQR_DELEGATE_FALSE
805LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806LQR_LIBS
807LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000808LIBOPENJP2_DELEGATE_FALSE
809LIBOPENJP2_DELEGATE_TRUE
810LIBOPENJP2_LIBS
811LIBOPENJP2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000812LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813LCMS_DELEGATE_FALSE
814LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816JPEG_DELEGATE_FALSE
817JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000819JBIG_DELEGATE_FALSE
820JBIG_DELEGATE_TRUE
821GVC_DELEGATE_FALSE
822GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000823GVC_LIBS
824GVC_CFLAGS
825GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000826GS_DELEGATE_FALSE
827GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000828FREETYPE_DELEGATE_FALSE
829FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000830FREETYPE_LIBS
831FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000832FONTCONFIG_DELEGATE_FALSE
833FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834FONTCONFIG_LIBS
835FONTCONFIG_CFLAGS
836FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000837FPX_DELEGATE_FALSE
838FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000840FFTW_DELEGATE_FALSE
841FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000842DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000843DJVU_DELEGATE_FALSE
844DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000845DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000846DPS_DELEGATE_FALSE
847DPS_DELEGATE_TRUE
848AUTOTRACE_DELEGATE_FALSE
849AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000850AUTOTRACE_LIBS
851AUTOTRACE_CFLAGS
852LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000853WITH_LTDL_FALSE
854WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000855ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000856ZLIB_DELEGATE_FALSE
857ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000858XEXT_LIBS
859X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000860X11_DELEGATE_FALSE
861X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000862X_EXTRA_LIBS
863X_LIBS
864X_PRE_LIBS
865X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000866XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000867BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000868BZLIB_DELEGATE_FALSE
869BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000870CCMALLOCDelegate
871UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000872HasUMEM_FALSE
873HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000874GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000875WITH_MAGICK_PLUS_PLUS_FALSE
876WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000877OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000878MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000879POW_LIB
880LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000881UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000882UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000883UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000884UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000885UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000886UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000887INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000888INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000889UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000890UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000891INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000892INT32_T
893UINT16_T
894INT16_T
895UINT8_T
896INT8_T
897LIBRARY_EXTRA_CPPFLAGS
898MODULE_EXTRA_CPPFLAGS
899LIBSTDCLDFLAGS
900PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000901MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000902MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000903QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000904LEGACY_SUPPORT_FALSE
905LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000906MAINT
907MAINTAINER_MODE_FALSE
908MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000909MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000910WITH_MODULES_FALSE
911WITH_MODULES_TRUE
912WITH_SHARED_LIBS_FALSE
913WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000914LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000915CXXCPP
916OTOOL64
917OTOOL
918LIPO
919NMEDIT
920DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000921MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000922RANLIB
cristyda16f162011-02-19 23:52:17 +0000923ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000924AR
925NM
926ac_ct_DUMPBIN
927DUMPBIN
928LIBTOOL
929OBJDUMP
930DLLTOOL
931AS
cristy3ed852e2009-09-05 21:47:34 +0000932LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000933CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000934CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000935OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000936THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000937PTHREAD_CFLAGS
938PTHREAD_LIBS
939PTHREAD_CC
940ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000941pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000942SHAREARCH_DIR
943INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000944WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000945USING_CL_FALSE
946USING_CL_TRUE
947CYGWIN_BUILD_FALSE
948CYGWIN_BUILD_TRUE
949WIN32_NATIVE_BUILD_FALSE
950WIN32_NATIVE_BUILD_TRUE
951WINGDI32_DELEGATE_FALSE
952WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000953GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000954HAVE_LD_VERSION_SCRIPT_FALSE
955HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000956PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000957PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000958LN_S
cristy3ed852e2009-09-05 21:47:34 +0000959LD
cristy73bd4a52010-10-05 11:24:23 +0000960FGREP
961SED
962am__fastdepCXX_FALSE
963am__fastdepCXX_TRUE
964CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000965ac_ct_CXX
966CXXFLAGS
967CXX
cristya0b81c32010-01-22 02:54:33 +0000968EGREP
969GREP
970CPP
cristy73bd4a52010-10-05 11:24:23 +0000971am__fastdepCC_FALSE
972am__fastdepCC_TRUE
973CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000974am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000975AMDEPBACKSLASH
976AMDEP_FALSE
977AMDEP_TRUE
978am__quote
979am__include
980DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000981OBJEXT
982EXEEXT
983ac_ct_CC
984CPPFLAGS
985LDFLAGS
986CFLAGS
987CC
988DIRSEP
989MAGICK_FILTER_MODULE_PATH
990MAGICK_CONFIGURE_BUILD_PATH
991MAGICK_CONFIGURE_SRC_PATH
992MAGICK_CODER_MODULE_PATH
993MAN_DIR
994INFO_DIR
995PERSISTINCLUDE_DIR
996INCLUDE_DIR
997LIB_DIR
998LOCALSTATE_DIR
999SHAREDSTATE_DIR
1000SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001001DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001002DATA_DIR
1003LIBEXEC_DIR
1004SBIN_DIR
1005BIN_DIR
1006EXEC_PREFIX_DIR
1007PREFIX_DIR
1008CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001009MAGICKPP_LIB_VERSION_TEXT
1010MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001011MAGICK_LIB_VERSION_NUMBER
1012MAGICK_LIB_VERSION_TEXT
1013MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001014AM_BACKSLASH
1015AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001016AM_DEFAULT_V
1017AM_V
cristy73bd4a52010-10-05 11:24:23 +00001018am__untar
1019am__tar
1020AMTAR
1021am__leading_dot
1022SET_MAKE
1023AWK
1024mkdir_p
1025MKDIR_P
1026INSTALL_STRIP_PROGRAM
1027STRIP
1028install_sh
1029MAKEINFO
1030AUTOHEADER
1031AUTOMAKE
1032AUTOCONF
1033ACLOCAL
1034VERSION
1035PACKAGE
1036CYGPATH_W
1037am__isrc
1038INSTALL_DATA
1039INSTALL_SCRIPT
1040INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001041PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001042PACKAGE_RELEASE_DATE
1043PACKAGE_LIB_VERSION_NUMBER
1044PACKAGE_LIB_VERSION
1045PACKAGE_CHANGE_DATE
1046PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001047PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001048MAGICKPP_LIBRARY_VERSION_INFO
1049MAGICKPP_LIBRARY_CURRENT_MIN
1050MAGICKPP_LIBRARY_AGE
1051MAGICKPP_LIBRARY_REVISION
1052MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001053MAGICK_LIBRARY_VERSION_INFO
1054MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001055MAGICK_LIBRARY_AGE
1056MAGICK_LIBRARY_REVISION
1057MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001058MAGICK_SVN_REVISION
1059MAGICK_VERSION
1060MAGICK_PATCHLEVEL_VERSION
1061MAGICK_MICRO_VERSION
1062MAGICK_MINOR_VERSION
1063MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001064MAGICK_TARGET_OS
1065MAGICK_TARGET_VENDOR
1066MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001067target_os
1068target_vendor
1069target_cpu
1070target
1071host_os
1072host_vendor
1073host_cpu
1074host
1075build_os
1076build_vendor
1077build_cpu
1078build
1079CONFIGURE_ARGS
1080DISTCHECK_CONFIG_FLAGS
1081target_alias
1082host_alias
1083build_alias
1084LIBS
1085ECHO_T
1086ECHO_N
1087ECHO_C
1088DEFS
1089mandir
1090localedir
1091libdir
1092psdir
1093pdfdir
1094dvidir
1095htmldir
1096infodir
1097docdir
1098oldincludedir
1099includedir
1100localstatedir
1101sharedstatedir
1102sysconfdir
1103datadir
1104datarootdir
1105libexecdir
1106sbindir
1107bindir
1108program_transform_name
1109prefix
1110exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001111PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001112PACKAGE_BUGREPORT
1113PACKAGE_STRING
1114PACKAGE_VERSION
1115PACKAGE_TARNAME
1116PACKAGE_NAME
1117PATH_SEPARATOR
1118SHELL'
1119ac_subst_files=''
1120ac_user_opts='
1121enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001122enable_silent_rules
1123enable_dependency_tracking
1124with_gnu_ld
1125with_dmalloc
cristya0459972013-11-03 18:09:35 +00001126with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001127enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001128enable_bounds_checking
1129enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001130with_includearch_dir
1131with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001132with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001133with_threads
1134enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001135enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001136enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001137enable_shared
1138enable_static
1139with_pic
1140enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001141with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001142enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001143with_modules
1144enable_delegate_build
1145enable_deprecated
1146enable_installed
1147enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001148enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001149enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001150enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001151enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001152enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001153enable_ccmalloc
1154enable_efence
1155enable_prof
1156enable_gprof
1157enable_gcov
1158with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001159enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001160with_quantum_depth
1161with_cache
1162with_frozenpaths
1163with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001164with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001165with_perl
1166with_perl_options
1167with_umem
1168with_libstdc
1169with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001170with_x
cristy3ed852e2009-09-05 21:47:34 +00001171with_zlib
1172with_autotrace
1173with_dps
1174with_djvu
cristy430a7312010-01-21 20:44:04 +00001175with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001176with_fftw
1177with_fpx
1178with_fontconfig
1179with_freetype
1180with_gslib
1181with_fontpath
1182with_gs_font_dir
1183with_gvc
1184with_jbig
1185with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001186with_lcms
cristy71203402010-06-18 13:12:03 +00001187with_lcms2
cristy99db3872014-01-01 15:11:34 +00001188with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001189with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001190with_lzma
cristy854c9cf2013-08-10 21:03:06 +00001191with_mupdf
cristy3ed852e2009-09-05 21:47:34 +00001192with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001193with_pango
cristy3ed852e2009-09-05 21:47:34 +00001194with_png
1195with_rsvg
1196with_tiff
cristyb1860752011-03-14 00:27:46 +00001197with_webp
cristy3ed852e2009-09-05 21:47:34 +00001198with_windows_font_dir
1199with_wmf
1200with_xml
cristydd17feb2014-03-05 02:06:32 +00001201enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001202'
1203 ac_precious_vars='build_alias
1204host_alias
1205target_alias
1206CC
1207CFLAGS
1208LDFLAGS
1209LIBS
1210CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001211CPP
cristy3ed852e2009-09-05 21:47:34 +00001212CXX
1213CXXFLAGS
1214CCC
cristy73bd4a52010-10-05 11:24:23 +00001215PKG_CONFIG
1216CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001217XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001218AUTOTRACE_CFLAGS
1219AUTOTRACE_LIBS
1220FONTCONFIG_CFLAGS
1221FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001222FREETYPE_CFLAGS
1223FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001224GVC_CFLAGS
1225GVC_LIBS
cristy99db3872014-01-01 15:11:34 +00001226LIBOPENJP2_CFLAGS
1227LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001228LQR_CFLAGS
1229LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001230LZMA_CFLAGS
1231LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001232OPENEXR_CFLAGS
1233OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001234PANGO_CFLAGS
1235PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001236RSVG_CFLAGS
1237RSVG_LIBS
1238CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001239CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001240
1241
1242# Initialize some variables set by options.
1243ac_init_help=
1244ac_init_version=false
1245ac_unrecognized_opts=
1246ac_unrecognized_sep=
1247# The variables have the same names as the options, with
1248# dashes changed to underlines.
1249cache_file=/dev/null
1250exec_prefix=NONE
1251no_create=
1252no_recursion=
1253prefix=NONE
1254program_prefix=NONE
1255program_suffix=NONE
1256program_transform_name=s,x,x,
1257silent=
1258site=
1259srcdir=
1260verbose=
1261x_includes=NONE
1262x_libraries=NONE
1263
1264# Installation directory options.
1265# These are left unexpanded so users can "make install exec_prefix=/foo"
1266# and all the variables that are supposed to be based on exec_prefix
1267# by default will actually change.
1268# Use braces instead of parens because sh, perl, etc. also accept them.
1269# (The list follows the same order as the GNU Coding Standards.)
1270bindir='${exec_prefix}/bin'
1271sbindir='${exec_prefix}/sbin'
1272libexecdir='${exec_prefix}/libexec'
1273datarootdir='${prefix}/share'
1274datadir='${datarootdir}'
1275sysconfdir='${prefix}/etc'
1276sharedstatedir='${prefix}/com'
1277localstatedir='${prefix}/var'
1278includedir='${prefix}/include'
1279oldincludedir='/usr/include'
1280docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1281infodir='${datarootdir}/info'
1282htmldir='${docdir}'
1283dvidir='${docdir}'
1284pdfdir='${docdir}'
1285psdir='${docdir}'
1286libdir='${exec_prefix}/lib'
1287localedir='${datarootdir}/locale'
1288mandir='${datarootdir}/man'
1289
1290ac_prev=
1291ac_dashdash=
1292for ac_option
1293do
1294 # If the previous option needs an argument, assign it.
1295 if test -n "$ac_prev"; then
1296 eval $ac_prev=\$ac_option
1297 ac_prev=
1298 continue
1299 fi
1300
1301 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001302 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1303 *=) ac_optarg= ;;
1304 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001305 esac
1306
1307 # Accept the important Cygnus configure options, so we can diagnose typos.
1308
1309 case $ac_dashdash$ac_option in
1310 --)
1311 ac_dashdash=yes ;;
1312
1313 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1314 ac_prev=bindir ;;
1315 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1316 bindir=$ac_optarg ;;
1317
1318 -build | --build | --buil | --bui | --bu)
1319 ac_prev=build_alias ;;
1320 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1321 build_alias=$ac_optarg ;;
1322
1323 -cache-file | --cache-file | --cache-fil | --cache-fi \
1324 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1325 ac_prev=cache_file ;;
1326 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1327 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1328 cache_file=$ac_optarg ;;
1329
1330 --config-cache | -C)
1331 cache_file=config.cache ;;
1332
1333 -datadir | --datadir | --datadi | --datad)
1334 ac_prev=datadir ;;
1335 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1336 datadir=$ac_optarg ;;
1337
1338 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1339 | --dataroo | --dataro | --datar)
1340 ac_prev=datarootdir ;;
1341 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1342 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1343 datarootdir=$ac_optarg ;;
1344
1345 -disable-* | --disable-*)
1346 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1347 # Reject names that are not valid shell variable names.
1348 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001349 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001350 ac_useropt_orig=$ac_useropt
1351 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1353 *"
1354"enable_$ac_useropt"
1355"*) ;;
1356 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1357 ac_unrecognized_sep=', ';;
1358 esac
1359 eval enable_$ac_useropt=no ;;
1360
1361 -docdir | --docdir | --docdi | --doc | --do)
1362 ac_prev=docdir ;;
1363 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1364 docdir=$ac_optarg ;;
1365
1366 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1367 ac_prev=dvidir ;;
1368 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1369 dvidir=$ac_optarg ;;
1370
1371 -enable-* | --enable-*)
1372 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1373 # Reject names that are not valid shell variable names.
1374 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001375 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001376 ac_useropt_orig=$ac_useropt
1377 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378 case $ac_user_opts in
1379 *"
1380"enable_$ac_useropt"
1381"*) ;;
1382 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1383 ac_unrecognized_sep=', ';;
1384 esac
1385 eval enable_$ac_useropt=\$ac_optarg ;;
1386
1387 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1388 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1389 | --exec | --exe | --ex)
1390 ac_prev=exec_prefix ;;
1391 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1392 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1393 | --exec=* | --exe=* | --ex=*)
1394 exec_prefix=$ac_optarg ;;
1395
1396 -gas | --gas | --ga | --g)
1397 # Obsolete; use --with-gas.
1398 with_gas=yes ;;
1399
1400 -help | --help | --hel | --he | -h)
1401 ac_init_help=long ;;
1402 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1403 ac_init_help=recursive ;;
1404 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1405 ac_init_help=short ;;
1406
1407 -host | --host | --hos | --ho)
1408 ac_prev=host_alias ;;
1409 -host=* | --host=* | --hos=* | --ho=*)
1410 host_alias=$ac_optarg ;;
1411
1412 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1413 ac_prev=htmldir ;;
1414 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1415 | --ht=*)
1416 htmldir=$ac_optarg ;;
1417
1418 -includedir | --includedir | --includedi | --included | --include \
1419 | --includ | --inclu | --incl | --inc)
1420 ac_prev=includedir ;;
1421 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1422 | --includ=* | --inclu=* | --incl=* | --inc=*)
1423 includedir=$ac_optarg ;;
1424
1425 -infodir | --infodir | --infodi | --infod | --info | --inf)
1426 ac_prev=infodir ;;
1427 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1428 infodir=$ac_optarg ;;
1429
1430 -libdir | --libdir | --libdi | --libd)
1431 ac_prev=libdir ;;
1432 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1433 libdir=$ac_optarg ;;
1434
1435 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1436 | --libexe | --libex | --libe)
1437 ac_prev=libexecdir ;;
1438 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1439 | --libexe=* | --libex=* | --libe=*)
1440 libexecdir=$ac_optarg ;;
1441
1442 -localedir | --localedir | --localedi | --localed | --locale)
1443 ac_prev=localedir ;;
1444 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1445 localedir=$ac_optarg ;;
1446
1447 -localstatedir | --localstatedir | --localstatedi | --localstated \
1448 | --localstate | --localstat | --localsta | --localst | --locals)
1449 ac_prev=localstatedir ;;
1450 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1451 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1452 localstatedir=$ac_optarg ;;
1453
1454 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1455 ac_prev=mandir ;;
1456 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1457 mandir=$ac_optarg ;;
1458
1459 -nfp | --nfp | --nf)
1460 # Obsolete; use --without-fp.
1461 with_fp=no ;;
1462
1463 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1464 | --no-cr | --no-c | -n)
1465 no_create=yes ;;
1466
1467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1469 no_recursion=yes ;;
1470
1471 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1472 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1473 | --oldin | --oldi | --old | --ol | --o)
1474 ac_prev=oldincludedir ;;
1475 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1476 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1477 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1478 oldincludedir=$ac_optarg ;;
1479
1480 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1481 ac_prev=prefix ;;
1482 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1483 prefix=$ac_optarg ;;
1484
1485 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1486 | --program-pre | --program-pr | --program-p)
1487 ac_prev=program_prefix ;;
1488 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1489 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1490 program_prefix=$ac_optarg ;;
1491
1492 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1493 | --program-suf | --program-su | --program-s)
1494 ac_prev=program_suffix ;;
1495 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1496 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1497 program_suffix=$ac_optarg ;;
1498
1499 -program-transform-name | --program-transform-name \
1500 | --program-transform-nam | --program-transform-na \
1501 | --program-transform-n | --program-transform- \
1502 | --program-transform | --program-transfor \
1503 | --program-transfo | --program-transf \
1504 | --program-trans | --program-tran \
1505 | --progr-tra | --program-tr | --program-t)
1506 ac_prev=program_transform_name ;;
1507 -program-transform-name=* | --program-transform-name=* \
1508 | --program-transform-nam=* | --program-transform-na=* \
1509 | --program-transform-n=* | --program-transform-=* \
1510 | --program-transform=* | --program-transfor=* \
1511 | --program-transfo=* | --program-transf=* \
1512 | --program-trans=* | --program-tran=* \
1513 | --progr-tra=* | --program-tr=* | --program-t=*)
1514 program_transform_name=$ac_optarg ;;
1515
1516 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1517 ac_prev=pdfdir ;;
1518 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1519 pdfdir=$ac_optarg ;;
1520
1521 -psdir | --psdir | --psdi | --psd | --ps)
1522 ac_prev=psdir ;;
1523 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1524 psdir=$ac_optarg ;;
1525
1526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1527 | -silent | --silent | --silen | --sile | --sil)
1528 silent=yes ;;
1529
1530 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1531 ac_prev=sbindir ;;
1532 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1533 | --sbi=* | --sb=*)
1534 sbindir=$ac_optarg ;;
1535
1536 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1537 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1538 | --sharedst | --shareds | --shared | --share | --shar \
1539 | --sha | --sh)
1540 ac_prev=sharedstatedir ;;
1541 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1542 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1543 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1544 | --sha=* | --sh=*)
1545 sharedstatedir=$ac_optarg ;;
1546
1547 -site | --site | --sit)
1548 ac_prev=site ;;
1549 -site=* | --site=* | --sit=*)
1550 site=$ac_optarg ;;
1551
1552 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1553 ac_prev=srcdir ;;
1554 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1555 srcdir=$ac_optarg ;;
1556
1557 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1558 | --syscon | --sysco | --sysc | --sys | --sy)
1559 ac_prev=sysconfdir ;;
1560 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1561 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1562 sysconfdir=$ac_optarg ;;
1563
1564 -target | --target | --targe | --targ | --tar | --ta | --t)
1565 ac_prev=target_alias ;;
1566 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1567 target_alias=$ac_optarg ;;
1568
1569 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1570 verbose=yes ;;
1571
1572 -version | --version | --versio | --versi | --vers | -V)
1573 ac_init_version=: ;;
1574
1575 -with-* | --with-*)
1576 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1577 # Reject names that are not valid shell variable names.
1578 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001579 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001580 ac_useropt_orig=$ac_useropt
1581 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1582 case $ac_user_opts in
1583 *"
1584"with_$ac_useropt"
1585"*) ;;
1586 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1587 ac_unrecognized_sep=', ';;
1588 esac
1589 eval with_$ac_useropt=\$ac_optarg ;;
1590
1591 -without-* | --without-*)
1592 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1593 # Reject names that are not valid shell variable names.
1594 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001595 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001596 ac_useropt_orig=$ac_useropt
1597 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1598 case $ac_user_opts in
1599 *"
1600"with_$ac_useropt"
1601"*) ;;
1602 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1603 ac_unrecognized_sep=', ';;
1604 esac
1605 eval with_$ac_useropt=no ;;
1606
1607 --x)
1608 # Obsolete; use --with-x.
1609 with_x=yes ;;
1610
1611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1612 | --x-incl | --x-inc | --x-in | --x-i)
1613 ac_prev=x_includes ;;
1614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1616 x_includes=$ac_optarg ;;
1617
1618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1620 ac_prev=x_libraries ;;
1621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1623 x_libraries=$ac_optarg ;;
1624
cristy98dddb52010-11-04 00:30:15 +00001625 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1626Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001627 ;;
1628
1629 *=*)
1630 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1631 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001632 case $ac_envvar in #(
1633 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001634 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001635 esac
cristy3ed852e2009-09-05 21:47:34 +00001636 eval $ac_envvar=\$ac_optarg
1637 export $ac_envvar ;;
1638
1639 *)
1640 # FIXME: should be removed in autoconf 3.0.
1641 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1642 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1643 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001644 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001645 ;;
1646
1647 esac
1648done
1649
1650if test -n "$ac_prev"; then
1651 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001652 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001653fi
1654
1655if test -n "$ac_unrecognized_opts"; then
1656 case $enable_option_checking in
1657 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001658 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001659 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1660 esac
1661fi
1662
1663# Check all directory arguments for consistency.
1664for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1665 datadir sysconfdir sharedstatedir localstatedir includedir \
1666 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1667 libdir localedir mandir
1668do
1669 eval ac_val=\$$ac_var
1670 # Remove trailing slashes.
1671 case $ac_val in
1672 */ )
1673 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1674 eval $ac_var=\$ac_val;;
1675 esac
1676 # Be sure to have absolute directory names.
1677 case $ac_val in
1678 [\\/$]* | ?:[\\/]* ) continue;;
1679 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1680 esac
cristy98dddb52010-11-04 00:30:15 +00001681 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001682done
1683
1684# There might be people who depend on the old broken behavior: `$host'
1685# used to hold the argument of --host etc.
1686# FIXME: To remove some day.
1687build=$build_alias
1688host=$host_alias
1689target=$target_alias
1690
1691# FIXME: To remove some day.
1692if test "x$host_alias" != x; then
1693 if test "x$build_alias" = x; then
1694 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001695 elif test "x$build_alias" != "x$host_alias"; then
1696 cross_compiling=yes
1697 fi
1698fi
1699
1700ac_tool_prefix=
1701test -n "$host_alias" && ac_tool_prefix=$host_alias-
1702
1703test "$silent" = yes && exec 6>/dev/null
1704
1705
1706ac_pwd=`pwd` && test -n "$ac_pwd" &&
1707ac_ls_di=`ls -di .` &&
1708ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001709 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001710test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001711 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001712
1713
1714# Find the source files, if location was not specified.
1715if test -z "$srcdir"; then
1716 ac_srcdir_defaulted=yes
1717 # Try the directory containing this script, then the parent directory.
1718 ac_confdir=`$as_dirname -- "$as_myself" ||
1719$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1720 X"$as_myself" : 'X\(//\)[^/]' \| \
1721 X"$as_myself" : 'X\(//\)$' \| \
1722 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1723$as_echo X"$as_myself" |
1724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1725 s//\1/
1726 q
1727 }
1728 /^X\(\/\/\)[^/].*/{
1729 s//\1/
1730 q
1731 }
1732 /^X\(\/\/\)$/{
1733 s//\1/
1734 q
1735 }
1736 /^X\(\/\).*/{
1737 s//\1/
1738 q
1739 }
1740 s/.*/./; q'`
1741 srcdir=$ac_confdir
1742 if test ! -r "$srcdir/$ac_unique_file"; then
1743 srcdir=..
1744 fi
1745else
1746 ac_srcdir_defaulted=no
1747fi
1748if test ! -r "$srcdir/$ac_unique_file"; then
1749 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001750 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001751fi
1752ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1753ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001754 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001755 pwd)`
1756# When building in place, set srcdir=.
1757if test "$ac_abs_confdir" = "$ac_pwd"; then
1758 srcdir=.
1759fi
1760# Remove unnecessary trailing slashes from srcdir.
1761# Double slashes in file names in object file debugging info
1762# mess up M-x gdb in Emacs.
1763case $srcdir in
1764*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1765esac
1766for ac_var in $ac_precious_vars; do
1767 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1768 eval ac_env_${ac_var}_value=\$${ac_var}
1769 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1770 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1771done
1772
1773#
1774# Report the --help message.
1775#
1776if test "$ac_init_help" = "long"; then
1777 # Omit some internal or obsolete options to make the list less imposing.
1778 # This message is too long to be a string in the A/UX 3.1 sh.
1779 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001780\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001781
1782Usage: $0 [OPTION]... [VAR=VALUE]...
1783
1784To assign environment variables (e.g., CC, CFLAGS...), specify them as
1785VAR=VALUE. See below for descriptions of some of the useful variables.
1786
1787Defaults for the options are specified in brackets.
1788
1789Configuration:
1790 -h, --help display this help and exit
1791 --help=short display options specific to this package
1792 --help=recursive display the short help of all the included packages
1793 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001794 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001795 --cache-file=FILE cache test results in FILE [disabled]
1796 -C, --config-cache alias for \`--cache-file=config.cache'
1797 -n, --no-create do not create output files
1798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1799
1800Installation directories:
1801 --prefix=PREFIX install architecture-independent files in PREFIX
1802 [$ac_default_prefix]
1803 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1804 [PREFIX]
1805
1806By default, \`make install' will install all the files in
1807\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1808an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1809for instance \`--prefix=\$HOME'.
1810
1811For better control, use the options below.
1812
1813Fine tuning of the installation directories:
1814 --bindir=DIR user executables [EPREFIX/bin]
1815 --sbindir=DIR system admin executables [EPREFIX/sbin]
1816 --libexecdir=DIR program executables [EPREFIX/libexec]
1817 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1818 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1819 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1820 --libdir=DIR object code libraries [EPREFIX/lib]
1821 --includedir=DIR C header files [PREFIX/include]
1822 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1823 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1824 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1825 --infodir=DIR info documentation [DATAROOTDIR/info]
1826 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1827 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001828 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001829 --htmldir=DIR html documentation [DOCDIR]
1830 --dvidir=DIR dvi documentation [DOCDIR]
1831 --pdfdir=DIR pdf documentation [DOCDIR]
1832 --psdir=DIR ps documentation [DOCDIR]
1833_ACEOF
1834
1835 cat <<\_ACEOF
1836
cristy73bd4a52010-10-05 11:24:23 +00001837Program names:
1838 --program-prefix=PREFIX prepend PREFIX to installed program names
1839 --program-suffix=SUFFIX append SUFFIX to installed program names
1840 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1841
cristy3ed852e2009-09-05 21:47:34 +00001842X features:
1843 --x-includes=DIR X include files are in DIR
1844 --x-libraries=DIR X library files are in DIR
1845
1846System types:
1847 --build=BUILD configure for building on BUILD [guessed]
1848 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1849 --target=TARGET configure for building compilers for TARGET [HOST]
1850_ACEOF
1851fi
1852
1853if test -n "$ac_init_help"; then
1854 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001855 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001856 esac
1857 cat <<\_ACEOF
1858
1859Optional Features:
1860 --disable-option-checking ignore unrecognized --enable/--with options
1861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001863 --enable-silent-rules less verbose build output (undo: "make V=1")
1864 --disable-silent-rules verbose build output (undo: "make V=0")
1865 --enable-dependency-tracking
1866 do not reject slow dependency extractors
1867 --disable-dependency-tracking
1868 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001869 --enable-ld-version-script
1870 enable linker version script (default is enabled
1871 when possible)
cristya3824692012-03-30 17:22:07 +00001872 --enable-bounds-checking
1873 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001874 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001875 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001876 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001877 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001878 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001879 --enable-shared[=PKGS] build shared libraries [default=yes]
1880 --enable-static[=PKGS] build static libraries [default=yes]
1881 --enable-fast-install[=PKGS]
1882 optimize for fast installation [default=yes]
1883 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001884 --enable-delegate-build look for delegate libraries in build directory
1885 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001886 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001887 --disable-installed Formally install ImageMagick under PREFIX
1888 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001889 --enable-zero-configuration
1890 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001891 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001892 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001893 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001894 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001895 --enable-maintainer-mode
1896 enable make rules and dependencies not useful (and
1897 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001898 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001899 --enable-ccmalloc enable 'ccmalloc' memory debug support
1900 --enable-efence enable 'efence' memory debug support
1901 --enable-prof enable 'prof' profiling support
1902 --enable-gprof enable 'gprof' profiling support
1903 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001904 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001905 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001906 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001907
1908Optional Packages:
1909 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1910 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001911 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001912 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001913 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1914 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001915 --includearch-dir=DIR ARCH specific include directory
1916 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001917 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001918 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001919 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001920 both]
cristyda16f162011-02-19 23:52:17 +00001921 --with-sysroot=DIR Search for dependent libraries within DIR
1922 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001923 --with-modules enable building dynamically loadable modules
1924 --with-method-prefix=PREFIX
1925 prefix MagickCore API methods
1926 --with-quantum-depth=DEPTH
1927 number of bits in a pixel quantum (default 16)
1928 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1929 memory)
1930 --with-frozenpaths freeze delegate paths
1931 --without-magick-plus-plus
1932 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001933 --with-package-release-name=NAME
1934 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001935 --with-perl enable build/install of PerlMagick
1936 --with-perl-options=OPTIONS
1937 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001938 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001939 --with-umem enable umem memory allocation library support
1940 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1941 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001942 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001943 --without-zlib disable ZLIB support
1944 --with-autotrace enable autotrace support
1945 --without-dps disable Display Postscript support
1946 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001947 --with-dejavu-font-dir=DIR
1948 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001949 --without-fftw disable FFTW support
1950 --without-fpx disable FlashPIX support
1951 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001952 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001953 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001954 --with-fontpath=DIR prepend to default font search path
1955 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001956 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001957 --without-jbig disable JBIG support
1958 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001959 --without-lcms disable lcms (v1.1X) support
1960 --without-lcms2 disable lcms (v2.X) support
cristy99db3872014-01-01 15:11:34 +00001961 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001962 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001963 --without-lzma disable LZMA support
cristy854c9cf2013-08-10 21:03:06 +00001964 --with-mupdf enable MUPDF support
cristy3ed852e2009-09-05 21:47:34 +00001965 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001966 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001967 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001968 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001969 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001970 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001971 --with-windows-font-dir=DIR
1972 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001973 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001974 --without-xml disable XML support
1975
1976Some influential environment variables:
1977 CC C compiler command
1978 CFLAGS C compiler flags
1979 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1980 nonstandard directory <lib dir>
1981 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001982 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001983 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001984 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001985 CXX C++ compiler command
1986 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001987 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001988 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001989 XMKMF Path to xmkmf, Makefile generator for X Window System
1990 AUTOTRACE_CFLAGS
1991 C compiler flags for AUTOTRACE, overriding pkg-config
1992 AUTOTRACE_LIBS
1993 linker flags for AUTOTRACE, overriding pkg-config
1994 FONTCONFIG_CFLAGS
1995 C compiler flags for FONTCONFIG, overriding pkg-config
1996 FONTCONFIG_LIBS
1997 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001998 FREETYPE_CFLAGS
1999 C compiler flags for FREETYPE, overriding pkg-config
2000 FREETYPE_LIBS
2001 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002002 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2003 GVC_LIBS linker flags for GVC, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002004 LIBOPENJP2_CFLAGS
2005 C compiler flags for LIBOPENJP2, overriding pkg-config
2006 LIBOPENJP2_LIBS
2007 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002008 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2009 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002010 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2011 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002012 OPENEXR_CFLAGS
2013 C compiler flags for OPENEXR, overriding pkg-config
2014 OPENEXR_LIBS
2015 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002016 PANGO_CFLAGS
2017 C compiler flags for PANGO, overriding pkg-config
2018 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002019 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2020 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2021 CAIRO_SVG_CFLAGS
2022 C compiler flags for CAIRO_SVG, overriding pkg-config
2023 CAIRO_SVG_LIBS
2024 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002025
2026Use these variables to override the choices made by `configure' or to help
2027it to find libraries and programs with nonstandard names/locations.
2028
2029Report bugs to <http://www.imagemagick.org>.
2030_ACEOF
2031ac_status=$?
2032fi
2033
2034if test "$ac_init_help" = "recursive"; then
2035 # If there are subdirs, report their specific --help.
2036 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2037 test -d "$ac_dir" ||
2038 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2039 continue
2040 ac_builddir=.
2041
2042case "$ac_dir" in
2043.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2044*)
2045 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2046 # A ".." for each directory in $ac_dir_suffix.
2047 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2048 case $ac_top_builddir_sub in
2049 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2050 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2051 esac ;;
2052esac
2053ac_abs_top_builddir=$ac_pwd
2054ac_abs_builddir=$ac_pwd$ac_dir_suffix
2055# for backward compatibility:
2056ac_top_builddir=$ac_top_build_prefix
2057
2058case $srcdir in
2059 .) # We are building in place.
2060 ac_srcdir=.
2061 ac_top_srcdir=$ac_top_builddir_sub
2062 ac_abs_top_srcdir=$ac_pwd ;;
2063 [\\/]* | ?:[\\/]* ) # Absolute name.
2064 ac_srcdir=$srcdir$ac_dir_suffix;
2065 ac_top_srcdir=$srcdir
2066 ac_abs_top_srcdir=$srcdir ;;
2067 *) # Relative name.
2068 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2069 ac_top_srcdir=$ac_top_build_prefix$srcdir
2070 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2071esac
2072ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2073
2074 cd "$ac_dir" || { ac_status=$?; continue; }
2075 # Check for guested configure.
2076 if test -f "$ac_srcdir/configure.gnu"; then
2077 echo &&
2078 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2079 elif test -f "$ac_srcdir/configure"; then
2080 echo &&
2081 $SHELL "$ac_srcdir/configure" --help=recursive
2082 else
2083 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2084 fi || ac_status=$?
2085 cd "$ac_pwd" || { ac_status=$?; break; }
2086 done
2087fi
2088
2089test -n "$ac_init_help" && exit $ac_status
2090if $ac_init_version; then
2091 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002092ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002093generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002094
cristy14fefe52012-05-21 00:59:18 +00002095Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002096This configure script is free software; the Free Software Foundation
2097gives unlimited permission to copy, distribute and modify it.
2098_ACEOF
2099 exit
2100fi
cristy8b350f62009-11-15 23:12:43 +00002101
2102## ------------------------ ##
2103## Autoconf initialization. ##
2104## ------------------------ ##
2105
2106# ac_fn_c_try_compile LINENO
2107# --------------------------
2108# Try to compile conftest.$ac_ext, and return whether this succeeded.
2109ac_fn_c_try_compile ()
2110{
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 rm -f conftest.$ac_objext
2113 if { { ac_try="$ac_compile"
2114case "(($ac_try" in
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2117esac
2118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2119$as_echo "$ac_try_echo"; } >&5
2120 (eval "$ac_compile") 2>conftest.err
2121 ac_status=$?
2122 if test -s conftest.err; then
2123 grep -v '^ *+' conftest.err >conftest.er1
2124 cat conftest.er1 >&5
2125 mv -f conftest.er1 conftest.err
2126 fi
2127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2128 test $ac_status = 0; } && {
2129 test -z "$ac_c_werror_flag" ||
2130 test ! -s conftest.err
2131 } && test -s conftest.$ac_objext; then :
2132 ac_retval=0
2133else
2134 $as_echo "$as_me: failed program was:" >&5
2135sed 's/^/| /' conftest.$ac_ext >&5
2136
2137 ac_retval=1
2138fi
cristyda16f162011-02-19 23:52:17 +00002139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002140 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002141
2142} # ac_fn_c_try_compile
2143
cristy95646052009-11-28 23:05:30 +00002144# ac_fn_c_try_cpp LINENO
2145# ----------------------
2146# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2147ac_fn_c_try_cpp ()
2148{
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 if { { ac_try="$ac_cpp conftest.$ac_ext"
2151case "(($ac_try" in
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2154esac
2155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156$as_echo "$ac_try_echo"; } >&5
2157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2158 ac_status=$?
2159 if test -s conftest.err; then
2160 grep -v '^ *+' conftest.err >conftest.er1
2161 cat conftest.er1 >&5
2162 mv -f conftest.er1 conftest.err
2163 fi
2164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002165 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2167 test ! -s conftest.err
2168 }; then :
2169 ac_retval=0
2170else
2171 $as_echo "$as_me: failed program was:" >&5
2172sed 's/^/| /' conftest.$ac_ext >&5
2173
2174 ac_retval=1
2175fi
cristyda16f162011-02-19 23:52:17 +00002176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002177 as_fn_set_status $ac_retval
2178
2179} # ac_fn_c_try_cpp
2180
cristy8b350f62009-11-15 23:12:43 +00002181# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2182# -------------------------------------------------------
2183# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2184# the include files in INCLUDES and setting the cache variable VAR
2185# accordingly.
2186ac_fn_c_check_header_mongrel ()
2187{
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002189 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002192if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002193 $as_echo_n "(cached) " >&6
2194fi
2195eval ac_res=\$$3
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2197$as_echo "$ac_res" >&6; }
2198else
2199 # Is the header compilable?
2200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2201$as_echo_n "checking $2 usability... " >&6; }
2202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203/* end confdefs.h. */
2204$4
2205#include <$2>
2206_ACEOF
2207if ac_fn_c_try_compile "$LINENO"; then :
2208 ac_header_compiler=yes
2209else
2210 ac_header_compiler=no
2211fi
2212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2214$as_echo "$ac_header_compiler" >&6; }
2215
2216# Is the header present?
2217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2218$as_echo_n "checking $2 presence... " >&6; }
2219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220/* end confdefs.h. */
2221#include <$2>
2222_ACEOF
2223if ac_fn_c_try_cpp "$LINENO"; then :
2224 ac_header_preproc=yes
2225else
2226 ac_header_preproc=no
2227fi
cristyda16f162011-02-19 23:52:17 +00002228rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2230$as_echo "$ac_header_preproc" >&6; }
2231
2232# So? What about this header?
2233case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2234 yes:no: )
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2236$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2238$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2239 ;;
2240 no:yes:* )
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2242$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2244$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2246$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2248$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2250$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002251( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002252## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002253## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002254 ) | sed "s/^/$as_me: WARNING: /" >&2
2255 ;;
2256esac
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002259if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002260 $as_echo_n "(cached) " >&6
2261else
2262 eval "$3=\$ac_header_compiler"
2263fi
2264eval ac_res=\$$3
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266$as_echo "$ac_res" >&6; }
2267fi
cristyda16f162011-02-19 23:52:17 +00002268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002269
2270} # ac_fn_c_check_header_mongrel
2271
2272# ac_fn_c_try_run LINENO
2273# ----------------------
2274# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2275# that executables *can* be run.
2276ac_fn_c_try_run ()
2277{
2278 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279 if { { ac_try="$ac_link"
2280case "(($ac_try" in
2281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282 *) ac_try_echo=$ac_try;;
2283esac
2284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2285$as_echo "$ac_try_echo"; } >&5
2286 (eval "$ac_link") 2>&5
2287 ac_status=$?
2288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2289 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2290 { { case "(($ac_try" in
2291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292 *) ac_try_echo=$ac_try;;
2293esac
2294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2295$as_echo "$ac_try_echo"; } >&5
2296 (eval "$ac_try") 2>&5
2297 ac_status=$?
2298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2299 test $ac_status = 0; }; }; then :
2300 ac_retval=0
2301else
2302 $as_echo "$as_me: program exited with status $ac_status" >&5
2303 $as_echo "$as_me: failed program was:" >&5
2304sed 's/^/| /' conftest.$ac_ext >&5
2305
2306 ac_retval=$ac_status
2307fi
2308 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002309 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002310 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002311
2312} # ac_fn_c_try_run
2313
2314# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2315# -------------------------------------------------------
2316# Tests whether HEADER exists and can be compiled using the include files in
2317# INCLUDES, setting the cache variable VAR accordingly.
2318ac_fn_c_check_header_compile ()
2319{
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2322$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002323if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002324 $as_echo_n "(cached) " >&6
2325else
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327/* end confdefs.h. */
2328$4
2329#include <$2>
2330_ACEOF
2331if ac_fn_c_try_compile "$LINENO"; then :
2332 eval "$3=yes"
2333else
2334 eval "$3=no"
2335fi
2336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337fi
2338eval ac_res=\$$3
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002341 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002342
2343} # ac_fn_c_check_header_compile
2344
cristya0b81c32010-01-22 02:54:33 +00002345# ac_fn_cxx_try_compile LINENO
2346# ----------------------------
2347# Try to compile conftest.$ac_ext, and return whether this succeeded.
2348ac_fn_cxx_try_compile ()
2349{
2350 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2351 rm -f conftest.$ac_objext
2352 if { { ac_try="$ac_compile"
2353case "(($ac_try" in
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2356esac
2357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2358$as_echo "$ac_try_echo"; } >&5
2359 (eval "$ac_compile") 2>conftest.err
2360 ac_status=$?
2361 if test -s conftest.err; then
2362 grep -v '^ *+' conftest.err >conftest.er1
2363 cat conftest.er1 >&5
2364 mv -f conftest.er1 conftest.err
2365 fi
2366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2367 test $ac_status = 0; } && {
2368 test -z "$ac_cxx_werror_flag" ||
2369 test ! -s conftest.err
2370 } && test -s conftest.$ac_objext; then :
2371 ac_retval=0
2372else
2373 $as_echo "$as_me: failed program was:" >&5
2374sed 's/^/| /' conftest.$ac_ext >&5
2375
2376 ac_retval=1
2377fi
cristyda16f162011-02-19 23:52:17 +00002378 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002379 as_fn_set_status $ac_retval
2380
2381} # ac_fn_cxx_try_compile
2382
cristyd95b7a52013-10-23 13:12:53 +00002383# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2384# --------------------------------------------
2385# Tries to find the compile-time value of EXPR in a program that includes
2386# INCLUDES, setting VAR accordingly. Returns whether the value could be
2387# computed
2388ac_fn_c_compute_int ()
2389{
2390 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2391 if test "$cross_compiling" = yes; then
2392 # Depending upon the size, compute the lo and hi bounds.
2393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394/* end confdefs.h. */
2395$4
2396int
2397main ()
2398{
2399static int test_array [1 - 2 * !(($2) >= 0)];
2400test_array [0] = 0;
2401return test_array [0];
2402
2403 ;
2404 return 0;
2405}
2406_ACEOF
2407if ac_fn_c_try_compile "$LINENO"; then :
2408 ac_lo=0 ac_mid=0
2409 while :; do
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411/* end confdefs.h. */
2412$4
2413int
2414main ()
2415{
2416static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2417test_array [0] = 0;
2418return test_array [0];
2419
2420 ;
2421 return 0;
2422}
2423_ACEOF
2424if ac_fn_c_try_compile "$LINENO"; then :
2425 ac_hi=$ac_mid; break
2426else
2427 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2428 if test $ac_lo -le $ac_mid; then
2429 ac_lo= ac_hi=
2430 break
2431 fi
2432 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2433fi
2434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 done
2436else
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438/* end confdefs.h. */
2439$4
2440int
2441main ()
2442{
2443static int test_array [1 - 2 * !(($2) < 0)];
2444test_array [0] = 0;
2445return test_array [0];
2446
2447 ;
2448 return 0;
2449}
2450_ACEOF
2451if ac_fn_c_try_compile "$LINENO"; then :
2452 ac_hi=-1 ac_mid=-1
2453 while :; do
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455/* end confdefs.h. */
2456$4
2457int
2458main ()
2459{
2460static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2461test_array [0] = 0;
2462return test_array [0];
2463
2464 ;
2465 return 0;
2466}
2467_ACEOF
2468if ac_fn_c_try_compile "$LINENO"; then :
2469 ac_lo=$ac_mid; break
2470else
2471 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2472 if test $ac_mid -le $ac_hi; then
2473 ac_lo= ac_hi=
2474 break
2475 fi
2476 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2477fi
2478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479 done
2480else
2481 ac_lo= ac_hi=
2482fi
2483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2484fi
2485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486# Binary search between lo and hi bounds.
2487while test "x$ac_lo" != "x$ac_hi"; do
2488 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2490/* end confdefs.h. */
2491$4
2492int
2493main ()
2494{
2495static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2496test_array [0] = 0;
2497return test_array [0];
2498
2499 ;
2500 return 0;
2501}
2502_ACEOF
2503if ac_fn_c_try_compile "$LINENO"; then :
2504 ac_hi=$ac_mid
2505else
2506 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2507fi
2508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509done
2510case $ac_lo in #((
2511?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2512'') ac_retval=1 ;;
2513esac
2514 else
2515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516/* end confdefs.h. */
2517$4
2518static long int longval () { return $2; }
2519static unsigned long int ulongval () { return $2; }
2520#include <stdio.h>
2521#include <stdlib.h>
2522int
2523main ()
2524{
2525
2526 FILE *f = fopen ("conftest.val", "w");
2527 if (! f)
2528 return 1;
2529 if (($2) < 0)
2530 {
2531 long int i = longval ();
2532 if (i != ($2))
2533 return 1;
2534 fprintf (f, "%ld", i);
2535 }
2536 else
2537 {
2538 unsigned long int i = ulongval ();
2539 if (i != ($2))
2540 return 1;
2541 fprintf (f, "%lu", i);
2542 }
2543 /* Do not output a trailing newline, as this causes \r\n confusion
2544 on some platforms. */
2545 return ferror (f) || fclose (f) != 0;
2546
2547 ;
2548 return 0;
2549}
2550_ACEOF
2551if ac_fn_c_try_run "$LINENO"; then :
2552 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2553else
2554 ac_retval=1
2555fi
2556rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2557 conftest.$ac_objext conftest.beam conftest.$ac_ext
2558rm -f conftest.val
2559
2560 fi
2561 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2562 as_fn_set_status $ac_retval
2563
2564} # ac_fn_c_compute_int
2565
cristy8b350f62009-11-15 23:12:43 +00002566# ac_fn_c_try_link LINENO
2567# -----------------------
2568# Try to link conftest.$ac_ext, and return whether this succeeded.
2569ac_fn_c_try_link ()
2570{
2571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572 rm -f conftest.$ac_objext conftest$ac_exeext
2573 if { { ac_try="$ac_link"
2574case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577esac
2578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2579$as_echo "$ac_try_echo"; } >&5
2580 (eval "$ac_link") 2>conftest.err
2581 ac_status=$?
2582 if test -s conftest.err; then
2583 grep -v '^ *+' conftest.err >conftest.er1
2584 cat conftest.er1 >&5
2585 mv -f conftest.er1 conftest.err
2586 fi
2587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2588 test $ac_status = 0; } && {
2589 test -z "$ac_c_werror_flag" ||
2590 test ! -s conftest.err
2591 } && test -s conftest$ac_exeext && {
2592 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002593 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002594 }; then :
2595 ac_retval=0
2596else
2597 $as_echo "$as_me: failed program was:" >&5
2598sed 's/^/| /' conftest.$ac_ext >&5
2599
2600 ac_retval=1
2601fi
2602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2604 # interfere with the next link command; also delete a directory that is
2605 # left behind by Apple's compiler. We do this before executing the actions.
2606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002608 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002609
2610} # ac_fn_c_try_link
2611
cristy73bd4a52010-10-05 11:24:23 +00002612# ac_fn_c_check_func LINENO FUNC VAR
2613# ----------------------------------
2614# Tests whether FUNC exists, setting the cache variable VAR accordingly
2615ac_fn_c_check_func ()
2616{
2617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2619$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002620if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002621 $as_echo_n "(cached) " >&6
2622else
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624/* end confdefs.h. */
2625/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2627#define $2 innocuous_$2
2628
2629/* System header to define __stub macros and hopefully few prototypes,
2630 which can conflict with char $2 (); below.
2631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2632 <limits.h> exists even on freestanding compilers. */
2633
2634#ifdef __STDC__
2635# include <limits.h>
2636#else
2637# include <assert.h>
2638#endif
2639
2640#undef $2
2641
2642/* Override any GCC internal prototype to avoid an error.
2643 Use char because int might match the return type of a GCC
2644 builtin and then its argument prototype would still apply. */
2645#ifdef __cplusplus
2646extern "C"
2647#endif
2648char $2 ();
2649/* The GNU C library defines this for functions which it implements
2650 to always fail with ENOSYS. Some functions are actually named
2651 something starting with __ and the normal name is an alias. */
2652#if defined __stub_$2 || defined __stub___$2
2653choke me
2654#endif
2655
2656int
2657main ()
2658{
2659return $2 ();
2660 ;
2661 return 0;
2662}
2663_ACEOF
2664if ac_fn_c_try_link "$LINENO"; then :
2665 eval "$3=yes"
2666else
2667 eval "$3=no"
2668fi
2669rm -f core conftest.err conftest.$ac_objext \
2670 conftest$ac_exeext conftest.$ac_ext
2671fi
2672eval ac_res=\$$3
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2674$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002676
2677} # ac_fn_c_check_func
2678
2679# ac_fn_cxx_try_cpp LINENO
2680# ------------------------
2681# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2682ac_fn_cxx_try_cpp ()
2683{
2684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2685 if { { ac_try="$ac_cpp conftest.$ac_ext"
2686case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689esac
2690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2691$as_echo "$ac_try_echo"; } >&5
2692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2693 ac_status=$?
2694 if test -s conftest.err; then
2695 grep -v '^ *+' conftest.err >conftest.er1
2696 cat conftest.er1 >&5
2697 mv -f conftest.er1 conftest.err
2698 fi
2699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002700 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002701 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2702 test ! -s conftest.err
2703 }; then :
2704 ac_retval=0
2705else
2706 $as_echo "$as_me: failed program was:" >&5
2707sed 's/^/| /' conftest.$ac_ext >&5
2708
2709 ac_retval=1
2710fi
cristyda16f162011-02-19 23:52:17 +00002711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002712 as_fn_set_status $ac_retval
2713
2714} # ac_fn_cxx_try_cpp
2715
2716# ac_fn_cxx_try_link LINENO
2717# -------------------------
2718# Try to link conftest.$ac_ext, and return whether this succeeded.
2719ac_fn_cxx_try_link ()
2720{
2721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2722 rm -f conftest.$ac_objext conftest$ac_exeext
2723 if { { ac_try="$ac_link"
2724case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727esac
2728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2729$as_echo "$ac_try_echo"; } >&5
2730 (eval "$ac_link") 2>conftest.err
2731 ac_status=$?
2732 if test -s conftest.err; then
2733 grep -v '^ *+' conftest.err >conftest.er1
2734 cat conftest.er1 >&5
2735 mv -f conftest.er1 conftest.err
2736 fi
2737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2738 test $ac_status = 0; } && {
2739 test -z "$ac_cxx_werror_flag" ||
2740 test ! -s conftest.err
2741 } && test -s conftest$ac_exeext && {
2742 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002743 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002744 }; then :
2745 ac_retval=0
2746else
2747 $as_echo "$as_me: failed program was:" >&5
2748sed 's/^/| /' conftest.$ac_ext >&5
2749
2750 ac_retval=1
2751fi
2752 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2753 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2754 # interfere with the next link command; also delete a directory that is
2755 # left behind by Apple's compiler. We do this before executing the actions.
2756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002758 as_fn_set_status $ac_retval
2759
2760} # ac_fn_cxx_try_link
2761
cristy8b350f62009-11-15 23:12:43 +00002762# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2763# -------------------------------------------
2764# Tests whether TYPE exists after having included INCLUDES, setting cache
2765# variable VAR accordingly.
2766ac_fn_c_check_type ()
2767{
2768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2770$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002771if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002772 $as_echo_n "(cached) " >&6
2773else
2774 eval "$3=no"
2775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776/* end confdefs.h. */
2777$4
2778int
2779main ()
2780{
2781if (sizeof ($2))
2782 return 0;
2783 ;
2784 return 0;
2785}
2786_ACEOF
2787if ac_fn_c_try_compile "$LINENO"; then :
2788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2789/* end confdefs.h. */
2790$4
2791int
2792main ()
2793{
2794if (sizeof (($2)))
2795 return 0;
2796 ;
2797 return 0;
2798}
2799_ACEOF
2800if ac_fn_c_try_compile "$LINENO"; then :
2801
2802else
2803 eval "$3=yes"
2804fi
2805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806fi
2807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808fi
2809eval ac_res=\$$3
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2811$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002813
2814} # ac_fn_c_check_type
2815
cristy92703d82010-04-26 00:18:18 +00002816# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2817# ----------------------------------------------------
2818# Tries to find if the field MEMBER exists in type AGGR, after including
2819# INCLUDES, setting cache variable VAR accordingly.
2820ac_fn_c_check_member ()
2821{
2822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2824$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002825if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002826 $as_echo_n "(cached) " >&6
2827else
2828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2829/* end confdefs.h. */
2830$5
2831int
2832main ()
2833{
2834static $2 ac_aggr;
2835if (ac_aggr.$3)
2836return 0;
2837 ;
2838 return 0;
2839}
2840_ACEOF
2841if ac_fn_c_try_compile "$LINENO"; then :
2842 eval "$4=yes"
2843else
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845/* end confdefs.h. */
2846$5
2847int
2848main ()
2849{
2850static $2 ac_aggr;
2851if (sizeof ac_aggr.$3)
2852return 0;
2853 ;
2854 return 0;
2855}
2856_ACEOF
2857if ac_fn_c_try_compile "$LINENO"; then :
2858 eval "$4=yes"
2859else
2860 eval "$4=no"
2861fi
2862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863fi
2864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865fi
2866eval ac_res=\$$4
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2868$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002870
2871} # ac_fn_c_check_member
2872
cristy5eef09f2012-10-16 12:08:28 +00002873# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2874# ---------------------------------------------
2875# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2876# accordingly.
2877ac_fn_c_check_decl ()
2878{
2879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2880 as_decl_name=`echo $2|sed 's/ *(.*//'`
2881 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2883$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2884if eval \${$3+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886else
2887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888/* end confdefs.h. */
2889$4
2890int
2891main ()
2892{
2893#ifndef $as_decl_name
2894#ifdef __cplusplus
2895 (void) $as_decl_use;
2896#else
2897 (void) $as_decl_name;
2898#endif
2899#endif
2900
2901 ;
2902 return 0;
2903}
2904_ACEOF
2905if ac_fn_c_try_compile "$LINENO"; then :
2906 eval "$3=yes"
2907else
2908 eval "$3=no"
2909fi
2910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911fi
2912eval ac_res=\$$3
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2914$as_echo "$ac_res" >&6; }
2915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2916
2917} # ac_fn_c_check_decl
2918
cristy501c8042011-05-26 17:46:28 +00002919# ac_fn_c_find_intX_t LINENO BITS VAR
2920# -----------------------------------
2921# Finds a signed integer type with width BITS, setting cache variable VAR
2922# accordingly.
2923ac_fn_c_find_intX_t ()
2924{
2925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2927$as_echo_n "checking for int$2_t... " >&6; }
2928if eval \${$3+:} false; then :
2929 $as_echo_n "(cached) " >&6
2930else
2931 eval "$3=no"
2932 # Order is important - never check a type that is potentially smaller
2933 # than half of the expected target width.
2934 for ac_type in int$2_t 'int' 'long int' \
2935 'long long int' 'short int' 'signed char'; do
2936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2937/* end confdefs.h. */
2938$ac_includes_default
2939 enum { N = $2 / 2 - 1 };
2940int
2941main ()
2942{
2943static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002944test_array [0] = 0;
2945return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002946
2947 ;
2948 return 0;
2949}
2950_ACEOF
2951if ac_fn_c_try_compile "$LINENO"; then :
2952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2953/* end confdefs.h. */
2954$ac_includes_default
2955 enum { N = $2 / 2 - 1 };
2956int
2957main ()
2958{
2959static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2960 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002961test_array [0] = 0;
2962return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002963
2964 ;
2965 return 0;
2966}
2967_ACEOF
2968if ac_fn_c_try_compile "$LINENO"; then :
2969
2970else
2971 case $ac_type in #(
2972 int$2_t) :
2973 eval "$3=yes" ;; #(
2974 *) :
2975 eval "$3=\$ac_type" ;;
2976esac
2977fi
2978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979fi
2980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981 if eval test \"x\$"$3"\" = x"no"; then :
2982
2983else
2984 break
2985fi
2986 done
2987fi
2988eval ac_res=\$$3
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2990$as_echo "$ac_res" >&6; }
2991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2992
2993} # ac_fn_c_find_intX_t
2994
2995# ac_fn_c_find_uintX_t LINENO BITS VAR
2996# ------------------------------------
2997# Finds an unsigned integer type with width BITS, setting cache variable VAR
2998# accordingly.
2999ac_fn_c_find_uintX_t ()
3000{
3001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3003$as_echo_n "checking for uint$2_t... " >&6; }
3004if eval \${$3+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006else
3007 eval "$3=no"
3008 # Order is important - never check a type that is potentially smaller
3009 # than half of the expected target width.
3010 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3011 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3013/* end confdefs.h. */
3014$ac_includes_default
3015int
3016main ()
3017{
3018static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003019test_array [0] = 0;
3020return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003021
3022 ;
3023 return 0;
3024}
3025_ACEOF
3026if ac_fn_c_try_compile "$LINENO"; then :
3027 case $ac_type in #(
3028 uint$2_t) :
3029 eval "$3=yes" ;; #(
3030 *) :
3031 eval "$3=\$ac_type" ;;
3032esac
3033fi
3034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035 if eval test \"x\$"$3"\" = x"no"; then :
3036
3037else
3038 break
3039fi
3040 done
3041fi
3042eval ac_res=\$$3
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3044$as_echo "$ac_res" >&6; }
3045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3046
3047} # ac_fn_c_find_uintX_t
3048
cristy8b350f62009-11-15 23:12:43 +00003049# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3050# ---------------------------------------------------------
3051# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3052# the include files in INCLUDES and setting the cache variable VAR
3053# accordingly.
3054ac_fn_cxx_check_header_mongrel ()
3055{
3056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003057 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3059$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003060if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003061 $as_echo_n "(cached) " >&6
3062fi
3063eval ac_res=\$$3
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3065$as_echo "$ac_res" >&6; }
3066else
3067 # Is the header compilable?
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3069$as_echo_n "checking $2 usability... " >&6; }
3070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071/* end confdefs.h. */
3072$4
3073#include <$2>
3074_ACEOF
3075if ac_fn_cxx_try_compile "$LINENO"; then :
3076 ac_header_compiler=yes
3077else
3078 ac_header_compiler=no
3079fi
3080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3082$as_echo "$ac_header_compiler" >&6; }
3083
3084# Is the header present?
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3086$as_echo_n "checking $2 presence... " >&6; }
3087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088/* end confdefs.h. */
3089#include <$2>
3090_ACEOF
3091if ac_fn_cxx_try_cpp "$LINENO"; then :
3092 ac_header_preproc=yes
3093else
3094 ac_header_preproc=no
3095fi
cristyda16f162011-02-19 23:52:17 +00003096rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3098$as_echo "$ac_header_preproc" >&6; }
3099
3100# So? What about this header?
3101case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3102 yes:no: )
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3104$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3106$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3107 ;;
3108 no:yes:* )
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3110$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3112$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3114$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3116$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3118$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003119( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003120## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003121## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003122 ) | sed "s/^/$as_me: WARNING: /" >&2
3123 ;;
3124esac
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3126$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003127if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003128 $as_echo_n "(cached) " >&6
3129else
3130 eval "$3=\$ac_header_compiler"
3131fi
3132eval ac_res=\$$3
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3134$as_echo "$ac_res" >&6; }
3135fi
cristyda16f162011-02-19 23:52:17 +00003136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003137
3138} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003139cat >config.log <<_ACEOF
3140This file contains any messages produced by compilers while
3141running configure, to aid debugging if configure makes a mistake.
3142
cristy29eb34e2011-10-16 00:46:08 +00003143It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003144generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003145
3146 $ $0 $@
3147
3148_ACEOF
3149exec 5>>config.log
3150{
3151cat <<_ASUNAME
3152## --------- ##
3153## Platform. ##
3154## --------- ##
3155
3156hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3157uname -m = `(uname -m) 2>/dev/null || echo unknown`
3158uname -r = `(uname -r) 2>/dev/null || echo unknown`
3159uname -s = `(uname -s) 2>/dev/null || echo unknown`
3160uname -v = `(uname -v) 2>/dev/null || echo unknown`
3161
3162/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3163/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3164
3165/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3166/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3167/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3168/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3169/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3170/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3171/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3172
3173_ASUNAME
3174
3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176for as_dir in $PATH
3177do
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003180 $as_echo "PATH: $as_dir"
3181 done
cristy3ed852e2009-09-05 21:47:34 +00003182IFS=$as_save_IFS
3183
3184} >&5
3185
3186cat >&5 <<_ACEOF
3187
3188
3189## ----------- ##
3190## Core tests. ##
3191## ----------- ##
3192
3193_ACEOF
3194
3195
3196# Keep a trace of the command line.
3197# Strip out --no-create and --no-recursion so they do not pile up.
3198# Strip out --silent because we don't want to record it for future runs.
3199# Also quote any args containing shell meta-characters.
3200# Make two passes to allow for proper duplicate-argument suppression.
3201ac_configure_args=
3202ac_configure_args0=
3203ac_configure_args1=
3204ac_must_keep_next=false
3205for ac_pass in 1 2
3206do
3207 for ac_arg
3208 do
3209 case $ac_arg in
3210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3212 | -silent | --silent | --silen | --sile | --sil)
3213 continue ;;
3214 *\'*)
3215 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3216 esac
3217 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003218 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003219 2)
cristy8b350f62009-11-15 23:12:43 +00003220 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003221 if test $ac_must_keep_next = true; then
3222 ac_must_keep_next=false # Got value, back to normal.
3223 else
3224 case $ac_arg in
3225 *=* | --config-cache | -C | -disable-* | --disable-* \
3226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3228 | -with-* | --with-* | -without-* | --without-* | --x)
3229 case "$ac_configure_args0 " in
3230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3231 esac
3232 ;;
3233 -* ) ac_must_keep_next=true ;;
3234 esac
3235 fi
cristy8b350f62009-11-15 23:12:43 +00003236 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003237 ;;
3238 esac
3239 done
3240done
cristy8b350f62009-11-15 23:12:43 +00003241{ ac_configure_args0=; unset ac_configure_args0;}
3242{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003243
3244# When interrupted or exit'd, cleanup temporary files, and complete
3245# config.log. We remove comments because anyway the quotes in there
3246# would cause problems or look ugly.
3247# WARNING: Use '\'' to represent an apostrophe within the trap.
3248# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3249trap 'exit_status=$?
3250 # Save into config.log some information that might help in debugging.
3251 {
3252 echo
3253
cristy98dddb52010-11-04 00:30:15 +00003254 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003255## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003256## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003257 echo
3258 # The following way of writing the cache mishandles newlines in values,
3259(
3260 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3261 eval ac_val=\$$ac_var
3262 case $ac_val in #(
3263 *${as_nl}*)
3264 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003265 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003266$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3267 esac
3268 case $ac_var in #(
3269 _ | IFS | as_nl) ;; #(
3270 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003271 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003272 esac ;;
3273 esac
3274 done
3275 (set) 2>&1 |
3276 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3277 *${as_nl}ac_space=\ *)
3278 sed -n \
3279 "s/'\''/'\''\\\\'\'''\''/g;
3280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3281 ;; #(
3282 *)
3283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3284 ;;
3285 esac |
3286 sort
3287)
3288 echo
3289
cristy98dddb52010-11-04 00:30:15 +00003290 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003291## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003292## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003293 echo
3294 for ac_var in $ac_subst_vars
3295 do
3296 eval ac_val=\$$ac_var
3297 case $ac_val in
3298 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3299 esac
3300 $as_echo "$ac_var='\''$ac_val'\''"
3301 done | sort
3302 echo
3303
3304 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003305 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003306## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003307## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003308 echo
3309 for ac_var in $ac_subst_files
3310 do
3311 eval ac_val=\$$ac_var
3312 case $ac_val in
3313 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3314 esac
3315 $as_echo "$ac_var='\''$ac_val'\''"
3316 done | sort
3317 echo
3318 fi
3319
3320 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003321 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003322## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003323## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003324 echo
3325 cat confdefs.h
3326 echo
3327 fi
3328 test "$ac_signal" != 0 &&
3329 $as_echo "$as_me: caught signal $ac_signal"
3330 $as_echo "$as_me: exit $exit_status"
3331 } >&5
3332 rm -f core *.core core.conftest.* &&
3333 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3334 exit $exit_status
3335' 0
3336for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003337 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003338done
3339ac_signal=0
3340
3341# confdefs.h avoids OS command line length limits that DEFS can exceed.
3342rm -f -r conftest* confdefs.h
3343
cristy8b350f62009-11-15 23:12:43 +00003344$as_echo "/* confdefs.h */" > confdefs.h
3345
cristy3ed852e2009-09-05 21:47:34 +00003346# Predefined preprocessor variables.
3347
3348cat >>confdefs.h <<_ACEOF
3349#define PACKAGE_NAME "$PACKAGE_NAME"
3350_ACEOF
3351
cristy3ed852e2009-09-05 21:47:34 +00003352cat >>confdefs.h <<_ACEOF
3353#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3354_ACEOF
3355
cristy3ed852e2009-09-05 21:47:34 +00003356cat >>confdefs.h <<_ACEOF
3357#define PACKAGE_VERSION "$PACKAGE_VERSION"
3358_ACEOF
3359
cristy3ed852e2009-09-05 21:47:34 +00003360cat >>confdefs.h <<_ACEOF
3361#define PACKAGE_STRING "$PACKAGE_STRING"
3362_ACEOF
3363
cristy3ed852e2009-09-05 21:47:34 +00003364cat >>confdefs.h <<_ACEOF
3365#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3366_ACEOF
3367
cristy8b350f62009-11-15 23:12:43 +00003368cat >>confdefs.h <<_ACEOF
3369#define PACKAGE_URL "$PACKAGE_URL"
3370_ACEOF
3371
cristy3ed852e2009-09-05 21:47:34 +00003372
3373# Let the site file select an alternate cache file if it wants to.
3374# Prefer an explicitly selected file to automatically selected ones.
3375ac_site_file1=NONE
3376ac_site_file2=NONE
3377if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003378 # We do not want a PATH search for config.site.
3379 case $CONFIG_SITE in #((
3380 -*) ac_site_file1=./$CONFIG_SITE;;
3381 */*) ac_site_file1=$CONFIG_SITE;;
3382 *) ac_site_file1=./$CONFIG_SITE;;
3383 esac
cristy3ed852e2009-09-05 21:47:34 +00003384elif test "x$prefix" != xNONE; then
3385 ac_site_file1=$prefix/share/config.site
3386 ac_site_file2=$prefix/etc/config.site
3387else
3388 ac_site_file1=$ac_default_prefix/share/config.site
3389 ac_site_file2=$ac_default_prefix/etc/config.site
3390fi
3391for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3392do
3393 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003394 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003395 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003396$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3397 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003398 . "$ac_site_file" \
3399 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401as_fn_error $? "failed to load site script $ac_site_file
3402See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003403 fi
3404done
3405
3406if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003407 # Some versions of bash will fail to source /dev/null (special files
3408 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3409 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003410 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003411$as_echo "$as_me: loading cache $cache_file" >&6;}
3412 case $cache_file in
3413 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3414 *) . "./$cache_file";;
3415 esac
3416 fi
3417else
cristy8b350f62009-11-15 23:12:43 +00003418 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003419$as_echo "$as_me: creating cache $cache_file" >&6;}
3420 >$cache_file
3421fi
3422
cristycd4c5312009-11-22 01:19:08 +00003423as_fn_append ac_header_list " stdlib.h"
3424as_fn_append ac_header_list " unistd.h"
3425as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003426# Check that the precious variables saved in the cache have kept the same
3427# value.
3428ac_cache_corrupted=false
3429for ac_var in $ac_precious_vars; do
3430 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3431 eval ac_new_set=\$ac_env_${ac_var}_set
3432 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3433 eval ac_new_val=\$ac_env_${ac_var}_value
3434 case $ac_old_set,$ac_new_set in
3435 set,)
cristy8b350f62009-11-15 23:12:43 +00003436 { $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 +00003437$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3438 ac_cache_corrupted=: ;;
3439 ,set)
cristy8b350f62009-11-15 23:12:43 +00003440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003441$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3442 ac_cache_corrupted=: ;;
3443 ,);;
3444 *)
3445 if test "x$ac_old_val" != "x$ac_new_val"; then
3446 # differences in whitespace do not lead to failure.
3447 ac_old_val_w=`echo x $ac_old_val`
3448 ac_new_val_w=`echo x $ac_new_val`
3449 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003451$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3452 ac_cache_corrupted=:
3453 else
cristy8b350f62009-11-15 23:12:43 +00003454 { $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 +00003455$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3456 eval $ac_var=\$ac_old_val
3457 fi
cristy8b350f62009-11-15 23:12:43 +00003458 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003459$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003460 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003461$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3462 fi;;
3463 esac
3464 # Pass precious variables to config.status.
3465 if test "$ac_new_set" = set; then
3466 case $ac_new_val in
3467 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3468 *) ac_arg=$ac_var=$ac_new_val ;;
3469 esac
3470 case " $ac_configure_args " in
3471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003472 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003473 esac
3474 fi
3475done
3476if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003480$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003481 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003482fi
cristy8b350f62009-11-15 23:12:43 +00003483## -------------------- ##
3484## Main body of script. ##
3485## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003486
3487ac_ext=c
3488ac_cpp='$CPP $CPPFLAGS'
3489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492
3493
3494
3495ac_aux_dir=
3496for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003497 if test -f "$ac_dir/install-sh"; then
3498 ac_aux_dir=$ac_dir
3499 ac_install_sh="$ac_aux_dir/install-sh -c"
3500 break
3501 elif test -f "$ac_dir/install.sh"; then
3502 ac_aux_dir=$ac_dir
3503 ac_install_sh="$ac_aux_dir/install.sh -c"
3504 break
3505 elif test -f "$ac_dir/shtool"; then
3506 ac_aux_dir=$ac_dir
3507 ac_install_sh="$ac_aux_dir/shtool install -c"
3508 break
3509 fi
cristy3ed852e2009-09-05 21:47:34 +00003510done
3511if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003512 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003513fi
3514
3515# These three variables are undocumented and unsupported,
3516# and are intended to be withdrawn in a future Autoconf release.
3517# They can cause serious problems if a builder's source tree is in a directory
3518# whose full name contains unusual characters.
3519ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3520ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3521ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3522
3523
3524
3525
3526ac_config_headers="$ac_config_headers config/config.h"
3527
cristy24fc1fe2010-10-23 21:13:01 +00003528
cristy01ff9f32012-12-01 18:15:29 +00003529ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003530
cristy8d0ff762013-03-10 20:33:28 +00003531ac_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 +00003532
3533
3534#
3535# Save initial user-tunable values
3536#
3537USER_LIBS=$LIBS
3538for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3539 eval isset=\${$var+set}
3540 if test "$isset" = 'set'; then
3541 eval val=$`echo $var`
3542 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3543 fi
3544done
3545
3546
3547CONFIGURE_ARGS="$0 ${ac_configure_args}"
3548
3549
3550# Source file containing package/library versioning information.
3551. ${srcdir}/version.sh
3552
cristy15a88782010-01-31 23:24:49 +00003553echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003554# Make sure we can run config.sub.
3555$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003556 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003557
cristy8b350f62009-11-15 23:12:43 +00003558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003559$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003560if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003561 $as_echo_n "(cached) " >&6
3562else
3563 ac_build_alias=$build_alias
3564test "x$ac_build_alias" = x &&
3565 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3566test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003567 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003568ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003569 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003570
3571fi
cristy8b350f62009-11-15 23:12:43 +00003572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003573$as_echo "$ac_cv_build" >&6; }
3574case $ac_cv_build in
3575*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003576*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003577esac
3578build=$ac_cv_build
3579ac_save_IFS=$IFS; IFS='-'
3580set x $ac_cv_build
3581shift
3582build_cpu=$1
3583build_vendor=$2
3584shift; shift
3585# Remember, the first character of IFS is used to create $*,
3586# except with old shells:
3587build_os=$*
3588IFS=$ac_save_IFS
3589case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3590
3591
cristy8b350f62009-11-15 23:12:43 +00003592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003593$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003594if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003595 $as_echo_n "(cached) " >&6
3596else
3597 if test "x$host_alias" = x; then
3598 ac_cv_host=$ac_cv_build
3599else
3600 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003601 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003602fi
3603
3604fi
cristy8b350f62009-11-15 23:12:43 +00003605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003606$as_echo "$ac_cv_host" >&6; }
3607case $ac_cv_host in
3608*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003609*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003610esac
3611host=$ac_cv_host
3612ac_save_IFS=$IFS; IFS='-'
3613set x $ac_cv_host
3614shift
3615host_cpu=$1
3616host_vendor=$2
3617shift; shift
3618# Remember, the first character of IFS is used to create $*,
3619# except with old shells:
3620host_os=$*
3621IFS=$ac_save_IFS
3622case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3623
3624
cristy8b350f62009-11-15 23:12:43 +00003625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003626$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003627if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003628 $as_echo_n "(cached) " >&6
3629else
3630 if test "x$target_alias" = x; then
3631 ac_cv_target=$ac_cv_host
3632else
3633 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003634 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003635fi
3636
3637fi
cristy8b350f62009-11-15 23:12:43 +00003638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003639$as_echo "$ac_cv_target" >&6; }
3640case $ac_cv_target in
3641*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003642*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003643esac
3644target=$ac_cv_target
3645ac_save_IFS=$IFS; IFS='-'
3646set x $ac_cv_target
3647shift
3648target_cpu=$1
3649target_vendor=$2
3650shift; shift
3651# Remember, the first character of IFS is used to create $*,
3652# except with old shells:
3653target_os=$*
3654IFS=$ac_save_IFS
3655case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3656
3657
3658# The aliases save the names the user supplied, while $host etc.
3659# will get canonicalized.
3660test -n "$target_alias" &&
3661 test "$program_prefix$program_suffix$program_transform_name" = \
3662 NONENONEs,x,x, &&
3663 program_prefix=${target_alias}-
3664
cristy837d6dc2010-02-27 01:16:57 +00003665
3666
3667
cristy8be34142012-06-17 14:07:18 +00003668
cristy19615b82011-04-13 20:02:01 +00003669MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003670
3671
cristy27d53d62012-07-29 23:30:07 +00003672cat >>confdefs.h <<_ACEOF
3673#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3674_ACEOF
3675
3676
cristy19615b82011-04-13 20:02:01 +00003677MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003678
3679
cristy27d53d62012-07-29 23:30:07 +00003680cat >>confdefs.h <<_ACEOF
3681#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3682_ACEOF
3683
3684
cristy19615b82011-04-13 20:02:01 +00003685MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003686
3687
cristy27d53d62012-07-29 23:30:07 +00003688cat >>confdefs.h <<_ACEOF
3689#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3690_ACEOF
3691
3692
cristy37442762013-02-10 21:07:23 +00003693
3694# Substitute versioning
3695MAGICK_MAJOR_VERSION=7
3696
3697MAGICK_MINOR_VERSION=0
3698
3699MAGICK_MICRO_VERSION=0
3700
3701MAGICK_PATCHLEVEL_VERSION=0
3702
3703MAGICK_VERSION=7.0.0-0
3704
cristydd17feb2014-03-05 02:06:32 +00003705MAGICK_SVN_REVISION=15015:15020M
cristy37442762013-02-10 21:07:23 +00003706
3707
cristy3ed852e2009-09-05 21:47:34 +00003708# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003709MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3710
3711MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3712
cristy37442762013-02-10 21:07:23 +00003713
cristy5ed9c6e2013-07-14 21:20:31 +00003714MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3715
3716MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3717
3718
cristyd694ca32011-03-27 21:42:54 +00003719
cristy3ed852e2009-09-05 21:47:34 +00003720# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3722$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003723# Reject unsafe characters in $srcdir or the absolute working directory
3724# name. Accept space and tab only in the latter.
3725am_lf='
3726'
3727case `pwd` in
3728 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003729 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003730esac
3731case $srcdir in
3732 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003733 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003734esac
cristy3ed852e2009-09-05 21:47:34 +00003735
cristyc0890a62012-07-19 00:18:20 +00003736# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003737# arguments. Must try -L first in case configure is actually a
3738# symlink; some systems play weird games with the mod time of symlinks
3739# (eg FreeBSD returns the mod time of the symlink's containing
3740# directory).
3741if (
cristyc0890a62012-07-19 00:18:20 +00003742 am_has_slept=no
3743 for am_try in 1 2; do
3744 echo "timestamp, slept: $am_has_slept" > conftest.file
3745 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3746 if test "$*" = "X"; then
3747 # -L didn't work.
3748 set X `ls -t "$srcdir/configure" conftest.file`
3749 fi
3750 if test "$*" != "X $srcdir/configure conftest.file" \
3751 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003752
cristyc0890a62012-07-19 00:18:20 +00003753 # If neither matched, then we have a broken ls. This can happen
3754 # if, for instance, CONFIG_SHELL is bash and it inherits a
3755 # broken ls alias from the environment. This has actually
3756 # happened. Such a system could not be considered "sane".
3757 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3758 alias in your environment" "$LINENO" 5
3759 fi
3760 if test "$2" = conftest.file || test $am_try -eq 2; then
3761 break
3762 fi
3763 # Just in case.
3764 sleep 1
3765 am_has_slept=yes
3766 done
cristy73bd4a52010-10-05 11:24:23 +00003767 test "$2" = conftest.file
3768 )
3769then
3770 # Ok.
3771 :
3772else
cristy98dddb52010-11-04 00:30:15 +00003773 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003774Check your system clock" "$LINENO" 5
3775fi
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3777$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003778# If we didn't sleep, we still need to ensure time stamps of config.status and
3779# generated files are strictly newer.
3780am_sleep_pid=
3781if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3782 ( sleep 1 ) &
3783 am_sleep_pid=$!
3784fi
cristy73bd4a52010-10-05 11:24:23 +00003785
cristyc0890a62012-07-19 00:18:20 +00003786rm -f conftest.file
3787
3788
cristya5bda012013-11-03 18:05:38 +00003789am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003790
3791# Find a good install program. We prefer a C program (faster),
3792# so one script is as good as another. But avoid the broken or
3793# incompatible versions:
3794# SysV /etc/install, /usr/sbin/install
3795# SunOS /usr/etc/install
3796# IRIX /sbin/install
3797# AIX /bin/install
3798# AmigaOS /C/install, which installs bootblocks on floppy discs
3799# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3800# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3801# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3802# OS/2's system install, which has a completely different semantic
3803# ./install, which can be erroneously created by make from ./install.sh.
3804# Reject install programs that cannot install multiple files.
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3806$as_echo_n "checking for a BSD-compatible install... " >&6; }
3807if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003808if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003809 $as_echo_n "(cached) " >&6
3810else
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812for as_dir in $PATH
3813do
3814 IFS=$as_save_IFS
3815 test -z "$as_dir" && as_dir=.
3816 # Account for people who put trailing slashes in PATH elements.
3817case $as_dir/ in #((
3818 ./ | .// | /[cC]/* | \
3819 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3820 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3821 /usr/ucb/* ) ;;
3822 *)
3823 # OSF1 and SCO ODT 3.0 have their own names for install.
3824 # Don't use installbsd from OSF since it installs stuff as root
3825 # by default.
3826 for ac_prog in ginstall scoinst install; do
3827 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003828 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003829 if test $ac_prog = install &&
3830 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3831 # AIX install. It has an incompatible calling convention.
3832 :
3833 elif test $ac_prog = install &&
3834 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3835 # program-specific install script used by HP pwplus--don't use.
3836 :
3837 else
3838 rm -rf conftest.one conftest.two conftest.dir
3839 echo one > conftest.one
3840 echo two > conftest.two
3841 mkdir conftest.dir
3842 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3843 test -s conftest.one && test -s conftest.two &&
3844 test -s conftest.dir/conftest.one &&
3845 test -s conftest.dir/conftest.two
3846 then
3847 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3848 break 3
3849 fi
3850 fi
3851 fi
3852 done
3853 done
3854 ;;
3855esac
3856
3857 done
3858IFS=$as_save_IFS
3859
3860rm -rf conftest.one conftest.two conftest.dir
3861
3862fi
3863 if test "${ac_cv_path_install+set}" = set; then
3864 INSTALL=$ac_cv_path_install
3865 else
3866 # As a last resort, use the slow shell script. Don't cache a
3867 # value for INSTALL within a source directory, because that will
3868 # break other packages using the cache if that directory is
3869 # removed, or if the value is a relative name.
3870 INSTALL=$ac_install_sh
3871 fi
3872fi
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3874$as_echo "$INSTALL" >&6; }
3875
3876# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3877# It thinks the first close brace ends the variable substitution.
3878test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3879
3880test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3881
3882test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3883
3884test "$program_prefix" != NONE &&
3885 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3886# Use a double $ so make ignores it.
3887test "$program_suffix" != NONE &&
3888 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3889# Double any \ or $.
3890# By default was `s,x,x', remove it if useless.
3891ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3892program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3893
3894# expand $ac_aux_dir to an absolute path
3895am_aux_dir=`cd $ac_aux_dir && pwd`
3896
3897if test x"${MISSING+set}" != xset; then
3898 case $am_aux_dir in
3899 *\ * | *\ *)
3900 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3901 *)
3902 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3903 esac
3904fi
3905# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003906if eval "$MISSING --is-lightweight"; then
3907 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003908else
3909 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3911$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003912fi
3913
3914if test x"${install_sh}" != xset; then
3915 case $am_aux_dir in
3916 *\ * | *\ *)
3917 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3918 *)
3919 install_sh="\${SHELL} $am_aux_dir/install-sh"
3920 esac
3921fi
3922
cristyc0890a62012-07-19 00:18:20 +00003923# Installed binaries are usually stripped using 'strip' when the user
3924# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003925# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003926# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003927if test "$cross_compiling" != no; then
3928 if test -n "$ac_tool_prefix"; then
3929 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3930set dummy ${ac_tool_prefix}strip; ac_word=$2
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003933if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003934 $as_echo_n "(cached) " >&6
3935else
3936 if test -n "$STRIP"; then
3937 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3938else
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003946 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3949 fi
3950done
3951 done
3952IFS=$as_save_IFS
3953
3954fi
3955fi
3956STRIP=$ac_cv_prog_STRIP
3957if test -n "$STRIP"; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3959$as_echo "$STRIP" >&6; }
3960else
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962$as_echo "no" >&6; }
3963fi
3964
3965
3966fi
3967if test -z "$ac_cv_prog_STRIP"; then
3968 ac_ct_STRIP=$STRIP
3969 # Extract the first word of "strip", so it can be a program name with args.
3970set dummy strip; ac_word=$2
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3972$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003973if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003974 $as_echo_n "(cached) " >&6
3975else
3976 if test -n "$ac_ct_STRIP"; then
3977 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3978else
3979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980for as_dir in $PATH
3981do
3982 IFS=$as_save_IFS
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003986 ac_cv_prog_ac_ct_STRIP="strip"
3987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 break 2
3989 fi
3990done
3991 done
3992IFS=$as_save_IFS
3993
3994fi
3995fi
3996ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3997if test -n "$ac_ct_STRIP"; then
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3999$as_echo "$ac_ct_STRIP" >&6; }
4000else
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002$as_echo "no" >&6; }
4003fi
4004
4005 if test "x$ac_ct_STRIP" = x; then
4006 STRIP=":"
4007 else
4008 case $cross_compiling:$ac_tool_warned in
4009yes:)
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4012ac_tool_warned=yes ;;
4013esac
4014 STRIP=$ac_ct_STRIP
4015 fi
4016else
4017 STRIP="$ac_cv_prog_STRIP"
4018fi
4019
4020fi
4021INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4022
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4024$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4025if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004026 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004027 $as_echo_n "(cached) " >&6
4028else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4031do
4032 IFS=$as_save_IFS
4033 test -z "$as_dir" && as_dir=.
4034 for ac_prog in mkdir gmkdir; do
4035 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004036 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004037 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4038 'mkdir (GNU coreutils) '* | \
4039 'mkdir (coreutils) '* | \
4040 'mkdir (fileutils) '4.1*)
4041 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4042 break 3;;
4043 esac
4044 done
4045 done
4046 done
4047IFS=$as_save_IFS
4048
4049fi
4050
4051 test -d ./--version && rmdir ./--version
4052 if test "${ac_cv_path_mkdir+set}" = set; then
4053 MKDIR_P="$ac_cv_path_mkdir -p"
4054 else
4055 # As a last resort, use the slow shell script. Don't cache a
4056 # value for MKDIR_P within a source directory, because that will
4057 # break other packages using the cache if that directory is
4058 # removed, or if the value is a relative name.
4059 MKDIR_P="$ac_install_sh -d"
4060 fi
4061fi
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4063$as_echo "$MKDIR_P" >&6; }
4064
cristy73bd4a52010-10-05 11:24:23 +00004065for ac_prog in gawk mawk nawk awk
4066do
4067 # Extract the first word of "$ac_prog", so it can be a program name with args.
4068set dummy $ac_prog; ac_word=$2
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004071if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004072 $as_echo_n "(cached) " >&6
4073else
4074 if test -n "$AWK"; then
4075 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4076else
4077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078for as_dir in $PATH
4079do
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004084 ac_cv_prog_AWK="$ac_prog"
4085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4087 fi
4088done
4089 done
4090IFS=$as_save_IFS
4091
4092fi
4093fi
4094AWK=$ac_cv_prog_AWK
4095if test -n "$AWK"; then
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4097$as_echo "$AWK" >&6; }
4098else
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100$as_echo "no" >&6; }
4101fi
4102
4103
4104 test -n "$AWK" && break
4105done
4106
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4108$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4109set x ${MAKE-make}
4110ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004111if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004112 $as_echo_n "(cached) " >&6
4113else
4114 cat >conftest.make <<\_ACEOF
4115SHELL = /bin/sh
4116all:
4117 @echo '@@@%%%=$(MAKE)=@@@%%%'
4118_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004119# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004120case `${MAKE-make} -f conftest.make 2>/dev/null` in
4121 *@@@%%%=?*=@@@%%%*)
4122 eval ac_cv_prog_make_${ac_make}_set=yes;;
4123 *)
4124 eval ac_cv_prog_make_${ac_make}_set=no;;
4125esac
4126rm -f conftest.make
4127fi
4128if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4130$as_echo "yes" >&6; }
4131 SET_MAKE=
4132else
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134$as_echo "no" >&6; }
4135 SET_MAKE="MAKE=${MAKE-make}"
4136fi
4137
4138rm -rf .tst 2>/dev/null
4139mkdir .tst 2>/dev/null
4140if test -d .tst; then
4141 am__leading_dot=.
4142else
4143 am__leading_dot=_
4144fi
4145rmdir .tst 2>/dev/null
4146
cristya448bd22011-10-14 12:38:13 +00004147# Check whether --enable-silent-rules was given.
4148if test "${enable_silent_rules+set}" = set; then :
4149 enableval=$enable_silent_rules;
4150fi
4151
cristyc0890a62012-07-19 00:18:20 +00004152case $enable_silent_rules in # (((
4153 yes) AM_DEFAULT_VERBOSITY=0;;
4154 no) AM_DEFAULT_VERBOSITY=1;;
4155 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004156esac
cristyc3fb77b2012-02-06 01:49:41 +00004157am_make=${MAKE-make}
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4159$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4160if ${am_cv_make_support_nested_variables+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162else
4163 if $as_echo 'TRUE=$(BAR$(V))
4164BAR0=false
4165BAR1=true
4166V=1
4167am__doit:
4168 @$(TRUE)
4169.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4170 am_cv_make_support_nested_variables=yes
4171else
4172 am_cv_make_support_nested_variables=no
4173fi
4174fi
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4176$as_echo "$am_cv_make_support_nested_variables" >&6; }
4177if test $am_cv_make_support_nested_variables = yes; then
4178 AM_V='$(V)'
4179 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4180else
4181 AM_V=$AM_DEFAULT_VERBOSITY
4182 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4183fi
cristya448bd22011-10-14 12:38:13 +00004184AM_BACKSLASH='\'
4185
cristy73bd4a52010-10-05 11:24:23 +00004186if test "`cd $srcdir && pwd`" != "`pwd`"; then
4187 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4188 # is not polluted with repeated "-I."
4189 am__isrc=' -I$(srcdir)'
4190 # test to see if srcdir already configured
4191 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004192 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004193 fi
4194fi
4195
4196# test whether we have cygpath
4197if test -z "$CYGPATH_W"; then
4198 if (cygpath --version) >/dev/null 2>/dev/null; then
4199 CYGPATH_W='cygpath -w'
4200 else
4201 CYGPATH_W=echo
4202 fi
4203fi
4204
4205
4206# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004207 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004208 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004209
4210
cristya448bd22011-10-14 12:38:13 +00004211cat >>confdefs.h <<_ACEOF
4212#define PACKAGE "$PACKAGE"
4213_ACEOF
4214
4215
4216cat >>confdefs.h <<_ACEOF
4217#define VERSION "$VERSION"
4218_ACEOF
4219
cristy73bd4a52010-10-05 11:24:23 +00004220# Some tools Automake needs.
4221
4222ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4223
4224
4225AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4226
4227
4228AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4229
4230
4231AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4232
4233
4234MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4235
cristyc0890a62012-07-19 00:18:20 +00004236# For better backward compatibility. To be removed once Automake 1.9.x
4237# dies out for good. For more background, see:
4238# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4239# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4240mkdir_p='$(MKDIR_P)'
4241
cristy73bd4a52010-10-05 11:24:23 +00004242# We need awk for the "check" target. The system "awk" is bad on
4243# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004244# Always define AMTAR for backward compatibility. Yes, it's still used
4245# in the wild :-( We should find a proper way to deprecate it ...
4246AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004247
cristye69bdbe2013-05-03 21:40:44 +00004248
4249# We'll loop over all known methods to create a tar archive until one works.
4250_am_tools='gnutar pax cpio none'
4251
cristyc3fb77b2012-02-06 01:49:41 +00004252am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004253
4254
4255
4256
4257
cristy3ed852e2009-09-05 21:47:34 +00004258
cristya5bda012013-11-03 18:05:38 +00004259# POSIX will say in a future version that running "rm -f" with no argument
4260# is OK; and we want to be able to make that assumption in our Makefile
4261# recipes. So use an aggressive probe to check that the usage we want is
4262# actually supported "in the wild" to an acceptable degree.
4263# See automake bug#10828.
4264# To make any issue more visible, cause the running configure to be aborted
4265# by default if the 'rm' program in use doesn't match our expectations; the
4266# user can still override this though.
4267if rm -f && rm -fr && rm -rf; then : OK; else
4268 cat >&2 <<'END'
4269Oops!
4270
4271Your 'rm' program seems unable to run without file operands specified
4272on the command line, even when the '-f' option is present. This is contrary
4273to the behaviour of most rm programs out there, and not conforming with
4274the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4275
4276Please tell bug-automake@gnu.org about your system, including the value
4277of your $PATH and any error possibly output before this message. This
4278can help us improve future automake versions.
4279
4280END
4281 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4282 echo 'Configuration will proceed anyway, since you have set the' >&2
4283 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4284 echo >&2
4285 else
4286 cat >&2 <<'END'
4287Aborting the configuration process, to ensure you take notice of the issue.
4288
4289You can download and install GNU coreutils to get an 'rm' implementation
4290that behaves properly: <http://www.gnu.org/software/coreutils/>.
4291
4292If you want to complete the configuration process using your problematic
4293'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4294to "yes", and re-run configure.
4295
4296END
4297 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4298 fi
4299fi
cristye69bdbe2013-05-03 21:40:44 +00004300
cristy3ed852e2009-09-05 21:47:34 +00004301# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004302# Check whether --enable-silent-rules was given.
4303if test "${enable_silent_rules+set}" = set; then :
4304 enableval=$enable_silent_rules;
4305fi
4306
cristyc0890a62012-07-19 00:18:20 +00004307case $enable_silent_rules in # (((
4308 yes) AM_DEFAULT_VERBOSITY=0;;
4309 no) AM_DEFAULT_VERBOSITY=1;;
4310 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004311esac
cristyc3fb77b2012-02-06 01:49:41 +00004312am_make=${MAKE-make}
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4314$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4315if ${am_cv_make_support_nested_variables+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317else
4318 if $as_echo 'TRUE=$(BAR$(V))
4319BAR0=false
4320BAR1=true
4321V=1
4322am__doit:
4323 @$(TRUE)
4324.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4325 am_cv_make_support_nested_variables=yes
4326else
4327 am_cv_make_support_nested_variables=no
4328fi
4329fi
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4331$as_echo "$am_cv_make_support_nested_variables" >&6; }
4332if test $am_cv_make_support_nested_variables = yes; then
4333 AM_V='$(V)'
4334 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4335else
4336 AM_V=$AM_DEFAULT_VERBOSITY
4337 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4338fi
cristy73bd4a52010-10-05 11:24:23 +00004339AM_BACKSLASH='\'
4340
cristy3ed852e2009-09-05 21:47:34 +00004341
cristy5ed9c6e2013-07-14 21:20:31 +00004342# versionning of library
cristy3ed852e2009-09-05 21:47:34 +00004343MAGICK_LIB_VERSION="0x"
4344if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4345 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4346fi
4347MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4348if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4349 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4350fi
4351MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4352if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4353 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4354fi
4355MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4356
4357
4358# Definition used to define MagickLibVersionText in version.h
4359MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4360
4361
4362# Definition used to define MagickLibVersionNumber in version.h
4363MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4364
4365
cristy5ed9c6e2013-07-14 21:20:31 +00004366MAGICKPP_LIB_VERSION="0x"
4367if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4368 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4369fi
4370MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4371if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4372 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4373fi
4374MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4375if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4376 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4377fi
4378MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4379
4380
4381# Definition used to define MagickLibVersionText in version.h
4382MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4383
4384
4385# Definition used to define MagickLibVersionNumber in version.h
4386MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4387
4388
4389
4390
cristy3ed852e2009-09-05 21:47:34 +00004391# Regenerate config.status if ChangeLog or version.sh is updated.
4392CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4393
4394
4395PERLMAINCC=$CC
4396
4397MAGICK_CFLAGS=''
4398MAGICK_CPPFLAGS=$CPPFLAGS_USER
4399MAGICK_PCFLAGS=$CPPFLAGS_USER
4400MAGICK_LDFLAGS=''
4401MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004402MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004403
4404#
4405# Evaluate shell variable equivalents to Makefile directory variables
4406#
4407if test "x$prefix" = xNONE; then
4408 prefix=$ac_default_prefix
4409fi
4410# Let make expand exec_prefix.
4411if test "x$exec_prefix" = xNONE; then
4412 exec_prefix='${prefix}'
4413fi
4414
4415#
4416eval "eval PREFIX_DIR=${prefix}"
4417
4418eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4419
4420eval "eval BIN_DIR=$bindir"
4421
4422eval "eval SBIN_DIR=$sbindir"
4423
4424eval "eval LIBEXEC_DIR=$libexecdir"
4425
4426eval "eval DATA_DIR=$datadir"
4427
cristy4e65ec22012-04-08 01:33:27 +00004428eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004429
cristy3ed852e2009-09-05 21:47:34 +00004430eval "eval SYSCONF_DIR=$sysconfdir"
4431
4432eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4433
4434eval "eval LOCALSTATE_DIR=$localstatedir"
4435
4436eval "eval LIB_DIR=$libdir"
4437
4438eval "eval INCLUDE_DIR=$includedir"
4439
4440eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4441
4442eval "eval INFO_DIR=$infodir"
4443
4444eval "eval MAN_DIR=$mandir"
4445
4446
4447# Get full paths to source and build directories
4448srcdirfull="`cd $srcdir && pwd`"
4449builddir="`pwd`"
4450
4451#
4452# Compute variables useful for running uninstalled software.
4453#
4454MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4455MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4456MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4457MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4458DIRSEP=':'
4459case "${build_os}" in
4460 mingw* )
4461 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4462 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4463 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4464 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4465 DIRSEP=';'
4466 ;;
4467esac
4468case "${host_os}" in
4469 mingw* )
4470 DIRSEP=';'
4471 ;;
4472esac
4473
4474
4475
4476
4477
4478
cristya0b81c32010-01-22 02:54:33 +00004479
4480#
4481# Enable OS features.
4482#
cristy73bd4a52010-10-05 11:24:23 +00004483DEPDIR="${am__leading_dot}deps"
4484
4485ac_config_commands="$ac_config_commands depfiles"
4486
4487
4488am_make=${MAKE-make}
4489cat > confinc << 'END'
4490am__doit:
4491 @echo this is the am__doit target
4492.PHONY: am__doit
4493END
4494# If we don't find an include directive, just comment out the code.
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4496$as_echo_n "checking for style of include used by $am_make... " >&6; }
4497am__include="#"
4498am__quote=
4499_am_result=none
4500# First try GNU make style include.
4501echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004502# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004503case `$am_make -s -f confmf 2> /dev/null` in #(
4504*the\ am__doit\ target*)
4505 am__include=include
4506 am__quote=
4507 _am_result=GNU
4508 ;;
4509esac
4510# Now try BSD make style include.
4511if test "$am__include" = "#"; then
4512 echo '.include "confinc"' > confmf
4513 case `$am_make -s -f confmf 2> /dev/null` in #(
4514 *the\ am__doit\ target*)
4515 am__include=.include
4516 am__quote="\""
4517 _am_result=BSD
4518 ;;
4519 esac
4520fi
4521
4522
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4524$as_echo "$_am_result" >&6; }
4525rm -f confinc confmf
4526
4527# Check whether --enable-dependency-tracking was given.
4528if test "${enable_dependency_tracking+set}" = set; then :
4529 enableval=$enable_dependency_tracking;
4530fi
4531
4532if test "x$enable_dependency_tracking" != xno; then
4533 am_depcomp="$ac_aux_dir/depcomp"
4534 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004535 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004536fi
4537 if test "x$enable_dependency_tracking" != xno; then
4538 AMDEP_TRUE=
4539 AMDEP_FALSE='#'
4540else
4541 AMDEP_TRUE='#'
4542 AMDEP_FALSE=
4543fi
4544
4545
cristy3ed852e2009-09-05 21:47:34 +00004546ac_ext=c
4547ac_cpp='$CPP $CPPFLAGS'
4548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551if test -n "$ac_tool_prefix"; then
4552 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4553set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004555$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004556if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004557 $as_echo_n "(cached) " >&6
4558else
4559 if test -n "$CC"; then
4560 ac_cv_prog_CC="$CC" # Let the user override the test.
4561else
4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004567 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004569 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004571 break 2
4572 fi
4573done
cristy8b350f62009-11-15 23:12:43 +00004574 done
cristy3ed852e2009-09-05 21:47:34 +00004575IFS=$as_save_IFS
4576
4577fi
4578fi
4579CC=$ac_cv_prog_CC
4580if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004582$as_echo "$CC" >&6; }
4583else
cristy8b350f62009-11-15 23:12:43 +00004584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004585$as_echo "no" >&6; }
4586fi
4587
4588
4589fi
4590if test -z "$ac_cv_prog_CC"; then
4591 ac_ct_CC=$CC
4592 # Extract the first word of "gcc", so it can be a program name with args.
4593set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004596if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004597 $as_echo_n "(cached) " >&6
4598else
4599 if test -n "$ac_ct_CC"; then
4600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4601else
4602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004607 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004609 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004611 break 2
4612 fi
4613done
cristy8b350f62009-11-15 23:12:43 +00004614 done
cristy3ed852e2009-09-05 21:47:34 +00004615IFS=$as_save_IFS
4616
4617fi
4618fi
4619ac_ct_CC=$ac_cv_prog_ac_ct_CC
4620if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004622$as_echo "$ac_ct_CC" >&6; }
4623else
cristy8b350f62009-11-15 23:12:43 +00004624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004625$as_echo "no" >&6; }
4626fi
4627
4628 if test "x$ac_ct_CC" = x; then
4629 CC=""
4630 else
4631 case $cross_compiling:$ac_tool_warned in
4632yes:)
cristy8b350f62009-11-15 23:12:43 +00004633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4635ac_tool_warned=yes ;;
4636esac
4637 CC=$ac_ct_CC
4638 fi
4639else
4640 CC="$ac_cv_prog_CC"
4641fi
4642
4643if test -z "$CC"; then
4644 if test -n "$ac_tool_prefix"; then
4645 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4646set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004648$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004649if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004650 $as_echo_n "(cached) " >&6
4651else
4652 if test -n "$CC"; then
4653 ac_cv_prog_CC="$CC" # Let the user override the test.
4654else
4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004660 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004662 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004664 break 2
4665 fi
4666done
cristy8b350f62009-11-15 23:12:43 +00004667 done
cristy3ed852e2009-09-05 21:47:34 +00004668IFS=$as_save_IFS
4669
4670fi
4671fi
4672CC=$ac_cv_prog_CC
4673if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004675$as_echo "$CC" >&6; }
4676else
cristy8b350f62009-11-15 23:12:43 +00004677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004678$as_echo "no" >&6; }
4679fi
4680
4681
4682 fi
4683fi
4684if test -z "$CC"; then
4685 # Extract the first word of "cc", so it can be a program name with args.
4686set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004688$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004689if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004690 $as_echo_n "(cached) " >&6
4691else
4692 if test -n "$CC"; then
4693 ac_cv_prog_CC="$CC" # Let the user override the test.
4694else
4695 ac_prog_rejected=no
4696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697for as_dir in $PATH
4698do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004701 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4704 ac_prog_rejected=yes
4705 continue
4706 fi
4707 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004709 break 2
4710 fi
4711done
cristy8b350f62009-11-15 23:12:43 +00004712 done
cristy3ed852e2009-09-05 21:47:34 +00004713IFS=$as_save_IFS
4714
4715if test $ac_prog_rejected = yes; then
4716 # We found a bogon in the path, so make sure we never use it.
4717 set dummy $ac_cv_prog_CC
4718 shift
4719 if test $# != 0; then
4720 # We chose a different compiler from the bogus one.
4721 # However, it has the same basename, so the bogon will be chosen
4722 # first if we set CC to just the basename; use the full file name.
4723 shift
4724 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4725 fi
4726fi
4727fi
4728fi
4729CC=$ac_cv_prog_CC
4730if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004732$as_echo "$CC" >&6; }
4733else
cristy8b350f62009-11-15 23:12:43 +00004734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004735$as_echo "no" >&6; }
4736fi
4737
4738
4739fi
4740if test -z "$CC"; then
4741 if test -n "$ac_tool_prefix"; then
4742 for ac_prog in cl.exe
4743 do
4744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4745set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004747$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004748if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004749 $as_echo_n "(cached) " >&6
4750else
4751 if test -n "$CC"; then
4752 ac_cv_prog_CC="$CC" # Let the user override the test.
4753else
4754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755for as_dir in $PATH
4756do
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004759 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004761 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004763 break 2
4764 fi
4765done
cristy8b350f62009-11-15 23:12:43 +00004766 done
cristy3ed852e2009-09-05 21:47:34 +00004767IFS=$as_save_IFS
4768
4769fi
4770fi
4771CC=$ac_cv_prog_CC
4772if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004774$as_echo "$CC" >&6; }
4775else
cristy8b350f62009-11-15 23:12:43 +00004776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004777$as_echo "no" >&6; }
4778fi
4779
4780
4781 test -n "$CC" && break
4782 done
4783fi
4784if test -z "$CC"; then
4785 ac_ct_CC=$CC
4786 for ac_prog in cl.exe
4787do
4788 # Extract the first word of "$ac_prog", so it can be a program name with args.
4789set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004791$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004792if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004793 $as_echo_n "(cached) " >&6
4794else
4795 if test -n "$ac_ct_CC"; then
4796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4797else
4798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799for as_dir in $PATH
4800do
4801 IFS=$as_save_IFS
4802 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004803 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004805 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004807 break 2
4808 fi
4809done
cristy8b350f62009-11-15 23:12:43 +00004810 done
cristy3ed852e2009-09-05 21:47:34 +00004811IFS=$as_save_IFS
4812
4813fi
4814fi
4815ac_ct_CC=$ac_cv_prog_ac_ct_CC
4816if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004818$as_echo "$ac_ct_CC" >&6; }
4819else
cristy8b350f62009-11-15 23:12:43 +00004820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004821$as_echo "no" >&6; }
4822fi
4823
4824
4825 test -n "$ac_ct_CC" && break
4826done
4827
4828 if test "x$ac_ct_CC" = x; then
4829 CC=""
4830 else
4831 case $cross_compiling:$ac_tool_warned in
4832yes:)
cristy8b350f62009-11-15 23:12:43 +00004833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4835ac_tool_warned=yes ;;
4836esac
4837 CC=$ac_ct_CC
4838 fi
4839fi
4840
4841fi
4842
4843
cristy8b350f62009-11-15 23:12:43 +00004844test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004846as_fn_error $? "no acceptable C compiler found in \$PATH
4847See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004848
4849# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004850$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004851set X $ac_compile
4852ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004853for ac_option in --version -v -V -qversion; do
4854 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004855case "(($ac_try" in
4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857 *) ac_try_echo=$ac_try;;
4858esac
cristy8b350f62009-11-15 23:12:43 +00004859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4860$as_echo "$ac_try_echo"; } >&5
4861 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004862 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004863 if test -s conftest.err; then
4864 sed '10a\
4865... rest of stderr output deleted ...
4866 10q' conftest.err >conftest.er1
4867 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004868 fi
cristycd4c5312009-11-22 01:19:08 +00004869 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4871 test $ac_status = 0; }
4872done
cristy3ed852e2009-09-05 21:47:34 +00004873
cristy8b350f62009-11-15 23:12:43 +00004874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004875/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004876
cristy3ed852e2009-09-05 21:47:34 +00004877int
4878main ()
4879{
4880
4881 ;
4882 return 0;
4883}
4884_ACEOF
4885ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004886ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004887# Try to create an executable without -o first, disregard a.out.
4888# It will help us diagnose broken compilers, and finding out an intuition
4889# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4891$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004892ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4893
4894# The possible output files:
4895ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4896
4897ac_rmfiles=
4898for ac_file in $ac_files
4899do
4900 case $ac_file in
4901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4902 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4903 esac
4904done
4905rm -f $ac_rmfiles
4906
cristy8b350f62009-11-15 23:12:43 +00004907if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004908case "(($ac_try" in
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4911esac
cristy8b350f62009-11-15 23:12:43 +00004912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4913$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004914 (eval "$ac_link_default") 2>&5
4915 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4917 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004918 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4919# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4920# in a Makefile. We should not override ac_cv_exeext if it was cached,
4921# so that the user can short-circuit this test for compilers unknown to
4922# Autoconf.
4923for ac_file in $ac_files ''
4924do
4925 test -f "$ac_file" || continue
4926 case $ac_file in
4927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4928 ;;
4929 [ab].out )
4930 # We found the default executable, but exeext='' is most
4931 # certainly right.
4932 break;;
4933 *.* )
cristy8b350f62009-11-15 23:12:43 +00004934 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004935 then :; else
4936 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4937 fi
4938 # We set ac_cv_exeext here because the later test for it is not
4939 # safe: cross compilers may not add the suffix if given an `-o'
4940 # argument, so we may need to know it at that point already.
4941 # Even if this section looks crufty: it has the advantage of
4942 # actually working.
4943 break;;
4944 * )
4945 break;;
4946 esac
4947done
4948test "$ac_cv_exeext" = no && ac_cv_exeext=
4949
4950else
4951 ac_file=''
4952fi
cristy8b350f62009-11-15 23:12:43 +00004953if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955$as_echo "no" >&6; }
4956$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004957sed 's/^/| /' conftest.$ac_ext >&5
4958
cristy8b350f62009-11-15 23:12:43 +00004959{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004961as_fn_error 77 "C compiler cannot create executables
4962See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004963else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4965$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004966fi
cristycd4c5312009-11-22 01:19:08 +00004967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4968$as_echo_n "checking for C compiler default output file name... " >&6; }
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4970$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004971ac_exeext=$ac_cv_exeext
4972
cristycd4c5312009-11-22 01:19:08 +00004973rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004974ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004976$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004977if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004978case "(($ac_try" in
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4981esac
cristy8b350f62009-11-15 23:12:43 +00004982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4983$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004984 (eval "$ac_link") 2>&5
4985 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4987 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004988 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4989# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4990# work properly (i.e., refer to `conftest.exe'), while it won't with
4991# `rm'.
4992for ac_file in conftest.exe conftest conftest.*; do
4993 test -f "$ac_file" || continue
4994 case $ac_file in
4995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4996 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4997 break;;
4998 * ) break;;
4999 esac
5000done
5001else
cristy8b350f62009-11-15 23:12:43 +00005002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005003$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005004as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5005See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005006fi
cristycd4c5312009-11-22 01:19:08 +00005007rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005009$as_echo "$ac_cv_exeext" >&6; }
5010
5011rm -f conftest.$ac_ext
5012EXEEXT=$ac_cv_exeext
5013ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015/* end confdefs.h. */
5016#include <stdio.h>
5017int
5018main ()
5019{
5020FILE *f = fopen ("conftest.out", "w");
5021 return ferror (f) || fclose (f) != 0;
5022
5023 ;
5024 return 0;
5025}
5026_ACEOF
5027ac_clean_files="$ac_clean_files conftest.out"
5028# Check that the compiler produces executables we can run. If not, either
5029# the compiler is broken, or we cross compile.
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5031$as_echo_n "checking whether we are cross compiling... " >&6; }
5032if test "$cross_compiling" != yes; then
5033 { { ac_try="$ac_link"
5034case "(($ac_try" in
5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5037esac
5038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5039$as_echo "$ac_try_echo"; } >&5
5040 (eval "$ac_link") 2>&5
5041 ac_status=$?
5042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5043 test $ac_status = 0; }
5044 if { ac_try='./conftest$ac_cv_exeext'
5045 { { case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5048esac
5049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5050$as_echo "$ac_try_echo"; } >&5
5051 (eval "$ac_try") 2>&5
5052 ac_status=$?
5053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5054 test $ac_status = 0; }; }; then
5055 cross_compiling=no
5056 else
5057 if test "$cross_compiling" = maybe; then
5058 cross_compiling=yes
5059 else
5060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005062as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005063If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005064See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005065 fi
5066 fi
5067fi
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5069$as_echo "$cross_compiling" >&6; }
5070
5071rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5072ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005074$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005075if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005076 $as_echo_n "(cached) " >&6
5077else
cristy8b350f62009-11-15 23:12:43 +00005078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005079/* end confdefs.h. */
5080
5081int
5082main ()
5083{
5084
5085 ;
5086 return 0;
5087}
5088_ACEOF
5089rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005090if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005091case "(($ac_try" in
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5094esac
cristy8b350f62009-11-15 23:12:43 +00005095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5096$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005097 (eval "$ac_compile") 2>&5
5098 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5100 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005101 for ac_file in conftest.o conftest.obj conftest.*; do
5102 test -f "$ac_file" || continue;
5103 case $ac_file in
5104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5105 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5106 break;;
5107 esac
5108done
5109else
5110 $as_echo "$as_me: failed program was:" >&5
5111sed 's/^/| /' conftest.$ac_ext >&5
5112
cristy8b350f62009-11-15 23:12:43 +00005113{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005115as_fn_error $? "cannot compute suffix of object files: cannot compile
5116See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005117fi
cristy3ed852e2009-09-05 21:47:34 +00005118rm -f conftest.$ac_cv_objext conftest.$ac_ext
5119fi
cristy8b350f62009-11-15 23:12:43 +00005120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005121$as_echo "$ac_cv_objext" >&6; }
5122OBJEXT=$ac_cv_objext
5123ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005125$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005126if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005127 $as_echo_n "(cached) " >&6
5128else
cristy8b350f62009-11-15 23:12:43 +00005129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005130/* end confdefs.h. */
5131
5132int
5133main ()
5134{
5135#ifndef __GNUC__
5136 choke me
5137#endif
5138
5139 ;
5140 return 0;
5141}
5142_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005143if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005144 ac_compiler_gnu=yes
5145else
cristy8b350f62009-11-15 23:12:43 +00005146 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005147fi
cristy3ed852e2009-09-05 21:47:34 +00005148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149ac_cv_c_compiler_gnu=$ac_compiler_gnu
5150
5151fi
cristy8b350f62009-11-15 23:12:43 +00005152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005153$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5154if test $ac_compiler_gnu = yes; then
5155 GCC=yes
5156else
5157 GCC=
5158fi
5159ac_test_CFLAGS=${CFLAGS+set}
5160ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005162$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005163if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005164 $as_echo_n "(cached) " >&6
5165else
5166 ac_save_c_werror_flag=$ac_c_werror_flag
5167 ac_c_werror_flag=yes
5168 ac_cv_prog_cc_g=no
5169 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005171/* end confdefs.h. */
5172
5173int
5174main ()
5175{
5176
5177 ;
5178 return 0;
5179}
5180_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005181if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005182 ac_cv_prog_cc_g=yes
5183else
cristy8b350f62009-11-15 23:12:43 +00005184 CFLAGS=""
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005186/* end confdefs.h. */
5187
5188int
5189main ()
5190{
5191
5192 ;
5193 return 0;
5194}
5195_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005196if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005197
cristy8b350f62009-11-15 23:12:43 +00005198else
5199 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005200 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005202/* end confdefs.h. */
5203
5204int
5205main ()
5206{
5207
5208 ;
5209 return 0;
5210}
5211_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005212if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005213 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005214fi
cristy3ed852e2009-09-05 21:47:34 +00005215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216fi
cristy3ed852e2009-09-05 21:47:34 +00005217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218fi
cristy3ed852e2009-09-05 21:47:34 +00005219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220 ac_c_werror_flag=$ac_save_c_werror_flag
5221fi
cristy8b350f62009-11-15 23:12:43 +00005222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005223$as_echo "$ac_cv_prog_cc_g" >&6; }
5224if test "$ac_test_CFLAGS" = set; then
5225 CFLAGS=$ac_save_CFLAGS
5226elif test $ac_cv_prog_cc_g = yes; then
5227 if test "$GCC" = yes; then
5228 CFLAGS="-g -O2"
5229 else
5230 CFLAGS="-g"
5231 fi
5232else
5233 if test "$GCC" = yes; then
5234 CFLAGS="-O2"
5235 else
5236 CFLAGS=
5237 fi
5238fi
cristy8b350f62009-11-15 23:12:43 +00005239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005240$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005241if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005242 $as_echo_n "(cached) " >&6
5243else
5244 ac_cv_prog_cc_c89=no
5245ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005247/* end confdefs.h. */
5248#include <stdarg.h>
5249#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005250struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005251/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5252struct buf { int x; };
5253FILE * (*rcsopen) (struct buf *, struct stat *, int);
5254static char *e (p, i)
5255 char **p;
5256 int i;
5257{
5258 return p[i];
5259}
5260static char *f (char * (*g) (char **, int), char **p, ...)
5261{
5262 char *s;
5263 va_list v;
5264 va_start (v,p);
5265 s = g (p, va_arg (v,int));
5266 va_end (v);
5267 return s;
5268}
5269
5270/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5271 function prototypes and stuff, but not '\xHH' hex character constants.
5272 These don't provoke an error unfortunately, instead are silently treated
5273 as 'x'. The following induces an error, until -std is added to get
5274 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5275 array size at least. It's necessary to write '\x00'==0 to get something
5276 that's true only with -std. */
5277int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5278
5279/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5280 inside strings and character constants. */
5281#define FOO(x) 'x'
5282int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5283
5284int test (int i, double x);
5285struct s1 {int (*f) (int a);};
5286struct s2 {int (*f) (double a);};
5287int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5288int argc;
5289char **argv;
5290int
5291main ()
5292{
5293return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5294 ;
5295 return 0;
5296}
5297_ACEOF
5298for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5299 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5300do
5301 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005302 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005303 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005304fi
cristy3ed852e2009-09-05 21:47:34 +00005305rm -f core conftest.err conftest.$ac_objext
5306 test "x$ac_cv_prog_cc_c89" != "xno" && break
5307done
5308rm -f conftest.$ac_ext
5309CC=$ac_save_CC
5310
5311fi
5312# AC_CACHE_VAL
5313case "x$ac_cv_prog_cc_c89" in
5314 x)
cristy8b350f62009-11-15 23:12:43 +00005315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005316$as_echo "none needed" >&6; } ;;
5317 xno)
cristy8b350f62009-11-15 23:12:43 +00005318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005319$as_echo "unsupported" >&6; } ;;
5320 *)
5321 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005323$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5324esac
cristy8b350f62009-11-15 23:12:43 +00005325if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005326
cristy8b350f62009-11-15 23:12:43 +00005327fi
cristy3ed852e2009-09-05 21:47:34 +00005328
5329ac_ext=c
5330ac_cpp='$CPP $CPPFLAGS'
5331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5333ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005334
cristya5bda012013-11-03 18:05:38 +00005335ac_ext=c
5336ac_cpp='$CPP $CPPFLAGS'
5337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5339ac_compiler_gnu=$ac_cv_c_compiler_gnu
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5341$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5342if ${am_cv_prog_cc_c_o+:} false; then :
5343 $as_echo_n "(cached) " >&6
5344else
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346/* end confdefs.h. */
5347
5348int
5349main ()
5350{
5351
5352 ;
5353 return 0;
5354}
5355_ACEOF
5356 # Make sure it works both with $CC and with simple cc.
5357 # Following AC_PROG_CC_C_O, we do the test twice because some
5358 # compilers refuse to overwrite an existing .o file with -o,
5359 # though they will create one.
5360 am_cv_prog_cc_c_o=yes
5361 for am_i in 1 2; do
5362 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5363 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } \
5367 && test -f conftest2.$ac_objext; then
5368 : OK
5369 else
5370 am_cv_prog_cc_c_o=no
5371 break
5372 fi
5373 done
5374 rm -f core conftest*
5375 unset am_i
5376fi
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5378$as_echo "$am_cv_prog_cc_c_o" >&6; }
5379if test "$am_cv_prog_cc_c_o" != yes; then
5380 # Losing compiler, so override with the script.
5381 # FIXME: It is wrong to rewrite CC.
5382 # But if we don't then we get into trouble of one sort or another.
5383 # A longer-term fix would be to have automake use am__CC in this case,
5384 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5385 CC="$am_aux_dir/compile $CC"
5386fi
5387ac_ext=c
5388ac_cpp='$CPP $CPPFLAGS'
5389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391ac_compiler_gnu=$ac_cv_c_compiler_gnu
5392
5393
cristy73bd4a52010-10-05 11:24:23 +00005394depcc="$CC" am_compiler_list=
5395
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5397$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005398if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005399 $as_echo_n "(cached) " >&6
5400else
5401 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5402 # We make a subdir and do the tests there. Otherwise we can end up
5403 # making bogus files that we don't know about and never remove. For
5404 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005405 # making a dummy file named 'D' -- because '-MD' means "put the output
5406 # in D".
cristy7247bba2012-02-05 16:37:27 +00005407 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005408 mkdir conftest.dir
5409 # Copy depcomp to subdir because otherwise we won't find it if we're
5410 # using a relative directory.
5411 cp "$am_depcomp" conftest.dir
5412 cd conftest.dir
5413 # We will build objects and dependencies in a subdirectory because
5414 # it helps to detect inapplicable dependency modes. For instance
5415 # both Tru64's cc and ICC support -MD to output dependencies as a
5416 # side effect of compilation, but ICC will put the dependencies in
5417 # the current directory while Tru64 will put them in the object
5418 # directory.
5419 mkdir sub
5420
5421 am_cv_CC_dependencies_compiler_type=none
5422 if test "$am_compiler_list" = ""; then
5423 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5424 fi
5425 am__universal=false
5426 case " $depcc " in #(
5427 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5428 esac
5429
5430 for depmode in $am_compiler_list; do
5431 # Setup a source with many dependencies, because some compilers
5432 # like to wrap large dependency lists on column 80 (with \), and
5433 # we should not choose a depcomp mode which is confused by this.
5434 #
5435 # We need to recreate these files for each test, as the compiler may
5436 # overwrite some of them when testing with obscure command lines.
5437 # This happens at least with the AIX C compiler.
5438 : > sub/conftest.c
5439 for i in 1 2 3 4 5 6; do
5440 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005441 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5442 # Solaris 10 /bin/sh.
5443 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005444 done
5445 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5446
cristyc0890a62012-07-19 00:18:20 +00005447 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005448 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005449 # handle '-M -o', and we need to detect this. Also, some Intel
5450 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005451 am__obj=sub/conftest.${OBJEXT-o}
5452 am__minus_obj="-o $am__obj"
5453 case $depmode in
5454 gcc)
5455 # This depmode causes a compiler race in universal mode.
5456 test "$am__universal" = false || continue
5457 ;;
5458 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005459 # After this tag, mechanisms are not by side-effect, so they'll
5460 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005461 if test "x$enable_dependency_tracking" = xyes; then
5462 continue
5463 else
5464 break
5465 fi
5466 ;;
cristy7247bba2012-02-05 16:37:27 +00005467 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005468 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005469 # not run yet. These depmodes are late enough in the game, and
5470 # so weak that their functioning should not be impacted.
5471 am__obj=conftest.${OBJEXT-o}
5472 am__minus_obj=
5473 ;;
5474 none) break ;;
5475 esac
5476 if depmode=$depmode \
5477 source=sub/conftest.c object=$am__obj \
5478 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5479 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5480 >/dev/null 2>conftest.err &&
5481 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5482 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5483 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5484 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5485 # icc doesn't choke on unknown options, it will just issue warnings
5486 # or remarks (even with -Werror). So we grep stderr for any message
5487 # that says an option was ignored or not supported.
5488 # When given -MP, icc 7.0 and 7.1 complain thusly:
5489 # icc: Command line warning: ignoring option '-M'; no argument required
5490 # The diagnosis changed in icc 8.0:
5491 # icc: Command line remark: option '-MP' not supported
5492 if (grep 'ignoring option' conftest.err ||
5493 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5494 am_cv_CC_dependencies_compiler_type=$depmode
5495 break
5496 fi
5497 fi
5498 done
5499
5500 cd ..
5501 rm -rf conftest.dir
5502else
5503 am_cv_CC_dependencies_compiler_type=none
5504fi
5505
5506fi
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5508$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5509CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5510
5511 if
5512 test "x$enable_dependency_tracking" != xno \
5513 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5514 am__fastdepCC_TRUE=
5515 am__fastdepCC_FALSE='#'
5516else
5517 am__fastdepCC_TRUE='#'
5518 am__fastdepCC_FALSE=
5519fi
5520
5521
cristy3ed852e2009-09-05 21:47:34 +00005522
cristya0b81c32010-01-22 02:54:33 +00005523ac_ext=c
5524ac_cpp='$CPP $CPPFLAGS'
5525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5527ac_compiler_gnu=$ac_cv_c_compiler_gnu
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5529$as_echo_n "checking how to run the C preprocessor... " >&6; }
5530# On Suns, sometimes $CPP names a directory.
5531if test -n "$CPP" && test -d "$CPP"; then
5532 CPP=
5533fi
5534if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005535 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005536 $as_echo_n "(cached) " >&6
5537else
5538 # Double quotes because CPP needs to be expanded
5539 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5540 do
5541 ac_preproc_ok=false
5542for ac_c_preproc_warn_flag in '' yes
5543do
5544 # Use a header file that comes with gcc, so configuring glibc
5545 # with a fresh cross-compiler works.
5546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5547 # <limits.h> exists even on freestanding compilers.
5548 # On the NeXT, cc -E runs the code through the compiler's parser,
5549 # not just through cpp. "Syntax error" is here to catch this case.
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551/* end confdefs.h. */
5552#ifdef __STDC__
5553# include <limits.h>
5554#else
5555# include <assert.h>
5556#endif
5557 Syntax error
5558_ACEOF
5559if ac_fn_c_try_cpp "$LINENO"; then :
5560
5561else
5562 # Broken: fails on valid input.
5563continue
5564fi
cristyda16f162011-02-19 23:52:17 +00005565rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005566
5567 # OK, works on sane cases. Now check whether nonexistent headers
5568 # can be detected and how.
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570/* end confdefs.h. */
5571#include <ac_nonexistent.h>
5572_ACEOF
5573if ac_fn_c_try_cpp "$LINENO"; then :
5574 # Broken: success on invalid input.
5575continue
5576else
5577 # Passes both tests.
5578ac_preproc_ok=:
5579break
5580fi
cristyda16f162011-02-19 23:52:17 +00005581rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005582
5583done
5584# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005585rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005586if $ac_preproc_ok; then :
5587 break
5588fi
5589
5590 done
5591 ac_cv_prog_CPP=$CPP
5592
5593fi
5594 CPP=$ac_cv_prog_CPP
5595else
5596 ac_cv_prog_CPP=$CPP
5597fi
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5599$as_echo "$CPP" >&6; }
5600ac_preproc_ok=false
5601for ac_c_preproc_warn_flag in '' yes
5602do
5603 # Use a header file that comes with gcc, so configuring glibc
5604 # with a fresh cross-compiler works.
5605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5606 # <limits.h> exists even on freestanding compilers.
5607 # On the NeXT, cc -E runs the code through the compiler's parser,
5608 # not just through cpp. "Syntax error" is here to catch this case.
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610/* end confdefs.h. */
5611#ifdef __STDC__
5612# include <limits.h>
5613#else
5614# include <assert.h>
5615#endif
5616 Syntax error
5617_ACEOF
5618if ac_fn_c_try_cpp "$LINENO"; then :
5619
5620else
5621 # Broken: fails on valid input.
5622continue
5623fi
cristyda16f162011-02-19 23:52:17 +00005624rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005625
5626 # OK, works on sane cases. Now check whether nonexistent headers
5627 # can be detected and how.
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629/* end confdefs.h. */
5630#include <ac_nonexistent.h>
5631_ACEOF
5632if ac_fn_c_try_cpp "$LINENO"; then :
5633 # Broken: success on invalid input.
5634continue
5635else
5636 # Passes both tests.
5637ac_preproc_ok=:
5638break
5639fi
cristyda16f162011-02-19 23:52:17 +00005640rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005641
5642done
5643# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005644rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005645if $ac_preproc_ok; then :
5646
5647else
5648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005650as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5651See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005652fi
5653
5654ac_ext=c
5655ac_cpp='$CPP $CPPFLAGS'
5656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5658ac_compiler_gnu=$ac_cv_c_compiler_gnu
5659
5660
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5662$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005663if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005664 $as_echo_n "(cached) " >&6
5665else
5666 if test -z "$GREP"; then
5667 ac_path_GREP_found=false
5668 # Loop through the user's path and test for each of PROGNAME-LIST
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5671do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_prog in grep ggrep; do
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005677 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005678# Check for GNU ac_path_GREP and select it if it is found.
5679 # Check for GNU $ac_path_GREP
5680case `"$ac_path_GREP" --version 2>&1` in
5681*GNU*)
5682 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5683*)
5684 ac_count=0
5685 $as_echo_n 0123456789 >"conftest.in"
5686 while :
5687 do
5688 cat "conftest.in" "conftest.in" >"conftest.tmp"
5689 mv "conftest.tmp" "conftest.in"
5690 cp "conftest.in" "conftest.nl"
5691 $as_echo 'GREP' >> "conftest.nl"
5692 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5694 as_fn_arith $ac_count + 1 && ac_count=$as_val
5695 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5696 # Best one so far, save it but keep looking for a better one
5697 ac_cv_path_GREP="$ac_path_GREP"
5698 ac_path_GREP_max=$ac_count
5699 fi
5700 # 10*(2^10) chars as input seems more than enough
5701 test $ac_count -gt 10 && break
5702 done
5703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5704esac
5705
5706 $ac_path_GREP_found && break 3
5707 done
5708 done
5709 done
5710IFS=$as_save_IFS
5711 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005712 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005713 fi
5714else
5715 ac_cv_path_GREP=$GREP
5716fi
5717
5718fi
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5720$as_echo "$ac_cv_path_GREP" >&6; }
5721 GREP="$ac_cv_path_GREP"
5722
5723
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5725$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005726if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005727 $as_echo_n "(cached) " >&6
5728else
5729 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5730 then ac_cv_path_EGREP="$GREP -E"
5731 else
5732 if test -z "$EGREP"; then
5733 ac_path_EGREP_found=false
5734 # Loop through the user's path and test for each of PROGNAME-LIST
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5737do
5738 IFS=$as_save_IFS
5739 test -z "$as_dir" && as_dir=.
5740 for ac_prog in egrep; do
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005743 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005744# Check for GNU ac_path_EGREP and select it if it is found.
5745 # Check for GNU $ac_path_EGREP
5746case `"$ac_path_EGREP" --version 2>&1` in
5747*GNU*)
5748 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5749*)
5750 ac_count=0
5751 $as_echo_n 0123456789 >"conftest.in"
5752 while :
5753 do
5754 cat "conftest.in" "conftest.in" >"conftest.tmp"
5755 mv "conftest.tmp" "conftest.in"
5756 cp "conftest.in" "conftest.nl"
5757 $as_echo 'EGREP' >> "conftest.nl"
5758 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5760 as_fn_arith $ac_count + 1 && ac_count=$as_val
5761 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5762 # Best one so far, save it but keep looking for a better one
5763 ac_cv_path_EGREP="$ac_path_EGREP"
5764 ac_path_EGREP_max=$ac_count
5765 fi
5766 # 10*(2^10) chars as input seems more than enough
5767 test $ac_count -gt 10 && break
5768 done
5769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5770esac
5771
5772 $ac_path_EGREP_found && break 3
5773 done
5774 done
5775 done
5776IFS=$as_save_IFS
5777 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005778 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005779 fi
5780else
5781 ac_cv_path_EGREP=$EGREP
5782fi
5783
5784 fi
5785fi
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5787$as_echo "$ac_cv_path_EGREP" >&6; }
5788 EGREP="$ac_cv_path_EGREP"
5789
5790
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5792$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005793if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005794 $as_echo_n "(cached) " >&6
5795else
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797/* end confdefs.h. */
5798#include <stdlib.h>
5799#include <stdarg.h>
5800#include <string.h>
5801#include <float.h>
5802
5803int
5804main ()
5805{
5806
5807 ;
5808 return 0;
5809}
5810_ACEOF
5811if ac_fn_c_try_compile "$LINENO"; then :
5812 ac_cv_header_stdc=yes
5813else
5814 ac_cv_header_stdc=no
5815fi
5816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817
5818if test $ac_cv_header_stdc = yes; then
5819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821/* end confdefs.h. */
5822#include <string.h>
5823
5824_ACEOF
5825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5826 $EGREP "memchr" >/dev/null 2>&1; then :
5827
5828else
5829 ac_cv_header_stdc=no
5830fi
5831rm -f conftest*
5832
5833fi
5834
5835if test $ac_cv_header_stdc = yes; then
5836 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838/* end confdefs.h. */
5839#include <stdlib.h>
5840
5841_ACEOF
5842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5843 $EGREP "free" >/dev/null 2>&1; then :
5844
5845else
5846 ac_cv_header_stdc=no
5847fi
5848rm -f conftest*
5849
5850fi
5851
5852if test $ac_cv_header_stdc = yes; then
5853 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5854 if test "$cross_compiling" = yes; then :
5855 :
5856else
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858/* end confdefs.h. */
5859#include <ctype.h>
5860#include <stdlib.h>
5861#if ((' ' & 0x0FF) == 0x020)
5862# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5863# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5864#else
5865# define ISLOWER(c) \
5866 (('a' <= (c) && (c) <= 'i') \
5867 || ('j' <= (c) && (c) <= 'r') \
5868 || ('s' <= (c) && (c) <= 'z'))
5869# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5870#endif
5871
5872#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5873int
5874main ()
5875{
5876 int i;
5877 for (i = 0; i < 256; i++)
5878 if (XOR (islower (i), ISLOWER (i))
5879 || toupper (i) != TOUPPER (i))
5880 return 2;
5881 return 0;
5882}
5883_ACEOF
5884if ac_fn_c_try_run "$LINENO"; then :
5885
5886else
5887 ac_cv_header_stdc=no
5888fi
5889rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5890 conftest.$ac_objext conftest.beam conftest.$ac_ext
5891fi
5892
5893fi
5894fi
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5896$as_echo "$ac_cv_header_stdc" >&6; }
5897if test $ac_cv_header_stdc = yes; then
5898
5899$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5900
5901fi
5902
5903# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5904for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5905 inttypes.h stdint.h unistd.h
5906do :
5907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5908ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5909"
cristy98dddb52010-11-04 00:30:15 +00005910if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005911 cat >>confdefs.h <<_ACEOF
5912#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5913_ACEOF
5914
5915fi
5916
5917done
5918
5919
5920
5921 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 +00005922if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005923 MINIX=yes
5924else
5925 MINIX=
5926fi
5927
5928
5929 if test "$MINIX" = yes; then
5930
5931$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5932
5933
5934$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5935
5936
5937$as_echo "#define _MINIX 1" >>confdefs.h
5938
5939 fi
5940
5941
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5943$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005944if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005945 $as_echo_n "(cached) " >&6
5946else
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948/* end confdefs.h. */
5949
cristy14fefe52012-05-21 00:59:18 +00005950# define __EXTENSIONS__ 1
5951 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005952int
5953main ()
5954{
5955
5956 ;
5957 return 0;
5958}
5959_ACEOF
5960if ac_fn_c_try_compile "$LINENO"; then :
5961 ac_cv_safe_to_define___extensions__=yes
5962else
5963 ac_cv_safe_to_define___extensions__=no
5964fi
5965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966fi
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5968$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5969 test $ac_cv_safe_to_define___extensions__ = yes &&
5970 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5971
5972 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5973
5974 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5975
5976 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5977
5978 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5979
5980
5981
5982# Check for programs
5983ac_ext=c
5984ac_cpp='$CPP $CPPFLAGS'
5985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5987ac_compiler_gnu=$ac_cv_c_compiler_gnu
5988if test -n "$ac_tool_prefix"; then
5989 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5990set dummy ${ac_tool_prefix}gcc; ac_word=$2
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005993if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005994 $as_echo_n "(cached) " >&6
5995else
5996 if test -n "$CC"; then
5997 ac_cv_prog_CC="$CC" # Let the user override the test.
5998else
5999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000for as_dir in $PATH
6001do
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006006 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 break 2
6009 fi
6010done
6011 done
6012IFS=$as_save_IFS
6013
6014fi
6015fi
6016CC=$ac_cv_prog_CC
6017if test -n "$CC"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6019$as_echo "$CC" >&6; }
6020else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022$as_echo "no" >&6; }
6023fi
6024
6025
6026fi
6027if test -z "$ac_cv_prog_CC"; then
6028 ac_ct_CC=$CC
6029 # Extract the first word of "gcc", so it can be a program name with args.
6030set dummy gcc; ac_word=$2
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006033if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006034 $as_echo_n "(cached) " >&6
6035else
6036 if test -n "$ac_ct_CC"; then
6037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6038else
6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040for as_dir in $PATH
6041do
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006046 ac_cv_prog_ac_ct_CC="gcc"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6049 fi
6050done
6051 done
6052IFS=$as_save_IFS
6053
6054fi
6055fi
6056ac_ct_CC=$ac_cv_prog_ac_ct_CC
6057if test -n "$ac_ct_CC"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6059$as_echo "$ac_ct_CC" >&6; }
6060else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062$as_echo "no" >&6; }
6063fi
6064
6065 if test "x$ac_ct_CC" = x; then
6066 CC=""
6067 else
6068 case $cross_compiling:$ac_tool_warned in
6069yes:)
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6072ac_tool_warned=yes ;;
6073esac
6074 CC=$ac_ct_CC
6075 fi
6076else
6077 CC="$ac_cv_prog_CC"
6078fi
6079
6080if test -z "$CC"; then
6081 if test -n "$ac_tool_prefix"; then
6082 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6083set dummy ${ac_tool_prefix}cc; ac_word=$2
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006086if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006087 $as_echo_n "(cached) " >&6
6088else
6089 if test -n "$CC"; then
6090 ac_cv_prog_CC="$CC" # Let the user override the test.
6091else
6092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093for as_dir in $PATH
6094do
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006099 ac_cv_prog_CC="${ac_tool_prefix}cc"
6100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6102 fi
6103done
6104 done
6105IFS=$as_save_IFS
6106
6107fi
6108fi
6109CC=$ac_cv_prog_CC
6110if test -n "$CC"; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6112$as_echo "$CC" >&6; }
6113else
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115$as_echo "no" >&6; }
6116fi
6117
6118
6119 fi
6120fi
6121if test -z "$CC"; then
6122 # Extract the first word of "cc", so it can be a program name with args.
6123set dummy cc; ac_word=$2
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006126if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006127 $as_echo_n "(cached) " >&6
6128else
6129 if test -n "$CC"; then
6130 ac_cv_prog_CC="$CC" # Let the user override the test.
6131else
6132 ac_prog_rejected=no
6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134for as_dir in $PATH
6135do
6136 IFS=$as_save_IFS
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006140 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6141 ac_prog_rejected=yes
6142 continue
6143 fi
6144 ac_cv_prog_CC="cc"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6147 fi
6148done
6149 done
6150IFS=$as_save_IFS
6151
6152if test $ac_prog_rejected = yes; then
6153 # We found a bogon in the path, so make sure we never use it.
6154 set dummy $ac_cv_prog_CC
6155 shift
6156 if test $# != 0; then
6157 # We chose a different compiler from the bogus one.
6158 # However, it has the same basename, so the bogon will be chosen
6159 # first if we set CC to just the basename; use the full file name.
6160 shift
6161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6162 fi
6163fi
6164fi
6165fi
6166CC=$ac_cv_prog_CC
6167if test -n "$CC"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6169$as_echo "$CC" >&6; }
6170else
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172$as_echo "no" >&6; }
6173fi
6174
6175
6176fi
6177if test -z "$CC"; then
6178 if test -n "$ac_tool_prefix"; then
6179 for ac_prog in cl.exe
6180 do
6181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6182set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006185if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006186 $as_echo_n "(cached) " >&6
6187else
6188 if test -n "$CC"; then
6189 ac_cv_prog_CC="$CC" # Let the user override the test.
6190else
6191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192for as_dir in $PATH
6193do
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006198 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6201 fi
6202done
6203 done
6204IFS=$as_save_IFS
6205
6206fi
6207fi
6208CC=$ac_cv_prog_CC
6209if test -n "$CC"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6211$as_echo "$CC" >&6; }
6212else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214$as_echo "no" >&6; }
6215fi
6216
6217
6218 test -n "$CC" && break
6219 done
6220fi
6221if test -z "$CC"; then
6222 ac_ct_CC=$CC
6223 for ac_prog in cl.exe
6224do
6225 # Extract the first word of "$ac_prog", so it can be a program name with args.
6226set dummy $ac_prog; ac_word=$2
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006229if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006230 $as_echo_n "(cached) " >&6
6231else
6232 if test -n "$ac_ct_CC"; then
6233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6234else
6235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236for as_dir in $PATH
6237do
6238 IFS=$as_save_IFS
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006242 ac_cv_prog_ac_ct_CC="$ac_prog"
6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 break 2
6245 fi
6246done
6247 done
6248IFS=$as_save_IFS
6249
6250fi
6251fi
6252ac_ct_CC=$ac_cv_prog_ac_ct_CC
6253if test -n "$ac_ct_CC"; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6255$as_echo "$ac_ct_CC" >&6; }
6256else
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258$as_echo "no" >&6; }
6259fi
6260
6261
6262 test -n "$ac_ct_CC" && break
6263done
6264
6265 if test "x$ac_ct_CC" = x; then
6266 CC=""
6267 else
6268 case $cross_compiling:$ac_tool_warned in
6269yes:)
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6272ac_tool_warned=yes ;;
6273esac
6274 CC=$ac_ct_CC
6275 fi
6276fi
6277
6278fi
6279
6280
6281test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006283as_fn_error $? "no acceptable C compiler found in \$PATH
6284See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006285
6286# Provide some information about the compiler.
6287$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6288set X $ac_compile
6289ac_compiler=$2
6290for ac_option in --version -v -V -qversion; do
6291 { { ac_try="$ac_compiler $ac_option >&5"
6292case "(($ac_try" in
6293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6294 *) ac_try_echo=$ac_try;;
6295esac
6296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6297$as_echo "$ac_try_echo"; } >&5
6298 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6299 ac_status=$?
6300 if test -s conftest.err; then
6301 sed '10a\
6302... rest of stderr output deleted ...
6303 10q' conftest.err >conftest.er1
6304 cat conftest.er1 >&5
6305 fi
6306 rm -f conftest.er1 conftest.err
6307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6308 test $ac_status = 0; }
6309done
6310
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6312$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006313if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006314 $as_echo_n "(cached) " >&6
6315else
6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317/* end confdefs.h. */
6318
6319int
6320main ()
6321{
6322#ifndef __GNUC__
6323 choke me
6324#endif
6325
6326 ;
6327 return 0;
6328}
6329_ACEOF
6330if ac_fn_c_try_compile "$LINENO"; then :
6331 ac_compiler_gnu=yes
6332else
6333 ac_compiler_gnu=no
6334fi
6335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336ac_cv_c_compiler_gnu=$ac_compiler_gnu
6337
6338fi
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6340$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6341if test $ac_compiler_gnu = yes; then
6342 GCC=yes
6343else
6344 GCC=
6345fi
6346ac_test_CFLAGS=${CFLAGS+set}
6347ac_save_CFLAGS=$CFLAGS
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6349$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006350if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006351 $as_echo_n "(cached) " >&6
6352else
6353 ac_save_c_werror_flag=$ac_c_werror_flag
6354 ac_c_werror_flag=yes
6355 ac_cv_prog_cc_g=no
6356 CFLAGS="-g"
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358/* end confdefs.h. */
6359
6360int
6361main ()
6362{
6363
6364 ;
6365 return 0;
6366}
6367_ACEOF
6368if ac_fn_c_try_compile "$LINENO"; then :
6369 ac_cv_prog_cc_g=yes
6370else
6371 CFLAGS=""
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373/* end confdefs.h. */
6374
6375int
6376main ()
6377{
6378
6379 ;
6380 return 0;
6381}
6382_ACEOF
6383if ac_fn_c_try_compile "$LINENO"; then :
6384
6385else
6386 ac_c_werror_flag=$ac_save_c_werror_flag
6387 CFLAGS="-g"
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389/* end confdefs.h. */
6390
6391int
6392main ()
6393{
6394
6395 ;
6396 return 0;
6397}
6398_ACEOF
6399if ac_fn_c_try_compile "$LINENO"; then :
6400 ac_cv_prog_cc_g=yes
6401fi
6402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403fi
6404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405fi
6406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407 ac_c_werror_flag=$ac_save_c_werror_flag
6408fi
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6410$as_echo "$ac_cv_prog_cc_g" >&6; }
6411if test "$ac_test_CFLAGS" = set; then
6412 CFLAGS=$ac_save_CFLAGS
6413elif test $ac_cv_prog_cc_g = yes; then
6414 if test "$GCC" = yes; then
6415 CFLAGS="-g -O2"
6416 else
6417 CFLAGS="-g"
6418 fi
6419else
6420 if test "$GCC" = yes; then
6421 CFLAGS="-O2"
6422 else
6423 CFLAGS=
6424 fi
6425fi
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6427$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006428if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006429 $as_echo_n "(cached) " >&6
6430else
6431 ac_cv_prog_cc_c89=no
6432ac_save_CC=$CC
6433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434/* end confdefs.h. */
6435#include <stdarg.h>
6436#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006437struct stat;
cristya0b81c32010-01-22 02:54:33 +00006438/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6439struct buf { int x; };
6440FILE * (*rcsopen) (struct buf *, struct stat *, int);
6441static char *e (p, i)
6442 char **p;
6443 int i;
6444{
6445 return p[i];
6446}
6447static char *f (char * (*g) (char **, int), char **p, ...)
6448{
6449 char *s;
6450 va_list v;
6451 va_start (v,p);
6452 s = g (p, va_arg (v,int));
6453 va_end (v);
6454 return s;
6455}
6456
6457/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6458 function prototypes and stuff, but not '\xHH' hex character constants.
6459 These don't provoke an error unfortunately, instead are silently treated
6460 as 'x'. The following induces an error, until -std is added to get
6461 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6462 array size at least. It's necessary to write '\x00'==0 to get something
6463 that's true only with -std. */
6464int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6465
6466/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6467 inside strings and character constants. */
6468#define FOO(x) 'x'
6469int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6470
6471int test (int i, double x);
6472struct s1 {int (*f) (int a);};
6473struct s2 {int (*f) (double a);};
6474int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6475int argc;
6476char **argv;
6477int
6478main ()
6479{
6480return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6481 ;
6482 return 0;
6483}
6484_ACEOF
6485for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6486 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6487do
6488 CC="$ac_save_CC $ac_arg"
6489 if ac_fn_c_try_compile "$LINENO"; then :
6490 ac_cv_prog_cc_c89=$ac_arg
6491fi
6492rm -f core conftest.err conftest.$ac_objext
6493 test "x$ac_cv_prog_cc_c89" != "xno" && break
6494done
6495rm -f conftest.$ac_ext
6496CC=$ac_save_CC
6497
6498fi
6499# AC_CACHE_VAL
6500case "x$ac_cv_prog_cc_c89" in
6501 x)
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6503$as_echo "none needed" >&6; } ;;
6504 xno)
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6506$as_echo "unsupported" >&6; } ;;
6507 *)
6508 CC="$CC $ac_cv_prog_cc_c89"
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6510$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6511esac
6512if test "x$ac_cv_prog_cc_c89" != xno; then :
6513
6514fi
6515
6516ac_ext=c
6517ac_cpp='$CPP $CPPFLAGS'
6518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6520ac_compiler_gnu=$ac_cv_c_compiler_gnu
6521
cristya5bda012013-11-03 18:05:38 +00006522ac_ext=c
6523ac_cpp='$CPP $CPPFLAGS'
6524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6526ac_compiler_gnu=$ac_cv_c_compiler_gnu
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6528$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6529if ${am_cv_prog_cc_c_o+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531else
6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533/* end confdefs.h. */
6534
6535int
6536main ()
6537{
6538
6539 ;
6540 return 0;
6541}
6542_ACEOF
6543 # Make sure it works both with $CC and with simple cc.
6544 # Following AC_PROG_CC_C_O, we do the test twice because some
6545 # compilers refuse to overwrite an existing .o file with -o,
6546 # though they will create one.
6547 am_cv_prog_cc_c_o=yes
6548 for am_i in 1 2; do
6549 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6550 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6551 ac_status=$?
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } \
6554 && test -f conftest2.$ac_objext; then
6555 : OK
6556 else
6557 am_cv_prog_cc_c_o=no
6558 break
6559 fi
6560 done
6561 rm -f core conftest*
6562 unset am_i
6563fi
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6565$as_echo "$am_cv_prog_cc_c_o" >&6; }
6566if test "$am_cv_prog_cc_c_o" != yes; then
6567 # Losing compiler, so override with the script.
6568 # FIXME: It is wrong to rewrite CC.
6569 # But if we don't then we get into trouble of one sort or another.
6570 # A longer-term fix would be to have automake use am__CC in this case,
6571 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6572 CC="$am_aux_dir/compile $CC"
6573fi
6574ac_ext=c
6575ac_cpp='$CPP $CPPFLAGS'
6576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6578ac_compiler_gnu=$ac_cv_c_compiler_gnu
6579
6580
cristy73bd4a52010-10-05 11:24:23 +00006581depcc="$CC" am_compiler_list=
6582
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6584$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006585if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006586 $as_echo_n "(cached) " >&6
6587else
6588 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6589 # We make a subdir and do the tests there. Otherwise we can end up
6590 # making bogus files that we don't know about and never remove. For
6591 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006592 # making a dummy file named 'D' -- because '-MD' means "put the output
6593 # in D".
cristy7247bba2012-02-05 16:37:27 +00006594 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006595 mkdir conftest.dir
6596 # Copy depcomp to subdir because otherwise we won't find it if we're
6597 # using a relative directory.
6598 cp "$am_depcomp" conftest.dir
6599 cd conftest.dir
6600 # We will build objects and dependencies in a subdirectory because
6601 # it helps to detect inapplicable dependency modes. For instance
6602 # both Tru64's cc and ICC support -MD to output dependencies as a
6603 # side effect of compilation, but ICC will put the dependencies in
6604 # the current directory while Tru64 will put them in the object
6605 # directory.
6606 mkdir sub
6607
6608 am_cv_CC_dependencies_compiler_type=none
6609 if test "$am_compiler_list" = ""; then
6610 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6611 fi
6612 am__universal=false
6613 case " $depcc " in #(
6614 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6615 esac
6616
6617 for depmode in $am_compiler_list; do
6618 # Setup a source with many dependencies, because some compilers
6619 # like to wrap large dependency lists on column 80 (with \), and
6620 # we should not choose a depcomp mode which is confused by this.
6621 #
6622 # We need to recreate these files for each test, as the compiler may
6623 # overwrite some of them when testing with obscure command lines.
6624 # This happens at least with the AIX C compiler.
6625 : > sub/conftest.c
6626 for i in 1 2 3 4 5 6; do
6627 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006628 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6629 # Solaris 10 /bin/sh.
6630 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006631 done
6632 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6633
cristyc0890a62012-07-19 00:18:20 +00006634 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006635 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006636 # handle '-M -o', and we need to detect this. Also, some Intel
6637 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006638 am__obj=sub/conftest.${OBJEXT-o}
6639 am__minus_obj="-o $am__obj"
6640 case $depmode in
6641 gcc)
6642 # This depmode causes a compiler race in universal mode.
6643 test "$am__universal" = false || continue
6644 ;;
6645 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006646 # After this tag, mechanisms are not by side-effect, so they'll
6647 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006648 if test "x$enable_dependency_tracking" = xyes; then
6649 continue
6650 else
6651 break
6652 fi
6653 ;;
cristy7247bba2012-02-05 16:37:27 +00006654 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006655 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006656 # not run yet. These depmodes are late enough in the game, and
6657 # so weak that their functioning should not be impacted.
6658 am__obj=conftest.${OBJEXT-o}
6659 am__minus_obj=
6660 ;;
6661 none) break ;;
6662 esac
6663 if depmode=$depmode \
6664 source=sub/conftest.c object=$am__obj \
6665 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6666 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6667 >/dev/null 2>conftest.err &&
6668 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6669 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6670 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6671 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6672 # icc doesn't choke on unknown options, it will just issue warnings
6673 # or remarks (even with -Werror). So we grep stderr for any message
6674 # that says an option was ignored or not supported.
6675 # When given -MP, icc 7.0 and 7.1 complain thusly:
6676 # icc: Command line warning: ignoring option '-M'; no argument required
6677 # The diagnosis changed in icc 8.0:
6678 # icc: Command line remark: option '-MP' not supported
6679 if (grep 'ignoring option' conftest.err ||
6680 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6681 am_cv_CC_dependencies_compiler_type=$depmode
6682 break
6683 fi
6684 fi
6685 done
6686
6687 cd ..
6688 rm -rf conftest.dir
6689else
6690 am_cv_CC_dependencies_compiler_type=none
6691fi
6692
6693fi
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6695$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6696CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6697
6698 if
6699 test "x$enable_dependency_tracking" != xno \
6700 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6701 am__fastdepCC_TRUE=
6702 am__fastdepCC_FALSE='#'
6703else
6704 am__fastdepCC_TRUE='#'
6705 am__fastdepCC_FALSE=
6706fi
6707
6708
cristy95646052009-11-28 23:05:30 +00006709ac_ext=cpp
6710ac_cpp='$CXXCPP $CPPFLAGS'
6711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6714if test -z "$CXX"; then
6715 if test -n "$CCC"; then
6716 CXX=$CCC
6717 else
6718 if test -n "$ac_tool_prefix"; then
6719 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6720 do
6721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6722set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006725if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006726 $as_echo_n "(cached) " >&6
6727else
6728 if test -n "$CXX"; then
6729 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6730else
6731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732for as_dir in $PATH
6733do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006738 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742done
6743 done
6744IFS=$as_save_IFS
6745
6746fi
6747fi
6748CXX=$ac_cv_prog_CXX
6749if test -n "$CXX"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6751$as_echo "$CXX" >&6; }
6752else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754$as_echo "no" >&6; }
6755fi
6756
6757
6758 test -n "$CXX" && break
6759 done
6760fi
6761if test -z "$CXX"; then
6762 ac_ct_CXX=$CXX
6763 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6764do
6765 # Extract the first word of "$ac_prog", so it can be a program name with args.
6766set dummy $ac_prog; ac_word=$2
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006769if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006770 $as_echo_n "(cached) " >&6
6771else
6772 if test -n "$ac_ct_CXX"; then
6773 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6774else
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006782 ac_cv_prog_ac_ct_CXX="$ac_prog"
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786done
6787 done
6788IFS=$as_save_IFS
6789
6790fi
6791fi
6792ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6793if test -n "$ac_ct_CXX"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6795$as_echo "$ac_ct_CXX" >&6; }
6796else
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798$as_echo "no" >&6; }
6799fi
6800
6801
6802 test -n "$ac_ct_CXX" && break
6803done
6804
6805 if test "x$ac_ct_CXX" = x; then
6806 CXX="g++"
6807 else
6808 case $cross_compiling:$ac_tool_warned in
6809yes:)
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6812ac_tool_warned=yes ;;
6813esac
6814 CXX=$ac_ct_CXX
6815 fi
6816fi
6817
6818 fi
6819fi
6820# Provide some information about the compiler.
6821$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6822set X $ac_compile
6823ac_compiler=$2
6824for ac_option in --version -v -V -qversion; do
6825 { { ac_try="$ac_compiler $ac_option >&5"
6826case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829esac
6830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6831$as_echo "$ac_try_echo"; } >&5
6832 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6833 ac_status=$?
6834 if test -s conftest.err; then
6835 sed '10a\
6836... rest of stderr output deleted ...
6837 10q' conftest.err >conftest.er1
6838 cat conftest.er1 >&5
6839 fi
6840 rm -f conftest.er1 conftest.err
6841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6842 test $ac_status = 0; }
6843done
6844
6845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6846$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006847if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006848 $as_echo_n "(cached) " >&6
6849else
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851/* end confdefs.h. */
6852
6853int
6854main ()
6855{
6856#ifndef __GNUC__
6857 choke me
6858#endif
6859
6860 ;
6861 return 0;
6862}
6863_ACEOF
6864if ac_fn_cxx_try_compile "$LINENO"; then :
6865 ac_compiler_gnu=yes
6866else
6867 ac_compiler_gnu=no
6868fi
6869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6871
6872fi
6873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6874$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6875if test $ac_compiler_gnu = yes; then
6876 GXX=yes
6877else
6878 GXX=
6879fi
6880ac_test_CXXFLAGS=${CXXFLAGS+set}
6881ac_save_CXXFLAGS=$CXXFLAGS
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6883$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006884if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006885 $as_echo_n "(cached) " >&6
6886else
6887 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6888 ac_cxx_werror_flag=yes
6889 ac_cv_prog_cxx_g=no
6890 CXXFLAGS="-g"
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892/* end confdefs.h. */
6893
6894int
6895main ()
6896{
6897
6898 ;
6899 return 0;
6900}
6901_ACEOF
6902if ac_fn_cxx_try_compile "$LINENO"; then :
6903 ac_cv_prog_cxx_g=yes
6904else
6905 CXXFLAGS=""
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907/* end confdefs.h. */
6908
6909int
6910main ()
6911{
6912
6913 ;
6914 return 0;
6915}
6916_ACEOF
6917if ac_fn_cxx_try_compile "$LINENO"; then :
6918
6919else
6920 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6921 CXXFLAGS="-g"
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923/* end confdefs.h. */
6924
6925int
6926main ()
6927{
6928
6929 ;
6930 return 0;
6931}
6932_ACEOF
6933if ac_fn_cxx_try_compile "$LINENO"; then :
6934 ac_cv_prog_cxx_g=yes
6935fi
6936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937fi
6938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939fi
6940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6941 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6942fi
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6944$as_echo "$ac_cv_prog_cxx_g" >&6; }
6945if test "$ac_test_CXXFLAGS" = set; then
6946 CXXFLAGS=$ac_save_CXXFLAGS
6947elif test $ac_cv_prog_cxx_g = yes; then
6948 if test "$GXX" = yes; then
6949 CXXFLAGS="-g -O2"
6950 else
6951 CXXFLAGS="-g"
6952 fi
6953else
6954 if test "$GXX" = yes; then
6955 CXXFLAGS="-O2"
6956 else
6957 CXXFLAGS=
6958 fi
6959fi
6960ac_ext=c
6961ac_cpp='$CPP $CPPFLAGS'
6962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6964ac_compiler_gnu=$ac_cv_c_compiler_gnu
6965
cristy73bd4a52010-10-05 11:24:23 +00006966depcc="$CXX" am_compiler_list=
6967
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6969$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006970if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006971 $as_echo_n "(cached) " >&6
6972else
6973 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6974 # We make a subdir and do the tests there. Otherwise we can end up
6975 # making bogus files that we don't know about and never remove. For
6976 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006977 # making a dummy file named 'D' -- because '-MD' means "put the output
6978 # in D".
cristy7247bba2012-02-05 16:37:27 +00006979 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006980 mkdir conftest.dir
6981 # Copy depcomp to subdir because otherwise we won't find it if we're
6982 # using a relative directory.
6983 cp "$am_depcomp" conftest.dir
6984 cd conftest.dir
6985 # We will build objects and dependencies in a subdirectory because
6986 # it helps to detect inapplicable dependency modes. For instance
6987 # both Tru64's cc and ICC support -MD to output dependencies as a
6988 # side effect of compilation, but ICC will put the dependencies in
6989 # the current directory while Tru64 will put them in the object
6990 # directory.
6991 mkdir sub
6992
6993 am_cv_CXX_dependencies_compiler_type=none
6994 if test "$am_compiler_list" = ""; then
6995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6996 fi
6997 am__universal=false
6998 case " $depcc " in #(
6999 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7000 esac
7001
7002 for depmode in $am_compiler_list; do
7003 # Setup a source with many dependencies, because some compilers
7004 # like to wrap large dependency lists on column 80 (with \), and
7005 # we should not choose a depcomp mode which is confused by this.
7006 #
7007 # We need to recreate these files for each test, as the compiler may
7008 # overwrite some of them when testing with obscure command lines.
7009 # This happens at least with the AIX C compiler.
7010 : > sub/conftest.c
7011 for i in 1 2 3 4 5 6; do
7012 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007013 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7014 # Solaris 10 /bin/sh.
7015 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007016 done
7017 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7018
cristyc0890a62012-07-19 00:18:20 +00007019 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007020 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007021 # handle '-M -o', and we need to detect this. Also, some Intel
7022 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007023 am__obj=sub/conftest.${OBJEXT-o}
7024 am__minus_obj="-o $am__obj"
7025 case $depmode in
7026 gcc)
7027 # This depmode causes a compiler race in universal mode.
7028 test "$am__universal" = false || continue
7029 ;;
7030 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007031 # After this tag, mechanisms are not by side-effect, so they'll
7032 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007033 if test "x$enable_dependency_tracking" = xyes; then
7034 continue
7035 else
7036 break
7037 fi
7038 ;;
cristy7247bba2012-02-05 16:37:27 +00007039 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007040 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007041 # not run yet. These depmodes are late enough in the game, and
7042 # so weak that their functioning should not be impacted.
7043 am__obj=conftest.${OBJEXT-o}
7044 am__minus_obj=
7045 ;;
7046 none) break ;;
7047 esac
7048 if depmode=$depmode \
7049 source=sub/conftest.c object=$am__obj \
7050 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7051 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7052 >/dev/null 2>conftest.err &&
7053 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7054 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7055 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7056 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7057 # icc doesn't choke on unknown options, it will just issue warnings
7058 # or remarks (even with -Werror). So we grep stderr for any message
7059 # that says an option was ignored or not supported.
7060 # When given -MP, icc 7.0 and 7.1 complain thusly:
7061 # icc: Command line warning: ignoring option '-M'; no argument required
7062 # The diagnosis changed in icc 8.0:
7063 # icc: Command line remark: option '-MP' not supported
7064 if (grep 'ignoring option' conftest.err ||
7065 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7066 am_cv_CXX_dependencies_compiler_type=$depmode
7067 break
7068 fi
7069 fi
7070 done
7071
7072 cd ..
7073 rm -rf conftest.dir
7074else
7075 am_cv_CXX_dependencies_compiler_type=none
7076fi
7077
7078fi
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7080$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7081CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7082
7083 if
7084 test "x$enable_dependency_tracking" != xno \
7085 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7086 am__fastdepCXX_TRUE=
7087 am__fastdepCXX_FALSE='#'
7088else
7089 am__fastdepCXX_TRUE='#'
7090 am__fastdepCXX_FALSE=
7091fi
7092
7093
cristy8b350f62009-11-15 23:12:43 +00007094 case $ac_cv_prog_cc_stdc in #(
7095 no) :
7096 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7097 *) :
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007099$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007100if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007101 $as_echo_n "(cached) " >&6
7102else
7103 ac_cv_prog_cc_c99=no
7104ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007106/* end confdefs.h. */
7107#include <stdarg.h>
7108#include <stdbool.h>
7109#include <stdlib.h>
7110#include <wchar.h>
7111#include <stdio.h>
7112
7113// Check varargs macros. These examples are taken from C99 6.10.3.5.
7114#define debug(...) fprintf (stderr, __VA_ARGS__)
7115#define showlist(...) puts (#__VA_ARGS__)
7116#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7117static void
7118test_varargs_macros (void)
7119{
7120 int x = 1234;
7121 int y = 5678;
7122 debug ("Flag");
7123 debug ("X = %d\n", x);
7124 showlist (The first, second, and third items.);
7125 report (x>y, "x is %d but y is %d", x, y);
7126}
7127
7128// Check long long types.
7129#define BIG64 18446744073709551615ull
7130#define BIG32 4294967295ul
7131#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7132#if !BIG_OK
7133 your preprocessor is broken;
7134#endif
7135#if BIG_OK
7136#else
7137 your preprocessor is broken;
7138#endif
7139static long long int bignum = -9223372036854775807LL;
7140static unsigned long long int ubignum = BIG64;
7141
7142struct incomplete_array
7143{
7144 int datasize;
7145 double data[];
7146};
7147
7148struct named_init {
7149 int number;
7150 const wchar_t *name;
7151 double average;
7152};
7153
7154typedef const char *ccp;
7155
7156static inline int
7157test_restrict (ccp restrict text)
7158{
7159 // See if C++-style comments work.
7160 // Iterate through items via the restricted pointer.
7161 // Also check for declarations in for loops.
7162 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7163 continue;
7164 return 0;
7165}
7166
7167// Check varargs and va_copy.
7168static void
7169test_varargs (const char *format, ...)
7170{
7171 va_list args;
7172 va_start (args, format);
7173 va_list args_copy;
7174 va_copy (args_copy, args);
7175
7176 const char *str;
7177 int number;
7178 float fnumber;
7179
7180 while (*format)
7181 {
7182 switch (*format++)
7183 {
7184 case 's': // string
7185 str = va_arg (args_copy, const char *);
7186 break;
7187 case 'd': // int
7188 number = va_arg (args_copy, int);
7189 break;
7190 case 'f': // float
7191 fnumber = va_arg (args_copy, double);
7192 break;
7193 default:
7194 break;
7195 }
7196 }
7197 va_end (args_copy);
7198 va_end (args);
7199}
7200
7201int
7202main ()
7203{
7204
7205 // Check bool.
7206 _Bool success = false;
7207
7208 // Check restrict.
7209 if (test_restrict ("String literal") == 0)
7210 success = true;
7211 char *restrict newvar = "Another string";
7212
7213 // Check varargs.
7214 test_varargs ("s, d' f .", "string", 65, 34.234);
7215 test_varargs_macros ();
7216
7217 // Check flexible array members.
7218 struct incomplete_array *ia =
7219 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7220 ia->datasize = 10;
7221 for (int i = 0; i < ia->datasize; ++i)
7222 ia->data[i] = i * 1.234;
7223
7224 // Check named initializers.
7225 struct named_init ni = {
7226 .number = 34,
7227 .name = L"Test wide string",
7228 .average = 543.34343,
7229 };
7230
7231 ni.number = 58;
7232
7233 int dynamic_array[ni.number];
7234 dynamic_array[ni.number - 1] = 543;
7235
7236 // work around unused variable warnings
7237 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7238 || dynamic_array[ni.number - 1] != 543);
7239
7240 ;
7241 return 0;
7242}
7243_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007244for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007245do
7246 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007247 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007248 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007249fi
cristy3ed852e2009-09-05 21:47:34 +00007250rm -f core conftest.err conftest.$ac_objext
7251 test "x$ac_cv_prog_cc_c99" != "xno" && break
7252done
7253rm -f conftest.$ac_ext
7254CC=$ac_save_CC
7255
7256fi
7257# AC_CACHE_VAL
7258case "x$ac_cv_prog_cc_c99" in
7259 x)
cristy8b350f62009-11-15 23:12:43 +00007260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007261$as_echo "none needed" >&6; } ;;
7262 xno)
cristy8b350f62009-11-15 23:12:43 +00007263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007264$as_echo "unsupported" >&6; } ;;
7265 *)
7266 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007268$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7269esac
cristy8b350f62009-11-15 23:12:43 +00007270if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007271 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7272else
cristy8b350f62009-11-15 23:12:43 +00007273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007274$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007275if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007276 $as_echo_n "(cached) " >&6
7277else
7278 ac_cv_prog_cc_c89=no
7279ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007281/* end confdefs.h. */
7282#include <stdarg.h>
7283#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007284struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007285/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7286struct buf { int x; };
7287FILE * (*rcsopen) (struct buf *, struct stat *, int);
7288static char *e (p, i)
7289 char **p;
7290 int i;
7291{
7292 return p[i];
7293}
7294static char *f (char * (*g) (char **, int), char **p, ...)
7295{
7296 char *s;
7297 va_list v;
7298 va_start (v,p);
7299 s = g (p, va_arg (v,int));
7300 va_end (v);
7301 return s;
7302}
7303
7304/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7305 function prototypes and stuff, but not '\xHH' hex character constants.
7306 These don't provoke an error unfortunately, instead are silently treated
7307 as 'x'. The following induces an error, until -std is added to get
7308 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7309 array size at least. It's necessary to write '\x00'==0 to get something
7310 that's true only with -std. */
7311int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7312
7313/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7314 inside strings and character constants. */
7315#define FOO(x) 'x'
7316int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7317
7318int test (int i, double x);
7319struct s1 {int (*f) (int a);};
7320struct s2 {int (*f) (double a);};
7321int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7322int argc;
7323char **argv;
7324int
7325main ()
7326{
7327return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7328 ;
7329 return 0;
7330}
7331_ACEOF
7332for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7333 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7334do
7335 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007336 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007337 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007338fi
cristy3ed852e2009-09-05 21:47:34 +00007339rm -f core conftest.err conftest.$ac_objext
7340 test "x$ac_cv_prog_cc_c89" != "xno" && break
7341done
7342rm -f conftest.$ac_ext
7343CC=$ac_save_CC
7344
7345fi
7346# AC_CACHE_VAL
7347case "x$ac_cv_prog_cc_c89" in
7348 x)
cristy8b350f62009-11-15 23:12:43 +00007349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007350$as_echo "none needed" >&6; } ;;
7351 xno)
cristy8b350f62009-11-15 23:12:43 +00007352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007353$as_echo "unsupported" >&6; } ;;
7354 *)
7355 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007357$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7358esac
cristy8b350f62009-11-15 23:12:43 +00007359if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007360 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7361else
7362 ac_cv_prog_cc_stdc=no
7363fi
7364
cristy3ed852e2009-09-05 21:47:34 +00007365fi
cristy3ed852e2009-09-05 21:47:34 +00007366 ;;
7367esac
cristy8b350f62009-11-15 23:12:43 +00007368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007369$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007370 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007371 $as_echo_n "(cached) " >&6
7372fi
7373
cristy8b350f62009-11-15 23:12:43 +00007374 case $ac_cv_prog_cc_stdc in #(
7375 no) :
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7377$as_echo "unsupported" >&6; } ;; #(
7378 '') :
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7380$as_echo "none needed" >&6; } ;; #(
7381 *) :
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007383$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7384esac
7385
cristy3ed852e2009-09-05 21:47:34 +00007386ac_ext=c
7387ac_cpp='$CPP $CPPFLAGS'
7388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7390ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007392$as_echo_n "checking how to run the C preprocessor... " >&6; }
7393# On Suns, sometimes $CPP names a directory.
7394if test -n "$CPP" && test -d "$CPP"; then
7395 CPP=
7396fi
7397if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007398 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007399 $as_echo_n "(cached) " >&6
7400else
7401 # Double quotes because CPP needs to be expanded
7402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7403 do
7404 ac_preproc_ok=false
7405for ac_c_preproc_warn_flag in '' yes
7406do
7407 # Use a header file that comes with gcc, so configuring glibc
7408 # with a fresh cross-compiler works.
7409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7410 # <limits.h> exists even on freestanding compilers.
7411 # On the NeXT, cc -E runs the code through the compiler's parser,
7412 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007414/* end confdefs.h. */
7415#ifdef __STDC__
7416# include <limits.h>
7417#else
7418# include <assert.h>
7419#endif
7420 Syntax error
7421_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007422if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007423
cristy8b350f62009-11-15 23:12:43 +00007424else
cristy3ed852e2009-09-05 21:47:34 +00007425 # Broken: fails on valid input.
7426continue
7427fi
cristyda16f162011-02-19 23:52:17 +00007428rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007429
7430 # OK, works on sane cases. Now check whether nonexistent headers
7431 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007433/* end confdefs.h. */
7434#include <ac_nonexistent.h>
7435_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007436if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007437 # Broken: success on invalid input.
7438continue
7439else
cristy3ed852e2009-09-05 21:47:34 +00007440 # Passes both tests.
7441ac_preproc_ok=:
7442break
7443fi
cristyda16f162011-02-19 23:52:17 +00007444rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007445
7446done
7447# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007448rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007449if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007450 break
7451fi
7452
7453 done
7454 ac_cv_prog_CPP=$CPP
7455
7456fi
7457 CPP=$ac_cv_prog_CPP
7458else
7459 ac_cv_prog_CPP=$CPP
7460fi
cristy8b350f62009-11-15 23:12:43 +00007461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007462$as_echo "$CPP" >&6; }
7463ac_preproc_ok=false
7464for ac_c_preproc_warn_flag in '' yes
7465do
7466 # Use a header file that comes with gcc, so configuring glibc
7467 # with a fresh cross-compiler works.
7468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7469 # <limits.h> exists even on freestanding compilers.
7470 # On the NeXT, cc -E runs the code through the compiler's parser,
7471 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007473/* end confdefs.h. */
7474#ifdef __STDC__
7475# include <limits.h>
7476#else
7477# include <assert.h>
7478#endif
7479 Syntax error
7480_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007481if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007482
cristy8b350f62009-11-15 23:12:43 +00007483else
cristy3ed852e2009-09-05 21:47:34 +00007484 # Broken: fails on valid input.
7485continue
7486fi
cristyda16f162011-02-19 23:52:17 +00007487rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007488
7489 # OK, works on sane cases. Now check whether nonexistent headers
7490 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007492/* end confdefs.h. */
7493#include <ac_nonexistent.h>
7494_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007495if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007496 # Broken: success on invalid input.
7497continue
7498else
cristy3ed852e2009-09-05 21:47:34 +00007499 # Passes both tests.
7500ac_preproc_ok=:
7501break
7502fi
cristyda16f162011-02-19 23:52:17 +00007503rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007504
7505done
7506# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007507rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007508if $ac_preproc_ok; then :
7509
cristy3ed852e2009-09-05 21:47:34 +00007510else
cristy8b350f62009-11-15 23:12:43 +00007511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007513as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7514See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007515fi
7516
7517ac_ext=c
7518ac_cpp='$CPP $CPPFLAGS'
7519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7521ac_compiler_gnu=$ac_cv_c_compiler_gnu
7522
cristy73bd4a52010-10-05 11:24:23 +00007523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7524$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007525if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007526 $as_echo_n "(cached) " >&6
7527else
7528 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7529 for ac_i in 1 2 3 4 5 6 7; do
7530 ac_script="$ac_script$as_nl$ac_script"
7531 done
7532 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7533 { ac_script=; unset ac_script;}
7534 if test -z "$SED"; then
7535 ac_path_SED_found=false
7536 # Loop through the user's path and test for each of PROGNAME-LIST
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538for as_dir in $PATH
7539do
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
7542 for ac_prog in sed gsed; do
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007545 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007546# Check for GNU ac_path_SED and select it if it is found.
7547 # Check for GNU $ac_path_SED
7548case `"$ac_path_SED" --version 2>&1` in
7549*GNU*)
7550 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7551*)
7552 ac_count=0
7553 $as_echo_n 0123456789 >"conftest.in"
7554 while :
7555 do
7556 cat "conftest.in" "conftest.in" >"conftest.tmp"
7557 mv "conftest.tmp" "conftest.in"
7558 cp "conftest.in" "conftest.nl"
7559 $as_echo '' >> "conftest.nl"
7560 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7562 as_fn_arith $ac_count + 1 && ac_count=$as_val
7563 if test $ac_count -gt ${ac_path_SED_max-0}; then
7564 # Best one so far, save it but keep looking for a better one
7565 ac_cv_path_SED="$ac_path_SED"
7566 ac_path_SED_max=$ac_count
7567 fi
7568 # 10*(2^10) chars as input seems more than enough
7569 test $ac_count -gt 10 && break
7570 done
7571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7572esac
7573
7574 $ac_path_SED_found && break 3
7575 done
7576 done
7577 done
7578IFS=$as_save_IFS
7579 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007580 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007581 fi
7582else
7583 ac_cv_path_SED=$SED
7584fi
7585
7586fi
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7588$as_echo "$ac_cv_path_SED" >&6; }
7589 SED="$ac_cv_path_SED"
7590 rm -f conftest.sed
7591
7592test -z "$SED" && SED=sed
7593Xsed="$SED -e 1s/^X//"
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7606$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007607if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007608 $as_echo_n "(cached) " >&6
7609else
7610 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7611 then ac_cv_path_FGREP="$GREP -F"
7612 else
7613 if test -z "$FGREP"; then
7614 ac_path_FGREP_found=false
7615 # Loop through the user's path and test for each of PROGNAME-LIST
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7618do
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_prog in fgrep; do
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007624 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007625# Check for GNU ac_path_FGREP and select it if it is found.
7626 # Check for GNU $ac_path_FGREP
7627case `"$ac_path_FGREP" --version 2>&1` in
7628*GNU*)
7629 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7630*)
7631 ac_count=0
7632 $as_echo_n 0123456789 >"conftest.in"
7633 while :
7634 do
7635 cat "conftest.in" "conftest.in" >"conftest.tmp"
7636 mv "conftest.tmp" "conftest.in"
7637 cp "conftest.in" "conftest.nl"
7638 $as_echo 'FGREP' >> "conftest.nl"
7639 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7641 as_fn_arith $ac_count + 1 && ac_count=$as_val
7642 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7643 # Best one so far, save it but keep looking for a better one
7644 ac_cv_path_FGREP="$ac_path_FGREP"
7645 ac_path_FGREP_max=$ac_count
7646 fi
7647 # 10*(2^10) chars as input seems more than enough
7648 test $ac_count -gt 10 && break
7649 done
7650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7651esac
7652
7653 $ac_path_FGREP_found && break 3
7654 done
7655 done
7656 done
7657IFS=$as_save_IFS
7658 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007659 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007660 fi
7661else
7662 ac_cv_path_FGREP=$FGREP
7663fi
7664
7665 fi
7666fi
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7668$as_echo "$ac_cv_path_FGREP" >&6; }
7669 FGREP="$ac_cv_path_FGREP"
7670
7671
7672test -z "$GREP" && GREP=grep
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
cristy0c60a692010-11-04 01:09:47 +00007690ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7691ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7692ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7693
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7695$as_echo_n "checking how to print strings... " >&6; }
7696# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007697if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007698 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7699 ECHO='print -r --'
7700elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7701 ECHO='printf %s\n'
7702else
7703 # Use this function as a fallback that always works.
7704 func_fallback_echo ()
7705 {
7706 eval 'cat <<_LTECHO_EOF
7707$1
7708_LTECHO_EOF'
7709 }
7710 ECHO='func_fallback_echo'
7711fi
7712
7713# func_echo_all arg...
7714# Invoke $ECHO with all args, space-separated.
7715func_echo_all ()
7716{
7717 $ECHO ""
7718}
7719
7720case "$ECHO" in
7721 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7722$as_echo "printf" >&6; } ;;
7723 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7724$as_echo "print -r" >&6; } ;;
7725 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7726$as_echo "cat" >&6; } ;;
7727esac
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
cristy73bd4a52010-10-05 11:24:23 +00007742
7743
7744# Check whether --with-gnu-ld was given.
7745if test "${with_gnu_ld+set}" = set; then :
7746 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7747else
7748 with_gnu_ld=no
7749fi
7750
7751ac_prog=ld
7752if test "$GCC" = yes; then
7753 # Check if gcc -print-prog-name=ld gives a path.
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7755$as_echo_n "checking for ld used by $CC... " >&6; }
7756 case $host in
7757 *-*-mingw*)
7758 # gcc leaves a trailing carriage return which upsets mingw
7759 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7760 *)
7761 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7762 esac
7763 case $ac_prog in
7764 # Accept absolute paths.
7765 [\\/]* | ?:[\\/]*)
7766 re_direlt='/[^/][^/]*/\.\./'
7767 # Canonicalize the pathname of ld
7768 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7769 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7770 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7771 done
7772 test -z "$LD" && LD="$ac_prog"
7773 ;;
7774 "")
7775 # If it fails, then pretend we aren't using GCC.
7776 ac_prog=ld
7777 ;;
7778 *)
7779 # If it is relative, then search for the first ld in PATH.
7780 with_gnu_ld=unknown
7781 ;;
7782 esac
7783elif test "$with_gnu_ld" = yes; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7785$as_echo_n "checking for GNU ld... " >&6; }
7786else
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7788$as_echo_n "checking for non-GNU ld... " >&6; }
7789fi
cristyda16f162011-02-19 23:52:17 +00007790if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007791 $as_echo_n "(cached) " >&6
7792else
7793 if test -z "$LD"; then
7794 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7795 for ac_dir in $PATH; do
7796 IFS="$lt_save_ifs"
7797 test -z "$ac_dir" && ac_dir=.
7798 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7799 lt_cv_path_LD="$ac_dir/$ac_prog"
7800 # Check to see if the program is GNU ld. I'd rather use --version,
7801 # but apparently some variants of GNU ld only accept -v.
7802 # Break only if it was the GNU/non-GNU ld that we prefer.
7803 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7804 *GNU* | *'with BFD'*)
7805 test "$with_gnu_ld" != no && break
7806 ;;
7807 *)
7808 test "$with_gnu_ld" != yes && break
7809 ;;
7810 esac
7811 fi
7812 done
7813 IFS="$lt_save_ifs"
7814else
7815 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7816fi
7817fi
7818
7819LD="$lt_cv_path_LD"
7820if test -n "$LD"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7822$as_echo "$LD" >&6; }
7823else
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825$as_echo "no" >&6; }
7826fi
cristy98dddb52010-11-04 00:30:15 +00007827test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7829$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007830if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007831 $as_echo_n "(cached) " >&6
7832else
7833 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7834case `$LD -v 2>&1 </dev/null` in
7835*GNU* | *'with BFD'*)
7836 lt_cv_prog_gnu_ld=yes
7837 ;;
7838*)
7839 lt_cv_prog_gnu_ld=no
7840 ;;
7841esac
7842fi
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7844$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7845with_gnu_ld=$lt_cv_prog_gnu_ld
7846
7847
7848
7849
7850
7851
7852
7853
7854
cristy3ed852e2009-09-05 21:47:34 +00007855
cristy837d6dc2010-02-27 01:16:57 +00007856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7857$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007858if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007859 $as_echo_n "(cached) " >&6
7860else
7861 ac_cv_prog_cc_c99=no
7862ac_save_CC=$CC
7863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864/* end confdefs.h. */
7865#include <stdarg.h>
7866#include <stdbool.h>
7867#include <stdlib.h>
7868#include <wchar.h>
7869#include <stdio.h>
7870
7871// Check varargs macros. These examples are taken from C99 6.10.3.5.
7872#define debug(...) fprintf (stderr, __VA_ARGS__)
7873#define showlist(...) puts (#__VA_ARGS__)
7874#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7875static void
7876test_varargs_macros (void)
7877{
7878 int x = 1234;
7879 int y = 5678;
7880 debug ("Flag");
7881 debug ("X = %d\n", x);
7882 showlist (The first, second, and third items.);
7883 report (x>y, "x is %d but y is %d", x, y);
7884}
7885
7886// Check long long types.
7887#define BIG64 18446744073709551615ull
7888#define BIG32 4294967295ul
7889#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7890#if !BIG_OK
7891 your preprocessor is broken;
7892#endif
7893#if BIG_OK
7894#else
7895 your preprocessor is broken;
7896#endif
7897static long long int bignum = -9223372036854775807LL;
7898static unsigned long long int ubignum = BIG64;
7899
7900struct incomplete_array
7901{
7902 int datasize;
7903 double data[];
7904};
7905
7906struct named_init {
7907 int number;
7908 const wchar_t *name;
7909 double average;
7910};
7911
7912typedef const char *ccp;
7913
7914static inline int
7915test_restrict (ccp restrict text)
7916{
7917 // See if C++-style comments work.
7918 // Iterate through items via the restricted pointer.
7919 // Also check for declarations in for loops.
7920 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7921 continue;
7922 return 0;
7923}
7924
7925// Check varargs and va_copy.
7926static void
7927test_varargs (const char *format, ...)
7928{
7929 va_list args;
7930 va_start (args, format);
7931 va_list args_copy;
7932 va_copy (args_copy, args);
7933
7934 const char *str;
7935 int number;
7936 float fnumber;
7937
7938 while (*format)
7939 {
7940 switch (*format++)
7941 {
7942 case 's': // string
7943 str = va_arg (args_copy, const char *);
7944 break;
7945 case 'd': // int
7946 number = va_arg (args_copy, int);
7947 break;
7948 case 'f': // float
7949 fnumber = va_arg (args_copy, double);
7950 break;
7951 default:
7952 break;
7953 }
7954 }
7955 va_end (args_copy);
7956 va_end (args);
7957}
7958
7959int
7960main ()
7961{
7962
7963 // Check bool.
7964 _Bool success = false;
7965
7966 // Check restrict.
7967 if (test_restrict ("String literal") == 0)
7968 success = true;
7969 char *restrict newvar = "Another string";
7970
7971 // Check varargs.
7972 test_varargs ("s, d' f .", "string", 65, 34.234);
7973 test_varargs_macros ();
7974
7975 // Check flexible array members.
7976 struct incomplete_array *ia =
7977 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7978 ia->datasize = 10;
7979 for (int i = 0; i < ia->datasize; ++i)
7980 ia->data[i] = i * 1.234;
7981
7982 // Check named initializers.
7983 struct named_init ni = {
7984 .number = 34,
7985 .name = L"Test wide string",
7986 .average = 543.34343,
7987 };
7988
7989 ni.number = 58;
7990
7991 int dynamic_array[ni.number];
7992 dynamic_array[ni.number - 1] = 543;
7993
7994 // work around unused variable warnings
7995 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7996 || dynamic_array[ni.number - 1] != 543);
7997
7998 ;
7999 return 0;
8000}
8001_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008002for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008003do
8004 CC="$ac_save_CC $ac_arg"
8005 if ac_fn_c_try_compile "$LINENO"; then :
8006 ac_cv_prog_cc_c99=$ac_arg
8007fi
8008rm -f core conftest.err conftest.$ac_objext
8009 test "x$ac_cv_prog_cc_c99" != "xno" && break
8010done
8011rm -f conftest.$ac_ext
8012CC=$ac_save_CC
8013
8014fi
8015# AC_CACHE_VAL
8016case "x$ac_cv_prog_cc_c99" in
8017 x)
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8019$as_echo "none needed" >&6; } ;;
8020 xno)
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8022$as_echo "unsupported" >&6; } ;;
8023 *)
8024 CC="$CC $ac_cv_prog_cc_c99"
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8026$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8027esac
8028if test "x$ac_cv_prog_cc_c99" != xno; then :
8029
8030fi
8031
8032
cristy73bd4a52010-10-05 11:24:23 +00008033
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8035$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008036if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008037 $as_echo_n "(cached) " >&6
8038else
8039 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00008040 ac_ext=c
8041ac_cpp='$CPP $CPPFLAGS'
8042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8044ac_compiler_gnu=$ac_cv_c_compiler_gnu
8045
8046 ac_save_CFLAGS="$CFLAGS"
8047for 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" #
8048do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050/* end confdefs.h. */
8051
8052int
8053main ()
8054{
cristy24fc1fe2010-10-23 21:13:01 +00008055
cristy73bd4a52010-10-05 11:24:23 +00008056 ;
8057 return 0;
8058}
8059_ACEOF
8060if ac_fn_c_try_compile "$LINENO"; then :
8061 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8062fi
8063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064done
8065 CFLAGS="$ac_save_CFLAGS"
8066 ac_ext=c
8067ac_cpp='$CPP $CPPFLAGS'
8068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8070ac_compiler_gnu=$ac_cv_c_compiler_gnu
8071
8072
8073fi
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8075$as_echo "$ac_cv_cflags_warn_all" >&6; }
8076case ".$ac_cv_cflags_warn_all" in
8077 .ok|.ok,*) ;;
8078 .|.no|.no,*)
8079 ;;
8080 *)
8081 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8082 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8083 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8084 ac_status=$?
8085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8086 test $ac_status = 0; }
8087 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8088 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8089 ac_status=$?
8090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8091 test $ac_status = 0; }
8092 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8093 fi
8094 ;;
nicolas6237c462010-10-05 06:11:49 +00008095esac
cristy3ed852e2009-09-05 21:47:34 +00008096
cristya0b81c32010-01-22 02:54:33 +00008097
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8099$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8100set x ${MAKE-make}
8101ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008102if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008103 $as_echo_n "(cached) " >&6
8104else
8105 cat >conftest.make <<\_ACEOF
8106SHELL = /bin/sh
8107all:
8108 @echo '@@@%%%=$(MAKE)=@@@%%%'
8109_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008110# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008111case `${MAKE-make} -f conftest.make 2>/dev/null` in
8112 *@@@%%%=?*=@@@%%%*)
8113 eval ac_cv_prog_make_${ac_make}_set=yes;;
8114 *)
8115 eval ac_cv_prog_make_${ac_make}_set=no;;
8116esac
8117rm -f conftest.make
8118fi
8119if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8121$as_echo "yes" >&6; }
8122 SET_MAKE=
8123else
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125$as_echo "no" >&6; }
8126 SET_MAKE="MAKE=${MAKE-make}"
8127fi
8128
cristy8b350f62009-11-15 23:12:43 +00008129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008130$as_echo_n "checking whether ln -s works... " >&6; }
8131LN_S=$as_ln_s
8132if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008134$as_echo "yes" >&6; }
8135else
cristy8b350f62009-11-15 23:12:43 +00008136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008137$as_echo "no, using $LN_S" >&6; }
8138fi
8139
cristy8d0ff762013-03-10 20:33:28 +00008140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8141$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8142if ${ac_cv_path_SED+:} false; then :
8143 $as_echo_n "(cached) " >&6
8144else
8145 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8146 for ac_i in 1 2 3 4 5 6 7; do
8147 ac_script="$ac_script$as_nl$ac_script"
8148 done
8149 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8150 { ac_script=; unset ac_script;}
8151 if test -z "$SED"; then
8152 ac_path_SED_found=false
8153 # Loop through the user's path and test for each of PROGNAME-LIST
8154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155for as_dir in $PATH
8156do
8157 IFS=$as_save_IFS
8158 test -z "$as_dir" && as_dir=.
8159 for ac_prog in sed gsed; do
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8162 as_fn_executable_p "$ac_path_SED" || continue
8163# Check for GNU ac_path_SED and select it if it is found.
8164 # Check for GNU $ac_path_SED
8165case `"$ac_path_SED" --version 2>&1` in
8166*GNU*)
8167 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8168*)
8169 ac_count=0
8170 $as_echo_n 0123456789 >"conftest.in"
8171 while :
8172 do
8173 cat "conftest.in" "conftest.in" >"conftest.tmp"
8174 mv "conftest.tmp" "conftest.in"
8175 cp "conftest.in" "conftest.nl"
8176 $as_echo '' >> "conftest.nl"
8177 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8179 as_fn_arith $ac_count + 1 && ac_count=$as_val
8180 if test $ac_count -gt ${ac_path_SED_max-0}; then
8181 # Best one so far, save it but keep looking for a better one
8182 ac_cv_path_SED="$ac_path_SED"
8183 ac_path_SED_max=$ac_count
8184 fi
8185 # 10*(2^10) chars as input seems more than enough
8186 test $ac_count -gt 10 && break
8187 done
8188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8189esac
8190
8191 $ac_path_SED_found && break 3
8192 done
8193 done
8194 done
8195IFS=$as_save_IFS
8196 if test -z "$ac_cv_path_SED"; then
8197 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8198 fi
8199else
8200 ac_cv_path_SED=$SED
8201fi
8202
8203fi
8204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8205$as_echo "$ac_cv_path_SED" >&6; }
8206 SED="$ac_cv_path_SED"
8207 rm -f conftest.sed
8208
cristybc556452012-08-17 19:44:03 +00008209for ac_prog in gawk mawk nawk awk
8210do
8211 # Extract the first word of "$ac_prog", so it can be a program name with args.
8212set dummy $ac_prog; ac_word=$2
8213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214$as_echo_n "checking for $ac_word... " >&6; }
8215if ${ac_cv_prog_AWK+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217else
8218 if test -n "$AWK"; then
8219 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8220else
8221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222for as_dir in $PATH
8223do
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8228 ac_cv_prog_AWK="$ac_prog"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230 break 2
8231 fi
8232done
8233 done
8234IFS=$as_save_IFS
8235
8236fi
8237fi
8238AWK=$ac_cv_prog_AWK
8239if test -n "$AWK"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8241$as_echo "$AWK" >&6; }
8242else
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244$as_echo "no" >&6; }
8245fi
8246
8247
8248 test -n "$AWK" && break
8249done
8250
cristy73bd4a52010-10-05 11:24:23 +00008251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8252$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8253
8254# Check whether --with-dmalloc was given.
8255if test "${with_dmalloc+set}" = set; then :
8256 withval=$with_dmalloc; if test "$withval" = yes; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8258$as_echo "yes" >&6; }
8259
8260$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8261
8262 LIBS="$LIBS -ldmalloc"
8263 LDFLAGS="$LDFLAGS -g"
8264else
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266$as_echo "no" >&6; }
8267fi
8268else
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270$as_echo "no" >&6; }
8271fi
8272
8273
8274
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8276$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008277if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008278 $as_echo_n "(cached) " >&6
8279else
8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281/* end confdefs.h. */
8282#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008283 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008284 static void
8285 foo(void) {
8286 exit(1);
8287 }
8288
8289int
8290main ()
8291{
8292
8293 ;
8294 return 0;
8295}
8296_ACEOF
8297if ac_fn_c_try_compile "$LINENO"; then :
8298 ax_cv___attribute__=yes
8299else
8300 ax_cv___attribute__=no
8301
8302fi
8303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304
8305fi
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8307$as_echo "$ax_cv___attribute__" >&6; }
8308 if test "$ax_cv___attribute__" = "yes"; then
8309
8310$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8311
8312 fi
8313
8314
8315
cristya0459972013-11-03 18:09:35 +00008316
8317
8318# Check whether --with-gcc-arch was given.
8319if test "${with_gcc_arch+set}" = set; then :
8320 withval=$with_gcc_arch; ax_gcc_arch=$withval
8321else
8322 ax_gcc_arch=no
8323fi
8324
8325
8326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8327$as_echo_n "checking for gcc architecture flag... " >&6; }
8328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8329$as_echo "" >&6; }
8330if ${ax_cv_gcc_archflag+:} false; then :
8331 $as_echo_n "(cached) " >&6
8332else
8333
8334ax_cv_gcc_archflag="unknown"
8335
8336if test "$GCC" = yes; then
8337
8338if test "x$ax_gcc_arch" = xyes; then
8339ax_gcc_arch=""
8340if test "$cross_compiling" = no; then
8341case $host_cpu in
8342 i[3456]86*|x86_64*) # use cpuid codes
8343
8344ac_ext=c
8345ac_cpp='$CPP $CPPFLAGS'
8346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8348ac_compiler_gnu=$ac_cv_c_compiler_gnu
8349
8350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8351$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8352if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8353 $as_echo_n "(cached) " >&6
8354else
8355 if test "$cross_compiling" = yes; then :
8356 ax_cv_gcc_x86_cpuid_0=unknown
8357else
8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359/* end confdefs.h. */
8360#include <stdio.h>
8361int
8362main ()
8363{
8364
8365 int op = 0, eax, ebx, ecx, edx;
8366 FILE *f;
8367 __asm__("cpuid"
8368 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8369 : "a" (op));
8370 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8371 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8372 fclose(f);
8373 return 0;
8374
8375 ;
8376 return 0;
8377}
8378_ACEOF
8379if ac_fn_c_try_run "$LINENO"; then :
8380 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8381else
8382 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8383fi
8384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8385 conftest.$ac_objext conftest.beam conftest.$ac_ext
8386fi
8387
8388fi
8389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8390$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8391ac_ext=c
8392ac_cpp='$CPP $CPPFLAGS'
8393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8395ac_compiler_gnu=$ac_cv_c_compiler_gnu
8396
8397
8398
8399ac_ext=c
8400ac_cpp='$CPP $CPPFLAGS'
8401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8403ac_compiler_gnu=$ac_cv_c_compiler_gnu
8404
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8406$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8407if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8408 $as_echo_n "(cached) " >&6
8409else
8410 if test "$cross_compiling" = yes; then :
8411 ax_cv_gcc_x86_cpuid_1=unknown
8412else
8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414/* end confdefs.h. */
8415#include <stdio.h>
8416int
8417main ()
8418{
8419
8420 int op = 1, eax, ebx, ecx, edx;
8421 FILE *f;
8422 __asm__("cpuid"
8423 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8424 : "a" (op));
8425 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8426 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8427 fclose(f);
8428 return 0;
8429
8430 ;
8431 return 0;
8432}
8433_ACEOF
8434if ac_fn_c_try_run "$LINENO"; then :
8435 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8436else
8437 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8438fi
8439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8440 conftest.$ac_objext conftest.beam conftest.$ac_ext
8441fi
8442
8443fi
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8445$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8446ac_ext=c
8447ac_cpp='$CPP $CPPFLAGS'
8448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8450ac_compiler_gnu=$ac_cv_c_compiler_gnu
8451
8452
8453 case $ax_cv_gcc_x86_cpuid_0 in
8454 *:756e6547:*:*) # Intel
8455 case $ax_cv_gcc_x86_cpuid_1 in
8456 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8457 *5??:*:*:*) ax_gcc_arch=pentium ;;
8458 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8459 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8460 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8461 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8462 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8463 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8464 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8465 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8466 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8467 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8468 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8469 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8470 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8471 case $host_cpu in
8472 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8473 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8474 esac ;;
8475 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8476 esac ;;
8477 *:68747541:*:*) # AMD
8478 case $ax_cv_gcc_x86_cpuid_1 in
8479 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8480 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8481 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8482 *60?:*:*:*) ax_gcc_arch=k7 ;;
8483 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8484 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8485 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8486 *6[68a]?:*:*:*)
8487
8488ac_ext=c
8489ac_cpp='$CPP $CPPFLAGS'
8490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8492ac_compiler_gnu=$ac_cv_c_compiler_gnu
8493
8494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8495$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8496if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8497 $as_echo_n "(cached) " >&6
8498else
8499 if test "$cross_compiling" = yes; then :
8500 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8501else
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503/* end confdefs.h. */
8504#include <stdio.h>
8505int
8506main ()
8507{
8508
8509 int op = 0x80000006, eax, ebx, ecx, edx;
8510 FILE *f;
8511 __asm__("cpuid"
8512 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8513 : "a" (op));
8514 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8515 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8516 fclose(f);
8517 return 0;
8518
8519 ;
8520 return 0;
8521}
8522_ACEOF
8523if ac_fn_c_try_run "$LINENO"; then :
8524 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8525else
8526 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8527fi
8528rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8529 conftest.$ac_objext conftest.beam conftest.$ac_ext
8530fi
8531
8532fi
8533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8534$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8535ac_ext=c
8536ac_cpp='$CPP $CPPFLAGS'
8537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8539ac_compiler_gnu=$ac_cv_c_compiler_gnu
8540
8541 # L2 cache size
8542 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8543 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8544 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8545 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8546 esac ;;
8547 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8548 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8549 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8550 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8551 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8552 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8553 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8554 esac ;;
8555 *:746e6543:*:*) # IDT
8556 case $ax_cv_gcc_x86_cpuid_1 in
8557 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8558 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8559 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8560 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8561 esac ;;
8562 esac
8563 if test x"$ax_gcc_arch" = x; then # fallback
8564 case $host_cpu in
8565 i586*) ax_gcc_arch=pentium ;;
8566 i686*) ax_gcc_arch=pentiumpro ;;
8567 esac
8568 fi
8569 ;;
8570
8571 sparc*)
8572 # Extract the first word of "prtdiag", so it can be a program name with args.
8573set dummy prtdiag; ac_word=$2
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8575$as_echo_n "checking for $ac_word... " >&6; }
8576if ${ac_cv_path_PRTDIAG+:} false; then :
8577 $as_echo_n "(cached) " >&6
8578else
8579 case $PRTDIAG in
8580 [\\/]* | ?:[\\/]*)
8581 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8582 ;;
8583 *)
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8586for as_dir in $as_dummy
8587do
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8592 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594 break 2
8595 fi
8596done
8597 done
8598IFS=$as_save_IFS
8599
8600 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8601 ;;
8602esac
8603fi
8604PRTDIAG=$ac_cv_path_PRTDIAG
8605if test -n "$PRTDIAG"; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8607$as_echo "$PRTDIAG" >&6; }
8608else
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610$as_echo "no" >&6; }
8611fi
8612
8613
8614 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`
8615 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8616 case $cputype in
8617 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8618 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8619 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8620 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8621 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8622 *cypress*) ax_gcc_arch=cypress ;;
8623 esac ;;
8624
8625 alphaev5) ax_gcc_arch=ev5 ;;
8626 alphaev56) ax_gcc_arch=ev56 ;;
8627 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8628 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8629 alphaev6) ax_gcc_arch=ev6 ;;
8630 alphaev67) ax_gcc_arch=ev67 ;;
8631 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8632 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8633 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8634 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8635
8636 powerpc*)
8637 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`
8638 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8639 case $cputype in
8640 *750*) ax_gcc_arch="750 G3" ;;
8641 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8642 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8643 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8644 *970*) ax_gcc_arch="970 G5 power4";;
8645 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8646 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8647 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8648 *) ax_gcc_arch=$cputype ;;
8649 esac
8650 ax_gcc_arch="$ax_gcc_arch powerpc"
8651 ;;
8652esac
8653fi # not cross-compiling
8654fi # guess arch
8655
8656if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8657for arch in $ax_gcc_arch; do
8658 if test "xno" = xyes; then # if we require portable code
8659 flags="-mtune=$arch"
8660 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8661 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8662 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8663 else
8664 flags="-march=$arch -mcpu=$arch -m$arch"
8665 fi
8666 for flag in $flags; do
8667 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8669$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8670if eval \${$as_CACHEVAR+:} false; then :
8671 $as_echo_n "(cached) " >&6
8672else
8673
8674 ax_check_save_flags=$CFLAGS
8675 CFLAGS="$CFLAGS $flag"
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677/* end confdefs.h. */
8678
8679int
8680main ()
8681{
8682
8683 ;
8684 return 0;
8685}
8686_ACEOF
8687if ac_fn_c_try_compile "$LINENO"; then :
8688 eval "$as_CACHEVAR=yes"
8689else
8690 eval "$as_CACHEVAR=no"
8691fi
8692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8693 CFLAGS=$ax_check_save_flags
8694fi
8695eval ac_res=\$$as_CACHEVAR
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8697$as_echo "$ac_res" >&6; }
8698if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8699 ax_cv_gcc_archflag=$flag; break
8700else
8701 :
8702fi
8703
8704 done
8705 test "x$ax_cv_gcc_archflag" = xunknown || break
8706done
8707fi
8708
8709fi # $GCC=yes
8710
8711fi
8712
8713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8714$as_echo_n "checking for gcc architecture flag... " >&6; }
8715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8716$as_echo "$ax_cv_gcc_archflag" >&6; }
8717if test "x$ax_cv_gcc_archflag" = xunknown; then
8718 :
8719else
8720 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8721fi
8722
8723
8724
cristy73bd4a52010-10-05 11:24:23 +00008725if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8726 if test -n "$ac_tool_prefix"; then
8727 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8728set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008731if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008732 $as_echo_n "(cached) " >&6
8733else
8734 case $PKG_CONFIG in
8735 [\\/]* | ?:[\\/]*)
8736 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8737 ;;
8738 *)
8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740for as_dir in $PATH
8741do
8742 IFS=$as_save_IFS
8743 test -z "$as_dir" && as_dir=.
8744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008746 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8748 break 2
8749 fi
8750done
8751 done
8752IFS=$as_save_IFS
8753
8754 ;;
8755esac
8756fi
8757PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8758if test -n "$PKG_CONFIG"; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8760$as_echo "$PKG_CONFIG" >&6; }
8761else
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763$as_echo "no" >&6; }
8764fi
8765
8766
8767fi
8768if test -z "$ac_cv_path_PKG_CONFIG"; then
8769 ac_pt_PKG_CONFIG=$PKG_CONFIG
8770 # Extract the first word of "pkg-config", so it can be a program name with args.
8771set dummy pkg-config; ac_word=$2
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8773$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008774if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008775 $as_echo_n "(cached) " >&6
8776else
8777 case $ac_pt_PKG_CONFIG in
8778 [\\/]* | ?:[\\/]*)
8779 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8780 ;;
8781 *)
8782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783for as_dir in $PATH
8784do
8785 IFS=$as_save_IFS
8786 test -z "$as_dir" && as_dir=.
8787 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008789 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8791 break 2
8792 fi
8793done
8794 done
8795IFS=$as_save_IFS
8796
8797 ;;
8798esac
8799fi
8800ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8801if test -n "$ac_pt_PKG_CONFIG"; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8803$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8804else
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806$as_echo "no" >&6; }
8807fi
8808
8809 if test "x$ac_pt_PKG_CONFIG" = x; then
8810 PKG_CONFIG=""
8811 else
8812 case $cross_compiling:$ac_tool_warned in
8813yes:)
8814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8816ac_tool_warned=yes ;;
8817esac
8818 PKG_CONFIG=$ac_pt_PKG_CONFIG
8819 fi
8820else
8821 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8822fi
8823
8824fi
8825if test -n "$PKG_CONFIG"; then
8826 _pkg_min_version=0.9.0
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8828$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8829 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8831$as_echo "yes" >&6; }
8832 else
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834$as_echo "no" >&6; }
8835 PKG_CONFIG=""
8836 fi
8837
8838fi
cristy3ed852e2009-09-05 21:47:34 +00008839
cristyd95b7a52013-10-23 13:12:53 +00008840# Test for 64-bit build.
8841# The cast to long int works around a bug in the HP C Compiler
8842# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8843# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8844# This bug is HP SR number 8606223364.
8845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8846$as_echo_n "checking size of size_t... " >&6; }
8847if ${ac_cv_sizeof_size_t+:} false; then :
8848 $as_echo_n "(cached) " >&6
8849else
8850 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
8851
8852else
8853 if test "$ac_cv_type_size_t" = yes; then
8854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8856as_fn_error 77 "cannot compute sizeof (size_t)
8857See \`config.log' for more details" "$LINENO" 5; }
8858 else
8859 ac_cv_sizeof_size_t=0
8860 fi
8861fi
8862
8863fi
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8865$as_echo "$ac_cv_sizeof_size_t" >&6; }
8866
8867
8868
8869cat >>confdefs.h <<_ACEOF
8870#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8871_ACEOF
8872
8873
8874
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8876$as_echo_n "checking for C compiler vendor... " >&6; }
8877if ${ax_cv_c_compiler_vendor+:} false; then :
8878 $as_echo_n "(cached) " >&6
8879else
8880 # note: don't check for gcc first since some other compilers define __GNUC__
8881 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8882 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8883 pathscale: __PATHCC__,__PATHSCALE__
8884 clang: __clang__
8885 gnu: __GNUC__
8886 sun: __SUNPRO_C,__SUNPRO_CC
8887 hp: __HP_cc,__HP_aCC
8888 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8889 borland: __BORLANDC__,__TURBOC__
8890 comeau: __COMO__
8891 cray: _CRAYC
8892 kai: __KCC
8893 lcc: __LCC__
8894 sgi: __sgi,sgi
8895 microsoft: _MSC_VER
8896 metrowerks: __MWERKS__
8897 watcom: __WATCOMC__
8898 portland: __PGI
8899 unknown: UNKNOWN"
8900 for ventest in $vendors; do
8901 case $ventest in
8902 *:) vendor=$ventest; continue ;;
8903 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8904 esac
8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906/* end confdefs.h. */
8907
8908int
8909main ()
8910{
8911
8912 #if !($vencpp)
8913 thisisanerror;
8914 #endif
8915
8916 ;
8917 return 0;
8918}
8919_ACEOF
8920if ac_fn_c_try_compile "$LINENO"; then :
8921 break
8922fi
8923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8924 done
8925 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8926
8927fi
8928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8929$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8930
cristyd95b7a52013-10-23 13:12:53 +00008931# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
8932# compiler.
8933if test "$ax_cv_c_compiler_vendor" != "sun"; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8935$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8936if ${ac_cv_cflags_warn_all+:} false; then :
8937 $as_echo_n "(cached) " >&6
8938else
8939 ac_cv_cflags_warn_all="no, unknown"
8940 ac_ext=c
8941ac_cpp='$CPP $CPPFLAGS'
8942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8944ac_compiler_gnu=$ac_cv_c_compiler_gnu
8945
8946 ac_save_CFLAGS="$CFLAGS"
8947for 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" #
8948do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950/* end confdefs.h. */
8951
8952int
8953main ()
8954{
8955
8956 ;
8957 return 0;
8958}
8959_ACEOF
8960if ac_fn_c_try_compile "$LINENO"; then :
8961 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8962fi
8963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8964done
8965 CFLAGS="$ac_save_CFLAGS"
8966 ac_ext=c
8967ac_cpp='$CPP $CPPFLAGS'
8968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8970ac_compiler_gnu=$ac_cv_c_compiler_gnu
8971
8972
8973fi
8974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8975$as_echo "$ac_cv_cflags_warn_all" >&6; }
8976case ".$ac_cv_cflags_warn_all" in
8977 .ok|.ok,*) ;;
8978 .|.no|.no,*)
8979 ;;
8980 *)
8981 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8982 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8983 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8984 ac_status=$?
8985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8986 test $ac_status = 0; }
8987 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8988 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8989 ac_status=$?
8990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8991 test $ac_status = 0; }
8992 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8993 fi
8994 ;;
8995esac
8996
8997fi
8998
8999if test "x$GCC" = "xyes"; then
9000 CFLAGS="$CFLAGS -fexceptions"
9001 touch local.exp
9002else
9003 cat > local.exp <<EOF
9004set CC_FOR_TARGET "$CC"
9005EOF
9006fi
9007
cristy9b86f202012-11-28 21:55:35 +00009008# Check for linker script support
9009
9010 # Check whether --enable-ld-version-script was given.
9011if test "${enable_ld_version_script+set}" = set; then :
9012 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9013fi
9014
9015 if test -z "$have_ld_version_script"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9017$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9018 save_LDFLAGS="$LDFLAGS"
9019 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9020 cat > conftest.map <<EOF
9021foo
9022EOF
9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024/* end confdefs.h. */
9025
9026int
9027main ()
9028{
9029
9030 ;
9031 return 0;
9032}
9033_ACEOF
9034if ac_fn_c_try_link "$LINENO"; then :
9035 accepts_syntax_errors=yes
9036else
9037 accepts_syntax_errors=no
9038fi
9039rm -f core conftest.err conftest.$ac_objext \
9040 conftest$ac_exeext conftest.$ac_ext
9041 if test "$accepts_syntax_errors" = no; then
9042 cat > conftest.map <<EOF
9043VERS_1 {
9044 global: sym;
9045};
9046
9047VERS_2 {
9048 global: sym;
9049} VERS_1;
9050EOF
9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052/* end confdefs.h. */
9053
9054int
9055main ()
9056{
9057
9058 ;
9059 return 0;
9060}
9061_ACEOF
9062if ac_fn_c_try_link "$LINENO"; then :
9063 have_ld_version_script=yes
9064else
9065 have_ld_version_script=no
9066fi
9067rm -f core conftest.err conftest.$ac_objext \
9068 conftest$ac_exeext conftest.$ac_ext
9069 else
9070 have_ld_version_script=no
9071 fi
9072 rm -f conftest.map
9073 LDFLAGS="$save_LDFLAGS"
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9075$as_echo "$have_ld_version_script" >&6; }
9076 fi
9077 if test "$have_ld_version_script" = "yes"; then
9078 HAVE_LD_VERSION_SCRIPT_TRUE=
9079 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9080else
9081 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9082 HAVE_LD_VERSION_SCRIPT_FALSE=
9083fi
9084
9085
9086
cristy3ed852e2009-09-05 21:47:34 +00009087#
cristy3ed852e2009-09-05 21:47:34 +00009088# Enable run-time checking.
9089#
9090# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009091if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009092 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9093else
9094 enable_bounds_checking='no'
9095fi
9096
9097
9098if test "$enable_bounds_checking" = yes; then
9099
cristy8b350f62009-11-15 23:12:43 +00009100$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009101
9102fi
9103
9104#
9105# Tests for Windows
9106#
9107
9108
9109
9110GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009111native_win32_build='no'
9112cygwin_build='no'
9113case "${host_os}" in
9114 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009115 cygwin_build='yes'
9116 GDI32_LIBS='-lgdi32'
9117 ;;
9118 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009119 native_win32_build='yes'
9120 GDI32_LIBS='-lgdi32'
9121 ;;
9122esac
9123if test "${GDI32_LIBS}x" != 'x'; then
9124
cristy8b350f62009-11-15 23:12:43 +00009125$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009126
9127fi
9128
cristy73bd4a52010-10-05 11:24:23 +00009129 if test "${GDI32_LIBS}x" != 'x' ; then
9130 WINGDI32_DELEGATE_TRUE=
9131 WINGDI32_DELEGATE_FALSE='#'
9132else
9133 WINGDI32_DELEGATE_TRUE='#'
9134 WINGDI32_DELEGATE_FALSE=
9135fi
9136
9137 if test "${native_win32_build}" = 'yes' ; then
9138 WIN32_NATIVE_BUILD_TRUE=
9139 WIN32_NATIVE_BUILD_FALSE='#'
9140else
9141 WIN32_NATIVE_BUILD_TRUE='#'
9142 WIN32_NATIVE_BUILD_FALSE=
9143fi
9144
9145 if test "${cygwin_build}" = 'yes' ; then
9146 CYGWIN_BUILD_TRUE=
9147 CYGWIN_BUILD_FALSE='#'
9148else
9149 CYGWIN_BUILD_TRUE='#'
9150 CYGWIN_BUILD_FALSE=
9151fi
9152
9153 if test "x${CC}" = 'xcl.exe' ; then
9154 USING_CL_TRUE=
9155 USING_CL_FALSE='#'
9156else
9157 USING_CL_TRUE='#'
9158 USING_CL_FALSE=
9159fi
9160
cristy3ed852e2009-09-05 21:47:34 +00009161
9162WinPathScript="${srcdirfull}/winpath.sh"
9163
9164
9165#
9166# Compiler flags tweaks
9167#
9168if test "${GCC}" != "yes"; then
9169 case "${host}" in
9170 *-*-hpux* )
9171 # aCC: HP ANSI C++ B3910B A.03.34
9172 CFLAGS="${CFLAGS} -Wp,-H30000"
9173 if test -n "${CXXFLAGS}"; then
9174 CXXFLAGS='-AA'
9175 else
9176 CXXFLAGS="${CXXFLAGS} -AA"
9177 fi
9178 ;;
9179 *-dec-osf5.* )
9180 # Compaq alphaev68-dec-osf5.1 compiler
9181 if test -n "${CXXFLAGS}"; then
9182 CXXFLAGS='-std strict_ansi -noimplicit_include'
9183 else
9184 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9185 fi
9186 esac
9187fi
9188
9189# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009191$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009192if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009193 $as_echo_n "(cached) " >&6
9194else
9195
9196im_cv_ld_lazyload='none'
9197case "${host}" in
9198 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9199 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9200 im_cv_ld_lazyload='-Wl,-zlazyload'
9201 fi
9202 ;;
9203esac
9204
9205fi
cristy8b350f62009-11-15 23:12:43 +00009206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009207$as_echo "$im_cv_ld_lazyload" >&6; }
9208if test "${im_cv_ld_lazyload}" != 'none' ; then
9209 if test -z "${LDFLAGS}" ; then
9210 LDFLAGS="${im_cv_ld_lazyload}"
9211 else
9212 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9213 fi
9214fi
9215
9216case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009217 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009218 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009219 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009220if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009221 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9222else
9223 build_osxuniversal=no
9224fi
9225
9226
cristyc37574e2013-02-16 01:04:55 +00009227 if test "${build_osxuniversal}" != no ; then
9228 if test "$enable_dependency_tracking" != no ; then
9229 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009230Please re-run configure with these options:
9231 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009232 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009233 fi
9234 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9235 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9236 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009237 fi
9238 ;;
9239esac
9240
cristy0151ae12011-10-28 16:32:29 +00009241#
9242# ARCH specific include directory
9243#
9244
cristy670aa3c2011-11-03 00:54:00 +00009245# Check whether --with-includearch-dir was given.
9246if test "${with_includearch_dir+set}" = set; then :
9247 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009248else
cristy670aa3c2011-11-03 00:54:00 +00009249 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009250fi
9251
9252
cristyd286fd72013-02-24 19:25:33 +00009253eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009254
cristy0151ae12011-10-28 16:32:29 +00009255
9256#
9257# ARCH specific configuration directory
9258#
9259
cristy670aa3c2011-11-03 00:54:00 +00009260# Check whether --with-sharearch-dir was given.
9261if test "${with_sharearch_dir+set}" = set; then :
9262 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009263else
cristy408ebcd2011-11-14 01:36:57 +00009264 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009265fi
9266
9267
cristy670aa3c2011-11-03 00:54:00 +00009268eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009269
cristy0151ae12011-10-28 16:32:29 +00009270
cristy2ec87cc2013-02-18 17:46:50 +00009271# Path to the pkgconfig folder
9272
9273# Check whether --with-pkgconfigdir was given.
9274if test "${with_pkgconfigdir+set}" = set; then :
9275 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9276else
9277 pkgconfigdir='${libdir}/pkgconfig'
9278fi
9279
9280
9281
cristy0151ae12011-10-28 16:32:29 +00009282#
cristy3ed852e2009-09-05 21:47:34 +00009283# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009284#
9285# Find Posix threads library
9286#
cristy3ed852e2009-09-05 21:47:34 +00009287
9288# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009289if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009290 withval=$with_threads; with_threads=$withval
9291else
9292 with_threads='yes'
9293fi
9294
9295
cristy1ae5c992013-07-30 14:55:07 +00009296THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009297have_threads=no
9298if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009299
9300
cristy73bd4a52010-10-05 11:24:23 +00009301ac_ext=c
9302ac_cpp='$CPP $CPPFLAGS'
9303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9305ac_compiler_gnu=$ac_cv_c_compiler_gnu
9306
9307ax_pthread_ok=no
9308
9309# We used to check for pthread.h first, but this fails if pthread.h
9310# requires special compiler flags (e.g. on True64 or Sequent).
9311# It gets checked for in the link test anyway.
9312
9313# First of all, check if the user has set any of the PTHREAD_LIBS,
9314# etcetera environment variables, and if threads linking works using
9315# them:
9316if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9317 save_CFLAGS="$CFLAGS"
9318 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9319 save_LIBS="$LIBS"
9320 LIBS="$PTHREAD_LIBS $LIBS"
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9322$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324/* end confdefs.h. */
9325
9326/* Override any GCC internal prototype to avoid an error.
9327 Use char because int might match the return type of a GCC
9328 builtin and then its argument prototype would still apply. */
9329#ifdef __cplusplus
9330extern "C"
9331#endif
9332char pthread_join ();
9333int
9334main ()
9335{
9336return pthread_join ();
9337 ;
9338 return 0;
9339}
9340_ACEOF
9341if ac_fn_c_try_link "$LINENO"; then :
9342 ax_pthread_ok=yes
9343fi
9344rm -f core conftest.err conftest.$ac_objext \
9345 conftest$ac_exeext conftest.$ac_ext
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9347$as_echo "$ax_pthread_ok" >&6; }
9348 if test x"$ax_pthread_ok" = xno; then
9349 PTHREAD_LIBS=""
9350 PTHREAD_CFLAGS=""
9351 fi
9352 LIBS="$save_LIBS"
9353 CFLAGS="$save_CFLAGS"
9354fi
9355
9356# We must check for the threads library under a number of different
9357# names; the ordering is very important because some systems
9358# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9359# libraries is broken (non-POSIX).
9360
9361# Create a list of thread flags to try. Items starting with a "-" are
9362# C compiler flags, and other items are library names, except for "none"
9363# which indicates that we try without any flags at all, and "pthread-config"
9364# which is a program returning the flags for the Pth emulation library.
9365
cristy2ec87cc2013-02-18 17:46:50 +00009366ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009367
9368# The ordering *is* (sometimes) important. Some notes on the
9369# individual items follow:
9370
9371# pthreads: AIX (must check this before -lpthread)
9372# none: in case threads are in libc; should be tried before -Kthread and
9373# other compiler flags to prevent continual compiler warnings
9374# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9375# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9376# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9377# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9378# -pthreads: Solaris/gcc
9379# -mthreads: Mingw32/gcc, Lynx/gcc
9380# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9381# doesn't hurt to check since this sometimes defines pthreads too;
9382# also defines -D_REENTRANT)
9383# ... -mt is also the pthreads flag for HP/aCC
9384# pthread: Linux, etcetera
9385# --thread-safe: KAI C++
9386# pthread-config: use pthread-config program (for GNU Pth library)
9387
cristy2ec87cc2013-02-18 17:46:50 +00009388case ${host_os} in
9389 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009390
9391 # On Solaris (at least, for some versions), libc contains stubbed
9392 # (non-functional) versions of the pthreads routines, so link-based
9393 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9394 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9395 # a function called by this macro, so we could check for that, but
9396 # who knows whether they'll stub that too in a future libc.) So,
9397 # we'll just look for -pthreads and -lpthread first:
9398
9399 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9400 ;;
9401
cristy2ec87cc2013-02-18 17:46:50 +00009402 darwin*)
cristya316db12011-10-24 00:49:45 +00009403 ax_pthread_flags="-pthread $ax_pthread_flags"
9404 ;;
cristy73bd4a52010-10-05 11:24:23 +00009405esac
9406
9407if test x"$ax_pthread_ok" = xno; then
9408for flag in $ax_pthread_flags; do
9409
9410 case $flag in
9411 none)
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9413$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9414 ;;
9415
9416 -*)
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9418$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9419 PTHREAD_CFLAGS="$flag"
9420 ;;
9421
cristya316db12011-10-24 00:49:45 +00009422 pthread-config)
9423 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009424set dummy pthread-config; ac_word=$2
9425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9426$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009427if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009428 $as_echo_n "(cached) " >&6
9429else
9430 if test -n "$ax_pthread_config"; then
9431 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9432else
9433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434for as_dir in $PATH
9435do
9436 IFS=$as_save_IFS
9437 test -z "$as_dir" && as_dir=.
9438 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009440 ac_cv_prog_ax_pthread_config="yes"
9441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9442 break 2
9443 fi
9444done
9445 done
9446IFS=$as_save_IFS
9447
9448 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9449fi
9450fi
9451ax_pthread_config=$ac_cv_prog_ax_pthread_config
9452if test -n "$ax_pthread_config"; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9454$as_echo "$ax_pthread_config" >&6; }
9455else
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457$as_echo "no" >&6; }
9458fi
9459
9460
cristya316db12011-10-24 00:49:45 +00009461 if test x"$ax_pthread_config" = xno; then continue; fi
9462 PTHREAD_CFLAGS="`pthread-config --cflags`"
9463 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9464 ;;
cristy73bd4a52010-10-05 11:24:23 +00009465
9466 *)
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9468$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9469 PTHREAD_LIBS="-l$flag"
9470 ;;
9471 esac
9472
9473 save_LIBS="$LIBS"
9474 save_CFLAGS="$CFLAGS"
9475 LIBS="$PTHREAD_LIBS $LIBS"
9476 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9477
9478 # Check for various functions. We must include pthread.h,
9479 # since some functions may be macros. (On the Sequent, we
9480 # need a special flag -Kthread to make this header compile.)
9481 # We check for pthread_join because it is in -lpthread on IRIX
9482 # while pthread_create is in libc. We check for pthread_attr_init
9483 # due to DEC craziness with -lpthreads. We check for
9484 # pthread_cleanup_push because it is one of the few pthread
9485 # functions on Solaris that doesn't have a non-functional libc stub.
9486 # We try pthread_create on general principles.
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488/* end confdefs.h. */
9489#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009490 static void routine(void *a) { a = 0; }
9491 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009492int
9493main ()
9494{
9495pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009496 pthread_create(&th, 0, start_routine, 0);
9497 pthread_join(th, 0);
9498 pthread_attr_init(&attr);
9499 pthread_cleanup_push(routine, 0);
9500 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009501 ;
9502 return 0;
9503}
9504_ACEOF
9505if ac_fn_c_try_link "$LINENO"; then :
9506 ax_pthread_ok=yes
9507fi
9508rm -f core conftest.err conftest.$ac_objext \
9509 conftest$ac_exeext conftest.$ac_ext
9510
9511 LIBS="$save_LIBS"
9512 CFLAGS="$save_CFLAGS"
9513
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9515$as_echo "$ax_pthread_ok" >&6; }
9516 if test "x$ax_pthread_ok" = xyes; then
9517 break;
9518 fi
9519
9520 PTHREAD_LIBS=""
9521 PTHREAD_CFLAGS=""
9522done
9523fi
9524
9525# Various other checks:
9526if test "x$ax_pthread_ok" = xyes; then
9527 save_LIBS="$LIBS"
9528 LIBS="$PTHREAD_LIBS $LIBS"
9529 save_CFLAGS="$CFLAGS"
9530 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9531
9532 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009534$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009535 attr_name=unknown
9536 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009538/* end confdefs.h. */
9539#include <pthread.h>
9540int
9541main ()
9542{
cristya316db12011-10-24 00:49:45 +00009543int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009544 ;
9545 return 0;
9546}
9547_ACEOF
9548if ac_fn_c_try_link "$LINENO"; then :
9549 attr_name=$attr; break
9550fi
9551rm -f core conftest.err conftest.$ac_objext \
9552 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009553 done
cristy73bd4a52010-10-05 11:24:23 +00009554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9555$as_echo "$attr_name" >&6; }
9556 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9557
9558cat >>confdefs.h <<_ACEOF
9559#define PTHREAD_CREATE_JOINABLE $attr_name
9560_ACEOF
9561
9562 fi
9563
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9565$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9566 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009567 case ${host_os} in
9568 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9569 osf* | hpux*) flag="-D_REENTRANT";;
9570 solaris*)
9571 if test "$GCC" = "yes"; then
9572 flag="-D_REENTRANT"
9573 else
9574 flag="-mt -D_REENTRANT"
9575 fi
9576 ;;
cristy73bd4a52010-10-05 11:24:23 +00009577 esac
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9579$as_echo "${flag}" >&6; }
9580 if test "x$flag" != xno; then
9581 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9582 fi
9583
cristya316db12011-10-24 00:49:45 +00009584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9585$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9586if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9587 $as_echo_n "(cached) " >&6
9588else
9589
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591/* end confdefs.h. */
9592
9593 #include <pthread.h>
9594int
9595main ()
9596{
9597int i = PTHREAD_PRIO_INHERIT;
9598 ;
9599 return 0;
9600}
9601_ACEOF
9602if ac_fn_c_try_link "$LINENO"; then :
9603 ax_cv_PTHREAD_PRIO_INHERIT=yes
9604else
9605 ax_cv_PTHREAD_PRIO_INHERIT=no
9606fi
9607rm -f core conftest.err conftest.$ac_objext \
9608 conftest$ac_exeext conftest.$ac_ext
9609
9610fi
9611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9612$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9613 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9614
9615$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9616
9617fi
9618
cristy73bd4a52010-10-05 11:24:23 +00009619 LIBS="$save_LIBS"
9620 CFLAGS="$save_CFLAGS"
9621
cristy23493c42013-04-11 16:04:59 +00009622 # More AIX lossage: compile with *_r variant
9623 if test "x$GCC" != xyes; then
9624 case $host_os in
9625 aix*)
9626 case "x/$CC" in #(
9627 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9628 #handle absolute path differently from PATH based program lookup
9629 case "x$CC" in #(
9630 x/*) :
9631 if as_fn_executable_p ${CC}_r; then :
9632 PTHREAD_CC="${CC}_r"
9633fi ;; #(
9634 *) :
9635 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009636do
9637 # Extract the first word of "$ac_prog", so it can be a program name with args.
9638set dummy $ac_prog; ac_word=$2
9639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009641if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009642 $as_echo_n "(cached) " >&6
9643else
9644 if test -n "$PTHREAD_CC"; then
9645 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9646else
9647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648for as_dir in $PATH
9649do
9650 IFS=$as_save_IFS
9651 test -z "$as_dir" && as_dir=.
9652 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009654 ac_cv_prog_PTHREAD_CC="$ac_prog"
9655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9656 break 2
9657 fi
9658done
9659 done
9660IFS=$as_save_IFS
9661
9662fi
9663fi
9664PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9665if test -n "$PTHREAD_CC"; then
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9667$as_echo "$PTHREAD_CC" >&6; }
9668else
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9670$as_echo "no" >&6; }
9671fi
9672
9673
9674 test -n "$PTHREAD_CC" && break
9675done
cristy23493c42013-04-11 16:04:59 +00009676test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9677 ;;
9678esac ;; #(
9679 *) :
9680 ;;
9681esac
9682 ;;
9683 esac
cristya316db12011-10-24 00:49:45 +00009684 fi
cristy73bd4a52010-10-05 11:24:23 +00009685fi
9686
cristy23493c42013-04-11 16:04:59 +00009687test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9688
cristy73bd4a52010-10-05 11:24:23 +00009689
9690
9691
9692
9693# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9694if test x"$ax_pthread_ok" = xyes; then
9695
9696$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9697
9698 :
9699else
9700 ax_pthread_ok=no
9701
9702fi
9703ac_ext=c
9704ac_cpp='$CPP $CPPFLAGS'
9705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9707ac_compiler_gnu=$ac_cv_c_compiler_gnu
9708
9709
cristy7acf8fb2010-09-23 19:58:53 +00009710 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009711 have_threads=yes
9712 DEF_THREAD="$PTHREAD_CFLAGS"
9713 CFLAGS="$CFLAGS $DEF_THREAD"
9714 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009715 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009716 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009717 { $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 +00009718$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9719 CC="$PTHREAD_CC"
9720 fi
cristy55bf91c2010-09-24 00:29:41 +00009721
9722$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9723
cristy3ed852e2009-09-05 21:47:34 +00009724 fi
9725fi
cristy1ae5c992013-07-30 14:55:07 +00009726LIBS="$LIBS $THREAD_LIBS"
9727
cristy3ed852e2009-09-05 21:47:34 +00009728
9729# Enable support for OpenMP
9730if test "$have_threads" != 'yes'; then
9731 ac_cv_prog_c_openmp=unsupported
9732fi
9733
9734 OPENMP_CFLAGS=
9735 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009736if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009737 enableval=$enable_openmp;
9738fi
9739
9740 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009742$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009743if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009744 $as_echo_n "(cached) " >&6
9745else
cristy8b350f62009-11-15 23:12:43 +00009746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009748
9749#ifndef _OPENMP
9750 choke me
9751#endif
9752#include <omp.h>
9753int main () { return omp_get_num_threads (); }
9754
9755_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009756if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009757 ac_cv_prog_c_openmp='none needed'
9758else
cristy8b350f62009-11-15 23:12:43 +00009759 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009760 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9761 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009762 ac_save_CFLAGS=$CFLAGS
9763 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009766
9767#ifndef _OPENMP
9768 choke me
9769#endif
9770#include <omp.h>
9771int main () { return omp_get_num_threads (); }
9772
9773_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009774if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009775 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009776fi
cristy8b350f62009-11-15 23:12:43 +00009777rm -f core conftest.err conftest.$ac_objext \
9778 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009779 CFLAGS=$ac_save_CFLAGS
9780 if test "$ac_cv_prog_c_openmp" != unsupported; then
9781 break
9782 fi
9783 done
9784fi
cristy8b350f62009-11-15 23:12:43 +00009785rm -f core conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009787fi
cristy8b350f62009-11-15 23:12:43 +00009788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009789$as_echo "$ac_cv_prog_c_openmp" >&6; }
9790 case $ac_cv_prog_c_openmp in #(
9791 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009792 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009793 *)
cristy8b350f62009-11-15 23:12:43 +00009794 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009795 esac
9796 fi
9797
9798
9799CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9800MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9801
cristy391f1ce2010-09-09 17:23:28 +00009802if test "$enable_openmp" != no; then
9803 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9804 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9805 fi
9806fi
cristy3ed852e2009-09-05 21:47:34 +00009807
cristy736173a2009-09-20 21:18:22 +00009808# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009809
9810
cristy73bd4a52010-10-05 11:24:23 +00009811ac_ext=c
9812ac_cpp='$CPP $CPPFLAGS'
9813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9815ac_compiler_gnu=$ac_cv_c_compiler_gnu
9816
9817ax_pthread_ok=no
9818
9819# We used to check for pthread.h first, but this fails if pthread.h
9820# requires special compiler flags (e.g. on True64 or Sequent).
9821# It gets checked for in the link test anyway.
9822
9823# First of all, check if the user has set any of the PTHREAD_LIBS,
9824# etcetera environment variables, and if threads linking works using
9825# them:
9826if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9827 save_CFLAGS="$CFLAGS"
9828 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9829 save_LIBS="$LIBS"
9830 LIBS="$PTHREAD_LIBS $LIBS"
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9832$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834/* end confdefs.h. */
9835
9836/* Override any GCC internal prototype to avoid an error.
9837 Use char because int might match the return type of a GCC
9838 builtin and then its argument prototype would still apply. */
9839#ifdef __cplusplus
9840extern "C"
9841#endif
9842char pthread_join ();
9843int
9844main ()
9845{
9846return pthread_join ();
9847 ;
9848 return 0;
9849}
9850_ACEOF
9851if ac_fn_c_try_link "$LINENO"; then :
9852 ax_pthread_ok=yes
9853fi
9854rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9857$as_echo "$ax_pthread_ok" >&6; }
9858 if test x"$ax_pthread_ok" = xno; then
9859 PTHREAD_LIBS=""
9860 PTHREAD_CFLAGS=""
9861 fi
9862 LIBS="$save_LIBS"
9863 CFLAGS="$save_CFLAGS"
9864fi
9865
9866# We must check for the threads library under a number of different
9867# names; the ordering is very important because some systems
9868# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9869# libraries is broken (non-POSIX).
9870
9871# Create a list of thread flags to try. Items starting with a "-" are
9872# C compiler flags, and other items are library names, except for "none"
9873# which indicates that we try without any flags at all, and "pthread-config"
9874# which is a program returning the flags for the Pth emulation library.
9875
cristy2ec87cc2013-02-18 17:46:50 +00009876ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009877
9878# The ordering *is* (sometimes) important. Some notes on the
9879# individual items follow:
9880
9881# pthreads: AIX (must check this before -lpthread)
9882# none: in case threads are in libc; should be tried before -Kthread and
9883# other compiler flags to prevent continual compiler warnings
9884# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9885# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9886# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9887# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9888# -pthreads: Solaris/gcc
9889# -mthreads: Mingw32/gcc, Lynx/gcc
9890# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9891# doesn't hurt to check since this sometimes defines pthreads too;
9892# also defines -D_REENTRANT)
9893# ... -mt is also the pthreads flag for HP/aCC
9894# pthread: Linux, etcetera
9895# --thread-safe: KAI C++
9896# pthread-config: use pthread-config program (for GNU Pth library)
9897
cristy2ec87cc2013-02-18 17:46:50 +00009898case ${host_os} in
9899 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009900
9901 # On Solaris (at least, for some versions), libc contains stubbed
9902 # (non-functional) versions of the pthreads routines, so link-based
9903 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9904 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9905 # a function called by this macro, so we could check for that, but
9906 # who knows whether they'll stub that too in a future libc.) So,
9907 # we'll just look for -pthreads and -lpthread first:
9908
9909 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9910 ;;
9911
cristy2ec87cc2013-02-18 17:46:50 +00009912 darwin*)
cristya316db12011-10-24 00:49:45 +00009913 ax_pthread_flags="-pthread $ax_pthread_flags"
9914 ;;
cristy73bd4a52010-10-05 11:24:23 +00009915esac
9916
9917if test x"$ax_pthread_ok" = xno; then
9918for flag in $ax_pthread_flags; do
9919
9920 case $flag in
9921 none)
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9923$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9924 ;;
9925
9926 -*)
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9928$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9929 PTHREAD_CFLAGS="$flag"
9930 ;;
9931
cristya316db12011-10-24 00:49:45 +00009932 pthread-config)
9933 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009934set dummy pthread-config; ac_word=$2
9935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9936$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009937if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009938 $as_echo_n "(cached) " >&6
9939else
9940 if test -n "$ax_pthread_config"; then
9941 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9942else
9943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944for as_dir in $PATH
9945do
9946 IFS=$as_save_IFS
9947 test -z "$as_dir" && as_dir=.
9948 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009950 ac_cv_prog_ax_pthread_config="yes"
9951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9952 break 2
9953 fi
9954done
9955 done
9956IFS=$as_save_IFS
9957
9958 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9959fi
9960fi
9961ax_pthread_config=$ac_cv_prog_ax_pthread_config
9962if test -n "$ax_pthread_config"; then
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9964$as_echo "$ax_pthread_config" >&6; }
9965else
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9967$as_echo "no" >&6; }
9968fi
9969
9970
cristya316db12011-10-24 00:49:45 +00009971 if test x"$ax_pthread_config" = xno; then continue; fi
9972 PTHREAD_CFLAGS="`pthread-config --cflags`"
9973 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9974 ;;
cristy73bd4a52010-10-05 11:24:23 +00009975
9976 *)
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9978$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9979 PTHREAD_LIBS="-l$flag"
9980 ;;
9981 esac
9982
9983 save_LIBS="$LIBS"
9984 save_CFLAGS="$CFLAGS"
9985 LIBS="$PTHREAD_LIBS $LIBS"
9986 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9987
9988 # Check for various functions. We must include pthread.h,
9989 # since some functions may be macros. (On the Sequent, we
9990 # need a special flag -Kthread to make this header compile.)
9991 # We check for pthread_join because it is in -lpthread on IRIX
9992 # while pthread_create is in libc. We check for pthread_attr_init
9993 # due to DEC craziness with -lpthreads. We check for
9994 # pthread_cleanup_push because it is one of the few pthread
9995 # functions on Solaris that doesn't have a non-functional libc stub.
9996 # We try pthread_create on general principles.
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998/* end confdefs.h. */
9999#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010000 static void routine(void *a) { a = 0; }
10001 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010002int
10003main ()
10004{
10005pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010006 pthread_create(&th, 0, start_routine, 0);
10007 pthread_join(th, 0);
10008 pthread_attr_init(&attr);
10009 pthread_cleanup_push(routine, 0);
10010 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010011 ;
10012 return 0;
10013}
10014_ACEOF
10015if ac_fn_c_try_link "$LINENO"; then :
10016 ax_pthread_ok=yes
10017fi
10018rm -f core conftest.err conftest.$ac_objext \
10019 conftest$ac_exeext conftest.$ac_ext
10020
10021 LIBS="$save_LIBS"
10022 CFLAGS="$save_CFLAGS"
10023
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10025$as_echo "$ax_pthread_ok" >&6; }
10026 if test "x$ax_pthread_ok" = xyes; then
10027 break;
10028 fi
10029
10030 PTHREAD_LIBS=""
10031 PTHREAD_CFLAGS=""
10032done
10033fi
10034
10035# Various other checks:
10036if test "x$ax_pthread_ok" = xyes; then
10037 save_LIBS="$LIBS"
10038 LIBS="$PTHREAD_LIBS $LIBS"
10039 save_CFLAGS="$CFLAGS"
10040 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10041
10042 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010044$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010045 attr_name=unknown
10046 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010048/* end confdefs.h. */
10049#include <pthread.h>
10050int
10051main ()
10052{
cristya316db12011-10-24 00:49:45 +000010053int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010054 ;
10055 return 0;
10056}
10057_ACEOF
10058if ac_fn_c_try_link "$LINENO"; then :
10059 attr_name=$attr; break
10060fi
10061rm -f core conftest.err conftest.$ac_objext \
10062 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010063 done
cristy73bd4a52010-10-05 11:24:23 +000010064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10065$as_echo "$attr_name" >&6; }
10066 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10067
10068cat >>confdefs.h <<_ACEOF
10069#define PTHREAD_CREATE_JOINABLE $attr_name
10070_ACEOF
10071
10072 fi
10073
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10075$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10076 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010077 case ${host_os} in
10078 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10079 osf* | hpux*) flag="-D_REENTRANT";;
10080 solaris*)
10081 if test "$GCC" = "yes"; then
10082 flag="-D_REENTRANT"
10083 else
10084 flag="-mt -D_REENTRANT"
10085 fi
10086 ;;
cristy73bd4a52010-10-05 11:24:23 +000010087 esac
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
10089$as_echo "${flag}" >&6; }
10090 if test "x$flag" != xno; then
10091 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10092 fi
10093
cristya316db12011-10-24 00:49:45 +000010094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10095$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10096if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10097 $as_echo_n "(cached) " >&6
10098else
10099
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101/* end confdefs.h. */
10102
10103 #include <pthread.h>
10104int
10105main ()
10106{
10107int i = PTHREAD_PRIO_INHERIT;
10108 ;
10109 return 0;
10110}
10111_ACEOF
10112if ac_fn_c_try_link "$LINENO"; then :
10113 ax_cv_PTHREAD_PRIO_INHERIT=yes
10114else
10115 ax_cv_PTHREAD_PRIO_INHERIT=no
10116fi
10117rm -f core conftest.err conftest.$ac_objext \
10118 conftest$ac_exeext conftest.$ac_ext
10119
10120fi
10121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10122$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10123 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10124
10125$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10126
10127fi
10128
cristy73bd4a52010-10-05 11:24:23 +000010129 LIBS="$save_LIBS"
10130 CFLAGS="$save_CFLAGS"
10131
cristy23493c42013-04-11 16:04:59 +000010132 # More AIX lossage: compile with *_r variant
10133 if test "x$GCC" != xyes; then
10134 case $host_os in
10135 aix*)
10136 case "x/$CC" in #(
10137 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10138 #handle absolute path differently from PATH based program lookup
10139 case "x$CC" in #(
10140 x/*) :
10141 if as_fn_executable_p ${CC}_r; then :
10142 PTHREAD_CC="${CC}_r"
10143fi ;; #(
10144 *) :
10145 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010146do
10147 # Extract the first word of "$ac_prog", so it can be a program name with args.
10148set dummy $ac_prog; ac_word=$2
10149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10150$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010151if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010152 $as_echo_n "(cached) " >&6
10153else
10154 if test -n "$PTHREAD_CC"; then
10155 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10156else
10157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10158for as_dir in $PATH
10159do
10160 IFS=$as_save_IFS
10161 test -z "$as_dir" && as_dir=.
10162 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010164 ac_cv_prog_PTHREAD_CC="$ac_prog"
10165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10166 break 2
10167 fi
10168done
10169 done
10170IFS=$as_save_IFS
10171
10172fi
10173fi
10174PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10175if test -n "$PTHREAD_CC"; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10177$as_echo "$PTHREAD_CC" >&6; }
10178else
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180$as_echo "no" >&6; }
10181fi
10182
10183
10184 test -n "$PTHREAD_CC" && break
10185done
cristy23493c42013-04-11 16:04:59 +000010186test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10187 ;;
10188esac ;; #(
10189 *) :
10190 ;;
10191esac
10192 ;;
10193 esac
cristya316db12011-10-24 00:49:45 +000010194 fi
cristy73bd4a52010-10-05 11:24:23 +000010195fi
10196
cristy23493c42013-04-11 16:04:59 +000010197test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10198
cristy73bd4a52010-10-05 11:24:23 +000010199
10200
10201
10202
10203# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10204if test x"$ax_pthread_ok" = xyes; then
10205
10206$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10207
10208 :
10209else
10210 ax_pthread_ok=no
10211
10212fi
10213ac_ext=c
10214ac_cpp='$CPP $CPPFLAGS'
10215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10217ac_compiler_gnu=$ac_cv_c_compiler_gnu
10218
10219
10220
10221# Check whether --enable-opencl was given.
10222if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010223 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010224else
cristy48794642012-09-02 15:19:08 +000010225 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010226fi
10227
10228
cristy48794642012-09-02 15:19:08 +000010229if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010230 ac_ext=c
10231ac_cpp='$CPP $CPPFLAGS'
10232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10234ac_compiler_gnu=$ac_cv_c_compiler_gnu
10235
cristy75314cc2012-09-15 23:08:29 +000010236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10237$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10238if ${ax_cv_c_compiler_ms+:} false; then :
10239 $as_echo_n "(cached) " >&6
10240else
10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242/* end confdefs.h. */
10243
10244int
10245main ()
10246{
10247#ifndef _MSC_VER
10248 choke me
10249#endif
10250
10251 ;
10252 return 0;
10253}
10254_ACEOF
10255if ac_fn_c_try_compile "$LINENO"; then :
10256 ax_compiler_ms=yes
10257else
10258 ax_compiler_ms=no
10259fi
10260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10261ax_cv_c_compiler_ms=$ax_compiler_ms
10262
10263fi
10264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10265$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010266 if test X$ax_compiler_ms = Xno; then :
10267 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10268fi
10269
10270 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010271 ax_save_CL_CFLAGS=$CL_CFLAGS
10272
10273 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010274 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10275 for ac_header in CL/cl.h OpenCL/cl.h
10276do :
10277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10278ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010279if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010280 cat >>confdefs.h <<_ACEOF
10281#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10282_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010283 found_opencl_header='yes'
10284 break;
10285else
10286 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010287fi
10288
10289done
10290
cristyfdc7d122013-08-17 20:46:45 +000010291
10292 if test X$found_opencl_header = Xno; then :
10293 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10294 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10295 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10296 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10297 for ac_header in CL/cl.h OpenCL/cl.h
10298do :
10299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10300ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10301if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10302 cat >>confdefs.h <<_ACEOF
10303#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10304_ACEOF
10305 found_opencl_header='yes'
10306 break;
10307else
10308 found_opencl_header='no'
10309fi
10310
10311done
10312
10313
10314fi
10315
10316 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010317
10318 for ac_header in windows.h
10319do :
10320 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010321if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010322 cat >>confdefs.h <<_ACEOF
10323#define HAVE_WINDOWS_H 1
10324_ACEOF
10325
10326fi
10327
10328done
10329
10330
10331
10332
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10334$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010335if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010336 $as_echo_n "(cached) " >&6
10337else
10338 ax_cv_check_cl_libcl=no
10339 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010340 x86_64) ax_check_cl_libdir=lib64
10341 ax_check_cl_amd_libdir=x86_64
10342 ;;
10343 *) ax_check_cl_libdir=lib
10344 ax_check_cl_amd_libdir=x86
10345 ;;
cristy73bd4a52010-10-05 11:24:23 +000010346 esac
10347 ax_save_CPPFLAGS=$CPPFLAGS
10348 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10349 ax_save_LIBS=$LIBS
10350 LIBS=""
10351 ax_check_libs="-lOpenCL -lCL -lclparser"
10352 for ax_lib in $ax_check_libs; do
10353 if test X$ax_compiler_ms = Xyes; then :
10354 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10355else
10356 ax_try_lib=$ax_lib
10357fi
10358 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360/* end confdefs.h. */
10361
10362 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10363 # include <windows.h>
10364 # endif
10365 # ifdef HAVE_CL_CL_H
10366 # include <CL/cl.h>
10367 # elif defined(HAVE_OPENCL_CL_H)
10368 # include <OpenCL/cl.h>
10369 # else
10370 # error no CL.h
10371 # endif
10372int
10373main ()
10374{
10375clCreateContextFromType(0,0,0,0,0)
10376 ;
10377 return 0;
10378}
10379_ACEOF
10380if ac_fn_c_try_link "$LINENO"; then :
10381 ax_cv_check_cl_libcl=$ax_try_lib; break
10382else
10383 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"
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385/* end confdefs.h. */
10386
10387 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10388 # include <windows.h>
10389 # endif
10390 # ifdef HAVE_CL_CL_H
10391 # include <CL/cl.h>
10392 # elif defined(HAVE_OPENCL_CL_H)
10393 # include <OpenCL/cl.h>
10394 # else
10395 # error no CL.h
10396 # endif
10397int
10398main ()
10399{
10400clCreateContextFromType(0,0,0,0,0)
10401 ;
10402 return 0;
10403}
10404_ACEOF
10405if ac_fn_c_try_link "$LINENO"; then :
10406 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10407else
cristy78c5a0c2010-12-04 20:00:59 +000010408 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 +000010409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410/* end confdefs.h. */
10411
10412 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10413 # include <windows.h>
10414 # endif
10415 # ifdef HAVE_CL_CL_H
10416 # include <CL/cl.h>
10417 # elif defined(HAVE_OPENCL_CL_H)
10418 # include <OpenCL/cl.h>
10419 # else
10420 # error no CL.h
10421 # endif
10422int
10423main ()
10424{
10425clCreateContextFromType(0,0,0,0,0)
10426 ;
10427 return 0;
10428}
10429_ACEOF
10430if ac_fn_c_try_link "$LINENO"; then :
10431 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010432else
10433 ax_check_cl_amd_flags="-L$AMDAPPSDKROOT/lib/$ax_check_cl_amd_libdir" LIBS="$ax_try_lib $ax_check_cl_amd_flags $CL_LIBS $ax_save_LIBS"
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435/* end confdefs.h. */
10436
10437 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10438 # include <windows.h>
10439 # endif
10440 # ifdef HAVE_CL_CL_H
10441 # include <CL/cl.h>
10442 # elif defined(HAVE_OPENCL_CL_H)
10443 # include <OpenCL/cl.h>
10444 # else
10445 # error no CL.h
10446 # endif
10447int
10448main ()
10449{
10450clCreateContextFromType(0,0,0,0,0)
10451 ;
10452 return 0;
10453}
10454_ACEOF
10455if ac_fn_c_try_link "$LINENO"; then :
10456 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10457
10458fi
10459rm -f core conftest.err conftest.$ac_objext \
10460 conftest$ac_exeext conftest.$ac_ext
10461
10462
cristy73bd4a52010-10-05 11:24:23 +000010463fi
10464rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10466fi
10467rm -f core conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10469fi
10470rm -f core conftest.err conftest.$ac_objext \
10471 conftest$ac_exeext conftest.$ac_ext
10472 done
10473
cristyc3f8b8e2011-12-22 14:55:16 +000010474 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010475 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477/* end confdefs.h. */
10478
10479 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10480 # include <windows.h>
10481 # endif
10482 # ifdef HAVE_CL_CL_H
10483 # include <CL/cl.h>
10484 # elif defined(HAVE_OPENCL_CL_H)
10485 # include <OpenCL/cl.h>
10486 # else
10487 # error no CL.h
10488 # endif
10489int
10490main ()
10491{
10492clCreateContextFromType(0,0,0,0,0)
10493 ;
10494 return 0;
10495}
10496_ACEOF
10497if ac_fn_c_try_link "$LINENO"; then :
10498 ax_cv_check_cl_libcl=$LIBS
10499fi
10500rm -f core conftest.err conftest.$ac_objext \
10501 conftest$ac_exeext conftest.$ac_ext
10502fi
10503
10504 LIBS=$ax_save_LIBS
10505 CPPFLAGS=$ax_save_CPPFLAGS
10506fi
10507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10508$as_echo "$ax_cv_check_cl_libcl" >&6; }
10509
10510 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10511 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10512else
10513 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10514$as_echo "#define _OPENCL 1" >>confdefs.h
10515
10516fi
10517 ac_ext=c
10518ac_cpp='$CPP $CPPFLAGS'
10519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10521ac_compiler_gnu=$ac_cv_c_compiler_gnu
10522
10523fi
10524
10525
10526
10527
cristyc7083c12009-10-14 03:16:55 +000010528CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010529CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010530LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010531
cristy391f1ce2010-09-09 17:23:28 +000010532if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010533 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010534 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10535 fi
cristyfd9dcd42010-08-08 18:07:02 +000010536fi
cristy2e8b51d2009-10-17 18:26:15 +000010537
cristy3ed852e2009-09-05 21:47:34 +000010538########
10539#
10540# Check for large file support
10541#
10542########
10543# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010544if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010545 enableval=$enable_largefile;
10546fi
10547
10548if test "$enable_largefile" != no; then
10549
cristy8b350f62009-11-15 23:12:43 +000010550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010551$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010552if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010553 $as_echo_n "(cached) " >&6
10554else
10555 ac_cv_sys_largefile_CC=no
10556 if test "$GCC" != yes; then
10557 ac_save_CC=$CC
10558 while :; do
10559 # IRIX 6.2 and later do not support large files by default,
10560 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010562/* end confdefs.h. */
10563#include <sys/types.h>
10564 /* Check that off_t can represent 2**63 - 1 correctly.
10565 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10566 since some C++ compilers masquerading as C compilers
10567 incorrectly reject 9223372036854775807. */
10568#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10569 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10570 && LARGE_OFF_T % 2147483647 == 1)
10571 ? 1 : -1];
10572int
10573main ()
10574{
10575
10576 ;
10577 return 0;
10578}
10579_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010580 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010581 break
cristy3ed852e2009-09-05 21:47:34 +000010582fi
cristy3ed852e2009-09-05 21:47:34 +000010583rm -f core conftest.err conftest.$ac_objext
10584 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010585 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010586 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010587fi
cristy3ed852e2009-09-05 21:47:34 +000010588rm -f core conftest.err conftest.$ac_objext
10589 break
10590 done
10591 CC=$ac_save_CC
10592 rm -f conftest.$ac_ext
10593 fi
10594fi
cristy8b350f62009-11-15 23:12:43 +000010595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010596$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10597 if test "$ac_cv_sys_largefile_CC" != no; then
10598 CC=$CC$ac_cv_sys_largefile_CC
10599 fi
10600
cristy8b350f62009-11-15 23:12:43 +000010601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010602$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010603if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010604 $as_echo_n "(cached) " >&6
10605else
10606 while :; do
cristy8b350f62009-11-15 23:12:43 +000010607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010608/* end confdefs.h. */
10609#include <sys/types.h>
10610 /* Check that off_t can represent 2**63 - 1 correctly.
10611 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10612 since some C++ compilers masquerading as C compilers
10613 incorrectly reject 9223372036854775807. */
10614#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10615 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10616 && LARGE_OFF_T % 2147483647 == 1)
10617 ? 1 : -1];
10618int
10619main ()
10620{
10621
10622 ;
10623 return 0;
10624}
10625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010626if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010627 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010628fi
cristy3ed852e2009-09-05 21:47:34 +000010629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010631/* end confdefs.h. */
10632#define _FILE_OFFSET_BITS 64
10633#include <sys/types.h>
10634 /* Check that off_t can represent 2**63 - 1 correctly.
10635 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10636 since some C++ compilers masquerading as C compilers
10637 incorrectly reject 9223372036854775807. */
10638#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10639 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10640 && LARGE_OFF_T % 2147483647 == 1)
10641 ? 1 : -1];
10642int
10643main ()
10644{
10645
10646 ;
10647 return 0;
10648}
10649_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010650if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010651 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010652fi
cristy3ed852e2009-09-05 21:47:34 +000010653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10654 ac_cv_sys_file_offset_bits=unknown
10655 break
10656done
10657fi
cristy8b350f62009-11-15 23:12:43 +000010658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010659$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10660case $ac_cv_sys_file_offset_bits in #(
10661 no | unknown) ;;
10662 *)
10663cat >>confdefs.h <<_ACEOF
10664#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10665_ACEOF
10666;;
10667esac
10668rm -rf conftest*
10669 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010671$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010672if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010673 $as_echo_n "(cached) " >&6
10674else
10675 while :; do
cristy8b350f62009-11-15 23:12:43 +000010676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010677/* end confdefs.h. */
10678#include <sys/types.h>
10679 /* Check that off_t can represent 2**63 - 1 correctly.
10680 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10681 since some C++ compilers masquerading as C compilers
10682 incorrectly reject 9223372036854775807. */
10683#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10685 && LARGE_OFF_T % 2147483647 == 1)
10686 ? 1 : -1];
10687int
10688main ()
10689{
10690
10691 ;
10692 return 0;
10693}
10694_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010695if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010696 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010697fi
cristy3ed852e2009-09-05 21:47:34 +000010698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010700/* end confdefs.h. */
10701#define _LARGE_FILES 1
10702#include <sys/types.h>
10703 /* Check that off_t can represent 2**63 - 1 correctly.
10704 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10705 since some C++ compilers masquerading as C compilers
10706 incorrectly reject 9223372036854775807. */
10707#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10708 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10709 && LARGE_OFF_T % 2147483647 == 1)
10710 ? 1 : -1];
10711int
10712main ()
10713{
10714
10715 ;
10716 return 0;
10717}
10718_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010719if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010720 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010721fi
cristy3ed852e2009-09-05 21:47:34 +000010722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10723 ac_cv_sys_large_files=unknown
10724 break
10725done
10726fi
cristy8b350f62009-11-15 23:12:43 +000010727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010728$as_echo "$ac_cv_sys_large_files" >&6; }
10729case $ac_cv_sys_large_files in #(
10730 no | unknown) ;;
10731 *)
10732cat >>confdefs.h <<_ACEOF
10733#define _LARGE_FILES $ac_cv_sys_large_files
10734_ACEOF
10735;;
10736esac
10737rm -rf conftest*
10738 fi
cristy14fefe52012-05-21 00:59:18 +000010739
10740
cristy3ed852e2009-09-05 21:47:34 +000010741fi
10742
cristy8b350f62009-11-15 23:12:43 +000010743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010744$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010745if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010746 $as_echo_n "(cached) " >&6
10747else
10748 while :; do
cristy8b350f62009-11-15 23:12:43 +000010749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010750/* end confdefs.h. */
10751#include <sys/types.h> /* for off_t */
10752 #include <stdio.h>
10753int
10754main ()
10755{
10756int (*fp) (FILE *, off_t, int) = fseeko;
10757 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10758 ;
10759 return 0;
10760}
10761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010762if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010763 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010764fi
cristy8b350f62009-11-15 23:12:43 +000010765rm -f core conftest.err conftest.$ac_objext \
10766 conftest$ac_exeext conftest.$ac_ext
10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010768/* end confdefs.h. */
10769#define _LARGEFILE_SOURCE 1
10770#include <sys/types.h> /* for off_t */
10771 #include <stdio.h>
10772int
10773main ()
10774{
10775int (*fp) (FILE *, off_t, int) = fseeko;
10776 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10777 ;
10778 return 0;
10779}
10780_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010781if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010782 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010783fi
cristy8b350f62009-11-15 23:12:43 +000010784rm -f core conftest.err conftest.$ac_objext \
10785 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010786 ac_cv_sys_largefile_source=unknown
10787 break
10788done
10789fi
cristy8b350f62009-11-15 23:12:43 +000010790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010791$as_echo "$ac_cv_sys_largefile_source" >&6; }
10792case $ac_cv_sys_largefile_source in #(
10793 no | unknown) ;;
10794 *)
10795cat >>confdefs.h <<_ACEOF
10796#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10797_ACEOF
10798;;
10799esac
10800rm -rf conftest*
10801
10802# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10803# in glibc 2.1.3, but that breaks too many other things.
10804# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10805if test $ac_cv_sys_largefile_source != unknown; then
10806
cristy8b350f62009-11-15 23:12:43 +000010807$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010808
10809fi
10810
10811LFS_CPPFLAGS=''
10812if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010813 case $ac_cv_sys_file_offset_bits in
10814 no)
10815 # nothing to do here as the host supports LFS fine
10816 ;;
10817 unknown)
cristy8b350f62009-11-15 23:12:43 +000010818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010819$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010820 if test "$cross_compiling" = yes; then :
10821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010823as_fn_error $? "cannot run test program while cross compiling
10824See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010825else
cristy8b350f62009-11-15 23:12:43 +000010826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010828#include <unistd.h>
10829 main () {
10830 exit(!(sizeof(off_t) == 8));
10831 }
cristyda16f162011-02-19 23:52:17 +000010832int
10833main ()
10834{
10835
10836 ;
10837 return 0;
10838}
cristy3ed852e2009-09-05 21:47:34 +000010839_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010840if ac_fn_c_try_run "$LINENO"; then :
10841 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010842
cristyad38abe2012-12-23 23:03:21 +000010843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10844$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010845else
cristyad38abe2012-12-23 23:03:21 +000010846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010848fi
cristy8b350f62009-11-15 23:12:43 +000010849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10850 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010851fi
10852
cristyc1e0cc12011-09-21 16:41:16 +000010853 ;;
10854 *)
10855 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10856 ;;
10857 esac
cristy3ed852e2009-09-05 21:47:34 +000010858 if test "$ac_cv_sys_large_files" != 'no'; then
10859 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10860 fi
10861 if test "$ac_cv_sys_largefile_source" != 'no'; then
10862 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10863 fi
10864fi
10865
10866
cristy3ed852e2009-09-05 21:47:34 +000010867# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010868enable_dlopen=yes
10869
10870
10871
10872case `pwd` in
10873 *\ * | *\ *)
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10875$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10876esac
10877
10878
10879
cristy99bd5232011-12-07 14:38:20 +000010880macro_version='2.4.2'
10881macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895ltmain="$ac_aux_dir/ltmain.sh"
10896
cristy0c60a692010-11-04 01:09:47 +000010897# Backslashify metacharacters that are still active within
10898# double-quoted strings.
10899sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10900
10901# Same as above, but do not quote variable references.
10902double_quote_subst='s/\(["`\\]\)/\\\1/g'
10903
10904# Sed substitution to delay expansion of an escaped shell variable in a
10905# double_quote_subst'ed string.
10906delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10907
10908# Sed substitution to delay expansion of an escaped single quote.
10909delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10910
10911# Sed substitution to avoid accidental globbing in evaled expressions
10912no_glob_subst='s/\*/\\\*/g'
10913
cristy73bd4a52010-10-05 11:24:23 +000010914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10915$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010916if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010917 $as_echo_n "(cached) " >&6
10918else
10919 if test -n "$NM"; then
10920 # Let the user override the test.
10921 lt_cv_path_NM="$NM"
10922else
10923 lt_nm_to_check="${ac_tool_prefix}nm"
10924 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10925 lt_nm_to_check="$lt_nm_to_check nm"
10926 fi
10927 for lt_tmp_nm in $lt_nm_to_check; do
10928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10929 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10930 IFS="$lt_save_ifs"
10931 test -z "$ac_dir" && ac_dir=.
10932 tmp_nm="$ac_dir/$lt_tmp_nm"
10933 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10934 # Check to see if the nm accepts a BSD-compat flag.
10935 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10936 # nm: unknown option "B" ignored
10937 # Tru64's nm complains that /dev/null is an invalid object file
10938 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10939 */dev/null* | *'Invalid file or object type'*)
10940 lt_cv_path_NM="$tmp_nm -B"
10941 break
10942 ;;
10943 *)
10944 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10945 */dev/null*)
10946 lt_cv_path_NM="$tmp_nm -p"
10947 break
10948 ;;
10949 *)
10950 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10951 continue # so that we can try to find one that supports BSD flags
10952 ;;
10953 esac
10954 ;;
10955 esac
10956 fi
10957 done
10958 IFS="$lt_save_ifs"
10959 done
10960 : ${lt_cv_path_NM=no}
10961fi
10962fi
10963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10964$as_echo "$lt_cv_path_NM" >&6; }
10965if test "$lt_cv_path_NM" != "no"; then
10966 NM="$lt_cv_path_NM"
10967else
10968 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010969 if test -n "$DUMPBIN"; then :
10970 # Let the user override the test.
10971 else
10972 if test -n "$ac_tool_prefix"; then
10973 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010974 do
10975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10976set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10978$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010979if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010980 $as_echo_n "(cached) " >&6
10981else
10982 if test -n "$DUMPBIN"; then
10983 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10984else
10985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10986for as_dir in $PATH
10987do
10988 IFS=$as_save_IFS
10989 test -z "$as_dir" && as_dir=.
10990 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010992 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10994 break 2
10995 fi
10996done
10997 done
10998IFS=$as_save_IFS
10999
11000fi
11001fi
11002DUMPBIN=$ac_cv_prog_DUMPBIN
11003if test -n "$DUMPBIN"; then
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11005$as_echo "$DUMPBIN" >&6; }
11006else
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008$as_echo "no" >&6; }
11009fi
11010
11011
11012 test -n "$DUMPBIN" && break
11013 done
11014fi
11015if test -z "$DUMPBIN"; then
11016 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011017 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011018do
11019 # Extract the first word of "$ac_prog", so it can be a program name with args.
11020set dummy $ac_prog; ac_word=$2
11021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11022$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011023if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011024 $as_echo_n "(cached) " >&6
11025else
11026 if test -n "$ac_ct_DUMPBIN"; then
11027 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11028else
11029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030for as_dir in $PATH
11031do
11032 IFS=$as_save_IFS
11033 test -z "$as_dir" && as_dir=.
11034 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011036 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038 break 2
11039 fi
11040done
11041 done
11042IFS=$as_save_IFS
11043
11044fi
11045fi
11046ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11047if test -n "$ac_ct_DUMPBIN"; then
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11049$as_echo "$ac_ct_DUMPBIN" >&6; }
11050else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052$as_echo "no" >&6; }
11053fi
11054
11055
11056 test -n "$ac_ct_DUMPBIN" && break
11057done
11058
11059 if test "x$ac_ct_DUMPBIN" = x; then
11060 DUMPBIN=":"
11061 else
11062 case $cross_compiling:$ac_tool_warned in
11063yes:)
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11066ac_tool_warned=yes ;;
11067esac
11068 DUMPBIN=$ac_ct_DUMPBIN
11069 fi
11070fi
11071
cristy0c60a692010-11-04 01:09:47 +000011072 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11073 *COFF*)
11074 DUMPBIN="$DUMPBIN -symbols"
11075 ;;
11076 *)
11077 DUMPBIN=:
11078 ;;
11079 esac
11080 fi
cristy73bd4a52010-10-05 11:24:23 +000011081
11082 if test "$DUMPBIN" != ":"; then
11083 NM="$DUMPBIN"
11084 fi
11085fi
11086test -z "$NM" && NM=nm
11087
11088
11089
11090
11091
11092
11093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11094$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011095if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011096 $as_echo_n "(cached) " >&6
11097else
11098 lt_cv_nm_interface="BSD nm"
11099 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011100 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011101 (eval "$ac_compile" 2>conftest.err)
11102 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011103 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011104 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11105 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011106 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011107 cat conftest.out >&5
11108 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11109 lt_cv_nm_interface="MS dumpbin"
11110 fi
11111 rm -f conftest*
11112fi
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11114$as_echo "$lt_cv_nm_interface" >&6; }
11115
11116# find the maximum length of command line arguments
11117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11118$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011119if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011120 $as_echo_n "(cached) " >&6
11121else
11122 i=0
11123 teststring="ABCD"
11124
11125 case $build_os in
11126 msdosdjgpp*)
11127 # On DJGPP, this test can blow up pretty badly due to problems in libc
11128 # (any single argument exceeding 2000 bytes causes a buffer overrun
11129 # during glob expansion). Even if it were fixed, the result of this
11130 # check would be larger than it should be.
11131 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11132 ;;
11133
11134 gnu*)
11135 # Under GNU Hurd, this test is not required because there is
11136 # no limit to the length of command line arguments.
11137 # Libtool will interpret -1 as no limit whatsoever
11138 lt_cv_sys_max_cmd_len=-1;
11139 ;;
11140
11141 cygwin* | mingw* | cegcc*)
11142 # On Win9x/ME, this test blows up -- it succeeds, but takes
11143 # about 5 minutes as the teststring grows exponentially.
11144 # Worse, since 9x/ME are not pre-emptively multitasking,
11145 # you end up with a "frozen" computer, even though with patience
11146 # the test eventually succeeds (with a max line length of 256k).
11147 # Instead, let's just punt: use the minimum linelength reported by
11148 # all of the supported platforms: 8192 (on NT/2K/XP).
11149 lt_cv_sys_max_cmd_len=8192;
11150 ;;
11151
cristy0c60a692010-11-04 01:09:47 +000011152 mint*)
11153 # On MiNT this can take a long time and run out of memory.
11154 lt_cv_sys_max_cmd_len=8192;
11155 ;;
11156
cristy73bd4a52010-10-05 11:24:23 +000011157 amigaos*)
11158 # On AmigaOS with pdksh, this test takes hours, literally.
11159 # So we just punt and use a minimum line length of 8192.
11160 lt_cv_sys_max_cmd_len=8192;
11161 ;;
11162
11163 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11164 # This has been around since 386BSD, at least. Likely further.
11165 if test -x /sbin/sysctl; then
11166 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11167 elif test -x /usr/sbin/sysctl; then
11168 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11169 else
11170 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11171 fi
11172 # And add a safety zone
11173 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11174 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11175 ;;
11176
11177 interix*)
11178 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11179 lt_cv_sys_max_cmd_len=196608
11180 ;;
11181
cristy99bd5232011-12-07 14:38:20 +000011182 os2*)
11183 # The test takes a long time on OS/2.
11184 lt_cv_sys_max_cmd_len=8192
11185 ;;
11186
cristy73bd4a52010-10-05 11:24:23 +000011187 osf*)
11188 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11189 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11190 # nice to cause kernel panics so lets avoid the loop below.
11191 # First set a reasonable default.
11192 lt_cv_sys_max_cmd_len=16384
11193 #
11194 if test -x /sbin/sysconfig; then
11195 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11196 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11197 esac
11198 fi
11199 ;;
11200 sco3.2v5*)
11201 lt_cv_sys_max_cmd_len=102400
11202 ;;
11203 sysv5* | sco5v6* | sysv4.2uw2*)
11204 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11205 if test -n "$kargmax"; then
11206 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11207 else
11208 lt_cv_sys_max_cmd_len=32768
11209 fi
11210 ;;
11211 *)
11212 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11213 if test -n "$lt_cv_sys_max_cmd_len"; then
11214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11216 else
11217 # Make teststring a little bigger before we do anything with it.
11218 # a 1K string should be a reasonable start.
11219 for i in 1 2 3 4 5 6 7 8 ; do
11220 teststring=$teststring$teststring
11221 done
11222 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11223 # If test is not a shell built-in, we'll probably end up computing a
11224 # maximum length that is only half of the actual maximum length, but
11225 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011226 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011227 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011228 test $i != 17 # 1/2 MB should be enough
11229 do
11230 i=`expr $i + 1`
11231 teststring=$teststring$teststring
11232 done
11233 # Only check the string length outside the loop.
11234 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11235 teststring=
11236 # Add a significant safety factor because C++ compilers can tack on
11237 # massive amounts of additional arguments before passing them to the
11238 # linker. It appears as though 1/2 is a usable value.
11239 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11240 fi
11241 ;;
11242 esac
11243
11244fi
11245
11246if test -n $lt_cv_sys_max_cmd_len ; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11248$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11249else
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11251$as_echo "none" >&6; }
11252fi
11253max_cmd_len=$lt_cv_sys_max_cmd_len
11254
11255
11256
11257
11258
11259
11260: ${CP="cp -f"}
11261: ${MV="mv -f"}
11262: ${RM="rm -f"}
11263
11264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11265$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11266# Try some XSI features
11267xsi_shell=no
11268( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011269 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11270 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011271 && eval 'test $(( 1 + 1 )) -eq 2 \
11272 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11273 && xsi_shell=yes
11274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11275$as_echo "$xsi_shell" >&6; }
11276
11277
11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11279$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11280lt_shell_append=no
11281( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11282 >/dev/null 2>&1 \
11283 && lt_shell_append=yes
11284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11285$as_echo "$lt_shell_append" >&6; }
11286
11287
11288if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11289 lt_unset=unset
11290else
11291 lt_unset=false
11292fi
11293
11294
11295
11296
11297
11298# test EBCDIC or ASCII
11299case `echo X|tr X '\101'` in
11300 A) # ASCII based system
11301 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11302 lt_SP2NL='tr \040 \012'
11303 lt_NL2SP='tr \015\012 \040\040'
11304 ;;
11305 *) # EBCDIC based system
11306 lt_SP2NL='tr \100 \n'
11307 lt_NL2SP='tr \r\n \100\100'
11308 ;;
11309esac
11310
11311
11312
11313
11314
11315
11316
11317
11318
cristyda16f162011-02-19 23:52:17 +000011319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11320$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11321if ${lt_cv_to_host_file_cmd+:} false; then :
11322 $as_echo_n "(cached) " >&6
11323else
11324 case $host in
11325 *-*-mingw* )
11326 case $build in
11327 *-*-mingw* ) # actually msys
11328 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11329 ;;
11330 *-*-cygwin* )
11331 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11332 ;;
11333 * ) # otherwise, assume *nix
11334 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11335 ;;
11336 esac
11337 ;;
11338 *-*-cygwin* )
11339 case $build in
11340 *-*-mingw* ) # actually msys
11341 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11342 ;;
11343 *-*-cygwin* )
11344 lt_cv_to_host_file_cmd=func_convert_file_noop
11345 ;;
11346 * ) # otherwise, assume *nix
11347 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11348 ;;
11349 esac
11350 ;;
11351 * ) # unhandled hosts (and "normal" native builds)
11352 lt_cv_to_host_file_cmd=func_convert_file_noop
11353 ;;
11354esac
11355
11356fi
11357
11358to_host_file_cmd=$lt_cv_to_host_file_cmd
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11360$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11361
11362
11363
11364
11365
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11367$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11368if ${lt_cv_to_tool_file_cmd+:} false; then :
11369 $as_echo_n "(cached) " >&6
11370else
11371 #assume ordinary cross tools, or native build.
11372lt_cv_to_tool_file_cmd=func_convert_file_noop
11373case $host in
11374 *-*-mingw* )
11375 case $build in
11376 *-*-mingw* ) # actually msys
11377 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11378 ;;
11379 esac
11380 ;;
11381esac
11382
11383fi
11384
11385to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11387$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11388
11389
11390
11391
11392
cristy73bd4a52010-10-05 11:24:23 +000011393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11394$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011395if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011396 $as_echo_n "(cached) " >&6
11397else
11398 lt_cv_ld_reload_flag='-r'
11399fi
11400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11401$as_echo "$lt_cv_ld_reload_flag" >&6; }
11402reload_flag=$lt_cv_ld_reload_flag
11403case $reload_flag in
11404"" | " "*) ;;
11405*) reload_flag=" $reload_flag" ;;
11406esac
11407reload_cmds='$LD$reload_flag -o $output$reload_objs'
11408case $host_os in
cristyda16f162011-02-19 23:52:17 +000011409 cygwin* | mingw* | pw32* | cegcc*)
11410 if test "$GCC" != yes; then
11411 reload_cmds=false
11412 fi
11413 ;;
cristy73bd4a52010-10-05 11:24:23 +000011414 darwin*)
11415 if test "$GCC" = yes; then
11416 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11417 else
11418 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11419 fi
11420 ;;
11421esac
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431if test -n "$ac_tool_prefix"; then
11432 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11433set dummy ${ac_tool_prefix}objdump; ac_word=$2
11434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11435$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011436if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011437 $as_echo_n "(cached) " >&6
11438else
11439 if test -n "$OBJDUMP"; then
11440 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11441else
11442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443for as_dir in $PATH
11444do
11445 IFS=$as_save_IFS
11446 test -z "$as_dir" && as_dir=.
11447 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011449 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11451 break 2
11452 fi
11453done
11454 done
11455IFS=$as_save_IFS
11456
11457fi
11458fi
11459OBJDUMP=$ac_cv_prog_OBJDUMP
11460if test -n "$OBJDUMP"; then
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11462$as_echo "$OBJDUMP" >&6; }
11463else
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465$as_echo "no" >&6; }
11466fi
11467
11468
11469fi
11470if test -z "$ac_cv_prog_OBJDUMP"; then
11471 ac_ct_OBJDUMP=$OBJDUMP
11472 # Extract the first word of "objdump", so it can be a program name with args.
11473set dummy objdump; ac_word=$2
11474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11475$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011476if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011477 $as_echo_n "(cached) " >&6
11478else
11479 if test -n "$ac_ct_OBJDUMP"; then
11480 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11481else
11482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11483for as_dir in $PATH
11484do
11485 IFS=$as_save_IFS
11486 test -z "$as_dir" && as_dir=.
11487 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011489 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11491 break 2
11492 fi
11493done
11494 done
11495IFS=$as_save_IFS
11496
11497fi
11498fi
11499ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11500if test -n "$ac_ct_OBJDUMP"; then
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11502$as_echo "$ac_ct_OBJDUMP" >&6; }
11503else
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505$as_echo "no" >&6; }
11506fi
11507
11508 if test "x$ac_ct_OBJDUMP" = x; then
11509 OBJDUMP="false"
11510 else
11511 case $cross_compiling:$ac_tool_warned in
11512yes:)
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11515ac_tool_warned=yes ;;
11516esac
11517 OBJDUMP=$ac_ct_OBJDUMP
11518 fi
11519else
11520 OBJDUMP="$ac_cv_prog_OBJDUMP"
11521fi
11522
11523test -z "$OBJDUMP" && OBJDUMP=objdump
11524
11525
11526
11527
11528
11529
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11531$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011532if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011533 $as_echo_n "(cached) " >&6
11534else
11535 lt_cv_file_magic_cmd='$MAGIC_CMD'
11536lt_cv_file_magic_test_file=
11537lt_cv_deplibs_check_method='unknown'
11538# Need to set the preceding variable on all platforms that support
11539# interlibrary dependencies.
11540# 'none' -- dependencies not supported.
11541# `unknown' -- same as none, but documents that we really don't know.
11542# 'pass_all' -- all dependencies passed with no checks.
11543# 'test_compile' -- check by making test program.
11544# 'file_magic [[regex]]' -- check by looking for files in library path
11545# which responds to the $file_magic_cmd with a given extended regex.
11546# If you have `file' or equivalent on your system and you're not sure
11547# whether `pass_all' will *always* work, you probably want this one.
11548
11549case $host_os in
11550aix[4-9]*)
11551 lt_cv_deplibs_check_method=pass_all
11552 ;;
11553
11554beos*)
11555 lt_cv_deplibs_check_method=pass_all
11556 ;;
11557
11558bsdi[45]*)
11559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11560 lt_cv_file_magic_cmd='/usr/bin/file -L'
11561 lt_cv_file_magic_test_file=/shlib/libc.so
11562 ;;
11563
11564cygwin*)
11565 # func_win32_libid is a shell function defined in ltmain.sh
11566 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11567 lt_cv_file_magic_cmd='func_win32_libid'
11568 ;;
11569
11570mingw* | pw32*)
11571 # Base MSYS/MinGW do not provide the 'file' command needed by
11572 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11573 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011574 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11575 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011576 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11577 lt_cv_file_magic_cmd='func_win32_libid'
11578 else
cristy0c60a692010-11-04 01:09:47 +000011579 # Keep this pattern in sync with the one in func_win32_libid.
11580 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 +000011581 lt_cv_file_magic_cmd='$OBJDUMP -f'
11582 fi
11583 ;;
11584
cristy0c60a692010-11-04 01:09:47 +000011585cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011586 # use the weaker test based on 'objdump'. See mingw*.
11587 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11588 lt_cv_file_magic_cmd='$OBJDUMP -f'
11589 ;;
11590
11591darwin* | rhapsody*)
11592 lt_cv_deplibs_check_method=pass_all
11593 ;;
11594
11595freebsd* | dragonfly*)
11596 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11597 case $host_cpu in
11598 i*86 )
11599 # Not sure whether the presence of OpenBSD here was a mistake.
11600 # Let's accept both of them until this is cleared up.
11601 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11602 lt_cv_file_magic_cmd=/usr/bin/file
11603 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11604 ;;
11605 esac
11606 else
11607 lt_cv_deplibs_check_method=pass_all
11608 fi
11609 ;;
11610
11611gnu*)
11612 lt_cv_deplibs_check_method=pass_all
11613 ;;
11614
cristy0c60a692010-11-04 01:09:47 +000011615haiku*)
11616 lt_cv_deplibs_check_method=pass_all
11617 ;;
11618
cristy73bd4a52010-10-05 11:24:23 +000011619hpux10.20* | hpux11*)
11620 lt_cv_file_magic_cmd=/usr/bin/file
11621 case $host_cpu in
11622 ia64*)
11623 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11624 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11625 ;;
11626 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011627 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 +000011628 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11629 ;;
11630 *)
cristy0c60a692010-11-04 01:09:47 +000011631 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 +000011632 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11633 ;;
11634 esac
11635 ;;
11636
11637interix[3-9]*)
11638 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11640 ;;
11641
11642irix5* | irix6* | nonstopux*)
11643 case $LD in
11644 *-32|*"-32 ") libmagic=32-bit;;
11645 *-n32|*"-n32 ") libmagic=N32;;
11646 *-64|*"-64 ") libmagic=64-bit;;
11647 *) libmagic=never-match;;
11648 esac
11649 lt_cv_deplibs_check_method=pass_all
11650 ;;
11651
cristy99bd5232011-12-07 14:38:20 +000011652# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011653linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011654 lt_cv_deplibs_check_method=pass_all
11655 ;;
11656
11657netbsd*)
11658 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11660 else
11661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11662 fi
11663 ;;
11664
11665newos6*)
11666 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11667 lt_cv_file_magic_cmd=/usr/bin/file
11668 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11669 ;;
11670
11671*nto* | *qnx*)
11672 lt_cv_deplibs_check_method=pass_all
11673 ;;
11674
11675openbsd*)
11676 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11678 else
11679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11680 fi
11681 ;;
11682
11683osf3* | osf4* | osf5*)
11684 lt_cv_deplibs_check_method=pass_all
11685 ;;
11686
11687rdos*)
11688 lt_cv_deplibs_check_method=pass_all
11689 ;;
11690
11691solaris*)
11692 lt_cv_deplibs_check_method=pass_all
11693 ;;
11694
11695sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11696 lt_cv_deplibs_check_method=pass_all
11697 ;;
11698
11699sysv4 | sysv4.3*)
11700 case $host_vendor in
11701 motorola)
11702 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]'
11703 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11704 ;;
11705 ncr)
11706 lt_cv_deplibs_check_method=pass_all
11707 ;;
11708 sequent)
11709 lt_cv_file_magic_cmd='/bin/file'
11710 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11711 ;;
11712 sni)
11713 lt_cv_file_magic_cmd='/bin/file'
11714 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11715 lt_cv_file_magic_test_file=/lib/libc.so
11716 ;;
11717 siemens)
11718 lt_cv_deplibs_check_method=pass_all
11719 ;;
11720 pc)
11721 lt_cv_deplibs_check_method=pass_all
11722 ;;
11723 esac
11724 ;;
11725
11726tpf*)
11727 lt_cv_deplibs_check_method=pass_all
11728 ;;
11729esac
11730
11731fi
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11733$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011734
11735file_magic_glob=
11736want_nocaseglob=no
11737if test "$build" = "$host"; then
11738 case $host_os in
11739 mingw* | pw32*)
11740 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11741 want_nocaseglob=yes
11742 else
11743 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11744 fi
11745 ;;
11746 esac
11747fi
11748
cristy73bd4a52010-10-05 11:24:23 +000011749file_magic_cmd=$lt_cv_file_magic_cmd
11750deplibs_check_method=$lt_cv_deplibs_check_method
11751test -z "$deplibs_check_method" && deplibs_check_method=unknown
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
cristyda16f162011-02-19 23:52:17 +000011764
11765
11766
11767
11768
11769
11770
11771
11772
11773
cristy73bd4a52010-10-05 11:24:23 +000011774if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011775 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11776set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011779if ${ac_cv_prog_DLLTOOL+:} false; then :
11780 $as_echo_n "(cached) " >&6
11781else
11782 if test -n "$DLLTOOL"; then
11783 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11784else
11785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786for as_dir in $PATH
11787do
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
11790 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011792 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11794 break 2
11795 fi
11796done
11797 done
11798IFS=$as_save_IFS
11799
11800fi
11801fi
11802DLLTOOL=$ac_cv_prog_DLLTOOL
11803if test -n "$DLLTOOL"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11805$as_echo "$DLLTOOL" >&6; }
11806else
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808$as_echo "no" >&6; }
11809fi
11810
11811
11812fi
11813if test -z "$ac_cv_prog_DLLTOOL"; then
11814 ac_ct_DLLTOOL=$DLLTOOL
11815 # Extract the first word of "dlltool", so it can be a program name with args.
11816set dummy dlltool; ac_word=$2
11817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11818$as_echo_n "checking for $ac_word... " >&6; }
11819if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11820 $as_echo_n "(cached) " >&6
11821else
11822 if test -n "$ac_ct_DLLTOOL"; then
11823 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11824else
11825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826for as_dir in $PATH
11827do
11828 IFS=$as_save_IFS
11829 test -z "$as_dir" && as_dir=.
11830 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011832 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11834 break 2
11835 fi
11836done
11837 done
11838IFS=$as_save_IFS
11839
11840fi
11841fi
11842ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11843if test -n "$ac_ct_DLLTOOL"; then
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11845$as_echo "$ac_ct_DLLTOOL" >&6; }
11846else
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848$as_echo "no" >&6; }
11849fi
11850
11851 if test "x$ac_ct_DLLTOOL" = x; then
11852 DLLTOOL="false"
11853 else
11854 case $cross_compiling:$ac_tool_warned in
11855yes:)
11856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11858ac_tool_warned=yes ;;
11859esac
11860 DLLTOOL=$ac_ct_DLLTOOL
11861 fi
11862else
11863 DLLTOOL="$ac_cv_prog_DLLTOOL"
11864fi
11865
11866test -z "$DLLTOOL" && DLLTOOL=dlltool
11867
11868
11869
11870
11871
11872
11873
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11875$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11876if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11877 $as_echo_n "(cached) " >&6
11878else
11879 lt_cv_sharedlib_from_linklib_cmd='unknown'
11880
11881case $host_os in
11882cygwin* | mingw* | pw32* | cegcc*)
11883 # two different shell functions defined in ltmain.sh
11884 # decide which to use based on capabilities of $DLLTOOL
11885 case `$DLLTOOL --help 2>&1` in
11886 *--identify-strict*)
11887 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11888 ;;
11889 *)
11890 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11891 ;;
11892 esac
11893 ;;
11894*)
11895 # fallback: assume linklib IS sharedlib
11896 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11897 ;;
11898esac
11899
11900fi
11901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11902$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11903sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11904test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11905
11906
11907
11908
11909
11910
11911
11912if test -n "$ac_tool_prefix"; then
11913 for ac_prog in ar
11914 do
11915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11916set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11918$as_echo_n "checking for $ac_word... " >&6; }
11919if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011920 $as_echo_n "(cached) " >&6
11921else
11922 if test -n "$AR"; then
11923 ac_cv_prog_AR="$AR" # Let the user override the test.
11924else
11925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926for as_dir in $PATH
11927do
11928 IFS=$as_save_IFS
11929 test -z "$as_dir" && as_dir=.
11930 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011932 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934 break 2
11935 fi
11936done
11937 done
11938IFS=$as_save_IFS
11939
11940fi
11941fi
11942AR=$ac_cv_prog_AR
11943if test -n "$AR"; then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11945$as_echo "$AR" >&6; }
11946else
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948$as_echo "no" >&6; }
11949fi
11950
11951
cristyda16f162011-02-19 23:52:17 +000011952 test -n "$AR" && break
11953 done
cristy73bd4a52010-10-05 11:24:23 +000011954fi
cristyda16f162011-02-19 23:52:17 +000011955if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011956 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011957 for ac_prog in ar
11958do
11959 # Extract the first word of "$ac_prog", so it can be a program name with args.
11960set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11962$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011963if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011964 $as_echo_n "(cached) " >&6
11965else
11966 if test -n "$ac_ct_AR"; then
11967 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11968else
11969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11970for as_dir in $PATH
11971do
11972 IFS=$as_save_IFS
11973 test -z "$as_dir" && as_dir=.
11974 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011976 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11978 break 2
11979 fi
11980done
11981 done
11982IFS=$as_save_IFS
11983
11984fi
11985fi
11986ac_ct_AR=$ac_cv_prog_ac_ct_AR
11987if test -n "$ac_ct_AR"; then
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11989$as_echo "$ac_ct_AR" >&6; }
11990else
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992$as_echo "no" >&6; }
11993fi
11994
cristyda16f162011-02-19 23:52:17 +000011995
11996 test -n "$ac_ct_AR" && break
11997done
11998
cristy73bd4a52010-10-05 11:24:23 +000011999 if test "x$ac_ct_AR" = x; then
12000 AR="false"
12001 else
12002 case $cross_compiling:$ac_tool_warned in
12003yes:)
12004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12006ac_tool_warned=yes ;;
12007esac
12008 AR=$ac_ct_AR
12009 fi
cristy73bd4a52010-10-05 11:24:23 +000012010fi
12011
cristyda16f162011-02-19 23:52:17 +000012012: ${AR=ar}
12013: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
cristyda16f162011-02-19 23:52:17 +000012025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12026$as_echo_n "checking for archiver @FILE support... " >&6; }
12027if ${lt_cv_ar_at_file+:} false; then :
12028 $as_echo_n "(cached) " >&6
12029else
12030 lt_cv_ar_at_file=no
12031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032/* end confdefs.h. */
12033
12034int
12035main ()
12036{
12037
12038 ;
12039 return 0;
12040}
12041_ACEOF
12042if ac_fn_c_try_compile "$LINENO"; then :
12043 echo conftest.$ac_objext > conftest.lst
12044 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12046 (eval $lt_ar_try) 2>&5
12047 ac_status=$?
12048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12049 test $ac_status = 0; }
12050 if test "$ac_status" -eq 0; then
12051 # Ensure the archiver fails upon bogus file names.
12052 rm -f conftest.$ac_objext libconftest.a
12053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12054 (eval $lt_ar_try) 2>&5
12055 ac_status=$?
12056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12057 test $ac_status = 0; }
12058 if test "$ac_status" -ne 0; then
12059 lt_cv_ar_at_file=@
12060 fi
12061 fi
12062 rm -f conftest.* libconftest.a
12063
12064fi
12065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12066
12067fi
12068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12069$as_echo "$lt_cv_ar_at_file" >&6; }
12070
12071if test "x$lt_cv_ar_at_file" = xno; then
12072 archiver_list_spec=
12073else
12074 archiver_list_spec=$lt_cv_ar_at_file
12075fi
12076
12077
12078
12079
12080
12081
12082
cristy73bd4a52010-10-05 11:24:23 +000012083if test -n "$ac_tool_prefix"; then
12084 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12085set dummy ${ac_tool_prefix}strip; ac_word=$2
12086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012088if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012089 $as_echo_n "(cached) " >&6
12090else
12091 if test -n "$STRIP"; then
12092 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12093else
12094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095for as_dir in $PATH
12096do
12097 IFS=$as_save_IFS
12098 test -z "$as_dir" && as_dir=.
12099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012101 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12103 break 2
12104 fi
12105done
12106 done
12107IFS=$as_save_IFS
12108
12109fi
12110fi
12111STRIP=$ac_cv_prog_STRIP
12112if test -n "$STRIP"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12114$as_echo "$STRIP" >&6; }
12115else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117$as_echo "no" >&6; }
12118fi
12119
12120
12121fi
12122if test -z "$ac_cv_prog_STRIP"; then
12123 ac_ct_STRIP=$STRIP
12124 # Extract the first word of "strip", so it can be a program name with args.
12125set dummy strip; ac_word=$2
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12127$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012128if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012129 $as_echo_n "(cached) " >&6
12130else
12131 if test -n "$ac_ct_STRIP"; then
12132 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12133else
12134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135for as_dir in $PATH
12136do
12137 IFS=$as_save_IFS
12138 test -z "$as_dir" && as_dir=.
12139 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012141 ac_cv_prog_ac_ct_STRIP="strip"
12142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12143 break 2
12144 fi
12145done
12146 done
12147IFS=$as_save_IFS
12148
12149fi
12150fi
12151ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12152if test -n "$ac_ct_STRIP"; then
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12154$as_echo "$ac_ct_STRIP" >&6; }
12155else
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157$as_echo "no" >&6; }
12158fi
12159
12160 if test "x$ac_ct_STRIP" = x; then
12161 STRIP=":"
12162 else
12163 case $cross_compiling:$ac_tool_warned in
12164yes:)
12165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12167ac_tool_warned=yes ;;
12168esac
12169 STRIP=$ac_ct_STRIP
12170 fi
12171else
12172 STRIP="$ac_cv_prog_STRIP"
12173fi
12174
12175test -z "$STRIP" && STRIP=:
12176
12177
12178
12179
12180
12181
12182if test -n "$ac_tool_prefix"; then
12183 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12184set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12186$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012187if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012188 $as_echo_n "(cached) " >&6
12189else
12190 if test -n "$RANLIB"; then
12191 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12192else
12193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194for as_dir in $PATH
12195do
12196 IFS=$as_save_IFS
12197 test -z "$as_dir" && as_dir=.
12198 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012200 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12202 break 2
12203 fi
12204done
12205 done
12206IFS=$as_save_IFS
12207
12208fi
12209fi
12210RANLIB=$ac_cv_prog_RANLIB
12211if test -n "$RANLIB"; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12213$as_echo "$RANLIB" >&6; }
12214else
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216$as_echo "no" >&6; }
12217fi
12218
12219
12220fi
12221if test -z "$ac_cv_prog_RANLIB"; then
12222 ac_ct_RANLIB=$RANLIB
12223 # Extract the first word of "ranlib", so it can be a program name with args.
12224set dummy ranlib; ac_word=$2
12225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12226$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012227if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012228 $as_echo_n "(cached) " >&6
12229else
12230 if test -n "$ac_ct_RANLIB"; then
12231 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12232else
12233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234for as_dir in $PATH
12235do
12236 IFS=$as_save_IFS
12237 test -z "$as_dir" && as_dir=.
12238 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012240 ac_cv_prog_ac_ct_RANLIB="ranlib"
12241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12242 break 2
12243 fi
12244done
12245 done
12246IFS=$as_save_IFS
12247
12248fi
12249fi
12250ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12251if test -n "$ac_ct_RANLIB"; then
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12253$as_echo "$ac_ct_RANLIB" >&6; }
12254else
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256$as_echo "no" >&6; }
12257fi
12258
12259 if test "x$ac_ct_RANLIB" = x; then
12260 RANLIB=":"
12261 else
12262 case $cross_compiling:$ac_tool_warned in
12263yes:)
12264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12266ac_tool_warned=yes ;;
12267esac
12268 RANLIB=$ac_ct_RANLIB
12269 fi
12270else
12271 RANLIB="$ac_cv_prog_RANLIB"
12272fi
12273
12274test -z "$RANLIB" && RANLIB=:
12275
12276
12277
12278
12279
12280
12281# Determine commands to create old-style static archives.
12282old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12283old_postinstall_cmds='chmod 644 $oldlib'
12284old_postuninstall_cmds=
12285
12286if test -n "$RANLIB"; then
12287 case $host_os in
12288 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012289 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012290 ;;
12291 *)
cristy99bd5232011-12-07 14:38:20 +000012292 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012293 ;;
12294 esac
cristy99bd5232011-12-07 14:38:20 +000012295 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012296fi
12297
cristy0c60a692010-11-04 01:09:47 +000012298case $host_os in
12299 darwin*)
12300 lock_old_archive_extraction=yes ;;
12301 *)
12302 lock_old_archive_extraction=no ;;
12303esac
12304
12305
12306
12307
12308
12309
cristy73bd4a52010-10-05 11:24:23 +000012310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343# If no C compiler was specified, use CC.
12344LTCC=${LTCC-"$CC"}
12345
12346# If no C compiler flags were specified, use CFLAGS.
12347LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12348
12349# Allow CC to be a program name with arguments.
12350compiler=$CC
12351
12352
12353# Check for command to grab the raw symbol name followed by C symbol from nm.
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12355$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012356if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012357 $as_echo_n "(cached) " >&6
12358else
12359
12360# These are sane defaults that work on at least a few old systems.
12361# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12362
12363# Character class describing NM global symbol codes.
12364symcode='[BCDEGRST]'
12365
12366# Regexp to match symbols that can be accessed directly from C.
12367sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12368
12369# Define system-specific variables.
12370case $host_os in
12371aix*)
12372 symcode='[BCDT]'
12373 ;;
12374cygwin* | mingw* | pw32* | cegcc*)
12375 symcode='[ABCDGISTW]'
12376 ;;
12377hpux*)
12378 if test "$host_cpu" = ia64; then
12379 symcode='[ABCDEGRST]'
12380 fi
12381 ;;
12382irix* | nonstopux*)
12383 symcode='[BCDEGRST]'
12384 ;;
12385osf*)
12386 symcode='[BCDEGQRST]'
12387 ;;
12388solaris*)
12389 symcode='[BDRT]'
12390 ;;
12391sco3.2v5*)
12392 symcode='[DT]'
12393 ;;
12394sysv4.2uw2*)
12395 symcode='[DT]'
12396 ;;
12397sysv5* | sco5v6* | unixware* | OpenUNIX*)
12398 symcode='[ABDT]'
12399 ;;
12400sysv4)
12401 symcode='[DFNSTU]'
12402 ;;
12403esac
12404
12405# If we're using GNU nm, then use its standard symbol codes.
12406case `$NM -V 2>&1` in
12407*GNU* | *'with BFD'*)
12408 symcode='[ABCDGIRSTW]' ;;
12409esac
12410
12411# Transform an extracted symbol line into a proper C declaration.
12412# Some systems (esp. on ia64) link data and code symbols differently,
12413# so use this general approach.
12414lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12415
12416# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012417lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12418lt_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 +000012419
12420# Handle CRLF in mingw tool chain
12421opt_cr=
12422case $build_os in
12423mingw*)
12424 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12425 ;;
12426esac
12427
12428# Try without a prefix underscore, then with it.
12429for ac_symprfx in "" "_"; do
12430
12431 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12432 symxfrm="\\1 $ac_symprfx\\2 \\2"
12433
12434 # Write the raw and C identifiers.
12435 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12436 # Fake it for dumpbin and say T for any non-static function
12437 # and D for any global variable.
12438 # Also find C++ and __fastcall symbols from MSVC++,
12439 # which start with @ or ?.
12440 lt_cv_sys_global_symbol_pipe="$AWK '"\
12441" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012442" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012443" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12444" \$ 0!~/External *\|/{next};"\
12445" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12446" {if(hide[section]) next};"\
12447" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12448" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12449" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12450" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12451" ' prfx=^$ac_symprfx"
12452 else
12453 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12454 fi
cristyda16f162011-02-19 23:52:17 +000012455 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012456
12457 # Check to see that the pipe works correctly.
12458 pipe_works=no
12459
12460 rm -f conftest*
12461 cat > conftest.$ac_ext <<_LT_EOF
12462#ifdef __cplusplus
12463extern "C" {
12464#endif
12465char nm_test_var;
12466void nm_test_func(void);
12467void nm_test_func(void){}
12468#ifdef __cplusplus
12469}
12470#endif
12471int main(){nm_test_var='a';nm_test_func();return(0);}
12472_LT_EOF
12473
12474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12475 (eval $ac_compile) 2>&5
12476 ac_status=$?
12477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12478 test $ac_status = 0; }; then
12479 # Now try to grab the symbols.
12480 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12482 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012483 ac_status=$?
12484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12485 test $ac_status = 0; } && test -s "$nlist"; then
12486 # Try sorting and uniquifying the output.
12487 if sort "$nlist" | uniq > "$nlist"T; then
12488 mv -f "$nlist"T "$nlist"
12489 else
12490 rm -f "$nlist"T
12491 fi
12492
12493 # Make sure that we snagged all the symbols we need.
12494 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12495 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12496 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012497/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12498#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12499/* DATA imports from DLLs on WIN32 con't be const, because runtime
12500 relocations are performed -- see ld's documentation on pseudo-relocs. */
12501# define LT_DLSYM_CONST
12502#elif defined(__osf__)
12503/* This system does not cope well with relocations in const data. */
12504# define LT_DLSYM_CONST
12505#else
12506# define LT_DLSYM_CONST const
12507#endif
12508
cristy73bd4a52010-10-05 11:24:23 +000012509#ifdef __cplusplus
12510extern "C" {
12511#endif
12512
12513_LT_EOF
12514 # Now generate the symbol file.
12515 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12516
12517 cat <<_LT_EOF >> conftest.$ac_ext
12518
12519/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012520LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012521 const char *name;
12522 void *address;
12523}
12524lt__PROGRAM__LTX_preloaded_symbols[] =
12525{
12526 { "@PROGRAM@", (void *) 0 },
12527_LT_EOF
12528 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12529 cat <<\_LT_EOF >> conftest.$ac_ext
12530 {0, (void *) 0}
12531};
12532
12533/* This works around a problem in FreeBSD linker */
12534#ifdef FREEBSD_WORKAROUND
12535static const void *lt_preloaded_setup() {
12536 return lt__PROGRAM__LTX_preloaded_symbols;
12537}
12538#endif
12539
12540#ifdef __cplusplus
12541}
12542#endif
12543_LT_EOF
12544 # Now try linking the two files.
12545 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012546 lt_globsym_save_LIBS=$LIBS
12547 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012548 LIBS="conftstm.$ac_objext"
12549 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12551 (eval $ac_link) 2>&5
12552 ac_status=$?
12553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12554 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12555 pipe_works=yes
12556 fi
cristyda16f162011-02-19 23:52:17 +000012557 LIBS=$lt_globsym_save_LIBS
12558 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012559 else
12560 echo "cannot find nm_test_func in $nlist" >&5
12561 fi
12562 else
12563 echo "cannot find nm_test_var in $nlist" >&5
12564 fi
12565 else
12566 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12567 fi
12568 else
12569 echo "$progname: failed program was:" >&5
12570 cat conftest.$ac_ext >&5
12571 fi
12572 rm -rf conftest* conftst*
12573
12574 # Do not use the global_symbol_pipe unless it works.
12575 if test "$pipe_works" = yes; then
12576 break
12577 else
12578 lt_cv_sys_global_symbol_pipe=
12579 fi
12580done
12581
12582fi
12583
12584if test -z "$lt_cv_sys_global_symbol_pipe"; then
12585 lt_cv_sys_global_symbol_to_cdecl=
12586fi
12587if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12589$as_echo "failed" >&6; }
12590else
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12592$as_echo "ok" >&6; }
12593fi
12594
cristyda16f162011-02-19 23:52:17 +000012595# Response file support.
12596if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12597 nm_file_list_spec='@'
12598elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12599 nm_file_list_spec='@'
12600fi
cristy73bd4a52010-10-05 11:24:23 +000012601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
cristyda16f162011-02-19 23:52:17 +000012622
12623
12624
12625
12626
12627
12628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12629$as_echo_n "checking for sysroot... " >&6; }
12630
12631# Check whether --with-sysroot was given.
12632if test "${with_sysroot+set}" = set; then :
12633 withval=$with_sysroot;
12634else
12635 with_sysroot=no
12636fi
12637
12638
12639lt_sysroot=
12640case ${with_sysroot} in #(
12641 yes)
12642 if test "$GCC" = yes; then
12643 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12644 fi
12645 ;; #(
12646 /*)
12647 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12648 ;; #(
12649 no|'')
12650 ;; #(
12651 *)
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12653$as_echo "${with_sysroot}" >&6; }
12654 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12655 ;;
12656esac
12657
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12659$as_echo "${lt_sysroot:-no}" >&6; }
12660
12661
12662
12663
12664
cristy73bd4a52010-10-05 11:24:23 +000012665# Check whether --enable-libtool-lock was given.
12666if test "${enable_libtool_lock+set}" = set; then :
12667 enableval=$enable_libtool_lock;
12668fi
12669
12670test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12671
12672# Some flags need to be propagated to the compiler or linker for good
12673# libtool support.
12674case $host in
12675ia64-*-hpux*)
12676 # Find out which ABI we are using.
12677 echo 'int i;' > conftest.$ac_ext
12678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12679 (eval $ac_compile) 2>&5
12680 ac_status=$?
12681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12682 test $ac_status = 0; }; then
12683 case `/usr/bin/file conftest.$ac_objext` in
12684 *ELF-32*)
12685 HPUX_IA64_MODE="32"
12686 ;;
12687 *ELF-64*)
12688 HPUX_IA64_MODE="64"
12689 ;;
12690 esac
12691 fi
12692 rm -rf conftest*
12693 ;;
12694*-*-irix6*)
12695 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012696 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12698 (eval $ac_compile) 2>&5
12699 ac_status=$?
12700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12701 test $ac_status = 0; }; then
12702 if test "$lt_cv_prog_gnu_ld" = yes; then
12703 case `/usr/bin/file conftest.$ac_objext` in
12704 *32-bit*)
12705 LD="${LD-ld} -melf32bsmip"
12706 ;;
12707 *N32*)
12708 LD="${LD-ld} -melf32bmipn32"
12709 ;;
12710 *64-bit*)
12711 LD="${LD-ld} -melf64bmip"
12712 ;;
12713 esac
12714 else
12715 case `/usr/bin/file conftest.$ac_objext` in
12716 *32-bit*)
12717 LD="${LD-ld} -32"
12718 ;;
12719 *N32*)
12720 LD="${LD-ld} -n32"
12721 ;;
12722 *64-bit*)
12723 LD="${LD-ld} -64"
12724 ;;
12725 esac
12726 fi
12727 fi
12728 rm -rf conftest*
12729 ;;
12730
cristyd95b7a52013-10-23 13:12:53 +000012731x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000012732s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12733 # Find out which ABI we are using.
12734 echo 'int i;' > conftest.$ac_ext
12735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12736 (eval $ac_compile) 2>&5
12737 ac_status=$?
12738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12739 test $ac_status = 0; }; then
12740 case `/usr/bin/file conftest.o` in
12741 *32-bit*)
12742 case $host in
12743 x86_64-*kfreebsd*-gnu)
12744 LD="${LD-ld} -m elf_i386_fbsd"
12745 ;;
12746 x86_64-*linux*)
12747 LD="${LD-ld} -m elf_i386"
12748 ;;
cristya5bda012013-11-03 18:05:38 +000012749 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000012750 LD="${LD-ld} -m elf32lppclinux"
12751 ;;
cristya5bda012013-11-03 18:05:38 +000012752 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012753 LD="${LD-ld} -m elf32ppclinux"
12754 ;;
12755 s390x-*linux*)
12756 LD="${LD-ld} -m elf_s390"
12757 ;;
12758 sparc64-*linux*)
12759 LD="${LD-ld} -m elf32_sparc"
12760 ;;
12761 esac
12762 ;;
12763 *64-bit*)
12764 case $host in
12765 x86_64-*kfreebsd*-gnu)
12766 LD="${LD-ld} -m elf_x86_64_fbsd"
12767 ;;
12768 x86_64-*linux*)
12769 LD="${LD-ld} -m elf_x86_64"
12770 ;;
cristyd95b7a52013-10-23 13:12:53 +000012771 powerpcle-*linux*)
12772 LD="${LD-ld} -m elf64lppc"
12773 ;;
12774 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012775 LD="${LD-ld} -m elf64ppc"
12776 ;;
12777 s390*-*linux*|s390*-*tpf*)
12778 LD="${LD-ld} -m elf64_s390"
12779 ;;
12780 sparc*-*linux*)
12781 LD="${LD-ld} -m elf64_sparc"
12782 ;;
12783 esac
12784 ;;
12785 esac
12786 fi
12787 rm -rf conftest*
12788 ;;
12789
12790*-*-sco3.2v5*)
12791 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12792 SAVE_CFLAGS="$CFLAGS"
12793 CFLAGS="$CFLAGS -belf"
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12795$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012796if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012797 $as_echo_n "(cached) " >&6
12798else
12799 ac_ext=c
12800ac_cpp='$CPP $CPPFLAGS'
12801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12803ac_compiler_gnu=$ac_cv_c_compiler_gnu
12804
12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806/* end confdefs.h. */
12807
12808int
12809main ()
12810{
12811
12812 ;
12813 return 0;
12814}
12815_ACEOF
12816if ac_fn_c_try_link "$LINENO"; then :
12817 lt_cv_cc_needs_belf=yes
12818else
12819 lt_cv_cc_needs_belf=no
12820fi
12821rm -f core conftest.err conftest.$ac_objext \
12822 conftest$ac_exeext conftest.$ac_ext
12823 ac_ext=c
12824ac_cpp='$CPP $CPPFLAGS'
12825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12827ac_compiler_gnu=$ac_cv_c_compiler_gnu
12828
12829fi
12830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12831$as_echo "$lt_cv_cc_needs_belf" >&6; }
12832 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12833 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12834 CFLAGS="$SAVE_CFLAGS"
12835 fi
12836 ;;
cristy99bd5232011-12-07 14:38:20 +000012837*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012838 # Find out which ABI we are using.
12839 echo 'int i;' > conftest.$ac_ext
12840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12841 (eval $ac_compile) 2>&5
12842 ac_status=$?
12843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12844 test $ac_status = 0; }; then
12845 case `/usr/bin/file conftest.o` in
12846 *64-bit*)
12847 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012848 yes*)
12849 case $host in
12850 i?86-*-solaris*)
12851 LD="${LD-ld} -m elf_x86_64"
12852 ;;
12853 sparc*-*-solaris*)
12854 LD="${LD-ld} -m elf64_sparc"
12855 ;;
12856 esac
12857 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12858 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12859 LD="${LD-ld}_sol2"
12860 fi
12861 ;;
cristy73bd4a52010-10-05 11:24:23 +000012862 *)
12863 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12864 LD="${LD-ld} -64"
12865 fi
12866 ;;
12867 esac
12868 ;;
12869 esac
12870 fi
12871 rm -rf conftest*
12872 ;;
12873esac
12874
12875need_locks="$enable_libtool_lock"
12876
cristyda16f162011-02-19 23:52:17 +000012877if test -n "$ac_tool_prefix"; then
12878 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12879set dummy ${ac_tool_prefix}mt; ac_word=$2
12880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12881$as_echo_n "checking for $ac_word... " >&6; }
12882if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12883 $as_echo_n "(cached) " >&6
12884else
12885 if test -n "$MANIFEST_TOOL"; then
12886 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12887else
12888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12889for as_dir in $PATH
12890do
12891 IFS=$as_save_IFS
12892 test -z "$as_dir" && as_dir=.
12893 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012895 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12897 break 2
12898 fi
12899done
12900 done
12901IFS=$as_save_IFS
12902
12903fi
12904fi
12905MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12906if test -n "$MANIFEST_TOOL"; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12908$as_echo "$MANIFEST_TOOL" >&6; }
12909else
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911$as_echo "no" >&6; }
12912fi
12913
12914
12915fi
12916if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12917 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12918 # Extract the first word of "mt", so it can be a program name with args.
12919set dummy mt; ac_word=$2
12920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921$as_echo_n "checking for $ac_word... " >&6; }
12922if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12923 $as_echo_n "(cached) " >&6
12924else
12925 if test -n "$ac_ct_MANIFEST_TOOL"; then
12926 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12927else
12928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929for as_dir in $PATH
12930do
12931 IFS=$as_save_IFS
12932 test -z "$as_dir" && as_dir=.
12933 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012935 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12937 break 2
12938 fi
12939done
12940 done
12941IFS=$as_save_IFS
12942
12943fi
12944fi
12945ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12946if test -n "$ac_ct_MANIFEST_TOOL"; then
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12948$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12949else
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951$as_echo "no" >&6; }
12952fi
12953
12954 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12955 MANIFEST_TOOL=":"
12956 else
12957 case $cross_compiling:$ac_tool_warned in
12958yes:)
12959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12961ac_tool_warned=yes ;;
12962esac
12963 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12964 fi
12965else
12966 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12967fi
12968
12969test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12971$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12972if ${lt_cv_path_mainfest_tool+:} false; then :
12973 $as_echo_n "(cached) " >&6
12974else
12975 lt_cv_path_mainfest_tool=no
12976 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12977 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12978 cat conftest.err >&5
12979 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12980 lt_cv_path_mainfest_tool=yes
12981 fi
12982 rm -f conftest*
12983fi
12984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12985$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12986if test "x$lt_cv_path_mainfest_tool" != xyes; then
12987 MANIFEST_TOOL=:
12988fi
12989
12990
12991
12992
12993
cristy73bd4a52010-10-05 11:24:23 +000012994
12995 case $host_os in
12996 rhapsody* | darwin*)
12997 if test -n "$ac_tool_prefix"; then
12998 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12999set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13001$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013002if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013003 $as_echo_n "(cached) " >&6
13004else
13005 if test -n "$DSYMUTIL"; then
13006 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13007else
13008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009for as_dir in $PATH
13010do
13011 IFS=$as_save_IFS
13012 test -z "$as_dir" && as_dir=.
13013 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013015 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13017 break 2
13018 fi
13019done
13020 done
13021IFS=$as_save_IFS
13022
13023fi
13024fi
13025DSYMUTIL=$ac_cv_prog_DSYMUTIL
13026if test -n "$DSYMUTIL"; then
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13028$as_echo "$DSYMUTIL" >&6; }
13029else
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031$as_echo "no" >&6; }
13032fi
13033
13034
13035fi
13036if test -z "$ac_cv_prog_DSYMUTIL"; then
13037 ac_ct_DSYMUTIL=$DSYMUTIL
13038 # Extract the first word of "dsymutil", so it can be a program name with args.
13039set dummy dsymutil; ac_word=$2
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13041$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013042if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013043 $as_echo_n "(cached) " >&6
13044else
13045 if test -n "$ac_ct_DSYMUTIL"; then
13046 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13047else
13048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049for as_dir in $PATH
13050do
13051 IFS=$as_save_IFS
13052 test -z "$as_dir" && as_dir=.
13053 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013055 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13057 break 2
13058 fi
13059done
13060 done
13061IFS=$as_save_IFS
13062
13063fi
13064fi
13065ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13066if test -n "$ac_ct_DSYMUTIL"; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13068$as_echo "$ac_ct_DSYMUTIL" >&6; }
13069else
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071$as_echo "no" >&6; }
13072fi
13073
13074 if test "x$ac_ct_DSYMUTIL" = x; then
13075 DSYMUTIL=":"
13076 else
13077 case $cross_compiling:$ac_tool_warned in
13078yes:)
13079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13081ac_tool_warned=yes ;;
13082esac
13083 DSYMUTIL=$ac_ct_DSYMUTIL
13084 fi
13085else
13086 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13087fi
13088
13089 if test -n "$ac_tool_prefix"; then
13090 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13091set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13093$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013094if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013095 $as_echo_n "(cached) " >&6
13096else
13097 if test -n "$NMEDIT"; then
13098 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13099else
13100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101for as_dir in $PATH
13102do
13103 IFS=$as_save_IFS
13104 test -z "$as_dir" && as_dir=.
13105 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013107 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13109 break 2
13110 fi
13111done
13112 done
13113IFS=$as_save_IFS
13114
13115fi
13116fi
13117NMEDIT=$ac_cv_prog_NMEDIT
13118if test -n "$NMEDIT"; then
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13120$as_echo "$NMEDIT" >&6; }
13121else
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123$as_echo "no" >&6; }
13124fi
13125
13126
13127fi
13128if test -z "$ac_cv_prog_NMEDIT"; then
13129 ac_ct_NMEDIT=$NMEDIT
13130 # Extract the first word of "nmedit", so it can be a program name with args.
13131set dummy nmedit; ac_word=$2
13132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013134if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013135 $as_echo_n "(cached) " >&6
13136else
13137 if test -n "$ac_ct_NMEDIT"; then
13138 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13139else
13140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141for as_dir in $PATH
13142do
13143 IFS=$as_save_IFS
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013147 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13149 break 2
13150 fi
13151done
13152 done
13153IFS=$as_save_IFS
13154
13155fi
13156fi
13157ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13158if test -n "$ac_ct_NMEDIT"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13160$as_echo "$ac_ct_NMEDIT" >&6; }
13161else
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163$as_echo "no" >&6; }
13164fi
13165
13166 if test "x$ac_ct_NMEDIT" = x; then
13167 NMEDIT=":"
13168 else
13169 case $cross_compiling:$ac_tool_warned in
13170yes:)
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13173ac_tool_warned=yes ;;
13174esac
13175 NMEDIT=$ac_ct_NMEDIT
13176 fi
13177else
13178 NMEDIT="$ac_cv_prog_NMEDIT"
13179fi
13180
13181 if test -n "$ac_tool_prefix"; then
13182 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13183set dummy ${ac_tool_prefix}lipo; ac_word=$2
13184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13185$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013186if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013187 $as_echo_n "(cached) " >&6
13188else
13189 if test -n "$LIPO"; then
13190 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13191else
13192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193for as_dir in $PATH
13194do
13195 IFS=$as_save_IFS
13196 test -z "$as_dir" && as_dir=.
13197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013199 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13201 break 2
13202 fi
13203done
13204 done
13205IFS=$as_save_IFS
13206
13207fi
13208fi
13209LIPO=$ac_cv_prog_LIPO
13210if test -n "$LIPO"; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13212$as_echo "$LIPO" >&6; }
13213else
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215$as_echo "no" >&6; }
13216fi
13217
13218
13219fi
13220if test -z "$ac_cv_prog_LIPO"; then
13221 ac_ct_LIPO=$LIPO
13222 # Extract the first word of "lipo", so it can be a program name with args.
13223set dummy lipo; ac_word=$2
13224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013226if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013227 $as_echo_n "(cached) " >&6
13228else
13229 if test -n "$ac_ct_LIPO"; then
13230 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13231else
13232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233for as_dir in $PATH
13234do
13235 IFS=$as_save_IFS
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013239 ac_cv_prog_ac_ct_LIPO="lipo"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 break 2
13242 fi
13243done
13244 done
13245IFS=$as_save_IFS
13246
13247fi
13248fi
13249ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13250if test -n "$ac_ct_LIPO"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13252$as_echo "$ac_ct_LIPO" >&6; }
13253else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255$as_echo "no" >&6; }
13256fi
13257
13258 if test "x$ac_ct_LIPO" = x; then
13259 LIPO=":"
13260 else
13261 case $cross_compiling:$ac_tool_warned in
13262yes:)
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13265ac_tool_warned=yes ;;
13266esac
13267 LIPO=$ac_ct_LIPO
13268 fi
13269else
13270 LIPO="$ac_cv_prog_LIPO"
13271fi
13272
13273 if test -n "$ac_tool_prefix"; then
13274 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13275set dummy ${ac_tool_prefix}otool; ac_word=$2
13276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013278if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013279 $as_echo_n "(cached) " >&6
13280else
13281 if test -n "$OTOOL"; then
13282 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13283else
13284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285for as_dir in $PATH
13286do
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013291 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13293 break 2
13294 fi
13295done
13296 done
13297IFS=$as_save_IFS
13298
13299fi
13300fi
13301OTOOL=$ac_cv_prog_OTOOL
13302if test -n "$OTOOL"; then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13304$as_echo "$OTOOL" >&6; }
13305else
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307$as_echo "no" >&6; }
13308fi
13309
13310
13311fi
13312if test -z "$ac_cv_prog_OTOOL"; then
13313 ac_ct_OTOOL=$OTOOL
13314 # Extract the first word of "otool", so it can be a program name with args.
13315set dummy otool; ac_word=$2
13316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013318if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013319 $as_echo_n "(cached) " >&6
13320else
13321 if test -n "$ac_ct_OTOOL"; then
13322 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13323else
13324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325for as_dir in $PATH
13326do
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
13329 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013331 ac_cv_prog_ac_ct_OTOOL="otool"
13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333 break 2
13334 fi
13335done
13336 done
13337IFS=$as_save_IFS
13338
13339fi
13340fi
13341ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13342if test -n "$ac_ct_OTOOL"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13344$as_echo "$ac_ct_OTOOL" >&6; }
13345else
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347$as_echo "no" >&6; }
13348fi
13349
13350 if test "x$ac_ct_OTOOL" = x; then
13351 OTOOL=":"
13352 else
13353 case $cross_compiling:$ac_tool_warned in
13354yes:)
13355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13357ac_tool_warned=yes ;;
13358esac
13359 OTOOL=$ac_ct_OTOOL
13360 fi
13361else
13362 OTOOL="$ac_cv_prog_OTOOL"
13363fi
13364
13365 if test -n "$ac_tool_prefix"; then
13366 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13367set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013371 $as_echo_n "(cached) " >&6
13372else
13373 if test -n "$OTOOL64"; then
13374 ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
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
13393OTOOL64=$ac_cv_prog_OTOOL64
13394if test -n "$OTOOL64"; then
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13396$as_echo "$OTOOL64" >&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_OTOOL64"; then
13405 ac_ct_OTOOL64=$OTOOL64
13406 # Extract the first word of "otool64", so it can be a program name with args.
13407set dummy otool64; 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_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013411 $as_echo_n "(cached) " >&6
13412else
13413 if test -n "$ac_ct_OTOOL64"; then
13414 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_OTOOL64="otool64"
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_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13434if test -n "$ac_ct_OTOOL64"; then
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13436$as_echo "$ac_ct_OTOOL64" >&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_OTOOL64" = x; then
13443 OTOOL64=":"
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 OTOOL64=$ac_ct_OTOOL64
13452 fi
13453else
13454 OTOOL64="$ac_cv_prog_OTOOL64"
13455fi
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13484$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013485if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013486 $as_echo_n "(cached) " >&6
13487else
13488 lt_cv_apple_cc_single_mod=no
13489 if test -z "${LT_MULTI_MODULE}"; then
13490 # By default we will add the -single_module flag. You can override
13491 # by either setting the environment variable LT_MULTI_MODULE
13492 # non-empty at configure time, or by adding -multi_module to the
13493 # link flags.
13494 rm -rf libconftest.dylib*
13495 echo "int foo(void){return 1;}" > conftest.c
13496 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13497-dynamiclib -Wl,-single_module conftest.c" >&5
13498 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13499 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13500 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013501 # If there is a non-empty error log, and "single_module"
13502 # appears in it, assume the flag caused a linker warning
13503 if test -s conftest.err && $GREP single_module conftest.err; then
13504 cat conftest.err >&5
13505 # Otherwise, if the output was created with a 0 exit code from
13506 # the compiler, it worked.
13507 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013508 lt_cv_apple_cc_single_mod=yes
13509 else
13510 cat conftest.err >&5
13511 fi
13512 rm -rf libconftest.dylib*
13513 rm -f conftest.*
13514 fi
13515fi
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13517$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013518
cristy73bd4a52010-10-05 11:24:23 +000013519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13520$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013521if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013522 $as_echo_n "(cached) " >&6
13523else
13524 lt_cv_ld_exported_symbols_list=no
13525 save_LDFLAGS=$LDFLAGS
13526 echo "_main" > conftest.sym
13527 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529/* end confdefs.h. */
13530
13531int
13532main ()
13533{
13534
13535 ;
13536 return 0;
13537}
13538_ACEOF
13539if ac_fn_c_try_link "$LINENO"; then :
13540 lt_cv_ld_exported_symbols_list=yes
13541else
13542 lt_cv_ld_exported_symbols_list=no
13543fi
13544rm -f core conftest.err conftest.$ac_objext \
13545 conftest$ac_exeext conftest.$ac_ext
13546 LDFLAGS="$save_LDFLAGS"
13547
13548fi
13549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13550$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013551
cristy0c60a692010-11-04 01:09:47 +000013552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13553$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013554if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013555 $as_echo_n "(cached) " >&6
13556else
13557 lt_cv_ld_force_load=no
13558 cat > conftest.c << _LT_EOF
13559int forced_loaded() { return 2;}
13560_LT_EOF
13561 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13562 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13563 echo "$AR cru libconftest.a conftest.o" >&5
13564 $AR cru libconftest.a conftest.o 2>&5
13565 echo "$RANLIB libconftest.a" >&5
13566 $RANLIB libconftest.a 2>&5
13567 cat > conftest.c << _LT_EOF
13568int main() { return 0;}
13569_LT_EOF
13570 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13571 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13572 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013573 if test -s conftest.err && $GREP force_load conftest.err; then
13574 cat conftest.err >&5
13575 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013576 lt_cv_ld_force_load=yes
13577 else
13578 cat conftest.err >&5
13579 fi
13580 rm -f conftest.err libconftest.a conftest conftest.c
13581 rm -rf conftest.dSYM
13582
13583fi
13584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13585$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013586 case $host_os in
13587 rhapsody* | darwin1.[012])
13588 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13589 darwin1.*)
13590 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13591 darwin*) # darwin 5.x on
13592 # if running on 10.5 or later, the deployment target defaults
13593 # to the OS version, if on x86, and 10.4, the deployment
13594 # target defaults to 10.4. Don't you love it?
13595 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13596 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13597 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13598 10.[012]*)
13599 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13600 10.*)
13601 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13602 esac
13603 ;;
13604 esac
13605 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13606 _lt_dar_single_mod='$single_module'
13607 fi
13608 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13609 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13610 else
13611 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13612 fi
cristy0c60a692010-11-04 01:09:47 +000013613 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013614 _lt_dsymutil='~$DSYMUTIL $lib || :'
13615 else
13616 _lt_dsymutil=
13617 fi
13618 ;;
13619 esac
13620
13621for ac_header in dlfcn.h
13622do :
13623 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13624"
cristyda16f162011-02-19 23:52:17 +000013625if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013626 cat >>confdefs.h <<_ACEOF
13627#define HAVE_DLFCN_H 1
13628_ACEOF
13629
13630fi
13631
13632done
13633
13634
13635
cristy73bd4a52010-10-05 11:24:23 +000013636
cristyda16f162011-02-19 23:52:17 +000013637func_stripname_cnf ()
13638{
13639 case ${2} in
13640 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13641 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13642 esac
13643} # func_stripname_cnf
13644
13645
13646
cristy73bd4a52010-10-05 11:24:23 +000013647
13648
13649# Set options
13650enable_win32_dll=yes
13651
13652case $host in
cristy0c60a692010-11-04 01:09:47 +000013653*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013654 if test -n "$ac_tool_prefix"; then
13655 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13656set dummy ${ac_tool_prefix}as; ac_word=$2
13657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13658$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013659if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013660 $as_echo_n "(cached) " >&6
13661else
13662 if test -n "$AS"; then
13663 ac_cv_prog_AS="$AS" # Let the user override the test.
13664else
13665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13666for as_dir in $PATH
13667do
13668 IFS=$as_save_IFS
13669 test -z "$as_dir" && as_dir=.
13670 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013672 ac_cv_prog_AS="${ac_tool_prefix}as"
13673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13674 break 2
13675 fi
13676done
13677 done
13678IFS=$as_save_IFS
13679
13680fi
13681fi
13682AS=$ac_cv_prog_AS
13683if test -n "$AS"; then
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13685$as_echo "$AS" >&6; }
13686else
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13688$as_echo "no" >&6; }
13689fi
13690
13691
13692fi
13693if test -z "$ac_cv_prog_AS"; then
13694 ac_ct_AS=$AS
13695 # Extract the first word of "as", so it can be a program name with args.
13696set dummy as; ac_word=$2
13697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13698$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013699if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013700 $as_echo_n "(cached) " >&6
13701else
13702 if test -n "$ac_ct_AS"; then
13703 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13704else
13705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706for as_dir in $PATH
13707do
13708 IFS=$as_save_IFS
13709 test -z "$as_dir" && as_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013712 ac_cv_prog_ac_ct_AS="as"
13713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 break 2
13715 fi
13716done
13717 done
13718IFS=$as_save_IFS
13719
13720fi
13721fi
13722ac_ct_AS=$ac_cv_prog_ac_ct_AS
13723if test -n "$ac_ct_AS"; then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13725$as_echo "$ac_ct_AS" >&6; }
13726else
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728$as_echo "no" >&6; }
13729fi
13730
13731 if test "x$ac_ct_AS" = x; then
13732 AS="false"
13733 else
13734 case $cross_compiling:$ac_tool_warned in
13735yes:)
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13738ac_tool_warned=yes ;;
13739esac
13740 AS=$ac_ct_AS
13741 fi
13742else
13743 AS="$ac_cv_prog_AS"
13744fi
13745
13746 if test -n "$ac_tool_prefix"; then
13747 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13748set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13750$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013751if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013752 $as_echo_n "(cached) " >&6
13753else
13754 if test -n "$DLLTOOL"; then
13755 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13756else
13757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13758for as_dir in $PATH
13759do
13760 IFS=$as_save_IFS
13761 test -z "$as_dir" && as_dir=.
13762 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013764 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13766 break 2
13767 fi
13768done
13769 done
13770IFS=$as_save_IFS
13771
13772fi
13773fi
13774DLLTOOL=$ac_cv_prog_DLLTOOL
13775if test -n "$DLLTOOL"; then
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13777$as_echo "$DLLTOOL" >&6; }
13778else
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13780$as_echo "no" >&6; }
13781fi
13782
13783
13784fi
13785if test -z "$ac_cv_prog_DLLTOOL"; then
13786 ac_ct_DLLTOOL=$DLLTOOL
13787 # Extract the first word of "dlltool", so it can be a program name with args.
13788set dummy dlltool; ac_word=$2
13789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13790$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013791if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013792 $as_echo_n "(cached) " >&6
13793else
13794 if test -n "$ac_ct_DLLTOOL"; then
13795 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13796else
13797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798for as_dir in $PATH
13799do
13800 IFS=$as_save_IFS
13801 test -z "$as_dir" && as_dir=.
13802 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013804 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13806 break 2
13807 fi
13808done
13809 done
13810IFS=$as_save_IFS
13811
13812fi
13813fi
13814ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13815if test -n "$ac_ct_DLLTOOL"; then
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13817$as_echo "$ac_ct_DLLTOOL" >&6; }
13818else
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13820$as_echo "no" >&6; }
13821fi
13822
13823 if test "x$ac_ct_DLLTOOL" = x; then
13824 DLLTOOL="false"
13825 else
13826 case $cross_compiling:$ac_tool_warned in
13827yes:)
13828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13830ac_tool_warned=yes ;;
13831esac
13832 DLLTOOL=$ac_ct_DLLTOOL
13833 fi
13834else
13835 DLLTOOL="$ac_cv_prog_DLLTOOL"
13836fi
13837
13838 if test -n "$ac_tool_prefix"; then
13839 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13840set dummy ${ac_tool_prefix}objdump; ac_word=$2
13841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13842$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013843if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013844 $as_echo_n "(cached) " >&6
13845else
13846 if test -n "$OBJDUMP"; then
13847 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13848else
13849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850for as_dir in $PATH
13851do
13852 IFS=$as_save_IFS
13853 test -z "$as_dir" && as_dir=.
13854 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013856 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13858 break 2
13859 fi
13860done
13861 done
13862IFS=$as_save_IFS
13863
13864fi
13865fi
13866OBJDUMP=$ac_cv_prog_OBJDUMP
13867if test -n "$OBJDUMP"; then
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13869$as_echo "$OBJDUMP" >&6; }
13870else
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13872$as_echo "no" >&6; }
13873fi
13874
13875
13876fi
13877if test -z "$ac_cv_prog_OBJDUMP"; then
13878 ac_ct_OBJDUMP=$OBJDUMP
13879 # Extract the first word of "objdump", so it can be a program name with args.
13880set dummy objdump; ac_word=$2
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13882$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013883if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013884 $as_echo_n "(cached) " >&6
13885else
13886 if test -n "$ac_ct_OBJDUMP"; then
13887 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13888else
13889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13890for as_dir in $PATH
13891do
13892 IFS=$as_save_IFS
13893 test -z "$as_dir" && as_dir=.
13894 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013896 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13898 break 2
13899 fi
13900done
13901 done
13902IFS=$as_save_IFS
13903
13904fi
13905fi
13906ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13907if test -n "$ac_ct_OBJDUMP"; then
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13909$as_echo "$ac_ct_OBJDUMP" >&6; }
13910else
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13912$as_echo "no" >&6; }
13913fi
13914
13915 if test "x$ac_ct_OBJDUMP" = x; then
13916 OBJDUMP="false"
13917 else
13918 case $cross_compiling:$ac_tool_warned in
13919yes:)
13920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13922ac_tool_warned=yes ;;
13923esac
13924 OBJDUMP=$ac_ct_OBJDUMP
13925 fi
13926else
13927 OBJDUMP="$ac_cv_prog_OBJDUMP"
13928fi
13929
13930 ;;
13931esac
13932
13933test -z "$AS" && AS=as
13934
13935
13936
13937
13938
13939test -z "$DLLTOOL" && DLLTOOL=dlltool
13940
13941
13942
13943
13944
13945test -z "$OBJDUMP" && OBJDUMP=objdump
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955 # Check whether --enable-shared was given.
13956if test "${enable_shared+set}" = set; then :
13957 enableval=$enable_shared; p=${PACKAGE-default}
13958 case $enableval in
13959 yes) enable_shared=yes ;;
13960 no) enable_shared=no ;;
13961 *)
13962 enable_shared=no
13963 # Look at the argument we got. We use all the common list separators.
13964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13965 for pkg in $enableval; do
13966 IFS="$lt_save_ifs"
13967 if test "X$pkg" = "X$p"; then
13968 enable_shared=yes
13969 fi
13970 done
13971 IFS="$lt_save_ifs"
13972 ;;
13973 esac
13974else
13975 enable_shared=yes
13976fi
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986 # Check whether --enable-static was given.
13987if test "${enable_static+set}" = set; then :
13988 enableval=$enable_static; p=${PACKAGE-default}
13989 case $enableval in
13990 yes) enable_static=yes ;;
13991 no) enable_static=no ;;
13992 *)
13993 enable_static=no
13994 # Look at the argument we got. We use all the common list separators.
13995 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13996 for pkg in $enableval; do
13997 IFS="$lt_save_ifs"
13998 if test "X$pkg" = "X$p"; then
13999 enable_static=yes
14000 fi
14001 done
14002 IFS="$lt_save_ifs"
14003 ;;
14004 esac
14005else
14006 enable_static=yes
14007fi
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018# Check whether --with-pic was given.
14019if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014020 withval=$with_pic; lt_p=${PACKAGE-default}
14021 case $withval in
14022 yes|no) pic_mode=$withval ;;
14023 *)
14024 pic_mode=default
14025 # Look at the argument we got. We use all the common list separators.
14026 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14027 for lt_pkg in $withval; do
14028 IFS="$lt_save_ifs"
14029 if test "X$lt_pkg" = "X$lt_p"; then
14030 pic_mode=yes
14031 fi
14032 done
14033 IFS="$lt_save_ifs"
14034 ;;
14035 esac
cristy73bd4a52010-10-05 11:24:23 +000014036else
14037 pic_mode=default
14038fi
14039
14040
14041test -z "$pic_mode" && pic_mode=default
14042
14043
14044
14045
14046
14047
14048
14049 # Check whether --enable-fast-install was given.
14050if test "${enable_fast_install+set}" = set; then :
14051 enableval=$enable_fast_install; p=${PACKAGE-default}
14052 case $enableval in
14053 yes) enable_fast_install=yes ;;
14054 no) enable_fast_install=no ;;
14055 *)
14056 enable_fast_install=no
14057 # Look at the argument we got. We use all the common list separators.
14058 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14059 for pkg in $enableval; do
14060 IFS="$lt_save_ifs"
14061 if test "X$pkg" = "X$p"; then
14062 enable_fast_install=yes
14063 fi
14064 done
14065 IFS="$lt_save_ifs"
14066 ;;
14067 esac
14068else
14069 enable_fast_install=yes
14070fi
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082# This can be used to rebuild libtool when needed
14083LIBTOOL_DEPS="$ltmain"
14084
14085# Always use our own libtool.
14086LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
cristy0c60a692010-11-04 01:09:47 +000014112
cristy99bd5232011-12-07 14:38:20 +000014113
14114
14115
14116
cristy73bd4a52010-10-05 11:24:23 +000014117test -z "$LN_S" && LN_S="ln -s"
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132if test -n "${ZSH_VERSION+set}" ; then
14133 setopt NO_GLOB_SUBST
14134fi
14135
14136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14137$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014138if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014139 $as_echo_n "(cached) " >&6
14140else
14141 rm -f .libs 2>/dev/null
14142mkdir .libs 2>/dev/null
14143if test -d .libs; then
14144 lt_cv_objdir=.libs
14145else
14146 # MS-DOS does not allow filenames that begin with a dot.
14147 lt_cv_objdir=_libs
14148fi
14149rmdir .libs 2>/dev/null
14150fi
14151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14152$as_echo "$lt_cv_objdir" >&6; }
14153objdir=$lt_cv_objdir
14154
14155
14156
14157
14158
14159cat >>confdefs.h <<_ACEOF
14160#define LT_OBJDIR "$lt_cv_objdir/"
14161_ACEOF
14162
14163
14164
14165
cristy73bd4a52010-10-05 11:24:23 +000014166case $host_os in
14167aix3*)
14168 # AIX sometimes has problems with the GCC collect2 program. For some
14169 # reason, if we set the COLLECT_NAMES environment variable, the problems
14170 # vanish in a puff of smoke.
14171 if test "X${COLLECT_NAMES+set}" != Xset; then
14172 COLLECT_NAMES=
14173 export COLLECT_NAMES
14174 fi
14175 ;;
14176esac
14177
cristy73bd4a52010-10-05 11:24:23 +000014178# Global variables:
14179ofile=libtool
14180can_build_shared=yes
14181
14182# All known linkers require a `.a' archive for static linking (except MSVC,
14183# which needs '.lib').
14184libext=a
14185
14186with_gnu_ld="$lt_cv_prog_gnu_ld"
14187
14188old_CC="$CC"
14189old_CFLAGS="$CFLAGS"
14190
14191# Set sane defaults for various variables
14192test -z "$CC" && CC=cc
14193test -z "$LTCC" && LTCC=$CC
14194test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14195test -z "$LD" && LD=ld
14196test -z "$ac_objext" && ac_objext=o
14197
14198for cc_temp in $compiler""; do
14199 case $cc_temp in
14200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14202 \-*) ;;
14203 *) break;;
14204 esac
14205done
cristy0c60a692010-11-04 01:09:47 +000014206cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014207
14208
14209# Only perform the check for file, if the check method requires it
14210test -z "$MAGIC_CMD" && MAGIC_CMD=file
14211case $deplibs_check_method in
14212file_magic*)
14213 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14215$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014216if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014217 $as_echo_n "(cached) " >&6
14218else
14219 case $MAGIC_CMD in
14220[\\/*] | ?:[\\/]*)
14221 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14222 ;;
14223*)
14224 lt_save_MAGIC_CMD="$MAGIC_CMD"
14225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14226 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14227 for ac_dir in $ac_dummy; do
14228 IFS="$lt_save_ifs"
14229 test -z "$ac_dir" && ac_dir=.
14230 if test -f $ac_dir/${ac_tool_prefix}file; then
14231 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14232 if test -n "$file_magic_test_file"; then
14233 case $deplibs_check_method in
14234 "file_magic "*)
14235 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14237 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14238 $EGREP "$file_magic_regex" > /dev/null; then
14239 :
14240 else
14241 cat <<_LT_EOF 1>&2
14242
14243*** Warning: the command libtool uses to detect shared libraries,
14244*** $file_magic_cmd, produces output that libtool cannot recognize.
14245*** The result is that libtool may fail to recognize shared libraries
14246*** as such. This will affect the creation of libtool libraries that
14247*** depend on shared libraries, but programs linked with such libtool
14248*** libraries will work regardless of this problem. Nevertheless, you
14249*** may want to report the problem to your system manager and/or to
14250*** bug-libtool@gnu.org
14251
14252_LT_EOF
14253 fi ;;
14254 esac
14255 fi
14256 break
14257 fi
14258 done
14259 IFS="$lt_save_ifs"
14260 MAGIC_CMD="$lt_save_MAGIC_CMD"
14261 ;;
14262esac
14263fi
14264
14265MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14266if test -n "$MAGIC_CMD"; then
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14268$as_echo "$MAGIC_CMD" >&6; }
14269else
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14271$as_echo "no" >&6; }
14272fi
14273
14274
14275
14276
14277
14278if test -z "$lt_cv_path_MAGIC_CMD"; then
14279 if test -n "$ac_tool_prefix"; then
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14281$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014282if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014283 $as_echo_n "(cached) " >&6
14284else
14285 case $MAGIC_CMD in
14286[\\/*] | ?:[\\/]*)
14287 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14288 ;;
14289*)
14290 lt_save_MAGIC_CMD="$MAGIC_CMD"
14291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14292 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14293 for ac_dir in $ac_dummy; do
14294 IFS="$lt_save_ifs"
14295 test -z "$ac_dir" && ac_dir=.
14296 if test -f $ac_dir/file; then
14297 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14298 if test -n "$file_magic_test_file"; then
14299 case $deplibs_check_method in
14300 "file_magic "*)
14301 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14303 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14304 $EGREP "$file_magic_regex" > /dev/null; then
14305 :
14306 else
14307 cat <<_LT_EOF 1>&2
14308
14309*** Warning: the command libtool uses to detect shared libraries,
14310*** $file_magic_cmd, produces output that libtool cannot recognize.
14311*** The result is that libtool may fail to recognize shared libraries
14312*** as such. This will affect the creation of libtool libraries that
14313*** depend on shared libraries, but programs linked with such libtool
14314*** libraries will work regardless of this problem. Nevertheless, you
14315*** may want to report the problem to your system manager and/or to
14316*** bug-libtool@gnu.org
14317
14318_LT_EOF
14319 fi ;;
14320 esac
14321 fi
14322 break
14323 fi
14324 done
14325 IFS="$lt_save_ifs"
14326 MAGIC_CMD="$lt_save_MAGIC_CMD"
14327 ;;
14328esac
14329fi
14330
14331MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14332if test -n "$MAGIC_CMD"; then
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14334$as_echo "$MAGIC_CMD" >&6; }
14335else
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14337$as_echo "no" >&6; }
14338fi
14339
14340
14341 else
14342 MAGIC_CMD=:
14343 fi
14344fi
14345
14346 fi
14347 ;;
14348esac
14349
14350# Use C for the default configuration in the libtool script
14351
14352lt_save_CC="$CC"
14353ac_ext=c
14354ac_cpp='$CPP $CPPFLAGS'
14355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14357ac_compiler_gnu=$ac_cv_c_compiler_gnu
14358
14359
14360# Source file extension for C test sources.
14361ac_ext=c
14362
14363# Object file extension for compiled C test sources.
14364objext=o
14365objext=$objext
14366
14367# Code to be used in simple compile tests
14368lt_simple_compile_test_code="int some_variable = 0;"
14369
14370# Code to be used in simple link tests
14371lt_simple_link_test_code='int main(){return(0);}'
14372
14373
14374
14375
14376
14377
14378
14379# If no C compiler was specified, use CC.
14380LTCC=${LTCC-"$CC"}
14381
14382# If no C compiler flags were specified, use CFLAGS.
14383LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14384
14385# Allow CC to be a program name with arguments.
14386compiler=$CC
14387
14388# Save the default compiler, since it gets overwritten when the other
14389# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14390compiler_DEFAULT=$CC
14391
14392# save warnings/boilerplate of simple test code
14393ac_outfile=conftest.$ac_objext
14394echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14395eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14396_lt_compiler_boilerplate=`cat conftest.err`
14397$RM conftest*
14398
14399ac_outfile=conftest.$ac_objext
14400echo "$lt_simple_link_test_code" >conftest.$ac_ext
14401eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14402_lt_linker_boilerplate=`cat conftest.err`
14403$RM -r conftest*
14404
14405
14406## CAVEAT EMPTOR:
14407## There is no encapsulation within the following macros, do not change
14408## the running order or otherwise move them around unless you know exactly
14409## what you are doing...
14410if test -n "$compiler"; then
14411
14412lt_prog_compiler_no_builtin_flag=
14413
14414if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014415 case $cc_basename in
14416 nvcc*)
14417 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14418 *)
14419 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14420 esac
cristy73bd4a52010-10-05 11:24:23 +000014421
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14423$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014424if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014425 $as_echo_n "(cached) " >&6
14426else
14427 lt_cv_prog_compiler_rtti_exceptions=no
14428 ac_outfile=conftest.$ac_objext
14429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14430 lt_compiler_flag="-fno-rtti -fno-exceptions"
14431 # Insert the option either (1) after the last *FLAGS variable, or
14432 # (2) before a word containing "conftest.", or (3) at the end.
14433 # Note that $ac_compile itself does not contain backslashes and begins
14434 # with a dollar sign (not a hyphen), so the echo should work correctly.
14435 # The option is referenced via a variable to avoid confusing sed.
14436 lt_compile=`echo "$ac_compile" | $SED \
14437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14439 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014440 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014441 (eval "$lt_compile" 2>conftest.err)
14442 ac_status=$?
14443 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014445 if (exit $ac_status) && test -s "$ac_outfile"; then
14446 # The compiler can only warn and ignore the option if not recognized
14447 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014448 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14450 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14451 lt_cv_prog_compiler_rtti_exceptions=yes
14452 fi
14453 fi
14454 $RM conftest*
14455
14456fi
14457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14458$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14459
14460if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14461 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14462else
14463 :
14464fi
14465
14466fi
14467
14468
14469
14470
14471
14472
14473 lt_prog_compiler_wl=
14474lt_prog_compiler_pic=
14475lt_prog_compiler_static=
14476
cristy73bd4a52010-10-05 11:24:23 +000014477
14478 if test "$GCC" = yes; then
14479 lt_prog_compiler_wl='-Wl,'
14480 lt_prog_compiler_static='-static'
14481
14482 case $host_os in
14483 aix*)
14484 # All AIX code is PIC.
14485 if test "$host_cpu" = ia64; then
14486 # AIX 5 now supports IA64 processor
14487 lt_prog_compiler_static='-Bstatic'
14488 fi
14489 ;;
14490
14491 amigaos*)
14492 case $host_cpu in
14493 powerpc)
14494 # see comment about AmigaOS4 .so support
14495 lt_prog_compiler_pic='-fPIC'
14496 ;;
14497 m68k)
14498 # FIXME: we need at least 68020 code to build shared libraries, but
14499 # adding the `-m68020' flag to GCC prevents building anything better,
14500 # like `-m68040'.
14501 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14502 ;;
14503 esac
14504 ;;
14505
14506 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14507 # PIC is the default for these OSes.
14508 ;;
14509
14510 mingw* | cygwin* | pw32* | os2* | cegcc*)
14511 # This hack is so that the source file can tell whether it is being
14512 # built for inclusion in a dll (and should export symbols for example).
14513 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14514 # (--disable-auto-import) libraries
14515 lt_prog_compiler_pic='-DDLL_EXPORT'
14516 ;;
14517
14518 darwin* | rhapsody*)
14519 # PIC is the default on this platform
14520 # Common symbols not allowed in MH_DYLIB files
14521 lt_prog_compiler_pic='-fno-common'
14522 ;;
14523
cristy0c60a692010-11-04 01:09:47 +000014524 haiku*)
14525 # PIC is the default for Haiku.
14526 # The "-static" flag exists, but is broken.
14527 lt_prog_compiler_static=
14528 ;;
14529
cristy73bd4a52010-10-05 11:24:23 +000014530 hpux*)
14531 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14532 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14533 # sets the default TLS model and affects inlining.
14534 case $host_cpu in
14535 hppa*64*)
14536 # +Z the default
14537 ;;
14538 *)
14539 lt_prog_compiler_pic='-fPIC'
14540 ;;
14541 esac
14542 ;;
14543
14544 interix[3-9]*)
14545 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14546 # Instead, we relocate shared libraries at runtime.
14547 ;;
14548
14549 msdosdjgpp*)
14550 # Just because we use GCC doesn't mean we suddenly get shared libraries
14551 # on systems that don't support them.
14552 lt_prog_compiler_can_build_shared=no
14553 enable_shared=no
14554 ;;
14555
14556 *nto* | *qnx*)
14557 # QNX uses GNU C++, but need to define -shared option too, otherwise
14558 # it will coredump.
14559 lt_prog_compiler_pic='-fPIC -shared'
14560 ;;
14561
14562 sysv4*MP*)
14563 if test -d /usr/nec; then
14564 lt_prog_compiler_pic=-Kconform_pic
14565 fi
14566 ;;
14567
14568 *)
14569 lt_prog_compiler_pic='-fPIC'
14570 ;;
14571 esac
cristy0c60a692010-11-04 01:09:47 +000014572
14573 case $cc_basename in
14574 nvcc*) # Cuda Compiler Driver 2.2
14575 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014576 if test -n "$lt_prog_compiler_pic"; then
14577 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14578 fi
cristy0c60a692010-11-04 01:09:47 +000014579 ;;
14580 esac
cristy73bd4a52010-10-05 11:24:23 +000014581 else
14582 # PORTME Check for flag to pass linker flags through the system compiler.
14583 case $host_os in
14584 aix*)
14585 lt_prog_compiler_wl='-Wl,'
14586 if test "$host_cpu" = ia64; then
14587 # AIX 5 now supports IA64 processor
14588 lt_prog_compiler_static='-Bstatic'
14589 else
14590 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14591 fi
14592 ;;
14593
14594 mingw* | cygwin* | pw32* | os2* | cegcc*)
14595 # This hack is so that the source file can tell whether it is being
14596 # built for inclusion in a dll (and should export symbols for example).
14597 lt_prog_compiler_pic='-DDLL_EXPORT'
14598 ;;
14599
14600 hpux9* | hpux10* | hpux11*)
14601 lt_prog_compiler_wl='-Wl,'
14602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14603 # not for PA HP-UX.
14604 case $host_cpu in
14605 hppa*64*|ia64*)
14606 # +Z the default
14607 ;;
14608 *)
14609 lt_prog_compiler_pic='+Z'
14610 ;;
14611 esac
14612 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14613 lt_prog_compiler_static='${wl}-a ${wl}archive'
14614 ;;
14615
14616 irix5* | irix6* | nonstopux*)
14617 lt_prog_compiler_wl='-Wl,'
14618 # PIC (with -KPIC) is the default.
14619 lt_prog_compiler_static='-non_shared'
14620 ;;
14621
cristy0c60a692010-11-04 01:09:47 +000014622 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014623 case $cc_basename in
14624 # old Intel for x86_64 which still supported -KPIC.
14625 ecc*)
14626 lt_prog_compiler_wl='-Wl,'
14627 lt_prog_compiler_pic='-KPIC'
14628 lt_prog_compiler_static='-static'
14629 ;;
14630 # icc used to be incompatible with GCC.
14631 # ICC 10 doesn't accept -KPIC any more.
14632 icc* | ifort*)
14633 lt_prog_compiler_wl='-Wl,'
14634 lt_prog_compiler_pic='-fPIC'
14635 lt_prog_compiler_static='-static'
14636 ;;
14637 # Lahey Fortran 8.1.
14638 lf95*)
14639 lt_prog_compiler_wl='-Wl,'
14640 lt_prog_compiler_pic='--shared'
14641 lt_prog_compiler_static='--static'
14642 ;;
cristyda16f162011-02-19 23:52:17 +000014643 nagfor*)
14644 # NAG Fortran compiler
14645 lt_prog_compiler_wl='-Wl,-Wl,,'
14646 lt_prog_compiler_pic='-PIC'
14647 lt_prog_compiler_static='-Bstatic'
14648 ;;
cristy0c60a692010-11-04 01:09:47 +000014649 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014650 # Portland Group compilers (*not* the Pentium gcc compiler,
14651 # which looks to be a dead project)
14652 lt_prog_compiler_wl='-Wl,'
14653 lt_prog_compiler_pic='-fpic'
14654 lt_prog_compiler_static='-Bstatic'
14655 ;;
14656 ccc*)
14657 lt_prog_compiler_wl='-Wl,'
14658 # All Alpha code is PIC.
14659 lt_prog_compiler_static='-non_shared'
14660 ;;
cristy0c60a692010-11-04 01:09:47 +000014661 xl* | bgxl* | bgf* | mpixl*)
14662 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014663 lt_prog_compiler_wl='-Wl,'
14664 lt_prog_compiler_pic='-qpic'
14665 lt_prog_compiler_static='-qstaticlink'
14666 ;;
14667 *)
14668 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014669 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014670 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14671 lt_prog_compiler_pic='-KPIC'
14672 lt_prog_compiler_static='-Bstatic'
14673 lt_prog_compiler_wl=''
14674 ;;
cristy99bd5232011-12-07 14:38:20 +000014675 *Sun\ F* | *Sun*Fortran*)
14676 lt_prog_compiler_pic='-KPIC'
14677 lt_prog_compiler_static='-Bstatic'
14678 lt_prog_compiler_wl='-Qoption ld '
14679 ;;
cristy73bd4a52010-10-05 11:24:23 +000014680 *Sun\ C*)
14681 # Sun C 5.9
14682 lt_prog_compiler_pic='-KPIC'
14683 lt_prog_compiler_static='-Bstatic'
14684 lt_prog_compiler_wl='-Wl,'
14685 ;;
cristy99bd5232011-12-07 14:38:20 +000014686 *Intel*\ [CF]*Compiler*)
14687 lt_prog_compiler_wl='-Wl,'
14688 lt_prog_compiler_pic='-fPIC'
14689 lt_prog_compiler_static='-static'
14690 ;;
14691 *Portland\ Group*)
14692 lt_prog_compiler_wl='-Wl,'
14693 lt_prog_compiler_pic='-fpic'
14694 lt_prog_compiler_static='-Bstatic'
14695 ;;
cristy73bd4a52010-10-05 11:24:23 +000014696 esac
14697 ;;
14698 esac
14699 ;;
14700
14701 newsos6)
14702 lt_prog_compiler_pic='-KPIC'
14703 lt_prog_compiler_static='-Bstatic'
14704 ;;
14705
14706 *nto* | *qnx*)
14707 # QNX uses GNU C++, but need to define -shared option too, otherwise
14708 # it will coredump.
14709 lt_prog_compiler_pic='-fPIC -shared'
14710 ;;
14711
14712 osf3* | osf4* | osf5*)
14713 lt_prog_compiler_wl='-Wl,'
14714 # All OSF/1 code is PIC.
14715 lt_prog_compiler_static='-non_shared'
14716 ;;
14717
14718 rdos*)
14719 lt_prog_compiler_static='-non_shared'
14720 ;;
14721
14722 solaris*)
14723 lt_prog_compiler_pic='-KPIC'
14724 lt_prog_compiler_static='-Bstatic'
14725 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014726 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014727 lt_prog_compiler_wl='-Qoption ld ';;
14728 *)
14729 lt_prog_compiler_wl='-Wl,';;
14730 esac
14731 ;;
14732
14733 sunos4*)
14734 lt_prog_compiler_wl='-Qoption ld '
14735 lt_prog_compiler_pic='-PIC'
14736 lt_prog_compiler_static='-Bstatic'
14737 ;;
14738
14739 sysv4 | sysv4.2uw2* | sysv4.3*)
14740 lt_prog_compiler_wl='-Wl,'
14741 lt_prog_compiler_pic='-KPIC'
14742 lt_prog_compiler_static='-Bstatic'
14743 ;;
14744
14745 sysv4*MP*)
14746 if test -d /usr/nec ;then
14747 lt_prog_compiler_pic='-Kconform_pic'
14748 lt_prog_compiler_static='-Bstatic'
14749 fi
14750 ;;
14751
14752 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14753 lt_prog_compiler_wl='-Wl,'
14754 lt_prog_compiler_pic='-KPIC'
14755 lt_prog_compiler_static='-Bstatic'
14756 ;;
14757
14758 unicos*)
14759 lt_prog_compiler_wl='-Wl,'
14760 lt_prog_compiler_can_build_shared=no
14761 ;;
14762
14763 uts4*)
14764 lt_prog_compiler_pic='-pic'
14765 lt_prog_compiler_static='-Bstatic'
14766 ;;
14767
14768 *)
14769 lt_prog_compiler_can_build_shared=no
14770 ;;
14771 esac
14772 fi
14773
14774case $host_os in
14775 # For platforms which do not support PIC, -DPIC is meaningless:
14776 *djgpp*)
14777 lt_prog_compiler_pic=
14778 ;;
14779 *)
14780 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14781 ;;
14782esac
cristy73bd4a52010-10-05 11:24:23 +000014783
cristyda16f162011-02-19 23:52:17 +000014784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14785$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14786if ${lt_cv_prog_compiler_pic+:} false; then :
14787 $as_echo_n "(cached) " >&6
14788else
14789 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14790fi
14791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14792$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14793lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014794
14795#
14796# Check to make sure the PIC flag actually works.
14797#
14798if test -n "$lt_prog_compiler_pic"; then
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14800$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014801if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014802 $as_echo_n "(cached) " >&6
14803else
14804 lt_cv_prog_compiler_pic_works=no
14805 ac_outfile=conftest.$ac_objext
14806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14807 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14808 # Insert the option either (1) after the last *FLAGS variable, or
14809 # (2) before a word containing "conftest.", or (3) at the end.
14810 # Note that $ac_compile itself does not contain backslashes and begins
14811 # with a dollar sign (not a hyphen), so the echo should work correctly.
14812 # The option is referenced via a variable to avoid confusing sed.
14813 lt_compile=`echo "$ac_compile" | $SED \
14814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14816 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014817 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014818 (eval "$lt_compile" 2>conftest.err)
14819 ac_status=$?
14820 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014822 if (exit $ac_status) && test -s "$ac_outfile"; then
14823 # The compiler can only warn and ignore the option if not recognized
14824 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014825 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14827 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14828 lt_cv_prog_compiler_pic_works=yes
14829 fi
14830 fi
14831 $RM conftest*
14832
14833fi
14834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14835$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14836
14837if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14838 case $lt_prog_compiler_pic in
14839 "" | " "*) ;;
14840 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14841 esac
14842else
14843 lt_prog_compiler_pic=
14844 lt_prog_compiler_can_build_shared=no
14845fi
14846
14847fi
14848
14849
14850
14851
14852
14853
cristyda16f162011-02-19 23:52:17 +000014854
14855
14856
14857
14858
cristy73bd4a52010-10-05 11:24:23 +000014859#
14860# Check to make sure the static flag actually works.
14861#
14862wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14864$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014865if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014866 $as_echo_n "(cached) " >&6
14867else
14868 lt_cv_prog_compiler_static_works=no
14869 save_LDFLAGS="$LDFLAGS"
14870 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14871 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14872 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14873 # The linker can only warn and ignore the option if not recognized
14874 # So say no if there are warnings
14875 if test -s conftest.err; then
14876 # Append any errors to the config.log.
14877 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014878 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14880 if diff conftest.exp conftest.er2 >/dev/null; then
14881 lt_cv_prog_compiler_static_works=yes
14882 fi
14883 else
14884 lt_cv_prog_compiler_static_works=yes
14885 fi
14886 fi
14887 $RM -r conftest*
14888 LDFLAGS="$save_LDFLAGS"
14889
14890fi
14891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14892$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14893
14894if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14895 :
14896else
14897 lt_prog_compiler_static=
14898fi
14899
14900
14901
14902
14903
14904
14905
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14907$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014908if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014909 $as_echo_n "(cached) " >&6
14910else
14911 lt_cv_prog_compiler_c_o=no
14912 $RM -r conftest 2>/dev/null
14913 mkdir conftest
14914 cd conftest
14915 mkdir out
14916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14917
14918 lt_compiler_flag="-o out/conftest2.$ac_objext"
14919 # Insert the option either (1) after the last *FLAGS variable, or
14920 # (2) before a word containing "conftest.", or (3) at the end.
14921 # Note that $ac_compile itself does not contain backslashes and begins
14922 # with a dollar sign (not a hyphen), so the echo should work correctly.
14923 lt_compile=`echo "$ac_compile" | $SED \
14924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14926 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014927 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014928 (eval "$lt_compile" 2>out/conftest.err)
14929 ac_status=$?
14930 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014932 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14933 then
14934 # The compiler can only warn and ignore the option if not recognized
14935 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014936 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014937 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14938 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14939 lt_cv_prog_compiler_c_o=yes
14940 fi
14941 fi
14942 chmod u+w . 2>&5
14943 $RM conftest*
14944 # SGI C++ compiler will create directory out/ii_files/ for
14945 # template instantiation
14946 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14947 $RM out/* && rmdir out
14948 cd ..
14949 $RM -r conftest
14950 $RM conftest*
14951
14952fi
14953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14954$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14955
14956
14957
14958
14959
14960
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14962$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014963if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014964 $as_echo_n "(cached) " >&6
14965else
14966 lt_cv_prog_compiler_c_o=no
14967 $RM -r conftest 2>/dev/null
14968 mkdir conftest
14969 cd conftest
14970 mkdir out
14971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14972
14973 lt_compiler_flag="-o out/conftest2.$ac_objext"
14974 # Insert the option either (1) after the last *FLAGS variable, or
14975 # (2) before a word containing "conftest.", or (3) at the end.
14976 # Note that $ac_compile itself does not contain backslashes and begins
14977 # with a dollar sign (not a hyphen), so the echo should work correctly.
14978 lt_compile=`echo "$ac_compile" | $SED \
14979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14981 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014983 (eval "$lt_compile" 2>out/conftest.err)
14984 ac_status=$?
14985 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014987 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14988 then
14989 # The compiler can only warn and ignore the option if not recognized
14990 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014991 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014992 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14993 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14994 lt_cv_prog_compiler_c_o=yes
14995 fi
14996 fi
14997 chmod u+w . 2>&5
14998 $RM conftest*
14999 # SGI C++ compiler will create directory out/ii_files/ for
15000 # template instantiation
15001 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15002 $RM out/* && rmdir out
15003 cd ..
15004 $RM -r conftest
15005 $RM conftest*
15006
15007fi
15008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15009$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15010
15011
15012
15013
15014hard_links="nottested"
15015if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15016 # do not overwrite the value of need_locks provided by the user
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15018$as_echo_n "checking if we can lock with hard links... " >&6; }
15019 hard_links=yes
15020 $RM conftest*
15021 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15022 touch conftest.a
15023 ln conftest.a conftest.b 2>&5 || hard_links=no
15024 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15026$as_echo "$hard_links" >&6; }
15027 if test "$hard_links" = no; then
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15029$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15030 need_locks=warn
15031 fi
15032else
15033 need_locks=no
15034fi
15035
15036
15037
15038
15039
15040
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15042$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15043
15044 runpath_var=
15045 allow_undefined_flag=
15046 always_export_symbols=no
15047 archive_cmds=
15048 archive_expsym_cmds=
15049 compiler_needs_object=no
15050 enable_shared_with_static_runtimes=no
15051 export_dynamic_flag_spec=
15052 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15053 hardcode_automatic=no
15054 hardcode_direct=no
15055 hardcode_direct_absolute=no
15056 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015057 hardcode_libdir_separator=
15058 hardcode_minus_L=no
15059 hardcode_shlibpath_var=unsupported
15060 inherit_rpath=no
15061 link_all_deplibs=unknown
15062 module_cmds=
15063 module_expsym_cmds=
15064 old_archive_from_new_cmds=
15065 old_archive_from_expsyms_cmds=
15066 thread_safe_flag_spec=
15067 whole_archive_flag_spec=
15068 # include_expsyms should be a list of space-separated symbols to be *always*
15069 # included in the symbol list
15070 include_expsyms=
15071 # exclude_expsyms can be an extended regexp of symbols to exclude
15072 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15073 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15074 # as well as any symbol that contains `d'.
15075 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15076 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15077 # platforms (ab)use it in PIC code, but their linkers get confused if
15078 # the symbol is explicitly referenced. Since portable code cannot
15079 # rely on this symbol name, it's probably fine to never include it in
15080 # preloaded symbol tables.
15081 # Exclude shared library initialization/finalization symbols.
15082 extract_expsyms_cmds=
15083
15084 case $host_os in
15085 cygwin* | mingw* | pw32* | cegcc*)
15086 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15087 # When not using gcc, we currently assume that we are using
15088 # Microsoft Visual C++.
15089 if test "$GCC" != yes; then
15090 with_gnu_ld=no
15091 fi
15092 ;;
15093 interix*)
15094 # we just hope/assume this is gcc and not c89 (= MSVC++)
15095 with_gnu_ld=yes
15096 ;;
15097 openbsd*)
15098 with_gnu_ld=no
15099 ;;
15100 esac
15101
15102 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015103
15104 # On some targets, GNU ld is compatible enough with the native linker
15105 # that we're better off using the native interface for both.
15106 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015107 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015108 case $host_os in
15109 aix*)
15110 # The AIX port of GNU ld has always aspired to compatibility
15111 # with the native linker. However, as the warning in the GNU ld
15112 # block says, versions before 2.19.5* couldn't really create working
15113 # shared libraries, regardless of the interface used.
15114 case `$LD -v 2>&1` in
15115 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15116 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15117 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15118 *)
15119 lt_use_gnu_ld_interface=yes
15120 ;;
15121 esac
15122 ;;
15123 *)
15124 lt_use_gnu_ld_interface=yes
15125 ;;
15126 esac
15127 fi
15128
15129 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015130 # If archive_cmds runs LD, not CC, wlarc should be empty
15131 wlarc='${wl}'
15132
15133 # Set some defaults for GNU ld with shared library support. These
15134 # are reset later if shared libraries are not supported. Putting them
15135 # here allows them to be overridden if necessary.
15136 runpath_var=LD_RUN_PATH
15137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15138 export_dynamic_flag_spec='${wl}--export-dynamic'
15139 # ancient GNU ld didn't support --whole-archive et. al.
15140 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15141 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15142 else
15143 whole_archive_flag_spec=
15144 fi
15145 supports_anon_versioning=no
15146 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015147 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015148 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15149 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15150 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15151 *\ 2.11.*) ;; # other 2.11 versions
15152 *) supports_anon_versioning=yes ;;
15153 esac
15154
15155 # See if GNU ld supports shared libraries.
15156 case $host_os in
15157 aix[3-9]*)
15158 # On AIX/PPC, the GNU linker is very broken
15159 if test "$host_cpu" != ia64; then
15160 ld_shlibs=no
15161 cat <<_LT_EOF 1>&2
15162
cristy0c60a692010-11-04 01:09:47 +000015163*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015164*** to be unable to reliably create shared libraries on AIX.
15165*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015166*** really care for shared libraries, you may want to install binutils
15167*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15168*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015169
15170_LT_EOF
15171 fi
15172 ;;
15173
15174 amigaos*)
15175 case $host_cpu in
15176 powerpc)
15177 # see comment about AmigaOS4 .so support
15178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15179 archive_expsym_cmds=''
15180 ;;
15181 m68k)
15182 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)'
15183 hardcode_libdir_flag_spec='-L$libdir'
15184 hardcode_minus_L=yes
15185 ;;
15186 esac
15187 ;;
15188
15189 beos*)
15190 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15191 allow_undefined_flag=unsupported
15192 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15193 # support --undefined. This deserves some investigation. FIXME
15194 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15195 else
15196 ld_shlibs=no
15197 fi
15198 ;;
15199
15200 cygwin* | mingw* | pw32* | cegcc*)
15201 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15202 # as there is no search path for DLLs.
15203 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015204 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015205 allow_undefined_flag=unsupported
15206 always_export_symbols=no
15207 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015208 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'
15209 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 +000015210
15211 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15213 # If the export-symbols file already is a .def file (1st line
15214 # is EXPORTS), use it as is; otherwise, prepend...
15215 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15216 cp $export_symbols $output_objdir/$soname.def;
15217 else
15218 echo EXPORTS > $output_objdir/$soname.def;
15219 cat $export_symbols >> $output_objdir/$soname.def;
15220 fi~
15221 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15222 else
15223 ld_shlibs=no
15224 fi
15225 ;;
15226
cristy0c60a692010-11-04 01:09:47 +000015227 haiku*)
15228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15229 link_all_deplibs=yes
15230 ;;
15231
cristy73bd4a52010-10-05 11:24:23 +000015232 interix[3-9]*)
15233 hardcode_direct=no
15234 hardcode_shlibpath_var=no
15235 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15236 export_dynamic_flag_spec='${wl}-E'
15237 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15238 # Instead, shared libraries are loaded at an image base (0x10000000 by
15239 # default) and relocated if they conflict, which is a slow very memory
15240 # consuming and fragmenting process. To avoid this, we pick a random,
15241 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15242 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15243 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15244 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'
15245 ;;
15246
cristy0c60a692010-11-04 01:09:47 +000015247 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015248 tmp_diet=no
15249 if test "$host_os" = linux-dietlibc; then
15250 case $cc_basename in
15251 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15252 esac
15253 fi
15254 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15255 && test "$tmp_diet" = no
15256 then
cristyda16f162011-02-19 23:52:17 +000015257 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015258 tmp_sharedflag='-shared'
15259 case $cc_basename,$host_cpu in
15260 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015261 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 +000015262 tmp_addflag=' $pic_flag'
15263 ;;
cristy0c60a692010-11-04 01:09:47 +000015264 pgf77* | pgf90* | pgf95* | pgfortran*)
15265 # Portland Group f77 and f90 compilers
15266 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 +000015267 tmp_addflag=' $pic_flag -Mnomain' ;;
15268 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15269 tmp_addflag=' -i_dynamic' ;;
15270 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15271 tmp_addflag=' -i_dynamic -nofor_main' ;;
15272 ifc* | ifort*) # Intel Fortran compiler
15273 tmp_addflag=' -nofor_main' ;;
15274 lf95*) # Lahey Fortran 8.1
15275 whole_archive_flag_spec=
15276 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015277 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015278 tmp_sharedflag='-qmkshrobj'
15279 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015280 nvcc*) # Cuda Compiler Driver 2.2
15281 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'
15282 compiler_needs_object=yes
15283 ;;
cristy73bd4a52010-10-05 11:24:23 +000015284 esac
15285 case `$CC -V 2>&1 | sed 5q` in
15286 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015287 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 +000015288 compiler_needs_object=yes
15289 tmp_sharedflag='-G' ;;
15290 *Sun\ F*) # Sun Fortran 8.3
15291 tmp_sharedflag='-G' ;;
15292 esac
15293 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15294
15295 if test "x$supports_anon_versioning" = xyes; then
15296 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15297 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15298 echo "local: *; };" >> $output_objdir/$libname.ver~
15299 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15300 fi
15301
15302 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015303 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015304 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15305 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015307 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015308 if test "x$supports_anon_versioning" = xyes; then
15309 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15310 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15311 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015312 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015313 fi
15314 ;;
15315 esac
15316 else
15317 ld_shlibs=no
15318 fi
15319 ;;
15320
15321 netbsd*)
15322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15323 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15324 wlarc=
15325 else
cristyda16f162011-02-19 23:52:17 +000015326 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15327 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 +000015328 fi
15329 ;;
15330
15331 solaris*)
15332 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15333 ld_shlibs=no
15334 cat <<_LT_EOF 1>&2
15335
15336*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15337*** create shared libraries on Solaris systems. Therefore, libtool
15338*** is disabling shared libraries support. We urge you to upgrade GNU
15339*** binutils to release 2.9.1 or newer. Another option is to modify
15340*** your PATH or compiler configuration so that the native linker is
15341*** used, and then restart.
15342
15343_LT_EOF
15344 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015345 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15346 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 +000015347 else
15348 ld_shlibs=no
15349 fi
15350 ;;
15351
15352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15353 case `$LD -v 2>&1` in
15354 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15355 ld_shlibs=no
15356 cat <<_LT_EOF 1>&2
15357
15358*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15359*** reliably create shared libraries on SCO systems. Therefore, libtool
15360*** is disabling shared libraries support. We urge you to upgrade GNU
15361*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15362*** your PATH or compiler configuration so that the native linker is
15363*** used, and then restart.
15364
15365_LT_EOF
15366 ;;
15367 *)
15368 # For security reasons, it is highly recommended that you always
15369 # use absolute paths for naming shared libraries, and exclude the
15370 # DT_RUNPATH tag from executables and libraries. But doing so
15371 # requires that you compile everything twice, which is a pain.
15372 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15375 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15376 else
15377 ld_shlibs=no
15378 fi
15379 ;;
15380 esac
15381 ;;
15382
15383 sunos4*)
15384 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15385 wlarc=
15386 hardcode_direct=yes
15387 hardcode_shlibpath_var=no
15388 ;;
15389
15390 *)
15391 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015392 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15393 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 +000015394 else
15395 ld_shlibs=no
15396 fi
15397 ;;
15398 esac
15399
15400 if test "$ld_shlibs" = no; then
15401 runpath_var=
15402 hardcode_libdir_flag_spec=
15403 export_dynamic_flag_spec=
15404 whole_archive_flag_spec=
15405 fi
15406 else
15407 # PORTME fill in a description of your system's linker (not GNU ld)
15408 case $host_os in
15409 aix3*)
15410 allow_undefined_flag=unsupported
15411 always_export_symbols=yes
15412 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'
15413 # Note: this linker hardcodes the directories in LIBPATH if there
15414 # are no directories specified by -L.
15415 hardcode_minus_L=yes
15416 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15417 # Neither direct hardcoding nor static linking is supported with a
15418 # broken collect2.
15419 hardcode_direct=unsupported
15420 fi
15421 ;;
15422
15423 aix[4-9]*)
15424 if test "$host_cpu" = ia64; then
15425 # On IA64, the linker does run time linking by default, so we don't
15426 # have to do anything special.
15427 aix_use_runtimelinking=no
15428 exp_sym_flag='-Bexport'
15429 no_entry_flag=""
15430 else
15431 # If we're using GNU nm, then we don't want the "-C" option.
15432 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015433 # Also, AIX nm treats weak defined symbols like other global
15434 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015435 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015436 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 +000015437 else
15438 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'
15439 fi
15440 aix_use_runtimelinking=no
15441
15442 # Test if we are trying to use run time linking or normal
15443 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15444 # need to do runtime linking.
15445 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15446 for ld_flag in $LDFLAGS; do
15447 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15448 aix_use_runtimelinking=yes
15449 break
15450 fi
15451 done
15452 ;;
15453 esac
15454
15455 exp_sym_flag='-bexport'
15456 no_entry_flag='-bnoentry'
15457 fi
15458
15459 # When large executables or shared objects are built, AIX ld can
15460 # have problems creating the table of contents. If linking a library
15461 # or program results in "error TOC overflow" add -mminimal-toc to
15462 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15463 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15464
15465 archive_cmds=''
15466 hardcode_direct=yes
15467 hardcode_direct_absolute=yes
15468 hardcode_libdir_separator=':'
15469 link_all_deplibs=yes
15470 file_list_spec='${wl}-f,'
15471
15472 if test "$GCC" = yes; then
15473 case $host_os in aix4.[012]|aix4.[012].*)
15474 # We only want to do this on AIX 4.2 and lower, the check
15475 # below for broken collect2 doesn't work under 4.3+
15476 collect2name=`${CC} -print-prog-name=collect2`
15477 if test -f "$collect2name" &&
15478 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15479 then
15480 # We have reworked collect2
15481 :
15482 else
15483 # We have old collect2
15484 hardcode_direct=unsupported
15485 # It fails to find uninstalled libraries when the uninstalled
15486 # path is not listed in the libpath. Setting hardcode_minus_L
15487 # to unsupported forces relinking
15488 hardcode_minus_L=yes
15489 hardcode_libdir_flag_spec='-L$libdir'
15490 hardcode_libdir_separator=
15491 fi
15492 ;;
15493 esac
15494 shared_flag='-shared'
15495 if test "$aix_use_runtimelinking" = yes; then
15496 shared_flag="$shared_flag "'${wl}-G'
15497 fi
15498 else
15499 # not using gcc
15500 if test "$host_cpu" = ia64; then
15501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15502 # chokes on -Wl,-G. The following line is correct:
15503 shared_flag='-G'
15504 else
15505 if test "$aix_use_runtimelinking" = yes; then
15506 shared_flag='${wl}-G'
15507 else
15508 shared_flag='${wl}-bM:SRE'
15509 fi
15510 fi
15511 fi
15512
15513 export_dynamic_flag_spec='${wl}-bexpall'
15514 # It seems that -bexpall does not export symbols beginning with
15515 # underscore (_), so it is better to generate a list of symbols to export.
15516 always_export_symbols=yes
15517 if test "$aix_use_runtimelinking" = yes; then
15518 # Warning - without using the other runtime loading flags (-brtl),
15519 # -berok will link without error, but may produce a broken library.
15520 allow_undefined_flag='-berok'
15521 # Determine the default libpath from the value encoded in an
15522 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015523 if test "${lt_cv_aix_libpath+set}" = set; then
15524 aix_libpath=$lt_cv_aix_libpath
15525else
15526 if ${lt_cv_aix_libpath_+:} false; then :
15527 $as_echo_n "(cached) " >&6
15528else
15529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015530/* end confdefs.h. */
15531
15532int
15533main ()
15534{
15535
15536 ;
15537 return 0;
15538}
15539_ACEOF
15540if ac_fn_c_try_link "$LINENO"; then :
15541
cristyda16f162011-02-19 23:52:17 +000015542 lt_aix_libpath_sed='
15543 /Import File Strings/,/^$/ {
15544 /^0/ {
15545 s/^0 *\([^ ]*\) *$/\1/
15546 p
15547 }
15548 }'
15549 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15550 # Check for a 64-bit object if we didn't find anything.
15551 if test -z "$lt_cv_aix_libpath_"; then
15552 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15553 fi
cristy73bd4a52010-10-05 11:24:23 +000015554fi
15555rm -f core conftest.err conftest.$ac_objext \
15556 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015557 if test -z "$lt_cv_aix_libpath_"; then
15558 lt_cv_aix_libpath_="/usr/lib:/lib"
15559 fi
15560
15561fi
15562
15563 aix_libpath=$lt_cv_aix_libpath_
15564fi
cristy73bd4a52010-10-05 11:24:23 +000015565
15566 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015567 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 +000015568 else
15569 if test "$host_cpu" = ia64; then
15570 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15571 allow_undefined_flag="-z nodefs"
15572 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"
15573 else
15574 # Determine the default libpath from the value encoded in an
15575 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015576 if test "${lt_cv_aix_libpath+set}" = set; then
15577 aix_libpath=$lt_cv_aix_libpath
15578else
15579 if ${lt_cv_aix_libpath_+:} false; then :
15580 $as_echo_n "(cached) " >&6
15581else
15582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015583/* end confdefs.h. */
15584
15585int
15586main ()
15587{
15588
15589 ;
15590 return 0;
15591}
15592_ACEOF
15593if ac_fn_c_try_link "$LINENO"; then :
15594
cristyda16f162011-02-19 23:52:17 +000015595 lt_aix_libpath_sed='
15596 /Import File Strings/,/^$/ {
15597 /^0/ {
15598 s/^0 *\([^ ]*\) *$/\1/
15599 p
15600 }
15601 }'
15602 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15603 # Check for a 64-bit object if we didn't find anything.
15604 if test -z "$lt_cv_aix_libpath_"; then
15605 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15606 fi
cristy73bd4a52010-10-05 11:24:23 +000015607fi
15608rm -f core conftest.err conftest.$ac_objext \
15609 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015610 if test -z "$lt_cv_aix_libpath_"; then
15611 lt_cv_aix_libpath_="/usr/lib:/lib"
15612 fi
15613
15614fi
15615
15616 aix_libpath=$lt_cv_aix_libpath_
15617fi
cristy73bd4a52010-10-05 11:24:23 +000015618
15619 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15620 # Warning - without using the other run time loading flags,
15621 # -berok will link without error, but may produce a broken library.
15622 no_undefined_flag=' ${wl}-bernotok'
15623 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015624 if test "$with_gnu_ld" = yes; then
15625 # We only use this code for GNU lds that support --whole-archive.
15626 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15627 else
15628 # Exported symbols can be pulled into shared objects from archives
15629 whole_archive_flag_spec='$convenience'
15630 fi
cristy73bd4a52010-10-05 11:24:23 +000015631 archive_cmds_need_lc=yes
15632 # This is similar to how AIX traditionally builds its shared libraries.
15633 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'
15634 fi
15635 fi
15636 ;;
15637
15638 amigaos*)
15639 case $host_cpu in
15640 powerpc)
15641 # see comment about AmigaOS4 .so support
15642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15643 archive_expsym_cmds=''
15644 ;;
15645 m68k)
15646 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)'
15647 hardcode_libdir_flag_spec='-L$libdir'
15648 hardcode_minus_L=yes
15649 ;;
15650 esac
15651 ;;
15652
15653 bsdi[45]*)
15654 export_dynamic_flag_spec=-rdynamic
15655 ;;
15656
15657 cygwin* | mingw* | pw32* | cegcc*)
15658 # When not using gcc, we currently assume that we are using
15659 # Microsoft Visual C++.
15660 # hardcode_libdir_flag_spec is actually meaningless, as there is
15661 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015662 case $cc_basename in
15663 cl*)
15664 # Native MSVC
15665 hardcode_libdir_flag_spec=' '
15666 allow_undefined_flag=unsupported
15667 always_export_symbols=yes
15668 file_list_spec='@'
15669 # Tell ltmain to make .lib files, not .a files.
15670 libext=lib
15671 # Tell ltmain to make .dll files, not .so files.
15672 shrext_cmds=".dll"
15673 # FIXME: Setting linknames here is a bad hack.
15674 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15675 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15676 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15677 else
15678 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15679 fi~
15680 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15681 linknames='
15682 # The linker will not automatically build a static lib if we build a DLL.
15683 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15684 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015685 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015686 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15687 # Don't use ranlib
15688 old_postinstall_cmds='chmod 644 $oldlib'
15689 postlink_cmds='lt_outputfile="@OUTPUT@"~
15690 lt_tool_outputfile="@TOOL_OUTPUT@"~
15691 case $lt_outputfile in
15692 *.exe|*.EXE) ;;
15693 *)
15694 lt_outputfile="$lt_outputfile.exe"
15695 lt_tool_outputfile="$lt_tool_outputfile.exe"
15696 ;;
15697 esac~
15698 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15699 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15700 $RM "$lt_outputfile.manifest";
15701 fi'
15702 ;;
15703 *)
15704 # Assume MSVC wrapper
15705 hardcode_libdir_flag_spec=' '
15706 allow_undefined_flag=unsupported
15707 # Tell ltmain to make .lib files, not .a files.
15708 libext=lib
15709 # Tell ltmain to make .dll files, not .so files.
15710 shrext_cmds=".dll"
15711 # FIXME: Setting linknames here is a bad hack.
15712 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15713 # The linker will automatically build a .lib file if we build a DLL.
15714 old_archive_from_new_cmds='true'
15715 # FIXME: Should let the user specify the lib program.
15716 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15717 enable_shared_with_static_runtimes=yes
15718 ;;
15719 esac
cristy73bd4a52010-10-05 11:24:23 +000015720 ;;
15721
15722 darwin* | rhapsody*)
15723
15724
15725 archive_cmds_need_lc=no
15726 hardcode_direct=no
15727 hardcode_automatic=yes
15728 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015729 if test "$lt_cv_ld_force_load" = "yes"; then
15730 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 +000015731
cristy0c60a692010-11-04 01:09:47 +000015732 else
15733 whole_archive_flag_spec=''
15734 fi
cristy73bd4a52010-10-05 11:24:23 +000015735 link_all_deplibs=yes
15736 allow_undefined_flag="$_lt_dar_allow_undefined"
15737 case $cc_basename in
15738 ifort*) _lt_dar_can_shared=yes ;;
15739 *) _lt_dar_can_shared=$GCC ;;
15740 esac
15741 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015742 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015743 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15744 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15745 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}"
15746 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}"
15747
15748 else
15749 ld_shlibs=no
15750 fi
15751
15752 ;;
15753
15754 dgux*)
15755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756 hardcode_libdir_flag_spec='-L$libdir'
15757 hardcode_shlibpath_var=no
15758 ;;
15759
cristy73bd4a52010-10-05 11:24:23 +000015760 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15761 # support. Future versions do this automatically, but an explicit c++rt0.o
15762 # does not break anything, and helps significantly (at the cost of a little
15763 # extra space).
15764 freebsd2.2*)
15765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15766 hardcode_libdir_flag_spec='-R$libdir'
15767 hardcode_direct=yes
15768 hardcode_shlibpath_var=no
15769 ;;
15770
15771 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015772 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015773 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15774 hardcode_direct=yes
15775 hardcode_minus_L=yes
15776 hardcode_shlibpath_var=no
15777 ;;
15778
15779 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15780 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015781 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015782 hardcode_libdir_flag_spec='-R$libdir'
15783 hardcode_direct=yes
15784 hardcode_shlibpath_var=no
15785 ;;
15786
15787 hpux9*)
15788 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015789 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 +000015790 else
15791 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'
15792 fi
15793 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15794 hardcode_libdir_separator=:
15795 hardcode_direct=yes
15796
15797 # hardcode_minus_L: Not really in the search PATH,
15798 # but as the default location of the library.
15799 hardcode_minus_L=yes
15800 export_dynamic_flag_spec='${wl}-E'
15801 ;;
15802
15803 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015804 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015805 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 +000015806 else
15807 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15808 fi
15809 if test "$with_gnu_ld" = no; then
15810 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015811 hardcode_libdir_separator=:
15812 hardcode_direct=yes
15813 hardcode_direct_absolute=yes
15814 export_dynamic_flag_spec='${wl}-E'
15815 # hardcode_minus_L: Not really in the search PATH,
15816 # but as the default location of the library.
15817 hardcode_minus_L=yes
15818 fi
15819 ;;
15820
15821 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015822 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015823 case $host_cpu in
15824 hppa*64*)
15825 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15826 ;;
15827 ia64*)
cristyda16f162011-02-19 23:52:17 +000015828 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015829 ;;
15830 *)
cristyda16f162011-02-19 23:52:17 +000015831 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 +000015832 ;;
15833 esac
15834 else
15835 case $host_cpu in
15836 hppa*64*)
15837 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15838 ;;
15839 ia64*)
15840 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15841 ;;
15842 *)
cristy0c60a692010-11-04 01:09:47 +000015843
15844 # Older versions of the 11.00 compiler do not understand -b yet
15845 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15847$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015848if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015849 $as_echo_n "(cached) " >&6
15850else
15851 lt_cv_prog_compiler__b=no
15852 save_LDFLAGS="$LDFLAGS"
15853 LDFLAGS="$LDFLAGS -b"
15854 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15855 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15856 # The linker can only warn and ignore the option if not recognized
15857 # So say no if there are warnings
15858 if test -s conftest.err; then
15859 # Append any errors to the config.log.
15860 cat conftest.err 1>&5
15861 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15863 if diff conftest.exp conftest.er2 >/dev/null; then
15864 lt_cv_prog_compiler__b=yes
15865 fi
15866 else
15867 lt_cv_prog_compiler__b=yes
15868 fi
15869 fi
15870 $RM -r conftest*
15871 LDFLAGS="$save_LDFLAGS"
15872
15873fi
15874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15875$as_echo "$lt_cv_prog_compiler__b" >&6; }
15876
15877if test x"$lt_cv_prog_compiler__b" = xyes; then
15878 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15879else
15880 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15881fi
15882
cristy73bd4a52010-10-05 11:24:23 +000015883 ;;
15884 esac
15885 fi
15886 if test "$with_gnu_ld" = no; then
15887 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15888 hardcode_libdir_separator=:
15889
15890 case $host_cpu in
15891 hppa*64*|ia64*)
15892 hardcode_direct=no
15893 hardcode_shlibpath_var=no
15894 ;;
15895 *)
15896 hardcode_direct=yes
15897 hardcode_direct_absolute=yes
15898 export_dynamic_flag_spec='${wl}-E'
15899
15900 # hardcode_minus_L: Not really in the search PATH,
15901 # but as the default location of the library.
15902 hardcode_minus_L=yes
15903 ;;
15904 esac
15905 fi
15906 ;;
15907
15908 irix5* | irix6* | nonstopux*)
15909 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015910 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 +000015911 # Try to use the -exported_symbol ld option, if it does not
15912 # work, assume that -exports_file does not work either and
15913 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015914 # This should be the same for all languages, so no per-tag cache variable.
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15916$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15917if ${lt_cv_irix_exported_symbol+:} false; then :
15918 $as_echo_n "(cached) " >&6
15919else
15920 save_LDFLAGS="$LDFLAGS"
15921 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015923/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015924int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015925_ACEOF
15926if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015927 lt_cv_irix_exported_symbol=yes
15928else
15929 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015930fi
15931rm -f core conftest.err conftest.$ac_objext \
15932 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015933 LDFLAGS="$save_LDFLAGS"
15934fi
15935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15936$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15937 if test "$lt_cv_irix_exported_symbol" = yes; then
15938 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'
15939 fi
cristy73bd4a52010-10-05 11:24:23 +000015940 else
cristy0c60a692010-11-04 01:09:47 +000015941 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'
15942 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 +000015943 fi
15944 archive_cmds_need_lc='no'
15945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15946 hardcode_libdir_separator=:
15947 inherit_rpath=yes
15948 link_all_deplibs=yes
15949 ;;
15950
15951 netbsd*)
15952 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15953 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15954 else
15955 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15956 fi
15957 hardcode_libdir_flag_spec='-R$libdir'
15958 hardcode_direct=yes
15959 hardcode_shlibpath_var=no
15960 ;;
15961
15962 newsos6)
15963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15964 hardcode_direct=yes
15965 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15966 hardcode_libdir_separator=:
15967 hardcode_shlibpath_var=no
15968 ;;
15969
15970 *nto* | *qnx*)
15971 ;;
15972
15973 openbsd*)
15974 if test -f /usr/libexec/ld.so; then
15975 hardcode_direct=yes
15976 hardcode_shlibpath_var=no
15977 hardcode_direct_absolute=yes
15978 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15979 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15980 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15981 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15982 export_dynamic_flag_spec='${wl}-E'
15983 else
15984 case $host_os in
15985 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15986 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15987 hardcode_libdir_flag_spec='-R$libdir'
15988 ;;
15989 *)
15990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15991 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15992 ;;
15993 esac
15994 fi
15995 else
15996 ld_shlibs=no
15997 fi
15998 ;;
15999
16000 os2*)
16001 hardcode_libdir_flag_spec='-L$libdir'
16002 hardcode_minus_L=yes
16003 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016004 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 +000016005 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16006 ;;
16007
16008 osf3*)
16009 if test "$GCC" = yes; then
16010 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016011 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 +000016012 else
16013 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016014 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 +000016015 fi
16016 archive_cmds_need_lc='no'
16017 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16018 hardcode_libdir_separator=:
16019 ;;
16020
16021 osf4* | osf5*) # as osf3* with the addition of -msym flag
16022 if test "$GCC" = yes; then
16023 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016024 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 +000016025 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16026 else
16027 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016028 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 +000016029 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 +000016030 $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 +000016031
16032 # Both c and cxx compiler support -rpath directly
16033 hardcode_libdir_flag_spec='-rpath $libdir'
16034 fi
16035 archive_cmds_need_lc='no'
16036 hardcode_libdir_separator=:
16037 ;;
16038
16039 solaris*)
16040 no_undefined_flag=' -z defs'
16041 if test "$GCC" = yes; then
16042 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016043 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 +000016044 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 +000016045 $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 +000016046 else
16047 case `$CC -V 2>&1` in
16048 *"Compilers 5.0"*)
16049 wlarc=''
16050 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16051 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16052 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16053 ;;
16054 *)
16055 wlarc='${wl}'
16056 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16057 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16058 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16059 ;;
16060 esac
16061 fi
16062 hardcode_libdir_flag_spec='-R$libdir'
16063 hardcode_shlibpath_var=no
16064 case $host_os in
16065 solaris2.[0-5] | solaris2.[0-5].*) ;;
16066 *)
16067 # The compiler driver will combine and reorder linker options,
16068 # but understands `-z linker_flag'. GCC discards it without `$wl',
16069 # but is careful enough not to reorder.
16070 # Supported since Solaris 2.6 (maybe 2.5.1?)
16071 if test "$GCC" = yes; then
16072 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16073 else
16074 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16075 fi
16076 ;;
16077 esac
16078 link_all_deplibs=yes
16079 ;;
16080
16081 sunos4*)
16082 if test "x$host_vendor" = xsequent; then
16083 # Use $CC to link under sequent, because it throws in some extra .o
16084 # files that make .init and .fini sections work.
16085 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16086 else
16087 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16088 fi
16089 hardcode_libdir_flag_spec='-L$libdir'
16090 hardcode_direct=yes
16091 hardcode_minus_L=yes
16092 hardcode_shlibpath_var=no
16093 ;;
16094
16095 sysv4)
16096 case $host_vendor in
16097 sni)
16098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16099 hardcode_direct=yes # is this really true???
16100 ;;
16101 siemens)
16102 ## LD is ld it makes a PLAMLIB
16103 ## CC just makes a GrossModule.
16104 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16105 reload_cmds='$CC -r -o $output$reload_objs'
16106 hardcode_direct=no
16107 ;;
16108 motorola)
16109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16110 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16111 ;;
16112 esac
16113 runpath_var='LD_RUN_PATH'
16114 hardcode_shlibpath_var=no
16115 ;;
16116
16117 sysv4.3*)
16118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16119 hardcode_shlibpath_var=no
16120 export_dynamic_flag_spec='-Bexport'
16121 ;;
16122
16123 sysv4*MP*)
16124 if test -d /usr/nec; then
16125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16126 hardcode_shlibpath_var=no
16127 runpath_var=LD_RUN_PATH
16128 hardcode_runpath_var=yes
16129 ld_shlibs=yes
16130 fi
16131 ;;
16132
16133 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16134 no_undefined_flag='${wl}-z,text'
16135 archive_cmds_need_lc=no
16136 hardcode_shlibpath_var=no
16137 runpath_var='LD_RUN_PATH'
16138
16139 if test "$GCC" = yes; then
16140 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16141 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16142 else
16143 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16144 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16145 fi
16146 ;;
16147
16148 sysv5* | sco3.2v5* | sco5v6*)
16149 # Note: We can NOT use -z defs as we might desire, because we do not
16150 # link with -lc, and that would cause any symbols used from libc to
16151 # always be unresolved, which means just about no library would
16152 # ever link correctly. If we're not using GNU ld we use -z text
16153 # though, which does catch some bad symbols but isn't as heavy-handed
16154 # as -z defs.
16155 no_undefined_flag='${wl}-z,text'
16156 allow_undefined_flag='${wl}-z,nodefs'
16157 archive_cmds_need_lc=no
16158 hardcode_shlibpath_var=no
16159 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16160 hardcode_libdir_separator=':'
16161 link_all_deplibs=yes
16162 export_dynamic_flag_spec='${wl}-Bexport'
16163 runpath_var='LD_RUN_PATH'
16164
16165 if test "$GCC" = yes; then
16166 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16167 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16168 else
16169 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16170 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16171 fi
16172 ;;
16173
16174 uts4*)
16175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16176 hardcode_libdir_flag_spec='-L$libdir'
16177 hardcode_shlibpath_var=no
16178 ;;
16179
16180 *)
16181 ld_shlibs=no
16182 ;;
16183 esac
16184
16185 if test x$host_vendor = xsni; then
16186 case $host in
16187 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16188 export_dynamic_flag_spec='${wl}-Blargedynsym'
16189 ;;
16190 esac
16191 fi
16192 fi
16193
16194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16195$as_echo "$ld_shlibs" >&6; }
16196test "$ld_shlibs" = no && can_build_shared=no
16197
16198with_gnu_ld=$with_gnu_ld
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214#
16215# Do we need to explicitly link libc?
16216#
16217case "x$archive_cmds_need_lc" in
16218x|xyes)
16219 # Assume -lc should be added
16220 archive_cmds_need_lc=yes
16221
16222 if test "$enable_shared" = yes && test "$GCC" = yes; then
16223 case $archive_cmds in
16224 *'~'*)
16225 # FIXME: we may have to deal with multi-command sequences.
16226 ;;
16227 '$CC '*)
16228 # Test whether the compiler implicitly links with -lc since on some
16229 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16230 # to ld, don't add -lc before -lgcc.
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16232$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016233if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016234 $as_echo_n "(cached) " >&6
16235else
16236 $RM conftest*
16237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016238
cristy0c60a692010-11-04 01:09:47 +000016239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016240 (eval $ac_compile) 2>&5
16241 ac_status=$?
16242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16243 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016244 soname=conftest
16245 lib=conftest
16246 libobjs=conftest.$ac_objext
16247 deplibs=
16248 wl=$lt_prog_compiler_wl
16249 pic_flag=$lt_prog_compiler_pic
16250 compiler_flags=-v
16251 linker_flags=-v
16252 verstring=
16253 output_objdir=.
16254 libname=conftest
16255 lt_save_allow_undefined_flag=$allow_undefined_flag
16256 allow_undefined_flag=
16257 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 +000016258 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16259 ac_status=$?
16260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16261 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016262 then
16263 lt_cv_archive_cmds_need_lc=no
16264 else
16265 lt_cv_archive_cmds_need_lc=yes
16266 fi
16267 allow_undefined_flag=$lt_save_allow_undefined_flag
16268 else
16269 cat conftest.err 1>&5
16270 fi
16271 $RM conftest*
16272
16273fi
16274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16275$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16276 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016277 ;;
16278 esac
16279 fi
16280 ;;
16281esac
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
cristy73bd4a52010-10-05 11:24:23 +000016434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16435$as_echo_n "checking dynamic linker characteristics... " >&6; }
16436
16437if test "$GCC" = yes; then
16438 case $host_os in
16439 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16440 *) lt_awk_arg="/^libraries:/" ;;
16441 esac
cristy0c60a692010-11-04 01:09:47 +000016442 case $host_os in
16443 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16444 *) lt_sed_strip_eq="s,=/,/,g" ;;
16445 esac
16446 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16447 case $lt_search_path_spec in
16448 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016449 # if the path contains ";" then we assume it to be the separator
16450 # otherwise default to the standard path separator (i.e. ":") - it is
16451 # assumed that no part of a normal pathname contains ";" but that should
16452 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016453 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16454 ;;
16455 *)
16456 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16457 ;;
16458 esac
cristy73bd4a52010-10-05 11:24:23 +000016459 # Ok, now we have the path, separated by spaces, we can step through it
16460 # and add multilib dir if necessary.
16461 lt_tmp_lt_search_path_spec=
16462 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16463 for lt_sys_path in $lt_search_path_spec; do
16464 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16465 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16466 else
16467 test -d "$lt_sys_path" && \
16468 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16469 fi
16470 done
cristy0c60a692010-11-04 01:09:47 +000016471 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016472BEGIN {RS=" "; FS="/|\n";} {
16473 lt_foo="";
16474 lt_count=0;
16475 for (lt_i = NF; lt_i > 0; lt_i--) {
16476 if ($lt_i != "" && $lt_i != ".") {
16477 if ($lt_i == "..") {
16478 lt_count++;
16479 } else {
16480 if (lt_count == 0) {
16481 lt_foo="/" $lt_i lt_foo;
16482 } else {
16483 lt_count--;
16484 }
16485 }
16486 }
16487 }
16488 if (lt_foo != "") { lt_freq[lt_foo]++; }
16489 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16490}'`
cristy0c60a692010-11-04 01:09:47 +000016491 # AWK program above erroneously prepends '/' to C:/dos/paths
16492 # for these hosts.
16493 case $host_os in
16494 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16495 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16496 esac
16497 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016498else
16499 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16500fi
16501library_names_spec=
16502libname_spec='lib$name'
16503soname_spec=
16504shrext_cmds=".so"
16505postinstall_cmds=
16506postuninstall_cmds=
16507finish_cmds=
16508finish_eval=
16509shlibpath_var=
16510shlibpath_overrides_runpath=unknown
16511version_type=none
16512dynamic_linker="$host_os ld.so"
16513sys_lib_dlsearch_path_spec="/lib /usr/lib"
16514need_lib_prefix=unknown
16515hardcode_into_libs=no
16516
16517# when you set need_version to no, make sure it does not cause -set_version
16518# flags to be left without arguments
16519need_version=unknown
16520
16521case $host_os in
16522aix3*)
cristy99bd5232011-12-07 14:38:20 +000016523 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016524 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16525 shlibpath_var=LIBPATH
16526
16527 # AIX 3 has no versioning support, so we append a major version to the name.
16528 soname_spec='${libname}${release}${shared_ext}$major'
16529 ;;
16530
16531aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016532 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016533 need_lib_prefix=no
16534 need_version=no
16535 hardcode_into_libs=yes
16536 if test "$host_cpu" = ia64; then
16537 # AIX 5 supports IA64
16538 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16539 shlibpath_var=LD_LIBRARY_PATH
16540 else
16541 # With GCC up to 2.95.x, collect2 would create an import file
16542 # for dependence libraries. The import file would start with
16543 # the line `#! .'. This would cause the generated library to
16544 # depend on `.', always an invalid library. This was fixed in
16545 # development snapshots of GCC prior to 3.0.
16546 case $host_os in
16547 aix4 | aix4.[01] | aix4.[01].*)
16548 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16549 echo ' yes '
16550 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16551 :
16552 else
16553 can_build_shared=no
16554 fi
16555 ;;
16556 esac
16557 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16558 # soname into executable. Probably we can add versioning support to
16559 # collect2, so additional links can be useful in future.
16560 if test "$aix_use_runtimelinking" = yes; then
16561 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16562 # instead of lib<name>.a to let people know that these are not
16563 # typical AIX shared libraries.
16564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16565 else
16566 # We preserve .a as extension for shared libraries through AIX4.2
16567 # and later when we are not doing run time linking.
16568 library_names_spec='${libname}${release}.a $libname.a'
16569 soname_spec='${libname}${release}${shared_ext}$major'
16570 fi
16571 shlibpath_var=LIBPATH
16572 fi
16573 ;;
16574
16575amigaos*)
16576 case $host_cpu in
16577 powerpc)
16578 # Since July 2007 AmigaOS4 officially supports .so libraries.
16579 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581 ;;
16582 m68k)
16583 library_names_spec='$libname.ixlibrary $libname.a'
16584 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016585 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 +000016586 ;;
16587 esac
16588 ;;
16589
16590beos*)
16591 library_names_spec='${libname}${shared_ext}'
16592 dynamic_linker="$host_os ld.so"
16593 shlibpath_var=LIBRARY_PATH
16594 ;;
16595
16596bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016597 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016598 need_version=no
16599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600 soname_spec='${libname}${release}${shared_ext}$major'
16601 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16602 shlibpath_var=LD_LIBRARY_PATH
16603 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16604 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16605 # the default ld.so.conf also contains /usr/contrib/lib and
16606 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16607 # libtool to hard-code these into programs
16608 ;;
16609
16610cygwin* | mingw* | pw32* | cegcc*)
16611 version_type=windows
16612 shrext_cmds=".dll"
16613 need_version=no
16614 need_lib_prefix=no
16615
cristyda16f162011-02-19 23:52:17 +000016616 case $GCC,$cc_basename in
16617 yes,*)
16618 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016619 library_names_spec='$libname.dll.a'
16620 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16621 postinstall_cmds='base_file=`basename \${file}`~
16622 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16623 dldir=$destdir/`dirname \$dlpath`~
16624 test -d \$dldir || mkdir -p \$dldir~
16625 $install_prog $dir/$dlname \$dldir/$dlname~
16626 chmod a+x \$dldir/$dlname~
16627 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16628 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16629 fi'
16630 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16631 dlpath=$dir/\$dldll~
16632 $RM \$dlpath'
16633 shlibpath_overrides_runpath=yes
16634
16635 case $host_os in
16636 cygwin*)
16637 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16638 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016639
16640 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016641 ;;
16642 mingw* | cegcc*)
16643 # MinGW DLLs use traditional 'lib' prefix
16644 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016645 ;;
16646 pw32*)
16647 # pw32 DLLs use 'pw' prefix rather than 'lib'
16648 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16649 ;;
16650 esac
cristyda16f162011-02-19 23:52:17 +000016651 dynamic_linker='Win32 ld.exe'
16652 ;;
16653
16654 *,cl*)
16655 # Native MSVC
16656 libname_spec='$name'
16657 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16658 library_names_spec='${libname}.dll.lib'
16659
16660 case $build_os in
16661 mingw*)
16662 sys_lib_search_path_spec=
16663 lt_save_ifs=$IFS
16664 IFS=';'
16665 for lt_path in $LIB
16666 do
16667 IFS=$lt_save_ifs
16668 # Let DOS variable expansion print the short 8.3 style file name.
16669 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16670 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16671 done
16672 IFS=$lt_save_ifs
16673 # Convert to MSYS style.
16674 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16675 ;;
16676 cygwin*)
16677 # Convert to unix form, then to dos form, then back to unix form
16678 # but this time dos style (no spaces!) so that the unix form looks
16679 # like /cygdrive/c/PROGRA~1:/cygdr...
16680 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16681 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16682 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16683 ;;
16684 *)
16685 sys_lib_search_path_spec="$LIB"
16686 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16687 # It is most probably a Windows format PATH.
16688 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16689 else
16690 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16691 fi
16692 # FIXME: find the short name or the path components, as spaces are
16693 # common. (e.g. "Program Files" -> "PROGRA~1")
16694 ;;
16695 esac
16696
16697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16698 postinstall_cmds='base_file=`basename \${file}`~
16699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16700 dldir=$destdir/`dirname \$dlpath`~
16701 test -d \$dldir || mkdir -p \$dldir~
16702 $install_prog $dir/$dlname \$dldir/$dlname'
16703 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16704 dlpath=$dir/\$dldll~
16705 $RM \$dlpath'
16706 shlibpath_overrides_runpath=yes
16707 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016708 ;;
16709
16710 *)
cristyda16f162011-02-19 23:52:17 +000016711 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016712 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016713 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016714 ;;
16715 esac
cristy73bd4a52010-10-05 11:24:23 +000016716 # FIXME: first we should search . and the directory the executable is in
16717 shlibpath_var=PATH
16718 ;;
16719
16720darwin* | rhapsody*)
16721 dynamic_linker="$host_os dyld"
16722 version_type=darwin
16723 need_lib_prefix=no
16724 need_version=no
16725 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16726 soname_spec='${libname}${release}${major}$shared_ext'
16727 shlibpath_overrides_runpath=yes
16728 shlibpath_var=DYLD_LIBRARY_PATH
16729 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16730
16731 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16732 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16733 ;;
16734
16735dgux*)
cristy99bd5232011-12-07 14:38:20 +000016736 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016737 need_lib_prefix=no
16738 need_version=no
16739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16740 soname_spec='${libname}${release}${shared_ext}$major'
16741 shlibpath_var=LD_LIBRARY_PATH
16742 ;;
16743
cristy73bd4a52010-10-05 11:24:23 +000016744freebsd* | dragonfly*)
16745 # DragonFly does not have aout. When/if they implement a new
16746 # versioning mechanism, adjust this.
16747 if test -x /usr/bin/objformat; then
16748 objformat=`/usr/bin/objformat`
16749 else
16750 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016751 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016752 *) objformat=elf ;;
16753 esac
16754 fi
16755 version_type=freebsd-$objformat
16756 case $version_type in
16757 freebsd-elf*)
16758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16759 need_version=no
16760 need_lib_prefix=no
16761 ;;
16762 freebsd-*)
16763 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16764 need_version=yes
16765 ;;
16766 esac
16767 shlibpath_var=LD_LIBRARY_PATH
16768 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016769 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016770 shlibpath_overrides_runpath=yes
16771 ;;
16772 freebsd3.[01]* | freebsdelf3.[01]*)
16773 shlibpath_overrides_runpath=yes
16774 hardcode_into_libs=yes
16775 ;;
16776 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16777 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16778 shlibpath_overrides_runpath=no
16779 hardcode_into_libs=yes
16780 ;;
16781 *) # from 4.6 on, and DragonFly
16782 shlibpath_overrides_runpath=yes
16783 hardcode_into_libs=yes
16784 ;;
16785 esac
16786 ;;
16787
16788gnu*)
cristy99bd5232011-12-07 14:38:20 +000016789 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016790 need_lib_prefix=no
16791 need_version=no
16792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16793 soname_spec='${libname}${release}${shared_ext}$major'
16794 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016795 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016796 hardcode_into_libs=yes
16797 ;;
16798
cristy0c60a692010-11-04 01:09:47 +000016799haiku*)
cristy99bd5232011-12-07 14:38:20 +000016800 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016801 need_lib_prefix=no
16802 need_version=no
16803 dynamic_linker="$host_os runtime_loader"
16804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16805 soname_spec='${libname}${release}${shared_ext}$major'
16806 shlibpath_var=LIBRARY_PATH
16807 shlibpath_overrides_runpath=yes
16808 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16809 hardcode_into_libs=yes
16810 ;;
16811
cristy73bd4a52010-10-05 11:24:23 +000016812hpux9* | hpux10* | hpux11*)
16813 # Give a soname corresponding to the major version so that dld.sl refuses to
16814 # link against other versions.
16815 version_type=sunos
16816 need_lib_prefix=no
16817 need_version=no
16818 case $host_cpu in
16819 ia64*)
16820 shrext_cmds='.so'
16821 hardcode_into_libs=yes
16822 dynamic_linker="$host_os dld.so"
16823 shlibpath_var=LD_LIBRARY_PATH
16824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16826 soname_spec='${libname}${release}${shared_ext}$major'
16827 if test "X$HPUX_IA64_MODE" = X32; then
16828 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16829 else
16830 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16831 fi
16832 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16833 ;;
16834 hppa*64*)
16835 shrext_cmds='.sl'
16836 hardcode_into_libs=yes
16837 dynamic_linker="$host_os dld.sl"
16838 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841 soname_spec='${libname}${release}${shared_ext}$major'
16842 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16844 ;;
16845 *)
16846 shrext_cmds='.sl'
16847 dynamic_linker="$host_os dld.sl"
16848 shlibpath_var=SHLIB_PATH
16849 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851 soname_spec='${libname}${release}${shared_ext}$major'
16852 ;;
16853 esac
cristy0c60a692010-11-04 01:09:47 +000016854 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016855 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016856 # or fails outright, so override atomically:
16857 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016858 ;;
16859
16860interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016861 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016862 need_lib_prefix=no
16863 need_version=no
16864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16865 soname_spec='${libname}${release}${shared_ext}$major'
16866 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16867 shlibpath_var=LD_LIBRARY_PATH
16868 shlibpath_overrides_runpath=no
16869 hardcode_into_libs=yes
16870 ;;
16871
16872irix5* | irix6* | nonstopux*)
16873 case $host_os in
16874 nonstopux*) version_type=nonstopux ;;
16875 *)
16876 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016877 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016878 else
16879 version_type=irix
16880 fi ;;
16881 esac
16882 need_lib_prefix=no
16883 need_version=no
16884 soname_spec='${libname}${release}${shared_ext}$major'
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16886 case $host_os in
16887 irix5* | nonstopux*)
16888 libsuff= shlibsuff=
16889 ;;
16890 *)
16891 case $LD in # libtool.m4 will add one of these switches to LD
16892 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16893 libsuff= shlibsuff= libmagic=32-bit;;
16894 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16895 libsuff=32 shlibsuff=N32 libmagic=N32;;
16896 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16897 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16898 *) libsuff= shlibsuff= libmagic=never-match;;
16899 esac
16900 ;;
16901 esac
16902 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16903 shlibpath_overrides_runpath=no
16904 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16905 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16906 hardcode_into_libs=yes
16907 ;;
16908
16909# No shared lib support for Linux oldld, aout, or coff.
16910linux*oldld* | linux*aout* | linux*coff*)
16911 dynamic_linker=no
16912 ;;
16913
cristy99bd5232011-12-07 14:38:20 +000016914# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016915linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016916 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016917 need_lib_prefix=no
16918 need_version=no
16919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16920 soname_spec='${libname}${release}${shared_ext}$major'
16921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16922 shlibpath_var=LD_LIBRARY_PATH
16923 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016924
cristy73bd4a52010-10-05 11:24:23 +000016925 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016926 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016927 $as_echo_n "(cached) " >&6
16928else
16929 lt_cv_shlibpath_overrides_runpath=no
16930 save_LDFLAGS=$LDFLAGS
16931 save_libdir=$libdir
16932 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16933 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016935/* end confdefs.h. */
16936
16937int
16938main ()
16939{
16940
16941 ;
16942 return 0;
16943}
16944_ACEOF
16945if ac_fn_c_try_link "$LINENO"; then :
16946 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016947 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016948fi
16949fi
16950rm -f core conftest.err conftest.$ac_objext \
16951 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016952 LDFLAGS=$save_LDFLAGS
16953 libdir=$save_libdir
16954
16955fi
16956
16957 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016958
16959 # This implies no fast_install, which is unacceptable.
16960 # Some rework will be needed to allow for fast_install
16961 # before this can be enabled.
16962 hardcode_into_libs=yes
16963
16964 # Add ABI-specific directories to the system library path.
16965 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16966
16967 # Append ld.so.conf contents to the search path
16968 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016969 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 +000016970 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016971
cristy73bd4a52010-10-05 11:24:23 +000016972 fi
16973
16974 # We used to test for /lib/ld.so.1 and disable shared libraries on
16975 # powerpc, because MkLinux only supported shared libraries with the
16976 # GNU dynamic linker. Since this was broken with cross compilers,
16977 # most powerpc-linux boxes support dynamic linking these days and
16978 # people can always --disable-shared, the test was removed, and we
16979 # assume the GNU/Linux dynamic linker is in use.
16980 dynamic_linker='GNU/Linux ld.so'
16981 ;;
16982
16983netbsd*)
16984 version_type=sunos
16985 need_lib_prefix=no
16986 need_version=no
16987 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16990 dynamic_linker='NetBSD (a.out) ld.so'
16991 else
16992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16993 soname_spec='${libname}${release}${shared_ext}$major'
16994 dynamic_linker='NetBSD ld.elf_so'
16995 fi
16996 shlibpath_var=LD_LIBRARY_PATH
16997 shlibpath_overrides_runpath=yes
16998 hardcode_into_libs=yes
16999 ;;
17000
17001newsos6)
cristy99bd5232011-12-07 14:38:20 +000017002 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004 shlibpath_var=LD_LIBRARY_PATH
17005 shlibpath_overrides_runpath=yes
17006 ;;
17007
17008*nto* | *qnx*)
17009 version_type=qnx
17010 need_lib_prefix=no
17011 need_version=no
17012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17013 soname_spec='${libname}${release}${shared_ext}$major'
17014 shlibpath_var=LD_LIBRARY_PATH
17015 shlibpath_overrides_runpath=no
17016 hardcode_into_libs=yes
17017 dynamic_linker='ldqnx.so'
17018 ;;
17019
17020openbsd*)
17021 version_type=sunos
17022 sys_lib_dlsearch_path_spec="/usr/lib"
17023 need_lib_prefix=no
17024 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17025 case $host_os in
17026 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17027 *) need_version=no ;;
17028 esac
17029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17031 shlibpath_var=LD_LIBRARY_PATH
17032 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17033 case $host_os in
17034 openbsd2.[89] | openbsd2.[89].*)
17035 shlibpath_overrides_runpath=no
17036 ;;
17037 *)
17038 shlibpath_overrides_runpath=yes
17039 ;;
17040 esac
17041 else
17042 shlibpath_overrides_runpath=yes
17043 fi
17044 ;;
17045
17046os2*)
17047 libname_spec='$name'
17048 shrext_cmds=".dll"
17049 need_lib_prefix=no
17050 library_names_spec='$libname${shared_ext} $libname.a'
17051 dynamic_linker='OS/2 ld.exe'
17052 shlibpath_var=LIBPATH
17053 ;;
17054
17055osf3* | osf4* | osf5*)
17056 version_type=osf
17057 need_lib_prefix=no
17058 need_version=no
17059 soname_spec='${libname}${release}${shared_ext}$major'
17060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17061 shlibpath_var=LD_LIBRARY_PATH
17062 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17063 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17064 ;;
17065
17066rdos*)
17067 dynamic_linker=no
17068 ;;
17069
17070solaris*)
cristy99bd5232011-12-07 14:38:20 +000017071 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017072 need_lib_prefix=no
17073 need_version=no
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17075 soname_spec='${libname}${release}${shared_ext}$major'
17076 shlibpath_var=LD_LIBRARY_PATH
17077 shlibpath_overrides_runpath=yes
17078 hardcode_into_libs=yes
17079 # ldd complains unless libraries are executable
17080 postinstall_cmds='chmod +x $lib'
17081 ;;
17082
17083sunos4*)
17084 version_type=sunos
17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17086 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17087 shlibpath_var=LD_LIBRARY_PATH
17088 shlibpath_overrides_runpath=yes
17089 if test "$with_gnu_ld" = yes; then
17090 need_lib_prefix=no
17091 fi
17092 need_version=yes
17093 ;;
17094
17095sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017096 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098 soname_spec='${libname}${release}${shared_ext}$major'
17099 shlibpath_var=LD_LIBRARY_PATH
17100 case $host_vendor in
17101 sni)
17102 shlibpath_overrides_runpath=no
17103 need_lib_prefix=no
17104 runpath_var=LD_RUN_PATH
17105 ;;
17106 siemens)
17107 need_lib_prefix=no
17108 ;;
17109 motorola)
17110 need_lib_prefix=no
17111 need_version=no
17112 shlibpath_overrides_runpath=no
17113 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17114 ;;
17115 esac
17116 ;;
17117
17118sysv4*MP*)
17119 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017120 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017121 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17122 soname_spec='$libname${shared_ext}.$major'
17123 shlibpath_var=LD_LIBRARY_PATH
17124 fi
17125 ;;
17126
17127sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17128 version_type=freebsd-elf
17129 need_lib_prefix=no
17130 need_version=no
17131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17132 soname_spec='${libname}${release}${shared_ext}$major'
17133 shlibpath_var=LD_LIBRARY_PATH
17134 shlibpath_overrides_runpath=yes
17135 hardcode_into_libs=yes
17136 if test "$with_gnu_ld" = yes; then
17137 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17138 else
17139 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17140 case $host_os in
17141 sco3.2v5*)
17142 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17143 ;;
17144 esac
17145 fi
17146 sys_lib_dlsearch_path_spec='/usr/lib'
17147 ;;
17148
17149tpf*)
17150 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017151 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017152 need_lib_prefix=no
17153 need_version=no
17154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155 shlibpath_var=LD_LIBRARY_PATH
17156 shlibpath_overrides_runpath=no
17157 hardcode_into_libs=yes
17158 ;;
17159
17160uts4*)
cristy99bd5232011-12-07 14:38:20 +000017161 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17163 soname_spec='${libname}${release}${shared_ext}$major'
17164 shlibpath_var=LD_LIBRARY_PATH
17165 ;;
17166
17167*)
17168 dynamic_linker=no
17169 ;;
17170esac
17171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17172$as_echo "$dynamic_linker" >&6; }
17173test "$dynamic_linker" = no && can_build_shared=no
17174
17175variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17176if test "$GCC" = yes; then
17177 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17178fi
17179
17180if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17181 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17182fi
17183if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17184 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17185fi
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
cristy0c60a692010-11-04 01:09:47 +000017273
17274
17275
17276
17277
cristy73bd4a52010-10-05 11:24:23 +000017278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17279$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17280hardcode_action=
17281if test -n "$hardcode_libdir_flag_spec" ||
17282 test -n "$runpath_var" ||
17283 test "X$hardcode_automatic" = "Xyes" ; then
17284
17285 # We can hardcode non-existent directories.
17286 if test "$hardcode_direct" != no &&
17287 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17288 # have to relink, otherwise we might link with an installed library
17289 # when we should be linking with a yet-to-be-installed one
17290 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17291 test "$hardcode_minus_L" != no; then
17292 # Linking always hardcodes the temporary library directory.
17293 hardcode_action=relink
17294 else
17295 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17296 hardcode_action=immediate
17297 fi
17298else
17299 # We cannot hardcode anything, or else we can only hardcode existing
17300 # directories.
17301 hardcode_action=unsupported
17302fi
17303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17304$as_echo "$hardcode_action" >&6; }
17305
17306if test "$hardcode_action" = relink ||
17307 test "$inherit_rpath" = yes; then
17308 # Fast installation is not supported
17309 enable_fast_install=no
17310elif test "$shlibpath_overrides_runpath" = yes ||
17311 test "$enable_shared" = no; then
17312 # Fast installation is not necessary
17313 enable_fast_install=needless
17314fi
17315
17316
17317
17318
17319
17320
17321 if test "x$enable_dlopen" != xyes; then
17322 enable_dlopen=unknown
17323 enable_dlopen_self=unknown
17324 enable_dlopen_self_static=unknown
17325else
17326 lt_cv_dlopen=no
17327 lt_cv_dlopen_libs=
17328
17329 case $host_os in
17330 beos*)
17331 lt_cv_dlopen="load_add_on"
17332 lt_cv_dlopen_libs=
17333 lt_cv_dlopen_self=yes
17334 ;;
17335
17336 mingw* | pw32* | cegcc*)
17337 lt_cv_dlopen="LoadLibrary"
17338 lt_cv_dlopen_libs=
17339 ;;
17340
17341 cygwin*)
17342 lt_cv_dlopen="dlopen"
17343 lt_cv_dlopen_libs=
17344 ;;
17345
17346 darwin*)
17347 # if libdl is installed we need to link against it
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17349$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017350if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017351 $as_echo_n "(cached) " >&6
17352else
17353 ac_check_lib_save_LIBS=$LIBS
17354LIBS="-ldl $LIBS"
17355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17356/* end confdefs.h. */
17357
17358/* Override any GCC internal prototype to avoid an error.
17359 Use char because int might match the return type of a GCC
17360 builtin and then its argument prototype would still apply. */
17361#ifdef __cplusplus
17362extern "C"
17363#endif
17364char dlopen ();
17365int
17366main ()
17367{
17368return dlopen ();
17369 ;
17370 return 0;
17371}
17372_ACEOF
17373if ac_fn_c_try_link "$LINENO"; then :
17374 ac_cv_lib_dl_dlopen=yes
17375else
17376 ac_cv_lib_dl_dlopen=no
17377fi
17378rm -f core conftest.err conftest.$ac_objext \
17379 conftest$ac_exeext conftest.$ac_ext
17380LIBS=$ac_check_lib_save_LIBS
17381fi
17382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17383$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017384if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17386else
17387
17388 lt_cv_dlopen="dyld"
17389 lt_cv_dlopen_libs=
17390 lt_cv_dlopen_self=yes
17391
17392fi
17393
17394 ;;
17395
17396 *)
17397 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017398if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017399 lt_cv_dlopen="shl_load"
17400else
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17402$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017403if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017404 $as_echo_n "(cached) " >&6
17405else
17406 ac_check_lib_save_LIBS=$LIBS
17407LIBS="-ldld $LIBS"
17408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17409/* end confdefs.h. */
17410
17411/* Override any GCC internal prototype to avoid an error.
17412 Use char because int might match the return type of a GCC
17413 builtin and then its argument prototype would still apply. */
17414#ifdef __cplusplus
17415extern "C"
17416#endif
17417char shl_load ();
17418int
17419main ()
17420{
17421return shl_load ();
17422 ;
17423 return 0;
17424}
17425_ACEOF
17426if ac_fn_c_try_link "$LINENO"; then :
17427 ac_cv_lib_dld_shl_load=yes
17428else
17429 ac_cv_lib_dld_shl_load=no
17430fi
17431rm -f core conftest.err conftest.$ac_objext \
17432 conftest$ac_exeext conftest.$ac_ext
17433LIBS=$ac_check_lib_save_LIBS
17434fi
17435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17436$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017437if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017438 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17439else
17440 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017441if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017442 lt_cv_dlopen="dlopen"
17443else
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17445$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017446if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017447 $as_echo_n "(cached) " >&6
17448else
17449 ac_check_lib_save_LIBS=$LIBS
17450LIBS="-ldl $LIBS"
17451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17452/* end confdefs.h. */
17453
17454/* Override any GCC internal prototype to avoid an error.
17455 Use char because int might match the return type of a GCC
17456 builtin and then its argument prototype would still apply. */
17457#ifdef __cplusplus
17458extern "C"
17459#endif
17460char dlopen ();
17461int
17462main ()
17463{
17464return dlopen ();
17465 ;
17466 return 0;
17467}
17468_ACEOF
17469if ac_fn_c_try_link "$LINENO"; then :
17470 ac_cv_lib_dl_dlopen=yes
17471else
17472 ac_cv_lib_dl_dlopen=no
17473fi
17474rm -f core conftest.err conftest.$ac_objext \
17475 conftest$ac_exeext conftest.$ac_ext
17476LIBS=$ac_check_lib_save_LIBS
17477fi
17478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17479$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017480if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017481 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17482else
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17484$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017485if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017486 $as_echo_n "(cached) " >&6
17487else
17488 ac_check_lib_save_LIBS=$LIBS
17489LIBS="-lsvld $LIBS"
17490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17491/* end confdefs.h. */
17492
17493/* Override any GCC internal prototype to avoid an error.
17494 Use char because int might match the return type of a GCC
17495 builtin and then its argument prototype would still apply. */
17496#ifdef __cplusplus
17497extern "C"
17498#endif
17499char dlopen ();
17500int
17501main ()
17502{
17503return dlopen ();
17504 ;
17505 return 0;
17506}
17507_ACEOF
17508if ac_fn_c_try_link "$LINENO"; then :
17509 ac_cv_lib_svld_dlopen=yes
17510else
17511 ac_cv_lib_svld_dlopen=no
17512fi
17513rm -f core conftest.err conftest.$ac_objext \
17514 conftest$ac_exeext conftest.$ac_ext
17515LIBS=$ac_check_lib_save_LIBS
17516fi
17517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17518$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017519if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017520 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17521else
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17523$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017524if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017525 $as_echo_n "(cached) " >&6
17526else
17527 ac_check_lib_save_LIBS=$LIBS
17528LIBS="-ldld $LIBS"
17529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17530/* end confdefs.h. */
17531
17532/* Override any GCC internal prototype to avoid an error.
17533 Use char because int might match the return type of a GCC
17534 builtin and then its argument prototype would still apply. */
17535#ifdef __cplusplus
17536extern "C"
17537#endif
17538char dld_link ();
17539int
17540main ()
17541{
17542return dld_link ();
17543 ;
17544 return 0;
17545}
17546_ACEOF
17547if ac_fn_c_try_link "$LINENO"; then :
17548 ac_cv_lib_dld_dld_link=yes
17549else
17550 ac_cv_lib_dld_dld_link=no
17551fi
17552rm -f core conftest.err conftest.$ac_objext \
17553 conftest$ac_exeext conftest.$ac_ext
17554LIBS=$ac_check_lib_save_LIBS
17555fi
17556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17557$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017558if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017559 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17560fi
17561
17562
17563fi
17564
17565
17566fi
17567
17568
17569fi
17570
17571
17572fi
17573
17574
17575fi
17576
17577 ;;
17578 esac
17579
17580 if test "x$lt_cv_dlopen" != xno; then
17581 enable_dlopen=yes
17582 else
17583 enable_dlopen=no
17584 fi
17585
17586 case $lt_cv_dlopen in
17587 dlopen)
17588 save_CPPFLAGS="$CPPFLAGS"
17589 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17590
17591 save_LDFLAGS="$LDFLAGS"
17592 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17593
17594 save_LIBS="$LIBS"
17595 LIBS="$lt_cv_dlopen_libs $LIBS"
17596
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17598$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017599if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017600 $as_echo_n "(cached) " >&6
17601else
17602 if test "$cross_compiling" = yes; then :
17603 lt_cv_dlopen_self=cross
17604else
17605 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17606 lt_status=$lt_dlunknown
17607 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017608#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017609#include "confdefs.h"
17610
17611#if HAVE_DLFCN_H
17612#include <dlfcn.h>
17613#endif
17614
17615#include <stdio.h>
17616
17617#ifdef RTLD_GLOBAL
17618# define LT_DLGLOBAL RTLD_GLOBAL
17619#else
17620# ifdef DL_GLOBAL
17621# define LT_DLGLOBAL DL_GLOBAL
17622# else
17623# define LT_DLGLOBAL 0
17624# endif
17625#endif
17626
17627/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17628 find out it does not work in some platform. */
17629#ifndef LT_DLLAZY_OR_NOW
17630# ifdef RTLD_LAZY
17631# define LT_DLLAZY_OR_NOW RTLD_LAZY
17632# else
17633# ifdef DL_LAZY
17634# define LT_DLLAZY_OR_NOW DL_LAZY
17635# else
17636# ifdef RTLD_NOW
17637# define LT_DLLAZY_OR_NOW RTLD_NOW
17638# else
17639# ifdef DL_NOW
17640# define LT_DLLAZY_OR_NOW DL_NOW
17641# else
17642# define LT_DLLAZY_OR_NOW 0
17643# endif
17644# endif
17645# endif
17646# endif
17647#endif
17648
cristy0c60a692010-11-04 01:09:47 +000017649/* When -fvisbility=hidden is used, assume the code has been annotated
17650 correspondingly for the symbols needed. */
17651#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017652int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017653#endif
17654
cristyda16f162011-02-19 23:52:17 +000017655int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017656int main ()
17657{
17658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17659 int status = $lt_dlunknown;
17660
17661 if (self)
17662 {
17663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017664 else
17665 {
17666 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17667 else puts (dlerror ());
17668 }
cristy73bd4a52010-10-05 11:24:23 +000017669 /* dlclose (self); */
17670 }
17671 else
17672 puts (dlerror ());
17673
17674 return status;
17675}
17676_LT_EOF
17677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17678 (eval $ac_link) 2>&5
17679 ac_status=$?
17680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17681 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17682 (./conftest; exit; ) >&5 2>/dev/null
17683 lt_status=$?
17684 case x$lt_status in
17685 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17686 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17687 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17688 esac
17689 else :
17690 # compilation failed
17691 lt_cv_dlopen_self=no
17692 fi
17693fi
17694rm -fr conftest*
17695
17696
17697fi
17698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17699$as_echo "$lt_cv_dlopen_self" >&6; }
17700
17701 if test "x$lt_cv_dlopen_self" = xyes; then
17702 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17704$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017705if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017706 $as_echo_n "(cached) " >&6
17707else
17708 if test "$cross_compiling" = yes; then :
17709 lt_cv_dlopen_self_static=cross
17710else
17711 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17712 lt_status=$lt_dlunknown
17713 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017714#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017715#include "confdefs.h"
17716
17717#if HAVE_DLFCN_H
17718#include <dlfcn.h>
17719#endif
17720
17721#include <stdio.h>
17722
17723#ifdef RTLD_GLOBAL
17724# define LT_DLGLOBAL RTLD_GLOBAL
17725#else
17726# ifdef DL_GLOBAL
17727# define LT_DLGLOBAL DL_GLOBAL
17728# else
17729# define LT_DLGLOBAL 0
17730# endif
17731#endif
17732
17733/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17734 find out it does not work in some platform. */
17735#ifndef LT_DLLAZY_OR_NOW
17736# ifdef RTLD_LAZY
17737# define LT_DLLAZY_OR_NOW RTLD_LAZY
17738# else
17739# ifdef DL_LAZY
17740# define LT_DLLAZY_OR_NOW DL_LAZY
17741# else
17742# ifdef RTLD_NOW
17743# define LT_DLLAZY_OR_NOW RTLD_NOW
17744# else
17745# ifdef DL_NOW
17746# define LT_DLLAZY_OR_NOW DL_NOW
17747# else
17748# define LT_DLLAZY_OR_NOW 0
17749# endif
17750# endif
17751# endif
17752# endif
17753#endif
17754
cristy0c60a692010-11-04 01:09:47 +000017755/* When -fvisbility=hidden is used, assume the code has been annotated
17756 correspondingly for the symbols needed. */
17757#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017758int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017759#endif
17760
cristyda16f162011-02-19 23:52:17 +000017761int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017762int main ()
17763{
17764 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17765 int status = $lt_dlunknown;
17766
17767 if (self)
17768 {
17769 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017770 else
17771 {
17772 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17773 else puts (dlerror ());
17774 }
cristy73bd4a52010-10-05 11:24:23 +000017775 /* dlclose (self); */
17776 }
17777 else
17778 puts (dlerror ());
17779
17780 return status;
17781}
17782_LT_EOF
17783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17784 (eval $ac_link) 2>&5
17785 ac_status=$?
17786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17787 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17788 (./conftest; exit; ) >&5 2>/dev/null
17789 lt_status=$?
17790 case x$lt_status in
17791 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17792 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17793 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17794 esac
17795 else :
17796 # compilation failed
17797 lt_cv_dlopen_self_static=no
17798 fi
17799fi
17800rm -fr conftest*
17801
17802
17803fi
17804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17805$as_echo "$lt_cv_dlopen_self_static" >&6; }
17806 fi
17807
17808 CPPFLAGS="$save_CPPFLAGS"
17809 LDFLAGS="$save_LDFLAGS"
17810 LIBS="$save_LIBS"
17811 ;;
17812 esac
17813
17814 case $lt_cv_dlopen_self in
17815 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17816 *) enable_dlopen_self=unknown ;;
17817 esac
17818
17819 case $lt_cv_dlopen_self_static in
17820 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17821 *) enable_dlopen_self_static=unknown ;;
17822 esac
17823fi
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841striplib=
17842old_striplib=
17843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17844$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17845if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17846 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17847 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17849$as_echo "yes" >&6; }
17850else
17851# FIXME - insert some real tests, host_os isn't really good enough
17852 case $host_os in
17853 darwin*)
17854 if test -n "$STRIP" ; then
17855 striplib="$STRIP -x"
17856 old_striplib="$STRIP -S"
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17858$as_echo "yes" >&6; }
17859 else
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17861$as_echo "no" >&6; }
17862 fi
17863 ;;
17864 *)
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17866$as_echo "no" >&6; }
17867 ;;
17868 esac
17869fi
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882 # Report which library types will actually be built
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17884$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17886$as_echo "$can_build_shared" >&6; }
17887
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17889$as_echo_n "checking whether to build shared libraries... " >&6; }
17890 test "$can_build_shared" = "no" && enable_shared=no
17891
17892 # On AIX, shared libraries and static libraries use the same namespace, and
17893 # are all built from PIC.
17894 case $host_os in
17895 aix3*)
17896 test "$enable_shared" = yes && enable_static=no
17897 if test -n "$RANLIB"; then
17898 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17899 postinstall_cmds='$RANLIB $lib'
17900 fi
17901 ;;
17902
17903 aix[4-9]*)
17904 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17905 test "$enable_shared" = yes && enable_static=no
17906 fi
17907 ;;
17908 esac
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17910$as_echo "$enable_shared" >&6; }
17911
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17913$as_echo_n "checking whether to build static libraries... " >&6; }
17914 # Make sure either enable_shared or enable_static is yes.
17915 test "$enable_shared" = yes || enable_static=yes
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17917$as_echo "$enable_static" >&6; }
17918
17919
17920
17921
17922fi
17923ac_ext=c
17924ac_cpp='$CPP $CPPFLAGS'
17925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17927ac_compiler_gnu=$ac_cv_c_compiler_gnu
17928
17929CC="$lt_save_CC"
17930
cristy0c60a692010-11-04 01:09:47 +000017931 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17932 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17933 (test "X$CXX" != "Xg++"))) ; then
17934 ac_ext=cpp
17935ac_cpp='$CXXCPP $CPPFLAGS'
17936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17940$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17941if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017942 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017943 $as_echo_n "(cached) " >&6
17944else
17945 # Double quotes because CXXCPP needs to be expanded
17946 for CXXCPP in "$CXX -E" "/lib/cpp"
17947 do
17948 ac_preproc_ok=false
17949for ac_cxx_preproc_warn_flag in '' yes
17950do
17951 # Use a header file that comes with gcc, so configuring glibc
17952 # with a fresh cross-compiler works.
17953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17954 # <limits.h> exists even on freestanding compilers.
17955 # On the NeXT, cc -E runs the code through the compiler's parser,
17956 # not just through cpp. "Syntax error" is here to catch this case.
17957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958/* end confdefs.h. */
17959#ifdef __STDC__
17960# include <limits.h>
17961#else
17962# include <assert.h>
17963#endif
17964 Syntax error
17965_ACEOF
17966if ac_fn_cxx_try_cpp "$LINENO"; then :
17967
17968else
17969 # Broken: fails on valid input.
17970continue
17971fi
cristyda16f162011-02-19 23:52:17 +000017972rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017973
17974 # OK, works on sane cases. Now check whether nonexistent headers
17975 # can be detected and how.
17976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977/* end confdefs.h. */
17978#include <ac_nonexistent.h>
17979_ACEOF
17980if ac_fn_cxx_try_cpp "$LINENO"; then :
17981 # Broken: success on invalid input.
17982continue
17983else
17984 # Passes both tests.
17985ac_preproc_ok=:
17986break
17987fi
cristyda16f162011-02-19 23:52:17 +000017988rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017989
17990done
17991# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017992rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017993if $ac_preproc_ok; then :
17994 break
17995fi
17996
17997 done
17998 ac_cv_prog_CXXCPP=$CXXCPP
17999
18000fi
18001 CXXCPP=$ac_cv_prog_CXXCPP
18002else
18003 ac_cv_prog_CXXCPP=$CXXCPP
18004fi
18005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18006$as_echo "$CXXCPP" >&6; }
18007ac_preproc_ok=false
18008for ac_cxx_preproc_warn_flag in '' yes
18009do
18010 # Use a header file that comes with gcc, so configuring glibc
18011 # with a fresh cross-compiler works.
18012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18013 # <limits.h> exists even on freestanding compilers.
18014 # On the NeXT, cc -E runs the code through the compiler's parser,
18015 # not just through cpp. "Syntax error" is here to catch this case.
18016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18017/* end confdefs.h. */
18018#ifdef __STDC__
18019# include <limits.h>
18020#else
18021# include <assert.h>
18022#endif
18023 Syntax error
18024_ACEOF
18025if ac_fn_cxx_try_cpp "$LINENO"; then :
18026
18027else
18028 # Broken: fails on valid input.
18029continue
18030fi
cristyda16f162011-02-19 23:52:17 +000018031rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018032
18033 # OK, works on sane cases. Now check whether nonexistent headers
18034 # can be detected and how.
18035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18036/* end confdefs.h. */
18037#include <ac_nonexistent.h>
18038_ACEOF
18039if ac_fn_cxx_try_cpp "$LINENO"; then :
18040 # Broken: success on invalid input.
18041continue
18042else
18043 # Passes both tests.
18044ac_preproc_ok=:
18045break
18046fi
cristyda16f162011-02-19 23:52:17 +000018047rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018048
18049done
18050# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018051rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018052if $ac_preproc_ok; then :
18053
18054else
18055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18057as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18058See \`config.log' for more details" "$LINENO" 5; }
18059fi
18060
18061ac_ext=c
18062ac_cpp='$CPP $CPPFLAGS'
18063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18065ac_compiler_gnu=$ac_cv_c_compiler_gnu
18066
18067else
18068 _lt_caught_CXX_error=yes
18069fi
cristy73bd4a52010-10-05 11:24:23 +000018070
18071ac_ext=cpp
18072ac_cpp='$CXXCPP $CPPFLAGS'
18073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18076
18077archive_cmds_need_lc_CXX=no
18078allow_undefined_flag_CXX=
18079always_export_symbols_CXX=no
18080archive_expsym_cmds_CXX=
18081compiler_needs_object_CXX=no
18082export_dynamic_flag_spec_CXX=
18083hardcode_direct_CXX=no
18084hardcode_direct_absolute_CXX=no
18085hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018086hardcode_libdir_separator_CXX=
18087hardcode_minus_L_CXX=no
18088hardcode_shlibpath_var_CXX=unsupported
18089hardcode_automatic_CXX=no
18090inherit_rpath_CXX=no
18091module_cmds_CXX=
18092module_expsym_cmds_CXX=
18093link_all_deplibs_CXX=unknown
18094old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018095reload_flag_CXX=$reload_flag
18096reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018097no_undefined_flag_CXX=
18098whole_archive_flag_spec_CXX=
18099enable_shared_with_static_runtimes_CXX=no
18100
18101# Source file extension for C++ test sources.
18102ac_ext=cpp
18103
18104# Object file extension for compiled C++ test sources.
18105objext=o
18106objext_CXX=$objext
18107
18108# No sense in running all these tests if we already determined that
18109# the CXX compiler isn't working. Some variables (like enable_shared)
18110# are currently assumed to apply to all compilers on this platform,
18111# and will be corrupted by setting them based on a non-working compiler.
18112if test "$_lt_caught_CXX_error" != yes; then
18113 # Code to be used in simple compile tests
18114 lt_simple_compile_test_code="int some_variable = 0;"
18115
18116 # Code to be used in simple link tests
18117 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18118
18119 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18120
18121
18122
18123
18124
18125
18126# If no C compiler was specified, use CC.
18127LTCC=${LTCC-"$CC"}
18128
18129# If no C compiler flags were specified, use CFLAGS.
18130LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18131
18132# Allow CC to be a program name with arguments.
18133compiler=$CC
18134
18135
18136 # save warnings/boilerplate of simple test code
18137 ac_outfile=conftest.$ac_objext
18138echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18139eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18140_lt_compiler_boilerplate=`cat conftest.err`
18141$RM conftest*
18142
18143 ac_outfile=conftest.$ac_objext
18144echo "$lt_simple_link_test_code" >conftest.$ac_ext
18145eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18146_lt_linker_boilerplate=`cat conftest.err`
18147$RM -r conftest*
18148
18149
18150 # Allow CC to be a program name with arguments.
18151 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018152 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018153 lt_save_LD=$LD
18154 lt_save_GCC=$GCC
18155 GCC=$GXX
18156 lt_save_with_gnu_ld=$with_gnu_ld
18157 lt_save_path_LD=$lt_cv_path_LD
18158 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18159 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18160 else
18161 $as_unset lt_cv_prog_gnu_ld
18162 fi
18163 if test -n "${lt_cv_path_LDCXX+set}"; then
18164 lt_cv_path_LD=$lt_cv_path_LDCXX
18165 else
18166 $as_unset lt_cv_path_LD
18167 fi
18168 test -z "${LDCXX+set}" || LD=$LDCXX
18169 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018170 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018171 compiler=$CC
18172 compiler_CXX=$CC
18173 for cc_temp in $compiler""; do
18174 case $cc_temp in
18175 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18176 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18177 \-*) ;;
18178 *) break;;
18179 esac
18180done
cristy0c60a692010-11-04 01:09:47 +000018181cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018182
18183
18184 if test -n "$compiler"; then
18185 # We don't want -fno-exception when compiling C++ code, so set the
18186 # no_builtin_flag separately
18187 if test "$GXX" = yes; then
18188 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18189 else
18190 lt_prog_compiler_no_builtin_flag_CXX=
18191 fi
18192
18193 if test "$GXX" = yes; then
18194 # Set up default GNU C++ configuration
18195
18196
18197
18198# Check whether --with-gnu-ld was given.
18199if test "${with_gnu_ld+set}" = set; then :
18200 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18201else
18202 with_gnu_ld=no
18203fi
18204
18205ac_prog=ld
18206if test "$GCC" = yes; then
18207 # Check if gcc -print-prog-name=ld gives a path.
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18209$as_echo_n "checking for ld used by $CC... " >&6; }
18210 case $host in
18211 *-*-mingw*)
18212 # gcc leaves a trailing carriage return which upsets mingw
18213 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18214 *)
18215 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18216 esac
18217 case $ac_prog in
18218 # Accept absolute paths.
18219 [\\/]* | ?:[\\/]*)
18220 re_direlt='/[^/][^/]*/\.\./'
18221 # Canonicalize the pathname of ld
18222 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18223 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18224 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18225 done
18226 test -z "$LD" && LD="$ac_prog"
18227 ;;
18228 "")
18229 # If it fails, then pretend we aren't using GCC.
18230 ac_prog=ld
18231 ;;
18232 *)
18233 # If it is relative, then search for the first ld in PATH.
18234 with_gnu_ld=unknown
18235 ;;
18236 esac
18237elif test "$with_gnu_ld" = yes; then
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18239$as_echo_n "checking for GNU ld... " >&6; }
18240else
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18242$as_echo_n "checking for non-GNU ld... " >&6; }
18243fi
cristyda16f162011-02-19 23:52:17 +000018244if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018245 $as_echo_n "(cached) " >&6
18246else
18247 if test -z "$LD"; then
18248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18249 for ac_dir in $PATH; do
18250 IFS="$lt_save_ifs"
18251 test -z "$ac_dir" && ac_dir=.
18252 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18253 lt_cv_path_LD="$ac_dir/$ac_prog"
18254 # Check to see if the program is GNU ld. I'd rather use --version,
18255 # but apparently some variants of GNU ld only accept -v.
18256 # Break only if it was the GNU/non-GNU ld that we prefer.
18257 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18258 *GNU* | *'with BFD'*)
18259 test "$with_gnu_ld" != no && break
18260 ;;
18261 *)
18262 test "$with_gnu_ld" != yes && break
18263 ;;
18264 esac
18265 fi
18266 done
18267 IFS="$lt_save_ifs"
18268else
18269 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18270fi
18271fi
18272
18273LD="$lt_cv_path_LD"
18274if test -n "$LD"; then
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18276$as_echo "$LD" >&6; }
18277else
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18279$as_echo "no" >&6; }
18280fi
cristy98dddb52010-11-04 00:30:15 +000018281test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18283$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018284if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018285 $as_echo_n "(cached) " >&6
18286else
18287 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18288case `$LD -v 2>&1 </dev/null` in
18289*GNU* | *'with BFD'*)
18290 lt_cv_prog_gnu_ld=yes
18291 ;;
18292*)
18293 lt_cv_prog_gnu_ld=no
18294 ;;
18295esac
18296fi
18297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18298$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18299with_gnu_ld=$lt_cv_prog_gnu_ld
18300
18301
18302
18303
18304
18305
18306
18307 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18308 # archiving commands below assume that GNU ld is being used.
18309 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018310 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18311 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 +000018312
18313 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18314 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18315
18316 # If archive_cmds runs LD, not CC, wlarc should be empty
18317 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18318 # investigate it a little bit more. (MM)
18319 wlarc='${wl}'
18320
18321 # ancient GNU ld didn't support --whole-archive et. al.
18322 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18323 $GREP 'no-whole-archive' > /dev/null; then
18324 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18325 else
18326 whole_archive_flag_spec_CXX=
18327 fi
18328 else
18329 with_gnu_ld=no
18330 wlarc=
18331
18332 # A generic and very simple default shared library creation
18333 # command for GNU C++ for the case where it uses the native
18334 # linker, instead of GNU ld. If possible, this setting should
18335 # overridden to take advantage of the native linker features on
18336 # the platform it is being used on.
18337 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18338 fi
18339
18340 # Commands to make compiler produce verbose output that lists
18341 # what "hidden" libraries, object files and flags are used when
18342 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018343 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018344
18345 else
18346 GXX=no
18347 with_gnu_ld=no
18348 wlarc=
18349 fi
18350
18351 # PORTME: fill in a description of your system's C++ link characteristics
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18353$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18354 ld_shlibs_CXX=yes
18355 case $host_os in
18356 aix3*)
18357 # FIXME: insert proper C++ library support
18358 ld_shlibs_CXX=no
18359 ;;
18360 aix[4-9]*)
18361 if test "$host_cpu" = ia64; then
18362 # On IA64, the linker does run time linking by default, so we don't
18363 # have to do anything special.
18364 aix_use_runtimelinking=no
18365 exp_sym_flag='-Bexport'
18366 no_entry_flag=""
18367 else
18368 aix_use_runtimelinking=no
18369
18370 # Test if we are trying to use run time linking or normal
18371 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18372 # need to do runtime linking.
18373 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18374 for ld_flag in $LDFLAGS; do
18375 case $ld_flag in
18376 *-brtl*)
18377 aix_use_runtimelinking=yes
18378 break
18379 ;;
18380 esac
18381 done
18382 ;;
18383 esac
18384
18385 exp_sym_flag='-bexport'
18386 no_entry_flag='-bnoentry'
18387 fi
18388
18389 # When large executables or shared objects are built, AIX ld can
18390 # have problems creating the table of contents. If linking a library
18391 # or program results in "error TOC overflow" add -mminimal-toc to
18392 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18393 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18394
18395 archive_cmds_CXX=''
18396 hardcode_direct_CXX=yes
18397 hardcode_direct_absolute_CXX=yes
18398 hardcode_libdir_separator_CXX=':'
18399 link_all_deplibs_CXX=yes
18400 file_list_spec_CXX='${wl}-f,'
18401
18402 if test "$GXX" = yes; then
18403 case $host_os in aix4.[012]|aix4.[012].*)
18404 # We only want to do this on AIX 4.2 and lower, the check
18405 # below for broken collect2 doesn't work under 4.3+
18406 collect2name=`${CC} -print-prog-name=collect2`
18407 if test -f "$collect2name" &&
18408 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18409 then
18410 # We have reworked collect2
18411 :
18412 else
18413 # We have old collect2
18414 hardcode_direct_CXX=unsupported
18415 # It fails to find uninstalled libraries when the uninstalled
18416 # path is not listed in the libpath. Setting hardcode_minus_L
18417 # to unsupported forces relinking
18418 hardcode_minus_L_CXX=yes
18419 hardcode_libdir_flag_spec_CXX='-L$libdir'
18420 hardcode_libdir_separator_CXX=
18421 fi
18422 esac
18423 shared_flag='-shared'
18424 if test "$aix_use_runtimelinking" = yes; then
18425 shared_flag="$shared_flag "'${wl}-G'
18426 fi
18427 else
18428 # not using gcc
18429 if test "$host_cpu" = ia64; then
18430 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18431 # chokes on -Wl,-G. The following line is correct:
18432 shared_flag='-G'
18433 else
18434 if test "$aix_use_runtimelinking" = yes; then
18435 shared_flag='${wl}-G'
18436 else
18437 shared_flag='${wl}-bM:SRE'
18438 fi
18439 fi
18440 fi
18441
18442 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18443 # It seems that -bexpall does not export symbols beginning with
18444 # underscore (_), so it is better to generate a list of symbols to
18445 # export.
18446 always_export_symbols_CXX=yes
18447 if test "$aix_use_runtimelinking" = yes; then
18448 # Warning - without using the other runtime loading flags (-brtl),
18449 # -berok will link without error, but may produce a broken library.
18450 allow_undefined_flag_CXX='-berok'
18451 # Determine the default libpath from the value encoded in an empty
18452 # executable.
cristyda16f162011-02-19 23:52:17 +000018453 if test "${lt_cv_aix_libpath+set}" = set; then
18454 aix_libpath=$lt_cv_aix_libpath
18455else
18456 if ${lt_cv_aix_libpath__CXX+:} false; then :
18457 $as_echo_n "(cached) " >&6
18458else
18459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018460/* end confdefs.h. */
18461
18462int
18463main ()
18464{
18465
18466 ;
18467 return 0;
18468}
18469_ACEOF
18470if ac_fn_cxx_try_link "$LINENO"; then :
18471
cristyda16f162011-02-19 23:52:17 +000018472 lt_aix_libpath_sed='
18473 /Import File Strings/,/^$/ {
18474 /^0/ {
18475 s/^0 *\([^ ]*\) *$/\1/
18476 p
18477 }
18478 }'
18479 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18480 # Check for a 64-bit object if we didn't find anything.
18481 if test -z "$lt_cv_aix_libpath__CXX"; then
18482 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18483 fi
cristy73bd4a52010-10-05 11:24:23 +000018484fi
18485rm -f core conftest.err conftest.$ac_objext \
18486 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018487 if test -z "$lt_cv_aix_libpath__CXX"; then
18488 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18489 fi
18490
18491fi
18492
18493 aix_libpath=$lt_cv_aix_libpath__CXX
18494fi
cristy73bd4a52010-10-05 11:24:23 +000018495
18496 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18497
cristy0c60a692010-11-04 01:09:47 +000018498 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 +000018499 else
18500 if test "$host_cpu" = ia64; then
18501 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18502 allow_undefined_flag_CXX="-z nodefs"
18503 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"
18504 else
18505 # Determine the default libpath from the value encoded in an
18506 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018507 if test "${lt_cv_aix_libpath+set}" = set; then
18508 aix_libpath=$lt_cv_aix_libpath
18509else
18510 if ${lt_cv_aix_libpath__CXX+:} false; then :
18511 $as_echo_n "(cached) " >&6
18512else
18513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018514/* end confdefs.h. */
18515
18516int
18517main ()
18518{
18519
18520 ;
18521 return 0;
18522}
18523_ACEOF
18524if ac_fn_cxx_try_link "$LINENO"; then :
18525
cristyda16f162011-02-19 23:52:17 +000018526 lt_aix_libpath_sed='
18527 /Import File Strings/,/^$/ {
18528 /^0/ {
18529 s/^0 *\([^ ]*\) *$/\1/
18530 p
18531 }
18532 }'
18533 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18534 # Check for a 64-bit object if we didn't find anything.
18535 if test -z "$lt_cv_aix_libpath__CXX"; then
18536 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18537 fi
cristy73bd4a52010-10-05 11:24:23 +000018538fi
18539rm -f core conftest.err conftest.$ac_objext \
18540 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018541 if test -z "$lt_cv_aix_libpath__CXX"; then
18542 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18543 fi
18544
18545fi
18546
18547 aix_libpath=$lt_cv_aix_libpath__CXX
18548fi
cristy73bd4a52010-10-05 11:24:23 +000018549
18550 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18551 # Warning - without using the other run time loading flags,
18552 # -berok will link without error, but may produce a broken library.
18553 no_undefined_flag_CXX=' ${wl}-bernotok'
18554 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018555 if test "$with_gnu_ld" = yes; then
18556 # We only use this code for GNU lds that support --whole-archive.
18557 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18558 else
18559 # Exported symbols can be pulled into shared objects from archives
18560 whole_archive_flag_spec_CXX='$convenience'
18561 fi
cristy73bd4a52010-10-05 11:24:23 +000018562 archive_cmds_need_lc_CXX=yes
18563 # This is similar to how AIX traditionally builds its shared
18564 # libraries.
18565 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'
18566 fi
18567 fi
18568 ;;
18569
18570 beos*)
18571 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18572 allow_undefined_flag_CXX=unsupported
18573 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18574 # support --undefined. This deserves some investigation. FIXME
18575 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18576 else
18577 ld_shlibs_CXX=no
18578 fi
18579 ;;
18580
18581 chorus*)
18582 case $cc_basename in
18583 *)
18584 # FIXME: insert proper C++ library support
18585 ld_shlibs_CXX=no
18586 ;;
18587 esac
18588 ;;
18589
18590 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018591 case $GXX,$cc_basename in
18592 ,cl* | no,cl*)
18593 # Native MSVC
18594 # hardcode_libdir_flag_spec is actually meaningless, as there is
18595 # no search path for DLLs.
18596 hardcode_libdir_flag_spec_CXX=' '
18597 allow_undefined_flag_CXX=unsupported
18598 always_export_symbols_CXX=yes
18599 file_list_spec_CXX='@'
18600 # Tell ltmain to make .lib files, not .a files.
18601 libext=lib
18602 # Tell ltmain to make .dll files, not .so files.
18603 shrext_cmds=".dll"
18604 # FIXME: Setting linknames here is a bad hack.
18605 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18606 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18607 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18608 else
18609 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18610 fi~
18611 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18612 linknames='
18613 # The linker will not automatically build a static lib if we build a DLL.
18614 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18615 enable_shared_with_static_runtimes_CXX=yes
18616 # Don't use ranlib
18617 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18618 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18619 lt_tool_outputfile="@TOOL_OUTPUT@"~
18620 case $lt_outputfile in
18621 *.exe|*.EXE) ;;
18622 *)
18623 lt_outputfile="$lt_outputfile.exe"
18624 lt_tool_outputfile="$lt_tool_outputfile.exe"
18625 ;;
18626 esac~
18627 func_to_tool_file "$lt_outputfile"~
18628 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18629 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18630 $RM "$lt_outputfile.manifest";
18631 fi'
18632 ;;
18633 *)
18634 # g++
18635 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18636 # as there is no search path for DLLs.
18637 hardcode_libdir_flag_spec_CXX='-L$libdir'
18638 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18639 allow_undefined_flag_CXX=unsupported
18640 always_export_symbols_CXX=no
18641 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018642
cristyda16f162011-02-19 23:52:17 +000018643 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18644 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'
18645 # If the export-symbols file already is a .def file (1st line
18646 # is EXPORTS), use it as is; otherwise, prepend...
18647 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18648 cp $export_symbols $output_objdir/$soname.def;
18649 else
18650 echo EXPORTS > $output_objdir/$soname.def;
18651 cat $export_symbols >> $output_objdir/$soname.def;
18652 fi~
18653 $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'
18654 else
18655 ld_shlibs_CXX=no
18656 fi
18657 ;;
18658 esac
18659 ;;
cristy73bd4a52010-10-05 11:24:23 +000018660 darwin* | rhapsody*)
18661
18662
18663 archive_cmds_need_lc_CXX=no
18664 hardcode_direct_CXX=no
18665 hardcode_automatic_CXX=yes
18666 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018667 if test "$lt_cv_ld_force_load" = "yes"; then
18668 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 +000018669
cristy0c60a692010-11-04 01:09:47 +000018670 else
18671 whole_archive_flag_spec_CXX=''
18672 fi
cristy73bd4a52010-10-05 11:24:23 +000018673 link_all_deplibs_CXX=yes
18674 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18675 case $cc_basename in
18676 ifort*) _lt_dar_can_shared=yes ;;
18677 *) _lt_dar_can_shared=$GCC ;;
18678 esac
18679 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018680 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018681 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}"
18682 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18683 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}"
18684 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}"
18685 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18686 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}"
18687 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}"
18688 fi
18689
18690 else
18691 ld_shlibs_CXX=no
18692 fi
18693
18694 ;;
18695
18696 dgux*)
18697 case $cc_basename in
18698 ec++*)
18699 # FIXME: insert proper C++ library support
18700 ld_shlibs_CXX=no
18701 ;;
18702 ghcx*)
18703 # Green Hills C++ Compiler
18704 # FIXME: insert proper C++ library support
18705 ld_shlibs_CXX=no
18706 ;;
18707 *)
18708 # FIXME: insert proper C++ library support
18709 ld_shlibs_CXX=no
18710 ;;
18711 esac
18712 ;;
18713
cristy99bd5232011-12-07 14:38:20 +000018714 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018715 # C++ shared libraries reported to be fairly broken before
18716 # switch to ELF
18717 ld_shlibs_CXX=no
18718 ;;
18719
18720 freebsd-elf*)
18721 archive_cmds_need_lc_CXX=no
18722 ;;
18723
18724 freebsd* | dragonfly*)
18725 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18726 # conventions
18727 ld_shlibs_CXX=yes
18728 ;;
18729
18730 gnu*)
18731 ;;
18732
cristy0c60a692010-11-04 01:09:47 +000018733 haiku*)
18734 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18735 link_all_deplibs_CXX=yes
18736 ;;
18737
cristy73bd4a52010-10-05 11:24:23 +000018738 hpux9*)
18739 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18740 hardcode_libdir_separator_CXX=:
18741 export_dynamic_flag_spec_CXX='${wl}-E'
18742 hardcode_direct_CXX=yes
18743 hardcode_minus_L_CXX=yes # Not in the search PATH,
18744 # but as the default
18745 # location of the library.
18746
18747 case $cc_basename in
18748 CC*)
18749 # FIXME: insert proper C++ library support
18750 ld_shlibs_CXX=no
18751 ;;
18752 aCC*)
18753 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'
18754 # Commands to make compiler produce verbose output that lists
18755 # what "hidden" libraries, object files and flags are used when
18756 # linking a shared library.
18757 #
18758 # There doesn't appear to be a way to prevent this compiler from
18759 # explicitly linking system object files so we need to strip them
18760 # from the output so that they don't get included in the library
18761 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018762 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 +000018763 ;;
18764 *)
18765 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018766 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 +000018767 else
18768 # FIXME: insert proper C++ library support
18769 ld_shlibs_CXX=no
18770 fi
18771 ;;
18772 esac
18773 ;;
18774
18775 hpux10*|hpux11*)
18776 if test $with_gnu_ld = no; then
18777 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18778 hardcode_libdir_separator_CXX=:
18779
18780 case $host_cpu in
18781 hppa*64*|ia64*)
18782 ;;
18783 *)
18784 export_dynamic_flag_spec_CXX='${wl}-E'
18785 ;;
18786 esac
18787 fi
18788 case $host_cpu in
18789 hppa*64*|ia64*)
18790 hardcode_direct_CXX=no
18791 hardcode_shlibpath_var_CXX=no
18792 ;;
18793 *)
18794 hardcode_direct_CXX=yes
18795 hardcode_direct_absolute_CXX=yes
18796 hardcode_minus_L_CXX=yes # Not in the search PATH,
18797 # but as the default
18798 # location of the library.
18799 ;;
18800 esac
18801
18802 case $cc_basename in
18803 CC*)
18804 # FIXME: insert proper C++ library support
18805 ld_shlibs_CXX=no
18806 ;;
18807 aCC*)
18808 case $host_cpu in
18809 hppa*64*)
18810 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18811 ;;
18812 ia64*)
18813 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18814 ;;
18815 *)
18816 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18817 ;;
18818 esac
18819 # Commands to make compiler produce verbose output that lists
18820 # what "hidden" libraries, object files and flags are used when
18821 # linking a shared library.
18822 #
18823 # There doesn't appear to be a way to prevent this compiler from
18824 # explicitly linking system object files so we need to strip them
18825 # from the output so that they don't get included in the library
18826 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018827 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 +000018828 ;;
18829 *)
18830 if test "$GXX" = yes; then
18831 if test $with_gnu_ld = no; then
18832 case $host_cpu in
18833 hppa*64*)
18834 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18835 ;;
18836 ia64*)
cristyda16f162011-02-19 23:52:17 +000018837 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 +000018838 ;;
18839 *)
cristyda16f162011-02-19 23:52:17 +000018840 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 +000018841 ;;
18842 esac
18843 fi
18844 else
18845 # FIXME: insert proper C++ library support
18846 ld_shlibs_CXX=no
18847 fi
18848 ;;
18849 esac
18850 ;;
18851
18852 interix[3-9]*)
18853 hardcode_direct_CXX=no
18854 hardcode_shlibpath_var_CXX=no
18855 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18856 export_dynamic_flag_spec_CXX='${wl}-E'
18857 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18858 # Instead, shared libraries are loaded at an image base (0x10000000 by
18859 # default) and relocated if they conflict, which is a slow very memory
18860 # consuming and fragmenting process. To avoid this, we pick a random,
18861 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18862 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18863 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'
18864 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'
18865 ;;
18866 irix5* | irix6*)
18867 case $cc_basename in
18868 CC*)
18869 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018870 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 +000018871
18872 # Archives containing C++ object files must be created using
18873 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18874 # necessary to make sure instantiated templates are included
18875 # in the archive.
18876 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18877 ;;
18878 *)
18879 if test "$GXX" = yes; then
18880 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018881 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 +000018882 else
cristyda16f162011-02-19 23:52:17 +000018883 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 +000018884 fi
18885 fi
18886 link_all_deplibs_CXX=yes
18887 ;;
18888 esac
18889 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18890 hardcode_libdir_separator_CXX=:
18891 inherit_rpath_CXX=yes
18892 ;;
18893
cristy0c60a692010-11-04 01:09:47 +000018894 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018895 case $cc_basename in
18896 KCC*)
18897 # Kuck and Associates, Inc. (KAI) C++ Compiler
18898
18899 # KCC will only create a shared library if the output file
18900 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18901 # to its proper name (with version) after linking.
18902 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'
18903 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'
18904 # Commands to make compiler produce verbose output that lists
18905 # what "hidden" libraries, object files and flags are used when
18906 # linking a shared library.
18907 #
18908 # There doesn't appear to be a way to prevent this compiler from
18909 # explicitly linking system object files so we need to strip them
18910 # from the output so that they don't get included in the library
18911 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018912 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 +000018913
18914 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18915 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18916
18917 # Archives containing C++ object files must be created using
18918 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18919 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18920 ;;
18921 icpc* | ecpc* )
18922 # Intel C++
18923 with_gnu_ld=yes
18924 # version 8.0 and above of icpc choke on multiply defined symbols
18925 # if we add $predep_objects and $postdep_objects, however 7.1 and
18926 # earlier do not add the objects themselves.
18927 case `$CC -V 2>&1` in
18928 *"Version 7."*)
18929 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18930 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'
18931 ;;
18932 *) # Version 8.0 or newer
18933 tmp_idyn=
18934 case $host_cpu in
18935 ia64*) tmp_idyn=' -i_dynamic';;
18936 esac
18937 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18938 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'
18939 ;;
18940 esac
18941 archive_cmds_need_lc_CXX=no
18942 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18943 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18944 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18945 ;;
18946 pgCC* | pgcpp*)
18947 # Portland Group C++ compiler
18948 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018949 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018950 prelink_cmds_CXX='tpldir=Template.dir~
18951 rm -rf $tpldir~
18952 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018953 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018954 old_archive_cmds_CXX='tpldir=Template.dir~
18955 rm -rf $tpldir~
18956 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018957 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018958 $RANLIB $oldlib'
18959 archive_cmds_CXX='tpldir=Template.dir~
18960 rm -rf $tpldir~
18961 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018962 $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 +000018963 archive_expsym_cmds_CXX='tpldir=Template.dir~
18964 rm -rf $tpldir~
18965 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018966 $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 +000018967 ;;
cristy0c60a692010-11-04 01:09:47 +000018968 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018969 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18970 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'
18971 ;;
18972 esac
18973
18974 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18975 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018976 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 +000018977 ;;
18978 cxx*)
18979 # Compaq C++
18980 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18981 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'
18982
18983 runpath_var=LD_RUN_PATH
18984 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18985 hardcode_libdir_separator_CXX=:
18986
18987 # Commands to make compiler produce verbose output that lists
18988 # what "hidden" libraries, object files and flags are used when
18989 # linking a shared library.
18990 #
18991 # There doesn't appear to be a way to prevent this compiler from
18992 # explicitly linking system object files so we need to strip them
18993 # from the output so that they don't get included in the library
18994 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018995 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 +000018996 ;;
cristy0c60a692010-11-04 01:09:47 +000018997 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018998 # IBM XL 8.0 on PPC, with GNU ld
18999 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19000 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19001 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19002 if test "x$supports_anon_versioning" = xyes; then
19003 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19004 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19005 echo "local: *; };" >> $output_objdir/$libname.ver~
19006 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19007 fi
19008 ;;
19009 *)
19010 case `$CC -V 2>&1 | sed 5q` in
19011 *Sun\ C*)
19012 # Sun C++ 5.9
19013 no_undefined_flag_CXX=' -zdefs'
19014 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19015 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'
19016 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019017 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 +000019018 compiler_needs_object_CXX=yes
19019
19020 # Not sure whether something based on
19021 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19022 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019023 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019024
19025 # Archives containing C++ object files must be created using
19026 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19027 # necessary to make sure instantiated templates are included
19028 # in the archive.
19029 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19030 ;;
19031 esac
19032 ;;
19033 esac
19034 ;;
19035
19036 lynxos*)
19037 # FIXME: insert proper C++ library support
19038 ld_shlibs_CXX=no
19039 ;;
19040
19041 m88k*)
19042 # FIXME: insert proper C++ library support
19043 ld_shlibs_CXX=no
19044 ;;
19045
19046 mvs*)
19047 case $cc_basename in
19048 cxx*)
19049 # FIXME: insert proper C++ library support
19050 ld_shlibs_CXX=no
19051 ;;
19052 *)
19053 # FIXME: insert proper C++ library support
19054 ld_shlibs_CXX=no
19055 ;;
19056 esac
19057 ;;
19058
19059 netbsd*)
19060 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19061 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19062 wlarc=
19063 hardcode_libdir_flag_spec_CXX='-R$libdir'
19064 hardcode_direct_CXX=yes
19065 hardcode_shlibpath_var_CXX=no
19066 fi
19067 # Workaround some broken pre-1.5 toolchains
19068 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19069 ;;
19070
19071 *nto* | *qnx*)
19072 ld_shlibs_CXX=yes
19073 ;;
19074
19075 openbsd2*)
19076 # C++ shared libraries are fairly broken
19077 ld_shlibs_CXX=no
19078 ;;
19079
19080 openbsd*)
19081 if test -f /usr/libexec/ld.so; then
19082 hardcode_direct_CXX=yes
19083 hardcode_shlibpath_var_CXX=no
19084 hardcode_direct_absolute_CXX=yes
19085 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19086 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19087 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19088 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19089 export_dynamic_flag_spec_CXX='${wl}-E'
19090 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19091 fi
cristy0c60a692010-11-04 01:09:47 +000019092 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019093 else
19094 ld_shlibs_CXX=no
19095 fi
19096 ;;
19097
19098 osf3* | osf4* | osf5*)
19099 case $cc_basename in
19100 KCC*)
19101 # Kuck and Associates, Inc. (KAI) C++ Compiler
19102
19103 # KCC will only create a shared library if the output file
19104 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19105 # to its proper name (with version) after linking.
19106 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'
19107
19108 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19109 hardcode_libdir_separator_CXX=:
19110
19111 # Archives containing C++ object files must be created using
19112 # the KAI C++ compiler.
19113 case $host in
19114 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19115 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19116 esac
19117 ;;
19118 RCC*)
19119 # Rational C++ 2.4.1
19120 # FIXME: insert proper C++ library support
19121 ld_shlibs_CXX=no
19122 ;;
19123 cxx*)
19124 case $host in
19125 osf3*)
19126 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019127 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 +000019128 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19129 ;;
19130 *)
19131 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019132 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 +000019133 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19134 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019135 $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 +000019136 $RM $lib.exp'
19137 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19138 ;;
19139 esac
19140
19141 hardcode_libdir_separator_CXX=:
19142
19143 # Commands to make compiler produce verbose output that lists
19144 # what "hidden" libraries, object files and flags are used when
19145 # linking a shared library.
19146 #
19147 # There doesn't appear to be a way to prevent this compiler from
19148 # explicitly linking system object files so we need to strip them
19149 # from the output so that they don't get included in the library
19150 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019151 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 +000019152 ;;
19153 *)
19154 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19155 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19156 case $host in
19157 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019158 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 +000019159 ;;
19160 *)
cristyda16f162011-02-19 23:52:17 +000019161 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 +000019162 ;;
19163 esac
19164
19165 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19166 hardcode_libdir_separator_CXX=:
19167
19168 # Commands to make compiler produce verbose output that lists
19169 # what "hidden" libraries, object files and flags are used when
19170 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019171 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019172
19173 else
19174 # FIXME: insert proper C++ library support
19175 ld_shlibs_CXX=no
19176 fi
19177 ;;
19178 esac
19179 ;;
19180
19181 psos*)
19182 # FIXME: insert proper C++ library support
19183 ld_shlibs_CXX=no
19184 ;;
19185
19186 sunos4*)
19187 case $cc_basename in
19188 CC*)
19189 # Sun C++ 4.x
19190 # FIXME: insert proper C++ library support
19191 ld_shlibs_CXX=no
19192 ;;
19193 lcc*)
19194 # Lucid
19195 # FIXME: insert proper C++ library support
19196 ld_shlibs_CXX=no
19197 ;;
19198 *)
19199 # FIXME: insert proper C++ library support
19200 ld_shlibs_CXX=no
19201 ;;
19202 esac
19203 ;;
19204
19205 solaris*)
19206 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019207 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019208 # Sun C++ 4.2, 5.x and Centerline C++
19209 archive_cmds_need_lc_CXX=yes
19210 no_undefined_flag_CXX=' -zdefs'
19211 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19212 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19213 $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'
19214
19215 hardcode_libdir_flag_spec_CXX='-R$libdir'
19216 hardcode_shlibpath_var_CXX=no
19217 case $host_os in
19218 solaris2.[0-5] | solaris2.[0-5].*) ;;
19219 *)
19220 # The compiler driver will combine and reorder linker options,
19221 # but understands `-z linker_flag'.
19222 # Supported since Solaris 2.6 (maybe 2.5.1?)
19223 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19224 ;;
19225 esac
19226 link_all_deplibs_CXX=yes
19227
cristy0c60a692010-11-04 01:09:47 +000019228 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019229
19230 # Archives containing C++ object files must be created using
19231 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19232 # necessary to make sure instantiated templates are included
19233 # in the archive.
19234 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19235 ;;
19236 gcx*)
19237 # Green Hills C++ Compiler
19238 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19239
19240 # The C++ compiler must be used to create the archive.
19241 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19242 ;;
19243 *)
19244 # GNU C++ compiler with Solaris linker
19245 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19246 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19247 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019248 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 +000019249 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 +000019250 $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 +000019251
19252 # Commands to make compiler produce verbose output that lists
19253 # what "hidden" libraries, object files and flags are used when
19254 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019255 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019256 else
19257 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19258 # platform.
19259 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19260 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19261 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19262
19263 # Commands to make compiler produce verbose output that lists
19264 # what "hidden" libraries, object files and flags are used when
19265 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019266 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019267 fi
19268
19269 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19270 case $host_os in
19271 solaris2.[0-5] | solaris2.[0-5].*) ;;
19272 *)
19273 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19274 ;;
19275 esac
19276 fi
19277 ;;
19278 esac
19279 ;;
19280
19281 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19282 no_undefined_flag_CXX='${wl}-z,text'
19283 archive_cmds_need_lc_CXX=no
19284 hardcode_shlibpath_var_CXX=no
19285 runpath_var='LD_RUN_PATH'
19286
19287 case $cc_basename in
19288 CC*)
19289 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19290 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19291 ;;
19292 *)
19293 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19294 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19295 ;;
19296 esac
19297 ;;
19298
19299 sysv5* | sco3.2v5* | sco5v6*)
19300 # Note: We can NOT use -z defs as we might desire, because we do not
19301 # link with -lc, and that would cause any symbols used from libc to
19302 # always be unresolved, which means just about no library would
19303 # ever link correctly. If we're not using GNU ld we use -z text
19304 # though, which does catch some bad symbols but isn't as heavy-handed
19305 # as -z defs.
19306 no_undefined_flag_CXX='${wl}-z,text'
19307 allow_undefined_flag_CXX='${wl}-z,nodefs'
19308 archive_cmds_need_lc_CXX=no
19309 hardcode_shlibpath_var_CXX=no
19310 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19311 hardcode_libdir_separator_CXX=':'
19312 link_all_deplibs_CXX=yes
19313 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19314 runpath_var='LD_RUN_PATH'
19315
19316 case $cc_basename in
19317 CC*)
19318 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19319 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 +000019320 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19321 '"$old_archive_cmds_CXX"
19322 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19323 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019324 ;;
19325 *)
19326 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19327 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19328 ;;
19329 esac
19330 ;;
19331
19332 tandem*)
19333 case $cc_basename in
19334 NCC*)
19335 # NonStop-UX NCC 3.20
19336 # FIXME: insert proper C++ library support
19337 ld_shlibs_CXX=no
19338 ;;
19339 *)
19340 # FIXME: insert proper C++ library support
19341 ld_shlibs_CXX=no
19342 ;;
19343 esac
19344 ;;
19345
19346 vxworks*)
19347 # FIXME: insert proper C++ library support
19348 ld_shlibs_CXX=no
19349 ;;
19350
19351 *)
19352 # FIXME: insert proper C++ library support
19353 ld_shlibs_CXX=no
19354 ;;
19355 esac
19356
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19358$as_echo "$ld_shlibs_CXX" >&6; }
19359 test "$ld_shlibs_CXX" = no && can_build_shared=no
19360
19361 GCC_CXX="$GXX"
19362 LD_CXX="$LD"
19363
19364 ## CAVEAT EMPTOR:
19365 ## There is no encapsulation within the following macros, do not change
19366 ## the running order or otherwise move them around unless you know exactly
19367 ## what you are doing...
19368 # Dependencies to place before and after the object being linked:
19369predep_objects_CXX=
19370postdep_objects_CXX=
19371predeps_CXX=
19372postdeps_CXX=
19373compiler_lib_search_path_CXX=
19374
19375cat > conftest.$ac_ext <<_LT_EOF
19376class Foo
19377{
19378public:
19379 Foo (void) { a = 0; }
19380private:
19381 int a;
19382};
19383_LT_EOF
19384
cristyda16f162011-02-19 23:52:17 +000019385
19386_lt_libdeps_save_CFLAGS=$CFLAGS
19387case "$CC $CFLAGS " in #(
19388*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19389*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019390*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019391esac
19392
cristy73bd4a52010-10-05 11:24:23 +000019393if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19394 (eval $ac_compile) 2>&5
19395 ac_status=$?
19396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19397 test $ac_status = 0; }; then
19398 # Parse the compiler output and extract the necessary
19399 # objects, libraries and library flags.
19400
19401 # Sentinel used to keep track of whether or not we are before
19402 # the conftest object file.
19403 pre_test_object_deps_done=no
19404
19405 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019406 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019407
19408 -L* | -R* | -l*)
19409 # Some compilers place space between "-{L,R}" and the path.
19410 # Remove the space.
19411 if test $p = "-L" ||
19412 test $p = "-R"; then
19413 prev=$p
19414 continue
cristy73bd4a52010-10-05 11:24:23 +000019415 fi
19416
cristyda16f162011-02-19 23:52:17 +000019417 # Expand the sysroot to ease extracting the directories later.
19418 if test -z "$prev"; then
19419 case $p in
19420 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19421 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19422 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19423 esac
19424 fi
19425 case $p in
19426 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19427 esac
cristy73bd4a52010-10-05 11:24:23 +000019428 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019429 case ${prev} in
19430 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019431 # Internal compiler library paths should come after those
19432 # provided the user. The postdeps already come after the
19433 # user supplied libs so there is no need to process them.
19434 if test -z "$compiler_lib_search_path_CXX"; then
19435 compiler_lib_search_path_CXX="${prev}${p}"
19436 else
19437 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19438 fi
19439 ;;
19440 # The "-l" case would never come before the object being
19441 # linked, so don't bother handling this case.
19442 esac
19443 else
19444 if test -z "$postdeps_CXX"; then
19445 postdeps_CXX="${prev}${p}"
19446 else
19447 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19448 fi
19449 fi
cristyda16f162011-02-19 23:52:17 +000019450 prev=
cristy73bd4a52010-10-05 11:24:23 +000019451 ;;
19452
cristyda16f162011-02-19 23:52:17 +000019453 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019454 *.$objext)
19455 # This assumes that the test object file only shows up
19456 # once in the compiler output.
19457 if test "$p" = "conftest.$objext"; then
19458 pre_test_object_deps_done=yes
19459 continue
19460 fi
19461
19462 if test "$pre_test_object_deps_done" = no; then
19463 if test -z "$predep_objects_CXX"; then
19464 predep_objects_CXX="$p"
19465 else
19466 predep_objects_CXX="$predep_objects_CXX $p"
19467 fi
19468 else
19469 if test -z "$postdep_objects_CXX"; then
19470 postdep_objects_CXX="$p"
19471 else
19472 postdep_objects_CXX="$postdep_objects_CXX $p"
19473 fi
19474 fi
19475 ;;
19476
19477 *) ;; # Ignore the rest.
19478
19479 esac
19480 done
19481
19482 # Clean up.
19483 rm -f a.out a.exe
19484else
19485 echo "libtool.m4: error: problem compiling CXX test program"
19486fi
19487
19488$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019489CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019490
19491# PORTME: override above test on systems where it is broken
19492case $host_os in
19493interix[3-9]*)
19494 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19495 # hack all around it, let's just trust "g++" to DTRT.
19496 predep_objects_CXX=
19497 postdep_objects_CXX=
19498 postdeps_CXX=
19499 ;;
19500
19501linux*)
19502 case `$CC -V 2>&1 | sed 5q` in
19503 *Sun\ C*)
19504 # Sun C++ 5.9
19505
19506 # The more standards-conforming stlport4 library is
19507 # incompatible with the Cstd library. Avoid specifying
19508 # it if it's in CXXFLAGS. Ignore libCrun as
19509 # -library=stlport4 depends on it.
19510 case " $CXX $CXXFLAGS " in
19511 *" -library=stlport4 "*)
19512 solaris_use_stlport4=yes
19513 ;;
19514 esac
19515
19516 if test "$solaris_use_stlport4" != yes; then
19517 postdeps_CXX='-library=Cstd -library=Crun'
19518 fi
19519 ;;
19520 esac
19521 ;;
19522
19523solaris*)
19524 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019525 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019526 # The more standards-conforming stlport4 library is
19527 # incompatible with the Cstd library. Avoid specifying
19528 # it if it's in CXXFLAGS. Ignore libCrun as
19529 # -library=stlport4 depends on it.
19530 case " $CXX $CXXFLAGS " in
19531 *" -library=stlport4 "*)
19532 solaris_use_stlport4=yes
19533 ;;
19534 esac
19535
19536 # Adding this requires a known-good setup of shared libraries for
19537 # Sun compiler versions before 5.6, else PIC objects from an old
19538 # archive will be linked into the output, leading to subtle bugs.
19539 if test "$solaris_use_stlport4" != yes; then
19540 postdeps_CXX='-library=Cstd -library=Crun'
19541 fi
19542 ;;
19543 esac
19544 ;;
19545esac
19546
19547
19548case " $postdeps_CXX " in
19549*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19550esac
19551 compiler_lib_search_dirs_CXX=
19552if test -n "${compiler_lib_search_path_CXX}"; then
19553 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19554fi
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586 lt_prog_compiler_wl_CXX=
19587lt_prog_compiler_pic_CXX=
19588lt_prog_compiler_static_CXX=
19589
cristy73bd4a52010-10-05 11:24:23 +000019590
19591 # C++ specific cases for pic, static, wl, etc.
19592 if test "$GXX" = yes; then
19593 lt_prog_compiler_wl_CXX='-Wl,'
19594 lt_prog_compiler_static_CXX='-static'
19595
19596 case $host_os in
19597 aix*)
19598 # All AIX code is PIC.
19599 if test "$host_cpu" = ia64; then
19600 # AIX 5 now supports IA64 processor
19601 lt_prog_compiler_static_CXX='-Bstatic'
19602 fi
19603 ;;
19604
19605 amigaos*)
19606 case $host_cpu in
19607 powerpc)
19608 # see comment about AmigaOS4 .so support
19609 lt_prog_compiler_pic_CXX='-fPIC'
19610 ;;
19611 m68k)
19612 # FIXME: we need at least 68020 code to build shared libraries, but
19613 # adding the `-m68020' flag to GCC prevents building anything better,
19614 # like `-m68040'.
19615 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19616 ;;
19617 esac
19618 ;;
19619
19620 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19621 # PIC is the default for these OSes.
19622 ;;
19623 mingw* | cygwin* | os2* | pw32* | cegcc*)
19624 # This hack is so that the source file can tell whether it is being
19625 # built for inclusion in a dll (and should export symbols for example).
19626 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19627 # (--disable-auto-import) libraries
19628 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19629 ;;
19630 darwin* | rhapsody*)
19631 # PIC is the default on this platform
19632 # Common symbols not allowed in MH_DYLIB files
19633 lt_prog_compiler_pic_CXX='-fno-common'
19634 ;;
19635 *djgpp*)
19636 # DJGPP does not support shared libraries at all
19637 lt_prog_compiler_pic_CXX=
19638 ;;
cristy0c60a692010-11-04 01:09:47 +000019639 haiku*)
19640 # PIC is the default for Haiku.
19641 # The "-static" flag exists, but is broken.
19642 lt_prog_compiler_static_CXX=
19643 ;;
cristy73bd4a52010-10-05 11:24:23 +000019644 interix[3-9]*)
19645 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19646 # Instead, we relocate shared libraries at runtime.
19647 ;;
19648 sysv4*MP*)
19649 if test -d /usr/nec; then
19650 lt_prog_compiler_pic_CXX=-Kconform_pic
19651 fi
19652 ;;
19653 hpux*)
19654 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19655 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19656 # sets the default TLS model and affects inlining.
19657 case $host_cpu in
19658 hppa*64*)
19659 ;;
19660 *)
19661 lt_prog_compiler_pic_CXX='-fPIC'
19662 ;;
19663 esac
19664 ;;
19665 *qnx* | *nto*)
19666 # QNX uses GNU C++, but need to define -shared option too, otherwise
19667 # it will coredump.
19668 lt_prog_compiler_pic_CXX='-fPIC -shared'
19669 ;;
19670 *)
19671 lt_prog_compiler_pic_CXX='-fPIC'
19672 ;;
19673 esac
19674 else
19675 case $host_os in
19676 aix[4-9]*)
19677 # All AIX code is PIC.
19678 if test "$host_cpu" = ia64; then
19679 # AIX 5 now supports IA64 processor
19680 lt_prog_compiler_static_CXX='-Bstatic'
19681 else
19682 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19683 fi
19684 ;;
19685 chorus*)
19686 case $cc_basename in
19687 cxch68*)
19688 # Green Hills C++ Compiler
19689 # _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"
19690 ;;
19691 esac
19692 ;;
cristyda16f162011-02-19 23:52:17 +000019693 mingw* | cygwin* | os2* | pw32* | cegcc*)
19694 # This hack is so that the source file can tell whether it is being
19695 # built for inclusion in a dll (and should export symbols for example).
19696 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19697 ;;
cristy73bd4a52010-10-05 11:24:23 +000019698 dgux*)
19699 case $cc_basename in
19700 ec++*)
19701 lt_prog_compiler_pic_CXX='-KPIC'
19702 ;;
19703 ghcx*)
19704 # Green Hills C++ Compiler
19705 lt_prog_compiler_pic_CXX='-pic'
19706 ;;
19707 *)
19708 ;;
19709 esac
19710 ;;
19711 freebsd* | dragonfly*)
19712 # FreeBSD uses GNU C++
19713 ;;
19714 hpux9* | hpux10* | hpux11*)
19715 case $cc_basename in
19716 CC*)
19717 lt_prog_compiler_wl_CXX='-Wl,'
19718 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19719 if test "$host_cpu" != ia64; then
19720 lt_prog_compiler_pic_CXX='+Z'
19721 fi
19722 ;;
19723 aCC*)
19724 lt_prog_compiler_wl_CXX='-Wl,'
19725 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19726 case $host_cpu in
19727 hppa*64*|ia64*)
19728 # +Z the default
19729 ;;
19730 *)
19731 lt_prog_compiler_pic_CXX='+Z'
19732 ;;
19733 esac
19734 ;;
19735 *)
19736 ;;
19737 esac
19738 ;;
19739 interix*)
19740 # This is c89, which is MS Visual C++ (no shared libs)
19741 # Anyone wants to do a port?
19742 ;;
19743 irix5* | irix6* | nonstopux*)
19744 case $cc_basename in
19745 CC*)
19746 lt_prog_compiler_wl_CXX='-Wl,'
19747 lt_prog_compiler_static_CXX='-non_shared'
19748 # CC pic flag -KPIC is the default.
19749 ;;
19750 *)
19751 ;;
19752 esac
19753 ;;
cristy0c60a692010-11-04 01:09:47 +000019754 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019755 case $cc_basename in
19756 KCC*)
19757 # KAI C++ Compiler
19758 lt_prog_compiler_wl_CXX='--backend -Wl,'
19759 lt_prog_compiler_pic_CXX='-fPIC'
19760 ;;
19761 ecpc* )
19762 # old Intel C++ for x86_64 which still supported -KPIC.
19763 lt_prog_compiler_wl_CXX='-Wl,'
19764 lt_prog_compiler_pic_CXX='-KPIC'
19765 lt_prog_compiler_static_CXX='-static'
19766 ;;
19767 icpc* )
19768 # Intel C++, used to be incompatible with GCC.
19769 # ICC 10 doesn't accept -KPIC any more.
19770 lt_prog_compiler_wl_CXX='-Wl,'
19771 lt_prog_compiler_pic_CXX='-fPIC'
19772 lt_prog_compiler_static_CXX='-static'
19773 ;;
19774 pgCC* | pgcpp*)
19775 # Portland Group C++ compiler
19776 lt_prog_compiler_wl_CXX='-Wl,'
19777 lt_prog_compiler_pic_CXX='-fpic'
19778 lt_prog_compiler_static_CXX='-Bstatic'
19779 ;;
19780 cxx*)
19781 # Compaq C++
19782 # Make sure the PIC flag is empty. It appears that all Alpha
19783 # Linux and Compaq Tru64 Unix objects are PIC.
19784 lt_prog_compiler_pic_CXX=
19785 lt_prog_compiler_static_CXX='-non_shared'
19786 ;;
cristy0c60a692010-11-04 01:09:47 +000019787 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19788 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019789 lt_prog_compiler_wl_CXX='-Wl,'
19790 lt_prog_compiler_pic_CXX='-qpic'
19791 lt_prog_compiler_static_CXX='-qstaticlink'
19792 ;;
19793 *)
19794 case `$CC -V 2>&1 | sed 5q` in
19795 *Sun\ C*)
19796 # Sun C++ 5.9
19797 lt_prog_compiler_pic_CXX='-KPIC'
19798 lt_prog_compiler_static_CXX='-Bstatic'
19799 lt_prog_compiler_wl_CXX='-Qoption ld '
19800 ;;
19801 esac
19802 ;;
19803 esac
19804 ;;
19805 lynxos*)
19806 ;;
19807 m88k*)
19808 ;;
19809 mvs*)
19810 case $cc_basename in
19811 cxx*)
19812 lt_prog_compiler_pic_CXX='-W c,exportall'
19813 ;;
19814 *)
19815 ;;
19816 esac
19817 ;;
19818 netbsd*)
19819 ;;
19820 *qnx* | *nto*)
19821 # QNX uses GNU C++, but need to define -shared option too, otherwise
19822 # it will coredump.
19823 lt_prog_compiler_pic_CXX='-fPIC -shared'
19824 ;;
19825 osf3* | osf4* | osf5*)
19826 case $cc_basename in
19827 KCC*)
19828 lt_prog_compiler_wl_CXX='--backend -Wl,'
19829 ;;
19830 RCC*)
19831 # Rational C++ 2.4.1
19832 lt_prog_compiler_pic_CXX='-pic'
19833 ;;
19834 cxx*)
19835 # Digital/Compaq C++
19836 lt_prog_compiler_wl_CXX='-Wl,'
19837 # Make sure the PIC flag is empty. It appears that all Alpha
19838 # Linux and Compaq Tru64 Unix objects are PIC.
19839 lt_prog_compiler_pic_CXX=
19840 lt_prog_compiler_static_CXX='-non_shared'
19841 ;;
19842 *)
19843 ;;
19844 esac
19845 ;;
19846 psos*)
19847 ;;
19848 solaris*)
19849 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019850 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019851 # Sun C++ 4.2, 5.x and Centerline C++
19852 lt_prog_compiler_pic_CXX='-KPIC'
19853 lt_prog_compiler_static_CXX='-Bstatic'
19854 lt_prog_compiler_wl_CXX='-Qoption ld '
19855 ;;
19856 gcx*)
19857 # Green Hills C++ Compiler
19858 lt_prog_compiler_pic_CXX='-PIC'
19859 ;;
19860 *)
19861 ;;
19862 esac
19863 ;;
19864 sunos4*)
19865 case $cc_basename in
19866 CC*)
19867 # Sun C++ 4.x
19868 lt_prog_compiler_pic_CXX='-pic'
19869 lt_prog_compiler_static_CXX='-Bstatic'
19870 ;;
19871 lcc*)
19872 # Lucid
19873 lt_prog_compiler_pic_CXX='-pic'
19874 ;;
19875 *)
19876 ;;
19877 esac
19878 ;;
19879 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19880 case $cc_basename in
19881 CC*)
19882 lt_prog_compiler_wl_CXX='-Wl,'
19883 lt_prog_compiler_pic_CXX='-KPIC'
19884 lt_prog_compiler_static_CXX='-Bstatic'
19885 ;;
19886 esac
19887 ;;
19888 tandem*)
19889 case $cc_basename in
19890 NCC*)
19891 # NonStop-UX NCC 3.20
19892 lt_prog_compiler_pic_CXX='-KPIC'
19893 ;;
19894 *)
19895 ;;
19896 esac
19897 ;;
19898 vxworks*)
19899 ;;
19900 *)
19901 lt_prog_compiler_can_build_shared_CXX=no
19902 ;;
19903 esac
19904 fi
19905
19906case $host_os in
19907 # For platforms which do not support PIC, -DPIC is meaningless:
19908 *djgpp*)
19909 lt_prog_compiler_pic_CXX=
19910 ;;
19911 *)
19912 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19913 ;;
19914esac
cristy73bd4a52010-10-05 11:24:23 +000019915
cristyda16f162011-02-19 23:52:17 +000019916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19917$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19918if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19919 $as_echo_n "(cached) " >&6
19920else
19921 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19922fi
19923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19924$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19925lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019926
19927#
19928# Check to make sure the PIC flag actually works.
19929#
19930if test -n "$lt_prog_compiler_pic_CXX"; then
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19932$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019933if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019934 $as_echo_n "(cached) " >&6
19935else
19936 lt_cv_prog_compiler_pic_works_CXX=no
19937 ac_outfile=conftest.$ac_objext
19938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19939 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19940 # Insert the option either (1) after the last *FLAGS variable, or
19941 # (2) before a word containing "conftest.", or (3) at the end.
19942 # Note that $ac_compile itself does not contain backslashes and begins
19943 # with a dollar sign (not a hyphen), so the echo should work correctly.
19944 # The option is referenced via a variable to avoid confusing sed.
19945 lt_compile=`echo "$ac_compile" | $SED \
19946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19948 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019949 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019950 (eval "$lt_compile" 2>conftest.err)
19951 ac_status=$?
19952 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019954 if (exit $ac_status) && test -s "$ac_outfile"; then
19955 # The compiler can only warn and ignore the option if not recognized
19956 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019958 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19959 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19960 lt_cv_prog_compiler_pic_works_CXX=yes
19961 fi
19962 fi
19963 $RM conftest*
19964
19965fi
19966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19967$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19968
19969if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19970 case $lt_prog_compiler_pic_CXX in
19971 "" | " "*) ;;
19972 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19973 esac
19974else
19975 lt_prog_compiler_pic_CXX=
19976 lt_prog_compiler_can_build_shared_CXX=no
19977fi
19978
19979fi
19980
19981
19982
cristyda16f162011-02-19 23:52:17 +000019983
19984
cristy73bd4a52010-10-05 11:24:23 +000019985#
19986# Check to make sure the static flag actually works.
19987#
19988wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19990$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019991if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019992 $as_echo_n "(cached) " >&6
19993else
19994 lt_cv_prog_compiler_static_works_CXX=no
19995 save_LDFLAGS="$LDFLAGS"
19996 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19997 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19998 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19999 # The linker can only warn and ignore the option if not recognized
20000 # So say no if there are warnings
20001 if test -s conftest.err; then
20002 # Append any errors to the config.log.
20003 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020004 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020005 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20006 if diff conftest.exp conftest.er2 >/dev/null; then
20007 lt_cv_prog_compiler_static_works_CXX=yes
20008 fi
20009 else
20010 lt_cv_prog_compiler_static_works_CXX=yes
20011 fi
20012 fi
20013 $RM -r conftest*
20014 LDFLAGS="$save_LDFLAGS"
20015
20016fi
20017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20018$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20019
20020if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20021 :
20022else
20023 lt_prog_compiler_static_CXX=
20024fi
20025
20026
20027
20028
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20030$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020031if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020032 $as_echo_n "(cached) " >&6
20033else
20034 lt_cv_prog_compiler_c_o_CXX=no
20035 $RM -r conftest 2>/dev/null
20036 mkdir conftest
20037 cd conftest
20038 mkdir out
20039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20040
20041 lt_compiler_flag="-o out/conftest2.$ac_objext"
20042 # Insert the option either (1) after the last *FLAGS variable, or
20043 # (2) before a word containing "conftest.", or (3) at the end.
20044 # Note that $ac_compile itself does not contain backslashes and begins
20045 # with a dollar sign (not a hyphen), so the echo should work correctly.
20046 lt_compile=`echo "$ac_compile" | $SED \
20047 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20049 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020050 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020051 (eval "$lt_compile" 2>out/conftest.err)
20052 ac_status=$?
20053 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020055 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20056 then
20057 # The compiler can only warn and ignore the option if not recognized
20058 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020060 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20061 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20062 lt_cv_prog_compiler_c_o_CXX=yes
20063 fi
20064 fi
20065 chmod u+w . 2>&5
20066 $RM conftest*
20067 # SGI C++ compiler will create directory out/ii_files/ for
20068 # template instantiation
20069 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20070 $RM out/* && rmdir out
20071 cd ..
20072 $RM -r conftest
20073 $RM conftest*
20074
20075fi
20076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20077$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20078
20079
20080
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20082$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020083if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020084 $as_echo_n "(cached) " >&6
20085else
20086 lt_cv_prog_compiler_c_o_CXX=no
20087 $RM -r conftest 2>/dev/null
20088 mkdir conftest
20089 cd conftest
20090 mkdir out
20091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20092
20093 lt_compiler_flag="-o out/conftest2.$ac_objext"
20094 # Insert the option either (1) after the last *FLAGS variable, or
20095 # (2) before a word containing "conftest.", or (3) at the end.
20096 # Note that $ac_compile itself does not contain backslashes and begins
20097 # with a dollar sign (not a hyphen), so the echo should work correctly.
20098 lt_compile=`echo "$ac_compile" | $SED \
20099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20101 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020102 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020103 (eval "$lt_compile" 2>out/conftest.err)
20104 ac_status=$?
20105 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020107 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20108 then
20109 # The compiler can only warn and ignore the option if not recognized
20110 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020112 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20113 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20114 lt_cv_prog_compiler_c_o_CXX=yes
20115 fi
20116 fi
20117 chmod u+w . 2>&5
20118 $RM conftest*
20119 # SGI C++ compiler will create directory out/ii_files/ for
20120 # template instantiation
20121 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20122 $RM out/* && rmdir out
20123 cd ..
20124 $RM -r conftest
20125 $RM conftest*
20126
20127fi
20128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20129$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20130
20131
20132
20133
20134hard_links="nottested"
20135if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20136 # do not overwrite the value of need_locks provided by the user
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20138$as_echo_n "checking if we can lock with hard links... " >&6; }
20139 hard_links=yes
20140 $RM conftest*
20141 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20142 touch conftest.a
20143 ln conftest.a conftest.b 2>&5 || hard_links=no
20144 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20146$as_echo "$hard_links" >&6; }
20147 if test "$hard_links" = no; then
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20149$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20150 need_locks=warn
20151 fi
20152else
20153 need_locks=no
20154fi
20155
20156
20157
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20159$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20160
20161 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020162 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020163 case $host_os in
20164 aix[4-9]*)
20165 # If we're using GNU nm, then we don't want the "-C" option.
20166 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020167 # Also, AIX nm treats weak defined symbols like other global defined
20168 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020169 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020170 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 +000020171 else
20172 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'
20173 fi
20174 ;;
20175 pw32*)
20176 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020177 ;;
cristy73bd4a52010-10-05 11:24:23 +000020178 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020179 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020180 cl*)
20181 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20182 ;;
cristyda16f162011-02-19 23:52:17 +000020183 *)
20184 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'
20185 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20186 ;;
20187 esac
20188 ;;
cristy73bd4a52010-10-05 11:24:23 +000020189 *)
20190 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020191 ;;
cristy73bd4a52010-10-05 11:24:23 +000020192 esac
cristy73bd4a52010-10-05 11:24:23 +000020193
20194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20195$as_echo "$ld_shlibs_CXX" >&6; }
20196test "$ld_shlibs_CXX" = no && can_build_shared=no
20197
20198with_gnu_ld_CXX=$with_gnu_ld
20199
20200
20201
20202
20203
20204
20205#
20206# Do we need to explicitly link libc?
20207#
20208case "x$archive_cmds_need_lc_CXX" in
20209x|xyes)
20210 # Assume -lc should be added
20211 archive_cmds_need_lc_CXX=yes
20212
20213 if test "$enable_shared" = yes && test "$GCC" = yes; then
20214 case $archive_cmds_CXX in
20215 *'~'*)
20216 # FIXME: we may have to deal with multi-command sequences.
20217 ;;
20218 '$CC '*)
20219 # Test whether the compiler implicitly links with -lc since on some
20220 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20221 # to ld, don't add -lc before -lgcc.
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20223$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020224if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020225 $as_echo_n "(cached) " >&6
20226else
20227 $RM conftest*
20228 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020229
cristy0c60a692010-11-04 01:09:47 +000020230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020231 (eval $ac_compile) 2>&5
20232 ac_status=$?
20233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20234 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020235 soname=conftest
20236 lib=conftest
20237 libobjs=conftest.$ac_objext
20238 deplibs=
20239 wl=$lt_prog_compiler_wl_CXX
20240 pic_flag=$lt_prog_compiler_pic_CXX
20241 compiler_flags=-v
20242 linker_flags=-v
20243 verstring=
20244 output_objdir=.
20245 libname=conftest
20246 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20247 allow_undefined_flag_CXX=
20248 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 +000020249 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20250 ac_status=$?
20251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20252 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020253 then
20254 lt_cv_archive_cmds_need_lc_CXX=no
20255 else
20256 lt_cv_archive_cmds_need_lc_CXX=yes
20257 fi
20258 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20259 else
20260 cat conftest.err 1>&5
20261 fi
20262 $RM conftest*
20263
20264fi
20265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20266$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20267 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020268 ;;
20269 esac
20270 fi
20271 ;;
20272esac
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
cristy73bd4a52010-10-05 11:24:23 +000020335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20336$as_echo_n "checking dynamic linker characteristics... " >&6; }
20337
20338library_names_spec=
20339libname_spec='lib$name'
20340soname_spec=
20341shrext_cmds=".so"
20342postinstall_cmds=
20343postuninstall_cmds=
20344finish_cmds=
20345finish_eval=
20346shlibpath_var=
20347shlibpath_overrides_runpath=unknown
20348version_type=none
20349dynamic_linker="$host_os ld.so"
20350sys_lib_dlsearch_path_spec="/lib /usr/lib"
20351need_lib_prefix=unknown
20352hardcode_into_libs=no
20353
20354# when you set need_version to no, make sure it does not cause -set_version
20355# flags to be left without arguments
20356need_version=unknown
20357
20358case $host_os in
20359aix3*)
cristy99bd5232011-12-07 14:38:20 +000020360 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020361 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20362 shlibpath_var=LIBPATH
20363
20364 # AIX 3 has no versioning support, so we append a major version to the name.
20365 soname_spec='${libname}${release}${shared_ext}$major'
20366 ;;
20367
20368aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020369 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020370 need_lib_prefix=no
20371 need_version=no
20372 hardcode_into_libs=yes
20373 if test "$host_cpu" = ia64; then
20374 # AIX 5 supports IA64
20375 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20376 shlibpath_var=LD_LIBRARY_PATH
20377 else
20378 # With GCC up to 2.95.x, collect2 would create an import file
20379 # for dependence libraries. The import file would start with
20380 # the line `#! .'. This would cause the generated library to
20381 # depend on `.', always an invalid library. This was fixed in
20382 # development snapshots of GCC prior to 3.0.
20383 case $host_os in
20384 aix4 | aix4.[01] | aix4.[01].*)
20385 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20386 echo ' yes '
20387 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20388 :
20389 else
20390 can_build_shared=no
20391 fi
20392 ;;
20393 esac
20394 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20395 # soname into executable. Probably we can add versioning support to
20396 # collect2, so additional links can be useful in future.
20397 if test "$aix_use_runtimelinking" = yes; then
20398 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20399 # instead of lib<name>.a to let people know that these are not
20400 # typical AIX shared libraries.
20401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20402 else
20403 # We preserve .a as extension for shared libraries through AIX4.2
20404 # and later when we are not doing run time linking.
20405 library_names_spec='${libname}${release}.a $libname.a'
20406 soname_spec='${libname}${release}${shared_ext}$major'
20407 fi
20408 shlibpath_var=LIBPATH
20409 fi
20410 ;;
20411
20412amigaos*)
20413 case $host_cpu in
20414 powerpc)
20415 # Since July 2007 AmigaOS4 officially supports .so libraries.
20416 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20418 ;;
20419 m68k)
20420 library_names_spec='$libname.ixlibrary $libname.a'
20421 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020422 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 +000020423 ;;
20424 esac
20425 ;;
20426
20427beos*)
20428 library_names_spec='${libname}${shared_ext}'
20429 dynamic_linker="$host_os ld.so"
20430 shlibpath_var=LIBRARY_PATH
20431 ;;
20432
20433bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020434 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020435 need_version=no
20436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20437 soname_spec='${libname}${release}${shared_ext}$major'
20438 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20439 shlibpath_var=LD_LIBRARY_PATH
20440 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20441 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20442 # the default ld.so.conf also contains /usr/contrib/lib and
20443 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20444 # libtool to hard-code these into programs
20445 ;;
20446
20447cygwin* | mingw* | pw32* | cegcc*)
20448 version_type=windows
20449 shrext_cmds=".dll"
20450 need_version=no
20451 need_lib_prefix=no
20452
cristyda16f162011-02-19 23:52:17 +000020453 case $GCC,$cc_basename in
20454 yes,*)
20455 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020456 library_names_spec='$libname.dll.a'
20457 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20458 postinstall_cmds='base_file=`basename \${file}`~
20459 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20460 dldir=$destdir/`dirname \$dlpath`~
20461 test -d \$dldir || mkdir -p \$dldir~
20462 $install_prog $dir/$dlname \$dldir/$dlname~
20463 chmod a+x \$dldir/$dlname~
20464 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20465 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20466 fi'
20467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20468 dlpath=$dir/\$dldll~
20469 $RM \$dlpath'
20470 shlibpath_overrides_runpath=yes
20471
20472 case $host_os in
20473 cygwin*)
20474 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20475 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020476
cristy73bd4a52010-10-05 11:24:23 +000020477 ;;
20478 mingw* | cegcc*)
20479 # MinGW DLLs use traditional 'lib' prefix
20480 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020481 ;;
20482 pw32*)
20483 # pw32 DLLs use 'pw' prefix rather than 'lib'
20484 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20485 ;;
20486 esac
cristyda16f162011-02-19 23:52:17 +000020487 dynamic_linker='Win32 ld.exe'
20488 ;;
20489
20490 *,cl*)
20491 # Native MSVC
20492 libname_spec='$name'
20493 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20494 library_names_spec='${libname}.dll.lib'
20495
20496 case $build_os in
20497 mingw*)
20498 sys_lib_search_path_spec=
20499 lt_save_ifs=$IFS
20500 IFS=';'
20501 for lt_path in $LIB
20502 do
20503 IFS=$lt_save_ifs
20504 # Let DOS variable expansion print the short 8.3 style file name.
20505 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20506 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20507 done
20508 IFS=$lt_save_ifs
20509 # Convert to MSYS style.
20510 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20511 ;;
20512 cygwin*)
20513 # Convert to unix form, then to dos form, then back to unix form
20514 # but this time dos style (no spaces!) so that the unix form looks
20515 # like /cygdrive/c/PROGRA~1:/cygdr...
20516 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20517 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20518 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20519 ;;
20520 *)
20521 sys_lib_search_path_spec="$LIB"
20522 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20523 # It is most probably a Windows format PATH.
20524 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20525 else
20526 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20527 fi
20528 # FIXME: find the short name or the path components, as spaces are
20529 # common. (e.g. "Program Files" -> "PROGRA~1")
20530 ;;
20531 esac
20532
20533 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20534 postinstall_cmds='base_file=`basename \${file}`~
20535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20536 dldir=$destdir/`dirname \$dlpath`~
20537 test -d \$dldir || mkdir -p \$dldir~
20538 $install_prog $dir/$dlname \$dldir/$dlname'
20539 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20540 dlpath=$dir/\$dldll~
20541 $RM \$dlpath'
20542 shlibpath_overrides_runpath=yes
20543 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020544 ;;
20545
20546 *)
cristyda16f162011-02-19 23:52:17 +000020547 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020548 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020549 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020550 ;;
20551 esac
cristy73bd4a52010-10-05 11:24:23 +000020552 # FIXME: first we should search . and the directory the executable is in
20553 shlibpath_var=PATH
20554 ;;
20555
20556darwin* | rhapsody*)
20557 dynamic_linker="$host_os dyld"
20558 version_type=darwin
20559 need_lib_prefix=no
20560 need_version=no
20561 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20562 soname_spec='${libname}${release}${major}$shared_ext'
20563 shlibpath_overrides_runpath=yes
20564 shlibpath_var=DYLD_LIBRARY_PATH
20565 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20566
20567 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20568 ;;
20569
20570dgux*)
cristy99bd5232011-12-07 14:38:20 +000020571 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020572 need_lib_prefix=no
20573 need_version=no
20574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20575 soname_spec='${libname}${release}${shared_ext}$major'
20576 shlibpath_var=LD_LIBRARY_PATH
20577 ;;
20578
cristy73bd4a52010-10-05 11:24:23 +000020579freebsd* | dragonfly*)
20580 # DragonFly does not have aout. When/if they implement a new
20581 # versioning mechanism, adjust this.
20582 if test -x /usr/bin/objformat; then
20583 objformat=`/usr/bin/objformat`
20584 else
20585 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020586 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020587 *) objformat=elf ;;
20588 esac
20589 fi
20590 version_type=freebsd-$objformat
20591 case $version_type in
20592 freebsd-elf*)
20593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20594 need_version=no
20595 need_lib_prefix=no
20596 ;;
20597 freebsd-*)
20598 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20599 need_version=yes
20600 ;;
20601 esac
20602 shlibpath_var=LD_LIBRARY_PATH
20603 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020604 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020605 shlibpath_overrides_runpath=yes
20606 ;;
20607 freebsd3.[01]* | freebsdelf3.[01]*)
20608 shlibpath_overrides_runpath=yes
20609 hardcode_into_libs=yes
20610 ;;
20611 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20612 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20613 shlibpath_overrides_runpath=no
20614 hardcode_into_libs=yes
20615 ;;
20616 *) # from 4.6 on, and DragonFly
20617 shlibpath_overrides_runpath=yes
20618 hardcode_into_libs=yes
20619 ;;
20620 esac
20621 ;;
20622
20623gnu*)
cristy99bd5232011-12-07 14:38:20 +000020624 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020625 need_lib_prefix=no
20626 need_version=no
20627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20628 soname_spec='${libname}${release}${shared_ext}$major'
20629 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020630 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020631 hardcode_into_libs=yes
20632 ;;
20633
cristy0c60a692010-11-04 01:09:47 +000020634haiku*)
cristy99bd5232011-12-07 14:38:20 +000020635 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020636 need_lib_prefix=no
20637 need_version=no
20638 dynamic_linker="$host_os runtime_loader"
20639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20640 soname_spec='${libname}${release}${shared_ext}$major'
20641 shlibpath_var=LIBRARY_PATH
20642 shlibpath_overrides_runpath=yes
20643 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20644 hardcode_into_libs=yes
20645 ;;
20646
cristy73bd4a52010-10-05 11:24:23 +000020647hpux9* | hpux10* | hpux11*)
20648 # Give a soname corresponding to the major version so that dld.sl refuses to
20649 # link against other versions.
20650 version_type=sunos
20651 need_lib_prefix=no
20652 need_version=no
20653 case $host_cpu in
20654 ia64*)
20655 shrext_cmds='.so'
20656 hardcode_into_libs=yes
20657 dynamic_linker="$host_os dld.so"
20658 shlibpath_var=LD_LIBRARY_PATH
20659 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20661 soname_spec='${libname}${release}${shared_ext}$major'
20662 if test "X$HPUX_IA64_MODE" = X32; then
20663 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20664 else
20665 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20666 fi
20667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20668 ;;
20669 hppa*64*)
20670 shrext_cmds='.sl'
20671 hardcode_into_libs=yes
20672 dynamic_linker="$host_os dld.sl"
20673 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20674 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20676 soname_spec='${libname}${release}${shared_ext}$major'
20677 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20679 ;;
20680 *)
20681 shrext_cmds='.sl'
20682 dynamic_linker="$host_os dld.sl"
20683 shlibpath_var=SHLIB_PATH
20684 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20686 soname_spec='${libname}${release}${shared_ext}$major'
20687 ;;
20688 esac
cristy0c60a692010-11-04 01:09:47 +000020689 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020690 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020691 # or fails outright, so override atomically:
20692 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020693 ;;
20694
20695interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020696 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020697 need_lib_prefix=no
20698 need_version=no
20699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20700 soname_spec='${libname}${release}${shared_ext}$major'
20701 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20702 shlibpath_var=LD_LIBRARY_PATH
20703 shlibpath_overrides_runpath=no
20704 hardcode_into_libs=yes
20705 ;;
20706
20707irix5* | irix6* | nonstopux*)
20708 case $host_os in
20709 nonstopux*) version_type=nonstopux ;;
20710 *)
20711 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020712 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020713 else
20714 version_type=irix
20715 fi ;;
20716 esac
20717 need_lib_prefix=no
20718 need_version=no
20719 soname_spec='${libname}${release}${shared_ext}$major'
20720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20721 case $host_os in
20722 irix5* | nonstopux*)
20723 libsuff= shlibsuff=
20724 ;;
20725 *)
20726 case $LD in # libtool.m4 will add one of these switches to LD
20727 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20728 libsuff= shlibsuff= libmagic=32-bit;;
20729 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20730 libsuff=32 shlibsuff=N32 libmagic=N32;;
20731 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20732 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20733 *) libsuff= shlibsuff= libmagic=never-match;;
20734 esac
20735 ;;
20736 esac
20737 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20738 shlibpath_overrides_runpath=no
20739 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20740 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20741 hardcode_into_libs=yes
20742 ;;
20743
20744# No shared lib support for Linux oldld, aout, or coff.
20745linux*oldld* | linux*aout* | linux*coff*)
20746 dynamic_linker=no
20747 ;;
20748
cristy99bd5232011-12-07 14:38:20 +000020749# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020750linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020751 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020752 need_lib_prefix=no
20753 need_version=no
20754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20755 soname_spec='${libname}${release}${shared_ext}$major'
20756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20757 shlibpath_var=LD_LIBRARY_PATH
20758 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020759
cristy73bd4a52010-10-05 11:24:23 +000020760 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020761 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020762 $as_echo_n "(cached) " >&6
20763else
20764 lt_cv_shlibpath_overrides_runpath=no
20765 save_LDFLAGS=$LDFLAGS
20766 save_libdir=$libdir
20767 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20768 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020770/* end confdefs.h. */
20771
20772int
20773main ()
20774{
20775
20776 ;
20777 return 0;
20778}
20779_ACEOF
20780if ac_fn_cxx_try_link "$LINENO"; then :
20781 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020782 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020783fi
20784fi
20785rm -f core conftest.err conftest.$ac_objext \
20786 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020787 LDFLAGS=$save_LDFLAGS
20788 libdir=$save_libdir
20789
20790fi
20791
20792 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020793
20794 # This implies no fast_install, which is unacceptable.
20795 # Some rework will be needed to allow for fast_install
20796 # before this can be enabled.
20797 hardcode_into_libs=yes
20798
20799 # Add ABI-specific directories to the system library path.
20800 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20801
20802 # Append ld.so.conf contents to the search path
20803 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020804 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 +000020805 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020806
cristy73bd4a52010-10-05 11:24:23 +000020807 fi
20808
20809 # We used to test for /lib/ld.so.1 and disable shared libraries on
20810 # powerpc, because MkLinux only supported shared libraries with the
20811 # GNU dynamic linker. Since this was broken with cross compilers,
20812 # most powerpc-linux boxes support dynamic linking these days and
20813 # people can always --disable-shared, the test was removed, and we
20814 # assume the GNU/Linux dynamic linker is in use.
20815 dynamic_linker='GNU/Linux ld.so'
20816 ;;
20817
20818netbsd*)
20819 version_type=sunos
20820 need_lib_prefix=no
20821 need_version=no
20822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20825 dynamic_linker='NetBSD (a.out) ld.so'
20826 else
20827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20828 soname_spec='${libname}${release}${shared_ext}$major'
20829 dynamic_linker='NetBSD ld.elf_so'
20830 fi
20831 shlibpath_var=LD_LIBRARY_PATH
20832 shlibpath_overrides_runpath=yes
20833 hardcode_into_libs=yes
20834 ;;
20835
20836newsos6)
cristy99bd5232011-12-07 14:38:20 +000020837 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20839 shlibpath_var=LD_LIBRARY_PATH
20840 shlibpath_overrides_runpath=yes
20841 ;;
20842
20843*nto* | *qnx*)
20844 version_type=qnx
20845 need_lib_prefix=no
20846 need_version=no
20847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20848 soname_spec='${libname}${release}${shared_ext}$major'
20849 shlibpath_var=LD_LIBRARY_PATH
20850 shlibpath_overrides_runpath=no
20851 hardcode_into_libs=yes
20852 dynamic_linker='ldqnx.so'
20853 ;;
20854
20855openbsd*)
20856 version_type=sunos
20857 sys_lib_dlsearch_path_spec="/usr/lib"
20858 need_lib_prefix=no
20859 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20860 case $host_os in
20861 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20862 *) need_version=no ;;
20863 esac
20864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20866 shlibpath_var=LD_LIBRARY_PATH
20867 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20868 case $host_os in
20869 openbsd2.[89] | openbsd2.[89].*)
20870 shlibpath_overrides_runpath=no
20871 ;;
20872 *)
20873 shlibpath_overrides_runpath=yes
20874 ;;
20875 esac
20876 else
20877 shlibpath_overrides_runpath=yes
20878 fi
20879 ;;
20880
20881os2*)
20882 libname_spec='$name'
20883 shrext_cmds=".dll"
20884 need_lib_prefix=no
20885 library_names_spec='$libname${shared_ext} $libname.a'
20886 dynamic_linker='OS/2 ld.exe'
20887 shlibpath_var=LIBPATH
20888 ;;
20889
20890osf3* | osf4* | osf5*)
20891 version_type=osf
20892 need_lib_prefix=no
20893 need_version=no
20894 soname_spec='${libname}${release}${shared_ext}$major'
20895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20896 shlibpath_var=LD_LIBRARY_PATH
20897 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20898 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20899 ;;
20900
20901rdos*)
20902 dynamic_linker=no
20903 ;;
20904
20905solaris*)
cristy99bd5232011-12-07 14:38:20 +000020906 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020907 need_lib_prefix=no
20908 need_version=no
20909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20910 soname_spec='${libname}${release}${shared_ext}$major'
20911 shlibpath_var=LD_LIBRARY_PATH
20912 shlibpath_overrides_runpath=yes
20913 hardcode_into_libs=yes
20914 # ldd complains unless libraries are executable
20915 postinstall_cmds='chmod +x $lib'
20916 ;;
20917
20918sunos4*)
20919 version_type=sunos
20920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20921 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20922 shlibpath_var=LD_LIBRARY_PATH
20923 shlibpath_overrides_runpath=yes
20924 if test "$with_gnu_ld" = yes; then
20925 need_lib_prefix=no
20926 fi
20927 need_version=yes
20928 ;;
20929
20930sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020931 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20933 soname_spec='${libname}${release}${shared_ext}$major'
20934 shlibpath_var=LD_LIBRARY_PATH
20935 case $host_vendor in
20936 sni)
20937 shlibpath_overrides_runpath=no
20938 need_lib_prefix=no
20939 runpath_var=LD_RUN_PATH
20940 ;;
20941 siemens)
20942 need_lib_prefix=no
20943 ;;
20944 motorola)
20945 need_lib_prefix=no
20946 need_version=no
20947 shlibpath_overrides_runpath=no
20948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20949 ;;
20950 esac
20951 ;;
20952
20953sysv4*MP*)
20954 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020955 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20957 soname_spec='$libname${shared_ext}.$major'
20958 shlibpath_var=LD_LIBRARY_PATH
20959 fi
20960 ;;
20961
20962sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20963 version_type=freebsd-elf
20964 need_lib_prefix=no
20965 need_version=no
20966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20967 soname_spec='${libname}${release}${shared_ext}$major'
20968 shlibpath_var=LD_LIBRARY_PATH
20969 shlibpath_overrides_runpath=yes
20970 hardcode_into_libs=yes
20971 if test "$with_gnu_ld" = yes; then
20972 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20973 else
20974 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20975 case $host_os in
20976 sco3.2v5*)
20977 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20978 ;;
20979 esac
20980 fi
20981 sys_lib_dlsearch_path_spec='/usr/lib'
20982 ;;
20983
20984tpf*)
20985 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020986 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020987 need_lib_prefix=no
20988 need_version=no
20989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20990 shlibpath_var=LD_LIBRARY_PATH
20991 shlibpath_overrides_runpath=no
20992 hardcode_into_libs=yes
20993 ;;
20994
20995uts4*)
cristy99bd5232011-12-07 14:38:20 +000020996 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20998 soname_spec='${libname}${release}${shared_ext}$major'
20999 shlibpath_var=LD_LIBRARY_PATH
21000 ;;
21001
21002*)
21003 dynamic_linker=no
21004 ;;
21005esac
21006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21007$as_echo "$dynamic_linker" >&6; }
21008test "$dynamic_linker" = no && can_build_shared=no
21009
21010variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21011if test "$GCC" = yes; then
21012 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21013fi
21014
21015if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21016 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21017fi
21018if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21019 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21020fi
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
cristy0c60a692010-11-04 01:09:47 +000021057
21058
cristy73bd4a52010-10-05 11:24:23 +000021059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21060$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21061hardcode_action_CXX=
21062if test -n "$hardcode_libdir_flag_spec_CXX" ||
21063 test -n "$runpath_var_CXX" ||
21064 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21065
21066 # We can hardcode non-existent directories.
21067 if test "$hardcode_direct_CXX" != no &&
21068 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21069 # have to relink, otherwise we might link with an installed library
21070 # when we should be linking with a yet-to-be-installed one
21071 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21072 test "$hardcode_minus_L_CXX" != no; then
21073 # Linking always hardcodes the temporary library directory.
21074 hardcode_action_CXX=relink
21075 else
21076 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21077 hardcode_action_CXX=immediate
21078 fi
21079else
21080 # We cannot hardcode anything, or else we can only hardcode existing
21081 # directories.
21082 hardcode_action_CXX=unsupported
21083fi
21084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21085$as_echo "$hardcode_action_CXX" >&6; }
21086
21087if test "$hardcode_action_CXX" = relink ||
21088 test "$inherit_rpath_CXX" = yes; then
21089 # Fast installation is not supported
21090 enable_fast_install=no
21091elif test "$shlibpath_overrides_runpath" = yes ||
21092 test "$enable_shared" = no; then
21093 # Fast installation is not necessary
21094 enable_fast_install=needless
21095fi
21096
21097
21098
21099
21100
21101
21102
21103 fi # test -n "$compiler"
21104
21105 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021106 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021107 LDCXX=$LD
21108 LD=$lt_save_LD
21109 GCC=$lt_save_GCC
21110 with_gnu_ld=$lt_save_with_gnu_ld
21111 lt_cv_path_LDCXX=$lt_cv_path_LD
21112 lt_cv_path_LD=$lt_save_path_LD
21113 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21114 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21115fi # test "$_lt_caught_CXX_error" != yes
21116
21117ac_ext=c
21118ac_cpp='$CPP $CPPFLAGS'
21119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21121ac_compiler_gnu=$ac_cv_c_compiler_gnu
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
cristy99bd5232011-12-07 14:38:20 +000021135
21136
cristy73bd4a52010-10-05 11:24:23 +000021137 ac_config_commands="$ac_config_commands libtool"
21138
21139
21140
21141
21142# Only expand once:
21143
21144
21145
cristy3ed852e2009-09-05 21:47:34 +000021146
21147
cristy3ed852e2009-09-05 21:47:34 +000021148# Check to see if building shared libraries
21149libtool_build_shared_libs='no'
21150if test "$enable_shared" = 'yes'; then
21151 libtool_build_shared_libs='yes'
21152fi
21153
21154# Check to see if building static libraries
21155libtool_build_static_libs='no'
21156if test "$enable_static" = 'yes'; then
21157 libtool_build_static_libs='yes'
21158fi
21159
cristy73bd4a52010-10-05 11:24:23 +000021160 if test "${libtool_build_shared_libs}" = 'yes'; then
21161 WITH_SHARED_LIBS_TRUE=
21162 WITH_SHARED_LIBS_FALSE='#'
21163else
21164 WITH_SHARED_LIBS_TRUE='#'
21165 WITH_SHARED_LIBS_FALSE=
21166fi
21167
cristy3ed852e2009-09-05 21:47:34 +000021168#
21169# Enable support for building loadable modules
21170#
cristyaf4cbf32012-10-16 23:47:41 +000021171build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021172
21173# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021174if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021175 withval=$with_modules; with_modules=$withval
21176else
cristy5a1cefd2010-01-06 20:42:35 +000021177 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021178fi
21179
21180
21181# Only allow building loadable modules if we are building shared libraries
21182if test "$with_modules" != 'no' ; then
21183 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021184 { $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 +000021185$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021186 build_modules='no'
21187 else
21188 build_modules='yes'
21189 fi
cristy3ed852e2009-09-05 21:47:34 +000021190fi
cristyc6722092012-10-14 00:19:31 +000021191if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021192
cristy8b350f62009-11-15 23:12:43 +000021193$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021194
cristyfa161182012-12-19 15:45:28 +000021195 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021196fi
cristyc6722092012-10-14 00:19:31 +000021197 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021198 WITH_MODULES_TRUE=
21199 WITH_MODULES_FALSE='#'
21200else
21201 WITH_MODULES_TRUE='#'
21202 WITH_MODULES_FALSE=
21203fi
21204
cristy3ed852e2009-09-05 21:47:34 +000021205
cristy3ed852e2009-09-05 21:47:34 +000021206# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021207# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021208# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021209if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021210 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21211else
21212 enable_delegate_build='no'
21213fi
21214
21215
21216# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021217if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021218 enableval=$enable_deprecated; enable_deprecated=$enableval
21219else
21220 enable_deprecated='no'
21221fi
21222
21223
21224if test "$enable_deprecated" = 'yes'; then
21225
cristy8b350f62009-11-15 23:12:43 +000021226$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021227
21228else
21229 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21230fi
21231
21232# Build a version of ImageMagick which operates uninstalled.
21233# Used to build distributions located via MAGICK_HOME / executable path
21234# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021235if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021236 enableval=$enable_installed; enable_installed=$enableval
21237else
21238 enable_installed='yes'
21239fi
21240
21241
21242if test "$enable_installed" = 'yes'; then
21243
cristy8b350f62009-11-15 23:12:43 +000021244$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021245
21246else
21247 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21248fi
21249
21250# Permit enciphering and deciphering image pixels.
21251# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021252if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021253 enableval=$enable_cipher; enable_cipher=$enableval
21254else
21255 enable_cipher='yes'
21256fi
21257
21258
21259if test "$enable_cipher" = 'yes'; then
21260
cristy8b350f62009-11-15 23:12:43 +000021261$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021262
21263fi
21264
cristy6e3607c2011-09-13 13:59:17 +000021265# Build a zero-configuration version of ImageMagick.
21266# Check whether --enable-zero-configuration was given.
21267if test "${enable_zero_configuration+set}" = set; then :
21268 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021269else
cristy6e3607c2011-09-13 13:59:17 +000021270 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021271fi
21272
21273
cristy6e3607c2011-09-13 13:59:17 +000021274if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021275
cristy6e3607c2011-09-13 13:59:17 +000021276$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021277
cristy81af5702011-09-13 14:20:58 +000021278 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021279fi
21280
21281# Build a high dynamic range version of ImageMagick.
21282# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021283if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021284 enableval=$enable_hdri; enable_hdri=$enableval
21285else
cristy191c0b72012-08-12 16:29:52 +000021286 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021287fi
21288
21289
21290MAGICK_HDRI=""
21291if test "$enable_hdri" = 'yes'; then
21292 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021293 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021294 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021295else
21296 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021297fi
21298
cristye52f12f2012-12-31 15:32:36 +000021299cat >>confdefs.h <<_ACEOF
21300#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21301_ACEOF
21302
21303MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21304CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021305CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021306
cristy3ed852e2009-09-05 21:47:34 +000021307# Build a version of ImageMagick with assert statements.
21308# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021309if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021310 enableval=$enable_assert; enable_assert=$enableval
21311else
21312 enable_assert='yes'
21313fi
21314
21315
21316if test "$enable_assert" = 'no'; then
21317
cristy8b350f62009-11-15 23:12:43 +000021318$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021319
21320fi
21321
cristya448bd22011-10-14 12:38:13 +000021322# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021323
21324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21325$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21326 # Check whether --enable-maintainer-mode was given.
21327if test "${enable_maintainer_mode+set}" = set; then :
21328 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21329else
21330 USE_MAINTAINER_MODE=no
21331fi
21332
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21334$as_echo "$USE_MAINTAINER_MODE" >&6; }
21335 if test $USE_MAINTAINER_MODE = yes; then
21336 MAINTAINER_MODE_TRUE=
21337 MAINTAINER_MODE_FALSE='#'
21338else
21339 MAINTAINER_MODE_TRUE='#'
21340 MAINTAINER_MODE_FALSE=
21341fi
21342
21343 MAINT=$MAINTAINER_MODE_TRUE
21344
21345
cristy3ed852e2009-09-05 21:47:34 +000021346
cristy944e51f2013-04-16 18:45:02 +000021347# Enable hugepages support
21348# Check whether --enable-hugepages was given.
21349if test "${enable_hugepages+set}" = set; then :
21350 enableval=$enable_hugepages; enable_hugepages=$enableval
21351else
21352 enable_hugepages='no'
21353fi
21354
21355
cristy3ed852e2009-09-05 21:47:34 +000021356# Enable ccmalloc memory debugging support
21357# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021358if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021359 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21360else
21361 enable_ccmalloc='no'
21362fi
21363
21364
21365# Enable Electric Fence memory debugging support
21366# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021367if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021368 enableval=$enable_efence; enable_efence=$enableval
21369else
21370 enable_efence='no'
21371fi
21372
21373
21374# Enable prof-based profiling support
21375# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021376if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021377 enableval=$enable_prof; enable_prof=$enableval
21378else
21379 enable_prof='no'
21380fi
21381
21382
21383# Enable gprof-based profiling support
21384# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021385if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021386 enableval=$enable_gprof; enable_gprof=$enableval
21387else
21388 enable_gprof='no'
21389fi
21390
21391
21392# Enable gcov-based profiling support
21393# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021394if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021395 enableval=$enable_gcov; enable_gcov=$enableval
21396else
21397 enable_gcov='no'
21398fi
21399
21400
21401enable_profiling='no'
21402if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21403 enable_profiling='yes'
21404 if test "$libtool_build_shared_libs" = 'yes'; then
21405 echo "Warning: Can not profile code using shared libraries"
21406 fi
21407fi
21408
21409# Magick API method prefix
21410
21411# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021412if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021413 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021414else
cristyfc3d0222012-02-07 15:05:57 +000021415 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021416fi
21417
21418
cristyfc3d0222012-02-07 15:05:57 +000021419if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021420
21421cat >>confdefs.h <<_ACEOF
21422#define NAMESPACE_PREFIX $with_method_prefix
21423_ACEOF
21424
cristyfc3d0222012-02-07 15:05:57 +000021425 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021426fi
21427
cristy71d8c202012-03-20 17:05:01 +000021428# Enable legacy support (default no)
21429# Check whether --enable-legacy-support was given.
21430if test "${enable_legacy_support+set}" = set; then :
21431 enableval=$enable_legacy_support; with_legacy_support=$enableval
21432else
21433 with_legacy_support='no'
21434fi
21435
21436 if test "$with_legacy_support" != 'no'; then
21437 LEGACY_SUPPORT_TRUE=
21438 LEGACY_SUPPORT_FALSE='#'
21439else
21440 LEGACY_SUPPORT_TRUE='#'
21441 LEGACY_SUPPORT_FALSE=
21442fi
21443
21444
cristy3ed852e2009-09-05 21:47:34 +000021445# Number of bits in a Quantum
21446
21447# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021448if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021449 withval=$with_quantum_depth; with_quantum_depth=$withval
21450else
21451 with_quantum_depth=16
21452fi
21453
21454
21455if test "$with_quantum_depth" != '8'; then
21456 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21457fi
21458
21459case "${with_quantum_depth}" in
21460 8 ) ;;
21461 16 ) ;;
21462 32 ) ;;
21463 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021464 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021465esac
21466QUANTUM_DEPTH="$with_quantum_depth"
21467
21468cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021469#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021470_ACEOF
21471
cristya371edf2013-02-06 13:42:17 +000021472MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021473CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021474CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021475
cristy01ff9f32012-12-01 18:15:29 +000021476# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021477MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021478if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021479 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021480fi
cristy01ff9f32012-12-01 18:15:29 +000021481
21482
cristy3ed852e2009-09-05 21:47:34 +000021483# Set pixel cache threshold
21484
21485# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021486if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021487 withval=$with_cache; with_cache=$withval
21488else
21489 with_cache=''
21490fi
21491
21492
21493if test "$with_cache" != ''; then
21494
21495cat >>confdefs.h <<_ACEOF
21496#define PixelCacheThreshold $with_cache
21497_ACEOF
21498
21499 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21500fi
21501
21502# Disable/Enable support for full delegate paths
21503
21504# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021505if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021506 withval=$with_frozenpaths; with_frozenpaths=$withval
21507else
21508 with_frozenpaths='no'
21509fi
21510
21511
21512# Enable build/install of Magick++
21513
21514# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021515if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021516 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21517else
21518 with_magick_plus_plus='yes'
21519fi
21520
21521
cristy3a75f062012-09-08 23:29:40 +000021522# Encode the this name into the shared library.
21523
21524# Check whether --with-package-release-name was given.
21525if test "${with_package_release_name+set}" = set; then :
21526 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21527fi
21528
21529
21530
cristy3ed852e2009-09-05 21:47:34 +000021531# Disable build/install of PerlMagick.
21532
21533# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021534if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021535 withval=$with_perl; with_perl=$withval
21536else
cristyb5f4e2f2010-04-25 00:49:11 +000021537 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021538fi
21539
21540
21541# Options to pass when configuring PerlMagick
21542
21543# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021544if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021545 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021546fi
21547
21548
cristy3ed852e2009-09-05 21:47:34 +000021549
21550# Enable umem, object-caching memory allocation library.
21551
21552# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021553if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021554 withval=$with_umem; with_umem=$withval
21555else
21556 with_umem='no'
21557fi
21558
21559if test "$with_umem" != 'yes' ; then
21560 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21561fi
21562
21563#
21564# Specify path to shared libstdc++ if not in normal location
21565#
21566
21567# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021568if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021569 withval=$with_libstdc; with_libstdc=$withval
21570else
21571 with_libstdc=''
21572fi
21573
21574
21575if test "$with_libstdc" != ''; then
21576 if test -d "$with_libstdc"; then
21577 LIBSTDCLDFLAGS="-L$with_libstdc"
21578 fi
21579fi
21580
21581
21582# Does gcc required -traditional?
21583if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021585$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021586if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021587 $as_echo_n "(cached) " >&6
21588else
21589 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021591/* end confdefs.h. */
21592#include <sgtty.h>
21593Autoconf TIOCGETP
21594_ACEOF
21595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021596 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021597 ac_cv_prog_gcc_traditional=yes
21598else
21599 ac_cv_prog_gcc_traditional=no
21600fi
21601rm -f conftest*
21602
21603
21604 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021606/* end confdefs.h. */
21607#include <termio.h>
21608Autoconf TCGETA
21609_ACEOF
21610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021611 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021612 ac_cv_prog_gcc_traditional=yes
21613fi
21614rm -f conftest*
21615
21616 fi
21617fi
cristy8b350f62009-11-15 23:12:43 +000021618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021619$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21620 if test $ac_cv_prog_gcc_traditional = yes; then
21621 CC="$CC -traditional"
21622 fi
21623fi
21624
21625
21626########
21627#
21628# Set defines required to build DLLs and modules using MinGW
21629#
21630########
21631# These options are set for multi-thread DLL module build
21632# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21633# module: _DLL
21634# executable/Magick++: _DLL _MAGICKMOD_
21635MODULE_EXTRA_CPPFLAGS=''
21636LIBRARY_EXTRA_CPPFLAGS=''
21637if test "${native_win32_build}" = 'yes'; then
21638 if test "${libtool_build_shared_libs}" = 'yes'; then
21639 CPPFLAGS="$CPPFLAGS -D_DLL"
21640 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21641 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21642 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021643 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021644 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21645 else
21646 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21647 fi
21648 else
21649 CPPFLAGS="$CPPFLAGS -D_LIB"
21650 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21651 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21652 fi
21653 if test "$with_threads" = 'yes'; then
21654 CPPFLAGS="$CPPFLAGS -D_MT"
21655 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21656 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21657 fi
21658fi
21659
21660
21661
21662# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021664$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021665if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021666 $as_echo_n "(cached) " >&6
21667else
cristy8b350f62009-11-15 23:12:43 +000021668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021669/* end confdefs.h. */
21670#include <stdlib.h>
21671#include <stdarg.h>
21672#include <string.h>
21673#include <float.h>
21674
21675int
21676main ()
21677{
21678
21679 ;
21680 return 0;
21681}
21682_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021683if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021684 ac_cv_header_stdc=yes
21685else
cristy8b350f62009-11-15 23:12:43 +000021686 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021687fi
cristy3ed852e2009-09-05 21:47:34 +000021688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21689
21690if test $ac_cv_header_stdc = yes; then
21691 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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#include <string.h>
21695
21696_ACEOF
21697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021698 $EGREP "memchr" >/dev/null 2>&1; then :
21699
cristy3ed852e2009-09-05 21:47:34 +000021700else
21701 ac_cv_header_stdc=no
21702fi
21703rm -f conftest*
21704
21705fi
21706
21707if test $ac_cv_header_stdc = yes; then
21708 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021710/* end confdefs.h. */
21711#include <stdlib.h>
21712
21713_ACEOF
21714if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021715 $EGREP "free" >/dev/null 2>&1; then :
21716
cristy3ed852e2009-09-05 21:47:34 +000021717else
21718 ac_cv_header_stdc=no
21719fi
21720rm -f conftest*
21721
21722fi
21723
21724if test $ac_cv_header_stdc = yes; then
21725 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021726 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021727 :
21728else
cristy8b350f62009-11-15 23:12:43 +000021729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021730/* end confdefs.h. */
21731#include <ctype.h>
21732#include <stdlib.h>
21733#if ((' ' & 0x0FF) == 0x020)
21734# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21735# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21736#else
21737# define ISLOWER(c) \
21738 (('a' <= (c) && (c) <= 'i') \
21739 || ('j' <= (c) && (c) <= 'r') \
21740 || ('s' <= (c) && (c) <= 'z'))
21741# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21742#endif
21743
21744#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21745int
21746main ()
21747{
21748 int i;
21749 for (i = 0; i < 256; i++)
21750 if (XOR (islower (i), ISLOWER (i))
21751 || toupper (i) != TOUPPER (i))
21752 return 2;
21753 return 0;
21754}
21755_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021756if ac_fn_c_try_run "$LINENO"; then :
21757
cristy3ed852e2009-09-05 21:47:34 +000021758else
cristy8b350f62009-11-15 23:12:43 +000021759 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021760fi
cristy8b350f62009-11-15 23:12:43 +000021761rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21762 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021763fi
21764
cristy3ed852e2009-09-05 21:47:34 +000021765fi
21766fi
cristy8b350f62009-11-15 23:12:43 +000021767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021768$as_echo "$ac_cv_header_stdc" >&6; }
21769if test $ac_cv_header_stdc = yes; then
21770
cristy8b350f62009-11-15 23:12:43 +000021771$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021772
21773fi
21774
21775if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021776 { $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 +000021777 header files. Compilation cannot proceed. Please install the ANSI C
21778 headers and rerun this script." >&5
21779$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21780 header files. Compilation cannot proceed. Please install the ANSI C
21781 headers and rerun this script." >&2;};
21782fi
cristya0b81c32010-01-22 02:54:33 +000021783
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21785$as_echo_n "checking whether to enable assertions... " >&6; }
21786 # Check whether --enable-assert was given.
21787if test "${enable_assert+set}" = set; then :
21788 enableval=$enable_assert; ac_enable_assert=$enableval
21789 if test "x$enableval" = xno; then :
21790
21791$as_echo "#define NDEBUG 1" >>confdefs.h
21792
21793elif test "x$enableval" != xyes; then :
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21795$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21796 ac_enable_assert=yes
21797fi
21798else
21799 ac_enable_assert=yes
21800fi
21801
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21803$as_echo "$ac_enable_assert" >&6; }
21804
cristy3ed852e2009-09-05 21:47:34 +000021805ac_header_dirent=no
21806for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21807 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021809$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021810if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021811 $as_echo_n "(cached) " >&6
21812else
cristy8b350f62009-11-15 23:12:43 +000021813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021814/* end confdefs.h. */
21815#include <sys/types.h>
21816#include <$ac_hdr>
21817
21818int
21819main ()
21820{
21821if ((DIR *) 0)
21822return 0;
21823 ;
21824 return 0;
21825}
21826_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021827if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021828 eval "$as_ac_Header=yes"
21829else
cristy8b350f62009-11-15 23:12:43 +000021830 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021831fi
cristy3ed852e2009-09-05 21:47:34 +000021832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21833fi
cristy8b350f62009-11-15 23:12:43 +000021834eval ac_res=\$$as_ac_Header
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021836$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021837if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021838 cat >>confdefs.h <<_ACEOF
21839#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21840_ACEOF
21841
21842ac_header_dirent=$ac_hdr; break
21843fi
21844
21845done
21846# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21847if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021849$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021850if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021851 $as_echo_n "(cached) " >&6
21852else
21853 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021855/* end confdefs.h. */
21856
21857/* Override any GCC internal prototype to avoid an error.
21858 Use char because int might match the return type of a GCC
21859 builtin and then its argument prototype would still apply. */
21860#ifdef __cplusplus
21861extern "C"
21862#endif
21863char opendir ();
21864int
21865main ()
21866{
21867return opendir ();
21868 ;
21869 return 0;
21870}
21871_ACEOF
21872for ac_lib in '' dir; do
21873 if test -z "$ac_lib"; then
21874 ac_res="none required"
21875 else
21876 ac_res=-l$ac_lib
21877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21878 fi
cristy8b350f62009-11-15 23:12:43 +000021879 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021880 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021881fi
cristy8b350f62009-11-15 23:12:43 +000021882rm -f core conftest.err conftest.$ac_objext \
21883 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021884 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021885 break
21886fi
21887done
cristyda16f162011-02-19 23:52:17 +000021888if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021889
cristy3ed852e2009-09-05 21:47:34 +000021890else
21891 ac_cv_search_opendir=no
21892fi
21893rm conftest.$ac_ext
21894LIBS=$ac_func_search_save_LIBS
21895fi
cristy8b350f62009-11-15 23:12:43 +000021896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021897$as_echo "$ac_cv_search_opendir" >&6; }
21898ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021899if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21901
21902fi
21903
21904else
cristy8b350f62009-11-15 23:12:43 +000021905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021906$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021907if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021908 $as_echo_n "(cached) " >&6
21909else
21910 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021912/* end confdefs.h. */
21913
21914/* Override any GCC internal prototype to avoid an error.
21915 Use char because int might match the return type of a GCC
21916 builtin and then its argument prototype would still apply. */
21917#ifdef __cplusplus
21918extern "C"
21919#endif
21920char opendir ();
21921int
21922main ()
21923{
21924return opendir ();
21925 ;
21926 return 0;
21927}
21928_ACEOF
21929for ac_lib in '' x; do
21930 if test -z "$ac_lib"; then
21931 ac_res="none required"
21932 else
21933 ac_res=-l$ac_lib
21934 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21935 fi
cristy8b350f62009-11-15 23:12:43 +000021936 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021937 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021938fi
cristy8b350f62009-11-15 23:12:43 +000021939rm -f core conftest.err conftest.$ac_objext \
21940 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021941 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021942 break
21943fi
21944done
cristyda16f162011-02-19 23:52:17 +000021945if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021946
cristy3ed852e2009-09-05 21:47:34 +000021947else
21948 ac_cv_search_opendir=no
21949fi
21950rm conftest.$ac_ext
21951LIBS=$ac_func_search_save_LIBS
21952fi
cristy8b350f62009-11-15 23:12:43 +000021953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021954$as_echo "$ac_cv_search_opendir" >&6; }
21955ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021956if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21958
21959fi
21960
21961fi
21962
21963
21964# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021965for 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 +000021966do :
21967 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21968ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021969if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021970 cat >>confdefs.h <<_ACEOF
21971#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21972_ACEOF
21973
21974fi
21975
21976done
21977
21978
21979########
21980#
21981# Checks for typedefs, structures, and compiler characteristics.
21982#
21983########
21984
cristy8b350f62009-11-15 23:12:43 +000021985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021986$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021987if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021988 $as_echo_n "(cached) " >&6
21989else
cristy8b350f62009-11-15 23:12:43 +000021990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021991/* end confdefs.h. */
21992
cristy14fefe52012-05-21 00:59:18 +000021993 #include <stdbool.h>
21994 #ifndef bool
21995 "error: bool is not defined"
21996 #endif
21997 #ifndef false
21998 "error: false is not defined"
21999 #endif
22000 #if false
22001 "error: false is not 0"
22002 #endif
22003 #ifndef true
22004 "error: true is not defined"
22005 #endif
22006 #if true != 1
22007 "error: true is not 1"
22008 #endif
22009 #ifndef __bool_true_false_are_defined
22010 "error: __bool_true_false_are_defined is not defined"
22011 #endif
cristy3ed852e2009-09-05 21:47:34 +000022012
cristy14fefe52012-05-21 00:59:18 +000022013 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022014
cristy14fefe52012-05-21 00:59:18 +000022015 char a[true == 1 ? 1 : -1];
22016 char b[false == 0 ? 1 : -1];
22017 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22018 char d[(bool) 0.5 == true ? 1 : -1];
22019 /* See body of main program for 'e'. */
22020 char f[(_Bool) 0.0 == false ? 1 : -1];
22021 char g[true];
22022 char h[sizeof (_Bool)];
22023 char i[sizeof s.t];
22024 enum { j = false, k = true, l = false * true, m = true * 256 };
22025 /* The following fails for
22026 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22027 _Bool n[m];
22028 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22029 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22030 /* Catch a bug in an HP-UX C compiler. See
22031 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22032 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22033 */
22034 _Bool q = true;
22035 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022036
22037int
22038main ()
22039{
22040
cristy14fefe52012-05-21 00:59:18 +000022041 bool e = &s;
22042 *pq |= q;
22043 *pq |= ! q;
22044 /* Refer to every declared value, to avoid compiler optimizations. */
22045 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22046 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022047
22048 ;
22049 return 0;
22050}
22051_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022052if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022053 ac_cv_header_stdbool_h=yes
22054else
cristy8b350f62009-11-15 23:12:43 +000022055 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022056fi
cristy3ed852e2009-09-05 21:47:34 +000022057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22058fi
cristy8b350f62009-11-15 23:12:43 +000022059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022060$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022061 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022062if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022063
22064cat >>confdefs.h <<_ACEOF
22065#define HAVE__BOOL 1
22066_ACEOF
22067
22068
22069fi
22070
cristy14fefe52012-05-21 00:59:18 +000022071
cristy3ed852e2009-09-05 21:47:34 +000022072if test $ac_cv_header_stdbool_h = yes; then
22073
cristy8b350f62009-11-15 23:12:43 +000022074$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022075
22076fi
22077
cristy8b350f62009-11-15 23:12:43 +000022078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022079$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022080if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022081 $as_echo_n "(cached) " >&6
22082else
cristy8b350f62009-11-15 23:12:43 +000022083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022084/* end confdefs.h. */
22085
22086int
22087main ()
22088{
22089
22090volatile int x;
22091int * volatile y = (int *) 0;
22092return !x && !y;
22093 ;
22094 return 0;
22095}
22096_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022097if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022098 ac_cv_c_volatile=yes
22099else
cristy8b350f62009-11-15 23:12:43 +000022100 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022101fi
cristy3ed852e2009-09-05 21:47:34 +000022102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103fi
cristy8b350f62009-11-15 23:12:43 +000022104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022105$as_echo "$ac_cv_c_volatile" >&6; }
22106if test $ac_cv_c_volatile = no; then
22107
cristy8b350f62009-11-15 23:12:43 +000022108$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022109
22110fi
22111
cristy8b350f62009-11-15 23:12:43 +000022112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022113$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022114if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022115 $as_echo_n "(cached) " >&6
22116else
cristy8b350f62009-11-15 23:12:43 +000022117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022118/* end confdefs.h. */
22119#define x(y) #y
22120
22121char *s = x(teststring);
22122_ACEOF
22123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022124 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022125 ac_cv_c_stringize=no
22126else
22127 ac_cv_c_stringize=yes
22128fi
22129rm -f conftest*
22130
22131fi
cristy8b350f62009-11-15 23:12:43 +000022132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022133$as_echo "$ac_cv_c_stringize" >&6; }
22134if test $ac_cv_c_stringize = yes; then
22135
cristy8b350f62009-11-15 23:12:43 +000022136$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022137
22138fi
22139
cristy8b350f62009-11-15 23:12:43 +000022140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022141$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022142if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022143 $as_echo_n "(cached) " >&6
22144else
cristy8b350f62009-11-15 23:12:43 +000022145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022146/* end confdefs.h. */
22147#include <sys/types.h>
22148#include <sys/stat.h>
22149
22150#if defined S_ISBLK && defined S_IFDIR
22151extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22152#endif
22153
22154#if defined S_ISBLK && defined S_IFCHR
22155extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22156#endif
22157
22158#if defined S_ISLNK && defined S_IFREG
22159extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22160#endif
22161
22162#if defined S_ISSOCK && defined S_IFREG
22163extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22164#endif
22165
22166_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022167if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022168 ac_cv_header_stat_broken=no
22169else
cristy8b350f62009-11-15 23:12:43 +000022170 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022171fi
cristy3ed852e2009-09-05 21:47:34 +000022172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22173fi
cristy8b350f62009-11-15 23:12:43 +000022174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022175$as_echo "$ac_cv_header_stat_broken" >&6; }
22176if test $ac_cv_header_stat_broken = yes; then
22177
cristy8b350f62009-11-15 23:12:43 +000022178$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022179
22180fi
22181
cristy8b350f62009-11-15 23:12:43 +000022182{ $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 +000022183$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022184if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022185 $as_echo_n "(cached) " >&6
22186else
cristy8b350f62009-11-15 23:12:43 +000022187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022188/* end confdefs.h. */
22189#include <sys/types.h>
22190#include <sys/time.h>
22191#include <time.h>
22192
22193int
22194main ()
22195{
22196if ((struct tm *) 0)
22197return 0;
22198 ;
22199 return 0;
22200}
22201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022202if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022203 ac_cv_header_time=yes
22204else
cristy8b350f62009-11-15 23:12:43 +000022205 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022206fi
cristy3ed852e2009-09-05 21:47:34 +000022207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22208fi
cristy8b350f62009-11-15 23:12:43 +000022209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022210$as_echo "$ac_cv_header_time" >&6; }
22211if test $ac_cv_header_time = yes; then
22212
cristy8b350f62009-11-15 23:12:43 +000022213$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022214
22215fi
22216
cristy8b350f62009-11-15 23:12:43 +000022217{ $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 +000022218$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022219if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022220 $as_echo_n "(cached) " >&6
22221else
cristy8b350f62009-11-15 23:12:43 +000022222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022223/* end confdefs.h. */
22224#include <sys/types.h>
22225#include <time.h>
22226
22227int
22228main ()
22229{
22230struct tm tm;
22231 int *p = &tm.tm_sec;
22232 return !p;
22233 ;
22234 return 0;
22235}
22236_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022237if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022238 ac_cv_struct_tm=time.h
22239else
cristy8b350f62009-11-15 23:12:43 +000022240 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022241fi
cristy3ed852e2009-09-05 21:47:34 +000022242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22243fi
cristy8b350f62009-11-15 23:12:43 +000022244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022245$as_echo "$ac_cv_struct_tm" >&6; }
22246if test $ac_cv_struct_tm = sys/time.h; then
22247
cristy8b350f62009-11-15 23:12:43 +000022248$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022249
22250fi
22251
cristy92703d82010-04-26 00:18:18 +000022252ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22253#include <$ac_cv_struct_tm>
22254
22255"
cristyda16f162011-02-19 23:52:17 +000022256if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022257
22258cat >>confdefs.h <<_ACEOF
22259#define HAVE_STRUCT_TM_TM_ZONE 1
22260_ACEOF
22261
22262
22263fi
22264
22265if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22266
22267$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22268
22269else
22270 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22271"
cristyda16f162011-02-19 23:52:17 +000022272if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022273 ac_have_decl=1
22274else
22275 ac_have_decl=0
22276fi
22277
22278cat >>confdefs.h <<_ACEOF
22279#define HAVE_DECL_TZNAME $ac_have_decl
22280_ACEOF
22281
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22283$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022284if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022285 $as_echo_n "(cached) " >&6
22286else
22287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22288/* end confdefs.h. */
22289#include <time.h>
22290#if !HAVE_DECL_TZNAME
22291extern char *tzname[];
22292#endif
22293
22294int
22295main ()
22296{
22297return tzname[0][0];
22298 ;
22299 return 0;
22300}
22301_ACEOF
22302if ac_fn_c_try_link "$LINENO"; then :
22303 ac_cv_var_tzname=yes
22304else
22305 ac_cv_var_tzname=no
22306fi
22307rm -f core conftest.err conftest.$ac_objext \
22308 conftest$ac_exeext conftest.$ac_ext
22309fi
22310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22311$as_echo "$ac_cv_var_tzname" >&6; }
22312 if test $ac_cv_var_tzname = yes; then
22313
22314$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22315
22316 fi
22317fi
22318
cristy8b350f62009-11-15 23:12:43 +000022319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022320$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022321if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022322 $as_echo_n "(cached) " >&6
22323else
22324 echo '#! /bin/cat
22325exit 69
22326' >conftest
22327chmod u+x conftest
22328(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22329if test $? -ne 69; then
22330 ac_cv_sys_interpreter=yes
22331else
22332 ac_cv_sys_interpreter=no
22333fi
22334rm -f conftest
22335fi
cristy8b350f62009-11-15 23:12:43 +000022336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022337$as_echo "$ac_cv_sys_interpreter" >&6; }
22338interpval=$ac_cv_sys_interpreter
22339
22340
cristye80f9cb2013-01-09 01:09:31 +000022341#
22342# Checks for language qualifiers and semantics.
22343#
22344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22345$as_echo_n "checking whether char is unsigned... " >&6; }
22346if ${ac_cv_c_char_unsigned+:} false; then :
22347 $as_echo_n "(cached) " >&6
22348else
22349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22350/* end confdefs.h. */
22351$ac_includes_default
22352int
22353main ()
22354{
22355static int test_array [1 - 2 * !(((char) -1) < 0)];
22356test_array [0] = 0;
22357return test_array [0];
22358
22359 ;
22360 return 0;
22361}
22362_ACEOF
22363if ac_fn_c_try_compile "$LINENO"; then :
22364 ac_cv_c_char_unsigned=no
22365else
22366 ac_cv_c_char_unsigned=yes
22367fi
22368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22369fi
22370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22371$as_echo "$ac_cv_c_char_unsigned" >&6; }
22372if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22373 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22374
22375fi
22376
22377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22378$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22379if ${ac_cv_c_const+:} false; then :
22380 $as_echo_n "(cached) " >&6
22381else
22382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22383/* end confdefs.h. */
22384
22385int
22386main ()
22387{
22388
22389#ifndef __cplusplus
22390 /* Ultrix mips cc rejects this sort of thing. */
22391 typedef int charset[2];
22392 const charset cs = { 0, 0 };
22393 /* SunOS 4.1.1 cc rejects this. */
22394 char const *const *pcpcc;
22395 char **ppc;
22396 /* NEC SVR4.0.2 mips cc rejects this. */
22397 struct point {int x, y;};
22398 static struct point const zero = {0,0};
22399 /* AIX XL C 1.02.0.0 rejects this.
22400 It does not let you subtract one const X* pointer from another in
22401 an arm of an if-expression whose if-part is not a constant
22402 expression */
22403 const char *g = "string";
22404 pcpcc = &g + (g ? g-g : 0);
22405 /* HPUX 7.0 cc rejects these. */
22406 ++pcpcc;
22407 ppc = (char**) pcpcc;
22408 pcpcc = (char const *const *) ppc;
22409 { /* SCO 3.2v4 cc rejects this sort of thing. */
22410 char tx;
22411 char *t = &tx;
22412 char const *s = 0 ? (char *) 0 : (char const *) 0;
22413
22414 *t++ = 0;
22415 if (s) return 0;
22416 }
22417 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22418 int x[] = {25, 17};
22419 const int *foo = &x[0];
22420 ++foo;
22421 }
22422 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22423 typedef const int *iptr;
22424 iptr p = 0;
22425 ++p;
22426 }
22427 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22428 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22429 struct s { int j; const int *ap[3]; } bx;
22430 struct s *b = &bx; b->j = 5;
22431 }
22432 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22433 const int foo = 10;
22434 if (!foo) return 0;
22435 }
22436 return !cs[0] && !zero.x;
22437#endif
22438
22439 ;
22440 return 0;
22441}
22442_ACEOF
22443if ac_fn_c_try_compile "$LINENO"; then :
22444 ac_cv_c_const=yes
22445else
22446 ac_cv_c_const=no
22447fi
22448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22449fi
22450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22451$as_echo "$ac_cv_c_const" >&6; }
22452if test $ac_cv_c_const = no; then
22453
22454$as_echo "#define const /**/" >>confdefs.h
22455
22456fi
22457
cristy8b350f62009-11-15 23:12:43 +000022458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022459$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022460if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022461 $as_echo_n "(cached) " >&6
22462else
22463 ac_cv_c_inline=no
22464for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022466/* end confdefs.h. */
22467#ifndef __cplusplus
22468typedef int foo_t;
22469static $ac_kw foo_t static_foo () {return 0; }
22470$ac_kw foo_t foo () {return 0; }
22471#endif
22472
22473_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022474if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022475 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022476fi
cristy3ed852e2009-09-05 21:47:34 +000022477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22478 test "$ac_cv_c_inline" != no && break
22479done
22480
22481fi
cristy8b350f62009-11-15 23:12:43 +000022482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022483$as_echo "$ac_cv_c_inline" >&6; }
22484
cristy3ed852e2009-09-05 21:47:34 +000022485case $ac_cv_c_inline in
22486 inline | yes) ;;
22487 *)
22488 case $ac_cv_c_inline in
22489 no) ac_val=;;
22490 *) ac_val=$ac_cv_c_inline;;
22491 esac
22492 cat >>confdefs.h <<_ACEOF
22493#ifndef __cplusplus
22494#define inline $ac_val
22495#endif
22496_ACEOF
22497 ;;
22498esac
22499
cristy8b350f62009-11-15 23:12:43 +000022500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022501$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022502if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022503 $as_echo_n "(cached) " >&6
22504else
22505 ac_cv_c_restrict=no
22506 # The order here caters to the fact that C++ does not require restrict.
22507 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022509/* end confdefs.h. */
22510typedef int * int_ptr;
22511 int foo (int_ptr $ac_kw ip) {
22512 return ip[0];
22513 }
22514int
22515main ()
22516{
22517int s[1];
22518 int * $ac_kw t = s;
22519 t[0] = 0;
22520 return foo(t)
22521 ;
22522 return 0;
22523}
22524_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022525if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022526 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022527fi
cristy3ed852e2009-09-05 21:47:34 +000022528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22529 test "$ac_cv_c_restrict" != no && break
22530 done
22531
22532fi
cristy8b350f62009-11-15 23:12:43 +000022533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022534$as_echo "$ac_cv_c_restrict" >&6; }
22535
cristy3ed852e2009-09-05 21:47:34 +000022536 case $ac_cv_c_restrict in
22537 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022538 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022539 ;;
22540 *) cat >>confdefs.h <<_ACEOF
22541#define restrict $ac_cv_c_restrict
22542_ACEOF
22543 ;;
22544 esac
22545
cristye80f9cb2013-01-09 01:09:31 +000022546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22547$as_echo_n "checking for working volatile... " >&6; }
22548if ${ac_cv_c_volatile+:} false; then :
22549 $as_echo_n "(cached) " >&6
22550else
22551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22552/* end confdefs.h. */
22553
22554int
22555main ()
22556{
22557
22558volatile int x;
22559int * volatile y = (int *) 0;
22560return !x && !y;
22561 ;
22562 return 0;
22563}
22564_ACEOF
22565if ac_fn_c_try_compile "$LINENO"; then :
22566 ac_cv_c_volatile=yes
22567else
22568 ac_cv_c_volatile=no
22569fi
22570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22571fi
22572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22573$as_echo "$ac_cv_c_volatile" >&6; }
22574if test $ac_cv_c_volatile = no; then
22575
22576$as_echo "#define volatile /**/" >>confdefs.h
22577
22578fi
22579
cristy3ed852e2009-09-05 21:47:34 +000022580
22581# If words are stored with the most significant byte first (like
22582# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022584$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022585if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022586 $as_echo_n "(cached) " >&6
22587else
22588 ac_cv_c_bigendian=unknown
22589 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022591/* end confdefs.h. */
22592#ifndef __APPLE_CC__
22593 not a universal capable compiler
22594 #endif
22595 typedef int dummy;
22596
22597_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022598if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022599
22600 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022601 # there are at least two -arch flags with different values.
22602 ac_arch=
22603 ac_prev=
22604 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22605 if test -n "$ac_prev"; then
22606 case $ac_word in
22607 i?86 | x86_64 | ppc | ppc64)
22608 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22609 ac_arch=$ac_word
22610 else
22611 ac_cv_c_bigendian=universal
22612 break
22613 fi
22614 ;;
22615 esac
22616 ac_prev=
22617 elif test "x$ac_word" = "x-arch"; then
22618 ac_prev=arch
22619 fi
22620 done
cristy3ed852e2009-09-05 21:47:34 +000022621fi
cristy3ed852e2009-09-05 21:47:34 +000022622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22623 if test $ac_cv_c_bigendian = unknown; then
22624 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022626/* end confdefs.h. */
22627#include <sys/types.h>
22628 #include <sys/param.h>
22629
22630int
22631main ()
22632{
22633#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22634 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22635 && LITTLE_ENDIAN)
22636 bogus endian macros
22637 #endif
22638
22639 ;
22640 return 0;
22641}
22642_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022643if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022644 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022646/* end confdefs.h. */
22647#include <sys/types.h>
22648 #include <sys/param.h>
22649
22650int
22651main ()
22652{
22653#if BYTE_ORDER != BIG_ENDIAN
22654 not big endian
22655 #endif
22656
22657 ;
22658 return 0;
22659}
22660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022661if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022662 ac_cv_c_bigendian=yes
22663else
cristy8b350f62009-11-15 23:12:43 +000022664 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022665fi
cristy3ed852e2009-09-05 21:47:34 +000022666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022667fi
cristy3ed852e2009-09-05 21:47:34 +000022668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22669 fi
22670 if test $ac_cv_c_bigendian = unknown; then
22671 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022673/* end confdefs.h. */
22674#include <limits.h>
22675
22676int
22677main ()
22678{
22679#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22680 bogus endian macros
22681 #endif
22682
22683 ;
22684 return 0;
22685}
22686_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022687if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022688 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022690/* end confdefs.h. */
22691#include <limits.h>
22692
22693int
22694main ()
22695{
22696#ifndef _BIG_ENDIAN
22697 not big endian
22698 #endif
22699
22700 ;
22701 return 0;
22702}
22703_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022704if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022705 ac_cv_c_bigendian=yes
22706else
cristy8b350f62009-11-15 23:12:43 +000022707 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022708fi
cristy3ed852e2009-09-05 21:47:34 +000022709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022710fi
cristy3ed852e2009-09-05 21:47:34 +000022711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22712 fi
22713 if test $ac_cv_c_bigendian = unknown; then
22714 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022715 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022716 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022718/* end confdefs.h. */
22719short int ascii_mm[] =
22720 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22721 short int ascii_ii[] =
22722 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22723 int use_ascii (int i) {
22724 return ascii_mm[i] + ascii_ii[i];
22725 }
22726 short int ebcdic_ii[] =
22727 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22728 short int ebcdic_mm[] =
22729 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22730 int use_ebcdic (int i) {
22731 return ebcdic_mm[i] + ebcdic_ii[i];
22732 }
22733 extern int foo;
22734
22735int
22736main ()
22737{
22738return use_ascii (foo) == use_ebcdic (foo);
22739 ;
22740 return 0;
22741}
22742_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022743if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022744 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22745 ac_cv_c_bigendian=yes
22746 fi
22747 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22748 if test "$ac_cv_c_bigendian" = unknown; then
22749 ac_cv_c_bigendian=no
22750 else
22751 # finding both strings is unlikely to happen, but who knows?
22752 ac_cv_c_bigendian=unknown
22753 fi
22754 fi
cristy3ed852e2009-09-05 21:47:34 +000022755fi
cristy3ed852e2009-09-05 21:47:34 +000022756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22757else
cristy8b350f62009-11-15 23:12:43 +000022758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022759/* end confdefs.h. */
22760$ac_includes_default
22761int
22762main ()
22763{
22764
22765 /* Are we little or big endian? From Harbison&Steele. */
22766 union
22767 {
22768 long int l;
22769 char c[sizeof (long int)];
22770 } u;
22771 u.l = 1;
22772 return u.c[sizeof (long int) - 1] == 1;
22773
22774 ;
22775 return 0;
22776}
22777_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022778if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022779 ac_cv_c_bigendian=no
22780else
cristy8b350f62009-11-15 23:12:43 +000022781 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022782fi
cristy8b350f62009-11-15 23:12:43 +000022783rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22784 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022785fi
22786
cristy3ed852e2009-09-05 21:47:34 +000022787 fi
22788fi
cristy8b350f62009-11-15 23:12:43 +000022789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022790$as_echo "$ac_cv_c_bigendian" >&6; }
22791 case $ac_cv_c_bigendian in #(
22792 yes)
cristy8b350f62009-11-15 23:12:43 +000022793 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022794;; #(
22795 no)
22796 ;; #(
22797 universal)
22798
cristy8b350f62009-11-15 23:12:43 +000022799$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022800
22801 ;; #(
22802 *)
cristy98dddb52010-11-04 00:30:15 +000022803 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022804 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022805 esac
22806
22807
cristy501c8042011-05-26 17:46:28 +000022808# Define to a suitable type, if standard headers do not define it.
22809ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22810case $ac_cv_c_int8_t in #(
22811 no|yes) ;; #(
22812 *)
cristy3ed852e2009-09-05 21:47:34 +000022813
22814cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022815#define int8_t $ac_cv_c_int8_t
22816_ACEOF
22817;;
22818esac
22819
22820ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22821case $ac_cv_c_int16_t in #(
22822 no|yes) ;; #(
22823 *)
22824
22825cat >>confdefs.h <<_ACEOF
22826#define int16_t $ac_cv_c_int16_t
22827_ACEOF
22828;;
22829esac
22830
22831ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22832case $ac_cv_c_int32_t in #(
22833 no|yes) ;; #(
22834 *)
22835
22836cat >>confdefs.h <<_ACEOF
22837#define int32_t $ac_cv_c_int32_t
22838_ACEOF
22839;;
22840esac
22841
22842ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22843case $ac_cv_c_int64_t in #(
22844 no|yes) ;; #(
22845 *)
22846
22847cat >>confdefs.h <<_ACEOF
22848#define int64_t $ac_cv_c_int64_t
22849_ACEOF
22850;;
22851esac
22852
22853
cristy045228a2013-06-23 11:00:16 +000022854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22855$as_echo_n "checking for unsigned long long int... " >&6; }
22856if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022857 $as_echo_n "(cached) " >&6
22858else
cristy045228a2013-06-23 11:00:16 +000022859 ac_cv_type_unsigned_long_long_int=yes
22860 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022862/* end confdefs.h. */
22863
22864 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022865 implementations with broken preprocessors. Perhaps this can
22866 be revisited in 2012. In the meantime, code should not expect
22867 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022868 /* Test literals. */
22869 long long int ll = 9223372036854775807ll;
22870 long long int nll = -9223372036854775807LL;
22871 unsigned long long int ull = 18446744073709551615ULL;
22872 /* Test constant expressions. */
22873 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022874 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022875 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022876 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022877 int i = 63;
22878int
22879main ()
22880{
22881/* Test availability of runtime routines for shift and division. */
22882 long long int llmax = 9223372036854775807ll;
22883 unsigned long long int ullmax = 18446744073709551615ull;
22884 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022885 | (llmax / ll) | (llmax % ll)
22886 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22887 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022888 ;
22889 return 0;
22890}
22891
22892_ACEOF
22893if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022894
22895else
22896 ac_cv_type_unsigned_long_long_int=no
22897fi
22898rm -f core conftest.err conftest.$ac_objext \
22899 conftest$ac_exeext conftest.$ac_ext
22900 fi
22901fi
22902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22903$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22904 if test $ac_cv_type_unsigned_long_long_int = yes; then
22905
22906$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22907
22908 fi
22909
22910
22911
22912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22913$as_echo_n "checking for long long int... " >&6; }
22914if ${ac_cv_type_long_long_int+:} false; then :
22915 $as_echo_n "(cached) " >&6
22916else
cristy501c8042011-05-26 17:46:28 +000022917 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022918 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022919 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22920 if test $ac_cv_type_long_long_int = yes; then
22921 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022922 :
cristy501c8042011-05-26 17:46:28 +000022923else
22924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22925/* end confdefs.h. */
22926#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022927 #ifndef LLONG_MAX
22928 # define HALF \
22929 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22930 # define LLONG_MAX (HALF - 1 + HALF)
22931 #endif
cristy501c8042011-05-26 17:46:28 +000022932int
22933main ()
22934{
22935long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022936 int i;
22937 for (i = 0; ; i++)
22938 {
22939 long long int m = n << i;
22940 if (m >> i != n)
22941 return 1;
22942 if (LLONG_MAX / 2 < m)
22943 break;
22944 }
22945 return 0;
cristy501c8042011-05-26 17:46:28 +000022946 ;
22947 return 0;
22948}
22949_ACEOF
22950if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022951
cristy501c8042011-05-26 17:46:28 +000022952else
22953 ac_cv_type_long_long_int=no
22954fi
22955rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22956 conftest.$ac_objext conftest.beam conftest.$ac_ext
22957fi
22958
cristy5ed9c6e2013-07-14 21:20:31 +000022959 fi
cristy045228a2013-06-23 11:00:16 +000022960 fi
cristy501c8042011-05-26 17:46:28 +000022961fi
22962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22963$as_echo "$ac_cv_type_long_long_int" >&6; }
22964 if test $ac_cv_type_long_long_int = yes; then
22965
22966$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22967
22968 fi
22969
22970
22971
22972 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22973if test "x$ac_cv_type_intmax_t" = xyes; then :
22974
22975$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22976
22977else
22978 test $ac_cv_type_long_long_int = yes \
22979 && ac_type='long long int' \
22980 || ac_type='long int'
22981
22982cat >>confdefs.h <<_ACEOF
22983#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022984_ACEOF
22985
22986fi
22987
22988
cristy501c8042011-05-26 17:46:28 +000022989
22990 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22991if test "x$ac_cv_type_intptr_t" = xyes; then :
22992
22993$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022994
cristy3ed852e2009-09-05 21:47:34 +000022995else
cristy501c8042011-05-26 17:46:28 +000022996 for ac_type in 'int' 'long int' 'long long int'; do
22997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22998/* end confdefs.h. */
22999$ac_includes_default
23000int
23001main ()
23002{
23003static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023004test_array [0] = 0;
23005return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023006
23007 ;
23008 return 0;
23009}
23010_ACEOF
23011if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023012
23013cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023014#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023015_ACEOF
23016
cristy501c8042011-05-26 17:46:28 +000023017 ac_type=
23018fi
23019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23020 test -z "$ac_type" && break
23021 done
cristy3ed852e2009-09-05 21:47:34 +000023022fi
23023
23024
cristy3ed852e2009-09-05 21:47:34 +000023025
cristy501c8042011-05-26 17:46:28 +000023026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23027$as_echo_n "checking for long double... " >&6; }
23028if ${ac_cv_type_long_double+:} false; then :
23029 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023030else
cristy501c8042011-05-26 17:46:28 +000023031 if test "$GCC" = yes; then
23032 ac_cv_type_long_double=yes
23033 else
23034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23035/* end confdefs.h. */
23036/* The Stardent Vistra knows sizeof (long double), but does
23037 not support it. */
23038 long double foo = 0.0L;
23039int
23040main ()
23041{
23042static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23043 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023044test_array [0] = 0;
23045return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023046
cristy501c8042011-05-26 17:46:28 +000023047 ;
23048 return 0;
23049}
cristy3ed852e2009-09-05 21:47:34 +000023050_ACEOF
cristy501c8042011-05-26 17:46:28 +000023051if ac_fn_c_try_compile "$LINENO"; then :
23052 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023053else
cristy501c8042011-05-26 17:46:28 +000023054 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023055fi
cristy501c8042011-05-26 17:46:28 +000023056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23057 fi
cristy3ed852e2009-09-05 21:47:34 +000023058fi
cristy501c8042011-05-26 17:46:28 +000023059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23060$as_echo "$ac_cv_type_long_double" >&6; }
23061 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023062
cristy501c8042011-05-26 17:46:28 +000023063$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023064
cristy501c8042011-05-26 17:46:28 +000023065 fi
23066
cristy3ed852e2009-09-05 21:47:34 +000023067
cristy8b350f62009-11-15 23:12:43 +000023068 { $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 +000023069$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023070if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023071 $as_echo_n "(cached) " >&6
23072else
cristy8b350f62009-11-15 23:12:43 +000023073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023074/* end confdefs.h. */
23075#include <float.h>
23076 long double const a[] =
23077 {
23078 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23079 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23080 };
23081 long double
23082 f (long double x)
23083 {
23084 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23085 + (x ? f (x) : 'c'));
23086 }
23087
23088int
23089main ()
23090{
23091static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23092 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23093 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23094 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23095 && (int) LDBL_EPSILON == 0
23096 )];
cristy14fefe52012-05-21 00:59:18 +000023097test_array [0] = 0;
23098return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023099
23100 ;
23101 return 0;
23102}
23103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023104if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023105 ac_cv_type_long_double_wider=yes
23106else
cristy8b350f62009-11-15 23:12:43 +000023107 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023108fi
cristy3ed852e2009-09-05 21:47:34 +000023109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23110fi
cristy8b350f62009-11-15 23:12:43 +000023111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023112$as_echo "$ac_cv_type_long_double_wider" >&6; }
23113 if test $ac_cv_type_long_double_wider = yes; then
23114
cristy8b350f62009-11-15 23:12:43 +000023115$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023116
23117 fi
23118
23119
cristy045228a2013-06-23 11:00:16 +000023120
cristy501c8042011-05-26 17:46:28 +000023121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23122$as_echo_n "checking for long long int... " >&6; }
23123if ${ac_cv_type_long_long_int+:} false; then :
23124 $as_echo_n "(cached) " >&6
23125else
cristy501c8042011-05-26 17:46:28 +000023126 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023127 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023128 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23129 if test $ac_cv_type_long_long_int = yes; then
23130 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023131 :
cristy501c8042011-05-26 17:46:28 +000023132else
23133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23134/* end confdefs.h. */
23135#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023136 #ifndef LLONG_MAX
23137 # define HALF \
23138 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23139 # define LLONG_MAX (HALF - 1 + HALF)
23140 #endif
cristy501c8042011-05-26 17:46:28 +000023141int
23142main ()
23143{
23144long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023145 int i;
23146 for (i = 0; ; i++)
23147 {
23148 long long int m = n << i;
23149 if (m >> i != n)
23150 return 1;
23151 if (LLONG_MAX / 2 < m)
23152 break;
23153 }
23154 return 0;
cristy501c8042011-05-26 17:46:28 +000023155 ;
23156 return 0;
23157}
23158_ACEOF
23159if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023160
cristy501c8042011-05-26 17:46:28 +000023161else
23162 ac_cv_type_long_long_int=no
23163fi
23164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23165 conftest.$ac_objext conftest.beam conftest.$ac_ext
23166fi
23167
cristy5ed9c6e2013-07-14 21:20:31 +000023168 fi
cristy045228a2013-06-23 11:00:16 +000023169 fi
cristy501c8042011-05-26 17:46:28 +000023170fi
23171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23172$as_echo "$ac_cv_type_long_long_int" >&6; }
23173 if test $ac_cv_type_long_long_int = yes; then
23174
23175$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23176
23177 fi
23178
23179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23180$as_echo_n "checking for mbstate_t... " >&6; }
23181if ${ac_cv_type_mbstate_t+:} false; then :
23182 $as_echo_n "(cached) " >&6
23183else
23184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23185/* end confdefs.h. */
23186$ac_includes_default
23187# include <wchar.h>
23188int
23189main ()
23190{
23191mbstate_t x; return sizeof x;
23192 ;
23193 return 0;
23194}
23195_ACEOF
23196if ac_fn_c_try_compile "$LINENO"; then :
23197 ac_cv_type_mbstate_t=yes
23198else
23199 ac_cv_type_mbstate_t=no
23200fi
23201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23202fi
23203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23204$as_echo "$ac_cv_type_mbstate_t" >&6; }
23205 if test $ac_cv_type_mbstate_t = yes; then
23206
23207$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23208
23209 else
23210
23211$as_echo "#define mbstate_t int" >>confdefs.h
23212
23213 fi
23214ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23215if test "x$ac_cv_type_mode_t" = xyes; then :
23216
23217else
23218
23219cat >>confdefs.h <<_ACEOF
23220#define mode_t int
23221_ACEOF
23222
23223fi
23224
23225ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23226if test "x$ac_cv_type_off_t" = xyes; then :
23227
23228else
23229
23230cat >>confdefs.h <<_ACEOF
23231#define off_t long int
23232_ACEOF
23233
23234fi
23235
23236ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23237if test "x$ac_cv_type_pid_t" = xyes; then :
23238
23239else
23240
23241cat >>confdefs.h <<_ACEOF
23242#define pid_t int
23243_ACEOF
23244
23245fi
23246
23247ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23248if test "x$ac_cv_type_size_t" = xyes; then :
23249
23250else
23251
23252cat >>confdefs.h <<_ACEOF
23253#define size_t unsigned int
23254_ACEOF
23255
23256fi
23257
23258ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23259if test "x$ac_cv_type_ssize_t" = xyes; then :
23260
23261else
23262
23263cat >>confdefs.h <<_ACEOF
23264#define ssize_t int
23265_ACEOF
23266
23267fi
23268
23269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23270$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23271if ${ac_cv_type_uid_t+:} false; then :
23272 $as_echo_n "(cached) " >&6
23273else
23274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23275/* end confdefs.h. */
23276#include <sys/types.h>
23277
23278_ACEOF
23279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23280 $EGREP "uid_t" >/dev/null 2>&1; then :
23281 ac_cv_type_uid_t=yes
23282else
23283 ac_cv_type_uid_t=no
23284fi
23285rm -f conftest*
23286
23287fi
23288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23289$as_echo "$ac_cv_type_uid_t" >&6; }
23290if test $ac_cv_type_uid_t = no; then
23291
23292$as_echo "#define uid_t int" >>confdefs.h
23293
23294
23295$as_echo "#define gid_t int" >>confdefs.h
23296
23297fi
23298
23299ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23300case $ac_cv_c_uint8_t in #(
23301 no|yes) ;; #(
23302 *)
23303
23304$as_echo "#define _UINT8_T 1" >>confdefs.h
23305
23306
23307cat >>confdefs.h <<_ACEOF
23308#define uint8_t $ac_cv_c_uint8_t
23309_ACEOF
23310;;
23311 esac
23312
23313ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23314case $ac_cv_c_uint16_t in #(
23315 no|yes) ;; #(
23316 *)
23317
23318
23319cat >>confdefs.h <<_ACEOF
23320#define uint16_t $ac_cv_c_uint16_t
23321_ACEOF
23322;;
23323 esac
23324
23325ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23326case $ac_cv_c_uint32_t in #(
23327 no|yes) ;; #(
23328 *)
23329
23330$as_echo "#define _UINT32_T 1" >>confdefs.h
23331
23332
23333cat >>confdefs.h <<_ACEOF
23334#define uint32_t $ac_cv_c_uint32_t
23335_ACEOF
23336;;
23337 esac
23338
23339ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23340case $ac_cv_c_uint64_t in #(
23341 no|yes) ;; #(
23342 *)
23343
23344$as_echo "#define _UINT64_T 1" >>confdefs.h
23345
23346
23347cat >>confdefs.h <<_ACEOF
23348#define uint64_t $ac_cv_c_uint64_t
23349_ACEOF
23350;;
23351 esac
23352
23353
cristy501c8042011-05-26 17:46:28 +000023354
23355 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23356if test "x$ac_cv_type_uintmax_t" = xyes; then :
23357
23358$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23359
23360else
23361 test $ac_cv_type_unsigned_long_long_int = yes \
23362 && ac_type='unsigned long long int' \
23363 || ac_type='unsigned long int'
23364
23365cat >>confdefs.h <<_ACEOF
23366#define uintmax_t $ac_type
23367_ACEOF
23368
23369fi
23370
23371
23372
23373 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23374if test "x$ac_cv_type_uintptr_t" = xyes; then :
23375
23376$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23377
23378else
23379 for ac_type in 'unsigned int' 'unsigned long int' \
23380 'unsigned long long int'; do
23381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23382/* end confdefs.h. */
23383$ac_includes_default
23384int
23385main ()
23386{
23387static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023388test_array [0] = 0;
23389return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023390
23391 ;
23392 return 0;
23393}
23394_ACEOF
23395if ac_fn_c_try_compile "$LINENO"; then :
23396
23397cat >>confdefs.h <<_ACEOF
23398#define uintptr_t $ac_type
23399_ACEOF
23400
23401 ac_type=
23402fi
23403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23404 test -z "$ac_type" && break
23405 done
23406fi
23407
23408
23409
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23411$as_echo_n "checking for unsigned long long int... " >&6; }
23412if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23413 $as_echo_n "(cached) " >&6
23414else
cristy045228a2013-06-23 11:00:16 +000023415 ac_cv_type_unsigned_long_long_int=yes
23416 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023418/* end confdefs.h. */
23419
23420 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023421 implementations with broken preprocessors. Perhaps this can
23422 be revisited in 2012. In the meantime, code should not expect
23423 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023424 /* Test literals. */
23425 long long int ll = 9223372036854775807ll;
23426 long long int nll = -9223372036854775807LL;
23427 unsigned long long int ull = 18446744073709551615ULL;
23428 /* Test constant expressions. */
23429 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023430 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023431 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023432 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023433 int i = 63;
23434int
23435main ()
23436{
23437/* Test availability of runtime routines for shift and division. */
23438 long long int llmax = 9223372036854775807ll;
23439 unsigned long long int ullmax = 18446744073709551615ull;
23440 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023441 | (llmax / ll) | (llmax % ll)
23442 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23443 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023444 ;
23445 return 0;
23446}
23447
23448_ACEOF
23449if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023450
cristy501c8042011-05-26 17:46:28 +000023451else
23452 ac_cv_type_unsigned_long_long_int=no
23453fi
23454rm -f core conftest.err conftest.$ac_objext \
23455 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023456 fi
cristy501c8042011-05-26 17:46:28 +000023457fi
23458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23459$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23460 if test $ac_cv_type_unsigned_long_long_int = yes; then
23461
23462$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23463
23464 fi
23465
23466
cristyfec31822013-05-23 12:32:12 +000023467# Float_t and double_t are intended to be the the most efficient type.
23468ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23469"
23470if test "x$ac_cv_type_float_t" = xyes; then :
23471
23472cat >>confdefs.h <<_ACEOF
23473#define HAVE_FLOAT_T 1
23474_ACEOF
23475
23476
23477fi
23478
23479ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23480"
23481if test "x$ac_cv_type_double_t" = xyes; then :
23482
23483cat >>confdefs.h <<_ACEOF
23484#define HAVE_DOUBLE_T 1
23485_ACEOF
23486
23487
23488fi
23489
23490# The cast to long int works around a bug in the HP C Compiler
23491# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23492# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23493# This bug is HP SR number 8606223364.
23494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23495$as_echo_n "checking size of float_t... " >&6; }
23496if ${ac_cv_sizeof_float_t+:} false; then :
23497 $as_echo_n "(cached) " >&6
23498else
23499 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23500"; then :
23501
23502else
23503 if test "$ac_cv_type_float_t" = yes; then
23504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23506as_fn_error 77 "cannot compute sizeof (float_t)
23507See \`config.log' for more details" "$LINENO" 5; }
23508 else
23509 ac_cv_sizeof_float_t=0
23510 fi
23511fi
23512
23513fi
23514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23515$as_echo "$ac_cv_sizeof_float_t" >&6; }
23516
23517
23518
23519cat >>confdefs.h <<_ACEOF
23520#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23521_ACEOF
23522
23523
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.
23528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23529$as_echo_n "checking size of double_t... " >&6; }
23530if ${ac_cv_sizeof_double_t+:} false; then :
23531 $as_echo_n "(cached) " >&6
23532else
23533 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23534"; then :
23535
23536else
23537 if test "$ac_cv_type_double_t" = yes; then
23538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23540as_fn_error 77 "cannot compute sizeof (double_t)
23541See \`config.log' for more details" "$LINENO" 5; }
23542 else
23543 ac_cv_sizeof_double_t=0
23544 fi
23545fi
23546
23547fi
23548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23549$as_echo "$ac_cv_sizeof_double_t" >&6; }
23550
23551
23552
23553cat >>confdefs.h <<_ACEOF
23554#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23555_ACEOF
23556
23557
23558
cristy9b86f202012-11-28 21:55:35 +000023559# Get size of float, double and long double for comparaison.
23560# The cast to long int works around a bug in the HP C Compiler
23561# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23562# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23563# This bug is HP SR number 8606223364.
23564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23565$as_echo_n "checking size of float... " >&6; }
23566if ${ac_cv_sizeof_float+:} false; then :
23567 $as_echo_n "(cached) " >&6
23568else
23569 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23570
23571else
23572 if test "$ac_cv_type_float" = yes; then
23573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23575as_fn_error 77 "cannot compute sizeof (float)
23576See \`config.log' for more details" "$LINENO" 5; }
23577 else
23578 ac_cv_sizeof_float=0
23579 fi
23580fi
23581
23582fi
23583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23584$as_echo "$ac_cv_sizeof_float" >&6; }
23585
23586
23587
23588cat >>confdefs.h <<_ACEOF
23589#define SIZEOF_FLOAT $ac_cv_sizeof_float
23590_ACEOF
23591
23592
23593# The cast to long int works around a bug in the HP C Compiler
23594# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23595# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23596# This bug is HP SR number 8606223364.
23597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23598$as_echo_n "checking size of double... " >&6; }
23599if ${ac_cv_sizeof_double+:} false; then :
23600 $as_echo_n "(cached) " >&6
23601else
23602 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23603
23604else
23605 if test "$ac_cv_type_double" = yes; then
23606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23608as_fn_error 77 "cannot compute sizeof (double)
23609See \`config.log' for more details" "$LINENO" 5; }
23610 else
23611 ac_cv_sizeof_double=0
23612 fi
23613fi
23614
23615fi
23616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23617$as_echo "$ac_cv_sizeof_double" >&6; }
23618
23619
23620
23621cat >>confdefs.h <<_ACEOF
23622#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23623_ACEOF
23624
23625
cristyfec31822013-05-23 12:32:12 +000023626# The cast to long int works around a bug in the HP C Compiler
23627# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23628# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23629# This bug is HP SR number 8606223364.
23630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23631$as_echo_n "checking size of long double... " >&6; }
23632if ${ac_cv_sizeof_long_double+:} false; then :
23633 $as_echo_n "(cached) " >&6
23634else
23635 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23636
23637else
23638 if test "$ac_cv_type_long_double" = yes; then
23639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23640$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23641as_fn_error 77 "cannot compute sizeof (long double)
23642See \`config.log' for more details" "$LINENO" 5; }
23643 else
23644 ac_cv_sizeof_long_double=0
23645 fi
23646fi
23647
23648fi
23649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23650$as_echo "$ac_cv_sizeof_long_double" >&6; }
23651
23652
23653
23654cat >>confdefs.h <<_ACEOF
23655#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23656_ACEOF
23657
23658
cristyf0cf9a22012-10-24 12:05:01 +000023659
cristy3ed852e2009-09-05 21:47:34 +000023660# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23661# The cast to long int works around a bug in the HP C Compiler
23662# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23663# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23664# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023666$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023667if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023668 $as_echo_n "(cached) " >&6
23669else
cristy8b350f62009-11-15 23:12:43 +000023670 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 +000023671
cristy3ed852e2009-09-05 21:47:34 +000023672else
cristy8b350f62009-11-15 23:12:43 +000023673 if test "$ac_cv_type_signed_short" = yes; then
23674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023676as_fn_error 77 "cannot compute sizeof (signed short)
23677See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023678 else
23679 ac_cv_sizeof_signed_short=0
23680 fi
23681fi
cristy8b350f62009-11-15 23:12:43 +000023682
cristy3ed852e2009-09-05 21:47:34 +000023683fi
cristy8b350f62009-11-15 23:12:43 +000023684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023685$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23686
23687
23688
23689cat >>confdefs.h <<_ACEOF
23690#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23691_ACEOF
23692
23693
23694
23695# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23696# The cast to long int works around a bug in the HP C Compiler
23697# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23698# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23699# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023701$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023702if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023703 $as_echo_n "(cached) " >&6
23704else
cristy8b350f62009-11-15 23:12:43 +000023705 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 +000023706
cristy3ed852e2009-09-05 21:47:34 +000023707else
cristy8b350f62009-11-15 23:12:43 +000023708 if test "$ac_cv_type_unsigned_short" = yes; then
23709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023711as_fn_error 77 "cannot compute sizeof (unsigned short)
23712See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023713 else
23714 ac_cv_sizeof_unsigned_short=0
23715 fi
23716fi
cristy8b350f62009-11-15 23:12:43 +000023717
cristy3ed852e2009-09-05 21:47:34 +000023718fi
cristy8b350f62009-11-15 23:12:43 +000023719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023720$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23721
23722
23723
23724cat >>confdefs.h <<_ACEOF
23725#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23726_ACEOF
23727
23728
23729
23730# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23731# The cast to long int works around a bug in the HP C Compiler
23732# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23733# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23734# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023736$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023737if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023738 $as_echo_n "(cached) " >&6
23739else
cristy8b350f62009-11-15 23:12:43 +000023740 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 +000023741
cristy3ed852e2009-09-05 21:47:34 +000023742else
cristy8b350f62009-11-15 23:12:43 +000023743 if test "$ac_cv_type_signed_int" = yes; then
23744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023746as_fn_error 77 "cannot compute sizeof (signed int)
23747See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023748 else
23749 ac_cv_sizeof_signed_int=0
23750 fi
23751fi
cristy8b350f62009-11-15 23:12:43 +000023752
cristy3ed852e2009-09-05 21:47:34 +000023753fi
cristy8b350f62009-11-15 23:12:43 +000023754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023755$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23756
23757
23758
23759cat >>confdefs.h <<_ACEOF
23760#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23761_ACEOF
23762
23763
23764
23765# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23766# The cast to long int works around a bug in the HP C Compiler
23767# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23768# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23769# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023771$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023772if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023773 $as_echo_n "(cached) " >&6
23774else
cristy8b350f62009-11-15 23:12:43 +000023775 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 +000023776
cristy3ed852e2009-09-05 21:47:34 +000023777else
cristy8b350f62009-11-15 23:12:43 +000023778 if test "$ac_cv_type_unsigned_int" = yes; then
23779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023781as_fn_error 77 "cannot compute sizeof (unsigned int)
23782See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023783 else
23784 ac_cv_sizeof_unsigned_int=0
23785 fi
23786fi
cristy8b350f62009-11-15 23:12:43 +000023787
cristy3ed852e2009-09-05 21:47:34 +000023788fi
cristy8b350f62009-11-15 23:12:43 +000023789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023790$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23791
23792
23793
23794cat >>confdefs.h <<_ACEOF
23795#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23796_ACEOF
23797
23798
23799
23800# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23801# The cast to long int works around a bug in the HP C Compiler
23802# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23803# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23804# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023806$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023807if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023808 $as_echo_n "(cached) " >&6
23809else
cristy8b350f62009-11-15 23:12:43 +000023810 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 +000023811
cristy3ed852e2009-09-05 21:47:34 +000023812else
cristy8b350f62009-11-15 23:12:43 +000023813 if test "$ac_cv_type_signed_long" = yes; then
23814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023816as_fn_error 77 "cannot compute sizeof (signed long)
23817See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023818 else
23819 ac_cv_sizeof_signed_long=0
23820 fi
23821fi
cristy8b350f62009-11-15 23:12:43 +000023822
cristy3ed852e2009-09-05 21:47:34 +000023823fi
cristy8b350f62009-11-15 23:12:43 +000023824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023825$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23826
23827
23828
23829cat >>confdefs.h <<_ACEOF
23830#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23831_ACEOF
23832
23833
23834
23835# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23836# The cast to long int works around a bug in the HP C Compiler
23837# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23838# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23839# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023841$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023842if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023843 $as_echo_n "(cached) " >&6
23844else
cristy8b350f62009-11-15 23:12:43 +000023845 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 +000023846
cristy3ed852e2009-09-05 21:47:34 +000023847else
cristy8b350f62009-11-15 23:12:43 +000023848 if test "$ac_cv_type_unsigned_long" = yes; then
23849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023851as_fn_error 77 "cannot compute sizeof (unsigned long)
23852See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023853 else
23854 ac_cv_sizeof_unsigned_long=0
23855 fi
23856fi
cristy8b350f62009-11-15 23:12:43 +000023857
cristy3ed852e2009-09-05 21:47:34 +000023858fi
cristy8b350f62009-11-15 23:12:43 +000023859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023860$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23861
23862
23863
23864cat >>confdefs.h <<_ACEOF
23865#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23866_ACEOF
23867
23868
23869
23870# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23871# 'signed long long' is not supported then the value defined is zero.
23872# The cast to long int works around a bug in the HP C Compiler
23873# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23874# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23875# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023877$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023878if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023879 $as_echo_n "(cached) " >&6
23880else
cristy8b350f62009-11-15 23:12:43 +000023881 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 +000023882
cristy3ed852e2009-09-05 21:47:34 +000023883else
cristy8b350f62009-11-15 23:12:43 +000023884 if test "$ac_cv_type_signed_long_long" = yes; then
23885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023887as_fn_error 77 "cannot compute sizeof (signed long long)
23888See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023889 else
23890 ac_cv_sizeof_signed_long_long=0
23891 fi
23892fi
cristy8b350f62009-11-15 23:12:43 +000023893
cristy3ed852e2009-09-05 21:47:34 +000023894fi
cristy8b350f62009-11-15 23:12:43 +000023895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023896$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23897
23898
23899
23900cat >>confdefs.h <<_ACEOF
23901#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23902_ACEOF
23903
23904
23905
23906# Obtain size of a 'unsigned long long' and define as
23907# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23908# supported then the value defined is zero.
23909# The cast to long int works around a bug in the HP C Compiler
23910# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23911# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23912# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023914$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023915if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023916 $as_echo_n "(cached) " >&6
23917else
cristy8b350f62009-11-15 23:12:43 +000023918 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 +000023919
cristy3ed852e2009-09-05 21:47:34 +000023920else
cristy8b350f62009-11-15 23:12:43 +000023921 if test "$ac_cv_type_unsigned_long_long" = yes; then
23922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023924as_fn_error 77 "cannot compute sizeof (unsigned long long)
23925See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023926 else
23927 ac_cv_sizeof_unsigned_long_long=0
23928 fi
23929fi
cristy8b350f62009-11-15 23:12:43 +000023930
cristy3ed852e2009-09-05 21:47:34 +000023931fi
cristy8b350f62009-11-15 23:12:43 +000023932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023933$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23934
23935
23936
23937cat >>confdefs.h <<_ACEOF
23938#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23939_ACEOF
23940
23941
23942
cristyfec31822013-05-23 12:32:12 +000023943# Obtain size of off_t and define as SIZEOF_OFF_T
23944# The cast to long int works around a bug in the HP C Compiler
23945# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23946# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23947# This bug is HP SR number 8606223364.
23948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23949$as_echo_n "checking size of off_t... " >&6; }
23950if ${ac_cv_sizeof_off_t+:} false; then :
23951 $as_echo_n "(cached) " >&6
23952else
23953 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23954
23955else
23956 if test "$ac_cv_type_off_t" = yes; then
23957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23959as_fn_error 77 "cannot compute sizeof (off_t)
23960See \`config.log' for more details" "$LINENO" 5; }
23961 else
23962 ac_cv_sizeof_off_t=0
23963 fi
23964fi
23965
23966fi
23967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23968$as_echo "$ac_cv_sizeof_off_t" >&6; }
23969
23970
23971
23972cat >>confdefs.h <<_ACEOF
23973#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23974_ACEOF
23975
23976
23977
23978# Obtain size of size_t and define as SIZEOF_SIZE_T
23979# The cast to long int works around a bug in the HP C Compiler
23980# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23981# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23982# This bug is HP SR number 8606223364.
23983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23984$as_echo_n "checking size of size_t... " >&6; }
23985if ${ac_cv_sizeof_size_t+:} false; then :
23986 $as_echo_n "(cached) " >&6
23987else
23988 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23989
23990else
23991 if test "$ac_cv_type_size_t" = yes; then
23992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23994as_fn_error 77 "cannot compute sizeof (size_t)
23995See \`config.log' for more details" "$LINENO" 5; }
23996 else
23997 ac_cv_sizeof_size_t=0
23998 fi
23999fi
24000
24001fi
24002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24003$as_echo "$ac_cv_sizeof_size_t" >&6; }
24004
24005
24006
24007cat >>confdefs.h <<_ACEOF
24008#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24009_ACEOF
24010
24011
24012
24013# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24014# The cast to long int works around a bug in the HP C Compiler
24015# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24016# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24017# This bug is HP SR number 8606223364.
24018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24019$as_echo_n "checking size of ssize_t... " >&6; }
24020if ${ac_cv_sizeof_ssize_t+:} false; then :
24021 $as_echo_n "(cached) " >&6
24022else
24023 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24024
24025else
24026 if test "$ac_cv_type_ssize_t" = yes; then
24027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24029as_fn_error 77 "cannot compute sizeof (ssize_t)
24030See \`config.log' for more details" "$LINENO" 5; }
24031 else
24032 ac_cv_sizeof_ssize_t=0
24033 fi
24034fi
24035
24036fi
24037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24038$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24039
24040
24041
24042cat >>confdefs.h <<_ACEOF
24043#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24044_ACEOF
24045
24046
24047
cristy3ed852e2009-09-05 21:47:34 +000024048# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24049# The cast to long int works around a bug in the HP C Compiler
24050# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24051# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24052# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024054$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024055if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024056 $as_echo_n "(cached) " >&6
24057else
cristy8b350f62009-11-15 23:12:43 +000024058 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 +000024059
cristy3ed852e2009-09-05 21:47:34 +000024060else
cristy8b350f62009-11-15 23:12:43 +000024061 if test "$ac_cv_type_unsigned_intp" = yes; then
24062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024064as_fn_error 77 "cannot compute sizeof (unsigned int*)
24065See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024066 else
24067 ac_cv_sizeof_unsigned_intp=0
24068 fi
24069fi
cristy8b350f62009-11-15 23:12:43 +000024070
cristy3ed852e2009-09-05 21:47:34 +000024071fi
cristy8b350f62009-11-15 23:12:43 +000024072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024073$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24074
24075
24076
24077cat >>confdefs.h <<_ACEOF
24078#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24079_ACEOF
24080
24081
24082
24083#
24084# Compute sized types for current CPU and compiler options.
24085#
24086
cristy8b350f62009-11-15 23:12:43 +000024087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024088$as_echo_n "checking for signed 8-bit type... " >&6; }
24089INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24091$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024092
24093
cristy8b350f62009-11-15 23:12:43 +000024094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024095$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24096UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24098$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024099
24100
cristy8b350f62009-11-15 23:12:43 +000024101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024102$as_echo_n "checking for signed 16-bit type... " >&6; }
24103INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24105$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024106
24107
cristy8b350f62009-11-15 23:12:43 +000024108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024109$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24110UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24112$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024113
24114
cristy8b350f62009-11-15 23:12:43 +000024115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024116$as_echo_n "checking for signed 32-bit type... " >&6; }
24117INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024118INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024119if test $ac_cv_sizeof_signed_int -eq 4; then
24120 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024121 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024122elif test $ac_cv_sizeof_signed_long -eq 4; then
24123 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024124 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024125fi
cristyad38abe2012-12-23 23:03:21 +000024126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24127$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024128
24129
cristy6d5e20f2011-04-25 13:48:54 +000024130
cristy8b350f62009-11-15 23:12:43 +000024131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024132$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24133UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024134UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024135if test $ac_cv_sizeof_unsigned_int -eq 4; then
24136 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024137 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024138elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24139 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024140 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024141fi
cristyad38abe2012-12-23 23:03:21 +000024142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24143$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024144
24145
cristy6d5e20f2011-04-25 13:48:54 +000024146
cristy8b350f62009-11-15 23:12:43 +000024147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024148$as_echo_n "checking for signed 64-bit type... " >&6; }
24149INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024150INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024151if test $ac_cv_sizeof_signed_long -eq 8; then
24152 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024153 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024154elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24155 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024156 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024157fi
cristy3a99dcf2011-12-17 01:29:40 +000024158case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024159 mingw* )
24160 INT64_F='"I64"'
24161 ;;
24162esac
cristyad38abe2012-12-23 23:03:21 +000024163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24164$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024165
24166
cristy6d5e20f2011-04-25 13:48:54 +000024167
cristy8b350f62009-11-15 23:12:43 +000024168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024169$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24170UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024171UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024172if test $ac_cv_sizeof_unsigned_long -eq 8; then
24173 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024174 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024175elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24176 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024177 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024178fi
cristy3a99dcf2011-12-17 01:29:40 +000024179case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024180 mingw* )
24181 UINT64_F='"I64"'
24182 ;;
24183esac
cristyad38abe2012-12-23 23:03:21 +000024184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24185$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024186
24187
cristy6d5e20f2011-04-25 13:48:54 +000024188
cristy8b350f62009-11-15 23:12:43 +000024189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024190$as_echo_n "checking for unsigned maximum type... " >&6; }
24191UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024192UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024193if test "$UINT64_T" != 'none'; then
24194 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024195 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024196elif test "$UINT32_T" != 'none'; then
24197 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024198 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024199fi
cristyad38abe2012-12-23 23:03:21 +000024200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24201$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024202
24203
cristy6d5e20f2011-04-25 13:48:54 +000024204
cristy8b350f62009-11-15 23:12:43 +000024205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024206$as_echo_n "checking for pointer difference type... " >&6; }
24207UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024208UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024209if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24210 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024211 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024212elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24213 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024214 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024215fi
cristyad38abe2012-12-23 23:03:21 +000024216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24217$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024218
24219
cristy6d5e20f2011-04-25 13:48:54 +000024220
cristy8b350f62009-11-15 23:12:43 +000024221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024222$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024224/* end confdefs.h. */
24225
24226int
24227main ()
24228{
24229{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24230 ;
24231 return 0;
24232}
24233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024234if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24236$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024237else
cristyad38abe2012-12-23 23:03:21 +000024238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24239$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024241$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024243/* end confdefs.h. */
24244
24245int
24246main ()
24247{
24248{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24249 ;
24250 return 0;
24251}
24252_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024253if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24255$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024256
cristy8b350f62009-11-15 23:12:43 +000024257$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024258
24259else
cristyad38abe2012-12-23 23:03:21 +000024260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24261$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024262
cristy8b350f62009-11-15 23:12:43 +000024263$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024264
24265fi
cristy3ed852e2009-09-05 21:47:34 +000024266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24267fi
cristy3ed852e2009-09-05 21:47:34 +000024268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24269
24270########
24271#
24272# Check for functions
24273#
24274########
cristy8b350f62009-11-15 23:12:43 +000024275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024276$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024277if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024278 $as_echo_n "(cached) " >&6
24279else
cristy8b350f62009-11-15 23:12:43 +000024280 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024281 ac_cv_func_closedir_void=yes
24282else
cristy8b350f62009-11-15 23:12:43 +000024283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024284/* end confdefs.h. */
24285$ac_includes_default
24286#include <$ac_header_dirent>
24287#ifndef __cplusplus
24288int closedir ();
24289#endif
24290
24291int
24292main ()
24293{
24294return closedir (opendir (".")) != 0;
24295 ;
24296 return 0;
24297}
24298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024299if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024300 ac_cv_func_closedir_void=no
24301else
cristy8b350f62009-11-15 23:12:43 +000024302 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024303fi
cristy8b350f62009-11-15 23:12:43 +000024304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24305 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024306fi
24307
cristy3ed852e2009-09-05 21:47:34 +000024308fi
cristy8b350f62009-11-15 23:12:43 +000024309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024310$as_echo "$ac_cv_func_closedir_void" >&6; }
24311if test $ac_cv_func_closedir_void = yes; then
24312
cristy8b350f62009-11-15 23:12:43 +000024313$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024314
24315fi
24316
cristycd4c5312009-11-22 01:19:08 +000024317
24318
24319
24320 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024321do :
24322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024323ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24324"
cristy98dddb52010-11-04 00:30:15 +000024325if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024326 cat >>confdefs.h <<_ACEOF
24327#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24328_ACEOF
24329
24330fi
24331
24332done
24333
cristycd4c5312009-11-22 01:19:08 +000024334
24335
24336
24337
24338
24339
24340
cristy3ed852e2009-09-05 21:47:34 +000024341for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024342do :
24343 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024344if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024345 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024346#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024347_ACEOF
24348
24349fi
24350done
24351
cristy8b350f62009-11-15 23:12:43 +000024352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024353$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024354if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024355 $as_echo_n "(cached) " >&6
24356else
cristy8b350f62009-11-15 23:12:43 +000024357 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024358 ac_cv_func_mmap_fixed_mapped=no
24359else
cristy8b350f62009-11-15 23:12:43 +000024360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024361/* end confdefs.h. */
24362$ac_includes_default
24363/* malloc might have been renamed as rpl_malloc. */
24364#undef malloc
24365
24366/* Thanks to Mike Haertel and Jim Avera for this test.
24367 Here is a matrix of mmap possibilities:
24368 mmap private not fixed
24369 mmap private fixed at somewhere currently unmapped
24370 mmap private fixed at somewhere already mapped
24371 mmap shared not fixed
24372 mmap shared fixed at somewhere currently unmapped
24373 mmap shared fixed at somewhere already mapped
24374 For private mappings, we should verify that changes cannot be read()
24375 back from the file, nor mmap's back from the file at a different
24376 address. (There have been systems where private was not correctly
24377 implemented like the infamous i386 svr4.0, and systems where the
24378 VM page cache was not coherent with the file system buffer cache
24379 like early versions of FreeBSD and possibly contemporary NetBSD.)
24380 For shared mappings, we should conversely verify that changes get
24381 propagated back to all the places they're supposed to be.
24382
24383 Grep wants private fixed already mapped.
24384 The main things grep needs to know about mmap are:
24385 * does it exist and is it safe to write into the mmap'd area
24386 * how to use it (BSD variants) */
24387
24388#include <fcntl.h>
24389#include <sys/mman.h>
24390
24391#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24392char *malloc ();
24393#endif
24394
24395/* This mess was copied from the GNU getpagesize.h. */
24396#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024397# ifdef _SC_PAGESIZE
24398# define getpagesize() sysconf(_SC_PAGESIZE)
24399# else /* no _SC_PAGESIZE */
24400# ifdef HAVE_SYS_PARAM_H
24401# include <sys/param.h>
24402# ifdef EXEC_PAGESIZE
24403# define getpagesize() EXEC_PAGESIZE
24404# else /* no EXEC_PAGESIZE */
24405# ifdef NBPG
24406# define getpagesize() NBPG * CLSIZE
24407# ifndef CLSIZE
24408# define CLSIZE 1
24409# endif /* no CLSIZE */
24410# else /* no NBPG */
24411# ifdef NBPC
24412# define getpagesize() NBPC
24413# else /* no NBPC */
24414# ifdef PAGESIZE
24415# define getpagesize() PAGESIZE
24416# endif /* PAGESIZE */
24417# endif /* no NBPC */
24418# endif /* no NBPG */
24419# endif /* no EXEC_PAGESIZE */
24420# else /* no HAVE_SYS_PARAM_H */
24421# define getpagesize() 8192 /* punt totally */
24422# endif /* no HAVE_SYS_PARAM_H */
24423# endif /* no _SC_PAGESIZE */
24424
24425#endif /* no HAVE_GETPAGESIZE */
24426
24427int
24428main ()
24429{
24430 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024431 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024432 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024433 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024434
24435 pagesize = getpagesize ();
24436
24437 /* First, make a file with some known garbage in it. */
24438 data = (char *) malloc (pagesize);
24439 if (!data)
24440 return 1;
24441 for (i = 0; i < pagesize; ++i)
24442 *(data + i) = rand ();
24443 umask (0);
24444 fd = creat ("conftest.mmap", 0600);
24445 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024446 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024447 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024448 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024449 close (fd);
24450
cristycd4c5312009-11-22 01:19:08 +000024451 /* Next, check that the tail of a page is zero-filled. File must have
24452 non-zero length, otherwise we risk SIGBUS for entire page. */
24453 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24454 if (fd2 < 0)
24455 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024456 cdata2 = "";
24457 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024458 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024459 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024460 if (data2 == MAP_FAILED)
24461 return 6;
24462 for (i = 0; i < pagesize; ++i)
24463 if (*(data2 + i))
24464 return 7;
24465 close (fd2);
24466 if (munmap (data2, pagesize))
24467 return 8;
24468
cristy3ed852e2009-09-05 21:47:34 +000024469 /* Next, try to mmap the file at a fixed address which already has
24470 something else allocated at it. If we can, also make sure that
24471 we see the same garbage. */
24472 fd = open ("conftest.mmap", O_RDWR);
24473 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024474 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024475 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24476 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024477 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024478 for (i = 0; i < pagesize; ++i)
24479 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024480 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024481
24482 /* Finally, make sure that changes to the mapped area do not
24483 percolate back to the file as seen by read(). (This is a bug on
24484 some variants of i386 svr4.0.) */
24485 for (i = 0; i < pagesize; ++i)
24486 *(data2 + i) = *(data2 + i) + 1;
24487 data3 = (char *) malloc (pagesize);
24488 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024489 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024490 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024491 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024492 for (i = 0; i < pagesize; ++i)
24493 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024494 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024495 close (fd);
24496 return 0;
24497}
24498_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024499if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024500 ac_cv_func_mmap_fixed_mapped=yes
24501else
cristy8b350f62009-11-15 23:12:43 +000024502 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024503fi
cristy8b350f62009-11-15 23:12:43 +000024504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24505 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024506fi
24507
cristy3ed852e2009-09-05 21:47:34 +000024508fi
cristy8b350f62009-11-15 23:12:43 +000024509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024510$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24511if test $ac_cv_func_mmap_fixed_mapped = yes; then
24512
cristy8b350f62009-11-15 23:12:43 +000024513$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024514
24515fi
cristycd4c5312009-11-22 01:19:08 +000024516rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024517
cristy3ed852e2009-09-05 21:47:34 +000024518for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024519do :
24520 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024521if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024522 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024523#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024524_ACEOF
24525
24526fi
24527
24528done
24529
cristy3ed852e2009-09-05 21:47:34 +000024530for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024531do :
24532 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24533ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024534if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024535 cat >>confdefs.h <<_ACEOF
24536#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24537_ACEOF
24538
24539fi
24540done
24541
24542if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024544$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024545if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024546 $as_echo_n "(cached) " >&6
24547else
cristy8b350f62009-11-15 23:12:43 +000024548 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024549 ac_cv_func_fork_works=cross
24550else
cristy8b350f62009-11-15 23:12:43 +000024551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024552/* end confdefs.h. */
24553$ac_includes_default
24554int
24555main ()
24556{
24557
24558 /* By Ruediger Kuhlmann. */
24559 return fork () < 0;
24560
24561 ;
24562 return 0;
24563}
24564_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024565if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024566 ac_cv_func_fork_works=yes
24567else
cristy8b350f62009-11-15 23:12:43 +000024568 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024569fi
cristy8b350f62009-11-15 23:12:43 +000024570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24571 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024572fi
24573
cristy3ed852e2009-09-05 21:47:34 +000024574fi
cristy8b350f62009-11-15 23:12:43 +000024575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024576$as_echo "$ac_cv_func_fork_works" >&6; }
24577
24578else
24579 ac_cv_func_fork_works=$ac_cv_func_fork
24580fi
24581if test "x$ac_cv_func_fork_works" = xcross; then
24582 case $host in
24583 *-*-amigaos* | *-*-msdosdjgpp*)
24584 # Override, as these systems have only a dummy fork() stub
24585 ac_cv_func_fork_works=no
24586 ;;
24587 *)
24588 ac_cv_func_fork_works=yes
24589 ;;
24590 esac
cristy8b350f62009-11-15 23:12:43 +000024591 { $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 +000024592$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24593fi
24594ac_cv_func_vfork_works=$ac_cv_func_vfork
24595if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024597$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024598if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024599 $as_echo_n "(cached) " >&6
24600else
cristy8b350f62009-11-15 23:12:43 +000024601 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024602 ac_cv_func_vfork_works=cross
24603else
cristy8b350f62009-11-15 23:12:43 +000024604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024605/* end confdefs.h. */
24606/* Thanks to Paul Eggert for this test. */
24607$ac_includes_default
24608#include <sys/wait.h>
24609#ifdef HAVE_VFORK_H
24610# include <vfork.h>
24611#endif
24612/* On some sparc systems, changes by the child to local and incoming
24613 argument registers are propagated back to the parent. The compiler
24614 is told about this with #include <vfork.h>, but some compilers
24615 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24616 static variable whose address is put into a register that is
24617 clobbered by the vfork. */
24618static void
24619#ifdef __cplusplus
24620sparc_address_test (int arg)
24621# else
24622sparc_address_test (arg) int arg;
24623#endif
24624{
24625 static pid_t child;
24626 if (!child) {
24627 child = vfork ();
24628 if (child < 0) {
24629 perror ("vfork");
24630 _exit(2);
24631 }
24632 if (!child) {
24633 arg = getpid();
24634 write(-1, "", 0);
24635 _exit (arg);
24636 }
24637 }
24638}
24639
24640int
24641main ()
24642{
24643 pid_t parent = getpid ();
24644 pid_t child;
24645
24646 sparc_address_test (0);
24647
24648 child = vfork ();
24649
24650 if (child == 0) {
24651 /* Here is another test for sparc vfork register problems. This
24652 test uses lots of local variables, at least as many local
24653 variables as main has allocated so far including compiler
24654 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24655 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24656 reuse the register of parent for one of the local variables,
24657 since it will think that parent can't possibly be used any more
24658 in this routine. Assigning to the local variable will thus
24659 munge parent in the parent process. */
24660 pid_t
24661 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24662 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24663 /* Convince the compiler that p..p7 are live; otherwise, it might
24664 use the same hardware register for all 8 local variables. */
24665 if (p != p1 || p != p2 || p != p3 || p != p4
24666 || p != p5 || p != p6 || p != p7)
24667 _exit(1);
24668
24669 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24670 from child file descriptors. If the child closes a descriptor
24671 before it execs or exits, this munges the parent's descriptor
24672 as well. Test for this by closing stdout in the child. */
24673 _exit(close(fileno(stdout)) != 0);
24674 } else {
24675 int status;
24676 struct stat st;
24677
24678 while (wait(&status) != child)
24679 ;
24680 return (
24681 /* Was there some problem with vforking? */
24682 child < 0
24683
24684 /* Did the child fail? (This shouldn't happen.) */
24685 || status
24686
24687 /* Did the vfork/compiler bug occur? */
24688 || parent != getpid()
24689
24690 /* Did the file descriptor bug occur? */
24691 || fstat(fileno(stdout), &st) != 0
24692 );
24693 }
24694}
24695_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024696if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024697 ac_cv_func_vfork_works=yes
24698else
cristy8b350f62009-11-15 23:12:43 +000024699 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024700fi
cristy8b350f62009-11-15 23:12:43 +000024701rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24702 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024703fi
24704
cristy3ed852e2009-09-05 21:47:34 +000024705fi
cristy8b350f62009-11-15 23:12:43 +000024706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024707$as_echo "$ac_cv_func_vfork_works" >&6; }
24708
24709fi;
24710if test "x$ac_cv_func_fork_works" = xcross; then
24711 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024712 { $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 +000024713$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24714fi
24715
24716if test "x$ac_cv_func_vfork_works" = xyes; then
24717
cristy8b350f62009-11-15 23:12:43 +000024718$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024719
24720else
24721
cristy8b350f62009-11-15 23:12:43 +000024722$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024723
24724fi
24725if test "x$ac_cv_func_fork_works" = xyes; then
24726
cristy8b350f62009-11-15 23:12:43 +000024727$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024728
24729fi
24730
cristy8b350f62009-11-15 23:12:43 +000024731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024732$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024733if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024734 $as_echo_n "(cached) " >&6
24735else
cristy8b350f62009-11-15 23:12:43 +000024736 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024737 ac_cv_func_memcmp_working=no
24738else
cristy8b350f62009-11-15 23:12:43 +000024739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024740/* end confdefs.h. */
24741$ac_includes_default
24742int
24743main ()
24744{
24745
24746 /* Some versions of memcmp are not 8-bit clean. */
24747 char c0 = '\100', c1 = '\200', c2 = '\201';
24748 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24749 return 1;
24750
24751 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24752 or more and with at least one buffer not starting on a 4-byte boundary.
24753 William Lewis provided this test program. */
24754 {
24755 char foo[21];
24756 char bar[21];
24757 int i;
24758 for (i = 0; i < 4; i++)
24759 {
24760 char *a = foo + i;
24761 char *b = bar + i;
24762 strcpy (a, "--------01111111");
24763 strcpy (b, "--------10000000");
24764 if (memcmp (a, b, 16) >= 0)
24765 return 1;
24766 }
24767 return 0;
24768 }
24769
24770 ;
24771 return 0;
24772}
24773_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024774if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024775 ac_cv_func_memcmp_working=yes
24776else
cristy8b350f62009-11-15 23:12:43 +000024777 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024778fi
cristy8b350f62009-11-15 23:12:43 +000024779rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24780 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024781fi
24782
cristy3ed852e2009-09-05 21:47:34 +000024783fi
cristy8b350f62009-11-15 23:12:43 +000024784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024785$as_echo "$ac_cv_func_memcmp_working" >&6; }
24786test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24787 *" memcmp.$ac_objext "* ) ;;
24788 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24789 ;;
24790esac
24791
24792
cristy3ed852e2009-09-05 21:47:34 +000024793for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024794do :
24795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24796ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024797if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024798 cat >>confdefs.h <<_ACEOF
24799#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24800_ACEOF
24801
24802fi
24803
24804done
24805
cristy8b350f62009-11-15 23:12:43 +000024806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024807$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024808if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024809 $as_echo_n "(cached) " >&6
24810else
24811 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24812 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24813 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024815/* end confdefs.h. */
24816$ac_includes_default
24817#ifdef HAVE_SYS_SELECT_H
24818# include <sys/select.h>
24819#endif
24820#ifdef HAVE_SYS_SOCKET_H
24821# include <sys/socket.h>
24822#endif
24823
24824int
24825main ()
24826{
24827extern int select ($ac_arg1,
24828 $ac_arg234, $ac_arg234, $ac_arg234,
24829 $ac_arg5);
24830 ;
24831 return 0;
24832}
24833_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024834if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024835 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024836fi
cristy3ed852e2009-09-05 21:47:34 +000024837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24838 done
24839 done
24840done
24841# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024842: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024843
24844fi
cristy8b350f62009-11-15 23:12:43 +000024845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024846$as_echo "$ac_cv_func_select_args" >&6; }
24847ac_save_IFS=$IFS; IFS=','
24848set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24849IFS=$ac_save_IFS
24850shift
24851
24852cat >>confdefs.h <<_ACEOF
24853#define SELECT_TYPE_ARG1 $1
24854_ACEOF
24855
24856
24857cat >>confdefs.h <<_ACEOF
24858#define SELECT_TYPE_ARG234 ($2)
24859_ACEOF
24860
24861
24862cat >>confdefs.h <<_ACEOF
24863#define SELECT_TYPE_ARG5 ($3)
24864_ACEOF
24865
24866rm -f conftest*
24867
cristyda16f162011-02-19 23:52:17 +000024868if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024869 $as_echo_n "(cached) " >&6
24870else
24871 ac_cv_func_setvbuf_reversed=no
24872fi
24873
24874
cristy8b350f62009-11-15 23:12:43 +000024875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024876$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024877if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024878 $as_echo_n "(cached) " >&6
24879else
cristy8b350f62009-11-15 23:12:43 +000024880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024881/* end confdefs.h. */
24882#include <sys/types.h>
24883#include <signal.h>
24884
24885int
24886main ()
24887{
24888return *(signal (0, 0)) (0) == 1;
24889 ;
24890 return 0;
24891}
24892_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024893if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024894 ac_cv_type_signal=int
24895else
cristy8b350f62009-11-15 23:12:43 +000024896 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024897fi
cristy3ed852e2009-09-05 21:47:34 +000024898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24899fi
cristy8b350f62009-11-15 23:12:43 +000024900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024901$as_echo "$ac_cv_type_signal" >&6; }
24902
24903cat >>confdefs.h <<_ACEOF
24904#define RETSIGTYPE $ac_cv_type_signal
24905_ACEOF
24906
24907
cristy8b350f62009-11-15 23:12:43 +000024908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024909$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024910if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024911 $as_echo_n "(cached) " >&6
24912else
cristy8b350f62009-11-15 23:12:43 +000024913 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024914 ac_cv_func_strtod=no
24915else
cristy8b350f62009-11-15 23:12:43 +000024916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024917/* end confdefs.h. */
24918
24919$ac_includes_default
24920#ifndef strtod
24921double strtod ();
24922#endif
24923int
24924main()
24925{
24926 {
24927 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24928 char *string = " +69";
24929 char *term;
24930 double value;
24931 value = strtod (string, &term);
24932 if (value != 69 || term != (string + 4))
24933 return 1;
24934 }
24935
24936 {
24937 /* Under Solaris 2.4, strtod returns the wrong value for the
24938 terminating character under some conditions. */
24939 char *string = "NaN";
24940 char *term;
24941 strtod (string, &term);
24942 if (term != string && *(term - 1) == 0)
24943 return 1;
24944 }
24945 return 0;
24946}
24947
24948_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024949if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024950 ac_cv_func_strtod=yes
24951else
cristy8b350f62009-11-15 23:12:43 +000024952 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024953fi
cristy8b350f62009-11-15 23:12:43 +000024954rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24955 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024956fi
24957
cristy3ed852e2009-09-05 21:47:34 +000024958fi
cristy8b350f62009-11-15 23:12:43 +000024959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024960$as_echo "$ac_cv_func_strtod" >&6; }
24961if test $ac_cv_func_strtod = no; then
24962 case " $LIBOBJS " in
24963 *" strtod.$ac_objext "* ) ;;
24964 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24965 ;;
24966esac
24967
cristy8b350f62009-11-15 23:12:43 +000024968ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024969if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024970
cristy3ed852e2009-09-05 21:47:34 +000024971fi
24972
cristy3ed852e2009-09-05 21:47:34 +000024973if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024975$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024976if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024977 $as_echo_n "(cached) " >&6
24978else
24979 ac_check_lib_save_LIBS=$LIBS
24980LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024982/* end confdefs.h. */
24983
24984/* Override any GCC internal prototype to avoid an error.
24985 Use char because int might match the return type of a GCC
24986 builtin and then its argument prototype would still apply. */
24987#ifdef __cplusplus
24988extern "C"
24989#endif
24990char pow ();
24991int
24992main ()
24993{
24994return pow ();
24995 ;
24996 return 0;
24997}
24998_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024999if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025000 ac_cv_lib_m_pow=yes
25001else
cristy8b350f62009-11-15 23:12:43 +000025002 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025003fi
cristy8b350f62009-11-15 23:12:43 +000025004rm -f core conftest.err conftest.$ac_objext \
25005 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025006LIBS=$ac_check_lib_save_LIBS
25007fi
cristy8b350f62009-11-15 23:12:43 +000025008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025009$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025010if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025011 POW_LIB=-lm
25012else
cristy8b350f62009-11-15 23:12:43 +000025013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025014$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25015fi
25016
25017fi
25018
25019fi
25020
cristy7d4a1d62011-10-13 15:54:12 +000025021ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25022if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25023 ac_have_decl=1
25024else
25025 ac_have_decl=0
25026fi
25027
25028cat >>confdefs.h <<_ACEOF
25029#define HAVE_DECL_STRERROR_R $ac_have_decl
25030_ACEOF
25031
25032for ac_func in strerror_r
25033do :
25034 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25035if test "x$ac_cv_func_strerror_r" = xyes; then :
25036 cat >>confdefs.h <<_ACEOF
25037#define HAVE_STRERROR_R 1
25038_ACEOF
25039
25040fi
25041done
25042
25043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25044$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25045if ${ac_cv_func_strerror_r_char_p+:} false; then :
25046 $as_echo_n "(cached) " >&6
25047else
25048
25049 ac_cv_func_strerror_r_char_p=no
25050 if test $ac_cv_have_decl_strerror_r = yes; then
25051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25052/* end confdefs.h. */
25053$ac_includes_default
25054int
25055main ()
25056{
25057
25058 char buf[100];
25059 char x = *strerror_r (0, buf, sizeof buf);
25060 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025061 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025062
25063 ;
25064 return 0;
25065}
25066_ACEOF
25067if ac_fn_c_try_compile "$LINENO"; then :
25068 ac_cv_func_strerror_r_char_p=yes
25069fi
25070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25071 else
25072 # strerror_r is not declared. Choose between
25073 # systems that have relatively inaccessible declarations for the
25074 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25075 # former has a strerror_r that returns char*, while the latter
25076 # has a strerror_r that returns `int'.
25077 # This test should segfault on the DEC system.
25078 if test "$cross_compiling" = yes; then :
25079 :
25080else
25081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25082/* end confdefs.h. */
25083$ac_includes_default
25084 extern char *strerror_r ();
25085int
25086main ()
25087{
25088char buf[100];
25089 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025090 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025091 ;
25092 return 0;
25093}
25094_ACEOF
25095if ac_fn_c_try_run "$LINENO"; then :
25096 ac_cv_func_strerror_r_char_p=yes
25097fi
25098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25099 conftest.$ac_objext conftest.beam conftest.$ac_ext
25100fi
25101
25102 fi
25103
25104fi
25105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25106$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25107if test $ac_cv_func_strerror_r_char_p = yes; then
25108
25109$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25110
25111fi
25112
cristy3ed852e2009-09-05 21:47:34 +000025113for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025114do :
25115 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025116if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025117 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025118#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025119_ACEOF
25120
cristy8b350f62009-11-15 23:12:43 +000025121ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025122if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025123
cristy8b350f62009-11-15 23:12:43 +000025124$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025125
25126fi
25127
25128fi
25129done
25130
25131
25132
cristy161b9262010-03-20 19:34:32 +000025133#
25134# Find math library
25135#
25136MATH_LIBS=''
25137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25138$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025139if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025140 $as_echo_n "(cached) " >&6
25141else
25142 ac_check_lib_save_LIBS=$LIBS
25143LIBS="-lm $LIBS"
25144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25145/* end confdefs.h. */
25146
25147/* Override any GCC internal prototype to avoid an error.
25148 Use char because int might match the return type of a GCC
25149 builtin and then its argument prototype would still apply. */
25150#ifdef __cplusplus
25151extern "C"
25152#endif
25153char sqrt ();
25154int
25155main ()
25156{
25157return sqrt ();
25158 ;
25159 return 0;
25160}
25161_ACEOF
25162if ac_fn_c_try_link "$LINENO"; then :
25163 ac_cv_lib_m_sqrt=yes
25164else
25165 ac_cv_lib_m_sqrt=no
25166fi
25167rm -f core conftest.err conftest.$ac_objext \
25168 conftest$ac_exeext conftest.$ac_ext
25169LIBS=$ac_check_lib_save_LIBS
25170fi
25171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25172$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025173if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025174 MATH_LIBS="-lm"
25175fi
25176
25177LIBS="$MATH_LIBS $LIBS"
25178
25179
cristy85572162013-01-04 19:19:32 +000025180#
25181# Find socket library
25182#
cristy8a5d7f42013-01-06 15:24:33 +000025183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25184$as_echo_n "checking for library containing gethostbyname... " >&6; }
25185if ${ac_cv_search_gethostbyname+:} false; then :
25186 $as_echo_n "(cached) " >&6
25187else
25188 ac_func_search_save_LIBS=$LIBS
25189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25190/* end confdefs.h. */
25191
25192/* Override any GCC internal prototype to avoid an error.
25193 Use char because int might match the return type of a GCC
25194 builtin and then its argument prototype would still apply. */
25195#ifdef __cplusplus
25196extern "C"
25197#endif
25198char gethostbyname ();
25199int
25200main ()
25201{
25202return gethostbyname ();
25203 ;
25204 return 0;
25205}
25206_ACEOF
25207for ac_lib in '' resolv nsl; do
25208 if test -z "$ac_lib"; then
25209 ac_res="none required"
25210 else
25211 ac_res=-l$ac_lib
25212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25213 fi
25214 if ac_fn_c_try_link "$LINENO"; then :
25215 ac_cv_search_gethostbyname=$ac_res
25216fi
25217rm -f core conftest.err conftest.$ac_objext \
25218 conftest$ac_exeext
25219 if ${ac_cv_search_gethostbyname+:} false; then :
25220 break
25221fi
25222done
25223if ${ac_cv_search_gethostbyname+:} false; then :
25224
25225else
25226 ac_cv_search_gethostbyname=no
25227fi
25228rm conftest.$ac_ext
25229LIBS=$ac_func_search_save_LIBS
25230fi
25231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25232$as_echo "$ac_cv_search_gethostbyname" >&6; }
25233ac_res=$ac_cv_search_gethostbyname
25234if test "$ac_res" != no; then :
25235 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25236
25237fi
25238
cristy85572162013-01-04 19:19:32 +000025239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25240$as_echo_n "checking for library containing socket... " >&6; }
25241if ${ac_cv_search_socket+:} false; then :
25242 $as_echo_n "(cached) " >&6
25243else
25244 ac_func_search_save_LIBS=$LIBS
25245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25246/* end confdefs.h. */
25247
25248/* Override any GCC internal prototype to avoid an error.
25249 Use char because int might match the return type of a GCC
25250 builtin and then its argument prototype would still apply. */
25251#ifdef __cplusplus
25252extern "C"
25253#endif
25254char socket ();
25255int
25256main ()
25257{
25258return socket ();
25259 ;
25260 return 0;
25261}
25262_ACEOF
25263for ac_lib in '' socket; do
25264 if test -z "$ac_lib"; then
25265 ac_res="none required"
25266 else
25267 ac_res=-l$ac_lib
25268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25269 fi
25270 if ac_fn_c_try_link "$LINENO"; then :
25271 ac_cv_search_socket=$ac_res
25272fi
25273rm -f core conftest.err conftest.$ac_objext \
25274 conftest$ac_exeext
25275 if ${ac_cv_search_socket+:} false; then :
25276 break
25277fi
25278done
25279if ${ac_cv_search_socket+:} false; then :
25280
25281else
25282 ac_cv_search_socket=no
25283fi
25284rm conftest.$ac_ext
25285LIBS=$ac_func_search_save_LIBS
25286fi
25287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25288$as_echo "$ac_cv_search_socket" >&6; }
25289ac_res=$ac_cv_search_socket
25290if test "$ac_res" != no; then :
25291 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25292
cristy85572162013-01-04 19:19:32 +000025293
cristy8a5d7f42013-01-06 15:24:33 +000025294$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025295
cristy03f187e2013-01-24 00:22:19 +000025296 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025297
25298fi
25299
25300
25301for 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 +000025302do :
25303 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25304ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025305if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025306 cat >>confdefs.h <<_ACEOF
25307#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25308_ACEOF
25309
25310fi
25311done
25312
25313
cristye43a45e2009-09-28 14:49:00 +000025314#
25315# Check for clock_gettime().
25316#
cristy8b350f62009-11-15 23:12:43 +000025317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025318$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025319if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025320 $as_echo_n "(cached) " >&6
25321else
25322 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025324/* end confdefs.h. */
25325
25326/* Override any GCC internal prototype to avoid an error.
25327 Use char because int might match the return type of a GCC
25328 builtin and then its argument prototype would still apply. */
25329#ifdef __cplusplus
25330extern "C"
25331#endif
25332char clock_gettime ();
25333int
25334main ()
25335{
25336return clock_gettime ();
25337 ;
25338 return 0;
25339}
25340_ACEOF
25341for ac_lib in '' rt; do
25342 if test -z "$ac_lib"; then
25343 ac_res="none required"
25344 else
25345 ac_res=-l$ac_lib
25346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25347 fi
cristy8b350f62009-11-15 23:12:43 +000025348 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025349 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025350fi
cristy8b350f62009-11-15 23:12:43 +000025351rm -f core conftest.err conftest.$ac_objext \
25352 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025353 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025354 break
25355fi
25356done
cristyda16f162011-02-19 23:52:17 +000025357if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025358
cristye43a45e2009-09-28 14:49:00 +000025359else
25360 ac_cv_search_clock_gettime=no
25361fi
25362rm conftest.$ac_ext
25363LIBS=$ac_func_search_save_LIBS
25364fi
cristy8b350f62009-11-15 23:12:43 +000025365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025366$as_echo "$ac_cv_search_clock_gettime" >&6; }
25367ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025368if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25370
25371
cristy8b350f62009-11-15 23:12:43 +000025372$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025373
cristy8b350f62009-11-15 23:12:43 +000025374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025375$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025377/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025378
25379 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025380int
25381main ()
25382{
25383clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025384 ;
25385 return 0;
25386}
25387_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025388if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025389
cristyad38abe2012-12-23 23:03:21 +000025390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25391$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025392
cristy8b350f62009-11-15 23:12:43 +000025393$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025394
25395
25396else
cristyad38abe2012-12-23 23:03:21 +000025397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25398$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025399
25400fi
cristye43a45e2009-09-28 14:49:00 +000025401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25402
25403else
25404
cristy8b350f62009-11-15 23:12:43 +000025405 for ac_func in gettimeofday ftime
25406do :
25407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25408ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025409if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025410 cat >>confdefs.h <<_ACEOF
25411#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25412_ACEOF
25413 break
25414fi
25415done
25416
25417
25418
25419fi
25420
25421
cristy3ed852e2009-09-05 21:47:34 +000025422########
25423#
25424# Check for function prototypes
25425#
25426########
25427
cristy8b350f62009-11-15 23:12:43 +000025428ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025429#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025430"
cristyda16f162011-02-19 23:52:17 +000025431if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025432 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025433else
cristy8b350f62009-11-15 23:12:43 +000025434 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025435fi
25436
cristy3ed852e2009-09-05 21:47:34 +000025437cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025438#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025439_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025440ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025441#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025442"
cristyda16f162011-02-19 23:52:17 +000025443if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025444 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025445else
cristy8b350f62009-11-15 23:12:43 +000025446 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025447fi
25448
cristy3ed852e2009-09-05 21:47:34 +000025449cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025450#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025451_ACEOF
25452
25453
cristy8b350f62009-11-15 23:12:43 +000025454ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025455#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025456"
cristyda16f162011-02-19 23:52:17 +000025457if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025458 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025459else
cristy8b350f62009-11-15 23:12:43 +000025460 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025461fi
25462
cristy3ed852e2009-09-05 21:47:34 +000025463cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025464#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025465_ACEOF
25466
25467
cristy8b350f62009-11-15 23:12:43 +000025468ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025469#include <stdio.h>
25470#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025471"
cristyda16f162011-02-19 23:52:17 +000025472if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025473 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025474else
cristy8b350f62009-11-15 23:12:43 +000025475 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025476fi
25477
cristy3ed852e2009-09-05 21:47:34 +000025478cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025479#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025480_ACEOF
25481
25482
cristy3ed852e2009-09-05 21:47:34 +000025483########
25484#
25485# C++ Support Tests (For Magick++)
25486#
25487########
25488have_magick_plus_plus='no'
25489if test "$with_magick_plus_plus" = 'yes'; then
25490 OLIBS="$LIBS"
25491 LIBS=''
25492 ac_ext=cpp
25493ac_cpp='$CXXCPP $CPPFLAGS'
25494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25497
25498
25499 # Full set of headers used...
25500 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25501 # functional iomanip iosfwd iostream iterator list string strstream utility
25502 ac_ext=cpp
25503ac_cpp='$CXXCPP $CPPFLAGS'
25504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25507
25508 ac_ext=cpp
25509ac_cpp='$CXXCPP $CPPFLAGS'
25510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25513if test -z "$CXX"; then
25514 if test -n "$CCC"; then
25515 CXX=$CCC
25516 else
25517 if test -n "$ac_tool_prefix"; then
25518 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25519 do
25520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25521set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025523$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025524if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025525 $as_echo_n "(cached) " >&6
25526else
25527 if test -n "$CXX"; then
25528 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25529else
25530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25531for as_dir in $PATH
25532do
25533 IFS=$as_save_IFS
25534 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025535 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025537 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025539 break 2
25540 fi
25541done
cristy8b350f62009-11-15 23:12:43 +000025542 done
cristy3ed852e2009-09-05 21:47:34 +000025543IFS=$as_save_IFS
25544
25545fi
25546fi
25547CXX=$ac_cv_prog_CXX
25548if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025550$as_echo "$CXX" >&6; }
25551else
cristy8b350f62009-11-15 23:12:43 +000025552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025553$as_echo "no" >&6; }
25554fi
25555
25556
25557 test -n "$CXX" && break
25558 done
25559fi
25560if test -z "$CXX"; then
25561 ac_ct_CXX=$CXX
25562 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25563do
25564 # Extract the first word of "$ac_prog", so it can be a program name with args.
25565set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025567$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025568if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025569 $as_echo_n "(cached) " >&6
25570else
25571 if test -n "$ac_ct_CXX"; then
25572 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25573else
25574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25575for as_dir in $PATH
25576do
25577 IFS=$as_save_IFS
25578 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025579 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025581 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025583 break 2
25584 fi
25585done
cristy8b350f62009-11-15 23:12:43 +000025586 done
cristy3ed852e2009-09-05 21:47:34 +000025587IFS=$as_save_IFS
25588
25589fi
25590fi
25591ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25592if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025594$as_echo "$ac_ct_CXX" >&6; }
25595else
cristy8b350f62009-11-15 23:12:43 +000025596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025597$as_echo "no" >&6; }
25598fi
25599
25600
25601 test -n "$ac_ct_CXX" && break
25602done
25603
25604 if test "x$ac_ct_CXX" = x; then
25605 CXX="g++"
25606 else
25607 case $cross_compiling:$ac_tool_warned in
25608yes:)
cristy8b350f62009-11-15 23:12:43 +000025609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25611ac_tool_warned=yes ;;
25612esac
25613 CXX=$ac_ct_CXX
25614 fi
25615fi
25616
25617 fi
25618fi
25619# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025620$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025621set X $ac_compile
25622ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025623for ac_option in --version -v -V -qversion; do
25624 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025625case "(($ac_try" in
25626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25627 *) ac_try_echo=$ac_try;;
25628esac
cristy8b350f62009-11-15 23:12:43 +000025629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25630$as_echo "$ac_try_echo"; } >&5
25631 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025632 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025633 if test -s conftest.err; then
25634 sed '10a\
25635... rest of stderr output deleted ...
25636 10q' conftest.err >conftest.er1
25637 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025638 fi
cristycd4c5312009-11-22 01:19:08 +000025639 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25641 test $ac_status = 0; }
25642done
cristy3ed852e2009-09-05 21:47:34 +000025643
cristy8b350f62009-11-15 23:12:43 +000025644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025645$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025646if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025647 $as_echo_n "(cached) " >&6
25648else
cristy8b350f62009-11-15 23:12:43 +000025649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025650/* end confdefs.h. */
25651
25652int
25653main ()
25654{
25655#ifndef __GNUC__
25656 choke me
25657#endif
25658
25659 ;
25660 return 0;
25661}
25662_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025663if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025664 ac_compiler_gnu=yes
25665else
cristy8b350f62009-11-15 23:12:43 +000025666 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025667fi
cristy3ed852e2009-09-05 21:47:34 +000025668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25669ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25670
25671fi
cristy8b350f62009-11-15 23:12:43 +000025672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025673$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25674if test $ac_compiler_gnu = yes; then
25675 GXX=yes
25676else
25677 GXX=
25678fi
25679ac_test_CXXFLAGS=${CXXFLAGS+set}
25680ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025682$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025683if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025684 $as_echo_n "(cached) " >&6
25685else
25686 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25687 ac_cxx_werror_flag=yes
25688 ac_cv_prog_cxx_g=no
25689 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025691/* end confdefs.h. */
25692
25693int
25694main ()
25695{
25696
25697 ;
25698 return 0;
25699}
25700_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025701if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025702 ac_cv_prog_cxx_g=yes
25703else
cristy8b350f62009-11-15 23:12:43 +000025704 CXXFLAGS=""
25705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025706/* end confdefs.h. */
25707
25708int
25709main ()
25710{
25711
25712 ;
25713 return 0;
25714}
25715_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025716if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025717
cristy8b350f62009-11-15 23:12:43 +000025718else
25719 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025720 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025722/* end confdefs.h. */
25723
25724int
25725main ()
25726{
25727
25728 ;
25729 return 0;
25730}
25731_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025732if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025733 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025734fi
cristy3ed852e2009-09-05 21:47:34 +000025735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25736fi
cristy3ed852e2009-09-05 21:47:34 +000025737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25738fi
cristy3ed852e2009-09-05 21:47:34 +000025739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25740 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25741fi
cristy8b350f62009-11-15 23:12:43 +000025742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025743$as_echo "$ac_cv_prog_cxx_g" >&6; }
25744if test "$ac_test_CXXFLAGS" = set; then
25745 CXXFLAGS=$ac_save_CXXFLAGS
25746elif test $ac_cv_prog_cxx_g = yes; then
25747 if test "$GXX" = yes; then
25748 CXXFLAGS="-g -O2"
25749 else
25750 CXXFLAGS="-g"
25751 fi
25752else
25753 if test "$GXX" = yes; then
25754 CXXFLAGS="-O2"
25755 else
25756 CXXFLAGS=
25757 fi
25758fi
25759ac_ext=cpp
25760ac_cpp='$CXXCPP $CPPFLAGS'
25761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25764
cristy73bd4a52010-10-05 11:24:23 +000025765depcc="$CXX" am_compiler_list=
25766
25767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25768$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025769if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025770 $as_echo_n "(cached) " >&6
25771else
25772 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25773 # We make a subdir and do the tests there. Otherwise we can end up
25774 # making bogus files that we don't know about and never remove. For
25775 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025776 # making a dummy file named 'D' -- because '-MD' means "put the output
25777 # in D".
cristy7247bba2012-02-05 16:37:27 +000025778 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025779 mkdir conftest.dir
25780 # Copy depcomp to subdir because otherwise we won't find it if we're
25781 # using a relative directory.
25782 cp "$am_depcomp" conftest.dir
25783 cd conftest.dir
25784 # We will build objects and dependencies in a subdirectory because
25785 # it helps to detect inapplicable dependency modes. For instance
25786 # both Tru64's cc and ICC support -MD to output dependencies as a
25787 # side effect of compilation, but ICC will put the dependencies in
25788 # the current directory while Tru64 will put them in the object
25789 # directory.
25790 mkdir sub
25791
25792 am_cv_CXX_dependencies_compiler_type=none
25793 if test "$am_compiler_list" = ""; then
25794 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25795 fi
25796 am__universal=false
25797 case " $depcc " in #(
25798 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25799 esac
25800
25801 for depmode in $am_compiler_list; do
25802 # Setup a source with many dependencies, because some compilers
25803 # like to wrap large dependency lists on column 80 (with \), and
25804 # we should not choose a depcomp mode which is confused by this.
25805 #
25806 # We need to recreate these files for each test, as the compiler may
25807 # overwrite some of them when testing with obscure command lines.
25808 # This happens at least with the AIX C compiler.
25809 : > sub/conftest.c
25810 for i in 1 2 3 4 5 6; do
25811 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025812 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25813 # Solaris 10 /bin/sh.
25814 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025815 done
25816 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25817
cristyc0890a62012-07-19 00:18:20 +000025818 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025819 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025820 # handle '-M -o', and we need to detect this. Also, some Intel
25821 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025822 am__obj=sub/conftest.${OBJEXT-o}
25823 am__minus_obj="-o $am__obj"
25824 case $depmode in
25825 gcc)
25826 # This depmode causes a compiler race in universal mode.
25827 test "$am__universal" = false || continue
25828 ;;
25829 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025830 # After this tag, mechanisms are not by side-effect, so they'll
25831 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025832 if test "x$enable_dependency_tracking" = xyes; then
25833 continue
25834 else
25835 break
25836 fi
25837 ;;
cristy7247bba2012-02-05 16:37:27 +000025838 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025839 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025840 # not run yet. These depmodes are late enough in the game, and
25841 # so weak that their functioning should not be impacted.
25842 am__obj=conftest.${OBJEXT-o}
25843 am__minus_obj=
25844 ;;
25845 none) break ;;
25846 esac
25847 if depmode=$depmode \
25848 source=sub/conftest.c object=$am__obj \
25849 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25850 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25851 >/dev/null 2>conftest.err &&
25852 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25853 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25854 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25855 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25856 # icc doesn't choke on unknown options, it will just issue warnings
25857 # or remarks (even with -Werror). So we grep stderr for any message
25858 # that says an option was ignored or not supported.
25859 # When given -MP, icc 7.0 and 7.1 complain thusly:
25860 # icc: Command line warning: ignoring option '-M'; no argument required
25861 # The diagnosis changed in icc 8.0:
25862 # icc: Command line remark: option '-MP' not supported
25863 if (grep 'ignoring option' conftest.err ||
25864 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25865 am_cv_CXX_dependencies_compiler_type=$depmode
25866 break
25867 fi
25868 fi
25869 done
25870
25871 cd ..
25872 rm -rf conftest.dir
25873else
25874 am_cv_CXX_dependencies_compiler_type=none
25875fi
25876
25877fi
25878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25879$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25880CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25881
25882 if
25883 test "x$enable_dependency_tracking" != xno \
25884 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25885 am__fastdepCXX_TRUE=
25886 am__fastdepCXX_FALSE='#'
25887else
25888 am__fastdepCXX_TRUE='#'
25889 am__fastdepCXX_FALSE=
25890fi
25891
25892
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25894$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025895if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025896 $as_echo_n "(cached) " >&6
25897else
25898
25899 ac_ext=cpp
25900ac_cpp='$CXXCPP $CPPFLAGS'
25901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25904
25905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25906/* end confdefs.h. */
25907
25908int f(int x){return 1;}
25909int f(char x){return 1;}
25910int f(bool x){return 1;}
25911
25912int
25913main ()
25914{
25915bool b = true; return f(b);
25916 ;
25917 return 0;
25918}
25919_ACEOF
25920if ac_fn_cxx_try_compile "$LINENO"; then :
25921 ax_cv_cxx_bool=yes
25922else
25923 ax_cv_cxx_bool=no
25924fi
25925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25926 ac_ext=cpp
25927ac_cpp='$CXXCPP $CPPFLAGS'
25928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25931
25932
25933fi
25934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25935$as_echo "$ax_cv_cxx_bool" >&6; }
25936if test "$ax_cv_cxx_bool" = yes; then
25937
25938$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25939
25940fi
25941
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25943$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025944if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025945 $as_echo_n "(cached) " >&6
25946else
25947
25948 ac_ext=cpp
25949ac_cpp='$CXXCPP $CPPFLAGS'
25950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25953
25954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25955/* end confdefs.h. */
25956namespace Outer { namespace Inner { int i = 0; }}
25957int
25958main ()
25959{
25960using namespace Outer::Inner; return i;
25961 ;
25962 return 0;
25963}
25964_ACEOF
25965if ac_fn_cxx_try_compile "$LINENO"; then :
25966 ax_cv_cxx_namespaces=yes
25967else
25968 ax_cv_cxx_namespaces=no
25969fi
25970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25971 ac_ext=cpp
25972ac_cpp='$CXXCPP $CPPFLAGS'
25973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25976
25977
25978fi
25979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25980$as_echo "$ax_cv_cxx_namespaces" >&6; }
25981if test "$ax_cv_cxx_namespaces" = yes; then
25982
25983$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25984
25985fi
25986
25987
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25989$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025990if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025991 $as_echo_n "(cached) " >&6
25992else
25993
25994 ac_ext=cpp
25995ac_cpp='$CXXCPP $CPPFLAGS'
25996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25999
26000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26001/* end confdefs.h. */
26002#include <iostream>
26003 std::istream& is = std::cin;
26004int
26005main ()
26006{
26007
26008 ;
26009 return 0;
26010}
26011_ACEOF
26012if ac_fn_cxx_try_compile "$LINENO"; then :
26013 ax_cv_cxx_have_std_namespace=yes
26014else
26015 ax_cv_cxx_have_std_namespace=no
26016fi
26017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26018 ac_ext=cpp
26019ac_cpp='$CXXCPP $CPPFLAGS'
26020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26023
26024
26025fi
26026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26027$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26028 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26029
26030$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26031
26032 fi
26033
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26035$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026036if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026037 $as_echo_n "(cached) " >&6
26038else
26039
26040
26041 ac_ext=cpp
26042ac_cpp='$CXXCPP $CPPFLAGS'
26043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26046
26047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26048/* end confdefs.h. */
26049#include <iostream>
26050#include <map>
26051#include <iomanip>
26052#include <cmath>
26053#ifdef HAVE_NAMESPACES
26054using namespace std;
26055#endif
26056int
26057main ()
26058{
26059return 0;
26060 ;
26061 return 0;
26062}
26063_ACEOF
26064if ac_fn_cxx_try_compile "$LINENO"; then :
26065 ac_cv_cxx_have_std_libs=yes
26066else
26067 ac_cv_cxx_have_std_libs=no
26068fi
26069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26070 ac_ext=cpp
26071ac_cpp='$CXXCPP $CPPFLAGS'
26072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26075
26076
26077fi
26078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26079$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26080if test "$ac_cv_cxx_have_std_libs" = yes; then
26081
26082$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26083
26084fi
26085
cristy3ed852e2009-09-05 21:47:34 +000026086
26087 OPENMP_CXXFLAGS=
26088 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026089if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026090 enableval=$enable_openmp;
26091fi
26092
26093 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26095$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026096if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026097 $as_echo_n "(cached) " >&6
26098else
cristy8b350f62009-11-15 23:12:43 +000026099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26100/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026101
26102#ifndef _OPENMP
26103 choke me
26104#endif
26105#include <omp.h>
26106int main () { return omp_get_num_threads (); }
26107
26108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026109if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026110 ac_cv_prog_cxx_openmp='none needed'
26111else
cristy8b350f62009-11-15 23:12:43 +000026112 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026113 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26114 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026115 ac_save_CXXFLAGS=$CXXFLAGS
26116 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26118/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026119
26120#ifndef _OPENMP
26121 choke me
26122#endif
26123#include <omp.h>
26124int main () { return omp_get_num_threads (); }
26125
26126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026127if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026128 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026129fi
cristy8b350f62009-11-15 23:12:43 +000026130rm -f core conftest.err conftest.$ac_objext \
26131 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026132 CXXFLAGS=$ac_save_CXXFLAGS
26133 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26134 break
26135 fi
26136 done
26137fi
cristy8b350f62009-11-15 23:12:43 +000026138rm -f core conftest.err conftest.$ac_objext \
26139 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026140fi
cristy8b350f62009-11-15 23:12:43 +000026141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026142$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26143 case $ac_cv_prog_cxx_openmp in #(
26144 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026145 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026146 *)
cristy8b350f62009-11-15 23:12:43 +000026147 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026148 esac
26149 fi
26150
26151
26152 ac_ext=c
26153ac_cpp='$CPP $CPPFLAGS'
26154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26156ac_compiler_gnu=$ac_cv_c_compiler_gnu
26157
26158
cristy8b350f62009-11-15 23:12:43 +000026159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026160$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26161 if \
cristy964cb7f2010-04-25 23:18:00 +000026162 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026163 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026164 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026165 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026166 have_magick_plus_plus='yes'
26167 else
26168 have_magick_plus_plus='no (failed tests)'
26169 fi
cristyad38abe2012-12-23 23:03:21 +000026170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26171$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026172 LIBS="$OLIBS"
26173fi
cristy73bd4a52010-10-05 11:24:23 +000026174 if test "$have_magick_plus_plus" = 'yes'; then
26175 WITH_MAGICK_PLUS_PLUS_TRUE=
26176 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26177else
26178 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26179 WITH_MAGICK_PLUS_PLUS_FALSE=
26180fi
26181
cristy3ed852e2009-09-05 21:47:34 +000026182
26183# Only check for delegate libraries in subdirectories if requested.
26184if test "$enable_delegate_build" != 'no'; then
26185 # Check for delegate sub-directories and add -I & -L options as required.
26186 # This presumes that delegates are installed as detailed in the ImageMagick
26187 # README. If delegates are installed in a standard location where the
26188 # compiler will automatically find them then these options should not be
26189 # required.
26190
26191 #
26192 # Most delegates have includes in the same directory as the library, but not all...
26193 #
26194 # Includes
cristya8940fd2014-01-12 22:52:25 +000026195 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick mupdf openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026196 if test -d "$builddir/$dir"; then
26197 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26198 else
26199 if test -d "$srcdirfull/$dir"; then
26200 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26201 fi
26202 fi
26203 done
26204
26205 # Libraries
cristya8940fd2014-01-12 22:52:25 +000026206 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick mupdf openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026207 if test -d "$builddir/$dir/.libs"; then
26208 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26209 else
26210 if test -d "$srcdirfull/$dir/.libs"; then
26211 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26212 fi
26213 fi
26214 if test -d "$builddir/$dir"; then
26215 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26216 else
26217 if test -d "$srcdirfull/$dir"; then
26218 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26219 fi
26220 fi
26221 done
26222fi
26223
26224# Assume that delegate headers reside under same directory as ImageMagick
26225# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026226MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026227
26228#
26229# Find the X11 RGB database
26230#
cristy8b350f62009-11-15 23:12:43 +000026231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026232$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026233if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026234 $as_echo_n "(cached) " >&6
26235else
26236 # Look for the header file in a standard set of common directories.
26237# Check X11 before X11Rn because it is often a symlink to the current release.
26238 for ac_dir in \
26239 /lib/usr/lib/X11 \
26240 /usr/X11/lib \
26241 /usr/X11R4/lib \
26242 /usr/X11R5/lib \
26243 /usr/X11R6/lib \
26244 /usr/X11R7/lib \
26245 /usr/X386/lib \
26246 /usr/XFree86/lib/X11 \
26247 /usr/athena/lib \
26248 /usr/lib \
26249 /usr/lib/X11 \
26250 /usr/lib/X11R4 \
26251 /usr/lib/X11R5 \
26252 /usr/lib/X11R6 \
26253 /usr/lib/X11R7 \
26254 /usr/local/X11/lib \
26255 /usr/local/X11R4/lib \
26256 /usr/local/X11R5/lib \
26257 /usr/local/X11R6/lib \
26258 /usr/local/lib \
26259 /usr/local/lib/X11 \
26260 /usr/local/lib/X11R4 \
26261 /usr/local/lib/X11R5 \
26262 /usr/local/lib/X11R6 \
26263 /usr/local/lib/X11R7 \
26264 /usr/local/x11r5/lib \
26265 /usr/lpp/Xamples/lib \
26266 /usr/openwin/lib \
26267 /usr/openwin/share/lib \
26268 /usr/unsupported/lib \
26269 /usr/x386/lib \
26270 ; do
26271 if test -f "$ac_dir/X11/rgb.txt"; then
26272 im_cv_x_configure="$ac_dir/X11/"
26273 break
26274 elif test -f "$ac_dir/rgb.txt"; then
26275 im_cv_x_configure="$ac_dir/"
26276 break
26277 fi
26278
26279 done
26280fi
cristy8b350f62009-11-15 23:12:43 +000026281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026282$as_echo "$im_cv_x_configure" >&6; }
26283X11_CONFIGURE_PATH="$im_cv_x_configure"
26284case "${build_os}" in
26285 mingw* )
26286 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26287 ;;
26288esac
26289
26290cat >>confdefs.h <<_ACEOF
26291#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26292_ACEOF
26293
26294
26295#
26296# Find OpenMP library
26297#
26298GOMP_LIBS=''
26299if test "$enable_openmp" != 'no'; then
26300 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026301 # Open64 (passes for GCC but uses different OpenMP implementation)
26302 if test "x$GOMP_LIBS" = x ; then
26303 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26305$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26306if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26307 $as_echo_n "(cached) " >&6
26308else
26309 ac_check_lib_save_LIBS=$LIBS
26310LIBS="-lopenmp $LIBS"
26311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26312/* end confdefs.h. */
26313
26314/* Override any GCC internal prototype to avoid an error.
26315 Use char because int might match the return type of a GCC
26316 builtin and then its argument prototype would still apply. */
26317#ifdef __cplusplus
26318extern "C"
26319#endif
26320char omp_get_num_procs ();
26321int
26322main ()
26323{
26324return omp_get_num_procs ();
26325 ;
26326 return 0;
26327}
26328_ACEOF
26329if ac_fn_c_try_link "$LINENO"; then :
26330 ac_cv_lib_openmp_omp_get_num_procs=yes
26331else
26332 ac_cv_lib_openmp_omp_get_num_procs=no
26333fi
26334rm -f core conftest.err conftest.$ac_objext \
26335 conftest$ac_exeext conftest.$ac_ext
26336LIBS=$ac_check_lib_save_LIBS
26337fi
26338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26339$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26340if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26341 GOMP_LIBS="-lopenmp"
26342fi
26343
26344 fi
26345 fi
26346 # GCC
26347 if test "x$GOMP_LIBS" = x ; then
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026349$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026350if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026351 $as_echo_n "(cached) " >&6
26352else
26353 ac_check_lib_save_LIBS=$LIBS
26354LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026356/* end confdefs.h. */
26357
26358/* Override any GCC internal prototype to avoid an error.
26359 Use char because int might match the return type of a GCC
26360 builtin and then its argument prototype would still apply. */
26361#ifdef __cplusplus
26362extern "C"
26363#endif
26364char GOMP_parallel_start ();
26365int
26366main ()
26367{
26368return GOMP_parallel_start ();
26369 ;
26370 return 0;
26371}
26372_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026373if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026374 ac_cv_lib_gomp_GOMP_parallel_start=yes
26375else
cristy8b350f62009-11-15 23:12:43 +000026376 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026377fi
cristy8b350f62009-11-15 23:12:43 +000026378rm -f core conftest.err conftest.$ac_objext \
26379 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026380LIBS=$ac_check_lib_save_LIBS
26381fi
cristy8b350f62009-11-15 23:12:43 +000026382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026383$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026384if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026385 GOMP_LIBS="-lgomp"
26386fi
cristy18307f12011-12-30 01:20:16 +000026387
26388 fi
cristy3ed852e2009-09-05 21:47:34 +000026389 else
cristy18307f12011-12-30 01:20:16 +000026390 # Sun CC
26391 if test "x$GOMP_LIBS" = x ; then
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026393$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026394if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026395 $as_echo_n "(cached) " >&6
26396else
26397 ac_check_lib_save_LIBS=$LIBS
26398LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026400/* end confdefs.h. */
26401
26402/* Override any GCC internal prototype to avoid an error.
26403 Use char because int might match the return type of a GCC
26404 builtin and then its argument prototype would still apply. */
26405#ifdef __cplusplus
26406extern "C"
26407#endif
26408char sunw_mp_register_warn ();
26409int
26410main ()
26411{
26412return sunw_mp_register_warn ();
26413 ;
26414 return 0;
26415}
26416_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026417if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026418 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26419else
cristy8b350f62009-11-15 23:12:43 +000026420 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026421fi
cristy8b350f62009-11-15 23:12:43 +000026422rm -f core conftest.err conftest.$ac_objext \
26423 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026424LIBS=$ac_check_lib_save_LIBS
26425fi
cristy8b350f62009-11-15 23:12:43 +000026426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026427$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026428if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026429 GOMP_LIBS="-lmtsk"
26430fi
cristy18307f12011-12-30 01:20:16 +000026431
26432 fi
26433 # AIX xlc
26434 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026436$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026437if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026438 $as_echo_n "(cached) " >&6
26439else
26440 ac_check_lib_save_LIBS=$LIBS
26441LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026443/* end confdefs.h. */
26444
26445/* Override any GCC internal prototype to avoid an error.
26446 Use char because int might match the return type of a GCC
26447 builtin and then its argument prototype would still apply. */
26448#ifdef __cplusplus
26449extern "C"
26450#endif
26451char _xlsmpFlush ();
26452int
26453main ()
26454{
26455return _xlsmpFlush ();
26456 ;
26457 return 0;
26458}
26459_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026460if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026461 ac_cv_lib_xlsmp__xlsmpFlush=yes
26462else
cristy8b350f62009-11-15 23:12:43 +000026463 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026464fi
cristy8b350f62009-11-15 23:12:43 +000026465rm -f core conftest.err conftest.$ac_objext \
26466 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026467LIBS=$ac_check_lib_save_LIBS
26468fi
cristy8b350f62009-11-15 23:12:43 +000026469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026470$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026471if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026472 GOMP_LIBS="-lxlsmp"
26473fi
cristy18307f12011-12-30 01:20:16 +000026474
26475 fi
26476 # SGI IRIX 6.5 MIPSpro C/C++
26477 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026479$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026480if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026481 $as_echo_n "(cached) " >&6
26482else
26483 ac_check_lib_save_LIBS=$LIBS
26484LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026486/* end confdefs.h. */
26487
26488/* Override any GCC internal prototype to avoid an error.
26489 Use char because int might match the return type of a GCC
26490 builtin and then its argument prototype would still apply. */
26491#ifdef __cplusplus
26492extern "C"
26493#endif
26494char mp_destroy ();
26495int
26496main ()
26497{
26498return mp_destroy ();
26499 ;
26500 return 0;
26501}
26502_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026503if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026504 ac_cv_lib_mp_mp_destroy=yes
26505else
cristy8b350f62009-11-15 23:12:43 +000026506 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026507fi
cristy8b350f62009-11-15 23:12:43 +000026508rm -f core conftest.err conftest.$ac_objext \
26509 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026510LIBS=$ac_check_lib_save_LIBS
26511fi
cristy8b350f62009-11-15 23:12:43 +000026512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026513$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026514if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026515 GOMP_LIBS="-lmp"
26516fi
cristy18307f12011-12-30 01:20:16 +000026517
26518 fi
cristy3ed852e2009-09-05 21:47:34 +000026519 fi
26520 LIBS="$GOMP_LIBS $LIBS"
26521fi
26522
26523
cristy3ed852e2009-09-05 21:47:34 +000026524
26525
26526#
26527# Check for umem.
26528#
26529have_umem='no'
26530UMEM_LIBS=''
26531if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026533$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26535$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026536 failed=0
26537 passed=0
cristy8b350f62009-11-15 23:12:43 +000026538 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026539if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026540 passed=`expr $passed + 1`
26541else
26542 failed=`expr $failed + 1`
26543fi
26544
26545
cristy8b350f62009-11-15 23:12:43 +000026546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026547$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026548if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026549 $as_echo_n "(cached) " >&6
26550else
26551 ac_check_lib_save_LIBS=$LIBS
26552LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026554/* end confdefs.h. */
26555
26556/* Override any GCC internal prototype to avoid an error.
26557 Use char because int might match the return type of a GCC
26558 builtin and then its argument prototype would still apply. */
26559#ifdef __cplusplus
26560extern "C"
26561#endif
26562char umem_alloc ();
26563int
26564main ()
26565{
26566return umem_alloc ();
26567 ;
26568 return 0;
26569}
26570_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026571if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026572 ac_cv_lib_umem_umem_alloc=yes
26573else
cristy8b350f62009-11-15 23:12:43 +000026574 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026575fi
cristy8b350f62009-11-15 23:12:43 +000026576rm -f core conftest.err conftest.$ac_objext \
26577 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026578LIBS=$ac_check_lib_save_LIBS
26579fi
cristy8b350f62009-11-15 23:12:43 +000026580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026581$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026582if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026583 passed=`expr $passed + 1`
26584else
26585 failed=`expr $failed + 1`
26586fi
26587
cristy8b350f62009-11-15 23:12:43 +000026588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026589$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026590if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026591 $as_echo_n "(cached) " >&6
26592else
26593 ac_check_lib_save_LIBS=$LIBS
26594LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026596/* end confdefs.h. */
26597
26598/* Override any GCC internal prototype to avoid an error.
26599 Use char because int might match the return type of a GCC
26600 builtin and then its argument prototype would still apply. */
26601#ifdef __cplusplus
26602extern "C"
26603#endif
26604char umem_free ();
26605int
26606main ()
26607{
26608return umem_free ();
26609 ;
26610 return 0;
26611}
26612_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026613if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026614 ac_cv_lib_umem_umem_free=yes
26615else
cristy8b350f62009-11-15 23:12:43 +000026616 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026617fi
cristy8b350f62009-11-15 23:12:43 +000026618rm -f core conftest.err conftest.$ac_objext \
26619 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026620LIBS=$ac_check_lib_save_LIBS
26621fi
cristy8b350f62009-11-15 23:12:43 +000026622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026623$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026624if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026625 passed=`expr $passed + 1`
26626else
26627 failed=`expr $failed + 1`
26628fi
26629
cristy8b350f62009-11-15 23:12:43 +000026630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026631$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26632 if test $passed -gt 0; then
26633 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26635$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026636 have_umem='no (failed tests)'
26637 else
26638 UMEM_LIBS='-lumem'
26639 LIBS="$UMEM_LIBS $LIBS"
26640
cristy8b350f62009-11-15 23:12:43 +000026641$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026642
cristyad38abe2012-12-23 23:03:21 +000026643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26644$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026645 have_umem='yes'
26646 fi
26647 else
cristyad38abe2012-12-23 23:03:21 +000026648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26649$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026650 fi
26651fi
cristy73bd4a52010-10-05 11:24:23 +000026652 if test "$have_umem" = 'yes'; then
26653 HasUMEM_TRUE=
26654 HasUMEM_FALSE='#'
26655else
26656 HasUMEM_TRUE='#'
26657 HasUMEM_FALSE=
26658fi
26659
cristy3ed852e2009-09-05 21:47:34 +000026660
26661
26662#
26663# Add support for ccmalloc memory debugging library if requested
26664#
26665have_ccmalloc='no'
26666CCMALLOC_LIBS=''
26667if test "$enable_ccmalloc" = 'yes'; then
26668 # Extract the first word of "ccmalloc", so it can be a program name with args.
26669set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026671$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026672if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026673 $as_echo_n "(cached) " >&6
26674else
26675 case $CCMALLOCDelegate in
26676 [\\/]* | ?:[\\/]*)
26677 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26678 ;;
26679 *)
26680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26681for as_dir in $PATH
26682do
26683 IFS=$as_save_IFS
26684 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026685 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026687 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026689 break 2
26690 fi
26691done
cristy8b350f62009-11-15 23:12:43 +000026692 done
cristy3ed852e2009-09-05 21:47:34 +000026693IFS=$as_save_IFS
26694
26695 ;;
26696esac
26697fi
26698CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26699if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026701$as_echo "$CCMALLOCDelegate" >&6; }
26702else
cristy8b350f62009-11-15 23:12:43 +000026703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026704$as_echo "no" >&6; }
26705fi
26706
26707
26708 if test -n "$CCMALLOCDelegate"; then
26709 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26710 OLIBS="$LIBS"
26711 # Assume that gcc is used with ccmalloc.
26712 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026714$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026715if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026716 $as_echo_n "(cached) " >&6
26717else
26718 ac_check_lib_save_LIBS=$LIBS
26719LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026721/* end confdefs.h. */
26722
26723/* Override any GCC internal prototype to avoid an error.
26724 Use char because int might match the return type of a GCC
26725 builtin and then its argument prototype would still apply. */
26726#ifdef __cplusplus
26727extern "C"
26728#endif
26729char ccmalloc_malloc ();
26730int
26731main ()
26732{
26733return ccmalloc_malloc ();
26734 ;
26735 return 0;
26736}
26737_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026738if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026739 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26740else
cristy8b350f62009-11-15 23:12:43 +000026741 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026742fi
cristy8b350f62009-11-15 23:12:43 +000026743rm -f core conftest.err conftest.$ac_objext \
26744 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026745LIBS=$ac_check_lib_save_LIBS
26746fi
cristy8b350f62009-11-15 23:12:43 +000026747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026748$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026749if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026750 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26751fi
26752
26753 if test -n "$CCMALLOC_LIBS"; then
26754 LIBS="$OLIBS"
26755 LIBS="$LIBS $CCMALLOC_LIBS"
26756 have_ccmalloc='yes'
26757 else
26758 LIBS="$OLIBS"
26759 fi
26760 fi
26761fi
26762
26763#
cristy944e51f2013-04-16 18:45:02 +000026764# Add support for 'huge pages' if requested
26765#
26766if test "x$enable_hugepages" != "xno"; then :
26767
26768
26769$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26770
26771
26772fi
26773
26774#
cristy3ed852e2009-09-05 21:47:34 +000026775# Add support for efence memory debugging library if requested
26776#
26777if test "$enable_efence" = 'yes'; then
26778 EFENCE_LIBS='-lefence'
26779 LIBS="$EFENCE_LIBS $LIBS"
26780fi
26781
cristy3ed852e2009-09-05 21:47:34 +000026782
26783#
26784# Check for BZLIB
26785#
26786
26787
26788# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026789if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026790 withval=$with_bzlib; with_bzlib=$withval
26791else
26792 with_bzlib='yes'
26793fi
26794
26795
26796if test "$with_bzlib" != 'yes'; then
26797 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26798fi
26799
26800have_bzlib='no'
26801if test "$with_bzlib" != 'no'; then
26802 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26804$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026806$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26808$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026809 failed=0
26810 passed=0
26811 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026812 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026813if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026814 passed=`expr $passed + 1`
26815else
26816 failed=`expr $failed + 1`
26817fi
26818
26819
cristy8b350f62009-11-15 23:12:43 +000026820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026821$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026822if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026823 $as_echo_n "(cached) " >&6
26824else
26825 ac_check_lib_save_LIBS=$LIBS
26826LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026828/* end confdefs.h. */
26829
26830/* Override any GCC internal prototype to avoid an error.
26831 Use char because int might match the return type of a GCC
26832 builtin and then its argument prototype would still apply. */
26833#ifdef __cplusplus
26834extern "C"
26835#endif
26836char BZ2_bzDecompress ();
26837int
26838main ()
26839{
26840return BZ2_bzDecompress ();
26841 ;
26842 return 0;
26843}
26844_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026845if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026846 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26847else
cristy8b350f62009-11-15 23:12:43 +000026848 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026849fi
cristy8b350f62009-11-15 23:12:43 +000026850rm -f core conftest.err conftest.$ac_objext \
26851 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026852LIBS=$ac_check_lib_save_LIBS
26853fi
cristy8b350f62009-11-15 23:12:43 +000026854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026855$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026856if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026857 found_libbz=`expr $found_libbz + 1`
26858fi
26859
26860 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026862$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026863if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026864 $as_echo_n "(cached) " >&6
26865else
26866 ac_check_lib_save_LIBS=$LIBS
26867LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026869/* end confdefs.h. */
26870
26871/* Override any GCC internal prototype to avoid an error.
26872 Use char because int might match the return type of a GCC
26873 builtin and then its argument prototype would still apply. */
26874#ifdef __cplusplus
26875extern "C"
26876#endif
26877char _imp__BZ2_decompress ();
26878int
26879main ()
26880{
26881return _imp__BZ2_decompress ();
26882 ;
26883 return 0;
26884}
26885_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026886if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026887 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26888else
cristy8b350f62009-11-15 23:12:43 +000026889 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026890fi
cristy8b350f62009-11-15 23:12:43 +000026891rm -f core conftest.err conftest.$ac_objext \
26892 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026893LIBS=$ac_check_lib_save_LIBS
26894fi
cristy8b350f62009-11-15 23:12:43 +000026895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026896$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026897if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026898 found_libbz=`expr $found_libbz + 1`
26899fi
26900
26901 fi
26902 if test $found_libbz -gt 0; then
26903 passed=`expr $passed + 1`
26904 else
26905 failed=`expr $failed + 1`
26906 fi
cristy8b350f62009-11-15 23:12:43 +000026907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026908$as_echo_n "checking if BZLIB package is complete... " >&6; }
26909 if test $passed -gt 0; then
26910 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26912$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026913 have_bzlib='no (failed tests)'
26914 else
26915 BZLIB_LIBS='-lbz2'
26916 LIBS="$BZLIB_LIBS $LIBS"
26917
cristy8b350f62009-11-15 23:12:43 +000026918$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026919
cristyad38abe2012-12-23 23:03:21 +000026920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26921$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026922 have_bzlib='yes'
26923 fi
26924 else
cristyad38abe2012-12-23 23:03:21 +000026925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26926$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026927 fi
26928fi
cristy73bd4a52010-10-05 11:24:23 +000026929 if test "$have_bzlib" = 'yes'; then
26930 BZLIB_DELEGATE_TRUE=
26931 BZLIB_DELEGATE_FALSE='#'
26932else
26933 BZLIB_DELEGATE_TRUE='#'
26934 BZLIB_DELEGATE_FALSE=
26935fi
26936
cristy3ed852e2009-09-05 21:47:34 +000026937
26938
26939#
26940# Find the X11 include and library directories.
26941#
26942IPC_LIBS=''
26943X11_LIBS=''
26944XEXT_LIBS=''
26945XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026947$as_echo_n "checking for X... " >&6; }
26948
26949
26950# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026951if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026952 withval=$with_x;
26953fi
26954
26955# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26956if test "x$with_x" = xno; then
26957 # The user explicitly disabled X.
26958 have_x=disabled
26959else
26960 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026961 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026962 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026963 $as_echo_n "(cached) " >&6
26964else
26965 # One or both of the vars are not set, and there is no cached value.
26966ac_x_includes=no ac_x_libraries=no
26967rm -f -r conftest.dir
26968if mkdir conftest.dir; then
26969 cd conftest.dir
26970 cat >Imakefile <<'_ACEOF'
26971incroot:
26972 @echo incroot='${INCROOT}'
26973usrlibdir:
26974 @echo usrlibdir='${USRLIBDIR}'
26975libdir:
26976 @echo libdir='${LIBDIR}'
26977_ACEOF
26978 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026979 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026980 for ac_var in incroot usrlibdir libdir; do
26981 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26982 done
26983 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26984 for ac_extension in a so sl dylib la dll; do
26985 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26986 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26987 ac_im_usrlibdir=$ac_im_libdir; break
26988 fi
26989 done
26990 # Screen out bogus values from the imake configuration. They are
26991 # bogus both because they are the default anyway, and because
26992 # using them would break gcc on systems where it needs fixed includes.
26993 case $ac_im_incroot in
26994 /usr/include) ac_x_includes= ;;
26995 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26996 esac
26997 case $ac_im_usrlibdir in
26998 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26999 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27000 esac
27001 fi
27002 cd ..
27003 rm -f -r conftest.dir
27004fi
27005
27006# Standard set of common directories for X headers.
27007# Check X11 before X11Rn because it is often a symlink to the current release.
27008ac_x_header_dirs='
27009/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027010/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027011/usr/X11R6/include
27012/usr/X11R5/include
27013/usr/X11R4/include
27014
27015/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027016/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027017/usr/include/X11R6
27018/usr/include/X11R5
27019/usr/include/X11R4
27020
27021/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027022/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027023/usr/local/X11R6/include
27024/usr/local/X11R5/include
27025/usr/local/X11R4/include
27026
27027/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027028/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027029/usr/local/include/X11R6
27030/usr/local/include/X11R5
27031/usr/local/include/X11R4
27032
27033/usr/X386/include
27034/usr/x386/include
27035/usr/XFree86/include/X11
27036
27037/usr/include
27038/usr/local/include
27039/usr/unsupported/include
27040/usr/athena/include
27041/usr/local/x11r5/include
27042/usr/lpp/Xamples/include
27043
27044/usr/openwin/include
27045/usr/openwin/share/include'
27046
27047if test "$ac_x_includes" = no; then
27048 # Guess where to find include files, by looking for Xlib.h.
27049 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027051/* end confdefs.h. */
27052#include <X11/Xlib.h>
27053_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027054if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027055 # We can compile using X headers with no special include directory.
27056ac_x_includes=
27057else
cristyc7083c12009-10-14 03:16:55 +000027058 for ac_dir in $ac_x_header_dirs; do
27059 if test -r "$ac_dir/X11/Xlib.h"; then
27060 ac_x_includes=$ac_dir
27061 break
27062 fi
27063done
27064fi
cristyda16f162011-02-19 23:52:17 +000027065rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027066fi # $ac_x_includes = no
27067
27068if test "$ac_x_libraries" = no; then
27069 # Check for the libraries.
27070 # See if we find them without any special options.
27071 # Don't add to $LIBS permanently.
27072 ac_save_LIBS=$LIBS
27073 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027075/* end confdefs.h. */
27076#include <X11/Xlib.h>
27077int
27078main ()
27079{
27080XrmInitialize ()
27081 ;
27082 return 0;
27083}
27084_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027085if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027086 LIBS=$ac_save_LIBS
27087# We can link X programs with no special library path.
27088ac_x_libraries=
27089else
cristy8b350f62009-11-15 23:12:43 +000027090 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027091for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27092do
27093 # Don't even attempt the hair of trying to link an X program!
27094 for ac_extension in a so sl dylib la dll; do
27095 if test -r "$ac_dir/libX11.$ac_extension"; then
27096 ac_x_libraries=$ac_dir
27097 break 2
27098 fi
27099 done
27100done
27101fi
cristy8b350f62009-11-15 23:12:43 +000027102rm -f core conftest.err conftest.$ac_objext \
27103 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027104fi # $ac_x_libraries = no
27105
27106case $ac_x_includes,$ac_x_libraries in #(
27107 no,* | *,no | *\'*)
27108 # Didn't find X, or a directory has "'" in its name.
27109 ac_cv_have_x="have_x=no";; #(
27110 *)
27111 # Record where we found X for the cache.
27112 ac_cv_have_x="have_x=yes\
27113 ac_x_includes='$ac_x_includes'\
27114 ac_x_libraries='$ac_x_libraries'"
27115esac
27116fi
27117;; #(
27118 *) have_x=yes;;
27119 esac
27120 eval "$ac_cv_have_x"
27121fi # $with_x != no
27122
27123if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027125$as_echo "$have_x" >&6; }
27126 no_x=yes
27127else
27128 # If each of the values was on the command line, it overrides each guess.
27129 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27130 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27131 # Update the cache value to reflect the command line values.
27132 ac_cv_have_x="have_x=yes\
27133 ac_x_includes='$x_includes'\
27134 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027136$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27137fi
27138
cristy3ed852e2009-09-05 21:47:34 +000027139if test "$no_x" = yes; then
27140 # Not all programs may use this symbol, but it does not hurt to define it.
27141
cristy8b350f62009-11-15 23:12:43 +000027142$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027143
27144 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27145else
27146 if test -n "$x_includes"; then
27147 X_CFLAGS="$X_CFLAGS -I$x_includes"
27148 fi
27149
27150 # It would also be nice to do this for all -L options, not just this one.
27151 if test -n "$x_libraries"; then
27152 X_LIBS="$X_LIBS -L$x_libraries"
27153 # For Solaris; some versions of Sun CC require a space after -R and
27154 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027156$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27157 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27158 ac_xsave_c_werror_flag=$ac_c_werror_flag
27159 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027161/* end confdefs.h. */
27162
27163int
27164main ()
27165{
27166
27167 ;
27168 return 0;
27169}
27170_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027171if ac_fn_c_try_link "$LINENO"; then :
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027173$as_echo "no" >&6; }
27174 X_LIBS="$X_LIBS -R$x_libraries"
27175else
cristy8b350f62009-11-15 23:12:43 +000027176 LIBS="$ac_xsave_LIBS -R $x_libraries"
27177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027178/* end confdefs.h. */
27179
27180int
27181main ()
27182{
27183
27184 ;
27185 return 0;
27186}
27187_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027188if ac_fn_c_try_link "$LINENO"; then :
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027190$as_echo "yes" >&6; }
27191 X_LIBS="$X_LIBS -R $x_libraries"
27192else
cristy8b350f62009-11-15 23:12:43 +000027193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027194$as_echo "neither works" >&6; }
27195fi
cristy8b350f62009-11-15 23:12:43 +000027196rm -f core conftest.err conftest.$ac_objext \
27197 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027198fi
cristy8b350f62009-11-15 23:12:43 +000027199rm -f core conftest.err conftest.$ac_objext \
27200 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027201 ac_c_werror_flag=$ac_xsave_c_werror_flag
27202 LIBS=$ac_xsave_LIBS
27203 fi
27204
27205 # Check for system-dependent libraries X programs must link with.
27206 # Do this before checking for the system-independent R6 libraries
27207 # (-lICE), since we may need -lsocket or whatever for X linking.
27208
27209 if test "$ISC" = yes; then
27210 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27211 else
27212 # Martyn Johnson says this is needed for Ultrix, if the X
27213 # libraries were built with DECnet support. And Karl Berry says
27214 # the Alpha needs dnet_stub (dnet does not exist).
27215 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027217/* end confdefs.h. */
27218
27219/* Override any GCC internal prototype to avoid an error.
27220 Use char because int might match the return type of a GCC
27221 builtin and then its argument prototype would still apply. */
27222#ifdef __cplusplus
27223extern "C"
27224#endif
27225char XOpenDisplay ();
27226int
27227main ()
27228{
27229return XOpenDisplay ();
27230 ;
27231 return 0;
27232}
27233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027234if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027235
cristy8b350f62009-11-15 23:12:43 +000027236else
27237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027238$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027239if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027240 $as_echo_n "(cached) " >&6
27241else
27242 ac_check_lib_save_LIBS=$LIBS
27243LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027245/* end confdefs.h. */
27246
27247/* Override any GCC internal prototype to avoid an error.
27248 Use char because int might match the return type of a GCC
27249 builtin and then its argument prototype would still apply. */
27250#ifdef __cplusplus
27251extern "C"
27252#endif
27253char dnet_ntoa ();
27254int
27255main ()
27256{
27257return dnet_ntoa ();
27258 ;
27259 return 0;
27260}
27261_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027262if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027263 ac_cv_lib_dnet_dnet_ntoa=yes
27264else
cristy8b350f62009-11-15 23:12:43 +000027265 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027266fi
cristy8b350f62009-11-15 23:12:43 +000027267rm -f core conftest.err conftest.$ac_objext \
27268 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027269LIBS=$ac_check_lib_save_LIBS
27270fi
cristy8b350f62009-11-15 23:12:43 +000027271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027272$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027273if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027274 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27275fi
27276
27277 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027279$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027280if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027281 $as_echo_n "(cached) " >&6
27282else
27283 ac_check_lib_save_LIBS=$LIBS
27284LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027286/* end confdefs.h. */
27287
27288/* Override any GCC internal prototype to avoid an error.
27289 Use char because int might match the return type of a GCC
27290 builtin and then its argument prototype would still apply. */
27291#ifdef __cplusplus
27292extern "C"
27293#endif
27294char dnet_ntoa ();
27295int
27296main ()
27297{
27298return dnet_ntoa ();
27299 ;
27300 return 0;
27301}
27302_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027303if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027304 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27305else
cristy8b350f62009-11-15 23:12:43 +000027306 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027307fi
cristy8b350f62009-11-15 23:12:43 +000027308rm -f core conftest.err conftest.$ac_objext \
27309 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027310LIBS=$ac_check_lib_save_LIBS
27311fi
cristy8b350f62009-11-15 23:12:43 +000027312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027313$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027314if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027315 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27316fi
27317
27318 fi
27319fi
cristy8b350f62009-11-15 23:12:43 +000027320rm -f core conftest.err conftest.$ac_objext \
27321 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027322 LIBS="$ac_xsave_LIBS"
27323
27324 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27325 # to get the SysV transport functions.
27326 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27327 # needs -lnsl.
27328 # The nsl library prevents programs from opening the X display
27329 # on Irix 5.2, according to T.E. Dickey.
27330 # The functions gethostbyname, getservbyname, and inet_addr are
27331 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027332 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027333if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027334
cristy3ed852e2009-09-05 21:47:34 +000027335fi
27336
cristy3ed852e2009-09-05 21:47:34 +000027337 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027339$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027340if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027341 $as_echo_n "(cached) " >&6
27342else
27343 ac_check_lib_save_LIBS=$LIBS
27344LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027346/* end confdefs.h. */
27347
27348/* Override any GCC internal prototype to avoid an error.
27349 Use char because int might match the return type of a GCC
27350 builtin and then its argument prototype would still apply. */
27351#ifdef __cplusplus
27352extern "C"
27353#endif
27354char gethostbyname ();
27355int
27356main ()
27357{
27358return gethostbyname ();
27359 ;
27360 return 0;
27361}
27362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027363if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027364 ac_cv_lib_nsl_gethostbyname=yes
27365else
cristy8b350f62009-11-15 23:12:43 +000027366 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027367fi
cristy8b350f62009-11-15 23:12:43 +000027368rm -f core conftest.err conftest.$ac_objext \
27369 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027370LIBS=$ac_check_lib_save_LIBS
27371fi
cristy8b350f62009-11-15 23:12:43 +000027372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027373$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027374if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027375 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27376fi
27377
27378 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027380$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027381if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027382 $as_echo_n "(cached) " >&6
27383else
27384 ac_check_lib_save_LIBS=$LIBS
27385LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027387/* end confdefs.h. */
27388
27389/* Override any GCC internal prototype to avoid an error.
27390 Use char because int might match the return type of a GCC
27391 builtin and then its argument prototype would still apply. */
27392#ifdef __cplusplus
27393extern "C"
27394#endif
27395char gethostbyname ();
27396int
27397main ()
27398{
27399return gethostbyname ();
27400 ;
27401 return 0;
27402}
27403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027404if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027405 ac_cv_lib_bsd_gethostbyname=yes
27406else
cristy8b350f62009-11-15 23:12:43 +000027407 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027408fi
cristy8b350f62009-11-15 23:12:43 +000027409rm -f core conftest.err conftest.$ac_objext \
27410 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027411LIBS=$ac_check_lib_save_LIBS
27412fi
cristy8b350f62009-11-15 23:12:43 +000027413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027414$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027415if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027416 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27417fi
27418
27419 fi
27420 fi
27421
27422 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27423 # socket/setsockopt and other routines are undefined under SCO ODT
27424 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27425 # on later versions), says Simon Leinen: it contains gethostby*
27426 # variants that don't use the name server (or something). -lsocket
27427 # must be given before -lnsl if both are needed. We assume that
27428 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027429 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027430if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027431
cristy3ed852e2009-09-05 21:47:34 +000027432fi
27433
cristy3ed852e2009-09-05 21:47:34 +000027434 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027436$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027437if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027438 $as_echo_n "(cached) " >&6
27439else
27440 ac_check_lib_save_LIBS=$LIBS
27441LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027443/* end confdefs.h. */
27444
27445/* Override any GCC internal prototype to avoid an error.
27446 Use char because int might match the return type of a GCC
27447 builtin and then its argument prototype would still apply. */
27448#ifdef __cplusplus
27449extern "C"
27450#endif
27451char connect ();
27452int
27453main ()
27454{
27455return connect ();
27456 ;
27457 return 0;
27458}
27459_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027460if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027461 ac_cv_lib_socket_connect=yes
27462else
cristy8b350f62009-11-15 23:12:43 +000027463 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027464fi
cristy8b350f62009-11-15 23:12:43 +000027465rm -f core conftest.err conftest.$ac_objext \
27466 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027467LIBS=$ac_check_lib_save_LIBS
27468fi
cristy8b350f62009-11-15 23:12:43 +000027469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027470$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027471if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027472 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27473fi
27474
27475 fi
27476
27477 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027478 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027479if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027480
cristy3ed852e2009-09-05 21:47:34 +000027481fi
27482
cristy3ed852e2009-09-05 21:47:34 +000027483 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027485$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027486if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027487 $as_echo_n "(cached) " >&6
27488else
27489 ac_check_lib_save_LIBS=$LIBS
27490LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027492/* end confdefs.h. */
27493
27494/* Override any GCC internal prototype to avoid an error.
27495 Use char because int might match the return type of a GCC
27496 builtin and then its argument prototype would still apply. */
27497#ifdef __cplusplus
27498extern "C"
27499#endif
27500char remove ();
27501int
27502main ()
27503{
27504return remove ();
27505 ;
27506 return 0;
27507}
27508_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027509if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027510 ac_cv_lib_posix_remove=yes
27511else
cristy8b350f62009-11-15 23:12:43 +000027512 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027513fi
cristy8b350f62009-11-15 23:12:43 +000027514rm -f core conftest.err conftest.$ac_objext \
27515 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027516LIBS=$ac_check_lib_save_LIBS
27517fi
cristy8b350f62009-11-15 23:12:43 +000027518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027519$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027520if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027521 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27522fi
27523
27524 fi
27525
27526 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027527 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027528if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027529
cristy3ed852e2009-09-05 21:47:34 +000027530fi
27531
cristy3ed852e2009-09-05 21:47:34 +000027532 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027534$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027535if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027536 $as_echo_n "(cached) " >&6
27537else
27538 ac_check_lib_save_LIBS=$LIBS
27539LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027541/* end confdefs.h. */
27542
27543/* Override any GCC internal prototype to avoid an error.
27544 Use char because int might match the return type of a GCC
27545 builtin and then its argument prototype would still apply. */
27546#ifdef __cplusplus
27547extern "C"
27548#endif
27549char shmat ();
27550int
27551main ()
27552{
27553return shmat ();
27554 ;
27555 return 0;
27556}
27557_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027558if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027559 ac_cv_lib_ipc_shmat=yes
27560else
cristy8b350f62009-11-15 23:12:43 +000027561 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027562fi
cristy8b350f62009-11-15 23:12:43 +000027563rm -f core conftest.err conftest.$ac_objext \
27564 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027565LIBS=$ac_check_lib_save_LIBS
27566fi
cristy8b350f62009-11-15 23:12:43 +000027567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027568$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027569if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027570 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27571fi
27572
27573 fi
27574 fi
27575
27576 # Check for libraries that X11R6 Xt/Xaw programs need.
27577 ac_save_LDFLAGS=$LDFLAGS
27578 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27579 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27580 # check for ICE first), but we must link in the order -lSM -lICE or
27581 # we get undefined symbols. So assume we have SM if we have ICE.
27582 # These have to be linked with before -lX11, unlike the other
27583 # libraries we check for below, so use a different variable.
27584 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027586$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027587if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027588 $as_echo_n "(cached) " >&6
27589else
27590 ac_check_lib_save_LIBS=$LIBS
27591LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027593/* end confdefs.h. */
27594
27595/* Override any GCC internal prototype to avoid an error.
27596 Use char because int might match the return type of a GCC
27597 builtin and then its argument prototype would still apply. */
27598#ifdef __cplusplus
27599extern "C"
27600#endif
27601char IceConnectionNumber ();
27602int
27603main ()
27604{
27605return IceConnectionNumber ();
27606 ;
27607 return 0;
27608}
27609_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027610if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027611 ac_cv_lib_ICE_IceConnectionNumber=yes
27612else
cristy8b350f62009-11-15 23:12:43 +000027613 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027614fi
cristy8b350f62009-11-15 23:12:43 +000027615rm -f core conftest.err conftest.$ac_objext \
27616 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027617LIBS=$ac_check_lib_save_LIBS
27618fi
cristy8b350f62009-11-15 23:12:43 +000027619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027620$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027621if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027622 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27623fi
27624
27625 LDFLAGS=$ac_save_LDFLAGS
27626
27627fi
27628
27629if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27631$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027633$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27635$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027636 LDFLAGS="$LDFLAGS $X_LIBS"
27637 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27638 LIBS="$X11_LIBS $LIBS"
27639 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27640
27641
cristy8b350f62009-11-15 23:12:43 +000027642$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027643
27644 #
27645 # Check for X11 shared memory extension
27646 #
27647 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027648 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027649if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027650 have_shmctl='yes'
27651fi
27652
27653 if test "$have_shmctl" != 'yes'; then
27654 PERSIST_LIBS=$LIBS
27655 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027657/* end confdefs.h. */
27658
27659/* Override any GCC internal prototype to avoid an error.
27660 Use char because int might match the return type of a GCC
27661 builtin and then its argument prototype would still apply. */
27662#ifdef __cplusplus
27663extern "C"
27664#endif
27665char shmctl ();
27666int
27667main ()
27668{
27669return shmctl ();
27670 ;
27671 return 0;
27672}
27673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027674if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027675 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027676fi
cristy8b350f62009-11-15 23:12:43 +000027677rm -f core conftest.err conftest.$ac_objext \
27678 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027679 LIBS=$PERSIST_LIBS
27680 fi
27681
27682 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027684$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027685if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027686 $as_echo_n "(cached) " >&6
27687else
27688 ac_check_lib_save_LIBS=$LIBS
27689LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027691/* end confdefs.h. */
27692
27693/* Override any GCC internal prototype to avoid an error.
27694 Use char because int might match the return type of a GCC
27695 builtin and then its argument prototype would still apply. */
27696#ifdef __cplusplus
27697extern "C"
27698#endif
27699char XShmAttach ();
27700int
27701main ()
27702{
27703return XShmAttach ();
27704 ;
27705 return 0;
27706}
27707_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027708if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027709 ac_cv_lib_Xext_XShmAttach=yes
27710else
cristy8b350f62009-11-15 23:12:43 +000027711 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027712fi
cristy8b350f62009-11-15 23:12:43 +000027713rm -f core conftest.err conftest.$ac_objext \
27714 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027715LIBS=$ac_check_lib_save_LIBS
27716fi
cristy8b350f62009-11-15 23:12:43 +000027717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027718$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027719if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027720 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027721$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027722
27723fi
27724
27725 fi
27726
27727 #
27728 # Check for X11 shape extension
27729 #
cristy8b350f62009-11-15 23:12:43 +000027730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027731$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027732if ${ac_cv_lib_Xext_XShapeCombineMask+:} 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 XShapeCombineMask ();
27747int
27748main ()
27749{
27750return XShapeCombineMask ();
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_XShapeCombineMask=yes
27757else
cristy8b350f62009-11-15 23:12:43 +000027758 ac_cv_lib_Xext_XShapeCombineMask=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_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027765$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027766if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027767 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027768$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027769
27770fi
27771
cristy8b350f62009-11-15 23:12:43 +000027772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027773$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027774if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027775 $as_echo_n "(cached) " >&6
27776else
27777 ac_check_lib_save_LIBS=$LIBS
27778LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027780/* end confdefs.h. */
27781
27782/* Override any GCC internal prototype to avoid an error.
27783 Use char because int might match the return type of a GCC
27784 builtin and then its argument prototype would still apply. */
27785#ifdef __cplusplus
27786extern "C"
27787#endif
27788char XtSetEventDispatcher ();
27789int
27790main ()
27791{
27792return XtSetEventDispatcher ();
27793 ;
27794 return 0;
27795}
27796_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027797if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027798 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27799else
cristy8b350f62009-11-15 23:12:43 +000027800 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027801fi
cristy8b350f62009-11-15 23:12:43 +000027802rm -f core conftest.err conftest.$ac_objext \
27803 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027804LIBS=$ac_check_lib_save_LIBS
27805fi
cristy8b350f62009-11-15 23:12:43 +000027806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027807$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027808if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027809 XT_LIBS='-lXt'
27810fi
27811
27812 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27813fi
27814if test "$no_x" != 'yes'; then
27815 have_x='yes'
27816else
27817 have_x='no'
27818fi
cristy73bd4a52010-10-05 11:24:23 +000027819 if test "$have_x" = 'yes'; then
27820 X11_DELEGATE_TRUE=
27821 X11_DELEGATE_FALSE='#'
27822else
27823 X11_DELEGATE_TRUE='#'
27824 X11_DELEGATE_FALSE=
27825fi
27826
cristy3ed852e2009-09-05 21:47:34 +000027827
27828
27829
27830
27831#
27832# Check for ZLIB
27833#
27834
27835# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027836if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027837 withval=$with_zlib; with_zlib=$withval
27838else
27839 with_zlib='yes'
27840fi
27841
27842
27843if test "$with_zlib" != 'yes'; then
27844 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27845fi
27846
27847have_zlib='no'
27848ZLIB_LIBS=''
27849if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27851$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027853$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27855$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027856 ZLIB_LIBS=''
27857 failed=0
27858 passed=0
cristy8b350f62009-11-15 23:12:43 +000027859 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027860if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027861 passed=`expr $passed + 1`
27862else
27863 failed=`expr $failed + 1`
27864fi
27865
27866
cristy8b350f62009-11-15 23:12:43 +000027867 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027868if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027869 passed=`expr $passed + 1`
27870else
27871 failed=`expr $failed + 1`
27872fi
27873
27874
cristy8b350f62009-11-15 23:12:43 +000027875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027876$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027877if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027878 $as_echo_n "(cached) " >&6
27879else
27880 ac_check_lib_save_LIBS=$LIBS
27881LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027883/* end confdefs.h. */
27884
27885/* Override any GCC internal prototype to avoid an error.
27886 Use char because int might match the return type of a GCC
27887 builtin and then its argument prototype would still apply. */
27888#ifdef __cplusplus
27889extern "C"
27890#endif
27891char compress ();
27892int
27893main ()
27894{
27895return compress ();
27896 ;
27897 return 0;
27898}
27899_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027900if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027901 ac_cv_lib_z_compress=yes
27902else
cristy8b350f62009-11-15 23:12:43 +000027903 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027904fi
cristy8b350f62009-11-15 23:12:43 +000027905rm -f core conftest.err conftest.$ac_objext \
27906 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027907LIBS=$ac_check_lib_save_LIBS
27908fi
cristy8b350f62009-11-15 23:12:43 +000027909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027910$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027911if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027912 passed=`expr $passed + 1`
27913else
27914 failed=`expr $failed + 1`
27915fi
27916
cristy8b350f62009-11-15 23:12:43 +000027917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027918$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027919if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027920 $as_echo_n "(cached) " >&6
27921else
27922 ac_check_lib_save_LIBS=$LIBS
27923LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027925/* end confdefs.h. */
27926
27927/* Override any GCC internal prototype to avoid an error.
27928 Use char because int might match the return type of a GCC
27929 builtin and then its argument prototype would still apply. */
27930#ifdef __cplusplus
27931extern "C"
27932#endif
27933char uncompress ();
27934int
27935main ()
27936{
27937return uncompress ();
27938 ;
27939 return 0;
27940}
27941_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027942if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027943 ac_cv_lib_z_uncompress=yes
27944else
cristy8b350f62009-11-15 23:12:43 +000027945 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027946fi
cristy8b350f62009-11-15 23:12:43 +000027947rm -f core conftest.err conftest.$ac_objext \
27948 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027949LIBS=$ac_check_lib_save_LIBS
27950fi
cristy8b350f62009-11-15 23:12:43 +000027951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027952$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027953if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027954 passed=`expr $passed + 1`
27955else
27956 failed=`expr $failed + 1`
27957fi
27958
cristy8b350f62009-11-15 23:12:43 +000027959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027960$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027961if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027962 $as_echo_n "(cached) " >&6
27963else
27964 ac_check_lib_save_LIBS=$LIBS
27965LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027967/* end confdefs.h. */
27968
27969/* Override any GCC internal prototype to avoid an error.
27970 Use char because int might match the return type of a GCC
27971 builtin and then its argument prototype would still apply. */
27972#ifdef __cplusplus
27973extern "C"
27974#endif
27975char deflate ();
27976int
27977main ()
27978{
27979return deflate ();
27980 ;
27981 return 0;
27982}
27983_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027984if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027985 ac_cv_lib_z_deflate=yes
27986else
cristy8b350f62009-11-15 23:12:43 +000027987 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027988fi
cristy8b350f62009-11-15 23:12:43 +000027989rm -f core conftest.err conftest.$ac_objext \
27990 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027991LIBS=$ac_check_lib_save_LIBS
27992fi
cristy8b350f62009-11-15 23:12:43 +000027993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027994$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027995if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027996 passed=`expr $passed + 1`
27997else
27998 failed=`expr $failed + 1`
27999fi
28000
cristy8b350f62009-11-15 23:12:43 +000028001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028002$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028003if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028004 $as_echo_n "(cached) " >&6
28005else
28006 ac_check_lib_save_LIBS=$LIBS
28007LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028009/* end confdefs.h. */
28010
28011/* Override any GCC internal prototype to avoid an error.
28012 Use char because int might match the return type of a GCC
28013 builtin and then its argument prototype would still apply. */
28014#ifdef __cplusplus
28015extern "C"
28016#endif
28017char inflate ();
28018int
28019main ()
28020{
28021return inflate ();
28022 ;
28023 return 0;
28024}
28025_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028026if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028027 ac_cv_lib_z_inflate=yes
28028else
cristy8b350f62009-11-15 23:12:43 +000028029 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028030fi
cristy8b350f62009-11-15 23:12:43 +000028031rm -f core conftest.err conftest.$ac_objext \
28032 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028033LIBS=$ac_check_lib_save_LIBS
28034fi
cristy8b350f62009-11-15 23:12:43 +000028035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028036$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028037if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028038 passed=`expr $passed + 1`
28039else
28040 failed=`expr $failed + 1`
28041fi
28042
cristy8b350f62009-11-15 23:12:43 +000028043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028044$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028045if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028046 $as_echo_n "(cached) " >&6
28047else
28048 ac_check_lib_save_LIBS=$LIBS
28049LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028051/* end confdefs.h. */
28052
28053/* Override any GCC internal prototype to avoid an error.
28054 Use char because int might match the return type of a GCC
28055 builtin and then its argument prototype would still apply. */
28056#ifdef __cplusplus
28057extern "C"
28058#endif
28059char gzseek ();
28060int
28061main ()
28062{
28063return gzseek ();
28064 ;
28065 return 0;
28066}
28067_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028068if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028069 ac_cv_lib_z_gzseek=yes
28070else
cristy8b350f62009-11-15 23:12:43 +000028071 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028072fi
cristy8b350f62009-11-15 23:12:43 +000028073rm -f core conftest.err conftest.$ac_objext \
28074 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028075LIBS=$ac_check_lib_save_LIBS
28076fi
cristy8b350f62009-11-15 23:12:43 +000028077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028078$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028079if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028080 passed=`expr $passed + 1`
28081else
28082 failed=`expr $failed + 1`
28083fi
28084
cristy8b350f62009-11-15 23:12:43 +000028085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028086$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028087if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028088 $as_echo_n "(cached) " >&6
28089else
28090 ac_check_lib_save_LIBS=$LIBS
28091LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028093/* end confdefs.h. */
28094
28095/* Override any GCC internal prototype to avoid an error.
28096 Use char because int might match the return type of a GCC
28097 builtin and then its argument prototype would still apply. */
28098#ifdef __cplusplus
28099extern "C"
28100#endif
28101char gztell ();
28102int
28103main ()
28104{
28105return gztell ();
28106 ;
28107 return 0;
28108}
28109_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028110if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028111 ac_cv_lib_z_gztell=yes
28112else
cristy8b350f62009-11-15 23:12:43 +000028113 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028114fi
cristy8b350f62009-11-15 23:12:43 +000028115rm -f core conftest.err conftest.$ac_objext \
28116 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028117LIBS=$ac_check_lib_save_LIBS
28118fi
cristy8b350f62009-11-15 23:12:43 +000028119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028120$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028121if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028122 passed=`expr $passed + 1`
28123else
28124 failed=`expr $failed + 1`
28125fi
28126
cristy8b350f62009-11-15 23:12:43 +000028127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028128$as_echo_n "checking if ZLIB package is complete... " >&6; }
28129 if test $passed -gt 0; then
28130 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28132$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028133 have_zlib='no (failed tests)'
28134 else
28135 ZLIB_LIBS='-lz'
28136 LIBS="$ZLIB_LIBS $LIBS"
28137
cristy8b350f62009-11-15 23:12:43 +000028138$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028139
cristyad38abe2012-12-23 23:03:21 +000028140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28141$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028142 have_zlib='yes'
28143 fi
28144 else
cristyad38abe2012-12-23 23:03:21 +000028145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28146$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028147 fi
28148fi
cristy73bd4a52010-10-05 11:24:23 +000028149 if test "$have_zlib" = 'yes'; then
28150 ZLIB_DELEGATE_TRUE=
28151 ZLIB_DELEGATE_FALSE='#'
28152else
28153 ZLIB_DELEGATE_TRUE='#'
28154 ZLIB_DELEGATE_FALSE=
28155fi
28156
cristy3ed852e2009-09-05 21:47:34 +000028157
28158
cristy5eef09f2012-10-16 12:08:28 +000028159# whether modules are built or not.
28160with_ltdl='yes'
28161have_ltdl='no'
28162LTDL_LIBS=''
28163if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28165$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28167$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28169$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028170 failed=0
28171 passed=0
28172 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28173if test "x$ac_cv_header_ltdl_h" = xyes; then :
28174 passed=`expr $passed + 1`
28175else
28176 failed=`expr $failed + 1`
28177fi
28178
28179
28180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28181$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28182if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28183 $as_echo_n "(cached) " >&6
28184else
28185 ac_check_lib_save_LIBS=$LIBS
28186LIBS="-lltdl $LIBS"
28187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28188/* end confdefs.h. */
28189
28190/* Override any GCC internal prototype to avoid an error.
28191 Use char because int might match the return type of a GCC
28192 builtin and then its argument prototype would still apply. */
28193#ifdef __cplusplus
28194extern "C"
28195#endif
28196char lt_dlinit ();
28197int
28198main ()
28199{
28200return lt_dlinit ();
28201 ;
28202 return 0;
28203}
28204_ACEOF
28205if ac_fn_c_try_link "$LINENO"; then :
28206 ac_cv_lib_ltdl_lt_dlinit=yes
28207else
28208 ac_cv_lib_ltdl_lt_dlinit=no
28209fi
28210rm -f core conftest.err conftest.$ac_objext \
28211 conftest$ac_exeext conftest.$ac_ext
28212LIBS=$ac_check_lib_save_LIBS
28213fi
28214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28215$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28216if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28217 passed=`expr $passed + 1`
28218else
28219 failed=`expr $failed + 1`
28220fi
28221
28222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28223$as_echo_n "checking if libltdl package is complete... " >&6; }
28224 if test $passed -gt 0 ; then
28225 if test $failed -gt 0 ; then
28226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28227$as_echo "no -- some components failed test" >&6; }
28228 have_ltdl='no (failed tests)'
28229 else
28230 LTDL_LIBS='-lltdl'
28231 LIBS="$LTDL_LIBS $LIBS"
28232
28233$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28234
28235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28236$as_echo "yes" >&6; }
28237 have_ltdl='yes'
28238 fi
28239 else
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28241$as_echo "no" >&6; }
28242 fi
cristyaf4cbf32012-10-16 23:47:41 +000028243 if test "$have_ltdl" != 'yes' ; then
28244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28246as_fn_error 1 "libltdl is required for modules build
28247See \`config.log' for more details" "$LINENO" 5; }
28248 fi
cristy5eef09f2012-10-16 12:08:28 +000028249fi
28250 if test "$have_ltdl" != 'no'; then
28251 WITH_LTDL_TRUE=
28252 WITH_LTDL_FALSE='#'
28253else
28254 WITH_LTDL_TRUE='#'
28255 WITH_LTDL_FALSE=
28256fi
28257
28258
cristy3ed852e2009-09-05 21:47:34 +000028259#
28260# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28261#
28262LIB_DL=''
28263if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028265$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028266if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028267 $as_echo_n "(cached) " >&6
28268else
28269 ac_check_lib_save_LIBS=$LIBS
28270LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028272/* end confdefs.h. */
28273
28274/* Override any GCC internal prototype to avoid an error.
28275 Use char because int might match the return type of a GCC
28276 builtin and then its argument prototype would still apply. */
28277#ifdef __cplusplus
28278extern "C"
28279#endif
28280char dlopen ();
28281int
28282main ()
28283{
28284return dlopen ();
28285 ;
28286 return 0;
28287}
28288_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028289if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028290 ac_cv_lib_dl_dlopen=yes
28291else
cristy8b350f62009-11-15 23:12:43 +000028292 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028293fi
cristy8b350f62009-11-15 23:12:43 +000028294rm -f core conftest.err conftest.$ac_objext \
28295 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028296LIBS=$ac_check_lib_save_LIBS
28297fi
cristy8b350f62009-11-15 23:12:43 +000028298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028299$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028300if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028301 LIB_DL='-ldl'
28302fi
28303
28304 LIBS="$LIB_DL $LIBS"
28305fi
28306
28307
28308
28309#
28310# Check for Autotrace delegate library.
28311#
28312
28313# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028314if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028315 withval=$with_autotrace; with_autotrace=$withval
28316else
28317 with_autotrace='no'
28318fi
28319
28320
28321if test "$with_autotrace" != 'yes'; then
28322 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28323fi
28324
28325have_autotrace='no'
28326AUTOTRACE_CFLAGS=""
28327AUTOTRACE_LIBS=""
28328AUTOTRACE_PKG=""
28329if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28331$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028332
28333pkg_failed=no
28334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28335$as_echo_n "checking for AUTOTRACE... " >&6; }
28336
28337if test -n "$AUTOTRACE_CFLAGS"; then
28338 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28339 elif test -n "$PKG_CONFIG"; then
28340 if test -n "$PKG_CONFIG" && \
28341 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28342 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28343 ac_status=$?
28344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28345 test $ac_status = 0; }; then
28346 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28347else
28348 pkg_failed=yes
28349fi
28350 else
28351 pkg_failed=untried
28352fi
28353if test -n "$AUTOTRACE_LIBS"; then
28354 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28355 elif test -n "$PKG_CONFIG"; then
28356 if test -n "$PKG_CONFIG" && \
28357 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28358 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28359 ac_status=$?
28360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28361 test $ac_status = 0; }; then
28362 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28363else
28364 pkg_failed=yes
28365fi
28366 else
28367 pkg_failed=untried
28368fi
28369
28370
28371
28372if test $pkg_failed = yes; then
28373
28374if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28375 _pkg_short_errors_supported=yes
28376else
28377 _pkg_short_errors_supported=no
28378fi
28379 if test $_pkg_short_errors_supported = yes; then
28380 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28381 else
28382 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28383 fi
28384 # Put the nasty error message in config.log where it belongs
28385 echo "$AUTOTRACE_PKG_ERRORS" >&5
28386
28387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28388$as_echo "no" >&6; }
28389 have_autotrace=no
28390elif test $pkg_failed = untried; then
28391 have_autotrace=no
28392else
28393 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28394 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28396$as_echo "yes" >&6; }
28397 have_autotrace=yes
28398fi
cristyad38abe2012-12-23 23:03:21 +000028399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28400$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028401fi
28402
28403if test "$have_autotrace" = 'yes'; then
28404 failed=0
28405
cristy8b350f62009-11-15 23:12:43 +000028406$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028407
cristyc6722092012-10-14 00:19:31 +000028408 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028409 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028410 fi
28411fi
28412
cristy73bd4a52010-10-05 11:24:23 +000028413 if test "$have_autotrace" = 'yes'; then
28414 AUTOTRACE_DELEGATE_TRUE=
28415 AUTOTRACE_DELEGATE_FALSE='#'
28416else
28417 AUTOTRACE_DELEGATE_TRUE='#'
28418 AUTOTRACE_DELEGATE_FALSE=
28419fi
28420
cristy3ed852e2009-09-05 21:47:34 +000028421
28422
28423
28424
28425#
28426# Check for Display Postscript delegate library.
28427#
28428
28429# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028430if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028431 withval=$with_dps; with_dps=$withval
28432else
28433 with_dps='yes'
28434fi
28435
28436
28437if test "$with_dps" != 'yes'; then
28438 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28439fi
28440
28441have_dps='no'
28442DPS_LIBS=''
28443if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28445$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028447$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28449$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028450 failed=0
28451 passed=0
28452 PERSIST_CPPFLAGS="$CPPFLAGS"
28453 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028454 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 +000028455if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028456 passed=`expr $passed + 1`
28457else
28458 failed=`expr $failed + 1`
28459fi
28460
28461
28462 # DPS issues:
28463 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28464 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28465 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28466 # ImageMagick itself doesn't use -lXt.
28467 have_libdps='no'
28468 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028470$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028471if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028472 $as_echo_n "(cached) " >&6
28473else
28474 ac_check_lib_save_LIBS=$LIBS
28475LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028477/* end confdefs.h. */
28478
28479/* Override any GCC internal prototype to avoid an error.
28480 Use char because int might match the return type of a GCC
28481 builtin and then its argument prototype would still apply. */
28482#ifdef __cplusplus
28483extern "C"
28484#endif
28485char DPSInitialize ();
28486int
28487main ()
28488{
28489return DPSInitialize ();
28490 ;
28491 return 0;
28492}
28493_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028494if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028495 ac_cv_lib_dps_DPSInitialize=yes
28496else
cristy8b350f62009-11-15 23:12:43 +000028497 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028498fi
cristy8b350f62009-11-15 23:12:43 +000028499rm -f core conftest.err conftest.$ac_objext \
28500 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028501LIBS=$ac_check_lib_save_LIBS
28502fi
cristy8b350f62009-11-15 23:12:43 +000028503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028504$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028505if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028506 have_libdps='yes'
28507else
28508 have_libdps='no'
28509fi
28510
28511 if test "$have_libdps" != 'yes'; then
28512 # Unset cache variable so we can try again.
28513 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028515$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028516if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028517 $as_echo_n "(cached) " >&6
28518else
28519 ac_check_lib_save_LIBS=$LIBS
28520LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028522/* end confdefs.h. */
28523
28524/* Override any GCC internal prototype to avoid an error.
28525 Use char because int might match the return type of a GCC
28526 builtin and then its argument prototype would still apply. */
28527#ifdef __cplusplus
28528extern "C"
28529#endif
28530char DPSInitialize ();
28531int
28532main ()
28533{
28534return DPSInitialize ();
28535 ;
28536 return 0;
28537}
28538_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028539if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028540 ac_cv_lib_dps_DPSInitialize=yes
28541else
cristy8b350f62009-11-15 23:12:43 +000028542 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028543fi
cristy8b350f62009-11-15 23:12:43 +000028544rm -f core conftest.err conftest.$ac_objext \
28545 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028546LIBS=$ac_check_lib_save_LIBS
28547fi
cristy8b350f62009-11-15 23:12:43 +000028548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028549$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028550if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028551 have_libdps='yes'
28552else
28553 have_libdps='no'
28554fi
28555
28556 if test "$have_libdps" = 'yes'; then
28557 LIBDPS_XT='-lXt'
28558 fi
28559 fi
28560 if test "$have_libdps" = 'yes'; then
28561 passed=`expr $passed + 1`
28562 else
28563 failed=`expr $failed + 1`
28564 fi
cristy8b350f62009-11-15 23:12:43 +000028565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028566$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028567if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028568 $as_echo_n "(cached) " >&6
28569else
28570 ac_check_lib_save_LIBS=$LIBS
28571LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028573/* end confdefs.h. */
28574
28575/* Override any GCC internal prototype to avoid an error.
28576 Use char because int might match the return type of a GCC
28577 builtin and then its argument prototype would still apply. */
28578#ifdef __cplusplus
28579extern "C"
28580#endif
28581char XDPSPixelsPerPoint ();
28582int
28583main ()
28584{
28585return XDPSPixelsPerPoint ();
28586 ;
28587 return 0;
28588}
28589_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028590if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028591 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28592else
cristy8b350f62009-11-15 23:12:43 +000028593 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028594fi
cristy8b350f62009-11-15 23:12:43 +000028595rm -f core conftest.err conftest.$ac_objext \
28596 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028597LIBS=$ac_check_lib_save_LIBS
28598fi
cristy8b350f62009-11-15 23:12:43 +000028599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028600$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028601if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028602 passed=`expr $passed + 1`
28603else
28604 failed=`expr $failed + 1`
28605fi
28606
cristy8b350f62009-11-15 23:12:43 +000028607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028608$as_echo_n "checking if DPS package is complete... " >&6; }
28609 if test $passed -gt 0; then
28610 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28612$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028613 have_dps='no (failed tests)'
28614 CPPFLAGS="$PERSIST_CPPFLAGS"
28615 else
28616 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28617 LIBS="$DPS_LIBS $LIBS"
28618
cristy8b350f62009-11-15 23:12:43 +000028619$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028620
cristyad38abe2012-12-23 23:03:21 +000028621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28622$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028623 have_dps='yes'
28624 fi
28625 else
cristyad38abe2012-12-23 23:03:21 +000028626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28627$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028628 CPPFLAGS=$PERSIST_CPPFLAGS
28629 fi
28630fi
cristy73bd4a52010-10-05 11:24:23 +000028631 if test "$have_dps" = 'yes'; then
28632 DPS_DELEGATE_TRUE=
28633 DPS_DELEGATE_FALSE='#'
28634else
28635 DPS_DELEGATE_TRUE='#'
28636 DPS_DELEGATE_FALSE=
28637fi
28638
cristy3ed852e2009-09-05 21:47:34 +000028639
28640
28641
28642#
28643# Check for DJVU delegate library.
28644#
28645
28646# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028647if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028648 withval=$with_djvu; with_djvu=$withval
28649else
28650 with_djvu='yes'
28651fi
28652
28653
28654if test "$with_djvu" != 'yes'; then
28655 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28656fi
28657
28658have_djvu='no'
28659DJVU_LIBS=''
28660if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28662$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028664$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28666$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028667 failed=0
28668 passed=0
cristy8b350f62009-11-15 23:12:43 +000028669 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 +000028670if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028671 passed=`expr $passed + 1`
28672else
28673 failed=`expr $failed + 1`
28674fi
28675
28676
cristy8b350f62009-11-15 23:12:43 +000028677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028678$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028679if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028680 $as_echo_n "(cached) " >&6
28681else
28682 ac_check_lib_save_LIBS=$LIBS
28683LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028685/* end confdefs.h. */
28686
28687/* Override any GCC internal prototype to avoid an error.
28688 Use char because int might match the return type of a GCC
28689 builtin and then its argument prototype would still apply. */
28690#ifdef __cplusplus
28691extern "C"
28692#endif
28693char ddjvu_context_create ();
28694int
28695main ()
28696{
28697return ddjvu_context_create ();
28698 ;
28699 return 0;
28700}
28701_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028702if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028703 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28704else
cristy8b350f62009-11-15 23:12:43 +000028705 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028706fi
cristy8b350f62009-11-15 23:12:43 +000028707rm -f core conftest.err conftest.$ac_objext \
28708 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028709LIBS=$ac_check_lib_save_LIBS
28710fi
cristy8b350f62009-11-15 23:12:43 +000028711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028712$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028713if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028714 passed=`expr $passed + 1`
28715else
28716 failed=`expr $failed + 1`
28717fi
28718
cristy8b350f62009-11-15 23:12:43 +000028719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028720$as_echo_n "checking if DJVU package is complete... " >&6; }
28721 if test $passed -gt 0; then
28722 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28724$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028725 have_djvu='no (failed tests)'
28726 else
28727 DJVU_LIBS='-ldjvulibre'
28728 LIBS="$DJVU_LIBS $LIBS"
28729
cristy8b350f62009-11-15 23:12:43 +000028730$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028731
cristyad38abe2012-12-23 23:03:21 +000028732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28733$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028734 have_djvu='yes'
28735 fi
28736 else
cristyad38abe2012-12-23 23:03:21 +000028737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28738$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028739 fi
28740fi
cristy73bd4a52010-10-05 11:24:23 +000028741 if test "$have_djvu" = 'yes'; then
28742 DJVU_DELEGATE_TRUE=
28743 DJVU_DELEGATE_FALSE='#'
28744else
28745 DJVU_DELEGATE_TRUE='#'
28746 DJVU_DELEGATE_FALSE=
28747fi
28748
cristy3ed852e2009-09-05 21:47:34 +000028749
28750
28751
28752#
cristy430a7312010-01-21 20:44:04 +000028753# Set DejaVu font directory.
28754#
28755
28756# Check whether --with-dejavu-font-dir was given.
28757if test "${with_dejavu_font_dir+set}" = set; then :
28758 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28759else
28760 with_dejavu_font_dir='default'
28761fi
28762
28763
28764if test "$with_dejavu_font_dir" != 'default'; then
28765 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28766fi
28767
28768
28769#
cristy3ed852e2009-09-05 21:47:34 +000028770# Check for FFTW delegate library.
28771#
28772
28773# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028774if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028775 withval=$with_fftw; with_fftw=$withval
28776else
28777 with_fftw='yes'
28778fi
28779
28780
28781if test "$with_fftw" != 'yes'; then
28782 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28783fi
28784
cristy81beccd2011-10-03 18:17:24 +000028785have_fftw='no'
28786FFTW_LIBS=''
28787if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28789$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28791$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28793$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028794 failed=0
28795 passed=0
28796 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28797if test "x$ac_cv_header_fftw3_h" = xyes; then :
28798 passed=`expr $passed + 1`
28799else
28800 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028801fi
28802
cristy81beccd2011-10-03 18:17:24 +000028803
28804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28805$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28806if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28807 $as_echo_n "(cached) " >&6
28808else
28809 ac_check_lib_save_LIBS=$LIBS
28810LIBS="-lfftw3 $LIBS"
28811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28812/* end confdefs.h. */
28813
28814/* Override any GCC internal prototype to avoid an error.
28815 Use char because int might match the return type of a GCC
28816 builtin and then its argument prototype would still apply. */
28817#ifdef __cplusplus
28818extern "C"
28819#endif
28820char fftw_execute ();
28821int
28822main ()
28823{
28824return fftw_execute ();
28825 ;
28826 return 0;
28827}
28828_ACEOF
28829if ac_fn_c_try_link "$LINENO"; then :
28830 ac_cv_lib_fftw3_fftw_execute=yes
28831else
28832 ac_cv_lib_fftw3_fftw_execute=no
28833fi
28834rm -f core conftest.err conftest.$ac_objext \
28835 conftest$ac_exeext conftest.$ac_ext
28836LIBS=$ac_check_lib_save_LIBS
28837fi
28838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28839$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28840if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28841 passed=`expr $passed + 1`
28842else
28843 failed=`expr $failed + 1`
28844fi
28845
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28847$as_echo_n "checking if FFTW package is complete... " >&6; }
28848 if test $passed -gt 0; then
28849 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28851$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028852 have_fftw='no (failed tests)'
28853 else
28854 FFTW_LIBS='-lfftw3'
28855 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028856
cristy8b350f62009-11-15 23:12:43 +000028857$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028858
cristyad38abe2012-12-23 23:03:21 +000028859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28860$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028861 have_fftw='yes'
28862 fi
28863 else
cristyad38abe2012-12-23 23:03:21 +000028864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28865$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028866 fi
28867fi
cristy73bd4a52010-10-05 11:24:23 +000028868 if test "$have_fftw" = 'yes'; then
28869 FFTW_DELEGATE_TRUE=
28870 FFTW_DELEGATE_FALSE='#'
28871else
28872 FFTW_DELEGATE_TRUE='#'
28873 FFTW_DELEGATE_FALSE=
28874fi
28875
cristy3ed852e2009-09-05 21:47:34 +000028876
28877
28878
28879#
28880# Check for FlashPIX delegate library.
28881#
28882
28883# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028884if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028885 withval=$with_fpx; with_fpx=$withval
28886else
28887 with_fpx='yes'
28888fi
28889
28890
28891if test "$with_fpx" != 'yes'; then
28892 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28893fi
28894
28895have_fpx='no'
28896FPX_LIBS=''
cristyd7f73ad2014-03-05 00:25:29 +000028897SAVED_LIBS=${LIBS}
28898LIBS=${LIBS/-ldjvulibre/}
cristy3ed852e2009-09-05 21:47:34 +000028899if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28901$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028903$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28905$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028906 failed=0
28907 passed=0
28908 ac_ext=cpp
28909ac_cpp='$CXXCPP $CPPFLAGS'
28910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28913
28914
cristy8b350f62009-11-15 23:12:43 +000028915ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028916if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028917 passed=`expr $passed + 1`
28918else
28919 failed=`expr $failed + 1`
28920fi
28921
28922
cristy8b350f62009-11-15 23:12:43 +000028923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028924$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028925if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028926 $as_echo_n "(cached) " >&6
28927else
28928 ac_check_lib_save_LIBS=$LIBS
28929LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028931/* end confdefs.h. */
28932
28933/* Override any GCC internal prototype to avoid an error.
28934 Use char because int might match the return type of a GCC
28935 builtin and then its argument prototype would still apply. */
28936#ifdef __cplusplus
28937extern "C"
28938#endif
28939char FPX_OpenImageByFilename ();
28940int
28941main ()
28942{
28943return FPX_OpenImageByFilename ();
28944 ;
28945 return 0;
28946}
28947_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028948if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028949 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28950else
cristy8b350f62009-11-15 23:12:43 +000028951 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028952fi
cristy8b350f62009-11-15 23:12:43 +000028953rm -f core conftest.err conftest.$ac_objext \
28954 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028955LIBS=$ac_check_lib_save_LIBS
28956fi
cristy8b350f62009-11-15 23:12:43 +000028957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028958$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028959if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028960 passed=`expr $passed + 1`
28961else
28962 failed=`expr $failed + 1`
28963fi
28964
28965 ac_ext=c
28966ac_cpp='$CPP $CPPFLAGS'
28967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28969ac_compiler_gnu=$ac_cv_c_compiler_gnu
28970
cristy8b350f62009-11-15 23:12:43 +000028971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028972$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28973 if test $passed -gt 0; then
28974 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28976$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028977 have_fpx='no (failed tests)'
28978 else
28979 FPX_LIBS='-lfpx'
28980
cristy8b350f62009-11-15 23:12:43 +000028981$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028982
cristyad38abe2012-12-23 23:03:21 +000028983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28984$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028985 have_fpx='yes'
28986 PERLMAINCC="$CXX"
28987 fi
28988 else
cristyad38abe2012-12-23 23:03:21 +000028989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28990$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028991 fi
28992fi
cristy73bd4a52010-10-05 11:24:23 +000028993 if test "$have_fpx" = 'yes'; then
28994 FPX_DELEGATE_TRUE=
28995 FPX_DELEGATE_FALSE='#'
28996else
28997 FPX_DELEGATE_TRUE='#'
28998 FPX_DELEGATE_FALSE=
28999fi
29000
cristy3ed852e2009-09-05 21:47:34 +000029001
cristyd7f73ad2014-03-05 00:25:29 +000029002LIBS=${SAVED_LIBS}
cristy3ed852e2009-09-05 21:47:34 +000029003
29004
29005#
29006# Check for fontconfig delegate library.
29007#
29008
29009# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029010if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029011 withval=$with_fontconfig; with_fontconfig=$withval
29012else
cristyfc3d0222012-02-07 15:05:57 +000029013 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029014fi
29015
29016
29017if test "$with_fontconfig" != 'yes'; then
29018 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29019fi
29020
29021have_fontconfig='no'
29022FONTCONFIG_CFLAGS=""
29023FONTCONFIG_LIBS=""
29024FONTCONFIG_PKG=""
29025if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29027$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029028
29029pkg_failed=no
29030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29031$as_echo_n "checking for FONTCONFIG... " >&6; }
29032
29033if test -n "$FONTCONFIG_CFLAGS"; then
29034 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29035 elif test -n "$PKG_CONFIG"; then
29036 if test -n "$PKG_CONFIG" && \
29037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29038 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29039 ac_status=$?
29040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29041 test $ac_status = 0; }; then
29042 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29043else
29044 pkg_failed=yes
29045fi
29046 else
29047 pkg_failed=untried
29048fi
29049if test -n "$FONTCONFIG_LIBS"; then
29050 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29051 elif test -n "$PKG_CONFIG"; then
29052 if test -n "$PKG_CONFIG" && \
29053 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29054 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29055 ac_status=$?
29056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29057 test $ac_status = 0; }; then
29058 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29059else
29060 pkg_failed=yes
29061fi
29062 else
29063 pkg_failed=untried
29064fi
29065
29066
29067
29068if test $pkg_failed = yes; then
29069
29070if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29071 _pkg_short_errors_supported=yes
29072else
29073 _pkg_short_errors_supported=no
29074fi
29075 if test $_pkg_short_errors_supported = yes; then
29076 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29077 else
29078 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29079 fi
29080 # Put the nasty error message in config.log where it belongs
29081 echo "$FONTCONFIG_PKG_ERRORS" >&5
29082
29083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29084$as_echo "no" >&6; }
29085 have_fontconfig=no
29086elif test $pkg_failed = untried; then
29087 have_fontconfig=no
29088else
29089 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29090 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29092$as_echo "yes" >&6; }
29093 have_fontconfig=yes
29094fi
cristyad38abe2012-12-23 23:03:21 +000029095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29096$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029097fi
29098
29099if test "$have_fontconfig" = 'yes'; then
29100
cristy8b350f62009-11-15 23:12:43 +000029101$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029102
cristyc6722092012-10-14 00:19:31 +000029103 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029104 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029105 fi
cristy3ed852e2009-09-05 21:47:34 +000029106fi
29107
cristy73bd4a52010-10-05 11:24:23 +000029108 if test "$have_fontconfig" = 'yes'; then
29109 FONTCONFIG_DELEGATE_TRUE=
29110 FONTCONFIG_DELEGATE_FALSE='#'
29111else
29112 FONTCONFIG_DELEGATE_TRUE='#'
29113 FONTCONFIG_DELEGATE_FALSE=
29114fi
29115
cristy3ed852e2009-09-05 21:47:34 +000029116
29117
29118
29119
29120#
cristy03f187e2013-01-24 00:22:19 +000029121# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029122#
29123
29124# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029125if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029126 withval=$with_freetype; with_freetype=$withval
29127else
29128 with_freetype='yes'
29129fi
29130
29131
cristy3ed852e2009-09-05 21:47:34 +000029132if test "$with_freetype" != 'yes'; then
29133 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29134fi
29135
cristy81beccd2011-10-03 18:17:24 +000029136have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029137FREETYPE_CFLAGS=""
29138FREETYPE_LIBS=""
29139FREETYPE_PKG=""
29140if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29142$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029143
29144pkg_failed=no
29145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29146$as_echo_n "checking for FREETYPE... " >&6; }
29147
29148if test -n "$FREETYPE_CFLAGS"; then
29149 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29150 elif test -n "$PKG_CONFIG"; then
29151 if test -n "$PKG_CONFIG" && \
29152 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29153 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29154 ac_status=$?
29155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29156 test $ac_status = 0; }; then
29157 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29158else
29159 pkg_failed=yes
29160fi
29161 else
29162 pkg_failed=untried
29163fi
29164if test -n "$FREETYPE_LIBS"; then
29165 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29166 elif test -n "$PKG_CONFIG"; then
29167 if test -n "$PKG_CONFIG" && \
29168 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29169 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29170 ac_status=$?
29171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29172 test $ac_status = 0; }; then
29173 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29174else
29175 pkg_failed=yes
29176fi
29177 else
29178 pkg_failed=untried
29179fi
29180
29181
29182
29183if test $pkg_failed = yes; then
29184
29185if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29186 _pkg_short_errors_supported=yes
29187else
29188 _pkg_short_errors_supported=no
29189fi
29190 if test $_pkg_short_errors_supported = yes; then
29191 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29192 else
29193 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29194 fi
29195 # Put the nasty error message in config.log where it belongs
29196 echo "$FREETYPE_PKG_ERRORS" >&5
29197
29198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29199$as_echo "no" >&6; }
29200 have_freetype=no
29201elif test $pkg_failed = untried; then
29202 have_freetype=no
29203else
29204 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29205 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29207$as_echo "yes" >&6; }
29208 have_freetype=yes
29209fi
cristyad38abe2012-12-23 23:03:21 +000029210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29211$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029212fi
29213
cristy03f187e2013-01-24 00:22:19 +000029214if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029215
cristy8b350f62009-11-15 23:12:43 +000029216$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029217
cristy03f187e2013-01-24 00:22:19 +000029218 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029219fi
cristy03f187e2013-01-24 00:22:19 +000029220
cristy73bd4a52010-10-05 11:24:23 +000029221 if test "$have_freetype" = 'yes'; then
29222 FREETYPE_DELEGATE_TRUE=
29223 FREETYPE_DELEGATE_FALSE='#'
29224else
29225 FREETYPE_DELEGATE_TRUE='#'
29226 FREETYPE_DELEGATE_FALSE=
29227fi
29228
cristy3ed852e2009-09-05 21:47:34 +000029229
29230
29231
cristy03f187e2013-01-24 00:22:19 +000029232
cristy3ed852e2009-09-05 21:47:34 +000029233#
29234# Check for Ghostscript library or framework.
29235#
29236# Test for iapi.h & test for gsapi_new_instance in -lgs
29237# or -framework Ghostscript
29238
29239
29240# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029241if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029242 withval=$with_gslib; with_gslib=$withval
29243else
29244 with_gslib='no'
29245fi
29246
29247
cristyb7931f12009-09-25 10:22:21 +000029248gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029249if test "$with_gslib" != 'yes'; then
29250 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29251fi
29252
29253have_gslib='no'
29254GS_LIBS=''
29255if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29257$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029259$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29261$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029262 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029263 failed=0
29264 passed=0
cristy8b350f62009-11-15 23:12:43 +000029265 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 +000029266if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029267 passed=`expr $passed + 1`
29268else
29269 failed=`expr $failed + 1`
29270fi
29271
29272
cristy8b350f62009-11-15 23:12:43 +000029273 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 +000029274if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029275 passed=`expr $passed + 1`
29276else
29277 failed=`expr $failed + 1`
29278fi
29279
29280
cristy73bd4a52010-10-05 11:24:23 +000029281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29282$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029283if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029284 $as_echo_n "(cached) " >&6
29285else
29286 ac_check_framework_save_LIBS=$LIBS
29287LIBS="-framework Ghostscript $LIBS"
29288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29289/* end confdefs.h. */
29290
29291/* Override any GCC internal prototype to avoid an error.
29292 Use char because int might match the return type of a GCC
29293 builtin and then its argument prototype would still apply. */
29294#ifdef __cplusplus
29295extern "C"
29296#endif
29297char gsapi_new_instance ();
29298int
29299main ()
29300{
29301return gsapi_new_instance ();
29302 ;
29303 return 0;
29304}
29305_ACEOF
29306if ac_fn_c_try_link "$LINENO"; then :
29307 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29308else
29309 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29310fi
29311rm -f core conftest.err conftest.$ac_objext \
29312 conftest$ac_exeext conftest.$ac_ext
29313LIBS=$ac_check_framework_save_LIBS
29314fi
29315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29316$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29317if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29318 framework=`expr $framework + 1`
29319else
29320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029321$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029322if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029323 $as_echo_n "(cached) " >&6
29324else
29325 ac_check_lib_save_LIBS=$LIBS
29326LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029328/* end confdefs.h. */
29329
29330/* Override any GCC internal prototype to avoid an error.
29331 Use char because int might match the return type of a GCC
29332 builtin and then its argument prototype would still apply. */
29333#ifdef __cplusplus
29334extern "C"
29335#endif
29336char gsapi_new_instance ();
29337int
29338main ()
29339{
29340return gsapi_new_instance ();
29341 ;
29342 return 0;
29343}
29344_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029345if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029346 ac_cv_lib_gs_gsapi_new_instance=yes
29347else
cristy8b350f62009-11-15 23:12:43 +000029348 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029349fi
cristy8b350f62009-11-15 23:12:43 +000029350rm -f core conftest.err conftest.$ac_objext \
29351 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029352LIBS=$ac_check_lib_save_LIBS
29353fi
cristy8b350f62009-11-15 23:12:43 +000029354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029355$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029356if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029357 passed=`expr $passed + 1`
29358else
29359 failed=`expr $failed + 1`
29360fi
cristy73bd4a52010-10-05 11:24:23 +000029361
29362fi
cristy8b350f62009-11-15 23:12:43 +000029363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029364$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29365 if test $passed -gt 0; then
29366 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29368$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029369 have_gslib='no (failed tests)'
29370 else
29371 if test $framework -gt 0; then
29372 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029373 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29375$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029376 else
cristyad38abe2012-12-23 23:03:21 +000029377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29378$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029379 GS_LIBS='-lgs'
29380 fi
29381 LIBS="$GS_LIBS $LIBS"
29382
cristy8b350f62009-11-15 23:12:43 +000029383$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029384
29385 have_gslib='yes'
29386 fi
29387 else
cristyad38abe2012-12-23 23:03:21 +000029388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29389$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029390 fi
29391fi
cristy73bd4a52010-10-05 11:24:23 +000029392 if test "$have_gslib" = 'yes'; then
29393 GS_DELEGATE_TRUE=
29394 GS_DELEGATE_FALSE='#'
29395else
29396 GS_DELEGATE_TRUE='#'
29397 GS_DELEGATE_FALSE=
29398fi
29399
cristy3ed852e2009-09-05 21:47:34 +000029400
29401
29402# Set default font search path
29403
29404# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029405if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029406 withval=$with_fontpath; with_fontpath=$withval
29407else
29408 with_fontpath=''
29409fi
29410
29411
29412if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29413 with_fontpath=''
29414else
29415
29416cat >>confdefs.h <<_ACEOF
29417#define MAGICK_FONT_PATH "$with_fontpath"
29418_ACEOF
29419
29420fi
29421if test "$with_fontpath=" != ''; then
29422 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29423fi
29424
29425# Set Ghostscript font directory
29426
29427# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029428if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029429 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29430else
29431 with_gs_font_dir='default'
29432fi
29433
29434
29435if test "$with_gs_font_dir" != 'default'; then
29436 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29437fi
29438
29439
29440#
29441# Check for GVC delegate library.
29442#
29443
29444# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029445if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029446 withval=$with_gvc; with_gvc=$withval
29447else
cristy1b70dc82012-07-01 23:15:05 +000029448 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029449fi
29450
29451
29452if test "$with_gvc" != 'yes'; then
29453 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29454fi
29455
29456GVC_PKG=""
29457if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29459$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029460
29461pkg_failed=no
29462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29463$as_echo_n "checking for GVC... " >&6; }
29464
29465if test -n "$GVC_CFLAGS"; then
29466 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29467 elif test -n "$PKG_CONFIG"; then
29468 if test -n "$PKG_CONFIG" && \
29469 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29470 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29471 ac_status=$?
29472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29473 test $ac_status = 0; }; then
29474 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29475else
29476 pkg_failed=yes
29477fi
29478 else
29479 pkg_failed=untried
29480fi
29481if test -n "$GVC_LIBS"; then
29482 pkg_cv_GVC_LIBS="$GVC_LIBS"
29483 elif test -n "$PKG_CONFIG"; then
29484 if test -n "$PKG_CONFIG" && \
29485 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29486 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29487 ac_status=$?
29488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29489 test $ac_status = 0; }; then
29490 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29491else
29492 pkg_failed=yes
29493fi
29494 else
29495 pkg_failed=untried
29496fi
29497
29498
29499
29500if test $pkg_failed = yes; then
29501
29502if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29503 _pkg_short_errors_supported=yes
29504else
29505 _pkg_short_errors_supported=no
29506fi
29507 if test $_pkg_short_errors_supported = yes; then
29508 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29509 else
29510 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29511 fi
29512 # Put the nasty error message in config.log where it belongs
29513 echo "$GVC_PKG_ERRORS" >&5
29514
29515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29516$as_echo "no" >&6; }
29517 have_gvc=no
29518elif test $pkg_failed = untried; then
29519 have_gvc=no
29520else
29521 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29522 GVC_LIBS=$pkg_cv_GVC_LIBS
29523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29524$as_echo "yes" >&6; }
29525 have_gvc=yes
29526fi
cristyad38abe2012-12-23 23:03:21 +000029527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29528$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029529fi
29530
29531if test "$have_gvc" = 'yes'; then
29532
cristy8b350f62009-11-15 23:12:43 +000029533$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029534
cristyc6722092012-10-14 00:19:31 +000029535 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029536 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29537 fi
29538fi
29539
cristy73bd4a52010-10-05 11:24:23 +000029540 if test "$have_gvc" = 'yes'; then
29541 GVC_DELEGATE_TRUE=
29542 GVC_DELEGATE_FALSE='#'
29543else
29544 GVC_DELEGATE_TRUE='#'
29545 GVC_DELEGATE_FALSE=
29546fi
29547
cristy3ed852e2009-09-05 21:47:34 +000029548
29549
29550
29551
29552#
29553# Check for JBIG delegate library.
29554#
29555
29556
29557# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029558if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029559 withval=$with_jbig; with_jbig=$withval
29560else
29561 with_jbig='yes'
29562fi
29563
29564
29565have_jbig='no'
29566JBIG_LIBS=''
29567if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29569$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029571$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29573$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029574 failed=0
29575 passed=0
cristy8b350f62009-11-15 23:12:43 +000029576 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029577if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029578 passed=`expr $passed + 1`
29579else
29580 failed=`expr $failed + 1`
29581fi
29582
29583
cristy8b350f62009-11-15 23:12:43 +000029584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029585$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029586if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029587 $as_echo_n "(cached) " >&6
29588else
29589 ac_check_lib_save_LIBS=$LIBS
29590LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029592/* end confdefs.h. */
29593
29594/* Override any GCC internal prototype to avoid an error.
29595 Use char because int might match the return type of a GCC
29596 builtin and then its argument prototype would still apply. */
29597#ifdef __cplusplus
29598extern "C"
29599#endif
29600char jbg_dec_init ();
29601int
29602main ()
29603{
29604return jbg_dec_init ();
29605 ;
29606 return 0;
29607}
29608_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029609if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029610 ac_cv_lib_jbig_jbg_dec_init=yes
29611else
cristy8b350f62009-11-15 23:12:43 +000029612 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029613fi
cristy8b350f62009-11-15 23:12:43 +000029614rm -f core conftest.err conftest.$ac_objext \
29615 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029616LIBS=$ac_check_lib_save_LIBS
29617fi
cristy8b350f62009-11-15 23:12:43 +000029618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029619$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029620if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029621 passed=`expr $passed + 1`
29622else
29623 failed=`expr $failed + 1`
29624fi
29625
cristy8b350f62009-11-15 23:12:43 +000029626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029627$as_echo_n "checking if JBIG package is complete... " >&6; }
29628 if test $passed -gt 0; then
29629 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29631$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029632 have_jbig='no (failed tests)'
29633 else
29634 JBIG_LIBS='-ljbig'
29635 LIBS="$JBIG_LIBS $LIBS"
29636
cristy8b350f62009-11-15 23:12:43 +000029637$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029638
cristyad38abe2012-12-23 23:03:21 +000029639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29640$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029641 have_jbig='yes'
29642 fi
29643 else
cristyad38abe2012-12-23 23:03:21 +000029644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29645$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029646 fi
29647fi
cristy73bd4a52010-10-05 11:24:23 +000029648 if test "$have_jbig" = 'yes'; then
29649 JBIG_DELEGATE_TRUE=
29650 JBIG_DELEGATE_FALSE='#'
29651else
29652 JBIG_DELEGATE_TRUE='#'
29653 JBIG_DELEGATE_FALSE=
29654fi
29655
cristy3ed852e2009-09-05 21:47:34 +000029656
29657
29658
29659#
29660# Check for JPEG delegate library.
29661#
29662
29663# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029664if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029665 withval=$with_jpeg; with_jpeg=$withval
29666else
29667 with_jpeg='yes'
29668fi
29669
29670
29671if test "$with_jpeg" != 'yes'; then
29672 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29673fi
29674
29675have_jpeg='no'
29676JPEG_LIBS=''
29677if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29679$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029681$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29683$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029684 failed=0
29685 passed=0
cristy8b350f62009-11-15 23:12:43 +000029686 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029687if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029688 passed=`expr $passed + 1`
29689else
29690 failed=`expr $failed + 1`
29691fi
29692
29693
cristy8b350f62009-11-15 23:12:43 +000029694 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029695if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029696 passed=`expr $passed + 1`
29697else
29698 failed=`expr $failed + 1`
29699fi
29700
29701
cristy8b350f62009-11-15 23:12:43 +000029702 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029703if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029704 passed=`expr $passed + 1`
29705else
29706 failed=`expr $failed + 1`
29707fi
29708
29709
cristy8b350f62009-11-15 23:12:43 +000029710 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029711if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029712 passed=`expr $passed + 1`
29713else
29714 failed=`expr $failed + 1`
29715fi
29716
29717
cristy8b350f62009-11-15 23:12:43 +000029718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029719$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029720if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029721 $as_echo_n "(cached) " >&6
29722else
29723 ac_check_lib_save_LIBS=$LIBS
29724LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029726/* end confdefs.h. */
29727
29728/* Override any GCC internal prototype to avoid an error.
29729 Use char because int might match the return type of a GCC
29730 builtin and then its argument prototype would still apply. */
29731#ifdef __cplusplus
29732extern "C"
29733#endif
29734char jpeg_read_header ();
29735int
29736main ()
29737{
29738return jpeg_read_header ();
29739 ;
29740 return 0;
29741}
29742_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029743if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029744 ac_cv_lib_jpeg_jpeg_read_header=yes
29745else
cristy8b350f62009-11-15 23:12:43 +000029746 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029747fi
cristy8b350f62009-11-15 23:12:43 +000029748rm -f core conftest.err conftest.$ac_objext \
29749 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029750LIBS=$ac_check_lib_save_LIBS
29751fi
cristy8b350f62009-11-15 23:12:43 +000029752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029753$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029754if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029755 passed=`expr $passed + 1`
29756else
29757 failed=`expr $failed + 1`
29758fi
29759
29760
29761# Test for compatible JPEG library
29762if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029764$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029765if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029766 $as_echo_n "(cached) " >&6
29767else
cristy8b350f62009-11-15 23:12:43 +000029768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029769/* end confdefs.h. */
29770#include <stdio.h>
29771#include <stdlib.h>
29772#include <jpeglib.h>
29773
29774int
29775main ()
29776{
29777
29778#if JPEG_LIB_VERSION < 62
29779#error IJG JPEG library must be version 6b or newer!
29780#endif
29781return 0;
29782
29783 ;
29784 return 0;
29785}
29786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029787if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029788 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29789else
cristy8b350f62009-11-15 23:12:43 +000029790 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029791fi
cristy3ed852e2009-09-05 21:47:34 +000029792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29793fi
cristy8b350f62009-11-15 23:12:43 +000029794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029795$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29796fi
cristy8b350f62009-11-15 23:12:43 +000029797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029798$as_echo_n "checking if JPEG package is complete... " >&6; }
29799 if test $passed -gt 0; then
29800 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29802$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029803 have_jpeg='no (failed tests)'
29804 else
29805 JPEG_LIBS='-ljpeg'
29806 LIBS="$JPEG_LIBS $LIBS"
29807
cristy8b350f62009-11-15 23:12:43 +000029808$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029809
cristyad38abe2012-12-23 23:03:21 +000029810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29811$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029812 have_jpeg='yes'
29813 fi
29814 else
cristyad38abe2012-12-23 23:03:21 +000029815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29816$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029817 fi
29818fi
cristy73bd4a52010-10-05 11:24:23 +000029819 if test "$have_jpeg" = 'yes'; then
29820 JPEG_DELEGATE_TRUE=
29821 JPEG_DELEGATE_FALSE='#'
29822else
29823 JPEG_DELEGATE_TRUE='#'
29824 JPEG_DELEGATE_FALSE=
29825fi
29826
cristy3ed852e2009-09-05 21:47:34 +000029827
29828
29829
29830#
cristy3ed852e2009-09-05 21:47:34 +000029831# Check for LCMS delegate library.
29832#
cristy71203402010-06-18 13:12:03 +000029833# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029834
29835# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029836if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029837 withval=$with_lcms; with_lcms=$withval
29838else
29839 with_lcms='yes'
29840fi
29841
cristy71203402010-06-18 13:12:03 +000029842if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029843 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29844fi
29845
cristy71203402010-06-18 13:12:03 +000029846# Disable LCMS2.
29847
29848# Check whether --with-lcms2 was given.
29849if test "${with_lcms2+set}" = set; then :
29850 withval=$with_lcms2; with_lcms2=$withval
29851else
29852 with_lcms2='yes'
29853fi
29854
29855if test "$with_lcms2" != 'yes' ; then
29856 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29857fi
29858
29859have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029860LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029861if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29863$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29865$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29867$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029868 failed=0
29869 passed=0
29870 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029871
29872 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029873 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029874if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029875 have_lcms_header='yes'
29876fi
29877
29878
29879 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029880
29881$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29882
cristy71203402010-06-18 13:12:03 +000029883 passed=`expr $passed + 1`
29884 fi
29885
29886 # Check for <lcms2/lcms2.h)
29887 if test "$have_lcms_header" != 'yes'; then
29888 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 +000029889if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029890 have_lcms_header='yes'
29891fi
29892
29893
cristy71203402010-06-18 13:12:03 +000029894 if test "$have_lcms_header" = 'yes'; then
29895 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029896
cristy71203402010-06-18 13:12:03 +000029897$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029898
cristy71203402010-06-18 13:12:03 +000029899 fi
cristyd09bcf92010-03-25 03:04:45 +000029900 fi
cristy71203402010-06-18 13:12:03 +000029901
29902 # Failed to find lcms header?
29903 if test "$have_lcms_header" != 'yes'; then
29904 failed=`expr $failed + 1`
29905 fi
29906
29907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29908$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029909if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029910 $as_echo_n "(cached) " >&6
29911else
29912 ac_check_lib_save_LIBS=$LIBS
29913LIBS="-llcms2 $LIBS"
29914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29915/* end confdefs.h. */
29916
29917/* Override any GCC internal prototype to avoid an error.
29918 Use char because int might match the return type of a GCC
29919 builtin and then its argument prototype would still apply. */
29920#ifdef __cplusplus
29921extern "C"
29922#endif
cristy71203402010-06-18 13:12:03 +000029923char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029924int
29925main ()
29926{
cristy71203402010-06-18 13:12:03 +000029927return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029928 ;
29929 return 0;
29930}
29931_ACEOF
29932if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029933 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029934else
cristy71203402010-06-18 13:12:03 +000029935 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029936fi
29937rm -f core conftest.err conftest.$ac_objext \
29938 conftest$ac_exeext conftest.$ac_ext
29939LIBS=$ac_check_lib_save_LIBS
29940fi
cristy71203402010-06-18 13:12:03 +000029941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29942$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029943if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029944 passed=`expr $passed + 1`
29945else
29946 failed=`expr $failed + 1`
29947fi
29948
cristy71203402010-06-18 13:12:03 +000029949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29950$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029951 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029952 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29954$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029955 have_lcms2='no (failed tests)'
29956 else
29957 LCMS_LIBS='-llcms2'
29958 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29960$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029961 have_lcms2='yes'
29962 fi
cristyd09bcf92010-03-25 03:04:45 +000029963 else
cristyad38abe2012-12-23 23:03:21 +000029964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29965$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029966 fi
29967fi
29968
cristy71203402010-06-18 13:12:03 +000029969#
29970# Check for LCMS v1 (1.11 or later)
29971#
29972if test $have_lcms2 = 'yes'; then
29973 with_lcms='no'
29974fi
29975
29976have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029977if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29979$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29981$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29983$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029984 failed=0
29985 passed=0
29986 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029987
29988 # Check for <lcms.h>
29989 if test "$have_lcms_header" != 'yes'; then
29990 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029991if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029992 have_lcms_header='yes'
29993fi
29994
29995
cristy71203402010-06-18 13:12:03 +000029996 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029997 passed=`expr $passed + 1`
29998
cristy8b350f62009-11-15 23:12:43 +000029999$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030000
cristy71203402010-06-18 13:12:03 +000030001 fi
30002 fi
30003
30004 # Check for <lcms/lcms.h>
30005 if test "$have_lcms_header" != 'yes'; then
30006 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 +000030007if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030008 have_lcms_header='yes'
30009fi
30010
30011
cristy71203402010-06-18 13:12:03 +000030012 if test "$have_lcms_header" = 'yes'; then
30013 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030014
cristy8b350f62009-11-15 23:12:43 +000030015$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030016
cristy71203402010-06-18 13:12:03 +000030017 fi
cristy3ed852e2009-09-05 21:47:34 +000030018 fi
cristy71203402010-06-18 13:12:03 +000030019
30020 # Failed to find lcms header?
30021 if test "$have_lcms_header" != 'yes'; then
30022 failed=`expr $failed + 1`
30023 fi
30024
30025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30026$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030027if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030028 $as_echo_n "(cached) " >&6
30029else
30030 ac_check_lib_save_LIBS=$LIBS
30031LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030033/* end confdefs.h. */
30034
30035/* Override any GCC internal prototype to avoid an error.
30036 Use char because int might match the return type of a GCC
30037 builtin and then its argument prototype would still apply. */
30038#ifdef __cplusplus
30039extern "C"
30040#endif
cristy71203402010-06-18 13:12:03 +000030041char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030042int
30043main ()
30044{
cristy71203402010-06-18 13:12:03 +000030045return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030046 ;
30047 return 0;
30048}
30049_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030050if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030051 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030052else
cristy71203402010-06-18 13:12:03 +000030053 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030054fi
cristy8b350f62009-11-15 23:12:43 +000030055rm -f core conftest.err conftest.$ac_objext \
30056 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030057LIBS=$ac_check_lib_save_LIBS
30058fi
cristy71203402010-06-18 13:12:03 +000030059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30060$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030061if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030062 passed=`expr $passed + 1`
30063else
30064 failed=`expr $failed + 1`
30065fi
30066
cristy8b350f62009-11-15 23:12:43 +000030067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030068$as_echo_n "checking if LCMS package is complete... " >&6; }
30069 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030070 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30072$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030073 have_lcms='no (failed tests)'
30074 else
30075 LCMS_LIBS='-llcms'
30076 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30078$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030079 have_lcms='yes'
30080 fi
cristy3ed852e2009-09-05 21:47:34 +000030081 else
cristyad38abe2012-12-23 23:03:21 +000030082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30083$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030084 fi
30085fi
cristy71203402010-06-18 13:12:03 +000030086
cristy73bd4a52010-10-05 11:24:23 +000030087 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30088 LCMS_DELEGATE_TRUE=
30089 LCMS_DELEGATE_FALSE='#'
30090else
30091 LCMS_DELEGATE_TRUE='#'
30092 LCMS_DELEGATE_FALSE=
30093fi
30094
cristy71203402010-06-18 13:12:03 +000030095if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30096
30097$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30098
30099fi
30100
cristy3ed852e2009-09-05 21:47:34 +000030101
30102
30103
30104#
cristy99db3872014-01-01 15:11:34 +000030105# Check for the OpenJP2 delegate library.
30106#
30107
30108# Check whether --with-openjp2 was given.
30109if test "${with_openjp2+set}" = set; then :
30110 withval=$with_openjp2; with_openjp2=$withval
30111else
30112 with_openjp2='yes'
30113fi
30114
30115
30116if test "$with_openjp2" != 'yes'; then
30117 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30118fi
30119
30120have_openjp2='no'
30121LIBOPENJP2_CFLAGS=""
30122LIBOPENJP2_LIBS=""
30123LIBOPENJP2_PKG=""
30124if test "x$with_openjp2" = "xyes"; then
30125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30126$as_echo "-------------------------------------------------------------" >&6; }
30127
30128pkg_failed=no
30129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30130$as_echo_n "checking for LIBOPENJP2... " >&6; }
30131
30132if test -n "$LIBOPENJP2_CFLAGS"; then
30133 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30134 elif test -n "$PKG_CONFIG"; then
30135 if test -n "$PKG_CONFIG" && \
30136 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.0.0\""; } >&5
30137 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.0.0") 2>&5
30138 ac_status=$?
30139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30140 test $ac_status = 0; }; then
30141 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.0.0" 2>/dev/null`
30142else
30143 pkg_failed=yes
30144fi
30145 else
30146 pkg_failed=untried
30147fi
30148if test -n "$LIBOPENJP2_LIBS"; then
30149 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30150 elif test -n "$PKG_CONFIG"; then
30151 if test -n "$PKG_CONFIG" && \
30152 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.0.0\""; } >&5
30153 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.0.0") 2>&5
30154 ac_status=$?
30155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30156 test $ac_status = 0; }; then
30157 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.0.0" 2>/dev/null`
30158else
30159 pkg_failed=yes
30160fi
30161 else
30162 pkg_failed=untried
30163fi
30164
30165
30166
30167if test $pkg_failed = yes; then
30168
30169if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30170 _pkg_short_errors_supported=yes
30171else
30172 _pkg_short_errors_supported=no
30173fi
30174 if test $_pkg_short_errors_supported = yes; then
30175 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopenjp2 >= 2.0.0" 2>&1`
30176 else
30177 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopenjp2 >= 2.0.0" 2>&1`
30178 fi
30179 # Put the nasty error message in config.log where it belongs
30180 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30181
30182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30183$as_echo "no" >&6; }
30184 have_openjp2=no
30185elif test $pkg_failed = untried; then
30186 have_openjp2=no
30187else
30188 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30189 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30191$as_echo "yes" >&6; }
30192 have_openjp2=yes
30193fi
30194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30195$as_echo "" >&6; }
30196fi
30197
30198if test "$have_openjp2" = 'yes'; then
30199
30200$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30201
30202 if test "$build_modules" = 'no'; then
30203 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30204 fi
30205fi
30206
30207 if test "$have_openjp2" = 'yes'; then
30208 LIBOPENJP2_DELEGATE_TRUE=
30209 LIBOPENJP2_DELEGATE_FALSE='#'
30210else
30211 LIBOPENJP2_DELEGATE_TRUE='#'
30212 LIBOPENJP2_DELEGATE_FALSE=
30213fi
30214
30215
30216
30217
30218
30219
30220#
cristy3ed852e2009-09-05 21:47:34 +000030221# Check for the LQR (Liquid Rescale) delegate library.
30222#
30223
30224# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030225if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030226 withval=$with_lqr; with_lqr=$withval
30227else
30228 with_lqr='yes'
30229fi
30230
30231
30232if test "$with_lqr" != 'yes'; then
30233 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30234fi
30235
30236have_lqr='no'
30237LQR_CFLAGS=""
30238LQR_LIBS=""
30239LQR_PKG=""
30240if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30242$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030243
30244pkg_failed=no
30245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30246$as_echo_n "checking for LQR... " >&6; }
30247
30248if test -n "$LQR_CFLAGS"; then
30249 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30250 elif test -n "$PKG_CONFIG"; then
30251 if test -n "$PKG_CONFIG" && \
30252 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30253 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30254 ac_status=$?
30255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30256 test $ac_status = 0; }; then
30257 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30258else
30259 pkg_failed=yes
30260fi
30261 else
30262 pkg_failed=untried
30263fi
30264if test -n "$LQR_LIBS"; then
30265 pkg_cv_LQR_LIBS="$LQR_LIBS"
30266 elif test -n "$PKG_CONFIG"; then
30267 if test -n "$PKG_CONFIG" && \
30268 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30269 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30270 ac_status=$?
30271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30272 test $ac_status = 0; }; then
30273 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30274else
30275 pkg_failed=yes
30276fi
30277 else
30278 pkg_failed=untried
30279fi
30280
30281
30282
30283if test $pkg_failed = yes; then
30284
30285if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30286 _pkg_short_errors_supported=yes
30287else
30288 _pkg_short_errors_supported=no
30289fi
30290 if test $_pkg_short_errors_supported = yes; then
30291 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30292 else
30293 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30294 fi
30295 # Put the nasty error message in config.log where it belongs
30296 echo "$LQR_PKG_ERRORS" >&5
30297
30298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30299$as_echo "no" >&6; }
30300 have_lqr=no
30301elif test $pkg_failed = untried; then
30302 have_lqr=no
30303else
30304 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30305 LQR_LIBS=$pkg_cv_LQR_LIBS
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30307$as_echo "yes" >&6; }
30308 have_lqr=yes
30309fi
cristyad38abe2012-12-23 23:03:21 +000030310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30311$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030312fi
30313
30314if test "$have_lqr" = 'yes'; then
30315
cristy8b350f62009-11-15 23:12:43 +000030316$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030317
30318 CFLAGS="$LQR_CFLAGS $CFLAGS"
30319fi
30320
cristy73bd4a52010-10-05 11:24:23 +000030321 if test "$have_lqr" = 'yes'; then
30322 LQR_DELEGATE_TRUE=
30323 LQR_DELEGATE_FALSE='#'
30324else
30325 LQR_DELEGATE_TRUE='#'
30326 LQR_DELEGATE_FALSE=
30327fi
30328
cristy3ed852e2009-09-05 21:47:34 +000030329
30330
30331
30332
cristy81beccd2011-10-03 18:17:24 +000030333# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030334
30335# Check whether --with-lzma was given.
30336if test "${with_lzma+set}" = set; then :
30337 withval=$with_lzma; with_lzma=$withval
30338else
30339 with_lzma='yes'
30340fi
30341
cristy81beccd2011-10-03 18:17:24 +000030342if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030343 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30344fi
30345
cristyb94e5002011-11-14 13:20:10 +000030346LZMA_PKG=""
30347if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30349$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030350
30351pkg_failed=no
30352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030353$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030354
30355if test -n "$LZMA_CFLAGS"; then
30356 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30357 elif test -n "$PKG_CONFIG"; then
30358 if test -n "$PKG_CONFIG" && \
30359 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30360 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30361 ac_status=$?
30362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30363 test $ac_status = 0; }; then
30364 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30365else
30366 pkg_failed=yes
30367fi
30368 else
30369 pkg_failed=untried
30370fi
30371if test -n "$LZMA_LIBS"; then
30372 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30373 elif test -n "$PKG_CONFIG"; then
30374 if test -n "$PKG_CONFIG" && \
30375 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30376 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30377 ac_status=$?
30378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30379 test $ac_status = 0; }; then
30380 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30381else
30382 pkg_failed=yes
30383fi
30384 else
30385 pkg_failed=untried
30386fi
30387
30388
30389
30390if test $pkg_failed = yes; then
30391
30392if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30393 _pkg_short_errors_supported=yes
30394else
30395 _pkg_short_errors_supported=no
30396fi
30397 if test $_pkg_short_errors_supported = yes; then
30398 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30399 else
30400 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30401 fi
30402 # Put the nasty error message in config.log where it belongs
30403 echo "$LZMA_PKG_ERRORS" >&5
30404
30405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30406$as_echo "no" >&6; }
30407 have_lzma=no
30408elif test $pkg_failed = untried; then
30409 have_lzma=no
30410else
30411 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30412 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30414$as_echo "yes" >&6; }
30415 have_lzma=yes
30416fi
cristyad38abe2012-12-23 23:03:21 +000030417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30418$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030419fi
30420
cristyb94e5002011-11-14 13:20:10 +000030421if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030422
30423$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30424
cristyc6722092012-10-14 00:19:31 +000030425 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030426 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030427 fi
cristyfbb0ef02010-12-19 02:32:11 +000030428fi
cristyb94e5002011-11-14 13:20:10 +000030429
cristyfbb0ef02010-12-19 02:32:11 +000030430 if test "$have_lzma" = 'yes'; then
30431 LZMA_DELEGATE_TRUE=
30432 LZMA_DELEGATE_FALSE='#'
30433else
30434 LZMA_DELEGATE_TRUE='#'
30435 LZMA_DELEGATE_FALSE=
30436fi
30437
30438
30439
30440
cristyb94e5002011-11-14 13:20:10 +000030441
cristy3ed852e2009-09-05 21:47:34 +000030442#
cristy854c9cf2013-08-10 21:03:06 +000030443# Check for MUPDF delegate library.
30444#
30445
30446# Check whether --with-mupdf was given.
30447if test "${with_mupdf+set}" = set; then :
30448 withval=$with_mupdf; with_mupdf=$withval
30449else
30450 with_mupdf='no'
30451fi
30452
30453
30454if test "$with_mupdf" != 'yes'; then
30455 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-mupdf=$with_mupdf "
30456fi
30457
30458have_mupdf='no'
30459MUPDF_LIBS=''
30460if test "$with_mupdf" != 'no'; then
30461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30462$as_echo "-------------------------------------------------------------" >&6; }
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MUPDF" >&5
30464$as_echo_n "checking for MUPDF... " >&6; }
30465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30466$as_echo "" >&6; }
30467 failed=0
30468 passed=0
30469 ac_fn_c_check_header_mongrel "$LINENO" "mupdf/fitz.h" "ac_cv_header_mupdf_fitz_h" "$ac_includes_default"
30470if test "x$ac_cv_header_mupdf_fitz_h" = xyes; then :
30471 passed=`expr $passed + 1`
30472else
30473 failed=`expr $failed + 1`
30474fi
30475
30476
30477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fz_new_context in -lmupdf" >&5
30478$as_echo_n "checking for fz_new_context in -lmupdf... " >&6; }
30479if ${ac_cv_lib_mupdf_fz_new_context+:} false; then :
30480 $as_echo_n "(cached) " >&6
30481else
30482 ac_check_lib_save_LIBS=$LIBS
30483LIBS="-lmupdf -lmupdf $FREETYPE_LIBS $LIBS"
30484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30485/* end confdefs.h. */
30486
30487/* Override any GCC internal prototype to avoid an error.
30488 Use char because int might match the return type of a GCC
30489 builtin and then its argument prototype would still apply. */
30490#ifdef __cplusplus
30491extern "C"
30492#endif
30493char fz_new_context ();
30494int
30495main ()
30496{
30497return fz_new_context ();
30498 ;
30499 return 0;
30500}
30501_ACEOF
30502if ac_fn_c_try_link "$LINENO"; then :
30503 ac_cv_lib_mupdf_fz_new_context=yes
30504else
30505 ac_cv_lib_mupdf_fz_new_context=no
30506fi
30507rm -f core conftest.err conftest.$ac_objext \
30508 conftest$ac_exeext conftest.$ac_ext
30509LIBS=$ac_check_lib_save_LIBS
30510fi
30511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mupdf_fz_new_context" >&5
30512$as_echo "$ac_cv_lib_mupdf_fz_new_context" >&6; }
30513if test "x$ac_cv_lib_mupdf_fz_new_context" = xyes; then :
30514 passed=`expr $passed + 1`
30515else
30516 failed=`expr $failed + 1`
30517fi
30518
30519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MUPDF package is complete" >&5
30520$as_echo_n "checking if MUPDF package is complete... " >&6; }
30521 if test $passed -gt 0; then
30522 if test $failed -gt 0; then
30523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30524$as_echo "no -- some components failed test" >&6; }
30525 have_mupdf='no (failed tests)'
30526 else
30527 MUPDF_LIBS='-lmupdf'
30528 LIBS="$MUPDF_LIBS $LIBS"
30529
30530$as_echo "#define MUPDF_DELEGATE 1" >>confdefs.h
30531
30532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30533$as_echo "yes" >&6; }
30534 have_mupdf='yes'
30535 fi
30536 else
30537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30538$as_echo "no" >&6; }
30539 fi
30540fi
30541 if test "$have_mupdf" = 'yes'; then
30542 MUPDF_DELEGATE_TRUE=
30543 MUPDF_DELEGATE_FALSE='#'
30544else
30545 MUPDF_DELEGATE_TRUE='#'
30546 MUPDF_DELEGATE_FALSE=
30547fi
30548
30549
30550
30551
30552#
cristy3ed852e2009-09-05 21:47:34 +000030553# Check for the OpenEXR delegate library.
30554#
30555
30556# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030557if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030558 withval=$with_openexr; with_openexr=$withval
30559else
30560 with_openexr='yes'
30561fi
30562
30563
30564if test "$with_openexr" != 'yes'; then
30565 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30566fi
30567
30568have_openexr='no'
30569OPENEXR_CFLAGS=""
30570OPENEXR_LIBS=""
30571OPENEXR_PKG=""
30572if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30574$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030575
30576pkg_failed=no
30577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30578$as_echo_n "checking for OPENEXR... " >&6; }
30579
30580if test -n "$OPENEXR_CFLAGS"; then
30581 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30582 elif test -n "$PKG_CONFIG"; then
30583 if test -n "$PKG_CONFIG" && \
30584 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30585 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30586 ac_status=$?
30587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30588 test $ac_status = 0; }; then
30589 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30590else
30591 pkg_failed=yes
30592fi
30593 else
30594 pkg_failed=untried
30595fi
30596if test -n "$OPENEXR_LIBS"; then
30597 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30598 elif test -n "$PKG_CONFIG"; then
30599 if test -n "$PKG_CONFIG" && \
30600 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30601 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30602 ac_status=$?
30603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30604 test $ac_status = 0; }; then
30605 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30606else
30607 pkg_failed=yes
30608fi
30609 else
30610 pkg_failed=untried
30611fi
30612
30613
30614
30615if test $pkg_failed = yes; then
30616
30617if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30618 _pkg_short_errors_supported=yes
30619else
30620 _pkg_short_errors_supported=no
30621fi
30622 if test $_pkg_short_errors_supported = yes; then
30623 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30624 else
30625 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30626 fi
30627 # Put the nasty error message in config.log where it belongs
30628 echo "$OPENEXR_PKG_ERRORS" >&5
30629
30630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30631$as_echo "no" >&6; }
30632 have_openexr=no
30633elif test $pkg_failed = untried; then
30634 have_openexr=no
30635else
30636 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30637 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30639$as_echo "yes" >&6; }
30640 have_openexr=yes
30641fi
cristyad38abe2012-12-23 23:03:21 +000030642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30643$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030644fi
30645
30646if test "$have_openexr" = 'yes'; then
30647
cristy8b350f62009-11-15 23:12:43 +000030648$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030649
cristyc6722092012-10-14 00:19:31 +000030650 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030651 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30652 fi
30653fi
30654
cristy73bd4a52010-10-05 11:24:23 +000030655 if test "$have_openexr" = 'yes'; then
30656 OPENEXR_DELEGATE_TRUE=
30657 OPENEXR_DELEGATE_FALSE='#'
30658else
30659 OPENEXR_DELEGATE_TRUE='#'
30660 OPENEXR_DELEGATE_FALSE=
30661fi
30662
cristy3ed852e2009-09-05 21:47:34 +000030663
30664
30665
30666
30667#
cristy41cbe8a2011-10-27 01:35:18 +000030668# Check for PANGO delegate library.
30669#
30670
30671# Check whether --with-pango was given.
30672if test "${with_pango+set}" = set; then :
30673 withval=$with_pango; with_pango=$withval
30674else
cristyfc3d0222012-02-07 15:05:57 +000030675 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030676fi
30677
30678
30679if test "$with_pango" != 'yes'; then
30680 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30681fi
30682
30683have_pango='no'
cristya054b762012-03-26 23:16:00 +000030684have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030685PANGO_CFLAGS=""
30686PANGO_LIBS=""
30687PANGO_PKG=""
30688if test "x$with_pango" = "xyes"; then
30689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30690$as_echo "-------------------------------------------------------------" >&6; }
30691
30692pkg_failed=no
30693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30694$as_echo_n "checking for PANGO... " >&6; }
30695
30696if test -n "$PANGO_CFLAGS"; then
30697 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30698 elif test -n "$PKG_CONFIG"; then
30699 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030700 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30701 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030702 ac_status=$?
30703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30704 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030705 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030706else
30707 pkg_failed=yes
30708fi
30709 else
30710 pkg_failed=untried
30711fi
30712if test -n "$PANGO_LIBS"; then
30713 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30714 elif test -n "$PKG_CONFIG"; then
30715 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030716 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30717 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030718 ac_status=$?
30719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30720 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030721 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030722else
30723 pkg_failed=yes
30724fi
30725 else
30726 pkg_failed=untried
30727fi
30728
30729
30730
30731if test $pkg_failed = yes; then
30732
30733if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30734 _pkg_short_errors_supported=yes
30735else
30736 _pkg_short_errors_supported=no
30737fi
30738 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030739 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030740 else
cristya054b762012-03-26 23:16:00 +000030741 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030742 fi
30743 # Put the nasty error message in config.log where it belongs
30744 echo "$PANGO_PKG_ERRORS" >&5
30745
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30747$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030748 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030749elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030750 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030751else
30752 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30753 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30755$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030756 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030757fi
30758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30759$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030760
30761pkg_failed=no
30762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30763$as_echo_n "checking for PANGO... " >&6; }
30764
30765if test -n "$PANGO_CFLAGS"; then
30766 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30767 elif test -n "$PKG_CONFIG"; then
30768 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030769 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30770 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030771 ac_status=$?
30772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30773 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030774 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030775else
30776 pkg_failed=yes
30777fi
30778 else
30779 pkg_failed=untried
30780fi
30781if test -n "$PANGO_LIBS"; then
30782 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30783 elif test -n "$PKG_CONFIG"; then
30784 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030785 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30786 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030787 ac_status=$?
30788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30789 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030790 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030791else
30792 pkg_failed=yes
30793fi
30794 else
30795 pkg_failed=untried
30796fi
30797
30798
30799
30800if test $pkg_failed = yes; then
30801
30802if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30803 _pkg_short_errors_supported=yes
30804else
30805 _pkg_short_errors_supported=no
30806fi
30807 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030808 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030809 else
cristy2542fc62011-12-06 17:50:25 +000030810 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030811 fi
30812 # Put the nasty error message in config.log where it belongs
30813 echo "$PANGO_PKG_ERRORS" >&5
30814
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30816$as_echo "no" >&6; }
30817 have_pango=no
30818elif test $pkg_failed = untried; then
30819 have_pango=no
30820else
30821 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30822 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30824$as_echo "yes" >&6; }
30825 have_pango=yes
30826fi
30827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30828$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030829fi
30830
30831if test "$have_pango" = 'yes'; then
30832
30833$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30834
cristyc6722092012-10-14 00:19:31 +000030835 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030836 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30837 fi
30838fi
30839
cristya054b762012-03-26 23:16:00 +000030840if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030841
cristya054b762012-03-26 23:16:00 +000030842$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030843
cristyc6722092012-10-14 00:19:31 +000030844 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030845 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030846 fi
30847fi
30848
30849 if test "$have_pango" = 'yes'; then
30850 PANGO_DELEGATE_TRUE=
30851 PANGO_DELEGATE_FALSE='#'
30852else
30853 PANGO_DELEGATE_TRUE='#'
30854 PANGO_DELEGATE_FALSE=
30855fi
30856
cristya054b762012-03-26 23:16:00 +000030857 if test "$have_pangocairo" = 'yes'; then
30858 PANGOCAIRO_DELEGATE_TRUE=
30859 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030860else
cristya054b762012-03-26 23:16:00 +000030861 PANGOCAIRO_DELEGATE_TRUE='#'
30862 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030863fi
30864
30865
30866
30867
30868
30869#
cristy3ed852e2009-09-05 21:47:34 +000030870# Check for PNG delegate library.
30871#
30872
30873# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030874if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030875 withval=$with_png; with_png=$withval
30876else
30877 with_png='yes'
30878fi
30879
30880
30881if test "$with_png" != 'yes'; then
30882 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30883fi
30884
cristy81beccd2011-10-03 18:17:24 +000030885have_png='no'
30886PNG_LIBS=''
30887
30888if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30890$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30892$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30894$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030895 failed=0
30896 passed=0
30897 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30898if test "x$ac_cv_header_png_h" = xyes; then :
30899 passed=`expr $passed + 1`
30900else
30901 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030902fi
30903
cristy81beccd2011-10-03 18:17:24 +000030904
30905
30906 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030907 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030908 if test "$have_png" = 'no' ; then
30909 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030910 pnglib='png'
30911 else
30912 pnglib="png1${var}"
30913 fi
30914
30915# Test for compatible LIBPNG library
30916 failed=0
30917 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030918 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030919 if test "${pnglib}" != 'png' ; then
30920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30921$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30923/* end confdefs.h. */
30924#include <stdio.h>
30925#include <stdlib.h>
30926#include <png.h>
30927
30928int
30929main ()
30930{
30931
30932#if PNG_LIBPNG_VER_MINOR != ${var}
30933#error LIBPNG library must be version 1${var}!
30934Kaboom, Kaboom
30935#endif
30936return 0;
30937
30938 ;
30939 return 0;
30940}
30941_ACEOF
30942if ac_fn_c_try_compile "$LINENO"; then :
30943 ac_cv_libpng_ok='yes'
30944else
30945 ac_cv_libpng_ok='no'
30946fi
30947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30948 if test "$ac_cv_libpng_ok" = 'yes' ; then
30949 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30951$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030952 else
30953 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30955$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030956 fi
30957 else
30958 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30960$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030961 fi
30962 fi
30963
30964 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030965 if test "1${var}" = '17' ; then
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30967$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30968if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30969 $as_echo_n "(cached) " >&6
30970else
30971 ac_check_lib_save_LIBS=$LIBS
30972LIBS="-lpng17 $LIBS"
30973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30974/* end confdefs.h. */
30975
30976/* Override any GCC internal prototype to avoid an error.
30977 Use char because int might match the return type of a GCC
30978 builtin and then its argument prototype would still apply. */
30979#ifdef __cplusplus
30980extern "C"
30981#endif
30982char png_get_io_ptr ();
30983int
30984main ()
30985{
30986return png_get_io_ptr ();
30987 ;
30988 return 0;
30989}
30990_ACEOF
30991if ac_fn_c_try_link "$LINENO"; then :
30992 ac_cv_lib_png17_png_get_io_ptr=yes
30993else
30994 ac_cv_lib_png17_png_get_io_ptr=no
30995fi
30996rm -f core conftest.err conftest.$ac_objext \
30997 conftest$ac_exeext conftest.$ac_ext
30998LIBS=$ac_check_lib_save_LIBS
30999fi
31000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
31001$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
31002if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
31003 passed=`expr $passed + 1`
31004else
31005 failed=`expr $failed + 1`
31006fi
31007
31008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
31009$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
31010if ${ac_cv_lib_png17_png_longjmp+:} false; then :
31011 $as_echo_n "(cached) " >&6
31012else
31013 ac_check_lib_save_LIBS=$LIBS
31014LIBS="-lpng17 $LIBS"
31015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31016/* end confdefs.h. */
31017
31018/* Override any GCC internal prototype to avoid an error.
31019 Use char because int might match the return type of a GCC
31020 builtin and then its argument prototype would still apply. */
31021#ifdef __cplusplus
31022extern "C"
31023#endif
31024char png_longjmp ();
31025int
31026main ()
31027{
31028return png_longjmp ();
31029 ;
31030 return 0;
31031}
31032_ACEOF
31033if ac_fn_c_try_link "$LINENO"; then :
31034 ac_cv_lib_png17_png_longjmp=yes
31035else
31036 ac_cv_lib_png17_png_longjmp=no
31037fi
31038rm -f core conftest.err conftest.$ac_objext \
31039 conftest$ac_exeext conftest.$ac_ext
31040LIBS=$ac_check_lib_save_LIBS
31041fi
31042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31043$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31044if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31045 passed=`expr $passed + 1`
31046else
31047 failed=`expr $failed + 1`
31048fi
31049
31050 fi
31051 if test "1${var}" = '16' ; then
31052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31053$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31054if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31055 $as_echo_n "(cached) " >&6
31056else
31057 ac_check_lib_save_LIBS=$LIBS
31058LIBS="-lpng16 $LIBS"
31059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31060/* end confdefs.h. */
31061
31062/* Override any GCC internal prototype to avoid an error.
31063 Use char because int might match the return type of a GCC
31064 builtin and then its argument prototype would still apply. */
31065#ifdef __cplusplus
31066extern "C"
31067#endif
31068char png_get_io_ptr ();
31069int
31070main ()
31071{
31072return png_get_io_ptr ();
31073 ;
31074 return 0;
31075}
31076_ACEOF
31077if ac_fn_c_try_link "$LINENO"; then :
31078 ac_cv_lib_png16_png_get_io_ptr=yes
31079else
31080 ac_cv_lib_png16_png_get_io_ptr=no
31081fi
31082rm -f core conftest.err conftest.$ac_objext \
31083 conftest$ac_exeext conftest.$ac_ext
31084LIBS=$ac_check_lib_save_LIBS
31085fi
31086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31087$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31088if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31089 passed=`expr $passed + 1`
31090else
31091 failed=`expr $failed + 1`
31092fi
31093
31094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31095$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31096if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31097 $as_echo_n "(cached) " >&6
31098else
31099 ac_check_lib_save_LIBS=$LIBS
31100LIBS="-lpng16 $LIBS"
31101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31102/* end confdefs.h. */
31103
31104/* Override any GCC internal prototype to avoid an error.
31105 Use char because int might match the return type of a GCC
31106 builtin and then its argument prototype would still apply. */
31107#ifdef __cplusplus
31108extern "C"
31109#endif
31110char png_longjmp ();
31111int
31112main ()
31113{
31114return png_longjmp ();
31115 ;
31116 return 0;
31117}
31118_ACEOF
31119if ac_fn_c_try_link "$LINENO"; then :
31120 ac_cv_lib_png16_png_longjmp=yes
31121else
31122 ac_cv_lib_png16_png_longjmp=no
31123fi
31124rm -f core conftest.err conftest.$ac_objext \
31125 conftest$ac_exeext conftest.$ac_ext
31126LIBS=$ac_check_lib_save_LIBS
31127fi
31128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31129$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31130if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31131 passed=`expr $passed + 1`
31132else
31133 failed=`expr $failed + 1`
31134fi
31135
31136 fi
cristy81beccd2011-10-03 18:17:24 +000031137 if test "1${var}" = '15' ; then
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31139$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31140if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31141 $as_echo_n "(cached) " >&6
31142else
31143 ac_check_lib_save_LIBS=$LIBS
31144LIBS="-lpng15 $LIBS"
31145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31146/* end confdefs.h. */
31147
31148/* Override any GCC internal prototype to avoid an error.
31149 Use char because int might match the return type of a GCC
31150 builtin and then its argument prototype would still apply. */
31151#ifdef __cplusplus
31152extern "C"
31153#endif
31154char png_get_io_ptr ();
31155int
31156main ()
31157{
31158return png_get_io_ptr ();
31159 ;
31160 return 0;
31161}
31162_ACEOF
31163if ac_fn_c_try_link "$LINENO"; then :
31164 ac_cv_lib_png15_png_get_io_ptr=yes
31165else
31166 ac_cv_lib_png15_png_get_io_ptr=no
31167fi
31168rm -f core conftest.err conftest.$ac_objext \
31169 conftest$ac_exeext conftest.$ac_ext
31170LIBS=$ac_check_lib_save_LIBS
31171fi
31172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31173$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31174if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31175 passed=`expr $passed + 1`
31176else
31177 failed=`expr $failed + 1`
31178fi
31179
31180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31181$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31182if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31183 $as_echo_n "(cached) " >&6
31184else
31185 ac_check_lib_save_LIBS=$LIBS
31186LIBS="-lpng15 $LIBS"
31187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31188/* end confdefs.h. */
31189
31190/* Override any GCC internal prototype to avoid an error.
31191 Use char because int might match the return type of a GCC
31192 builtin and then its argument prototype would still apply. */
31193#ifdef __cplusplus
31194extern "C"
31195#endif
31196char png_longjmp ();
31197int
31198main ()
31199{
31200return png_longjmp ();
31201 ;
31202 return 0;
31203}
31204_ACEOF
31205if ac_fn_c_try_link "$LINENO"; then :
31206 ac_cv_lib_png15_png_longjmp=yes
31207else
31208 ac_cv_lib_png15_png_longjmp=no
31209fi
31210rm -f core conftest.err conftest.$ac_objext \
31211 conftest$ac_exeext conftest.$ac_ext
31212LIBS=$ac_check_lib_save_LIBS
31213fi
31214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31215$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31216if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31217 passed=`expr $passed + 1`
31218else
31219 failed=`expr $failed + 1`
31220fi
31221
31222 fi
31223 if test "1${var}" = '14' ; then
31224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31225$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31226if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31227 $as_echo_n "(cached) " >&6
31228else
31229 ac_check_lib_save_LIBS=$LIBS
31230LIBS="-lpng14 $LIBS"
31231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31232/* end confdefs.h. */
31233
31234/* Override any GCC internal prototype to avoid an error.
31235 Use char because int might match the return type of a GCC
31236 builtin and then its argument prototype would still apply. */
31237#ifdef __cplusplus
31238extern "C"
31239#endif
31240char png_get_io_ptr ();
31241int
31242main ()
31243{
31244return png_get_io_ptr ();
31245 ;
31246 return 0;
31247}
31248_ACEOF
31249if ac_fn_c_try_link "$LINENO"; then :
31250 ac_cv_lib_png14_png_get_io_ptr=yes
31251else
31252 ac_cv_lib_png14_png_get_io_ptr=no
31253fi
31254rm -f core conftest.err conftest.$ac_objext \
31255 conftest$ac_exeext conftest.$ac_ext
31256LIBS=$ac_check_lib_save_LIBS
31257fi
31258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31259$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31260if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31261 passed=`expr $passed + 1`
31262else
31263 failed=`expr $failed + 1`
31264fi
31265
31266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31267$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31268if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31269 $as_echo_n "(cached) " >&6
31270else
31271 ac_check_lib_save_LIBS=$LIBS
31272LIBS="-lpng14 $LIBS"
31273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31274/* end confdefs.h. */
31275
31276/* Override any GCC internal prototype to avoid an error.
31277 Use char because int might match the return type of a GCC
31278 builtin and then its argument prototype would still apply. */
31279#ifdef __cplusplus
31280extern "C"
31281#endif
31282char png_get_io_state ();
31283int
31284main ()
31285{
31286return png_get_io_state ();
31287 ;
31288 return 0;
31289}
31290_ACEOF
31291if ac_fn_c_try_link "$LINENO"; then :
31292 ac_cv_lib_png14_png_get_io_state=yes
31293else
31294 ac_cv_lib_png14_png_get_io_state=no
31295fi
31296rm -f core conftest.err conftest.$ac_objext \
31297 conftest$ac_exeext conftest.$ac_ext
31298LIBS=$ac_check_lib_save_LIBS
31299fi
31300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31301$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31302if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31303 passed=`expr $passed + 1`
31304else
31305 failed=`expr $failed + 1`
31306fi
31307
31308 fi
31309 if test "1${var}" = '12' ; then
31310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31311$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31312if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31313 $as_echo_n "(cached) " >&6
31314else
31315 ac_check_lib_save_LIBS=$LIBS
31316LIBS="-lpng12 $LIBS"
31317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31318/* end confdefs.h. */
31319
31320/* Override any GCC internal prototype to avoid an error.
31321 Use char because int might match the return type of a GCC
31322 builtin and then its argument prototype would still apply. */
31323#ifdef __cplusplus
31324extern "C"
31325#endif
31326char png_get_io_ptr ();
31327int
31328main ()
31329{
31330return png_get_io_ptr ();
31331 ;
31332 return 0;
31333}
31334_ACEOF
31335if ac_fn_c_try_link "$LINENO"; then :
31336 ac_cv_lib_png12_png_get_io_ptr=yes
31337else
31338 ac_cv_lib_png12_png_get_io_ptr=no
31339fi
31340rm -f core conftest.err conftest.$ac_objext \
31341 conftest$ac_exeext conftest.$ac_ext
31342LIBS=$ac_check_lib_save_LIBS
31343fi
31344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31345$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31346if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31347 passed=`expr $passed + 1`
31348else
31349 failed=`expr $failed + 1`
31350fi
31351
31352 fi
31353 if test "1${var}" = '1' ; then
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31355$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31356if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31357 $as_echo_n "(cached) " >&6
31358else
31359 ac_check_lib_save_LIBS=$LIBS
31360LIBS="-lpng $LIBS"
31361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31362/* end confdefs.h. */
31363
31364/* Override any GCC internal prototype to avoid an error.
31365 Use char because int might match the return type of a GCC
31366 builtin and then its argument prototype would still apply. */
31367#ifdef __cplusplus
31368extern "C"
31369#endif
31370char png_get_io_ptr ();
31371int
31372main ()
31373{
31374return png_get_io_ptr ();
31375 ;
31376 return 0;
31377}
31378_ACEOF
31379if ac_fn_c_try_link "$LINENO"; then :
31380 ac_cv_lib_png_png_get_io_ptr=yes
31381else
31382 ac_cv_lib_png_png_get_io_ptr=no
31383fi
31384rm -f core conftest.err conftest.$ac_objext \
31385 conftest$ac_exeext conftest.$ac_ext
31386LIBS=$ac_check_lib_save_LIBS
31387fi
31388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31389$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31390if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31391 passed=`expr $passed + 1`
31392else
31393 failed=`expr $failed + 1`
31394fi
31395
31396 fi
31397 if test $passed -gt 0 -a $failed -le 0 ; then
31398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31399$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31400 if test $passed -gt 0 ; then
31401 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31403$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031404 have_png='no (failed tests)'
31405 else
31406 PNG_LIBS="-l${pnglib}"
31407 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031408
cristy8b350f62009-11-15 23:12:43 +000031409$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031410
cristyad38abe2012-12-23 23:03:21 +000031411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31412$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031413 have_png='yes'
31414 fi
31415 fi
31416 fi
31417 fi
31418 fi
31419 done
31420 fi
cristy3ed852e2009-09-05 21:47:34 +000031421fi
cristy64877302011-08-23 19:10:31 +000031422
cristy73bd4a52010-10-05 11:24:23 +000031423 if test "$have_png" = 'yes'; then
31424 PNG_DELEGATE_TRUE=
31425 PNG_DELEGATE_FALSE='#'
31426else
31427 PNG_DELEGATE_TRUE='#'
31428 PNG_DELEGATE_FALSE=
31429fi
31430
cristy3ed852e2009-09-05 21:47:34 +000031431
cristy50d3f5c2011-09-10 20:09:06 +000031432
cristy3ed852e2009-09-05 21:47:34 +000031433
31434
31435#
31436# Check for RSVG delegate library.
31437#
31438
31439# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031440if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031441 withval=$with_rsvg; with_rsvg=$withval
31442else
cristy1164d5f2012-08-15 00:58:25 +000031443 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031444fi
31445
31446
31447if test "$with_rsvg" != 'yes'; then
31448 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31449fi
31450
31451have_rsvg='no'
31452have_cairo='no'
31453RSVG_CFLAGS=""
31454RSVG_LIBS=""
31455RSVG_PKG=""
31456if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31458$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031459
31460pkg_failed=no
31461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31462$as_echo_n "checking for RSVG... " >&6; }
31463
31464if test -n "$RSVG_CFLAGS"; then
31465 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31466 elif test -n "$PKG_CONFIG"; then
31467 if test -n "$PKG_CONFIG" && \
31468 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31469 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31470 ac_status=$?
31471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31472 test $ac_status = 0; }; then
31473 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31474else
31475 pkg_failed=yes
31476fi
31477 else
31478 pkg_failed=untried
31479fi
31480if test -n "$RSVG_LIBS"; then
31481 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31482 elif test -n "$PKG_CONFIG"; then
31483 if test -n "$PKG_CONFIG" && \
31484 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31485 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31486 ac_status=$?
31487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31488 test $ac_status = 0; }; then
31489 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31490else
31491 pkg_failed=yes
31492fi
31493 else
31494 pkg_failed=untried
31495fi
31496
31497
31498
31499if test $pkg_failed = yes; then
31500
31501if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31502 _pkg_short_errors_supported=yes
31503else
31504 _pkg_short_errors_supported=no
31505fi
31506 if test $_pkg_short_errors_supported = yes; then
31507 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31508 else
31509 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31510 fi
31511 # Put the nasty error message in config.log where it belongs
31512 echo "$RSVG_PKG_ERRORS" >&5
31513
31514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31515$as_echo "no" >&6; }
31516 have_rsvg=no
31517elif test $pkg_failed = untried; then
31518 have_rsvg=no
31519else
31520 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31521 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31523$as_echo "yes" >&6; }
31524 have_rsvg=yes
31525fi
cristyad38abe2012-12-23 23:03:21 +000031526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31527$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031528
31529pkg_failed=no
31530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31531$as_echo_n "checking for CAIRO_SVG... " >&6; }
31532
31533if test -n "$CAIRO_SVG_CFLAGS"; then
31534 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31535 elif test -n "$PKG_CONFIG"; then
31536 if test -n "$PKG_CONFIG" && \
31537 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31538 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31539 ac_status=$?
31540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31541 test $ac_status = 0; }; then
31542 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31543else
31544 pkg_failed=yes
31545fi
31546 else
31547 pkg_failed=untried
31548fi
31549if test -n "$CAIRO_SVG_LIBS"; then
31550 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31551 elif test -n "$PKG_CONFIG"; then
31552 if test -n "$PKG_CONFIG" && \
31553 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31554 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31555 ac_status=$?
31556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31557 test $ac_status = 0; }; then
31558 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31559else
31560 pkg_failed=yes
31561fi
31562 else
31563 pkg_failed=untried
31564fi
31565
31566
31567
31568if test $pkg_failed = yes; then
31569
31570if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31571 _pkg_short_errors_supported=yes
31572else
31573 _pkg_short_errors_supported=no
31574fi
31575 if test $_pkg_short_errors_supported = yes; then
31576 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31577 else
31578 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31579 fi
31580 # Put the nasty error message in config.log where it belongs
31581 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31582
31583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31584$as_echo "no" >&6; }
31585 have_cairo=no
31586elif test $pkg_failed = untried; then
31587 have_cairo=no
31588else
31589 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31590 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31592$as_echo "yes" >&6; }
31593 have_cairo=yes
31594fi
cristyad38abe2012-12-23 23:03:21 +000031595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31596$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031597fi
31598
31599if test "$have_rsvg" = 'yes'; then
31600
cristy8b350f62009-11-15 23:12:43 +000031601$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031602
cristyc6722092012-10-14 00:19:31 +000031603 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031604 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31605 fi
31606fi
31607
31608if test "$have_cairo" = 'yes'; then
31609
cristy8b350f62009-11-15 23:12:43 +000031610$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031611
cristyc6722092012-10-14 00:19:31 +000031612 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031613 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31614 fi
31615fi
31616
cristy73bd4a52010-10-05 11:24:23 +000031617 if test "$have_rsvg" = 'yes'; then
31618 RSVG_DELEGATE_TRUE=
31619 RSVG_DELEGATE_FALSE='#'
31620else
31621 RSVG_DELEGATE_TRUE='#'
31622 RSVG_DELEGATE_FALSE=
31623fi
31624
31625 if test "$have_cairo" = 'yes'; then
31626 CAIRO_DELEGATE_TRUE=
31627 CAIRO_DELEGATE_FALSE='#'
31628else
31629 CAIRO_DELEGATE_TRUE='#'
31630 CAIRO_DELEGATE_FALSE=
31631fi
31632
cristy3ed852e2009-09-05 21:47:34 +000031633
31634
31635
31636
31637#
31638# Check for TIFF delegate library.
31639#
31640
31641# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031642if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031643 withval=$with_tiff; with_tiff=$withval
31644else
31645 with_tiff='yes'
31646fi
31647
31648
31649if test "$with_tiff" != 'yes'; then
31650 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31651fi
31652
31653have_tiff='no'
31654TIFF_LIBS=''
31655if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31657$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031659$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31661$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031662 failed=0
31663 passed=0
cristy8b350f62009-11-15 23:12:43 +000031664 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031665if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031666 passed=`expr $passed + 1`
31667else
31668 failed=`expr $failed + 1`
31669fi
31670
31671
cristy8b350f62009-11-15 23:12:43 +000031672 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031673if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031674 passed=`expr $passed + 1`
31675else
31676 failed=`expr $failed + 1`
31677fi
31678
31679
cristy8b350f62009-11-15 23:12:43 +000031680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031681$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031682if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031683 $as_echo_n "(cached) " >&6
31684else
31685 ac_check_lib_save_LIBS=$LIBS
31686LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031688/* end confdefs.h. */
31689
31690/* Override any GCC internal prototype to avoid an error.
31691 Use char because int might match the return type of a GCC
31692 builtin and then its argument prototype would still apply. */
31693#ifdef __cplusplus
31694extern "C"
31695#endif
31696char TIFFOpen ();
31697int
31698main ()
31699{
31700return TIFFOpen ();
31701 ;
31702 return 0;
31703}
31704_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031705if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031706 ac_cv_lib_tiff_TIFFOpen=yes
31707else
cristy8b350f62009-11-15 23:12:43 +000031708 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031709fi
cristy8b350f62009-11-15 23:12:43 +000031710rm -f core conftest.err conftest.$ac_objext \
31711 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031712LIBS=$ac_check_lib_save_LIBS
31713fi
cristy8b350f62009-11-15 23:12:43 +000031714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031715$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031716if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031717 passed=`expr $passed + 1`
31718else
31719 failed=`expr $failed + 1`
31720fi
31721
cristy8b350f62009-11-15 23:12:43 +000031722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031723$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031724if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031725 $as_echo_n "(cached) " >&6
31726else
31727 ac_check_lib_save_LIBS=$LIBS
31728LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031730/* end confdefs.h. */
31731
31732/* Override any GCC internal prototype to avoid an error.
31733 Use char because int might match the return type of a GCC
31734 builtin and then its argument prototype would still apply. */
31735#ifdef __cplusplus
31736extern "C"
31737#endif
31738char TIFFClientOpen ();
31739int
31740main ()
31741{
31742return TIFFClientOpen ();
31743 ;
31744 return 0;
31745}
31746_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031747if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031748 ac_cv_lib_tiff_TIFFClientOpen=yes
31749else
cristy8b350f62009-11-15 23:12:43 +000031750 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031751fi
cristy8b350f62009-11-15 23:12:43 +000031752rm -f core conftest.err conftest.$ac_objext \
31753 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031754LIBS=$ac_check_lib_save_LIBS
31755fi
cristy8b350f62009-11-15 23:12:43 +000031756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031757$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031758if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031759 passed=`expr $passed + 1`
31760else
31761 failed=`expr $failed + 1`
31762fi
31763
cristy8b350f62009-11-15 23:12:43 +000031764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031765$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031766if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031767 $as_echo_n "(cached) " >&6
31768else
31769 ac_check_lib_save_LIBS=$LIBS
31770LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031772/* end confdefs.h. */
31773
31774/* Override any GCC internal prototype to avoid an error.
31775 Use char because int might match the return type of a GCC
31776 builtin and then its argument prototype would still apply. */
31777#ifdef __cplusplus
31778extern "C"
31779#endif
31780char TIFFIsByteSwapped ();
31781int
31782main ()
31783{
31784return TIFFIsByteSwapped ();
31785 ;
31786 return 0;
31787}
31788_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031789if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031790 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31791else
cristy8b350f62009-11-15 23:12:43 +000031792 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031793fi
cristy8b350f62009-11-15 23:12:43 +000031794rm -f core conftest.err conftest.$ac_objext \
31795 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031796LIBS=$ac_check_lib_save_LIBS
31797fi
cristy8b350f62009-11-15 23:12:43 +000031798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031799$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031800if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031801 passed=`expr $passed + 1`
31802else
31803 failed=`expr $failed + 1`
31804fi
31805
cristy8b350f62009-11-15 23:12:43 +000031806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031807$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031808if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031809 $as_echo_n "(cached) " >&6
31810else
31811 ac_check_lib_save_LIBS=$LIBS
31812LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031814/* end confdefs.h. */
31815
31816/* Override any GCC internal prototype to avoid an error.
31817 Use char because int might match the return type of a GCC
31818 builtin and then its argument prototype would still apply. */
31819#ifdef __cplusplus
31820extern "C"
31821#endif
31822char TIFFReadRGBATile ();
31823int
31824main ()
31825{
31826return TIFFReadRGBATile ();
31827 ;
31828 return 0;
31829}
31830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031831if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031832 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31833else
cristy8b350f62009-11-15 23:12:43 +000031834 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031835fi
cristy8b350f62009-11-15 23:12:43 +000031836rm -f core conftest.err conftest.$ac_objext \
31837 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031838LIBS=$ac_check_lib_save_LIBS
31839fi
cristy8b350f62009-11-15 23:12:43 +000031840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031841$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031842if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031843 passed=`expr $passed + 1`
31844else
31845 failed=`expr $failed + 1`
31846fi
31847
cristy8b350f62009-11-15 23:12:43 +000031848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031849$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031850if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031851 $as_echo_n "(cached) " >&6
31852else
31853 ac_check_lib_save_LIBS=$LIBS
31854LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031856/* end confdefs.h. */
31857
31858/* Override any GCC internal prototype to avoid an error.
31859 Use char because int might match the return type of a GCC
31860 builtin and then its argument prototype would still apply. */
31861#ifdef __cplusplus
31862extern "C"
31863#endif
31864char TIFFReadRGBAStrip ();
31865int
31866main ()
31867{
31868return TIFFReadRGBAStrip ();
31869 ;
31870 return 0;
31871}
31872_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031873if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031874 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31875else
cristy8b350f62009-11-15 23:12:43 +000031876 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031877fi
cristy8b350f62009-11-15 23:12:43 +000031878rm -f core conftest.err conftest.$ac_objext \
31879 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031880LIBS=$ac_check_lib_save_LIBS
31881fi
cristy8b350f62009-11-15 23:12:43 +000031882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031883$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031884if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031885 passed=`expr $passed + 1`
31886else
31887 failed=`expr $failed + 1`
31888fi
31889
cristy8b350f62009-11-15 23:12:43 +000031890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031891$as_echo_n "checking if TIFF package is complete... " >&6; }
31892 if test $passed -gt 0; then
31893 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31895$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031896 have_tiff='no (failed tests)'
31897 else
31898 TIFF_LIBS='-ltiff'
31899 LIBS="$TIFF_LIBS $LIBS"
31900
cristy8b350f62009-11-15 23:12:43 +000031901$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031902
cristyad38abe2012-12-23 23:03:21 +000031903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31904$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031905 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031906 for ac_header in tiffconf.h
31907do :
31908 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031909if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031910 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031911#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031912_ACEOF
31913
31914fi
31915
31916done
31917
cristy8b350f62009-11-15 23:12:43 +000031918 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031919 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31920 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31921 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031922do :
31923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31924ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031925if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031926 cat >>confdefs.h <<_ACEOF
31927#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31928_ACEOF
31929
31930fi
31931done
31932
31933 fi
31934 else
cristyad38abe2012-12-23 23:03:21 +000031935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31936$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031937 fi
31938fi
cristy73bd4a52010-10-05 11:24:23 +000031939 if test "$have_tiff" = 'yes'; then
31940 TIFF_DELEGATE_TRUE=
31941 TIFF_DELEGATE_FALSE='#'
31942else
31943 TIFF_DELEGATE_TRUE='#'
31944 TIFF_DELEGATE_FALSE=
31945fi
31946
cristy3ed852e2009-09-05 21:47:34 +000031947
31948
31949
31950#
cristyb1860752011-03-14 00:27:46 +000031951# Check for WEBP delegate library.
31952#
31953
31954# Check whether --with-webp was given.
31955if test "${with_webp+set}" = set; then :
31956 withval=$with_webp; with_webp=$withval
31957else
31958 with_webp='yes'
31959fi
31960
31961
31962if test "$with_webp" != 'yes'; then
31963 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31964fi
31965
31966have_webp='no'
31967WEBP_LIBS=''
31968if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31970$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31972$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31974$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031975 failed=0
31976 passed=0
31977 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31978if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31979 passed=`expr $passed + 1`
31980else
31981 failed=`expr $failed + 1`
31982fi
31983
31984
cristy6d670312013-03-22 23:23:01 +000031985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31986$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31987if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031988 $as_echo_n "(cached) " >&6
31989else
31990 ac_check_lib_save_LIBS=$LIBS
31991LIBS="-lwebp $LIBS"
31992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31993/* end confdefs.h. */
31994
31995/* Override any GCC internal prototype to avoid an error.
31996 Use char because int might match the return type of a GCC
31997 builtin and then its argument prototype would still apply. */
31998#ifdef __cplusplus
31999extern "C"
32000#endif
cristy6d670312013-03-22 23:23:01 +000032001char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032002int
32003main ()
32004{
cristy6d670312013-03-22 23:23:01 +000032005return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032006 ;
32007 return 0;
32008}
32009_ACEOF
32010if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032011 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032012else
cristy6d670312013-03-22 23:23:01 +000032013 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032014fi
32015rm -f core conftest.err conftest.$ac_objext \
32016 conftest$ac_exeext conftest.$ac_ext
32017LIBS=$ac_check_lib_save_LIBS
32018fi
cristy6d670312013-03-22 23:23:01 +000032019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32020$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32021if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032022 passed=`expr $passed + 1`
32023else
32024 failed=`expr $failed + 1`
32025fi
32026
32027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32028$as_echo_n "checking if WEBP package is complete... " >&6; }
32029 if test $passed -gt 0; then
32030 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32032$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032033 have_webp='no (failed tests)'
32034 else
32035 WEBP_LIBS='-lwebp'
32036 LIBS="$WEBP_LIBS $LIBS"
32037
32038$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32039
cristyad38abe2012-12-23 23:03:21 +000032040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32041$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032042 have_webp='yes'
32043 fi
32044 else
cristyad38abe2012-12-23 23:03:21 +000032045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32046$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032047 fi
32048fi
32049 if test "$have_webp" = 'yes'; then
32050 WEBP_DELEGATE_TRUE=
32051 WEBP_DELEGATE_FALSE='#'
32052else
32053 WEBP_DELEGATE_TRUE='#'
32054 WEBP_DELEGATE_FALSE=
32055fi
32056
32057
32058
32059
32060#
cristy3ed852e2009-09-05 21:47:34 +000032061# Set Windows font directory.
32062#
32063
32064# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032065if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032066 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32067else
32068 with_windows_font_dir=''
32069fi
32070
32071if test "$with_windows_font_dir" != '' ; then
32072 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32073fi
32074
32075
32076#
32077# Check for WMF delegate library.
32078#
32079
32080# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032081if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032082 withval=$with_wmf; with_wmf=$withval
32083else
cristyfc3d0222012-02-07 15:05:57 +000032084 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032085fi
32086
32087
32088if test "$with_wmf" != 'yes'; then
32089 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32090fi
32091
32092have_wmf='no'
32093WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032094WMF_LIBS_DEPS=''
32095OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032096if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32098$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032100$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32102$as_echo "" >&6; }
32103 have_libwmf='no'
32104 have_libwmflite='no'
32105 have_libwmf_ipa_h='no'
32106
32107 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32108"
32109if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32110 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032111fi
32112
32113
cristy03f7cf92011-12-15 01:40:41 +000032114 if test "$have_libwmf_ipa_h" = 'yes'; then
32115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32116$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32117if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032118 $as_echo_n "(cached) " >&6
32119else
32120 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032121LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032123/* end confdefs.h. */
32124
32125/* Override any GCC internal prototype to avoid an error.
32126 Use char because int might match the return type of a GCC
32127 builtin and then its argument prototype would still apply. */
32128#ifdef __cplusplus
32129extern "C"
32130#endif
cristy03f7cf92011-12-15 01:40:41 +000032131char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032132int
32133main ()
32134{
cristy03f7cf92011-12-15 01:40:41 +000032135return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032136 ;
32137 return 0;
32138}
32139_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032140if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032141 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032142else
cristy03f7cf92011-12-15 01:40:41 +000032143 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032144fi
cristy8b350f62009-11-15 23:12:43 +000032145rm -f core conftest.err conftest.$ac_objext \
32146 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032147LIBS=$ac_check_lib_save_LIBS
32148fi
cristy03f7cf92011-12-15 01:40:41 +000032149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32150$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32151if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32152 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032153fi
32154
cristy03f7cf92011-12-15 01:40:41 +000032155 if test "$have_libwmflite" = 'yes'; then
32156
32157$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32158
32159 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032160 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032161 have_wmf='yes'
32162 else
32163 WMF_LIBS_DEPS=''
32164 WMF_CONFIG_LIBS=`libwmf-config --libs`
32165 for lib in xml2 expat freetype jpeg png z; do
32166 testlib="-l${lib}"
32167 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32168 done
32169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32170$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32171if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32172 $as_echo_n "(cached) " >&6
32173else
32174 ac_check_lib_save_LIBS=$LIBS
32175LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32177/* end confdefs.h. */
32178
32179/* Override any GCC internal prototype to avoid an error.
32180 Use char because int might match the return type of a GCC
32181 builtin and then its argument prototype would still apply. */
32182#ifdef __cplusplus
32183extern "C"
32184#endif
32185char wmf_api_create ();
32186int
32187main ()
32188{
32189return wmf_api_create ();
32190 ;
32191 return 0;
32192}
32193_ACEOF
32194if ac_fn_c_try_link "$LINENO"; then :
32195 ac_cv_lib_wmf_wmf_api_create=yes
32196else
32197 ac_cv_lib_wmf_wmf_api_create=no
32198fi
32199rm -f core conftest.err conftest.$ac_objext \
32200 conftest$ac_exeext conftest.$ac_ext
32201LIBS=$ac_check_lib_save_LIBS
32202fi
32203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32204$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32205if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32206 have_libwmf='yes'
32207fi
32208
32209 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032210
cristy8b350f62009-11-15 23:12:43 +000032211$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032212
cristy03f7cf92011-12-15 01:40:41 +000032213 WMF_LIBS='-lwmf'
32214 LIBS="$WMF_LIBS $LIBS"
32215 have_wmf='yes'
32216 else
32217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32218$as_echo "no -- some components failed test" >&6; }
32219 have_wmf='no (failed tests)'
32220 have_wmflite='no (failed tests)'
32221 LIBS="$OLIBS"
32222 WMF_LIBS=''
32223 fi
glennrp33e524b2011-08-24 17:41:57 +000032224 fi
cristy03f7cf92011-12-15 01:40:41 +000032225 fi
32226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32227$as_echo_n "checking if WMF package is complete... " >&6; }
32228 if test "$have_wmf" = 'yes'; then
32229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32230$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032231 else
cristy03f7cf92011-12-15 01:40:41 +000032232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32233$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032234 fi
cristy3ed852e2009-09-05 21:47:34 +000032235fi
cristy73bd4a52010-10-05 11:24:23 +000032236 if test "$have_wmf" = 'yes'; then
32237 WMF_DELEGATE_TRUE=
32238 WMF_DELEGATE_FALSE='#'
32239else
32240 WMF_DELEGATE_TRUE='#'
32241 WMF_DELEGATE_FALSE=
32242fi
32243
cristy3ed852e2009-09-05 21:47:34 +000032244
32245
32246
cristy81beccd2011-10-03 18:17:24 +000032247
32248
cristy3ed852e2009-09-05 21:47:34 +000032249#
32250# Check for XML delegate library.
32251#
32252
32253# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032254if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032255 withval=$with_xml; with_xml=$withval
32256else
cristyfc3d0222012-02-07 15:05:57 +000032257 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032258fi
32259
32260
cristy81beccd2011-10-03 18:17:24 +000032261if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032262 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32263fi
32264
cristy81beccd2011-10-03 18:17:24 +000032265have_xml='no'
32266XML_LIBS=''
32267if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32269$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32271$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32273$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032274 PERSIST_LDFLAGS=$LDFLAGS
32275 PERSIST_CPPFLAGS=$CPPFLAGS
32276 xml2_config=''
32277 # Extract the first word of "xml2-config", so it can be a program name with args.
32278set dummy xml2-config; ac_word=$2
32279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32280$as_echo_n "checking for $ac_word... " >&6; }
32281if ${ac_cv_path_xml2_config+:} false; then :
32282 $as_echo_n "(cached) " >&6
32283else
32284 case $xml2_config in
32285 [\\/]* | ?:[\\/]*)
32286 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32287 ;;
32288 *)
32289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32290for as_dir in $PATH
32291do
32292 IFS=$as_save_IFS
32293 test -z "$as_dir" && as_dir=.
32294 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032296 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32298 break 2
32299 fi
32300done
32301 done
32302IFS=$as_save_IFS
32303
32304 ;;
32305esac
32306fi
32307xml2_config=$ac_cv_path_xml2_config
32308if test -n "$xml2_config"; then
32309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32310$as_echo "$xml2_config" >&6; }
32311else
32312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32313$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032314fi
32315
cristy81beccd2011-10-03 18:17:24 +000032316 if test -n "$xml2_config"; then
32317 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32318 # the shared library installed under /usr/lib, whereas the package
32319 # installs itself under $prefix/libxml and $prefix/lib.
32320 xml2_prefix=`xml2-config --prefix`
32321 if test -d "${xml2_prefix}/include/libxml2"; then
32322 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32323 fi
32324 if test "${xml2_prefix}" != '/usr'; then
32325 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32326 fi
32327 fi
32328 failed=0
32329 passed=0
32330 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32331if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32332 passed=`expr $passed + 1`
32333else
32334 failed=`expr $failed + 1`
32335fi
32336
32337
32338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32339$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32340if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32341 $as_echo_n "(cached) " >&6
32342else
32343 ac_check_lib_save_LIBS=$LIBS
32344LIBS="-lxml2 $LIBS"
32345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32346/* end confdefs.h. */
32347
32348/* Override any GCC internal prototype to avoid an error.
32349 Use char because int might match the return type of a GCC
32350 builtin and then its argument prototype would still apply. */
32351#ifdef __cplusplus
32352extern "C"
32353#endif
32354char xmlSAXVersion ();
32355int
32356main ()
32357{
32358return xmlSAXVersion ();
32359 ;
32360 return 0;
32361}
32362_ACEOF
32363if ac_fn_c_try_link "$LINENO"; then :
32364 ac_cv_lib_xml2_xmlSAXVersion=yes
32365else
32366 ac_cv_lib_xml2_xmlSAXVersion=no
32367fi
32368rm -f core conftest.err conftest.$ac_objext \
32369 conftest$ac_exeext conftest.$ac_ext
32370LIBS=$ac_check_lib_save_LIBS
32371fi
32372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32373$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32374if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32375 passed=`expr $passed + 1`
32376else
32377 failed=`expr $failed + 1`
32378fi
32379
32380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32381$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32382if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32383 $as_echo_n "(cached) " >&6
32384else
32385 ac_check_lib_save_LIBS=$LIBS
32386LIBS="-lxml2 $LIBS"
32387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32388/* end confdefs.h. */
32389
32390/* Override any GCC internal prototype to avoid an error.
32391 Use char because int might match the return type of a GCC
32392 builtin and then its argument prototype would still apply. */
32393#ifdef __cplusplus
32394extern "C"
32395#endif
32396char xmlParseChunk ();
32397int
32398main ()
32399{
32400return xmlParseChunk ();
32401 ;
32402 return 0;
32403}
32404_ACEOF
32405if ac_fn_c_try_link "$LINENO"; then :
32406 ac_cv_lib_xml2_xmlParseChunk=yes
32407else
32408 ac_cv_lib_xml2_xmlParseChunk=no
32409fi
32410rm -f core conftest.err conftest.$ac_objext \
32411 conftest$ac_exeext conftest.$ac_ext
32412LIBS=$ac_check_lib_save_LIBS
32413fi
32414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32415$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32416if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32417 passed=`expr $passed + 1`
32418else
32419 failed=`expr $failed + 1`
32420fi
32421
32422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32423$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32424if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32425 $as_echo_n "(cached) " >&6
32426else
32427 ac_check_lib_save_LIBS=$LIBS
32428LIBS="-lxml2 $LIBS"
32429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32430/* end confdefs.h. */
32431
32432/* Override any GCC internal prototype to avoid an error.
32433 Use char because int might match the return type of a GCC
32434 builtin and then its argument prototype would still apply. */
32435#ifdef __cplusplus
32436extern "C"
32437#endif
32438char xmlCreatePushParserCtxt ();
32439int
32440main ()
32441{
32442return xmlCreatePushParserCtxt ();
32443 ;
32444 return 0;
32445}
32446_ACEOF
32447if ac_fn_c_try_link "$LINENO"; then :
32448 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32449else
32450 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32451fi
32452rm -f core conftest.err conftest.$ac_objext \
32453 conftest$ac_exeext conftest.$ac_ext
32454LIBS=$ac_check_lib_save_LIBS
32455fi
32456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32457$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32458if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32459 passed=`expr $passed + 1`
32460else
32461 failed=`expr $failed + 1`
32462fi
32463
32464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32465$as_echo_n "checking if XML package is complete... " >&6; }
32466 if test $passed -gt 0; then
32467 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32469$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032470 have_xml='no (failed tests)'
32471 LDFLAGS="$PERSIST_LDFLAGS"
32472 CPPFLAGS="$PERSIST_CPPFLAGS"
32473 else
32474 XML_LIBS='-lxml2'
32475 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032476
cristy8b350f62009-11-15 23:12:43 +000032477$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032478
cristyad38abe2012-12-23 23:03:21 +000032479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32480$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032481 have_xml='yes'
32482 fi
32483 else
cristyad38abe2012-12-23 23:03:21 +000032484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32485$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032486 fi
32487fi
cristy73bd4a52010-10-05 11:24:23 +000032488 if test "$have_xml" = 'yes'; then
32489 XML_DELEGATE_TRUE=
32490 XML_DELEGATE_FALSE='#'
32491else
32492 XML_DELEGATE_TRUE='#'
32493 XML_DELEGATE_FALSE=
32494fi
32495
cristy3ed852e2009-09-05 21:47:34 +000032496
32497
32498
32499# Substitute compiler name to build/link PerlMagick
32500#
32501
32502
32503#
32504# Configure install Paths
32505#
cristy7def36a2011-10-28 19:04:41 +000032506
cristy2a11bef2011-10-28 18:33:11 +000032507# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032508INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032509INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32510DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032511case "${build_os}" in
32512 mingw* )
32513 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32514 ;;
32515esac
32516
32517cat >>confdefs.h <<_ACEOF
32518#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32519_ACEOF
32520
32521
cristy3ed852e2009-09-05 21:47:34 +000032522
cristye52f12f2012-12-31 15:32:36 +000032523# Path to ImageMagick header files (arch part)
32524INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32525DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32526case "${build_os}" in
32527 mingw* )
32528 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32529 ;;
32530esac
32531
32532cat >>confdefs.h <<_ACEOF
32533#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32534_ACEOF
32535
32536
32537
cristy3ed852e2009-09-05 21:47:34 +000032538# Subdirectory under lib to place ImageMagick lib files
32539LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32540
32541cat >>confdefs.h <<_ACEOF
32542#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32543_ACEOF
32544
32545
32546# Path to ImageMagick bin directory
32547EXECUTABLE_PATH="${BIN_DIR}"
32548DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32549case "${build_os}" in
32550 mingw* )
32551 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32552 ;;
32553esac
32554
32555cat >>confdefs.h <<_ACEOF
32556#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32557_ACEOF
32558
32559
32560
32561# Path to ImageMagick lib
32562LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32563DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32564case "${build_os}" in
32565 mingw* )
32566 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32567 ;;
32568esac
32569
32570cat >>confdefs.h <<_ACEOF
32571#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32572_ACEOF
32573
32574
32575
cristy3ed852e2009-09-05 21:47:34 +000032576#
cristy8d0ff762013-03-10 20:33:28 +000032577# path to local binaries
32578if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32579 LIB_BIN_BASEDIRNAME="bin"
32580fi
32581
32582cat >>confdefs.h <<_ACEOF
32583#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32584_ACEOF
32585
32586
32587
32588if test "x$LIB_BIN_DIR" = "x"; then
32589 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32590fi
32591
32592
32593LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32594
32595LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32596
32597
32598#
cristy01ff9f32012-12-01 18:15:29 +000032599# path to modules lib
32600if test "x$MODULES_BASEDIRNAME" = "x"; then
32601 MODULES_BASEDIRNAME="modules"
32602fi
cristy3ed852e2009-09-05 21:47:34 +000032603
32604cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032605#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032606_ACEOF
32607
cristy01ff9f32012-12-01 18:15:29 +000032608
32609
32610if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032611 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32612else
cristy3ed852e2009-09-05 21:47:34 +000032613
32614cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032615#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032616_ACEOF
32617
cristycf4a3c22012-12-02 21:47:25 +000032618fi
cristy01ff9f32012-12-01 18:15:29 +000032619
32620
cristy371d4812012-12-01 19:48:10 +000032621MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032622
32623MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32624
32625
32626#
32627# path to coders lib
32628if test "x$CODER_DIRNAME" = "x"; then
32629 CODER_DIRNAME="coders"
32630fi
32631
32632cat >>confdefs.h <<_ACEOF
32633#define CODER_DIRNAME "$CODER_DIRNAME"
32634_ACEOF
32635
32636
32637
cristy371d4812012-12-01 19:48:10 +000032638CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032639CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032640
32641
32642#
32643# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032644#
32645# path to coders lib
32646if test "x$FILTER_DIRNAME" = "x"; then
32647 FILTER_DIRNAME="filters"
32648fi
cristy3ed852e2009-09-05 21:47:34 +000032649
32650cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032651#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032652_ACEOF
32653
cristy3ed852e2009-09-05 21:47:34 +000032654
cristy3ed852e2009-09-05 21:47:34 +000032655
cristy371d4812012-12-01 19:48:10 +000032656FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032657FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032658
32659
32660#
32661# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032662DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032663DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32664DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032665case "${build_os}" in
32666 mingw* )
32667 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32668 ;;
32669esac
32670
32671cat >>confdefs.h <<_ACEOF
32672#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32673_ACEOF
32674
32675
32676
cristydd17feb2014-03-05 02:06:32 +000032677#
32678# Enable/Disable documentation
32679# Check whether --enable-docs was given.
32680if test "${enable_docs+set}" = set; then :
32681 enableval=$enable_docs; wantdocs=$enableval
32682else
32683 wantdocs=detect
32684fi
32685
32686 if test "$wantdocs" = "xyes"; then
32687 INSTALL_DOC_TRUE=
32688 INSTALL_DOC_FALSE='#'
32689else
32690 INSTALL_DOC_TRUE='#'
32691 INSTALL_DOC_FALSE=
32692fi
32693
32694
cristy2a11bef2011-10-28 18:33:11 +000032695# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032696CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032697
32698cat >>confdefs.h <<_ACEOF
32699#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32700_ACEOF
32701
cristy7def36a2011-10-28 19:04:41 +000032702CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032703DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32704case "${build_os}" in
32705 mingw* )
32706 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32707 ;;
32708esac
32709
32710cat >>confdefs.h <<_ACEOF
32711#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32712_ACEOF
32713
32714
32715
cristy2a11bef2011-10-28 18:33:11 +000032716# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032717SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032718
32719cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032720#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032721_ACEOF
32722
cristy670aa3c2011-11-03 00:54:00 +000032723SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032724DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032725case "${build_os}" in
32726 mingw* )
cristy4f820712011-04-01 12:35:43 +000032727 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032728 ;;
32729esac
32730
32731cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032732#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032733_ACEOF
32734
32735
32736
cristy54378032012-12-04 15:52:20 +000032737#
32738# Subdirectory to place architecture-dependent configuration files.
32739if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32740 SHAREARCH_BASEDIRNAME="config"
32741fi
cristy670aa3c2011-11-03 00:54:00 +000032742
32743cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032744#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032745_ACEOF
32746
cristy54378032012-12-04 15:52:20 +000032747
32748
32749if test "x$SHAREARCH_DIRNAME" = "x"; then
32750 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32751else
cristy670aa3c2011-11-03 00:54:00 +000032752
32753cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032754#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032755_ACEOF
32756
cristy54378032012-12-04 15:52:20 +000032757fi
32758
32759
32760SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32761
32762SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032763
32764
cristy3ed852e2009-09-05 21:47:34 +000032765#
32766# program_transform_name is formed for use in a Makefile, so create a
32767# modified version for use in a shell script.
32768configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32769
32770# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32772$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032774$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32776$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032777AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032778BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032779BZIPDelegateDefault='bzip2'
32780BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032781CatDelegateDefault='cat'
32782DNGDecodeDelegateDefault='ufraw-batch'
32783GVCDecodeDelegateDefault='dot'
32784DVIDecodeDelegateDefault='dvips'
32785EchoDelegateDefault='echo'
32786EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032787ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32788DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32789MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32790GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032791HPGLDecodeDelegateDefault='hp2xx'
32792HTMLDecodeDelegateDefault='html2ps'
32793ILBMDecodeDelegateDefault='ilbmtoppm'
32794ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032795JXRDecodeDelegateDefault='JxrDecApp'
32796JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032797LPDelegateDefault='lp'
32798LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032799LaunchDelegateDefault='gimp'
32800MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032801MPEGDecodeDelegateDefault='avconv'
32802MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032803MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032804MVDelegateDefault='mv'
32805PCLDelegateDefault='pcl6'
32806PGPDecodeDelegateDefault='pgpv'
32807POVDelegateDefault='povray'
32808if test "$native_win32_build" = 'yes'; then
32809 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032810elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032811 PSDelegateDefault='gsc'
32812else
32813 PSDelegateDefault='gs'
32814fi
32815RLEEncodeDelegateDefault='rawtorle'
32816RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032817RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032818SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032819SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032820TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032821UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032822WebPDecodeDelegateDefault='dwebp'
32823WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032824WMFDecodeDelegateDefault='wmf2eps'
32825WWWDecodeDelegateDefault='curl'
32826XPSDelegateDefault='gxps'
32827ZipDelegateDefault='gzip'
32828
32829# Search for delegates
32830# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32831set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032833$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032834if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032835 $as_echo_n "(cached) " >&6
32836else
32837 case $AutotraceDecodeDelegate in
32838 [\\/]* | ?:[\\/]*)
32839 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32840 ;;
32841 *)
32842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32843for as_dir in $PATH
32844do
32845 IFS=$as_save_IFS
32846 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032847 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032849 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032851 break 2
32852 fi
32853done
cristy8b350f62009-11-15 23:12:43 +000032854 done
cristy3ed852e2009-09-05 21:47:34 +000032855IFS=$as_save_IFS
32856
32857 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32858 ;;
32859esac
32860fi
32861AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32862if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032864$as_echo "$AutotraceDecodeDelegate" >&6; }
32865else
cristy8b350f62009-11-15 23:12:43 +000032866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032867$as_echo "no" >&6; }
32868fi
32869
32870
cristy3ed852e2009-09-05 21:47:34 +000032871# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32872set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032874$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032875if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032876 $as_echo_n "(cached) " >&6
32877else
32878 case $BlenderDecodeDelegate in
32879 [\\/]* | ?:[\\/]*)
32880 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32881 ;;
32882 *)
32883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32884for as_dir in $PATH
32885do
32886 IFS=$as_save_IFS
32887 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032888 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032890 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032892 break 2
32893 fi
32894done
cristy8b350f62009-11-15 23:12:43 +000032895 done
cristy3ed852e2009-09-05 21:47:34 +000032896IFS=$as_save_IFS
32897
32898 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32899 ;;
32900esac
32901fi
32902BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32903if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032905$as_echo "$BlenderDecodeDelegate" >&6; }
32906else
cristy8b350f62009-11-15 23:12:43 +000032907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032908$as_echo "no" >&6; }
32909fi
32910
32911
32912# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32913set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032915$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032916if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032917 $as_echo_n "(cached) " >&6
32918else
32919 case $BZIPDelegate in
32920 [\\/]* | ?:[\\/]*)
32921 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32922 ;;
32923 *)
32924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32925for as_dir in $PATH
32926do
32927 IFS=$as_save_IFS
32928 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032929 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032931 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032933 break 2
32934 fi
32935done
cristy8b350f62009-11-15 23:12:43 +000032936 done
cristy3ed852e2009-09-05 21:47:34 +000032937IFS=$as_save_IFS
32938
32939 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32940 ;;
32941esac
32942fi
32943BZIPDelegate=$ac_cv_path_BZIPDelegate
32944if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032946$as_echo "$BZIPDelegate" >&6; }
32947else
cristy8b350f62009-11-15 23:12:43 +000032948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032949$as_echo "no" >&6; }
32950fi
32951
32952
cristyc59f0e72012-08-27 12:59:33 +000032953for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32954do
32955 # Extract the first word of "$ac_prog", so it can be a program name with args.
32956set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032958$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032959if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032960 $as_echo_n "(cached) " >&6
32961else
32962 case $BrowseDelegate in
32963 [\\/]* | ?:[\\/]*)
32964 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32965 ;;
32966 *)
32967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32968for as_dir in $PATH
32969do
32970 IFS=$as_save_IFS
32971 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032972 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032974 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032976 break 2
32977 fi
32978done
cristy8b350f62009-11-15 23:12:43 +000032979 done
cristy3ed852e2009-09-05 21:47:34 +000032980IFS=$as_save_IFS
32981
cristy3ed852e2009-09-05 21:47:34 +000032982 ;;
32983esac
32984fi
32985BrowseDelegate=$ac_cv_path_BrowseDelegate
32986if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032988$as_echo "$BrowseDelegate" >&6; }
32989else
cristy8b350f62009-11-15 23:12:43 +000032990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032991$as_echo "no" >&6; }
32992fi
32993
32994
cristyc59f0e72012-08-27 12:59:33 +000032995 test -n "$BrowseDelegate" && break
32996done
32997test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32998
cristy3ed852e2009-09-05 21:47:34 +000032999# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33000set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033002$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033003if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033004 $as_echo_n "(cached) " >&6
33005else
33006 case $CatDelegate in
33007 [\\/]* | ?:[\\/]*)
33008 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33009 ;;
33010 *)
33011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33012for as_dir in $PATH
33013do
33014 IFS=$as_save_IFS
33015 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033016 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033018 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033020 break 2
33021 fi
33022done
cristy8b350f62009-11-15 23:12:43 +000033023 done
cristy3ed852e2009-09-05 21:47:34 +000033024IFS=$as_save_IFS
33025
33026 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33027 ;;
33028esac
33029fi
33030CatDelegate=$ac_cv_path_CatDelegate
33031if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033033$as_echo "$CatDelegate" >&6; }
33034else
cristy8b350f62009-11-15 23:12:43 +000033035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033036$as_echo "no" >&6; }
33037fi
33038
33039
33040# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33041set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033043$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033044if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033045 $as_echo_n "(cached) " >&6
33046else
33047 case $DNGDecodeDelegate in
33048 [\\/]* | ?:[\\/]*)
33049 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33050 ;;
33051 *)
33052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33053for as_dir in $PATH
33054do
33055 IFS=$as_save_IFS
33056 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033057 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033059 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033061 break 2
33062 fi
33063done
cristy8b350f62009-11-15 23:12:43 +000033064 done
cristy3ed852e2009-09-05 21:47:34 +000033065IFS=$as_save_IFS
33066
33067 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33068 ;;
33069esac
33070fi
33071DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33072if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033074$as_echo "$DNGDecodeDelegate" >&6; }
33075else
cristy8b350f62009-11-15 23:12:43 +000033076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033077$as_echo "no" >&6; }
33078fi
33079
33080
33081# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33082set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033084$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033085if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033086 $as_echo_n "(cached) " >&6
33087else
33088 case $GVCDecodeDelegate in
33089 [\\/]* | ?:[\\/]*)
33090 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33091 ;;
33092 *)
33093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33094for as_dir in $PATH
33095do
33096 IFS=$as_save_IFS
33097 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033098 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033100 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033102 break 2
33103 fi
33104done
cristy8b350f62009-11-15 23:12:43 +000033105 done
cristy3ed852e2009-09-05 21:47:34 +000033106IFS=$as_save_IFS
33107
33108 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33109 ;;
33110esac
33111fi
33112GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33113if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033115$as_echo "$GVCDecodeDelegate" >&6; }
33116else
cristy8b350f62009-11-15 23:12:43 +000033117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033118$as_echo "no" >&6; }
33119fi
33120
33121
33122# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33123set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033125$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033126if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033127 $as_echo_n "(cached) " >&6
33128else
33129 case $DVIDecodeDelegate in
33130 [\\/]* | ?:[\\/]*)
33131 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33132 ;;
33133 *)
33134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33135for as_dir in $PATH
33136do
33137 IFS=$as_save_IFS
33138 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033139 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033141 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033143 break 2
33144 fi
33145done
cristy8b350f62009-11-15 23:12:43 +000033146 done
cristy3ed852e2009-09-05 21:47:34 +000033147IFS=$as_save_IFS
33148
33149 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33150 ;;
33151esac
33152fi
33153DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33154if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033156$as_echo "$DVIDecodeDelegate" >&6; }
33157else
cristy8b350f62009-11-15 23:12:43 +000033158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033159$as_echo "no" >&6; }
33160fi
33161
33162
33163# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33164set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033166$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033167if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033168 $as_echo_n "(cached) " >&6
33169else
33170 case $EchoDelegate in
33171 [\\/]* | ?:[\\/]*)
33172 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33173 ;;
33174 *)
33175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33176for as_dir in $PATH
33177do
33178 IFS=$as_save_IFS
33179 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033180 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033182 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033184 break 2
33185 fi
33186done
cristy8b350f62009-11-15 23:12:43 +000033187 done
cristy3ed852e2009-09-05 21:47:34 +000033188IFS=$as_save_IFS
33189
33190 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33191 ;;
33192esac
33193fi
33194EchoDelegate=$ac_cv_path_EchoDelegate
33195if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033197$as_echo "$EchoDelegate" >&6; }
33198else
cristy8b350f62009-11-15 23:12:43 +000033199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033200$as_echo "no" >&6; }
33201fi
33202
33203
33204# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33205set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033207$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033208if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033209 $as_echo_n "(cached) " >&6
33210else
33211 case $EditorDelegate in
33212 [\\/]* | ?:[\\/]*)
33213 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33214 ;;
33215 *)
33216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33217for as_dir in $PATH
33218do
33219 IFS=$as_save_IFS
33220 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033221 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033223 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033225 break 2
33226 fi
33227done
cristy8b350f62009-11-15 23:12:43 +000033228 done
cristy3ed852e2009-09-05 21:47:34 +000033229IFS=$as_save_IFS
33230
33231 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33232 ;;
33233esac
33234fi
33235EditorDelegate=$ac_cv_path_EditorDelegate
33236if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033238$as_echo "$EditorDelegate" >&6; }
33239else
cristy8b350f62009-11-15 23:12:43 +000033240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033241$as_echo "no" >&6; }
33242fi
33243
33244
cristy3ed852e2009-09-05 21:47:34 +000033245# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33246set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033248$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033249if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033250 $as_echo_n "(cached) " >&6
33251else
33252 case $ConvertDelegate in
33253 [\\/]* | ?:[\\/]*)
33254 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33255 ;;
33256 *)
33257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33258for as_dir in $PATH
33259do
33260 IFS=$as_save_IFS
33261 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033262 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033264 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033266 break 2
33267 fi
33268done
cristy8b350f62009-11-15 23:12:43 +000033269 done
cristy3ed852e2009-09-05 21:47:34 +000033270IFS=$as_save_IFS
33271
33272 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33273 ;;
33274esac
33275fi
33276ConvertDelegate=$ac_cv_path_ConvertDelegate
33277if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033279$as_echo "$ConvertDelegate" >&6; }
33280else
cristy8b350f62009-11-15 23:12:43 +000033281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033282$as_echo "no" >&6; }
33283fi
33284
33285
33286# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33287set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033289$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033290if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033291 $as_echo_n "(cached) " >&6
33292else
33293 case $DisplayDelegate in
33294 [\\/]* | ?:[\\/]*)
33295 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33296 ;;
33297 *)
33298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33299for as_dir in $PATH
33300do
33301 IFS=$as_save_IFS
33302 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033303 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033305 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033307 break 2
33308 fi
33309done
cristy8b350f62009-11-15 23:12:43 +000033310 done
cristy3ed852e2009-09-05 21:47:34 +000033311IFS=$as_save_IFS
33312
33313 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33314 ;;
33315esac
33316fi
33317DisplayDelegate=$ac_cv_path_DisplayDelegate
33318if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033320$as_echo "$DisplayDelegate" >&6; }
33321else
cristy8b350f62009-11-15 23:12:43 +000033322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033323$as_echo "no" >&6; }
33324fi
33325
33326
33327# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33328set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033330$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033331if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033332 $as_echo_n "(cached) " >&6
33333else
33334 case $MogrifyDelegate in
33335 [\\/]* | ?:[\\/]*)
33336 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33337 ;;
33338 *)
33339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33340for as_dir in $PATH
33341do
33342 IFS=$as_save_IFS
33343 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033344 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033346 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033348 break 2
33349 fi
33350done
cristy8b350f62009-11-15 23:12:43 +000033351 done
cristy3ed852e2009-09-05 21:47:34 +000033352IFS=$as_save_IFS
33353
33354 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33355 ;;
33356esac
33357fi
33358MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33359if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033361$as_echo "$MogrifyDelegate" >&6; }
33362else
cristy8b350f62009-11-15 23:12:43 +000033363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033364$as_echo "no" >&6; }
33365fi
33366
33367
33368# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33369set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033371$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033372if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033373 $as_echo_n "(cached) " >&6
33374else
33375 case $GnuplotDecodeDelegate in
33376 [\\/]* | ?:[\\/]*)
33377 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33378 ;;
33379 *)
33380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33381for as_dir in $PATH
33382do
33383 IFS=$as_save_IFS
33384 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033385 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033387 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033389 break 2
33390 fi
33391done
cristy8b350f62009-11-15 23:12:43 +000033392 done
cristy3ed852e2009-09-05 21:47:34 +000033393IFS=$as_save_IFS
33394
33395 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33396 ;;
33397esac
33398fi
33399GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33400if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033402$as_echo "$GnuplotDecodeDelegate" >&6; }
33403else
cristy8b350f62009-11-15 23:12:43 +000033404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033405$as_echo "no" >&6; }
33406fi
33407
33408
cristy3ed852e2009-09-05 21:47:34 +000033409# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33410set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033412$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033413if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033414 $as_echo_n "(cached) " >&6
33415else
33416 case $HPGLDecodeDelegate in
33417 [\\/]* | ?:[\\/]*)
33418 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33419 ;;
33420 *)
33421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33422for as_dir in $PATH
33423do
33424 IFS=$as_save_IFS
33425 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033426 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033428 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033430 break 2
33431 fi
33432done
cristy8b350f62009-11-15 23:12:43 +000033433 done
cristy3ed852e2009-09-05 21:47:34 +000033434IFS=$as_save_IFS
33435
33436 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33437 ;;
33438esac
33439fi
33440HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33441if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033443$as_echo "$HPGLDecodeDelegate" >&6; }
33444else
cristy8b350f62009-11-15 23:12:43 +000033445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033446$as_echo "no" >&6; }
33447fi
33448
33449
33450# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33451set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033453$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033454if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033455 $as_echo_n "(cached) " >&6
33456else
33457 case $HTMLDecodeDelegate in
33458 [\\/]* | ?:[\\/]*)
33459 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33460 ;;
33461 *)
33462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33463for as_dir in $PATH
33464do
33465 IFS=$as_save_IFS
33466 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033467 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033469 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033471 break 2
33472 fi
33473done
cristy8b350f62009-11-15 23:12:43 +000033474 done
cristy3ed852e2009-09-05 21:47:34 +000033475IFS=$as_save_IFS
33476
33477 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33478 ;;
33479esac
33480fi
33481HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33482if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033484$as_echo "$HTMLDecodeDelegate" >&6; }
33485else
cristy8b350f62009-11-15 23:12:43 +000033486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033487$as_echo "no" >&6; }
33488fi
33489
33490
33491# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33492set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033494$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033495if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033496 $as_echo_n "(cached) " >&6
33497else
33498 case $ILBMDecodeDelegate in
33499 [\\/]* | ?:[\\/]*)
33500 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33501 ;;
33502 *)
33503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33504for as_dir in $PATH
33505do
33506 IFS=$as_save_IFS
33507 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033508 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033510 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033512 break 2
33513 fi
33514done
cristy8b350f62009-11-15 23:12:43 +000033515 done
cristy3ed852e2009-09-05 21:47:34 +000033516IFS=$as_save_IFS
33517
33518 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33519 ;;
33520esac
33521fi
33522ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33523if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033525$as_echo "$ILBMDecodeDelegate" >&6; }
33526else
cristy8b350f62009-11-15 23:12:43 +000033527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033528$as_echo "no" >&6; }
33529fi
33530
33531
33532# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33533set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033535$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033536if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033537 $as_echo_n "(cached) " >&6
33538else
33539 case $ILBMEncodeDelegate in
33540 [\\/]* | ?:[\\/]*)
33541 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33542 ;;
33543 *)
33544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33545for as_dir in $PATH
33546do
33547 IFS=$as_save_IFS
33548 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033549 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033551 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033553 break 2
33554 fi
33555done
cristy8b350f62009-11-15 23:12:43 +000033556 done
cristy3ed852e2009-09-05 21:47:34 +000033557IFS=$as_save_IFS
33558
33559 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33560 ;;
33561esac
33562fi
33563ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33564if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033566$as_echo "$ILBMEncodeDelegate" >&6; }
33567else
cristy8b350f62009-11-15 23:12:43 +000033568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033569$as_echo "no" >&6; }
33570fi
33571
33572
cristy71f53d52013-04-27 13:33:59 +000033573# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33574set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33576$as_echo_n "checking for $ac_word... " >&6; }
33577if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33578 $as_echo_n "(cached) " >&6
33579else
33580 case $JXRDecodeDelegate in
33581 [\\/]* | ?:[\\/]*)
33582 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33583 ;;
33584 *)
33585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33586for as_dir in $PATH
33587do
33588 IFS=$as_save_IFS
33589 test -z "$as_dir" && as_dir=.
33590 for ac_exec_ext in '' $ac_executable_extensions; do
33591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33592 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33594 break 2
33595 fi
33596done
33597 done
33598IFS=$as_save_IFS
33599
33600 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33601 ;;
33602esac
33603fi
33604JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33605if test -n "$JXRDecodeDelegate"; then
33606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33607$as_echo "$JXRDecodeDelegate" >&6; }
33608else
33609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33610$as_echo "no" >&6; }
33611fi
33612
33613
33614# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33615set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33617$as_echo_n "checking for $ac_word... " >&6; }
33618if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33619 $as_echo_n "(cached) " >&6
33620else
33621 case $JXREncodeDelegate in
33622 [\\/]* | ?:[\\/]*)
33623 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33624 ;;
33625 *)
33626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33627for as_dir in $PATH
33628do
33629 IFS=$as_save_IFS
33630 test -z "$as_dir" && as_dir=.
33631 for ac_exec_ext in '' $ac_executable_extensions; do
33632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33633 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33635 break 2
33636 fi
33637done
33638 done
33639IFS=$as_save_IFS
33640
33641 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33642 ;;
33643esac
33644fi
33645JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33646if test -n "$JXREncodeDelegate"; then
33647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33648$as_echo "$JXREncodeDelegate" >&6; }
33649else
33650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33651$as_echo "no" >&6; }
33652fi
33653
33654
cristy3ed852e2009-09-05 21:47:34 +000033655# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33656set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033658$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033659if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033660 $as_echo_n "(cached) " >&6
33661else
33662 case $LPDelegate in
33663 [\\/]* | ?:[\\/]*)
33664 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33665 ;;
33666 *)
33667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33668for as_dir in $PATH
33669do
33670 IFS=$as_save_IFS
33671 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033672 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033674 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033676 break 2
33677 fi
33678done
cristy8b350f62009-11-15 23:12:43 +000033679 done
cristy3ed852e2009-09-05 21:47:34 +000033680IFS=$as_save_IFS
33681
33682 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33683 ;;
33684esac
33685fi
33686LPDelegate=$ac_cv_path_LPDelegate
33687if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033689$as_echo "$LPDelegate" >&6; }
33690else
cristy8b350f62009-11-15 23:12:43 +000033691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033692$as_echo "no" >&6; }
33693fi
33694
33695
33696# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33697set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033699$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033700if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033701 $as_echo_n "(cached) " >&6
33702else
33703 case $LPRDelegate in
33704 [\\/]* | ?:[\\/]*)
33705 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33706 ;;
33707 *)
33708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33709for as_dir in $PATH
33710do
33711 IFS=$as_save_IFS
33712 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033713 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033715 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033717 break 2
33718 fi
33719done
cristy8b350f62009-11-15 23:12:43 +000033720 done
cristy3ed852e2009-09-05 21:47:34 +000033721IFS=$as_save_IFS
33722
33723 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33724 ;;
33725esac
33726fi
33727LPRDelegate=$ac_cv_path_LPRDelegate
33728if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033730$as_echo "$LPRDelegate" >&6; }
33731else
cristy8b350f62009-11-15 23:12:43 +000033732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033733$as_echo "no" >&6; }
33734fi
33735
33736
cristy3ed852e2009-09-05 21:47:34 +000033737# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33738set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033740$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033741if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033742 $as_echo_n "(cached) " >&6
33743else
33744 case $LaunchDelegate in
33745 [\\/]* | ?:[\\/]*)
33746 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33747 ;;
33748 *)
33749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33750for as_dir in $PATH
33751do
33752 IFS=$as_save_IFS
33753 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033754 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033756 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033758 break 2
33759 fi
33760done
cristy8b350f62009-11-15 23:12:43 +000033761 done
cristy3ed852e2009-09-05 21:47:34 +000033762IFS=$as_save_IFS
33763
33764 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33765 ;;
33766esac
33767fi
33768LaunchDelegate=$ac_cv_path_LaunchDelegate
33769if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033771$as_echo "$LaunchDelegate" >&6; }
33772else
cristy8b350f62009-11-15 23:12:43 +000033773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033774$as_echo "no" >&6; }
33775fi
33776
33777
33778# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33779set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033782if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033783 $as_echo_n "(cached) " >&6
33784else
33785 case $MANDelegate in
33786 [\\/]* | ?:[\\/]*)
33787 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33788 ;;
33789 *)
33790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33791for as_dir in $PATH
33792do
33793 IFS=$as_save_IFS
33794 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033795 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033797 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033799 break 2
33800 fi
33801done
cristy8b350f62009-11-15 23:12:43 +000033802 done
cristy3ed852e2009-09-05 21:47:34 +000033803IFS=$as_save_IFS
33804
33805 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33806 ;;
33807esac
33808fi
33809MANDelegate=$ac_cv_path_MANDelegate
33810if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033812$as_echo "$MANDelegate" >&6; }
33813else
cristy8b350f62009-11-15 23:12:43 +000033814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033815$as_echo "no" >&6; }
33816fi
33817
33818
33819# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33820set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033822$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033823if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033824 $as_echo_n "(cached) " >&6
33825else
33826 case $MPEGDecodeDelegate in
33827 [\\/]* | ?:[\\/]*)
33828 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33829 ;;
33830 *)
33831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33832for as_dir in $PATH
33833do
33834 IFS=$as_save_IFS
33835 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033836 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033838 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033840 break 2
33841 fi
33842done
cristy8b350f62009-11-15 23:12:43 +000033843 done
cristy3ed852e2009-09-05 21:47:34 +000033844IFS=$as_save_IFS
33845
33846 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33847 ;;
33848esac
33849fi
33850MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33851if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033853$as_echo "$MPEGDecodeDelegate" >&6; }
33854else
cristy8b350f62009-11-15 23:12:43 +000033855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033856$as_echo "no" >&6; }
33857fi
33858
33859
cristy81ab5af2013-10-06 18:28:39 +000033860if test "$MPEGDecodeDelegate" == "$MPEGDecodeDelegateDefault" ; then
33861 MPEGDecodeDelegateDefault='ffmpeg'
33862 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33863set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33865$as_echo_n "checking for $ac_word... " >&6; }
33866if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33867 $as_echo_n "(cached) " >&6
33868else
33869 case $MPEGDecodeDelegate in
33870 [\\/]* | ?:[\\/]*)
33871 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33872 ;;
33873 *)
33874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33875for as_dir in $PATH
33876do
33877 IFS=$as_save_IFS
33878 test -z "$as_dir" && as_dir=.
33879 for ac_exec_ext in '' $ac_executable_extensions; do
33880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33881 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33883 break 2
33884 fi
33885done
33886 done
33887IFS=$as_save_IFS
33888
33889 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33890 ;;
33891esac
33892fi
33893MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33894if test -n "$MPEGDecodeDelegate"; then
33895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33896$as_echo "$MPEGDecodeDelegate" >&6; }
33897else
33898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33899$as_echo "no" >&6; }
33900fi
33901
33902
33903fi;
cristy3ed852e2009-09-05 21:47:34 +000033904# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33905set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033907$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033908if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033909 $as_echo_n "(cached) " >&6
33910else
33911 case $MPEGEncodeDelegate in
33912 [\\/]* | ?:[\\/]*)
33913 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33914 ;;
33915 *)
33916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33917for as_dir in $PATH
33918do
33919 IFS=$as_save_IFS
33920 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033921 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033923 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033925 break 2
33926 fi
33927done
cristy8b350f62009-11-15 23:12:43 +000033928 done
cristy3ed852e2009-09-05 21:47:34 +000033929IFS=$as_save_IFS
33930
33931 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33932 ;;
33933esac
33934fi
33935MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33936if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033938$as_echo "$MPEGEncodeDelegate" >&6; }
33939else
cristy8b350f62009-11-15 23:12:43 +000033940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033941$as_echo "no" >&6; }
33942fi
33943
33944
cristy81ab5af2013-10-06 18:28:39 +000033945if test "$MPEGEncodeDelegate" == "$MPEGEncodeDelegateDefault" ; then
33946 MPEGEncodeDelegateDefault='ffmpeg'
33947 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33948set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33950$as_echo_n "checking for $ac_word... " >&6; }
33951if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33952 $as_echo_n "(cached) " >&6
33953else
33954 case $MPEGEncodeDelegate in
33955 [\\/]* | ?:[\\/]*)
33956 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33957 ;;
33958 *)
33959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33960for as_dir in $PATH
33961do
33962 IFS=$as_save_IFS
33963 test -z "$as_dir" && as_dir=.
33964 for ac_exec_ext in '' $ac_executable_extensions; do
33965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33966 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33968 break 2
33969 fi
33970done
33971 done
33972IFS=$as_save_IFS
33973
33974 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33975 ;;
33976esac
33977fi
33978MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33979if test -n "$MPEGEncodeDelegate"; then
33980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33981$as_echo "$MPEGEncodeDelegate" >&6; }
33982else
33983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33984$as_echo "no" >&6; }
33985fi
33986
33987
33988fi;
cristy935c86e2010-06-05 23:50:07 +000033989# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33990set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33992$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033993if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033994 $as_echo_n "(cached) " >&6
33995else
33996 case $MrSIDDecodeDelegate in
33997 [\\/]* | ?:[\\/]*)
33998 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33999 ;;
34000 *)
34001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34002for as_dir in $PATH
34003do
34004 IFS=$as_save_IFS
34005 test -z "$as_dir" && as_dir=.
34006 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034008 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34010 break 2
34011 fi
34012done
34013 done
34014IFS=$as_save_IFS
34015
34016 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34017 ;;
34018esac
34019fi
34020MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34021if test -n "$MrSIDDecodeDelegate"; then
34022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34023$as_echo "$MrSIDDecodeDelegate" >&6; }
34024else
34025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34026$as_echo "no" >&6; }
34027fi
34028
34029
cristy3ed852e2009-09-05 21:47:34 +000034030# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34031set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034033$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034034if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034035 $as_echo_n "(cached) " >&6
34036else
34037 case $MVDelegate in
34038 [\\/]* | ?:[\\/]*)
34039 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34040 ;;
34041 *)
34042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34043for as_dir in $PATH
34044do
34045 IFS=$as_save_IFS
34046 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034047 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034049 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034051 break 2
34052 fi
34053done
cristy8b350f62009-11-15 23:12:43 +000034054 done
cristy3ed852e2009-09-05 21:47:34 +000034055IFS=$as_save_IFS
34056
34057 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34058 ;;
34059esac
34060fi
34061MVDelegate=$ac_cv_path_MVDelegate
34062if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034064$as_echo "$MVDelegate" >&6; }
34065else
cristy8b350f62009-11-15 23:12:43 +000034066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034067$as_echo "no" >&6; }
34068fi
34069
34070
34071# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34072set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034074$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034075if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034076 $as_echo_n "(cached) " >&6
34077else
34078 case $PCLDelegate in
34079 [\\/]* | ?:[\\/]*)
34080 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34081 ;;
34082 *)
34083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34084for as_dir in $PATH
34085do
34086 IFS=$as_save_IFS
34087 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034088 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034090 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034092 break 2
34093 fi
34094done
cristy8b350f62009-11-15 23:12:43 +000034095 done
cristy3ed852e2009-09-05 21:47:34 +000034096IFS=$as_save_IFS
34097
34098 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34099 ;;
34100esac
34101fi
34102PCLDelegate=$ac_cv_path_PCLDelegate
34103if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034105$as_echo "$PCLDelegate" >&6; }
34106else
cristy8b350f62009-11-15 23:12:43 +000034107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034108$as_echo "no" >&6; }
34109fi
34110
34111
34112# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34113set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034115$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034116if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034117 $as_echo_n "(cached) " >&6
34118else
34119 case $PGPDecodeDelegate in
34120 [\\/]* | ?:[\\/]*)
34121 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34122 ;;
34123 *)
34124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34125for as_dir in $PATH
34126do
34127 IFS=$as_save_IFS
34128 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034129 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034131 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034133 break 2
34134 fi
34135done
cristy8b350f62009-11-15 23:12:43 +000034136 done
cristy3ed852e2009-09-05 21:47:34 +000034137IFS=$as_save_IFS
34138
34139 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34140 ;;
34141esac
34142fi
34143PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34144if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034146$as_echo "$PGPDecodeDelegate" >&6; }
34147else
cristy8b350f62009-11-15 23:12:43 +000034148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034149$as_echo "no" >&6; }
34150fi
34151
34152
34153# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34154set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034156$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034157if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034158 $as_echo_n "(cached) " >&6
34159else
34160 case $POVDelegate in
34161 [\\/]* | ?:[\\/]*)
34162 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34163 ;;
34164 *)
34165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34166for as_dir in $PATH
34167do
34168 IFS=$as_save_IFS
34169 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034170 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034172 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034174 break 2
34175 fi
34176done
cristy8b350f62009-11-15 23:12:43 +000034177 done
cristy3ed852e2009-09-05 21:47:34 +000034178IFS=$as_save_IFS
34179
34180 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34181 ;;
34182esac
34183fi
34184POVDelegate=$ac_cv_path_POVDelegate
34185if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034187$as_echo "$POVDelegate" >&6; }
34188else
cristy8b350f62009-11-15 23:12:43 +000034189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034190$as_echo "no" >&6; }
34191fi
34192
34193
34194for ac_prog in gsx gsc "$PSDelegateDefault"
34195do
34196 # Extract the first word of "$ac_prog", so it can be a program name with args.
34197set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034199$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034200if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034201 $as_echo_n "(cached) " >&6
34202else
34203 case $PSDelegate in
34204 [\\/]* | ?:[\\/]*)
34205 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34206 ;;
34207 *)
34208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34209for as_dir in $PATH
34210do
34211 IFS=$as_save_IFS
34212 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034213 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034215 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034217 break 2
34218 fi
34219done
cristy8b350f62009-11-15 23:12:43 +000034220 done
cristy3ed852e2009-09-05 21:47:34 +000034221IFS=$as_save_IFS
34222
34223 ;;
34224esac
34225fi
34226PSDelegate=$ac_cv_path_PSDelegate
34227if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034229$as_echo "$PSDelegate" >&6; }
34230else
cristy8b350f62009-11-15 23:12:43 +000034231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034232$as_echo "no" >&6; }
34233fi
34234
34235
34236 test -n "$PSDelegate" && break
34237done
34238test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34239
34240# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34241set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034243$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034244if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034245 $as_echo_n "(cached) " >&6
34246else
34247 case $RLEEncodeDelegate in
34248 [\\/]* | ?:[\\/]*)
34249 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34250 ;;
34251 *)
34252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34253for as_dir in $PATH
34254do
34255 IFS=$as_save_IFS
34256 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034257 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034259 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034261 break 2
34262 fi
34263done
cristy8b350f62009-11-15 23:12:43 +000034264 done
cristy3ed852e2009-09-05 21:47:34 +000034265IFS=$as_save_IFS
34266
34267 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34268 ;;
34269esac
34270fi
34271RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34272if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034274$as_echo "$RLEEncodeDelegate" >&6; }
34275else
cristy8b350f62009-11-15 23:12:43 +000034276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034277$as_echo "no" >&6; }
34278fi
34279
34280
34281# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34282set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034284$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034285if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034286 $as_echo_n "(cached) " >&6
34287else
34288 case $RMDelegate in
34289 [\\/]* | ?:[\\/]*)
34290 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34291 ;;
34292 *)
34293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34294for as_dir in $PATH
34295do
34296 IFS=$as_save_IFS
34297 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034298 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034300 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034302 break 2
34303 fi
34304done
cristy8b350f62009-11-15 23:12:43 +000034305 done
cristy3ed852e2009-09-05 21:47:34 +000034306IFS=$as_save_IFS
34307
34308 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34309 ;;
34310esac
34311fi
34312RMDelegate=$ac_cv_path_RMDelegate
34313if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034315$as_echo "$RMDelegate" >&6; }
34316else
cristy8b350f62009-11-15 23:12:43 +000034317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034318$as_echo "no" >&6; }
34319fi
34320
34321
cristy4689cf02010-02-17 21:15:45 +000034322# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34323set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34325$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034326if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034327 $as_echo_n "(cached) " >&6
34328else
34329 case $RSVGDecodeDelegate in
34330 [\\/]* | ?:[\\/]*)
34331 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34332 ;;
34333 *)
34334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34335for as_dir in $PATH
34336do
34337 IFS=$as_save_IFS
34338 test -z "$as_dir" && as_dir=.
34339 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034341 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34343 break 2
34344 fi
34345done
34346 done
34347IFS=$as_save_IFS
34348
34349 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34350 ;;
34351esac
34352fi
34353RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34354if test -n "$RSVGDecodeDelegate"; then
34355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34356$as_echo "$RSVGDecodeDelegate" >&6; }
34357else
34358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34359$as_echo "no" >&6; }
34360fi
34361
34362
cristy3ed852e2009-09-05 21:47:34 +000034363# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34364set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034366$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034367if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034368 $as_echo_n "(cached) " >&6
34369else
34370 case $SCANDecodeDelegate in
34371 [\\/]* | ?:[\\/]*)
34372 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34373 ;;
34374 *)
34375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34376for as_dir in $PATH
34377do
34378 IFS=$as_save_IFS
34379 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034380 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034382 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034384 break 2
34385 fi
34386done
cristy8b350f62009-11-15 23:12:43 +000034387 done
cristy3ed852e2009-09-05 21:47:34 +000034388IFS=$as_save_IFS
34389
34390 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34391 ;;
34392esac
34393fi
34394SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34395if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034397$as_echo "$SCANDecodeDelegate" >&6; }
34398else
cristy8b350f62009-11-15 23:12:43 +000034399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034400$as_echo "no" >&6; }
34401fi
34402
34403
cristyec6934f2012-08-14 18:38:40 +000034404# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34405set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34407$as_echo_n "checking for $ac_word... " >&6; }
34408if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34409 $as_echo_n "(cached) " >&6
34410else
34411 case $SVGDecodeDelegate in
34412 [\\/]* | ?:[\\/]*)
34413 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34414 ;;
34415 *)
34416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34417for as_dir in $PATH
34418do
34419 IFS=$as_save_IFS
34420 test -z "$as_dir" && as_dir=.
34421 for ac_exec_ext in '' $ac_executable_extensions; do
34422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34423 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34425 break 2
34426 fi
34427done
34428 done
34429IFS=$as_save_IFS
34430
34431 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34432 ;;
34433esac
34434fi
34435SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34436if test -n "$SVGDecodeDelegate"; then
34437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34438$as_echo "$SVGDecodeDelegate" >&6; }
34439else
34440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34441$as_echo "no" >&6; }
34442fi
34443
34444
cristy3ed852e2009-09-05 21:47:34 +000034445# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34446set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034448$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034449if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034450 $as_echo_n "(cached) " >&6
34451else
34452 case $TXTDelegate in
34453 [\\/]* | ?:[\\/]*)
34454 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34455 ;;
34456 *)
34457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34458for as_dir in $PATH
34459do
34460 IFS=$as_save_IFS
34461 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034462 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034464 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034466 break 2
34467 fi
34468done
cristy8b350f62009-11-15 23:12:43 +000034469 done
cristy3ed852e2009-09-05 21:47:34 +000034470IFS=$as_save_IFS
34471
34472 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34473 ;;
34474esac
34475fi
34476TXTDelegate=$ac_cv_path_TXTDelegate
34477if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034479$as_echo "$TXTDelegate" >&6; }
34480else
cristy8b350f62009-11-15 23:12:43 +000034481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034482$as_echo "no" >&6; }
34483fi
34484
34485
cristy5ac9ac82010-07-29 13:24:24 +000034486# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34487set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34489$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034490if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034491 $as_echo_n "(cached) " >&6
34492else
34493 case $UniconvertorDelegate in
34494 [\\/]* | ?:[\\/]*)
34495 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34496 ;;
34497 *)
34498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34499for as_dir in $PATH
34500do
34501 IFS=$as_save_IFS
34502 test -z "$as_dir" && as_dir=.
34503 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034505 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34507 break 2
34508 fi
34509done
34510 done
34511IFS=$as_save_IFS
34512
34513 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34514 ;;
34515esac
34516fi
34517UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34518if test -n "$UniconvertorDelegate"; then
34519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34520$as_echo "$UniconvertorDelegate" >&6; }
34521else
34522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34523$as_echo "no" >&6; }
34524fi
34525
34526
cristy86e86092013-08-04 17:43:57 +000034527# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34528set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34530$as_echo_n "checking for $ac_word... " >&6; }
34531if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34532 $as_echo_n "(cached) " >&6
34533else
34534 case $WebPDecodeDelegate in
34535 [\\/]* | ?:[\\/]*)
34536 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34537 ;;
34538 *)
34539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34540for as_dir in $PATH
34541do
34542 IFS=$as_save_IFS
34543 test -z "$as_dir" && as_dir=.
34544 for ac_exec_ext in '' $ac_executable_extensions; do
34545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34546 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34548 break 2
34549 fi
34550done
34551 done
34552IFS=$as_save_IFS
34553
34554 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34555 ;;
34556esac
34557fi
34558WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34559if test -n "$WebPDecodeDelegate"; then
34560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34561$as_echo "$WebPDecodeDelegate" >&6; }
34562else
34563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34564$as_echo "no" >&6; }
34565fi
34566
34567
34568# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34569set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34571$as_echo_n "checking for $ac_word... " >&6; }
34572if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34573 $as_echo_n "(cached) " >&6
34574else
34575 case $WebPEncodeDelegate in
34576 [\\/]* | ?:[\\/]*)
34577 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34578 ;;
34579 *)
34580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34581for as_dir in $PATH
34582do
34583 IFS=$as_save_IFS
34584 test -z "$as_dir" && as_dir=.
34585 for ac_exec_ext in '' $ac_executable_extensions; do
34586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34587 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34589 break 2
34590 fi
34591done
34592 done
34593IFS=$as_save_IFS
34594
34595 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34596 ;;
34597esac
34598fi
34599WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34600if test -n "$WebPEncodeDelegate"; then
34601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34602$as_echo "$WebPEncodeDelegate" >&6; }
34603else
34604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34605$as_echo "no" >&6; }
34606fi
34607
34608
cristy3ed852e2009-09-05 21:47:34 +000034609# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34610set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034612$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034613if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034614 $as_echo_n "(cached) " >&6
34615else
34616 case $WMFDecodeDelegate in
34617 [\\/]* | ?:[\\/]*)
34618 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34619 ;;
34620 *)
34621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34622for as_dir in $PATH
34623do
34624 IFS=$as_save_IFS
34625 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034626 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034628 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034630 break 2
34631 fi
34632done
cristy8b350f62009-11-15 23:12:43 +000034633 done
cristy3ed852e2009-09-05 21:47:34 +000034634IFS=$as_save_IFS
34635
34636 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34637 ;;
34638esac
34639fi
34640WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34641if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034643$as_echo "$WMFDecodeDelegate" >&6; }
34644else
cristy8b350f62009-11-15 23:12:43 +000034645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034646$as_echo "no" >&6; }
34647fi
34648
34649
34650# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34651set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034653$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034654if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034655 $as_echo_n "(cached) " >&6
34656else
34657 case $WWWDecodeDelegate in
34658 [\\/]* | ?:[\\/]*)
34659 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34660 ;;
34661 *)
34662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34663for as_dir in $PATH
34664do
34665 IFS=$as_save_IFS
34666 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034667 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034669 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034671 break 2
34672 fi
34673done
cristy8b350f62009-11-15 23:12:43 +000034674 done
cristy3ed852e2009-09-05 21:47:34 +000034675IFS=$as_save_IFS
34676
34677 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34678 ;;
34679esac
34680fi
34681WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34682if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034684$as_echo "$WWWDecodeDelegate" >&6; }
34685else
cristy8b350f62009-11-15 23:12:43 +000034686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034687$as_echo "no" >&6; }
34688fi
34689
34690
34691# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34692set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034694$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034695if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034696 $as_echo_n "(cached) " >&6
34697else
34698 case $XPSDelegate in
34699 [\\/]* | ?:[\\/]*)
34700 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34701 ;;
34702 *)
34703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34704for as_dir in $PATH
34705do
34706 IFS=$as_save_IFS
34707 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034708 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034710 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034712 break 2
34713 fi
34714done
cristy8b350f62009-11-15 23:12:43 +000034715 done
cristy3ed852e2009-09-05 21:47:34 +000034716IFS=$as_save_IFS
34717
34718 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34719 ;;
34720esac
34721fi
34722XPSDelegate=$ac_cv_path_XPSDelegate
34723if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034725$as_echo "$XPSDelegate" >&6; }
34726else
cristy8b350f62009-11-15 23:12:43 +000034727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034728$as_echo "no" >&6; }
34729fi
34730
34731
34732# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34733set dummy "$ZipDelegateDefault"; 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_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034737 $as_echo_n "(cached) " >&6
34738else
34739 case $ZipDelegate in
34740 [\\/]* | ?:[\\/]*)
34741 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34742 ;;
34743 *)
34744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34745for as_dir in $PATH
34746do
34747 IFS=$as_save_IFS
34748 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034749 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034751 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034753 break 2
34754 fi
34755done
cristy8b350f62009-11-15 23:12:43 +000034756 done
cristy3ed852e2009-09-05 21:47:34 +000034757IFS=$as_save_IFS
34758
34759 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34760 ;;
34761esac
34762fi
34763ZipDelegate=$ac_cv_path_ZipDelegate
34764if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034766$as_echo "$ZipDelegate" >&6; }
34767else
cristy8b350f62009-11-15 23:12:43 +000034768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034769$as_echo "no" >&6; }
34770fi
34771
34772
34773
34774# Prefer lpr to lp; lp needs options tacked on.
34775if test "$LPRDelegate" != no; then
34776 PrintDelegate="$LPRDelegate"
34777else
34778 PrintDelegate="$LPDelegate -c -s"
34779fi
34780
34781
34782# Installed ImageMagick utiltity paths
34783ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34784DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34785MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34786
34787# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034788have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034789have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34790have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34791have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034792have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034793have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34794have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034795have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34796
34797#
34798# Test for font directories
34799#
34800type_include_files=''
34801
cristy430a7312010-01-21 20:44:04 +000034802# Dejavu fonts.
34803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34804$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34805dejavu_font_dir=''
34806if test "${with_dejavu_font_dir}" != 'default'; then
34807 dejavu_font_dir="${with_dejavu_font_dir}/"
34808else
34809 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34810 if test -f "${font_dir}DejaVuSerif.ttf"; then
34811 dejavu_font_dir="${font_dir}"
34812 break 1
34813 fi
34814 done
34815fi
34816if test "${dejavu_font_dir}x" != 'x'; then
34817 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34819$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034820else
cristyad38abe2012-12-23 23:03:21 +000034821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34822$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034823fi
34824
34825
cristy3ed852e2009-09-05 21:47:34 +000034826# Windows
34827windows_font_dir=''
34828if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34829 windows_font_dir="${with_windows_font_dir}/"
34830fi
cristy430a7312010-01-21 20:44:04 +000034831if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034832 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34833 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34834 fi
34835 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34836 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34837 fi
34838 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34839 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34840 fi
34841fi
cristy430a7312010-01-21 20:44:04 +000034842if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034843 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34844fi
34845
34846
34847# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034849$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34850ghostscript_font_dir=''
34851if test "${with_gs_font_dir}" != 'default'; then
34852 ghostscript_font_dir="${with_gs_font_dir}/"
34853else
34854 if test "${native_win32_build}" = 'yes'; then
34855 # Native Windows Build
34856 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34857 if test -f "${font_dir}a010013l.pfb"; then
34858 ghostscript_font_dir="$font_dir"
34859 break 1
34860 fi
34861 done
34862 if test "${PSDelegate}" != 'gswin32c'; then
34863 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34864 fi
34865 else
34866 # Linux / Mac OS X / Unix Build
34867 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
34868 if test -f "${font_dir}a010013l.pfb"; then
34869 ghostscript_font_dir="${font_dir}"
34870 break 1
34871 fi
34872 done
34873 if test "${ghostscript_font_dir}x" = 'x'; then
34874 if test "$PSDelegate" != 'gs'; then
34875 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34876 fi
34877 fi
34878 fi
34879fi
34880if test "${ghostscript_font_dir}x" != 'x'; then
34881 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34883$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034884else
cristyad38abe2012-12-23 23:03:21 +000034885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34886$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034887fi
34888
34889case "${build_os}" in
34890 mingw* )
34891 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34892 ;;
34893esac
34894
34895
34896
34897#
34898# Handle case where user doesn't want frozen paths
34899#
34900if test "$with_frozenpaths" != 'yes'; then
34901 # Re-set delegate definitions to default (no paths)
34902 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034903 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34904 BZIPDelegate="$BZIPDelegateDefault"
34905 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034906 CatDelegate="$CatDelegateDefault"
34907 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034908 DisplayDelegate="$DisplayDelegateDefault"
34909 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034910 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34911 EchoDelegate="$EchoDelegateDefault"
34912 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034913 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034914 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034915 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34916 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34917 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34918 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034919 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34920 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034921 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034922 LaunchDelegate="$LaunchDelegateDefault"
34923 MANDelegate="$MANDelegateDefault"
34924 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34925 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034926 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034927 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34928 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034929 PCLDelegate="$PCLDelegateDefault"
34930 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34931 POVDelegate="$POVDelegateDefault"
34932 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034933 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34934 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034935 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034936 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034937 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034938 ShowImageDelegate="$ShowImageDelegateDefault"
34939 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034940 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000034941 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34942 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034943 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34944 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34945 XPSDelegate="$XPSDelegateDefault"
34946 ZipDelegate="$ZipDelegateDefault"
34947fi
34948
34949# Delegate substitutions
34950
34951
34952
34953
34954
34955
34956
34957
34958
34959
34960
34961
34962
34963
34964
34965
34966
34967
34968
34969
34970
34971
34972
34973
34974
34975
34976
34977
34978
34979
34980
34981
34982
34983
34984
34985
34986
34987
34988
34989
cristy71f53d52013-04-27 13:33:59 +000034990
34991
cristy3ed852e2009-09-05 21:47:34 +000034992#
34993# RPM support.
34994#
34995RPM=''
34996for ac_prog in gnutar gtar tar
34997do
34998 # Extract the first word of "$ac_prog", so it can be a program name with args.
34999set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035001$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035002if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035003 $as_echo_n "(cached) " >&6
35004else
35005 if test -n "$TAR"; then
35006 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35007else
35008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35009for as_dir in $PATH
35010do
35011 IFS=$as_save_IFS
35012 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035013 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035015 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035017 break 2
35018 fi
35019done
cristy8b350f62009-11-15 23:12:43 +000035020 done
cristy3ed852e2009-09-05 21:47:34 +000035021IFS=$as_save_IFS
35022
35023fi
35024fi
35025TAR=$ac_cv_prog_TAR
35026if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035028$as_echo "$TAR" >&6; }
35029else
cristy8b350f62009-11-15 23:12:43 +000035030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035031$as_echo "no" >&6; }
35032fi
35033
35034
35035 test -n "$TAR" && break
35036done
35037
35038for ac_prog in perl
35039do
35040 # Extract the first word of "$ac_prog", so it can be a program name with args.
35041set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035043$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035044if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035045 $as_echo_n "(cached) " >&6
35046else
35047 if test -n "$PERL"; then
35048 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35049else
35050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35051for as_dir in $PATH
35052do
35053 IFS=$as_save_IFS
35054 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035055 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035057 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035059 break 2
35060 fi
35061done
cristy8b350f62009-11-15 23:12:43 +000035062 done
cristy3ed852e2009-09-05 21:47:34 +000035063IFS=$as_save_IFS
35064
35065fi
35066fi
35067PERL=$ac_cv_prog_PERL
35068if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035070$as_echo "$PERL" >&6; }
35071else
cristy8b350f62009-11-15 23:12:43 +000035072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035073$as_echo "no" >&6; }
35074fi
35075
35076
35077 test -n "$PERL" && break
35078done
35079
35080for ac_prog in rpmbuild rpm
35081do
35082 # Extract the first word of "$ac_prog", so it can be a program name with args.
35083set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035085$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035086if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035087 $as_echo_n "(cached) " >&6
35088else
35089 if test -n "$RPM"; then
35090 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35091else
35092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35093for as_dir in $PATH
35094do
35095 IFS=$as_save_IFS
35096 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035097 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035099 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035101 break 2
35102 fi
35103done
cristy8b350f62009-11-15 23:12:43 +000035104 done
cristy3ed852e2009-09-05 21:47:34 +000035105IFS=$as_save_IFS
35106
35107fi
35108fi
35109RPM=$ac_cv_prog_RPM
35110if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035112$as_echo "$RPM" >&6; }
35113else
cristy8b350f62009-11-15 23:12:43 +000035114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035115$as_echo "no" >&6; }
35116fi
35117
35118
35119 test -n "$RPM" && break
35120done
35121
35122
cristy73bd4a52010-10-05 11:24:23 +000035123ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35124
35125
35126AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35127
35128
35129AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35130
35131
35132AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35133
35134
35135 if test "x$RPM" != "x" ; then
35136 RPM_DELEGATE_TRUE=
35137 RPM_DELEGATE_FALSE='#'
35138else
35139 RPM_DELEGATE_TRUE='#'
35140 RPM_DELEGATE_FALSE=
35141fi
35142
cristy3ed852e2009-09-05 21:47:34 +000035143
35144#
35145# 7ZIP support (http://p7zip.sourceforge.net/)
35146#
35147P7ZIP=''
35148for ac_prog in 7za
35149do
35150 # Extract the first word of "$ac_prog", so it can be a program name with args.
35151set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035153$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035154if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035155 $as_echo_n "(cached) " >&6
35156else
35157 if test -n "$P7ZIP"; then
35158 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35159else
35160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35161for as_dir in $PATH
35162do
35163 IFS=$as_save_IFS
35164 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035165 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035167 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035169 break 2
35170 fi
35171done
cristy8b350f62009-11-15 23:12:43 +000035172 done
cristy3ed852e2009-09-05 21:47:34 +000035173IFS=$as_save_IFS
35174
35175fi
35176fi
35177P7ZIP=$ac_cv_prog_P7ZIP
35178if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035180$as_echo "$P7ZIP" >&6; }
35181else
cristy8b350f62009-11-15 23:12:43 +000035182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035183$as_echo "no" >&6; }
35184fi
35185
35186
35187 test -n "$P7ZIP" && break
35188done
35189
35190
cristy73bd4a52010-10-05 11:24:23 +000035191 if test "x$P7ZIP" != "x" ; then
35192 P7ZIP_DELEGATE_TRUE=
35193 P7ZIP_DELEGATE_FALSE='#'
35194else
35195 P7ZIP_DELEGATE_TRUE='#'
35196 P7ZIP_DELEGATE_FALSE=
35197fi
35198
cristy3ed852e2009-09-05 21:47:34 +000035199
35200#
35201# ZIP support (http://www.info-zip.org/Zip.html)
35202#
35203ZIP=''
35204for ac_prog in zip
35205do
35206 # Extract the first word of "$ac_prog", so it can be a program name with args.
35207set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035209$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035210if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035211 $as_echo_n "(cached) " >&6
35212else
35213 if test -n "$ZIP"; then
35214 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35215else
35216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35217for as_dir in $PATH
35218do
35219 IFS=$as_save_IFS
35220 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035221 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035223 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035225 break 2
35226 fi
35227done
cristy8b350f62009-11-15 23:12:43 +000035228 done
cristy3ed852e2009-09-05 21:47:34 +000035229IFS=$as_save_IFS
35230
35231fi
35232fi
35233ZIP=$ac_cv_prog_ZIP
35234if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035236$as_echo "$ZIP" >&6; }
35237else
cristy8b350f62009-11-15 23:12:43 +000035238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035239$as_echo "no" >&6; }
35240fi
35241
35242
35243 test -n "$ZIP" && break
35244done
35245
35246
cristy73bd4a52010-10-05 11:24:23 +000035247 if test "x$ZIP" != "x" ; then
35248 ZIP_DELEGATE_TRUE=
35249 ZIP_DELEGATE_FALSE='#'
35250else
35251 ZIP_DELEGATE_TRUE='#'
35252 ZIP_DELEGATE_FALSE=
35253fi
35254
cristy3ed852e2009-09-05 21:47:34 +000035255
35256#
35257# GhostPCL related configuration.
35258#
35259PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035260PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035261PCLMonoDevice=pbmraw
35262if test -z "$PCLVersion"; then
35263 PCLVersion='unknown'
35264fi
35265if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35267$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035269$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35271$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035272 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035274$as_echo_n "checking for pcl color device... " >&6; }
35275 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35276 :
35277 else
35278 PCLColorDevice=ppmraw
35279 fi
cristyad38abe2012-12-23 23:03:21 +000035280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35281$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035282
35283 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035285$as_echo_n "checking for pcl CMYK device... " >&6; }
35286 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35287 :
35288 else
35289 PCLCMYKDevice=$PCLColorDevice
35290 fi
cristyad38abe2012-12-23 23:03:21 +000035291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35292$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035293
35294 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035296$as_echo_n "checking for pcl mono device... " >&6; }
35297 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35298 :
35299 else
35300 PCLMonoDevice=$PCLColorDevice
35301 fi
cristyad38abe2012-12-23 23:03:21 +000035302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35303$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035304fi
35305
35306
35307
35308
35309
35310
35311#
35312# GhostXPS related configuration.
35313#
35314XPSColorDevice=ppmraw
35315XPSCMYKDevice=bmpsep8
35316XPSMonoDevice=pbmraw
35317if test -z "$XPSVersion"; then
35318 XPSVersion='unknown'
35319fi
35320if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35322$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035324$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35326$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035327 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035329$as_echo_n "checking for xps color device... " >&6; }
35330 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35331 :
35332 else
35333 XPSColorDevice=ppmraw
35334 fi
cristyad38abe2012-12-23 23:03:21 +000035335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35336$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035337
35338 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035340$as_echo_n "checking for xps CMYK device... " >&6; }
35341 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35342 :
35343 else
35344 XPSCMYKDevice=$XPSColorDevice
35345 fi
cristyad38abe2012-12-23 23:03:21 +000035346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35347$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035348
35349 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035351$as_echo_n "checking for xps mono device... " >&6; }
35352 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35353 :
35354 else
35355 XPSMonoDevice=$XPSColorDevice
35356 fi
cristyad38abe2012-12-23 23:03:21 +000035357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35358$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035359fi
35360
35361
35362
35363
35364
35365
35366#
35367# Ghostscript related configuration.
35368#
cristya97426c2011-02-04 01:41:27 +000035369GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035370GSColorDevice=pnmraw
35371GSCMYKDevice=pam
35372GSMonoDevice=pbmraw
35373GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035374GSPSDevice=ps2write
cristy3ed852e2009-09-05 21:47:34 +000035375GSEPSDevice=epswrite
35376GSVersion='unknown'
35377if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35379$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035381$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35383$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035385$as_echo_n "checking for Ghostscript version... " >&6; }
35386 if GSVersion=`$PSDelegate --version`; then
35387 :
35388 else
35389 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35390 fi
cristyad38abe2012-12-23 23:03:21 +000035391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35392$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035393
35394 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035396$as_echo_n "checking for gs alpha device... " >&6; }
35397 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35398 :
35399 else
35400 GSAlphaDevice=pnmraw
35401 fi
cristyad38abe2012-12-23 23:03:21 +000035402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35403$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035404
35405 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035407$as_echo_n "checking for gs color device... " >&6; }
35408 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35409 :
35410 else
35411 GSColorDevice=pnmraw
35412 fi
cristyad38abe2012-12-23 23:03:21 +000035413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35414$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035415
35416 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035418$as_echo_n "checking for gs CMYK device... " >&6; }
35419 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35420 :
35421 else
35422 GSCMYKDevice=bmpsep8
35423 fi
cristyad38abe2012-12-23 23:03:21 +000035424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35425$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035426
35427 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035429$as_echo_n "checking for gs mono device... " >&6; }
35430 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35431 :
35432 else
35433 GSMonoDevice=$GSColorDevice
35434 fi
cristyad38abe2012-12-23 23:03:21 +000035435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35436$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035437
35438 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035440$as_echo_n "checking for gs PDF writing device... " >&6; }
35441 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35442 :
35443 else
35444 GSPDFDevice=nodevice
35445 fi
cristyad38abe2012-12-23 23:03:21 +000035446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35447$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035448
35449 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035451$as_echo_n "checking for gs PS writing device... " >&6; }
35452 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35453 :
35454 else
35455 GSPSDevice=nodevice
35456 fi
cristyad38abe2012-12-23 23:03:21 +000035457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35458$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035459
35460 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035462$as_echo_n "checking for gs EPS writing device... " >&6; }
35463 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35464 :
35465 else
35466 GSEPSDevice=nodevice
35467 fi
cristyad38abe2012-12-23 23:03:21 +000035468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35469$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035470fi
35471
35472
35473
35474
35475
35476
35477
35478
35479
35480
35481#
35482# PerlMagick-related configuration
35483#
35484
35485# Look for PERL if PerlMagick requested
35486# If name/path of desired PERL interpreter is specified, look for that one first
35487have_perl='no'
35488if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35490$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035492$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35494$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035495 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035497$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035498if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035499 $as_echo_n "(cached) " >&6
35500else
35501 ac_cv_path_PERL="$with_perl"
35502fi
cristy8b350f62009-11-15 23:12:43 +000035503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035504$as_echo "$ac_cv_path_PERL" >&6; };
35505 PERL=$ac_cv_path_PERL
35506 have_perl="$ac_cv_path_PERL"
35507 else
35508 for ac_prog in perl perl5
35509do
35510 # Extract the first word of "$ac_prog", so it can be a program name with args.
35511set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035513$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035514if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035515 $as_echo_n "(cached) " >&6
35516else
35517 case $PERL in
35518 [\\/]* | ?:[\\/]*)
35519 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35520 ;;
35521 *)
35522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35523for as_dir in $PATH
35524do
35525 IFS=$as_save_IFS
35526 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035527 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035529 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035531 break 2
35532 fi
35533done
cristy8b350f62009-11-15 23:12:43 +000035534 done
cristy3ed852e2009-09-05 21:47:34 +000035535IFS=$as_save_IFS
35536
35537 ;;
35538esac
35539fi
35540PERL=$ac_cv_path_PERL
35541if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035543$as_echo "$PERL" >&6; }
35544else
cristy8b350f62009-11-15 23:12:43 +000035545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035546$as_echo "no" >&6; }
35547fi
35548
35549
35550 test -n "$PERL" && break
35551done
35552 if test "$ac_cv_path_PERL"; then
35553 have_perl="$ac_cv_path_PERL"
35554 fi
35555 fi
35556fi
35557
cristy949301e2010-01-06 01:38:40 +000035558if test "$with_perl" != 'yes' ; then
35559 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35560fi
35561
35562PERL_SUPPORTS_DESTDIR='no'
35563
cristy3ed852e2009-09-05 21:47:34 +000035564with_perl_static='no'
35565with_perl_dynamic='no'
35566if test "$have_perl" != 'no'; then
35567 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35568 with_perl_static='yes'
35569 fi
35570 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35571 with_perl_dynamic='yes'
35572 fi
35573 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035574
35575
35576
35577
35578 if test -n "$PERL"; then :
35579
35580 ax_perl_version="5.8.1"
35581
35582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35583$as_echo_n "checking for perl version... " >&6; }
35584
35585 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35586
35587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35588$as_echo "$perl_version" >&6; }
35589
35590 PERL_VERSION=$perl_version
35591
35592
35593
35594
35595
35596 # Used to indicate true or false condition
35597 ax_compare_version=false
35598
35599 # Convert the two version strings to be compared into a format that
35600 # allows a simple string comparison. The end result is that a version
35601 # string of the form 1.12.5-r617 will be converted to the form
35602 # 0001001200050617. In other words, each number is zero padded to four
35603 # digits, and non digits are removed.
35604
35605 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35606 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35607 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35608 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35609 -e 's/[^0-9]//g'`
35610
35611
35612 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35613 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35614 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35615 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35616 -e 's/[^0-9]//g'`
35617
35618
35619 ax_compare_version=`echo "x$ax_compare_version_A
35620x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35621
35622
35623
35624 if test "$ax_compare_version" = "true" ; then
35625
35626 :
35627 PERL_SUPPORTS_DESTDIR='yes'
35628
35629 else
35630 :
35631 PERL_SUPPORTS_DESTDIR='no'
35632
35633 fi
35634
35635
35636else
35637
35638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35639$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35640 PERL_SUPPORTS_DESTDIR='no'
35641
cristy3ed852e2009-09-05 21:47:34 +000035642fi
cristy73bd4a52010-10-05 11:24:23 +000035643
35644fi
35645 if test "$have_perl" != 'no'; then
35646 WITH_PERL_TRUE=
35647 WITH_PERL_FALSE='#'
35648else
35649 WITH_PERL_TRUE='#'
35650 WITH_PERL_FALSE=
35651fi
35652
35653 if test $with_perl_static = 'yes'; then
35654 WITH_PERL_STATIC_TRUE=
35655 WITH_PERL_STATIC_FALSE='#'
35656else
35657 WITH_PERL_STATIC_TRUE='#'
35658 WITH_PERL_STATIC_FALSE=
35659fi
35660
35661 if test $with_perl_dynamic = 'yes'; then
35662 WITH_PERL_DYNAMIC_TRUE=
35663 WITH_PERL_DYNAMIC_FALSE='#'
35664else
35665 WITH_PERL_DYNAMIC_TRUE='#'
35666 WITH_PERL_DYNAMIC_FALSE=
35667fi
35668
cristy3ed852e2009-09-05 21:47:34 +000035669
35670
35671# Determine path to pick up MagickCore library from for use with building PerlMagick
35672MAGICKCORE_PATH="${LIB_DIR}"
35673if test $with_perl_static = 'yes'; then
35674 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35675 libtool_objdir=$objdir
35676
35677 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035678 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035679fi
35680
35681
cristy2a3eb392012-12-17 13:39:20 +000035682# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035683MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035684if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035685 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035686fi
cristy2a3eb392012-12-17 13:39:20 +000035687if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035688 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035689fi
35690if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035691 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035692fi
35693if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035694 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035695fi
cristy81ab5af2013-10-06 18:28:39 +000035696if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035697 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035698fi
cristy854c9cf2013-08-10 21:03:06 +000035699if test "$have_mupdf" = 'yes' ; then
35700 MAGICK_DELEGATES="$MAGICK_DELEGATES mupdf"
cristyc0884e92013-08-10 17:14:59 +000035701fi
cristy2a3eb392012-12-17 13:39:20 +000035702if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035703 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035704fi
cristy2a3eb392012-12-17 13:39:20 +000035705if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035706 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035707fi
35708if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035709 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035710fi
35711if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035712 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035713fi
35714if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035715 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035716fi
35717if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035718 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035719fi
35720if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035721 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035722fi
35723if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035724 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035725fi
35726if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035727 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035728fi
35729if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035730 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035731fi
35732if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035733 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035734fi
35735if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035736 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035737fi
35738if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035739 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035740fi
cristy99db3872014-01-01 15:11:34 +000035741if test "$have_openjp2" = 'yes' ; then
35742 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000035743fi
cristy2a3eb392012-12-17 13:39:20 +000035744if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035745 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035746fi
35747if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035748 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035749fi
35750have_ps='no'
35751if test "$have_dps" = 'yes' || \
35752 test "$have_gs" = 'yes' || \
35753 test "${native_win32_build}" = 'yes' ; then
35754 have_ps='yes'
35755fi
35756if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035757 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035758fi
cristy2a3eb392012-12-17 13:39:20 +000035759if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035760 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035761fi
35762if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035763 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035764fi
35765if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035766 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035767fi
35768if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035769 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035770fi
cristy3b640ed2013-07-29 00:27:59 +000035771if test "$have_webp" = 'yes' ; then
35772 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35773fi
cristy2a3eb392012-12-17 13:39:20 +000035774if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035775 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035776fi
35777if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035778 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035779fi
35780if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035781 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035782fi
35783if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035784 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035785fi
cristy2a3eb392012-12-17 13:39:20 +000035786# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035787MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035788MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035789
35790
cristyfa161182012-12-19 15:45:28 +000035791
cristy3ed852e2009-09-05 21:47:34 +000035792#
35793# Handle special compiler flags
35794#
35795
35796# Add '-p' if prof source profiling support enabled
35797if test "$enable_prof" = 'yes'; then
35798 CFLAGS="-p $CFLAGS"
35799 CXXFLAGS="-p $CXXFLAGS"
35800 LDFLAGS="-p $LDFLAGS"
35801fi
35802
35803# Add '-pg' if gprof source profiling support enabled
35804if test "$enable_gprof" = 'yes'; then
35805 CFLAGS="-pg $CFLAGS"
35806 CXXFLAGS="-pg $CXXFLAGS"
35807 LDFLAGS="-pg $LDFLAGS"
35808fi
35809
35810# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35811# This is a gcc-specific feature
35812if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035814$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035815if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035816 $as_echo_n "(cached) " >&6
35817else
35818 ac_check_lib_save_LIBS=$LIBS
35819LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035821/* end confdefs.h. */
35822
35823/* Override any GCC internal prototype to avoid an error.
35824 Use char because int might match the return type of a GCC
35825 builtin and then its argument prototype would still apply. */
35826#ifdef __cplusplus
35827extern "C"
35828#endif
35829char _gcov_init ();
35830int
35831main ()
35832{
35833return _gcov_init ();
35834 ;
35835 return 0;
35836}
35837_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035838if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035839 ac_cv_lib_gcov__gcov_init=yes
35840else
cristy8b350f62009-11-15 23:12:43 +000035841 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035842fi
cristy8b350f62009-11-15 23:12:43 +000035843rm -f core conftest.err conftest.$ac_objext \
35844 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035845LIBS=$ac_check_lib_save_LIBS
35846fi
cristy8b350f62009-11-15 23:12:43 +000035847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035848$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035849if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035850 cat >>confdefs.h <<_ACEOF
35851#define HAVE_LIBGCOV 1
35852_ACEOF
35853
35854 LIBS="-lgcov $LIBS"
35855
35856fi
35857
cristy8b350f62009-11-15 23:12:43 +000035858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035859$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035860if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035861 $as_echo_n "(cached) " >&6
35862else
35863 ac_check_lib_save_LIBS=$LIBS
35864LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035866/* end confdefs.h. */
35867
35868/* Override any GCC internal prototype to avoid an error.
35869 Use char because int might match the return type of a GCC
35870 builtin and then its argument prototype would still apply. */
35871#ifdef __cplusplus
35872extern "C"
35873#endif
35874char __gcov_init ();
35875int
35876main ()
35877{
35878return __gcov_init ();
35879 ;
35880 return 0;
35881}
35882_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035883if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035884 ac_cv_lib_gcov___gcov_init=yes
35885else
cristy8b350f62009-11-15 23:12:43 +000035886 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035887fi
cristy8b350f62009-11-15 23:12:43 +000035888rm -f core conftest.err conftest.$ac_objext \
35889 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035890LIBS=$ac_check_lib_save_LIBS
35891fi
cristy8b350f62009-11-15 23:12:43 +000035892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035893$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035894if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035895 cat >>confdefs.h <<_ACEOF
35896#define HAVE_LIBGCOV 1
35897_ACEOF
35898
35899 LIBS="-lgcov $LIBS"
35900
35901fi
35902
35903 case "$target_os" in
35904 darwin*)
35905 OSX_GCOV_LDFLAG="-Wl,-single_module"
35906 ;;
35907 *)
35908 OSX_GCOV_LDFLAG=""
35909 ;;
35910 esac
35911
35912 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35913 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35914 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35915fi
35916
35917#
35918# Build library dependency list for libMagickCore
35919#
35920
cristyc6722092012-10-14 00:19:31 +000035921if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035922 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 +000035923else
cristy25997252014-01-02 13:28:18 +000035924 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_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 $OPENJPEG_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 +000035925fi
35926
35927
35928#
35929# Remove extraneous spaces from output variables (asthetic)
35930#
35931X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35932X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35933X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35934X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35935
35936CC=`echo $CC | sed -e 's/ */ /g'`
35937CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35938CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35939CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035940DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35941LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35942TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35943MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35944#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35945
35946# Pass only user-provided LIBS as "global" libraries
35947LIBS=$USER_LIBS
35948
35949#AC_SUBST(CPPFLAGS)
35950
35951#AC_SUBST(LDFLAGS)
35952#AC_SUBST(X_PRE_LIBS)
35953#AC_SUBST(X_LIBS)
35954#AC_SUBST(X_EXTRA_LIBS)
35955
35956MAGICK_CFLAGS=$CFLAGS
35957MAGICK_CXXFLAGS="$CXXFLAGS"
35958MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35959MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35960MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000035961MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035962
35963
35964
35965
35966
35967
35968
35969
35970# Set configured scripts to executable.
35971ac_config_commands="$ac_config_commands default"
35972
cristy2bd4b6e2012-07-22 15:29:11 +000035973ac_config_commands="$ac_config_commands magick.sh.in"
35974
cristy3ed852e2009-09-05 21:47:34 +000035975ac_config_commands="$ac_config_commands MagickCore-config.in"
35976
cristy3ed852e2009-09-05 21:47:34 +000035977ac_config_commands="$ac_config_commands MagickWand-config.in"
35978
cristy3ed852e2009-09-05 21:47:34 +000035979ac_config_commands="$ac_config_commands Magick++-config.in"
35980
35981ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35982
35983
cristyad38abe2012-12-23 23:03:21 +000035984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35985$as_echo "-------------------------------------------------------------" >&6; }
35986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35987$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035988cat >confcache <<\_ACEOF
35989# This file is a shell script that caches the results of configure
35990# tests run on this system so they can be shared between configure
35991# scripts and configure runs, see configure's option --config-cache.
35992# It is not useful on other systems. If it contains results you don't
35993# want to keep, you may remove or edit it.
35994#
35995# config.status only pays attention to the cache file if you give it
35996# the --recheck option to rerun configure.
35997#
35998# `ac_cv_env_foo' variables (set or unset) will be overridden when
35999# loading this file, other *unset* `ac_cv_foo' will be assigned the
36000# following values.
36001
36002_ACEOF
36003
36004# The following way of writing the cache mishandles newlines in values,
36005# but we know of no workaround that is simple, portable, and efficient.
36006# So, we kill variables containing newlines.
36007# Ultrix sh set writes to stderr and can't be redirected directly,
36008# and sets the high bit in the cache file unless we assign to the vars.
36009(
36010 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36011 eval ac_val=\$$ac_var
36012 case $ac_val in #(
36013 *${as_nl}*)
36014 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036016$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36017 esac
36018 case $ac_var in #(
36019 _ | IFS | as_nl) ;; #(
36020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036021 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036022 esac ;;
36023 esac
36024 done
36025
36026 (set) 2>&1 |
36027 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36028 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036029 # `set' does not quote correctly, so add quotes: double-quote
36030 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036031 sed -n \
36032 "s/'/'\\\\''/g;
36033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36034 ;; #(
36035 *)
36036 # `set' quotes correctly as required by POSIX, so do not add quotes.
36037 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36038 ;;
36039 esac |
36040 sort
36041) |
36042 sed '
36043 /^ac_cv_env_/b end
36044 t clear
36045 :clear
36046 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36047 t end
36048 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36049 :end' >>confcache
36050if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36051 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036052 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036053 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036054$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036055 if test ! -f "$cache_file" || test -h "$cache_file"; then
36056 cat confcache >"$cache_file"
36057 else
36058 case $cache_file in #(
36059 */* | ?:*)
36060 mv -f confcache "$cache_file"$$ &&
36061 mv -f "$cache_file"$$ "$cache_file" ;; #(
36062 *)
36063 mv -f confcache "$cache_file" ;;
36064 esac
36065 fi
36066 fi
cristy3ed852e2009-09-05 21:47:34 +000036067 else
cristy8b350f62009-11-15 23:12:43 +000036068 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036069$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36070 fi
36071fi
36072rm -f confcache
36073
36074test "x$prefix" = xNONE && prefix=$ac_default_prefix
36075# Let make expand exec_prefix.
36076test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36077
36078DEFS=-DHAVE_CONFIG_H
36079
36080ac_libobjs=
36081ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036082U=
cristy3ed852e2009-09-05 21:47:34 +000036083for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36084 # 1. Remove the extension, and $U if already installed.
36085 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36086 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36087 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36088 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036089 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36090 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036091done
36092LIBOBJS=$ac_libobjs
36093
36094LTLIBOBJS=$ac_ltlibobjs
36095
36096
cristyc0890a62012-07-19 00:18:20 +000036097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36098$as_echo_n "checking that generated files are newer than configure... " >&6; }
36099 if test -n "$am_sleep_pid"; then
36100 # Hide warnings about reused PIDs.
36101 wait $am_sleep_pid 2>/dev/null
36102 fi
36103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36104$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036105 if test -n "$EXEEXT"; then
36106 am__EXEEXT_TRUE=
36107 am__EXEEXT_FALSE='#'
36108else
36109 am__EXEEXT_TRUE='#'
36110 am__EXEEXT_FALSE=
36111fi
cristy3ed852e2009-09-05 21:47:34 +000036112
cristy73bd4a52010-10-05 11:24:23 +000036113if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036114 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036115Usually this means the macro was only invoked conditionally." "$LINENO" 5
36116fi
36117if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036118 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036119Usually this means the macro was only invoked conditionally." "$LINENO" 5
36120fi
36121if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036122 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036123Usually this means the macro was only invoked conditionally." "$LINENO" 5
36124fi
36125if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036126 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036127Usually this means the macro was only invoked conditionally." "$LINENO" 5
36128fi
cristy9b86f202012-11-28 21:55:35 +000036129if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36130 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36131Usually this means the macro was only invoked conditionally." "$LINENO" 5
36132fi
cristy73bd4a52010-10-05 11:24:23 +000036133if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036134 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036135Usually this means the macro was only invoked conditionally." "$LINENO" 5
36136fi
36137if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036138 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036139Usually this means the macro was only invoked conditionally." "$LINENO" 5
36140fi
36141if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036142 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036143Usually this means the macro was only invoked conditionally." "$LINENO" 5
36144fi
36145if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036146 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036147Usually this means the macro was only invoked conditionally." "$LINENO" 5
36148fi
cristy73bd4a52010-10-05 11:24:23 +000036149if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036150 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036151Usually this means the macro was only invoked conditionally." "$LINENO" 5
36152fi
36153if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036154 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036155Usually this means the macro was only invoked conditionally." "$LINENO" 5
36156fi
cristy73bd4a52010-10-05 11:24:23 +000036157if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036158 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036159Usually this means the macro was only invoked conditionally." "$LINENO" 5
36160fi
cristy71d8c202012-03-20 17:05:01 +000036161if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36162 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36163Usually this means the macro was only invoked conditionally." "$LINENO" 5
36164fi
cristy73bd4a52010-10-05 11:24:23 +000036165
36166if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036167 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036168Usually this means the macro was only invoked conditionally." "$LINENO" 5
36169fi
36170if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036171 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036172Usually this means the macro was only invoked conditionally." "$LINENO" 5
36173fi
36174if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036175 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036176Usually this means the macro was only invoked conditionally." "$LINENO" 5
36177fi
36178if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036179 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036180Usually this means the macro was only invoked conditionally." "$LINENO" 5
36181fi
36182if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036183 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036184Usually this means the macro was only invoked conditionally." "$LINENO" 5
36185fi
36186if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036187 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036188Usually this means the macro was only invoked conditionally." "$LINENO" 5
36189fi
cristy5eef09f2012-10-16 12:08:28 +000036190if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36191 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36192Usually this means the macro was only invoked conditionally." "$LINENO" 5
36193fi
cristy73bd4a52010-10-05 11:24:23 +000036194if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036195 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036196Usually this means the macro was only invoked conditionally." "$LINENO" 5
36197fi
36198if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036199 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036200Usually this means the macro was only invoked conditionally." "$LINENO" 5
36201fi
36202if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036203 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036204Usually this means the macro was only invoked conditionally." "$LINENO" 5
36205fi
36206if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036207 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036208Usually this means the macro was only invoked conditionally." "$LINENO" 5
36209fi
36210if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036211 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036212Usually this means the macro was only invoked conditionally." "$LINENO" 5
36213fi
36214if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036215 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036216Usually this means the macro was only invoked conditionally." "$LINENO" 5
36217fi
36218if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036219 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036220Usually this means the macro was only invoked conditionally." "$LINENO" 5
36221fi
36222if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036223 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036224Usually this means the macro was only invoked conditionally." "$LINENO" 5
36225fi
36226if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036227 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036228Usually this means the macro was only invoked conditionally." "$LINENO" 5
36229fi
36230if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036231 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036232Usually this means the macro was only invoked conditionally." "$LINENO" 5
36233fi
36234if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036235 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036236Usually this means the macro was only invoked conditionally." "$LINENO" 5
36237fi
cristy73bd4a52010-10-05 11:24:23 +000036238if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036239 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036240Usually this means the macro was only invoked conditionally." "$LINENO" 5
36241fi
cristy99db3872014-01-01 15:11:34 +000036242if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36243 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36244Usually this means the macro was only invoked conditionally." "$LINENO" 5
36245fi
cristy73bd4a52010-10-05 11:24:23 +000036246if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036247 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036248Usually this means the macro was only invoked conditionally." "$LINENO" 5
36249fi
cristyfbb0ef02010-12-19 02:32:11 +000036250if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36251 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36252Usually this means the macro was only invoked conditionally." "$LINENO" 5
36253fi
cristy854c9cf2013-08-10 21:03:06 +000036254if test -z "${MUPDF_DELEGATE_TRUE}" && test -z "${MUPDF_DELEGATE_FALSE}"; then
36255 as_fn_error $? "conditional \"MUPDF_DELEGATE\" was never defined.
36256Usually this means the macro was only invoked conditionally." "$LINENO" 5
36257fi
cristy73bd4a52010-10-05 11:24:23 +000036258if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036259 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036260Usually this means the macro was only invoked conditionally." "$LINENO" 5
36261fi
cristy41cbe8a2011-10-27 01:35:18 +000036262if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36263 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36264Usually this means the macro was only invoked conditionally." "$LINENO" 5
36265fi
cristya054b762012-03-26 23:16:00 +000036266if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36267 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036268Usually this means the macro was only invoked conditionally." "$LINENO" 5
36269fi
cristy73bd4a52010-10-05 11:24:23 +000036270if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036271 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036272Usually this means the macro was only invoked conditionally." "$LINENO" 5
36273fi
36274if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036275 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036276Usually this means the macro was only invoked conditionally." "$LINENO" 5
36277fi
36278if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036279 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036280Usually this means the macro was only invoked conditionally." "$LINENO" 5
36281fi
36282if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036283 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036284Usually this means the macro was only invoked conditionally." "$LINENO" 5
36285fi
cristyb1860752011-03-14 00:27:46 +000036286if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36287 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36288Usually this means the macro was only invoked conditionally." "$LINENO" 5
36289fi
cristy73bd4a52010-10-05 11:24:23 +000036290if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036291 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036292Usually this means the macro was only invoked conditionally." "$LINENO" 5
36293fi
36294if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036295 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036296Usually this means the macro was only invoked conditionally." "$LINENO" 5
36297fi
cristydd17feb2014-03-05 02:06:32 +000036298if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36299 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36300Usually this means the macro was only invoked conditionally." "$LINENO" 5
36301fi
cristy73bd4a52010-10-05 11:24:23 +000036302if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036303 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036304Usually this means the macro was only invoked conditionally." "$LINENO" 5
36305fi
36306if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036307 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036308Usually this means the macro was only invoked conditionally." "$LINENO" 5
36309fi
36310if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036311 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036312Usually this means the macro was only invoked conditionally." "$LINENO" 5
36313fi
36314if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036315 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036316Usually this means the macro was only invoked conditionally." "$LINENO" 5
36317fi
36318if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036319 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036320Usually this means the macro was only invoked conditionally." "$LINENO" 5
36321fi
36322if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036323 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036324Usually this means the macro was only invoked conditionally." "$LINENO" 5
36325fi
cristy3ed852e2009-09-05 21:47:34 +000036326
cristyda16f162011-02-19 23:52:17 +000036327: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036328ac_write_fail=0
36329ac_clean_files_save=$ac_clean_files
36330ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036331{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036332$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036333as_write_fail=0
36334cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036335#! $SHELL
36336# Generated by $as_me.
36337# Run this file to recreate the current configuration.
36338# Compiler output produced by configure, useful for debugging
36339# configure, is in config.log if it exists.
36340
36341debug=false
36342ac_cs_recheck=false
36343ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036344
cristy8b350f62009-11-15 23:12:43 +000036345SHELL=\${CONFIG_SHELL-$SHELL}
36346export SHELL
36347_ASEOF
36348cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36349## -------------------- ##
36350## M4sh Initialization. ##
36351## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036352
36353# Be more Bourne compatible
36354DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036355if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036356 emulate sh
36357 NULLCMD=:
36358 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36359 # is contrary to our usage. Disable this feature.
36360 alias -g '${1+"$@"}'='"$@"'
36361 setopt NO_GLOB_SUBST
36362else
cristy8b350f62009-11-15 23:12:43 +000036363 case `(set -o) 2>/dev/null` in #(
36364 *posix*) :
36365 set -o posix ;; #(
36366 *) :
36367 ;;
cristy3ed852e2009-09-05 21:47:34 +000036368esac
cristy3ed852e2009-09-05 21:47:34 +000036369fi
36370
36371
cristy3ed852e2009-09-05 21:47:34 +000036372as_nl='
36373'
36374export as_nl
36375# Printing a long string crashes Solaris 7 /usr/bin/printf.
36376as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36377as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36378as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036379# Prefer a ksh shell builtin over an external printf program on Solaris,
36380# but without wasting forks for bash or zsh.
36381if test -z "$BASH_VERSION$ZSH_VERSION" \
36382 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36383 as_echo='print -r --'
36384 as_echo_n='print -rn --'
36385elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036386 as_echo='printf %s\n'
36387 as_echo_n='printf %s'
36388else
36389 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36390 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36391 as_echo_n='/usr/ucb/echo -n'
36392 else
36393 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36394 as_echo_n_body='eval
36395 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036396 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036397 *"$as_nl"*)
36398 expr "X$arg" : "X\\(.*\\)$as_nl";
36399 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36400 esac;
36401 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36402 '
36403 export as_echo_n_body
36404 as_echo_n='sh -c $as_echo_n_body as_echo'
36405 fi
36406 export as_echo_body
36407 as_echo='sh -c $as_echo_body as_echo'
36408fi
36409
36410# The user is always right.
36411if test "${PATH_SEPARATOR+set}" != set; then
36412 PATH_SEPARATOR=:
36413 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36414 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36415 PATH_SEPARATOR=';'
36416 }
36417fi
36418
cristy3ed852e2009-09-05 21:47:34 +000036419
36420# IFS
36421# We need space, tab and new line, in precisely that order. Quoting is
36422# there to prevent editors from complaining about space-tab.
36423# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36424# splitting by setting IFS to empty value.)
36425IFS=" "" $as_nl"
36426
36427# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036428as_myself=
cristy8b350f62009-11-15 23:12:43 +000036429case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036430 *[\\/]* ) as_myself=$0 ;;
36431 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36432for as_dir in $PATH
36433do
36434 IFS=$as_save_IFS
36435 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036436 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36437 done
cristy3ed852e2009-09-05 21:47:34 +000036438IFS=$as_save_IFS
36439
36440 ;;
36441esac
36442# We did not find ourselves, most probably we were run as `sh COMMAND'
36443# in which case we are not to be found in the path.
36444if test "x$as_myself" = x; then
36445 as_myself=$0
36446fi
36447if test ! -f "$as_myself"; then
36448 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036449 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036450fi
36451
cristy8b350f62009-11-15 23:12:43 +000036452# Unset variables that we do not need and which cause bugs (e.g. in
36453# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36454# suppresses any "Segmentation fault" message there. '((' could
36455# trigger a bug in pdksh 5.2.14.
36456for as_var in BASH_ENV ENV MAIL MAILPATH
36457do eval test x\${$as_var+set} = xset \
36458 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036459done
36460PS1='$ '
36461PS2='> '
36462PS4='+ '
36463
36464# NLS nuisances.
36465LC_ALL=C
36466export LC_ALL
36467LANGUAGE=C
36468export LANGUAGE
36469
cristy8b350f62009-11-15 23:12:43 +000036470# CDPATH.
36471(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36472
36473
cristy98dddb52010-11-04 00:30:15 +000036474# as_fn_error STATUS ERROR [LINENO LOG_FD]
36475# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036476# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36477# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036478# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036479as_fn_error ()
36480{
cristy98dddb52010-11-04 00:30:15 +000036481 as_status=$1; test $as_status -eq 0 && as_status=1
36482 if test "$4"; then
36483 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36484 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036485 fi
cristy98dddb52010-11-04 00:30:15 +000036486 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036487 as_fn_exit $as_status
36488} # as_fn_error
36489
36490
36491# as_fn_set_status STATUS
36492# -----------------------
36493# Set $? to STATUS, without forking.
36494as_fn_set_status ()
36495{
36496 return $1
36497} # as_fn_set_status
36498
36499# as_fn_exit STATUS
36500# -----------------
36501# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36502as_fn_exit ()
36503{
36504 set +e
36505 as_fn_set_status $1
36506 exit $1
36507} # as_fn_exit
36508
36509# as_fn_unset VAR
36510# ---------------
36511# Portably unset VAR.
36512as_fn_unset ()
36513{
36514 { eval $1=; unset $1;}
36515}
36516as_unset=as_fn_unset
36517# as_fn_append VAR VALUE
36518# ----------------------
36519# Append the text in VALUE to the end of the definition contained in VAR. Take
36520# advantage of any shell optimizations that allow amortized linear growth over
36521# repeated appends, instead of the typical quadratic growth present in naive
36522# implementations.
36523if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36524 eval 'as_fn_append ()
36525 {
36526 eval $1+=\$2
36527 }'
36528else
36529 as_fn_append ()
36530 {
36531 eval $1=\$$1\$2
36532 }
36533fi # as_fn_append
36534
36535# as_fn_arith ARG...
36536# ------------------
36537# Perform arithmetic evaluation on the ARGs, and store the result in the
36538# global $as_val. Take advantage of shells that can avoid forks. The arguments
36539# must be portable across $(()) and expr.
36540if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36541 eval 'as_fn_arith ()
36542 {
36543 as_val=$(( $* ))
36544 }'
36545else
36546 as_fn_arith ()
36547 {
36548 as_val=`expr "$@" || test $? -eq 1`
36549 }
36550fi # as_fn_arith
36551
36552
cristy3ed852e2009-09-05 21:47:34 +000036553if expr a : '\(a\)' >/dev/null 2>&1 &&
36554 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36555 as_expr=expr
36556else
36557 as_expr=false
36558fi
36559
36560if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36561 as_basename=basename
36562else
36563 as_basename=false
36564fi
36565
cristy8b350f62009-11-15 23:12:43 +000036566if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36567 as_dirname=dirname
36568else
36569 as_dirname=false
36570fi
cristy3ed852e2009-09-05 21:47:34 +000036571
cristy3ed852e2009-09-05 21:47:34 +000036572as_me=`$as_basename -- "$0" ||
36573$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36574 X"$0" : 'X\(//\)$' \| \
36575 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36576$as_echo X/"$0" |
36577 sed '/^.*\/\([^/][^/]*\)\/*$/{
36578 s//\1/
36579 q
36580 }
36581 /^X\/\(\/\/\)$/{
36582 s//\1/
36583 q
36584 }
36585 /^X\/\(\/\).*/{
36586 s//\1/
36587 q
36588 }
36589 s/.*/./; q'`
36590
cristy8b350f62009-11-15 23:12:43 +000036591# Avoid depending upon Character Ranges.
36592as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36593as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36594as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36595as_cr_digits='0123456789'
36596as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036597
36598ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036599case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036600-n*)
cristy8b350f62009-11-15 23:12:43 +000036601 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036602 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036603 xy) ECHO_C='\c';;
36604 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36605 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036606 esac;;
36607*)
36608 ECHO_N='-n';;
36609esac
cristy3ed852e2009-09-05 21:47:34 +000036610
36611rm -f conf$$ conf$$.exe conf$$.file
36612if test -d conf$$.dir; then
36613 rm -f conf$$.dir/conf$$.file
36614else
36615 rm -f conf$$.dir
36616 mkdir conf$$.dir 2>/dev/null
36617fi
36618if (echo >conf$$.file) 2>/dev/null; then
36619 if ln -s conf$$.file conf$$ 2>/dev/null; then
36620 as_ln_s='ln -s'
36621 # ... but there are two gotchas:
36622 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36623 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036624 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036625 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036626 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036627 elif ln conf$$.file conf$$ 2>/dev/null; then
36628 as_ln_s=ln
36629 else
cristy14fefe52012-05-21 00:59:18 +000036630 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036631 fi
36632else
cristy14fefe52012-05-21 00:59:18 +000036633 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036634fi
36635rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36636rmdir conf$$.dir 2>/dev/null
36637
cristy8b350f62009-11-15 23:12:43 +000036638
36639# as_fn_mkdir_p
36640# -------------
36641# Create "$as_dir" as a directory, including parents if necessary.
36642as_fn_mkdir_p ()
36643{
36644
36645 case $as_dir in #(
36646 -*) as_dir=./$as_dir;;
36647 esac
36648 test -d "$as_dir" || eval $as_mkdir_p || {
36649 as_dirs=
36650 while :; do
36651 case $as_dir in #(
36652 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36653 *) as_qdir=$as_dir;;
36654 esac
36655 as_dirs="'$as_qdir' $as_dirs"
36656 as_dir=`$as_dirname -- "$as_dir" ||
36657$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36658 X"$as_dir" : 'X\(//\)[^/]' \| \
36659 X"$as_dir" : 'X\(//\)$' \| \
36660 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36661$as_echo X"$as_dir" |
36662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36663 s//\1/
36664 q
36665 }
36666 /^X\(\/\/\)[^/].*/{
36667 s//\1/
36668 q
36669 }
36670 /^X\(\/\/\)$/{
36671 s//\1/
36672 q
36673 }
36674 /^X\(\/\).*/{
36675 s//\1/
36676 q
36677 }
36678 s/.*/./; q'`
36679 test -d "$as_dir" && break
36680 done
36681 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036682 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036683
36684
36685} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036686if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036687 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036688else
36689 test -d ./-p && rmdir ./-p
36690 as_mkdir_p=false
36691fi
36692
cristy14fefe52012-05-21 00:59:18 +000036693
36694# as_fn_executable_p FILE
36695# -----------------------
36696# Test if FILE is an executable regular file.
36697as_fn_executable_p ()
36698{
36699 test -f "$1" && test -x "$1"
36700} # as_fn_executable_p
36701as_test_x='test -x'
36702as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036703
36704# Sed expression to map a string onto a valid CPP name.
36705as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36706
36707# Sed expression to map a string onto a valid variable name.
36708as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36709
36710
36711exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036712## ----------------------------------- ##
36713## Main body of $CONFIG_STATUS script. ##
36714## ----------------------------------- ##
36715_ASEOF
36716test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036717
cristy8b350f62009-11-15 23:12:43 +000036718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36719# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036720# report actual input values of CONFIG_FILES etc. instead of their
36721# values after options handling.
36722ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036723This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036724generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036725
36726 CONFIG_FILES = $CONFIG_FILES
36727 CONFIG_HEADERS = $CONFIG_HEADERS
36728 CONFIG_LINKS = $CONFIG_LINKS
36729 CONFIG_COMMANDS = $CONFIG_COMMANDS
36730 $ $0 $@
36731
36732on `(hostname || uname -n) 2>/dev/null | sed 1q`
36733"
36734
36735_ACEOF
36736
36737case $ac_config_files in *"
36738"*) set x $ac_config_files; shift; ac_config_files=$*;;
36739esac
36740
36741case $ac_config_headers in *"
36742"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36743esac
36744
36745
36746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36747# Files that config.status was made for.
36748config_files="$ac_config_files"
36749config_headers="$ac_config_headers"
36750config_commands="$ac_config_commands"
36751
36752_ACEOF
36753
36754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36755ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036756\`$as_me' instantiates files and other configuration actions
36757from templates according to the current configuration. Unless the files
36758and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036759
cristy8b350f62009-11-15 23:12:43 +000036760Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036761
36762 -h, --help print this help, then exit
36763 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036764 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036765 -q, --quiet, --silent
36766 do not print progress messages
36767 -d, --debug don't remove temporary files
36768 --recheck update $as_me by reconfiguring in the same conditions
36769 --file=FILE[:TEMPLATE]
36770 instantiate the configuration file FILE
36771 --header=FILE[:TEMPLATE]
36772 instantiate the configuration header FILE
36773
36774Configuration files:
36775$config_files
36776
36777Configuration headers:
36778$config_headers
36779
36780Configuration commands:
36781$config_commands
36782
cristy8b350f62009-11-15 23:12:43 +000036783Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036784
36785_ACEOF
36786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036787ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036788ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036789ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036790configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036791 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036792
cristy14fefe52012-05-21 00:59:18 +000036793Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036794This config.status script is free software; the Free Software Foundation
36795gives unlimited permission to copy, distribute and modify it."
36796
36797ac_pwd='$ac_pwd'
36798srcdir='$srcdir'
36799INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036800MKDIR_P='$MKDIR_P'
36801AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036802test -n "\$AWK" || AWK=awk
36803_ACEOF
36804
36805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36806# The default lists apply if the user does not specify any file.
36807ac_need_defaults=:
36808while test $# != 0
36809do
36810 case $1 in
cristyda16f162011-02-19 23:52:17 +000036811 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036812 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36813 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36814 ac_shift=:
36815 ;;
cristyda16f162011-02-19 23:52:17 +000036816 --*=)
36817 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36818 ac_optarg=
36819 ac_shift=:
36820 ;;
cristy3ed852e2009-09-05 21:47:34 +000036821 *)
36822 ac_option=$1
36823 ac_optarg=$2
36824 ac_shift=shift
36825 ;;
36826 esac
36827
36828 case $ac_option in
36829 # Handling of the options.
36830 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36831 ac_cs_recheck=: ;;
36832 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36833 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036834 --config | --confi | --conf | --con | --co | --c )
36835 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036836 --debug | --debu | --deb | --de | --d | -d )
36837 debug=: ;;
36838 --file | --fil | --fi | --f )
36839 $ac_shift
36840 case $ac_optarg in
36841 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036842 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036843 esac
cristy8b350f62009-11-15 23:12:43 +000036844 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036845 ac_need_defaults=false;;
36846 --header | --heade | --head | --hea )
36847 $ac_shift
36848 case $ac_optarg in
36849 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36850 esac
cristy8b350f62009-11-15 23:12:43 +000036851 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036852 ac_need_defaults=false;;
36853 --he | --h)
36854 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036855 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036856Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036857 --help | --hel | -h )
36858 $as_echo "$ac_cs_usage"; exit ;;
36859 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36860 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36861 ac_cs_silent=: ;;
36862
36863 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036864 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036865Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036866
cristy8b350f62009-11-15 23:12:43 +000036867 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036868 ac_need_defaults=false ;;
36869
36870 esac
36871 shift
36872done
36873
36874ac_configure_extra_args=
36875
36876if $ac_cs_silent; then
36877 exec 6>/dev/null
36878 ac_configure_extra_args="$ac_configure_extra_args --silent"
36879fi
36880
36881_ACEOF
36882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36883if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036884 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036885 shift
36886 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36887 CONFIG_SHELL='$SHELL'
36888 export CONFIG_SHELL
36889 exec "\$@"
36890fi
36891
36892_ACEOF
36893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36894exec 5>>config.log
36895{
36896 echo
36897 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36898## Running $as_me. ##
36899_ASBOX
36900 $as_echo "$ac_log"
36901} >&5
36902
36903_ACEOF
36904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036905#
36906# INIT-COMMANDS
36907#
36908PACKAGE="$PACKAGE"
36909AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36910
36911
36912# The HP-UX ksh and POSIX shell print the target directory to stdout
36913# if CDPATH is set.
36914(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36915
36916sed_quote_subst='$sed_quote_subst'
36917double_quote_subst='$double_quote_subst'
36918delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036919SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36920Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36921GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36922EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36923FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36924SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36925ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36926LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36927macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36928macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36929AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36930DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36931OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36932enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36933enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36934pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36935enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036936PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036937host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36938host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36939host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36940build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36941build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36942build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36943NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36944LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36945max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36946ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36947exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36948lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36949lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36950lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036951lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36952lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036953reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36954reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36955deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36956file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036957file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36958want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36959sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036960AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36961AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036962archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036963STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36964RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36965old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36966old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36967old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36968lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36969CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36970CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36971compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36972GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36973lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36974lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36975lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36976lt_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 +000036977nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36978lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036979objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36980MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36981lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036982lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036983lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036984lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36985lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36986need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036987MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036988DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36989NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36990LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36991OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36992OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36993libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36994shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36995extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36996archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36997enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36998export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36999whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37000compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37001old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37002old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37003archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37004archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37005module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37006module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37007with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37008allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37009no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37010hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037011hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37012hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37013hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37014hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37015hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37016hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37017inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37018link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037019always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37020export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37021exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37022include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37023prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037024postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037025file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37026variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37027need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37028need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37029version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37030runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37031shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37032shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37033libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37034library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37035soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37036install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37037postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37038postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37039finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37040finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37041hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37042sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37043sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37044hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37045enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37046enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37047enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37048old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37049striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37050compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37051predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37052postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37053predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37054postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37055compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37056LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37057reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37058reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37059old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37060compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37061GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37062lt_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 +000037063lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037064lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037065lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37066lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37067archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37068enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37069export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37070whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37071compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37072old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37073old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37074archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37075archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37076module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37077module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37078with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37079allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37080no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37081hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037082hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37083hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37084hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37085hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37086hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37087hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37088inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37089link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037090always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37091export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37092exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37093include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37094prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037095postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037096file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37097hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37098compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37099predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37100postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37101predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37102postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37103compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037104
37105LTCC='$LTCC'
37106LTCFLAGS='$LTCFLAGS'
37107compiler='$compiler_DEFAULT'
37108
cristy0c60a692010-11-04 01:09:47 +000037109# A function that is used when there is no print builtin or printf.
37110func_fallback_echo ()
37111{
37112 eval 'cat <<_LTECHO_EOF
37113\$1
37114_LTECHO_EOF'
37115}
37116
cristy73bd4a52010-10-05 11:24:23 +000037117# Quote evaled strings.
37118for var in SED \
37119GREP \
37120EGREP \
37121FGREP \
cristy0c60a692010-11-04 01:09:47 +000037122SHELL \
37123ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037124LD \
cristy0c60a692010-11-04 01:09:47 +000037125AS \
37126DLLTOOL \
37127OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037128PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037129NM \
37130LN_S \
37131lt_SP2NL \
37132lt_NL2SP \
37133reload_flag \
37134deplibs_check_method \
37135file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037136file_magic_glob \
37137want_nocaseglob \
37138sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037139AR \
37140AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037141archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037142STRIP \
37143RANLIB \
37144CC \
37145CFLAGS \
37146compiler \
37147lt_cv_sys_global_symbol_pipe \
37148lt_cv_sys_global_symbol_to_cdecl \
37149lt_cv_sys_global_symbol_to_c_name_address \
37150lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037151nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037152lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037153lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037154lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037155lt_prog_compiler_static \
37156lt_cv_prog_compiler_c_o \
37157need_locks \
cristyda16f162011-02-19 23:52:17 +000037158MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037159DSYMUTIL \
37160NMEDIT \
37161LIPO \
37162OTOOL \
37163OTOOL64 \
37164shrext_cmds \
37165export_dynamic_flag_spec \
37166whole_archive_flag_spec \
37167compiler_needs_object \
37168with_gnu_ld \
37169allow_undefined_flag \
37170no_undefined_flag \
37171hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037172hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037173exclude_expsyms \
37174include_expsyms \
37175file_list_spec \
37176variables_saved_for_relink \
37177libname_spec \
37178library_names_spec \
37179soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037180install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037181finish_eval \
37182old_striplib \
37183striplib \
37184compiler_lib_search_dirs \
37185predep_objects \
37186postdep_objects \
37187predeps \
37188postdeps \
37189compiler_lib_search_path \
37190LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037191reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037192compiler_CXX \
37193lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037194lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037195lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037196lt_prog_compiler_static_CXX \
37197lt_cv_prog_compiler_c_o_CXX \
37198export_dynamic_flag_spec_CXX \
37199whole_archive_flag_spec_CXX \
37200compiler_needs_object_CXX \
37201with_gnu_ld_CXX \
37202allow_undefined_flag_CXX \
37203no_undefined_flag_CXX \
37204hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037205hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037206exclude_expsyms_CXX \
37207include_expsyms_CXX \
37208file_list_spec_CXX \
37209compiler_lib_search_dirs_CXX \
37210predep_objects_CXX \
37211postdep_objects_CXX \
37212predeps_CXX \
37213postdeps_CXX \
37214compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037215 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037216 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037217 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037218 ;;
37219 *)
37220 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37221 ;;
37222 esac
37223done
37224
37225# Double-quote double-evaled strings.
37226for var in reload_cmds \
37227old_postinstall_cmds \
37228old_postuninstall_cmds \
37229old_archive_cmds \
37230extract_expsyms_cmds \
37231old_archive_from_new_cmds \
37232old_archive_from_expsyms_cmds \
37233archive_cmds \
37234archive_expsym_cmds \
37235module_cmds \
37236module_expsym_cmds \
37237export_symbols_cmds \
37238prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037239postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037240postinstall_cmds \
37241postuninstall_cmds \
37242finish_cmds \
37243sys_lib_search_path_spec \
37244sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037245reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037246old_archive_cmds_CXX \
37247old_archive_from_new_cmds_CXX \
37248old_archive_from_expsyms_cmds_CXX \
37249archive_cmds_CXX \
37250archive_expsym_cmds_CXX \
37251module_cmds_CXX \
37252module_expsym_cmds_CXX \
37253export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037254prelink_cmds_CXX \
37255postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037256 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037257 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037258 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037259 ;;
37260 *)
37261 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37262 ;;
37263 esac
37264done
37265
cristy73bd4a52010-10-05 11:24:23 +000037266ac_aux_dir='$ac_aux_dir'
37267xsi_shell='$xsi_shell'
37268lt_shell_append='$lt_shell_append'
37269
37270# See if we are running on zsh, and set the options which allow our
37271# commands through without removal of \ escapes INIT.
37272if test -n "\${ZSH_VERSION+set}" ; then
37273 setopt NO_GLOB_SUBST
37274fi
37275
37276
37277 PACKAGE='$PACKAGE'
37278 VERSION='$VERSION'
37279 TIMESTAMP='$TIMESTAMP'
37280 RM='$RM'
37281 ofile='$ofile'
37282
37283
37284
37285
37286
37287
cristy3ed852e2009-09-05 21:47:34 +000037288_ACEOF
37289
37290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37291
37292# Handling of arguments.
37293for ac_config_target in $ac_config_targets
37294do
37295 case $ac_config_target in
37296 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037297 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037298 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037299 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37300 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37301 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37302 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37303 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037304 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037305 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037306 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37307 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37308 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37309 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37310 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037311 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037312 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037313 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37314 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37315 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037316 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37317 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037318 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037319 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037320 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037321 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037322 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37323 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37324 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37325 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037326 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37327 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37328 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37329 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37330 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37331 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37332 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37333 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37334 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37335 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37336 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37337 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037338 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37339 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037340 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37341 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037342 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037343 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037344 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037345 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037346 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37347 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37348
cristy98dddb52010-11-04 00:30:15 +000037349 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037350 esac
37351done
37352
37353
37354# If the user did not use the arguments to specify the items to instantiate,
37355# then the envvar interface is used. Set only those that are not.
37356# We use the long form for the default assignment because of an extremely
37357# bizarre bug on SunOS 4.1.3.
37358if $ac_need_defaults; then
37359 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37360 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37361 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37362fi
37363
37364# Have a temporary directory for convenience. Make it in the build tree
37365# simply because there is no reason against having it here, and in addition,
37366# creating and moving files from /tmp can sometimes cause problems.
37367# Hook for its removal unless debugging.
37368# Note that there is a small window in which the directory will not be cleaned:
37369# after its creation but before its name has been assigned to `$tmp'.
37370$debug ||
37371{
cristyda16f162011-02-19 23:52:17 +000037372 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037373 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037374 : "${ac_tmp:=$tmp}"
37375 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037376' 0
cristy8b350f62009-11-15 23:12:43 +000037377 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037378}
37379# Create a (secure) tmp directory for tmp files.
37380
37381{
37382 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037383 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037384} ||
37385{
37386 tmp=./conf$$-$RANDOM
37387 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037388} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037389ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037390
37391# Set up the scripts for CONFIG_FILES section.
37392# No need to generate them if there are no CONFIG_FILES.
37393# This happens for instance with `./config.status config.h'.
37394if test -n "$CONFIG_FILES"; then
37395
37396
cristy8b350f62009-11-15 23:12:43 +000037397ac_cr=`echo X | tr X '\015'`
37398# On cygwin, bash can eat \r inside `` if the user requested igncr.
37399# But we know of no other shell where ac_cr would be empty at this
37400# point, so we can use a bashism as a fallback.
37401if test "x$ac_cr" = x; then
37402 eval ac_cr=\$\'\\r\'
37403fi
cristy3ed852e2009-09-05 21:47:34 +000037404ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37405if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037406 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037407else
37408 ac_cs_awk_cr=$ac_cr
37409fi
37410
cristyda16f162011-02-19 23:52:17 +000037411echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037412_ACEOF
37413
37414
37415{
37416 echo "cat >conf$$subs.awk <<_ACEOF" &&
37417 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37418 echo "_ACEOF"
37419} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037420 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37421ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037422ac_delim='%!_!# '
37423for ac_last_try in false false false false false :; do
37424 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037425 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037426
37427 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37428 if test $ac_delim_n = $ac_delim_num; then
37429 break
37430 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037431 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037432 else
37433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37434 fi
37435done
37436rm -f conf$$subs.sh
37437
37438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037439cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037440_ACEOF
37441sed -n '
37442h
37443s/^/S["/; s/!.*/"]=/
37444p
37445g
37446s/^[^!]*!//
37447:repl
37448t repl
37449s/'"$ac_delim"'$//
37450t delim
37451:nl
37452h
cristycd4c5312009-11-22 01:19:08 +000037453s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037454t more1
37455s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37456p
37457n
37458b repl
37459:more1
37460s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37461p
37462g
37463s/.\{148\}//
37464t nl
37465:delim
37466h
cristycd4c5312009-11-22 01:19:08 +000037467s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037468t more2
37469s/["\\]/\\&/g; s/^/"/; s/$/"/
37470p
37471b
37472:more2
37473s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37474p
37475g
37476s/.\{148\}//
37477t delim
37478' <conf$$subs.awk | sed '
37479/^[^""]/{
37480 N
37481 s/\n//
37482}
37483' >>$CONFIG_STATUS || ac_write_fail=1
37484rm -f conf$$subs.awk
37485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37486_ACAWK
cristyda16f162011-02-19 23:52:17 +000037487cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037488 for (key in S) S_is_set[key] = 1
37489 FS = ""
37490
37491}
37492{
37493 line = $ 0
37494 nfields = split(line, field, "@")
37495 substed = 0
37496 len = length(field[1])
37497 for (i = 2; i < nfields; i++) {
37498 key = field[i]
37499 keylen = length(key)
37500 if (S_is_set[key]) {
37501 value = S[key]
37502 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37503 len += length(value) + length(field[++i])
37504 substed = 1
37505 } else
37506 len += 1 + keylen
37507 }
37508
37509 print line
37510}
37511
37512_ACAWK
37513_ACEOF
37514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37515if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37516 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37517else
37518 cat
cristyda16f162011-02-19 23:52:17 +000037519fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037520 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037521_ACEOF
37522
cristy98dddb52010-11-04 00:30:15 +000037523# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37524# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037525# trailing colons and then remove the whole line if VPATH becomes empty
37526# (actually we leave an empty line to preserve line numbers).
37527if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037528 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37529h
37530s///
37531s/^/:/
37532s/[ ]*$/:/
37533s/:\$(srcdir):/:/g
37534s/:\${srcdir}:/:/g
37535s/:@srcdir@:/:/g
37536s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037537s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037538x
37539s/\(=[ ]*\).*/\1/
37540G
37541s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037542s/^[^=]*=[ ]*$//
37543}'
37544fi
37545
37546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37547fi # test -n "$CONFIG_FILES"
37548
37549# Set up the scripts for CONFIG_HEADERS section.
37550# No need to generate them if there are no CONFIG_HEADERS.
37551# This happens for instance with `./config.status Makefile'.
37552if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037553cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037554BEGIN {
37555_ACEOF
37556
37557# Transform confdefs.h into an awk script `defines.awk', embedded as
37558# here-document in config.status, that substitutes the proper values into
37559# config.h.in to produce config.h.
37560
37561# Create a delimiter string that does not exist in confdefs.h, to ease
37562# handling of long lines.
37563ac_delim='%!_!# '
37564for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037565 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37566 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037567 break
37568 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037569 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037570 else
37571 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37572 fi
37573done
37574
37575# For the awk script, D is an array of macro values keyed by name,
37576# likewise P contains macro parameters if any. Preserve backslash
37577# newline sequences.
37578
37579ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37580sed -n '
37581s/.\{148\}/&'"$ac_delim"'/g
37582t rset
37583:rset
37584s/^[ ]*#[ ]*define[ ][ ]*/ /
37585t def
37586d
37587:def
37588s/\\$//
37589t bsnl
37590s/["\\]/\\&/g
37591s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37592D["\1"]=" \3"/p
37593s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37594d
37595:bsnl
37596s/["\\]/\\&/g
37597s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37598D["\1"]=" \3\\\\\\n"\\/p
37599t cont
37600s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37601t cont
37602d
37603:cont
37604n
37605s/.\{148\}/&'"$ac_delim"'/g
37606t clear
37607:clear
37608s/\\$//
37609t bsnlc
37610s/["\\]/\\&/g; s/^/"/; s/$/"/p
37611d
37612:bsnlc
37613s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37614b cont
37615' <confdefs.h | sed '
37616s/'"$ac_delim"'/"\\\
37617"/g' >>$CONFIG_STATUS || ac_write_fail=1
37618
37619cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37620 for (key in D) D_is_set[key] = 1
37621 FS = ""
37622}
37623/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37624 line = \$ 0
37625 split(line, arg, " ")
37626 if (arg[1] == "#") {
37627 defundef = arg[2]
37628 mac1 = arg[3]
37629 } else {
37630 defundef = substr(arg[1], 2)
37631 mac1 = arg[2]
37632 }
37633 split(mac1, mac2, "(") #)
37634 macro = mac2[1]
37635 prefix = substr(line, 1, index(line, defundef) - 1)
37636 if (D_is_set[macro]) {
37637 # Preserve the white space surrounding the "#".
37638 print prefix "define", macro P[macro] D[macro]
37639 next
37640 } else {
37641 # Replace #undef with comments. This is necessary, for example,
37642 # in the case of _POSIX_SOURCE, which is predefined and required
37643 # on some systems where configure will not decide to define it.
37644 if (defundef == "undef") {
37645 print "/*", prefix defundef, macro, "*/"
37646 next
37647 }
37648 }
37649}
37650{ print }
37651_ACAWK
37652_ACEOF
37653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037654 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037655fi # test -n "$CONFIG_HEADERS"
37656
37657
37658eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37659shift
37660for ac_tag
37661do
37662 case $ac_tag in
37663 :[FHLC]) ac_mode=$ac_tag; continue;;
37664 esac
37665 case $ac_mode$ac_tag in
37666 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037667 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037668 :[FH]-) ac_tag=-:-;;
37669 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37670 esac
37671 ac_save_IFS=$IFS
37672 IFS=:
37673 set x $ac_tag
37674 IFS=$ac_save_IFS
37675 shift
37676 ac_file=$1
37677 shift
37678
37679 case $ac_mode in
37680 :L) ac_source=$1;;
37681 :[FH])
37682 ac_file_inputs=
37683 for ac_f
37684 do
37685 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037686 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037687 *) # Look for the file first in the build tree, then in the source tree
37688 # (if the path is not absolute). The absolute path cannot be DOS-style,
37689 # because $ac_f cannot contain `:'.
37690 test -f "$ac_f" ||
37691 case $ac_f in
37692 [\\/$]*) false;;
37693 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37694 esac ||
cristy98dddb52010-11-04 00:30:15 +000037695 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037696 esac
37697 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037698 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037699 done
37700
37701 # Let's still pretend it is `configure' which instantiates (i.e., don't
37702 # use $as_me), people would be surprised to read:
37703 # /* config.h. Generated by config.status. */
37704 configure_input='Generated from '`
37705 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37706 `' by configure.'
37707 if test x"$ac_file" != x-; then
37708 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037710$as_echo "$as_me: creating $ac_file" >&6;}
37711 fi
37712 # Neutralize special characters interpreted by sed in replacement strings.
37713 case $configure_input in #(
37714 *\&* | *\|* | *\\* )
37715 ac_sed_conf_input=`$as_echo "$configure_input" |
37716 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37717 *) ac_sed_conf_input=$configure_input;;
37718 esac
37719
37720 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037721 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037723 esac
37724 ;;
37725 esac
37726
37727 ac_dir=`$as_dirname -- "$ac_file" ||
37728$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37729 X"$ac_file" : 'X\(//\)[^/]' \| \
37730 X"$ac_file" : 'X\(//\)$' \| \
37731 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37732$as_echo X"$ac_file" |
37733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37734 s//\1/
37735 q
37736 }
37737 /^X\(\/\/\)[^/].*/{
37738 s//\1/
37739 q
37740 }
37741 /^X\(\/\/\)$/{
37742 s//\1/
37743 q
37744 }
37745 /^X\(\/\).*/{
37746 s//\1/
37747 q
37748 }
37749 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037750 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037751 ac_builddir=.
37752
37753case "$ac_dir" in
37754.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37755*)
37756 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37757 # A ".." for each directory in $ac_dir_suffix.
37758 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37759 case $ac_top_builddir_sub in
37760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37762 esac ;;
37763esac
37764ac_abs_top_builddir=$ac_pwd
37765ac_abs_builddir=$ac_pwd$ac_dir_suffix
37766# for backward compatibility:
37767ac_top_builddir=$ac_top_build_prefix
37768
37769case $srcdir in
37770 .) # We are building in place.
37771 ac_srcdir=.
37772 ac_top_srcdir=$ac_top_builddir_sub
37773 ac_abs_top_srcdir=$ac_pwd ;;
37774 [\\/]* | ?:[\\/]* ) # Absolute name.
37775 ac_srcdir=$srcdir$ac_dir_suffix;
37776 ac_top_srcdir=$srcdir
37777 ac_abs_top_srcdir=$srcdir ;;
37778 *) # Relative name.
37779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37780 ac_top_srcdir=$ac_top_build_prefix$srcdir
37781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37782esac
37783ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37784
37785
37786 case $ac_mode in
37787 :F)
37788 #
37789 # CONFIG_FILE
37790 #
37791
37792 case $INSTALL in
37793 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37794 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37795 esac
cristy73bd4a52010-10-05 11:24:23 +000037796 ac_MKDIR_P=$MKDIR_P
37797 case $MKDIR_P in
37798 [\\/$]* | ?:[\\/]* ) ;;
37799 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37800 esac
cristy3ed852e2009-09-05 21:47:34 +000037801_ACEOF
37802
37803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37804# If the template does not know about datarootdir, expand it.
37805# FIXME: This hack should be removed a few years after 2.60.
37806ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037807ac_sed_dataroot='
37808/datarootdir/ {
37809 p
37810 q
37811}
37812/@datadir@/p
37813/@docdir@/p
37814/@infodir@/p
37815/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037816/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037817case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37818*datarootdir*) ac_datarootdir_seen=yes;;
37819*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037821$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37822_ACEOF
37823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37824 ac_datarootdir_hack='
37825 s&@datadir@&$datadir&g
37826 s&@docdir@&$docdir&g
37827 s&@infodir@&$infodir&g
37828 s&@localedir@&$localedir&g
37829 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037830 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037831esac
37832_ACEOF
37833
37834# Neutralize VPATH when `$srcdir' = `.'.
37835# Shell code in configure.ac might set extrasub.
37836# FIXME: do we really want to maintain this feature?
37837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37838ac_sed_extra="$ac_vpsub
37839$extrasub
37840_ACEOF
37841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37842:t
37843/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37844s|@configure_input@|$ac_sed_conf_input|;t t
37845s&@top_builddir@&$ac_top_builddir_sub&;t t
37846s&@top_build_prefix@&$ac_top_build_prefix&;t t
37847s&@srcdir@&$ac_srcdir&;t t
37848s&@abs_srcdir@&$ac_abs_srcdir&;t t
37849s&@top_srcdir@&$ac_top_srcdir&;t t
37850s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37851s&@builddir@&$ac_builddir&;t t
37852s&@abs_builddir@&$ac_abs_builddir&;t t
37853s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37854s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037855s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037856$ac_datarootdir_hack
37857"
cristyda16f162011-02-19 23:52:17 +000037858eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37859 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037860
37861test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037862 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37863 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37864 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037866which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037867$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037868which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037869
cristyda16f162011-02-19 23:52:17 +000037870 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037871 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037872 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37873 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037874 esac \
cristy98dddb52010-11-04 00:30:15 +000037875 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037876 ;;
37877 :H)
37878 #
37879 # CONFIG_HEADER
37880 #
37881 if test x"$ac_file" != x-; then
37882 {
37883 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037884 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37885 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037887 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037888 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037889$as_echo "$as_me: $ac_file is unchanged" >&6;}
37890 else
37891 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037892 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037893 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037894 fi
37895 else
37896 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037897 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037898 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037899 fi
cristy73bd4a52010-10-05 11:24:23 +000037900# Compute "$ac_file"'s index in $config_headers.
37901_am_arg="$ac_file"
37902_am_stamp_count=1
37903for _am_header in $config_headers :; do
37904 case $_am_header in
37905 $_am_arg | $_am_arg:* )
37906 break ;;
37907 * )
37908 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37909 esac
37910done
37911echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37912$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37913 X"$_am_arg" : 'X\(//\)[^/]' \| \
37914 X"$_am_arg" : 'X\(//\)$' \| \
37915 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37916$as_echo X"$_am_arg" |
37917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37918 s//\1/
37919 q
37920 }
37921 /^X\(\/\/\)[^/].*/{
37922 s//\1/
37923 q
37924 }
37925 /^X\(\/\/\)$/{
37926 s//\1/
37927 q
37928 }
37929 /^X\(\/\).*/{
37930 s//\1/
37931 q
37932 }
37933 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037934 ;;
37935
cristy8b350f62009-11-15 23:12:43 +000037936 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037937$as_echo "$as_me: executing $ac_file commands" >&6;}
37938 ;;
37939 esac
37940
37941
37942 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037943 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037944ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37945ac_prefix_conf_PKG=`echo MagickCore`
37946ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37947ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37948ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37949if test ".$ac_prefix_conf_INP" = "."; then
37950 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37951 case "$ac_file" in
37952 *.h) ac_prefix_conf_INP=$ac_file ;;
37953 *)
37954 esac
37955 test ".$ac_prefix_conf_INP" != "." && break
37956 done
37957fi
37958if test ".$ac_prefix_conf_INP" = "."; then
37959 case "$ac_prefix_conf_OUT" in
37960 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37961 ;;
37962 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37963 ;;
37964 *) ac_prefix_conf_INP=config.h
37965 ;;
37966 esac
37967fi
37968if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037969 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037970else
37971 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37972 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37973 fi fi
37974 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37975$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37976 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037977 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37978 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37979 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37980 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37981 $as_echo "#endif/" >> conftest.prefix
37982 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37983 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37984 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037985 # now executing _script on _DEF input to create _OUT output file
37986 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37987 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37988 echo ' ' >>$tmp/pconfig.h
37989 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37990
37991 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37992 echo ' ' >>$tmp/pconfig.h
37993 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37994 echo "#endif" >>$tmp/pconfig.h
37995 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37996 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37997$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37998 else
37999 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38000$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38001 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38002 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38003 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38004$as_echo X"$ac_prefix_conf_OUT" |
38005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38006 s//\1/
38007 q
38008 }
38009 /^X\(\/\/\)[^/].*/{
38010 s//\1/
38011 q
38012 }
38013 /^X\(\/\/\)$/{
38014 s//\1/
38015 q
38016 }
38017 /^X\(\/\).*/{
38018 s//\1/
38019 q
38020 }
38021 s/.*/./; q'`
38022 as_dir="$ac_dir"; as_fn_mkdir_p
38023 rm -f "$ac_prefix_conf_OUT"
38024 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38025 fi
38026 cp conftest.prefix _configs.sed
38027 else
cristy98dddb52010-11-04 00:30:15 +000038028 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 +000038029 fi
38030 rm -f conftest.*
38031fi
38032 ;;
38033 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038034 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038035 # are listed without --file. Let's play safe and only enable the eval
38036 # if we detect the quoting.
38037 case $CONFIG_FILES in
38038 *\'*) eval set x "$CONFIG_FILES" ;;
38039 *) set x $CONFIG_FILES ;;
38040 esac
38041 shift
38042 for mf
38043 do
38044 # Strip MF so we end up with the name of the file.
38045 mf=`echo "$mf" | sed -e 's/:.*$//'`
38046 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038047 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038048 # some people rename them; so instead we look at the file content.
38049 # Grep'ing the first line is not enough: some people post-process
38050 # each Makefile.in and add a new line on top of each file to say so.
38051 # Grep'ing the whole file is not good either: AIX grep has a line
38052 # limit of 2048, but all sed's we know have understand at least 4000.
38053 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38054 dirpart=`$as_dirname -- "$mf" ||
38055$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38056 X"$mf" : 'X\(//\)[^/]' \| \
38057 X"$mf" : 'X\(//\)$' \| \
38058 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38059$as_echo X"$mf" |
38060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38061 s//\1/
38062 q
38063 }
38064 /^X\(\/\/\)[^/].*/{
38065 s//\1/
38066 q
38067 }
38068 /^X\(\/\/\)$/{
38069 s//\1/
38070 q
38071 }
38072 /^X\(\/\).*/{
38073 s//\1/
38074 q
38075 }
38076 s/.*/./; q'`
38077 else
38078 continue
38079 fi
38080 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038081 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038082 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38083 test -z "$DEPDIR" && continue
38084 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038085 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038086 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038087 # Find all dependency output files, they are included files with
38088 # $(DEPDIR) in their names. We invoke sed twice because it is the
38089 # simplest approach to changing $(DEPDIR) to its actual value in the
38090 # expansion.
38091 for file in `sed -n "
38092 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038093 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038094 # Make sure the directory exists.
38095 test -f "$dirpart/$file" && continue
38096 fdir=`$as_dirname -- "$file" ||
38097$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38098 X"$file" : 'X\(//\)[^/]' \| \
38099 X"$file" : 'X\(//\)$' \| \
38100 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38101$as_echo X"$file" |
38102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38103 s//\1/
38104 q
38105 }
38106 /^X\(\/\/\)[^/].*/{
38107 s//\1/
38108 q
38109 }
38110 /^X\(\/\/\)$/{
38111 s//\1/
38112 q
38113 }
38114 /^X\(\/\).*/{
38115 s//\1/
38116 q
38117 }
38118 s/.*/./; q'`
38119 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38120 # echo "creating $dirpart/$file"
38121 echo '# dummy' > "$dirpart/$file"
38122 done
38123 done
38124}
38125 ;;
38126 "libtool":C)
38127
38128 # See if we are running on zsh, and set the options which allow our
38129 # commands through without removal of \ escapes.
38130 if test -n "${ZSH_VERSION+set}" ; then
38131 setopt NO_GLOB_SUBST
38132 fi
38133
38134 cfgfile="${ofile}T"
38135 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38136 $RM "$cfgfile"
38137
38138 cat <<_LT_EOF >> "$cfgfile"
38139#! $SHELL
38140
38141# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38142# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38143# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38144# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38145#
38146# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038147# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38148# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038149# Written by Gordon Matzigkeit, 1996
38150#
38151# This file is part of GNU Libtool.
38152#
38153# GNU Libtool is free software; you can redistribute it and/or
38154# modify it under the terms of the GNU General Public License as
38155# published by the Free Software Foundation; either version 2 of
38156# the License, or (at your option) any later version.
38157#
38158# As a special exception to the GNU General Public License,
38159# if you distribute this file as part of a program or library that
38160# is built using GNU Libtool, you may include this file under the
38161# same distribution terms that you use for the rest of that program.
38162#
38163# GNU Libtool is distributed in the hope that it will be useful,
38164# but WITHOUT ANY WARRANTY; without even the implied warranty of
38165# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38166# GNU General Public License for more details.
38167#
38168# You should have received a copy of the GNU General Public License
38169# along with GNU Libtool; see the file COPYING. If not, a copy
38170# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38171# obtained by writing to the Free Software Foundation, Inc.,
38172# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38173
38174
38175# The names of the tagged configurations supported by this script.
38176available_tags="CXX "
38177
38178# ### BEGIN LIBTOOL CONFIG
38179
38180# A sed program that does not truncate output.
38181SED=$lt_SED
38182
38183# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38184Xsed="\$SED -e 1s/^X//"
38185
38186# A grep program that handles long lines.
38187GREP=$lt_GREP
38188
38189# An ERE matcher.
38190EGREP=$lt_EGREP
38191
38192# A literal string matcher.
38193FGREP=$lt_FGREP
38194
cristy0c60a692010-11-04 01:09:47 +000038195# Shell to use when invoking shell scripts.
38196SHELL=$lt_SHELL
38197
38198# An echo program that protects backslashes.
38199ECHO=$lt_ECHO
38200
cristy73bd4a52010-10-05 11:24:23 +000038201# Which release of libtool.m4 was used?
38202macro_version=$macro_version
38203macro_revision=$macro_revision
38204
38205# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038206AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038207
38208# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038209DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038210
38211# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038212OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038213
38214# Whether or not to build shared libraries.
38215build_libtool_libs=$enable_shared
38216
38217# Whether or not to build static libraries.
38218build_old_libs=$enable_static
38219
38220# What type of objects to build.
38221pic_mode=$pic_mode
38222
38223# Whether or not to optimize for fast installation.
38224fast_install=$enable_fast_install
38225
cristy99bd5232011-12-07 14:38:20 +000038226# The PATH separator for the build system.
38227PATH_SEPARATOR=$lt_PATH_SEPARATOR
38228
cristy73bd4a52010-10-05 11:24:23 +000038229# The host system.
38230host_alias=$host_alias
38231host=$host
38232host_os=$host_os
38233
38234# The build system.
38235build_alias=$build_alias
38236build=$build
38237build_os=$build_os
38238
38239# A BSD- or MS-compatible name lister.
38240NM=$lt_NM
38241
38242# Whether we need soft or hard links.
38243LN_S=$lt_LN_S
38244
38245# What is the maximum length of a command?
38246max_cmd_len=$max_cmd_len
38247
38248# Object file suffix (normally "o").
38249objext=$ac_objext
38250
38251# Executable file suffix (normally "").
38252exeext=$exeext
38253
38254# whether the shell understands "unset".
38255lt_unset=$lt_unset
38256
38257# turn spaces into newlines.
38258SP2NL=$lt_lt_SP2NL
38259
38260# turn newlines into spaces.
38261NL2SP=$lt_lt_NL2SP
38262
cristyda16f162011-02-19 23:52:17 +000038263# convert \$build file names to \$host format.
38264to_host_file_cmd=$lt_cv_to_host_file_cmd
38265
38266# convert \$build files to toolchain format.
38267to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38268
cristy73bd4a52010-10-05 11:24:23 +000038269# Method to check whether dependent libraries are shared objects.
38270deplibs_check_method=$lt_deplibs_check_method
38271
cristyda16f162011-02-19 23:52:17 +000038272# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038273file_magic_cmd=$lt_file_magic_cmd
38274
cristyda16f162011-02-19 23:52:17 +000038275# How to find potential files when deplibs_check_method = "file_magic".
38276file_magic_glob=$lt_file_magic_glob
38277
38278# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38279want_nocaseglob=$lt_want_nocaseglob
38280
38281# Command to associate shared and link libraries.
38282sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38283
cristy73bd4a52010-10-05 11:24:23 +000038284# The archiver.
38285AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038286
38287# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038288AR_FLAGS=$lt_AR_FLAGS
38289
cristyda16f162011-02-19 23:52:17 +000038290# How to feed a file listing to the archiver.
38291archiver_list_spec=$lt_archiver_list_spec
38292
cristy73bd4a52010-10-05 11:24:23 +000038293# A symbol stripping program.
38294STRIP=$lt_STRIP
38295
38296# Commands used to install an old-style archive.
38297RANLIB=$lt_RANLIB
38298old_postinstall_cmds=$lt_old_postinstall_cmds
38299old_postuninstall_cmds=$lt_old_postuninstall_cmds
38300
cristy0c60a692010-11-04 01:09:47 +000038301# Whether to use a lock for old archive extraction.
38302lock_old_archive_extraction=$lock_old_archive_extraction
38303
cristy73bd4a52010-10-05 11:24:23 +000038304# A C compiler.
38305LTCC=$lt_CC
38306
38307# LTCC compiler flags.
38308LTCFLAGS=$lt_CFLAGS
38309
38310# Take the output of nm and produce a listing of raw symbols and C names.
38311global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38312
38313# Transform the output of nm in a proper C declaration.
38314global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38315
38316# Transform the output of nm in a C name address pair.
38317global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38318
38319# Transform the output of nm in a C name address pair when lib prefix is needed.
38320global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38321
cristyda16f162011-02-19 23:52:17 +000038322# Specify filename containing input files for \$NM.
38323nm_file_list_spec=$lt_nm_file_list_spec
38324
38325# The root where to search for dependent libraries,and in which our libraries should be installed.
38326lt_sysroot=$lt_sysroot
38327
cristy73bd4a52010-10-05 11:24:23 +000038328# The name of the directory that contains temporary libtool files.
38329objdir=$objdir
38330
cristy73bd4a52010-10-05 11:24:23 +000038331# Used to examine libraries when file_magic_cmd begins with "file".
38332MAGIC_CMD=$MAGIC_CMD
38333
38334# Must we lock files when doing compilation?
38335need_locks=$lt_need_locks
38336
cristyda16f162011-02-19 23:52:17 +000038337# Manifest tool.
38338MANIFEST_TOOL=$lt_MANIFEST_TOOL
38339
cristy73bd4a52010-10-05 11:24:23 +000038340# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38341DSYMUTIL=$lt_DSYMUTIL
38342
38343# Tool to change global to local symbols on Mac OS X.
38344NMEDIT=$lt_NMEDIT
38345
38346# Tool to manipulate fat objects and archives on Mac OS X.
38347LIPO=$lt_LIPO
38348
38349# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38350OTOOL=$lt_OTOOL
38351
38352# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38353OTOOL64=$lt_OTOOL64
38354
38355# Old archive suffix (normally "a").
38356libext=$libext
38357
38358# Shared library suffix (normally ".so").
38359shrext_cmds=$lt_shrext_cmds
38360
38361# The commands to extract the exported symbol list from a shared archive.
38362extract_expsyms_cmds=$lt_extract_expsyms_cmds
38363
38364# Variables whose values should be saved in libtool wrapper scripts and
38365# restored at link time.
38366variables_saved_for_relink=$lt_variables_saved_for_relink
38367
38368# Do we need the "lib" prefix for modules?
38369need_lib_prefix=$need_lib_prefix
38370
38371# Do we need a version for libraries?
38372need_version=$need_version
38373
38374# Library versioning type.
38375version_type=$version_type
38376
38377# Shared library runtime path variable.
38378runpath_var=$runpath_var
38379
38380# Shared library path variable.
38381shlibpath_var=$shlibpath_var
38382
38383# Is shlibpath searched before the hard-coded library search path?
38384shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38385
38386# Format of library name prefix.
38387libname_spec=$lt_libname_spec
38388
38389# List of archive names. First name is the real one, the rest are links.
38390# The last name is the one that the linker finds with -lNAME
38391library_names_spec=$lt_library_names_spec
38392
38393# The coded name of the library, if different from the real name.
38394soname_spec=$lt_soname_spec
38395
cristy0c60a692010-11-04 01:09:47 +000038396# Permission mode override for installation of shared libraries.
38397install_override_mode=$lt_install_override_mode
38398
cristy73bd4a52010-10-05 11:24:23 +000038399# Command to use after installation of a shared archive.
38400postinstall_cmds=$lt_postinstall_cmds
38401
38402# Command to use after uninstallation of a shared archive.
38403postuninstall_cmds=$lt_postuninstall_cmds
38404
38405# Commands used to finish a libtool library installation in a directory.
38406finish_cmds=$lt_finish_cmds
38407
38408# As "finish_cmds", except a single script fragment to be evaled but
38409# not shown.
38410finish_eval=$lt_finish_eval
38411
38412# Whether we should hardcode library paths into libraries.
38413hardcode_into_libs=$hardcode_into_libs
38414
38415# Compile-time system search path for libraries.
38416sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38417
38418# Run-time system search path for libraries.
38419sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38420
38421# Whether dlopen is supported.
38422dlopen_support=$enable_dlopen
38423
38424# Whether dlopen of programs is supported.
38425dlopen_self=$enable_dlopen_self
38426
38427# Whether dlopen of statically linked programs is supported.
38428dlopen_self_static=$enable_dlopen_self_static
38429
38430# Commands to strip libraries.
38431old_striplib=$lt_old_striplib
38432striplib=$lt_striplib
38433
38434
38435# The linker used to build libraries.
38436LD=$lt_LD
38437
cristy0c60a692010-11-04 01:09:47 +000038438# How to create reloadable object files.
38439reload_flag=$lt_reload_flag
38440reload_cmds=$lt_reload_cmds
38441
cristy73bd4a52010-10-05 11:24:23 +000038442# Commands used to build an old-style archive.
38443old_archive_cmds=$lt_old_archive_cmds
38444
38445# A language specific compiler.
38446CC=$lt_compiler
38447
38448# Is the compiler the GNU compiler?
38449with_gcc=$GCC
38450
38451# Compiler flag to turn off builtin functions.
38452no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38453
cristy73bd4a52010-10-05 11:24:23 +000038454# Additional compiler flags for building library objects.
38455pic_flag=$lt_lt_prog_compiler_pic
38456
cristyda16f162011-02-19 23:52:17 +000038457# How to pass a linker flag through the compiler.
38458wl=$lt_lt_prog_compiler_wl
38459
cristy73bd4a52010-10-05 11:24:23 +000038460# Compiler flag to prevent dynamic linking.
38461link_static_flag=$lt_lt_prog_compiler_static
38462
38463# Does compiler simultaneously support -c and -o options?
38464compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38465
38466# Whether or not to add -lc for building shared libraries.
38467build_libtool_need_lc=$archive_cmds_need_lc
38468
38469# Whether or not to disallow shared libs when runtime libs are static.
38470allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38471
38472# Compiler flag to allow reflexive dlopens.
38473export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38474
38475# Compiler flag to generate shared objects directly from archives.
38476whole_archive_flag_spec=$lt_whole_archive_flag_spec
38477
38478# Whether the compiler copes with passing no objects directly.
38479compiler_needs_object=$lt_compiler_needs_object
38480
38481# Create an old-style archive from a shared archive.
38482old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38483
38484# Create a temporary old-style archive to link instead of a shared archive.
38485old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38486
38487# Commands used to build a shared archive.
38488archive_cmds=$lt_archive_cmds
38489archive_expsym_cmds=$lt_archive_expsym_cmds
38490
38491# Commands used to build a loadable module if different from building
38492# a shared archive.
38493module_cmds=$lt_module_cmds
38494module_expsym_cmds=$lt_module_expsym_cmds
38495
38496# Whether we are building with GNU ld or not.
38497with_gnu_ld=$lt_with_gnu_ld
38498
38499# Flag that allows shared libraries with undefined symbols to be built.
38500allow_undefined_flag=$lt_allow_undefined_flag
38501
38502# Flag that enforces no undefined symbols.
38503no_undefined_flag=$lt_no_undefined_flag
38504
38505# Flag to hardcode \$libdir into a binary during linking.
38506# This must work even if \$libdir does not exist
38507hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38508
cristy73bd4a52010-10-05 11:24:23 +000038509# Whether we need a single "-rpath" flag with a separated argument.
38510hardcode_libdir_separator=$lt_hardcode_libdir_separator
38511
38512# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38513# DIR into the resulting binary.
38514hardcode_direct=$hardcode_direct
38515
38516# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38517# DIR into the resulting binary and the resulting library dependency is
38518# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38519# library is relocated.
38520hardcode_direct_absolute=$hardcode_direct_absolute
38521
38522# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38523# into the resulting binary.
38524hardcode_minus_L=$hardcode_minus_L
38525
38526# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38527# into the resulting binary.
38528hardcode_shlibpath_var=$hardcode_shlibpath_var
38529
38530# Set to "yes" if building a shared library automatically hardcodes DIR
38531# into the library and all subsequent libraries and executables linked
38532# against it.
38533hardcode_automatic=$hardcode_automatic
38534
38535# Set to yes if linker adds runtime paths of dependent libraries
38536# to runtime path list.
38537inherit_rpath=$inherit_rpath
38538
38539# Whether libtool must link a program against all its dependency libraries.
38540link_all_deplibs=$link_all_deplibs
38541
cristy73bd4a52010-10-05 11:24:23 +000038542# Set to "yes" if exported symbols are required.
38543always_export_symbols=$always_export_symbols
38544
38545# The commands to list exported symbols.
38546export_symbols_cmds=$lt_export_symbols_cmds
38547
38548# Symbols that should not be listed in the preloaded symbols.
38549exclude_expsyms=$lt_exclude_expsyms
38550
38551# Symbols that must always be exported.
38552include_expsyms=$lt_include_expsyms
38553
38554# Commands necessary for linking programs (against libraries) with templates.
38555prelink_cmds=$lt_prelink_cmds
38556
cristyda16f162011-02-19 23:52:17 +000038557# Commands necessary for finishing linking programs.
38558postlink_cmds=$lt_postlink_cmds
38559
cristy73bd4a52010-10-05 11:24:23 +000038560# Specify filename containing input files.
38561file_list_spec=$lt_file_list_spec
38562
38563# How to hardcode a shared library path into an executable.
38564hardcode_action=$hardcode_action
38565
38566# The directories searched by this compiler when creating a shared library.
38567compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38568
38569# Dependencies to place before and after the objects being linked to
38570# create a shared library.
38571predep_objects=$lt_predep_objects
38572postdep_objects=$lt_postdep_objects
38573predeps=$lt_predeps
38574postdeps=$lt_postdeps
38575
38576# The library search path used internally by the compiler when linking
38577# a shared library.
38578compiler_lib_search_path=$lt_compiler_lib_search_path
38579
38580# ### END LIBTOOL CONFIG
38581
38582_LT_EOF
38583
38584 case $host_os in
38585 aix3*)
38586 cat <<\_LT_EOF >> "$cfgfile"
38587# AIX sometimes has problems with the GCC collect2 program. For some
38588# reason, if we set the COLLECT_NAMES environment variable, the problems
38589# vanish in a puff of smoke.
38590if test "X${COLLECT_NAMES+set}" != Xset; then
38591 COLLECT_NAMES=
38592 export COLLECT_NAMES
38593fi
38594_LT_EOF
38595 ;;
38596 esac
38597
38598
38599ltmain="$ac_aux_dir/ltmain.sh"
38600
38601
38602 # We use sed instead of cat because bash on DJGPP gets confused if
38603 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38604 # text mode, it properly converts lines to CR/LF. This bash problem
38605 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038606 sed '$q' "$ltmain" >> "$cfgfile" \
38607 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038608
cristyda16f162011-02-19 23:52:17 +000038609 if test x"$xsi_shell" = xyes; then
38610 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38611func_dirname ()\
38612{\
38613\ case ${1} in\
38614\ */*) func_dirname_result="${1%/*}${2}" ;;\
38615\ * ) func_dirname_result="${3}" ;;\
38616\ esac\
38617} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38618 && mv -f "$cfgfile.tmp" "$cfgfile" \
38619 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38620test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038621
38622
cristyda16f162011-02-19 23:52:17 +000038623 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38624func_basename ()\
38625{\
38626\ func_basename_result="${1##*/}"\
38627} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38628 && mv -f "$cfgfile.tmp" "$cfgfile" \
38629 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38630test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038631
38632
cristyda16f162011-02-19 23:52:17 +000038633 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38634func_dirname_and_basename ()\
38635{\
38636\ case ${1} in\
38637\ */*) func_dirname_result="${1%/*}${2}" ;;\
38638\ * ) func_dirname_result="${3}" ;;\
38639\ esac\
38640\ func_basename_result="${1##*/}"\
38641} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38642 && mv -f "$cfgfile.tmp" "$cfgfile" \
38643 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38644test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038645
cristyda16f162011-02-19 23:52:17 +000038646
38647 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38648func_stripname ()\
38649{\
38650\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38651\ # positional parameters, so assign one to ordinary parameter first.\
38652\ func_stripname_result=${3}\
38653\ func_stripname_result=${func_stripname_result#"${1}"}\
38654\ func_stripname_result=${func_stripname_result%"${2}"}\
38655} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38656 && mv -f "$cfgfile.tmp" "$cfgfile" \
38657 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38658test 0 -eq $? || _lt_function_replace_fail=:
38659
38660
38661 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38662func_split_long_opt ()\
38663{\
38664\ func_split_long_opt_name=${1%%=*}\
38665\ func_split_long_opt_arg=${1#*=}\
38666} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38667 && mv -f "$cfgfile.tmp" "$cfgfile" \
38668 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38669test 0 -eq $? || _lt_function_replace_fail=:
38670
38671
38672 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38673func_split_short_opt ()\
38674{\
38675\ func_split_short_opt_arg=${1#??}\
38676\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38677} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38678 && mv -f "$cfgfile.tmp" "$cfgfile" \
38679 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38680test 0 -eq $? || _lt_function_replace_fail=:
38681
38682
38683 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38684func_lo2o ()\
38685{\
38686\ case ${1} in\
38687\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38688\ *) func_lo2o_result=${1} ;;\
38689\ esac\
38690} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38691 && mv -f "$cfgfile.tmp" "$cfgfile" \
38692 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38693test 0 -eq $? || _lt_function_replace_fail=:
38694
38695
38696 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38697func_xform ()\
38698{\
38699 func_xform_result=${1%.*}.lo\
38700} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38701 && mv -f "$cfgfile.tmp" "$cfgfile" \
38702 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38703test 0 -eq $? || _lt_function_replace_fail=:
38704
38705
38706 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38707func_arith ()\
38708{\
38709 func_arith_result=$(( $* ))\
38710} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38711 && mv -f "$cfgfile.tmp" "$cfgfile" \
38712 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38713test 0 -eq $? || _lt_function_replace_fail=:
38714
38715
38716 sed -e '/^func_len ()$/,/^} # func_len /c\
38717func_len ()\
38718{\
38719 func_len_result=${#1}\
38720} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38721 && mv -f "$cfgfile.tmp" "$cfgfile" \
38722 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38723test 0 -eq $? || _lt_function_replace_fail=:
38724
38725fi
38726
38727if test x"$lt_shell_append" = xyes; then
38728 sed -e '/^func_append ()$/,/^} # func_append /c\
38729func_append ()\
38730{\
38731 eval "${1}+=\\${2}"\
38732} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38733 && mv -f "$cfgfile.tmp" "$cfgfile" \
38734 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38735test 0 -eq $? || _lt_function_replace_fail=:
38736
38737
38738 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38739func_append_quoted ()\
38740{\
38741\ func_quote_for_eval "${2}"\
38742\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38743} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38744 && mv -f "$cfgfile.tmp" "$cfgfile" \
38745 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38746test 0 -eq $? || _lt_function_replace_fail=:
38747
38748
38749 # Save a `func_append' function call where possible by direct use of '+='
38750 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38751 && mv -f "$cfgfile.tmp" "$cfgfile" \
38752 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38753 test 0 -eq $? || _lt_function_replace_fail=:
38754else
38755 # Save a `func_append' function call even when '+=' is not available
38756 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38757 && mv -f "$cfgfile.tmp" "$cfgfile" \
38758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38759 test 0 -eq $? || _lt_function_replace_fail=:
38760fi
38761
38762if test x"$_lt_function_replace_fail" = x":"; then
38763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38764$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38765fi
38766
38767
38768 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038769 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38770 chmod +x "$ofile"
38771
38772
38773 cat <<_LT_EOF >> "$ofile"
38774
38775# ### BEGIN LIBTOOL TAG CONFIG: CXX
38776
38777# The linker used to build libraries.
38778LD=$lt_LD_CXX
38779
cristy0c60a692010-11-04 01:09:47 +000038780# How to create reloadable object files.
38781reload_flag=$lt_reload_flag_CXX
38782reload_cmds=$lt_reload_cmds_CXX
38783
cristy73bd4a52010-10-05 11:24:23 +000038784# Commands used to build an old-style archive.
38785old_archive_cmds=$lt_old_archive_cmds_CXX
38786
38787# A language specific compiler.
38788CC=$lt_compiler_CXX
38789
38790# Is the compiler the GNU compiler?
38791with_gcc=$GCC_CXX
38792
38793# Compiler flag to turn off builtin functions.
38794no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38795
cristy73bd4a52010-10-05 11:24:23 +000038796# Additional compiler flags for building library objects.
38797pic_flag=$lt_lt_prog_compiler_pic_CXX
38798
cristyda16f162011-02-19 23:52:17 +000038799# How to pass a linker flag through the compiler.
38800wl=$lt_lt_prog_compiler_wl_CXX
38801
cristy73bd4a52010-10-05 11:24:23 +000038802# Compiler flag to prevent dynamic linking.
38803link_static_flag=$lt_lt_prog_compiler_static_CXX
38804
38805# Does compiler simultaneously support -c and -o options?
38806compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38807
38808# Whether or not to add -lc for building shared libraries.
38809build_libtool_need_lc=$archive_cmds_need_lc_CXX
38810
38811# Whether or not to disallow shared libs when runtime libs are static.
38812allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38813
38814# Compiler flag to allow reflexive dlopens.
38815export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38816
38817# Compiler flag to generate shared objects directly from archives.
38818whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38819
38820# Whether the compiler copes with passing no objects directly.
38821compiler_needs_object=$lt_compiler_needs_object_CXX
38822
38823# Create an old-style archive from a shared archive.
38824old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38825
38826# Create a temporary old-style archive to link instead of a shared archive.
38827old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38828
38829# Commands used to build a shared archive.
38830archive_cmds=$lt_archive_cmds_CXX
38831archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38832
38833# Commands used to build a loadable module if different from building
38834# a shared archive.
38835module_cmds=$lt_module_cmds_CXX
38836module_expsym_cmds=$lt_module_expsym_cmds_CXX
38837
38838# Whether we are building with GNU ld or not.
38839with_gnu_ld=$lt_with_gnu_ld_CXX
38840
38841# Flag that allows shared libraries with undefined symbols to be built.
38842allow_undefined_flag=$lt_allow_undefined_flag_CXX
38843
38844# Flag that enforces no undefined symbols.
38845no_undefined_flag=$lt_no_undefined_flag_CXX
38846
38847# Flag to hardcode \$libdir into a binary during linking.
38848# This must work even if \$libdir does not exist
38849hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38850
cristy73bd4a52010-10-05 11:24:23 +000038851# Whether we need a single "-rpath" flag with a separated argument.
38852hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38853
38854# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38855# DIR into the resulting binary.
38856hardcode_direct=$hardcode_direct_CXX
38857
38858# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38859# DIR into the resulting binary and the resulting library dependency is
38860# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38861# library is relocated.
38862hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38863
38864# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38865# into the resulting binary.
38866hardcode_minus_L=$hardcode_minus_L_CXX
38867
38868# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38869# into the resulting binary.
38870hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38871
38872# Set to "yes" if building a shared library automatically hardcodes DIR
38873# into the library and all subsequent libraries and executables linked
38874# against it.
38875hardcode_automatic=$hardcode_automatic_CXX
38876
38877# Set to yes if linker adds runtime paths of dependent libraries
38878# to runtime path list.
38879inherit_rpath=$inherit_rpath_CXX
38880
38881# Whether libtool must link a program against all its dependency libraries.
38882link_all_deplibs=$link_all_deplibs_CXX
38883
cristy73bd4a52010-10-05 11:24:23 +000038884# Set to "yes" if exported symbols are required.
38885always_export_symbols=$always_export_symbols_CXX
38886
38887# The commands to list exported symbols.
38888export_symbols_cmds=$lt_export_symbols_cmds_CXX
38889
38890# Symbols that should not be listed in the preloaded symbols.
38891exclude_expsyms=$lt_exclude_expsyms_CXX
38892
38893# Symbols that must always be exported.
38894include_expsyms=$lt_include_expsyms_CXX
38895
38896# Commands necessary for linking programs (against libraries) with templates.
38897prelink_cmds=$lt_prelink_cmds_CXX
38898
cristyda16f162011-02-19 23:52:17 +000038899# Commands necessary for finishing linking programs.
38900postlink_cmds=$lt_postlink_cmds_CXX
38901
cristy73bd4a52010-10-05 11:24:23 +000038902# Specify filename containing input files.
38903file_list_spec=$lt_file_list_spec_CXX
38904
38905# How to hardcode a shared library path into an executable.
38906hardcode_action=$hardcode_action_CXX
38907
38908# The directories searched by this compiler when creating a shared library.
38909compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38910
38911# Dependencies to place before and after the objects being linked to
38912# create a shared library.
38913predep_objects=$lt_predep_objects_CXX
38914postdep_objects=$lt_postdep_objects_CXX
38915predeps=$lt_predeps_CXX
38916postdeps=$lt_postdeps_CXX
38917
38918# The library search path used internally by the compiler when linking
38919# a shared library.
38920compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38921
38922# ### END LIBTOOL TAG CONFIG: CXX
38923_LT_EOF
38924
38925 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038926 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038927 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038928 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038929 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38930 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38931
38932 esac
38933done # for ac_tag
38934
38935
cristy8b350f62009-11-15 23:12:43 +000038936as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038937_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038938ac_clean_files=$ac_clean_files_save
38939
38940test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038941 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038942
38943
38944# configure is writing to config.log, and then calls config.status.
38945# config.status does its own redirection, appending to config.log.
38946# Unfortunately, on DOS this fails, as config.log is still kept open
38947# by configure, so config.status won't be able to write to it; its
38948# output is simply discarded. So we exec the FD to /dev/null,
38949# effectively closing config.log, so it can be properly (re)opened and
38950# appended to by config.status. When coming back to configure, we
38951# need to make the FD available again.
38952if test "$no_create" != yes; then
38953 ac_cs_success=:
38954 ac_config_status_args=
38955 test "$silent" = yes &&
38956 ac_config_status_args="$ac_config_status_args --quiet"
38957 exec 5>/dev/null
38958 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38959 exec 5>>config.log
38960 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38961 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038962 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038963fi
38964if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038966$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38967fi
38968
38969
38970rm -f magick-version
38971
cristy430a7312010-01-21 20:44:04 +000038972result_dejavu_font_dir='none'
38973if test "${dejavu_font_dir}x" != 'x'; then
38974 result_dejavu_font_dir=$dejavu_font_dir
38975fi
38976
cristy3ed852e2009-09-05 21:47:34 +000038977result_ghostscript_font_dir='none'
38978if test "${ghostscript_font_dir}x" != 'x'; then
38979 result_ghostscript_font_dir=$ghostscript_font_dir
38980fi
38981
38982result_windows_font_dir='none'
38983if test "${windows_font_dir}x" != 'x'; then
38984 result_windows_font_dir=${windows_font_dir}
38985fi
38986
cristyad38abe2012-12-23 23:03:21 +000038987{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038988ImageMagick is configured as follows. Please verify that this configuration
38989matches your expectations.
38990
38991Host system type: $host
38992Build system type: $build
38993
38994 Option Value
38995-------------------------------------------------------------------------------
38996Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38997Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038998Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038999GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39000Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39001High Dynamic Range Imagery
39002 --enable-hdri=$enable_hdri $enable_hdri
39003
39004Delegate Configuration:
39005BZLIB --with-bzlib=$with_bzlib $have_bzlib
39006Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039007Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039008DJVU --with-djvu=$with_djvu $have_djvu
39009DPS --with-dps=$with_dps $have_dps
39010FFTW --with-fftw=$with_fftw $have_fftw
39011FlashPIX --with-fpx=$with_fpx $have_fpx
39012FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39013FreeType --with-freetype=$with_freetype $have_freetype
39014GhostPCL None $PCLDelegate ($PCLVersion)
39015GhostXPS None $XPSDelegate ($XPSVersion)
39016Ghostscript None $PSDelegate ($GSVersion)
39017Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39018Ghostscript lib --with-gslib=$with_gslib $have_gslib
39019Graphviz --with-gvc=$with_gvc $have_gvc
39020JBIG --with-jbig=$with_jbig $have_jbig
39021JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39022JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039023LCMS v1 --with-lcms=$with_lcms $have_lcms
39024LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000039025LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000039026LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039027LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039028LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039029Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000039030MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000039031OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039032PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039033PERL --with-perl=$with_perl $have_perl
39034PNG --with-png=$with_png $have_png
39035RSVG --with-rsvg=$with_rsvg $have_rsvg
39036TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039037WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039038Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039039WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039040X11 --with-x=$with_x $have_x
39041XML --with-xml=$with_xml $have_xml
39042ZLIB --with-zlib=$with_zlib $have_zlib
39043
39044X11 Configuration:
39045 X_CFLAGS = $X_CFLAGS
39046 X_PRE_LIBS = $X_PRE_LIBS
39047 X_LIBS = $X_LIBS
39048 X_EXTRA_LIBS = $X_EXTRA_LIBS
39049
39050Options used to compile and link:
39051 PREFIX = $PREFIX_DIR
39052 EXEC-PREFIX = $EXEC_PREFIX_DIR
39053 VERSION = $PACKAGE_VERSION
39054 CC = $CC
39055 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039056 CPPFLAGS = $MAGICK_CPPFLAGS
39057 PCFLAGS = $MAGICK_PCFLAGS
39058 DEFS = $DEFS
39059 LDFLAGS = $LDFLAGS
39060 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39061 LIBS = $MAGICK_LIBS
39062 CXX = $CXX
39063 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039064 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039065 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000039066" >&5
cristyad38abe2012-12-23 23:03:21 +000039067$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000039068ImageMagick is configured as follows. Please verify that this configuration
39069matches your expectations.
39070
39071Host system type: $host
39072Build system type: $build
39073
39074 Option Value
39075-------------------------------------------------------------------------------
39076Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39077Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039078Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039079GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39080Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39081High Dynamic Range Imagery
39082 --enable-hdri=$enable_hdri $enable_hdri
39083
39084Delegate Configuration:
39085BZLIB --with-bzlib=$with_bzlib $have_bzlib
39086Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039087Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039088DJVU --with-djvu=$with_djvu $have_djvu
39089DPS --with-dps=$with_dps $have_dps
39090FFTW --with-fftw=$with_fftw $have_fftw
39091FlashPIX --with-fpx=$with_fpx $have_fpx
39092FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39093FreeType --with-freetype=$with_freetype $have_freetype
39094GhostPCL None $PCLDelegate ($PCLVersion)
39095GhostXPS None $XPSDelegate ($XPSVersion)
39096Ghostscript None $PSDelegate ($GSVersion)
39097Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39098Ghostscript lib --with-gslib=$with_gslib $have_gslib
39099Graphviz --with-gvc=$with_gvc $have_gvc
39100JBIG --with-jbig=$with_jbig $have_jbig
39101JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39102JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039103LCMS v1 --with-lcms=$with_lcms $have_lcms
39104LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000039105LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000039106LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039107LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039108LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039109Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000039110MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000039111OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039112PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039113PERL --with-perl=$with_perl $have_perl
39114PNG --with-png=$with_png $have_png
39115RSVG --with-rsvg=$with_rsvg $have_rsvg
39116TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039117WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039118Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039119WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039120X11 --with-x=$with_x $have_x
39121XML --with-xml=$with_xml $have_xml
39122ZLIB --with-zlib=$with_zlib $have_zlib
39123
39124X11 Configuration:
39125 X_CFLAGS = $X_CFLAGS
39126 X_PRE_LIBS = $X_PRE_LIBS
39127 X_LIBS = $X_LIBS
39128 X_EXTRA_LIBS = $X_EXTRA_LIBS
39129
39130Options used to compile and link:
39131 PREFIX = $PREFIX_DIR
39132 EXEC-PREFIX = $EXEC_PREFIX_DIR
39133 VERSION = $PACKAGE_VERSION
39134 CC = $CC
39135 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039136 CPPFLAGS = $MAGICK_CPPFLAGS
39137 PCFLAGS = $MAGICK_PCFLAGS
39138 DEFS = $DEFS
39139 LDFLAGS = $LDFLAGS
39140 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39141 LIBS = $MAGICK_LIBS
39142 CXX = $CXX
39143 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039144 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039145 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000039146" >&6; }