blob: aa5538435c2d75cfafae83566b78e2b9c10c4817 [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
cristyfbb0ef02010-12-19 02:32:11 +0000797LZMA_DELEGATE_FALSE
798LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000799LZMA_LIBS
800LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000801LQR_DELEGATE_FALSE
802LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803LQR_LIBS
804LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000805LIBOPENJP2_DELEGATE_FALSE
806LIBOPENJP2_DELEGATE_TRUE
807LIBOPENJP2_LIBS
808LIBOPENJP2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000809LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810LCMS_DELEGATE_FALSE
811LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000812JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813JPEG_DELEGATE_FALSE
814JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816JBIG_DELEGATE_FALSE
817JBIG_DELEGATE_TRUE
818GVC_DELEGATE_FALSE
819GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000820GVC_LIBS
821GVC_CFLAGS
822GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000823GS_DELEGATE_FALSE
824GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000825FREETYPE_DELEGATE_FALSE
826FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000827FREETYPE_LIBS
828FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000829FONTCONFIG_DELEGATE_FALSE
830FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000831FONTCONFIG_LIBS
832FONTCONFIG_CFLAGS
833FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834FPX_DELEGATE_FALSE
835FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000837FFTW_DELEGATE_FALSE
838FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000840DJVU_DELEGATE_FALSE
841DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000842DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000843DPS_DELEGATE_FALSE
844DPS_DELEGATE_TRUE
845AUTOTRACE_DELEGATE_FALSE
846AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000847AUTOTRACE_LIBS
848AUTOTRACE_CFLAGS
849LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000850WITH_LTDL_FALSE
851WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000852ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000853ZLIB_DELEGATE_FALSE
854ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000855XEXT_LIBS
856X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857X11_DELEGATE_FALSE
858X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000859X_EXTRA_LIBS
860X_LIBS
861X_PRE_LIBS
862X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000863XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000864BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000865BZLIB_DELEGATE_FALSE
866BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000867CCMALLOCDelegate
868UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000869HasUMEM_FALSE
870HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000871GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000872WITH_MAGICK_PLUS_PLUS_FALSE
873WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000874OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000875MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000876POW_LIB
877LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000878UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000879UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000880UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000881UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000882UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000883UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000884INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000885INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000886UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000887UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000888INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000889INT32_T
890UINT16_T
891INT16_T
892UINT8_T
893INT8_T
894LIBRARY_EXTRA_CPPFLAGS
895MODULE_EXTRA_CPPFLAGS
896LIBSTDCLDFLAGS
897PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000898MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000899MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000900QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000901LEGACY_SUPPORT_FALSE
902LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000903MAINT
904MAINTAINER_MODE_FALSE
905MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000906MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000907WITH_MODULES_FALSE
908WITH_MODULES_TRUE
909WITH_SHARED_LIBS_FALSE
910WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000911LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000912CXXCPP
913OTOOL64
914OTOOL
915LIPO
916NMEDIT
917DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000918MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000919RANLIB
cristyda16f162011-02-19 23:52:17 +0000920ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000921AR
922NM
923ac_ct_DUMPBIN
924DUMPBIN
925LIBTOOL
926OBJDUMP
927DLLTOOL
928AS
cristy3ed852e2009-09-05 21:47:34 +0000929LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000930CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000931CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000932OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000933THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000934PTHREAD_CFLAGS
935PTHREAD_LIBS
936PTHREAD_CC
937ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000938pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000939SHAREARCH_DIR
940INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000941WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000942USING_CL_FALSE
943USING_CL_TRUE
944CYGWIN_BUILD_FALSE
945CYGWIN_BUILD_TRUE
946WIN32_NATIVE_BUILD_FALSE
947WIN32_NATIVE_BUILD_TRUE
948WINGDI32_DELEGATE_FALSE
949WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000950GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000951HAVE_LD_VERSION_SCRIPT_FALSE
952HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000953PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000954PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000955LN_S
cristy3ed852e2009-09-05 21:47:34 +0000956LD
cristy73bd4a52010-10-05 11:24:23 +0000957FGREP
958SED
959am__fastdepCXX_FALSE
960am__fastdepCXX_TRUE
961CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000962ac_ct_CXX
963CXXFLAGS
964CXX
cristya0b81c32010-01-22 02:54:33 +0000965EGREP
966GREP
967CPP
cristy73bd4a52010-10-05 11:24:23 +0000968am__fastdepCC_FALSE
969am__fastdepCC_TRUE
970CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000971am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000972AMDEPBACKSLASH
973AMDEP_FALSE
974AMDEP_TRUE
975am__quote
976am__include
977DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000978OBJEXT
979EXEEXT
980ac_ct_CC
981CPPFLAGS
982LDFLAGS
983CFLAGS
984CC
985DIRSEP
986MAGICK_FILTER_MODULE_PATH
987MAGICK_CONFIGURE_BUILD_PATH
988MAGICK_CONFIGURE_SRC_PATH
989MAGICK_CODER_MODULE_PATH
990MAN_DIR
991INFO_DIR
992PERSISTINCLUDE_DIR
993INCLUDE_DIR
994LIB_DIR
995LOCALSTATE_DIR
996SHAREDSTATE_DIR
997SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000998DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000999DATA_DIR
1000LIBEXEC_DIR
1001SBIN_DIR
1002BIN_DIR
1003EXEC_PREFIX_DIR
1004PREFIX_DIR
1005CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001006MAGICKPP_LIB_VERSION_TEXT
1007MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001008MAGICK_LIB_VERSION_NUMBER
1009MAGICK_LIB_VERSION_TEXT
1010MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001011AM_BACKSLASH
1012AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001013AM_DEFAULT_V
1014AM_V
cristy73bd4a52010-10-05 11:24:23 +00001015am__untar
1016am__tar
1017AMTAR
1018am__leading_dot
1019SET_MAKE
1020AWK
1021mkdir_p
1022MKDIR_P
1023INSTALL_STRIP_PROGRAM
1024STRIP
1025install_sh
1026MAKEINFO
1027AUTOHEADER
1028AUTOMAKE
1029AUTOCONF
1030ACLOCAL
1031VERSION
1032PACKAGE
1033CYGPATH_W
1034am__isrc
1035INSTALL_DATA
1036INSTALL_SCRIPT
1037INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001038PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001039PACKAGE_RELEASE_DATE
1040PACKAGE_LIB_VERSION_NUMBER
1041PACKAGE_LIB_VERSION
1042PACKAGE_CHANGE_DATE
1043PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001044PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001045MAGICKPP_LIBRARY_VERSION_INFO
1046MAGICKPP_LIBRARY_CURRENT_MIN
1047MAGICKPP_LIBRARY_AGE
1048MAGICKPP_LIBRARY_REVISION
1049MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001050MAGICK_LIBRARY_VERSION_INFO
1051MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001052MAGICK_LIBRARY_AGE
1053MAGICK_LIBRARY_REVISION
1054MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001055MAGICK_SVN_REVISION
1056MAGICK_VERSION
1057MAGICK_PATCHLEVEL_VERSION
1058MAGICK_MICRO_VERSION
1059MAGICK_MINOR_VERSION
1060MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001061MAGICK_TARGET_OS
1062MAGICK_TARGET_VENDOR
1063MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001064target_os
1065target_vendor
1066target_cpu
1067target
1068host_os
1069host_vendor
1070host_cpu
1071host
1072build_os
1073build_vendor
1074build_cpu
1075build
1076CONFIGURE_ARGS
1077DISTCHECK_CONFIG_FLAGS
1078target_alias
1079host_alias
1080build_alias
1081LIBS
1082ECHO_T
1083ECHO_N
1084ECHO_C
1085DEFS
1086mandir
1087localedir
1088libdir
1089psdir
1090pdfdir
1091dvidir
1092htmldir
1093infodir
1094docdir
1095oldincludedir
1096includedir
1097localstatedir
1098sharedstatedir
1099sysconfdir
1100datadir
1101datarootdir
1102libexecdir
1103sbindir
1104bindir
1105program_transform_name
1106prefix
1107exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001108PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001109PACKAGE_BUGREPORT
1110PACKAGE_STRING
1111PACKAGE_VERSION
1112PACKAGE_TARNAME
1113PACKAGE_NAME
1114PATH_SEPARATOR
1115SHELL'
1116ac_subst_files=''
1117ac_user_opts='
1118enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001119enable_silent_rules
1120enable_dependency_tracking
1121with_gnu_ld
1122with_dmalloc
cristya0459972013-11-03 18:09:35 +00001123with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001124enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001125enable_bounds_checking
1126enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001127with_includearch_dir
1128with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001129with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001130with_threads
1131enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001132enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001133enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001134enable_shared
1135enable_static
1136with_pic
1137enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001138with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001139enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001140with_modules
1141enable_delegate_build
1142enable_deprecated
1143enable_installed
1144enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001145enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001146enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001147enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001148enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001149enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001150enable_ccmalloc
1151enable_efence
1152enable_prof
1153enable_gprof
1154enable_gcov
1155with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001156enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001157with_quantum_depth
1158with_cache
1159with_frozenpaths
1160with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001161with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001162with_perl
1163with_perl_options
1164with_umem
1165with_libstdc
1166with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001167with_x
cristy3ed852e2009-09-05 21:47:34 +00001168with_zlib
1169with_autotrace
1170with_dps
1171with_djvu
cristy430a7312010-01-21 20:44:04 +00001172with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001173with_fftw
1174with_fpx
1175with_fontconfig
1176with_freetype
1177with_gslib
1178with_fontpath
1179with_gs_font_dir
1180with_gvc
1181with_jbig
1182with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001183with_lcms
cristy71203402010-06-18 13:12:03 +00001184with_lcms2
cristy99db3872014-01-01 15:11:34 +00001185with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001186with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001187with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001188with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001189with_pango
cristy3ed852e2009-09-05 21:47:34 +00001190with_png
1191with_rsvg
1192with_tiff
cristyb1860752011-03-14 00:27:46 +00001193with_webp
cristy3ed852e2009-09-05 21:47:34 +00001194with_windows_font_dir
1195with_wmf
1196with_xml
cristydd17feb2014-03-05 02:06:32 +00001197enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001198'
1199 ac_precious_vars='build_alias
1200host_alias
1201target_alias
1202CC
1203CFLAGS
1204LDFLAGS
1205LIBS
1206CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001207CPP
cristy3ed852e2009-09-05 21:47:34 +00001208CXX
1209CXXFLAGS
1210CCC
cristy73bd4a52010-10-05 11:24:23 +00001211PKG_CONFIG
1212CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001213XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001214AUTOTRACE_CFLAGS
1215AUTOTRACE_LIBS
1216FONTCONFIG_CFLAGS
1217FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001218FREETYPE_CFLAGS
1219FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001220GVC_CFLAGS
1221GVC_LIBS
cristy99db3872014-01-01 15:11:34 +00001222LIBOPENJP2_CFLAGS
1223LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001224LQR_CFLAGS
1225LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001226LZMA_CFLAGS
1227LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001228OPENEXR_CFLAGS
1229OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001230PANGO_CFLAGS
1231PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001232RSVG_CFLAGS
1233RSVG_LIBS
1234CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001235CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001236
1237
1238# Initialize some variables set by options.
1239ac_init_help=
1240ac_init_version=false
1241ac_unrecognized_opts=
1242ac_unrecognized_sep=
1243# The variables have the same names as the options, with
1244# dashes changed to underlines.
1245cache_file=/dev/null
1246exec_prefix=NONE
1247no_create=
1248no_recursion=
1249prefix=NONE
1250program_prefix=NONE
1251program_suffix=NONE
1252program_transform_name=s,x,x,
1253silent=
1254site=
1255srcdir=
1256verbose=
1257x_includes=NONE
1258x_libraries=NONE
1259
1260# Installation directory options.
1261# These are left unexpanded so users can "make install exec_prefix=/foo"
1262# and all the variables that are supposed to be based on exec_prefix
1263# by default will actually change.
1264# Use braces instead of parens because sh, perl, etc. also accept them.
1265# (The list follows the same order as the GNU Coding Standards.)
1266bindir='${exec_prefix}/bin'
1267sbindir='${exec_prefix}/sbin'
1268libexecdir='${exec_prefix}/libexec'
1269datarootdir='${prefix}/share'
1270datadir='${datarootdir}'
1271sysconfdir='${prefix}/etc'
1272sharedstatedir='${prefix}/com'
1273localstatedir='${prefix}/var'
1274includedir='${prefix}/include'
1275oldincludedir='/usr/include'
1276docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1277infodir='${datarootdir}/info'
1278htmldir='${docdir}'
1279dvidir='${docdir}'
1280pdfdir='${docdir}'
1281psdir='${docdir}'
1282libdir='${exec_prefix}/lib'
1283localedir='${datarootdir}/locale'
1284mandir='${datarootdir}/man'
1285
1286ac_prev=
1287ac_dashdash=
1288for ac_option
1289do
1290 # If the previous option needs an argument, assign it.
1291 if test -n "$ac_prev"; then
1292 eval $ac_prev=\$ac_option
1293 ac_prev=
1294 continue
1295 fi
1296
1297 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001298 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1299 *=) ac_optarg= ;;
1300 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001301 esac
1302
1303 # Accept the important Cygnus configure options, so we can diagnose typos.
1304
1305 case $ac_dashdash$ac_option in
1306 --)
1307 ac_dashdash=yes ;;
1308
1309 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1310 ac_prev=bindir ;;
1311 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1312 bindir=$ac_optarg ;;
1313
1314 -build | --build | --buil | --bui | --bu)
1315 ac_prev=build_alias ;;
1316 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1317 build_alias=$ac_optarg ;;
1318
1319 -cache-file | --cache-file | --cache-fil | --cache-fi \
1320 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1321 ac_prev=cache_file ;;
1322 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1323 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1324 cache_file=$ac_optarg ;;
1325
1326 --config-cache | -C)
1327 cache_file=config.cache ;;
1328
1329 -datadir | --datadir | --datadi | --datad)
1330 ac_prev=datadir ;;
1331 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1332 datadir=$ac_optarg ;;
1333
1334 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1335 | --dataroo | --dataro | --datar)
1336 ac_prev=datarootdir ;;
1337 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1338 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1339 datarootdir=$ac_optarg ;;
1340
1341 -disable-* | --disable-*)
1342 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1343 # Reject names that are not valid shell variable names.
1344 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001345 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001346 ac_useropt_orig=$ac_useropt
1347 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1348 case $ac_user_opts in
1349 *"
1350"enable_$ac_useropt"
1351"*) ;;
1352 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1353 ac_unrecognized_sep=', ';;
1354 esac
1355 eval enable_$ac_useropt=no ;;
1356
1357 -docdir | --docdir | --docdi | --doc | --do)
1358 ac_prev=docdir ;;
1359 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1360 docdir=$ac_optarg ;;
1361
1362 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1363 ac_prev=dvidir ;;
1364 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1365 dvidir=$ac_optarg ;;
1366
1367 -enable-* | --enable-*)
1368 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1369 # Reject names that are not valid shell variable names.
1370 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001371 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001372 ac_useropt_orig=$ac_useropt
1373 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1374 case $ac_user_opts in
1375 *"
1376"enable_$ac_useropt"
1377"*) ;;
1378 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1379 ac_unrecognized_sep=', ';;
1380 esac
1381 eval enable_$ac_useropt=\$ac_optarg ;;
1382
1383 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1384 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1385 | --exec | --exe | --ex)
1386 ac_prev=exec_prefix ;;
1387 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1388 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1389 | --exec=* | --exe=* | --ex=*)
1390 exec_prefix=$ac_optarg ;;
1391
1392 -gas | --gas | --ga | --g)
1393 # Obsolete; use --with-gas.
1394 with_gas=yes ;;
1395
1396 -help | --help | --hel | --he | -h)
1397 ac_init_help=long ;;
1398 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1399 ac_init_help=recursive ;;
1400 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1401 ac_init_help=short ;;
1402
1403 -host | --host | --hos | --ho)
1404 ac_prev=host_alias ;;
1405 -host=* | --host=* | --hos=* | --ho=*)
1406 host_alias=$ac_optarg ;;
1407
1408 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1409 ac_prev=htmldir ;;
1410 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1411 | --ht=*)
1412 htmldir=$ac_optarg ;;
1413
1414 -includedir | --includedir | --includedi | --included | --include \
1415 | --includ | --inclu | --incl | --inc)
1416 ac_prev=includedir ;;
1417 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1418 | --includ=* | --inclu=* | --incl=* | --inc=*)
1419 includedir=$ac_optarg ;;
1420
1421 -infodir | --infodir | --infodi | --infod | --info | --inf)
1422 ac_prev=infodir ;;
1423 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1424 infodir=$ac_optarg ;;
1425
1426 -libdir | --libdir | --libdi | --libd)
1427 ac_prev=libdir ;;
1428 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1429 libdir=$ac_optarg ;;
1430
1431 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1432 | --libexe | --libex | --libe)
1433 ac_prev=libexecdir ;;
1434 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1435 | --libexe=* | --libex=* | --libe=*)
1436 libexecdir=$ac_optarg ;;
1437
1438 -localedir | --localedir | --localedi | --localed | --locale)
1439 ac_prev=localedir ;;
1440 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1441 localedir=$ac_optarg ;;
1442
1443 -localstatedir | --localstatedir | --localstatedi | --localstated \
1444 | --localstate | --localstat | --localsta | --localst | --locals)
1445 ac_prev=localstatedir ;;
1446 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1447 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1448 localstatedir=$ac_optarg ;;
1449
1450 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1451 ac_prev=mandir ;;
1452 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1453 mandir=$ac_optarg ;;
1454
1455 -nfp | --nfp | --nf)
1456 # Obsolete; use --without-fp.
1457 with_fp=no ;;
1458
1459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1460 | --no-cr | --no-c | -n)
1461 no_create=yes ;;
1462
1463 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1464 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1465 no_recursion=yes ;;
1466
1467 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1468 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1469 | --oldin | --oldi | --old | --ol | --o)
1470 ac_prev=oldincludedir ;;
1471 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1472 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1473 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1474 oldincludedir=$ac_optarg ;;
1475
1476 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1477 ac_prev=prefix ;;
1478 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1479 prefix=$ac_optarg ;;
1480
1481 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1482 | --program-pre | --program-pr | --program-p)
1483 ac_prev=program_prefix ;;
1484 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1485 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1486 program_prefix=$ac_optarg ;;
1487
1488 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1489 | --program-suf | --program-su | --program-s)
1490 ac_prev=program_suffix ;;
1491 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1492 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1493 program_suffix=$ac_optarg ;;
1494
1495 -program-transform-name | --program-transform-name \
1496 | --program-transform-nam | --program-transform-na \
1497 | --program-transform-n | --program-transform- \
1498 | --program-transform | --program-transfor \
1499 | --program-transfo | --program-transf \
1500 | --program-trans | --program-tran \
1501 | --progr-tra | --program-tr | --program-t)
1502 ac_prev=program_transform_name ;;
1503 -program-transform-name=* | --program-transform-name=* \
1504 | --program-transform-nam=* | --program-transform-na=* \
1505 | --program-transform-n=* | --program-transform-=* \
1506 | --program-transform=* | --program-transfor=* \
1507 | --program-transfo=* | --program-transf=* \
1508 | --program-trans=* | --program-tran=* \
1509 | --progr-tra=* | --program-tr=* | --program-t=*)
1510 program_transform_name=$ac_optarg ;;
1511
1512 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1513 ac_prev=pdfdir ;;
1514 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1515 pdfdir=$ac_optarg ;;
1516
1517 -psdir | --psdir | --psdi | --psd | --ps)
1518 ac_prev=psdir ;;
1519 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1520 psdir=$ac_optarg ;;
1521
1522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1523 | -silent | --silent | --silen | --sile | --sil)
1524 silent=yes ;;
1525
1526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1527 ac_prev=sbindir ;;
1528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1529 | --sbi=* | --sb=*)
1530 sbindir=$ac_optarg ;;
1531
1532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1534 | --sharedst | --shareds | --shared | --share | --shar \
1535 | --sha | --sh)
1536 ac_prev=sharedstatedir ;;
1537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1540 | --sha=* | --sh=*)
1541 sharedstatedir=$ac_optarg ;;
1542
1543 -site | --site | --sit)
1544 ac_prev=site ;;
1545 -site=* | --site=* | --sit=*)
1546 site=$ac_optarg ;;
1547
1548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1549 ac_prev=srcdir ;;
1550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1551 srcdir=$ac_optarg ;;
1552
1553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1554 | --syscon | --sysco | --sysc | --sys | --sy)
1555 ac_prev=sysconfdir ;;
1556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1558 sysconfdir=$ac_optarg ;;
1559
1560 -target | --target | --targe | --targ | --tar | --ta | --t)
1561 ac_prev=target_alias ;;
1562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1563 target_alias=$ac_optarg ;;
1564
1565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1566 verbose=yes ;;
1567
1568 -version | --version | --versio | --versi | --vers | -V)
1569 ac_init_version=: ;;
1570
1571 -with-* | --with-*)
1572 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1573 # Reject names that are not valid shell variable names.
1574 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001575 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001576 ac_useropt_orig=$ac_useropt
1577 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1578 case $ac_user_opts in
1579 *"
1580"with_$ac_useropt"
1581"*) ;;
1582 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1583 ac_unrecognized_sep=', ';;
1584 esac
1585 eval with_$ac_useropt=\$ac_optarg ;;
1586
1587 -without-* | --without-*)
1588 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1589 # Reject names that are not valid shell variable names.
1590 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001591 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001592 ac_useropt_orig=$ac_useropt
1593 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1594 case $ac_user_opts in
1595 *"
1596"with_$ac_useropt"
1597"*) ;;
1598 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1599 ac_unrecognized_sep=', ';;
1600 esac
1601 eval with_$ac_useropt=no ;;
1602
1603 --x)
1604 # Obsolete; use --with-x.
1605 with_x=yes ;;
1606
1607 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1608 | --x-incl | --x-inc | --x-in | --x-i)
1609 ac_prev=x_includes ;;
1610 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1611 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1612 x_includes=$ac_optarg ;;
1613
1614 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1615 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1616 ac_prev=x_libraries ;;
1617 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1618 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1619 x_libraries=$ac_optarg ;;
1620
cristy98dddb52010-11-04 00:30:15 +00001621 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1622Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001623 ;;
1624
1625 *=*)
1626 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1627 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001628 case $ac_envvar in #(
1629 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001630 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001631 esac
cristy3ed852e2009-09-05 21:47:34 +00001632 eval $ac_envvar=\$ac_optarg
1633 export $ac_envvar ;;
1634
1635 *)
1636 # FIXME: should be removed in autoconf 3.0.
1637 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1638 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1639 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001640 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001641 ;;
1642
1643 esac
1644done
1645
1646if test -n "$ac_prev"; then
1647 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001648 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001649fi
1650
1651if test -n "$ac_unrecognized_opts"; then
1652 case $enable_option_checking in
1653 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001654 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001655 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1656 esac
1657fi
1658
1659# Check all directory arguments for consistency.
1660for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1661 datadir sysconfdir sharedstatedir localstatedir includedir \
1662 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1663 libdir localedir mandir
1664do
1665 eval ac_val=\$$ac_var
1666 # Remove trailing slashes.
1667 case $ac_val in
1668 */ )
1669 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1670 eval $ac_var=\$ac_val;;
1671 esac
1672 # Be sure to have absolute directory names.
1673 case $ac_val in
1674 [\\/$]* | ?:[\\/]* ) continue;;
1675 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1676 esac
cristy98dddb52010-11-04 00:30:15 +00001677 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001678done
1679
1680# There might be people who depend on the old broken behavior: `$host'
1681# used to hold the argument of --host etc.
1682# FIXME: To remove some day.
1683build=$build_alias
1684host=$host_alias
1685target=$target_alias
1686
1687# FIXME: To remove some day.
1688if test "x$host_alias" != x; then
1689 if test "x$build_alias" = x; then
1690 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001691 elif test "x$build_alias" != "x$host_alias"; then
1692 cross_compiling=yes
1693 fi
1694fi
1695
1696ac_tool_prefix=
1697test -n "$host_alias" && ac_tool_prefix=$host_alias-
1698
1699test "$silent" = yes && exec 6>/dev/null
1700
1701
1702ac_pwd=`pwd` && test -n "$ac_pwd" &&
1703ac_ls_di=`ls -di .` &&
1704ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001705 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001706test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001707 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001708
1709
1710# Find the source files, if location was not specified.
1711if test -z "$srcdir"; then
1712 ac_srcdir_defaulted=yes
1713 # Try the directory containing this script, then the parent directory.
1714 ac_confdir=`$as_dirname -- "$as_myself" ||
1715$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1716 X"$as_myself" : 'X\(//\)[^/]' \| \
1717 X"$as_myself" : 'X\(//\)$' \| \
1718 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1719$as_echo X"$as_myself" |
1720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1721 s//\1/
1722 q
1723 }
1724 /^X\(\/\/\)[^/].*/{
1725 s//\1/
1726 q
1727 }
1728 /^X\(\/\/\)$/{
1729 s//\1/
1730 q
1731 }
1732 /^X\(\/\).*/{
1733 s//\1/
1734 q
1735 }
1736 s/.*/./; q'`
1737 srcdir=$ac_confdir
1738 if test ! -r "$srcdir/$ac_unique_file"; then
1739 srcdir=..
1740 fi
1741else
1742 ac_srcdir_defaulted=no
1743fi
1744if test ! -r "$srcdir/$ac_unique_file"; then
1745 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001746 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001747fi
1748ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1749ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001750 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001751 pwd)`
1752# When building in place, set srcdir=.
1753if test "$ac_abs_confdir" = "$ac_pwd"; then
1754 srcdir=.
1755fi
1756# Remove unnecessary trailing slashes from srcdir.
1757# Double slashes in file names in object file debugging info
1758# mess up M-x gdb in Emacs.
1759case $srcdir in
1760*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1761esac
1762for ac_var in $ac_precious_vars; do
1763 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1764 eval ac_env_${ac_var}_value=\$${ac_var}
1765 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1766 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1767done
1768
1769#
1770# Report the --help message.
1771#
1772if test "$ac_init_help" = "long"; then
1773 # Omit some internal or obsolete options to make the list less imposing.
1774 # This message is too long to be a string in the A/UX 3.1 sh.
1775 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001776\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001777
1778Usage: $0 [OPTION]... [VAR=VALUE]...
1779
1780To assign environment variables (e.g., CC, CFLAGS...), specify them as
1781VAR=VALUE. See below for descriptions of some of the useful variables.
1782
1783Defaults for the options are specified in brackets.
1784
1785Configuration:
1786 -h, --help display this help and exit
1787 --help=short display options specific to this package
1788 --help=recursive display the short help of all the included packages
1789 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001790 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001791 --cache-file=FILE cache test results in FILE [disabled]
1792 -C, --config-cache alias for \`--cache-file=config.cache'
1793 -n, --no-create do not create output files
1794 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1795
1796Installation directories:
1797 --prefix=PREFIX install architecture-independent files in PREFIX
1798 [$ac_default_prefix]
1799 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1800 [PREFIX]
1801
1802By default, \`make install' will install all the files in
1803\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1804an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1805for instance \`--prefix=\$HOME'.
1806
1807For better control, use the options below.
1808
1809Fine tuning of the installation directories:
1810 --bindir=DIR user executables [EPREFIX/bin]
1811 --sbindir=DIR system admin executables [EPREFIX/sbin]
1812 --libexecdir=DIR program executables [EPREFIX/libexec]
1813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1815 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1816 --libdir=DIR object code libraries [EPREFIX/lib]
1817 --includedir=DIR C header files [PREFIX/include]
1818 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1819 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1820 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1821 --infodir=DIR info documentation [DATAROOTDIR/info]
1822 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1823 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001824 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001825 --htmldir=DIR html documentation [DOCDIR]
1826 --dvidir=DIR dvi documentation [DOCDIR]
1827 --pdfdir=DIR pdf documentation [DOCDIR]
1828 --psdir=DIR ps documentation [DOCDIR]
1829_ACEOF
1830
1831 cat <<\_ACEOF
1832
cristy73bd4a52010-10-05 11:24:23 +00001833Program names:
1834 --program-prefix=PREFIX prepend PREFIX to installed program names
1835 --program-suffix=SUFFIX append SUFFIX to installed program names
1836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1837
cristy3ed852e2009-09-05 21:47:34 +00001838X features:
1839 --x-includes=DIR X include files are in DIR
1840 --x-libraries=DIR X library files are in DIR
1841
1842System types:
1843 --build=BUILD configure for building on BUILD [guessed]
1844 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1845 --target=TARGET configure for building compilers for TARGET [HOST]
1846_ACEOF
1847fi
1848
1849if test -n "$ac_init_help"; then
1850 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001851 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001852 esac
1853 cat <<\_ACEOF
1854
1855Optional Features:
1856 --disable-option-checking ignore unrecognized --enable/--with options
1857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001859 --enable-silent-rules less verbose build output (undo: "make V=1")
1860 --disable-silent-rules verbose build output (undo: "make V=0")
1861 --enable-dependency-tracking
1862 do not reject slow dependency extractors
1863 --disable-dependency-tracking
1864 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001865 --enable-ld-version-script
1866 enable linker version script (default is enabled
1867 when possible)
cristya3824692012-03-30 17:22:07 +00001868 --enable-bounds-checking
1869 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001870 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001871 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001872 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001873 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001874 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001875 --enable-shared[=PKGS] build shared libraries [default=yes]
1876 --enable-static[=PKGS] build static libraries [default=yes]
1877 --enable-fast-install[=PKGS]
1878 optimize for fast installation [default=yes]
1879 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001880 --enable-delegate-build look for delegate libraries in build directory
1881 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001882 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001883 --disable-installed Formally install ImageMagick under PREFIX
1884 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001885 --enable-zero-configuration
1886 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001887 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001888 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001889 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001890 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001891 --enable-maintainer-mode
1892 enable make rules and dependencies not useful (and
1893 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001894 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001895 --enable-ccmalloc enable 'ccmalloc' memory debug support
1896 --enable-efence enable 'efence' memory debug support
1897 --enable-prof enable 'prof' profiling support
1898 --enable-gprof enable 'gprof' profiling support
1899 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001900 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001901 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001902 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001903
1904Optional Packages:
1905 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1906 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001907 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001908 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001909 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1910 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001911 --includearch-dir=DIR ARCH specific include directory
1912 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001913 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001914 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001915 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001916 both]
cristyda16f162011-02-19 23:52:17 +00001917 --with-sysroot=DIR Search for dependent libraries within DIR
1918 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001919 --with-modules enable building dynamically loadable modules
1920 --with-method-prefix=PREFIX
1921 prefix MagickCore API methods
1922 --with-quantum-depth=DEPTH
1923 number of bits in a pixel quantum (default 16)
1924 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1925 memory)
1926 --with-frozenpaths freeze delegate paths
1927 --without-magick-plus-plus
1928 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001929 --with-package-release-name=NAME
1930 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001931 --with-perl enable build/install of PerlMagick
1932 --with-perl-options=OPTIONS
1933 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001934 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001935 --with-umem enable umem memory allocation library support
1936 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1937 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001938 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001939 --without-zlib disable ZLIB support
1940 --with-autotrace enable autotrace support
1941 --without-dps disable Display Postscript support
1942 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001943 --with-dejavu-font-dir=DIR
1944 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001945 --without-fftw disable FFTW support
1946 --without-fpx disable FlashPIX support
1947 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001948 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001949 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001950 --with-fontpath=DIR prepend to default font search path
1951 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001952 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001953 --without-jbig disable JBIG support
1954 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001955 --without-lcms disable lcms (v1.1X) support
1956 --without-lcms2 disable lcms (v2.X) support
cristy99db3872014-01-01 15:11:34 +00001957 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001958 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001959 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001960 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001961 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001962 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001963 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001964 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001965 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001966 --with-windows-font-dir=DIR
1967 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001968 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001969 --without-xml disable XML support
1970
1971Some influential environment variables:
1972 CC C compiler command
1973 CFLAGS C compiler flags
1974 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1975 nonstandard directory <lib dir>
1976 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001977 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001978 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001979 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001980 CXX C++ compiler command
1981 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001982 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001983 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001984 XMKMF Path to xmkmf, Makefile generator for X Window System
1985 AUTOTRACE_CFLAGS
1986 C compiler flags for AUTOTRACE, overriding pkg-config
1987 AUTOTRACE_LIBS
1988 linker flags for AUTOTRACE, overriding pkg-config
1989 FONTCONFIG_CFLAGS
1990 C compiler flags for FONTCONFIG, overriding pkg-config
1991 FONTCONFIG_LIBS
1992 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001993 FREETYPE_CFLAGS
1994 C compiler flags for FREETYPE, overriding pkg-config
1995 FREETYPE_LIBS
1996 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001997 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1998 GVC_LIBS linker flags for GVC, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00001999 LIBOPENJP2_CFLAGS
2000 C compiler flags for LIBOPENJP2, overriding pkg-config
2001 LIBOPENJP2_LIBS
2002 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002003 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2004 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002005 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2006 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002007 OPENEXR_CFLAGS
2008 C compiler flags for OPENEXR, overriding pkg-config
2009 OPENEXR_LIBS
2010 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002011 PANGO_CFLAGS
2012 C compiler flags for PANGO, overriding pkg-config
2013 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002014 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2015 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2016 CAIRO_SVG_CFLAGS
2017 C compiler flags for CAIRO_SVG, overriding pkg-config
2018 CAIRO_SVG_LIBS
2019 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002020
2021Use these variables to override the choices made by `configure' or to help
2022it to find libraries and programs with nonstandard names/locations.
2023
2024Report bugs to <http://www.imagemagick.org>.
2025_ACEOF
2026ac_status=$?
2027fi
2028
2029if test "$ac_init_help" = "recursive"; then
2030 # If there are subdirs, report their specific --help.
2031 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2032 test -d "$ac_dir" ||
2033 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2034 continue
2035 ac_builddir=.
2036
2037case "$ac_dir" in
2038.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2039*)
2040 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2041 # A ".." for each directory in $ac_dir_suffix.
2042 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2043 case $ac_top_builddir_sub in
2044 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2045 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2046 esac ;;
2047esac
2048ac_abs_top_builddir=$ac_pwd
2049ac_abs_builddir=$ac_pwd$ac_dir_suffix
2050# for backward compatibility:
2051ac_top_builddir=$ac_top_build_prefix
2052
2053case $srcdir in
2054 .) # We are building in place.
2055 ac_srcdir=.
2056 ac_top_srcdir=$ac_top_builddir_sub
2057 ac_abs_top_srcdir=$ac_pwd ;;
2058 [\\/]* | ?:[\\/]* ) # Absolute name.
2059 ac_srcdir=$srcdir$ac_dir_suffix;
2060 ac_top_srcdir=$srcdir
2061 ac_abs_top_srcdir=$srcdir ;;
2062 *) # Relative name.
2063 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2064 ac_top_srcdir=$ac_top_build_prefix$srcdir
2065 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2066esac
2067ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2068
2069 cd "$ac_dir" || { ac_status=$?; continue; }
2070 # Check for guested configure.
2071 if test -f "$ac_srcdir/configure.gnu"; then
2072 echo &&
2073 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2074 elif test -f "$ac_srcdir/configure"; then
2075 echo &&
2076 $SHELL "$ac_srcdir/configure" --help=recursive
2077 else
2078 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2079 fi || ac_status=$?
2080 cd "$ac_pwd" || { ac_status=$?; break; }
2081 done
2082fi
2083
2084test -n "$ac_init_help" && exit $ac_status
2085if $ac_init_version; then
2086 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002087ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002088generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002089
cristy14fefe52012-05-21 00:59:18 +00002090Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002091This configure script is free software; the Free Software Foundation
2092gives unlimited permission to copy, distribute and modify it.
2093_ACEOF
2094 exit
2095fi
cristy8b350f62009-11-15 23:12:43 +00002096
2097## ------------------------ ##
2098## Autoconf initialization. ##
2099## ------------------------ ##
2100
2101# ac_fn_c_try_compile LINENO
2102# --------------------------
2103# Try to compile conftest.$ac_ext, and return whether this succeeded.
2104ac_fn_c_try_compile ()
2105{
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 rm -f conftest.$ac_objext
2108 if { { ac_try="$ac_compile"
2109case "(($ac_try" in
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2112esac
2113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2114$as_echo "$ac_try_echo"; } >&5
2115 (eval "$ac_compile") 2>conftest.err
2116 ac_status=$?
2117 if test -s conftest.err; then
2118 grep -v '^ *+' conftest.err >conftest.er1
2119 cat conftest.er1 >&5
2120 mv -f conftest.er1 conftest.err
2121 fi
2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123 test $ac_status = 0; } && {
2124 test -z "$ac_c_werror_flag" ||
2125 test ! -s conftest.err
2126 } && test -s conftest.$ac_objext; then :
2127 ac_retval=0
2128else
2129 $as_echo "$as_me: failed program was:" >&5
2130sed 's/^/| /' conftest.$ac_ext >&5
2131
2132 ac_retval=1
2133fi
cristyda16f162011-02-19 23:52:17 +00002134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002135 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002136
2137} # ac_fn_c_try_compile
2138
cristy95646052009-11-28 23:05:30 +00002139# ac_fn_c_try_cpp LINENO
2140# ----------------------
2141# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2142ac_fn_c_try_cpp ()
2143{
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 if { { ac_try="$ac_cpp conftest.$ac_ext"
2146case "(($ac_try" in
2147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2148 *) ac_try_echo=$ac_try;;
2149esac
2150eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2151$as_echo "$ac_try_echo"; } >&5
2152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2153 ac_status=$?
2154 if test -s conftest.err; then
2155 grep -v '^ *+' conftest.err >conftest.er1
2156 cat conftest.er1 >&5
2157 mv -f conftest.er1 conftest.err
2158 fi
2159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002160 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2162 test ! -s conftest.err
2163 }; then :
2164 ac_retval=0
2165else
2166 $as_echo "$as_me: failed program was:" >&5
2167sed 's/^/| /' conftest.$ac_ext >&5
2168
2169 ac_retval=1
2170fi
cristyda16f162011-02-19 23:52:17 +00002171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002172 as_fn_set_status $ac_retval
2173
2174} # ac_fn_c_try_cpp
2175
cristy8b350f62009-11-15 23:12:43 +00002176# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2177# -------------------------------------------------------
2178# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2179# the include files in INCLUDES and setting the cache variable VAR
2180# accordingly.
2181ac_fn_c_check_header_mongrel ()
2182{
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002184 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002187if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002188 $as_echo_n "(cached) " >&6
2189fi
2190eval ac_res=\$$3
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192$as_echo "$ac_res" >&6; }
2193else
2194 # Is the header compilable?
2195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2196$as_echo_n "checking $2 usability... " >&6; }
2197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198/* end confdefs.h. */
2199$4
2200#include <$2>
2201_ACEOF
2202if ac_fn_c_try_compile "$LINENO"; then :
2203 ac_header_compiler=yes
2204else
2205 ac_header_compiler=no
2206fi
2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2209$as_echo "$ac_header_compiler" >&6; }
2210
2211# Is the header present?
2212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2213$as_echo_n "checking $2 presence... " >&6; }
2214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215/* end confdefs.h. */
2216#include <$2>
2217_ACEOF
2218if ac_fn_c_try_cpp "$LINENO"; then :
2219 ac_header_preproc=yes
2220else
2221 ac_header_preproc=no
2222fi
cristyda16f162011-02-19 23:52:17 +00002223rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2225$as_echo "$ac_header_preproc" >&6; }
2226
2227# So? What about this header?
2228case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2229 yes:no: )
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2231$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2233$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2234 ;;
2235 no:yes:* )
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2237$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2239$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2241$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2243$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2245$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002246( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002247## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002248## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002249 ) | sed "s/^/$as_me: WARNING: /" >&2
2250 ;;
2251esac
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002254if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002255 $as_echo_n "(cached) " >&6
2256else
2257 eval "$3=\$ac_header_compiler"
2258fi
2259eval ac_res=\$$3
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261$as_echo "$ac_res" >&6; }
2262fi
cristyda16f162011-02-19 23:52:17 +00002263 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002264
2265} # ac_fn_c_check_header_mongrel
2266
2267# ac_fn_c_try_run LINENO
2268# ----------------------
2269# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2270# that executables *can* be run.
2271ac_fn_c_try_run ()
2272{
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 if { { ac_try="$ac_link"
2275case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278esac
2279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280$as_echo "$ac_try_echo"; } >&5
2281 (eval "$ac_link") 2>&5
2282 ac_status=$?
2283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2285 { { case "(($ac_try" in
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2288esac
2289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290$as_echo "$ac_try_echo"; } >&5
2291 (eval "$ac_try") 2>&5
2292 ac_status=$?
2293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2294 test $ac_status = 0; }; }; then :
2295 ac_retval=0
2296else
2297 $as_echo "$as_me: program exited with status $ac_status" >&5
2298 $as_echo "$as_me: failed program was:" >&5
2299sed 's/^/| /' conftest.$ac_ext >&5
2300
2301 ac_retval=$ac_status
2302fi
2303 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002305 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002306
2307} # ac_fn_c_try_run
2308
2309# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2310# -------------------------------------------------------
2311# Tests whether HEADER exists and can be compiled using the include files in
2312# INCLUDES, setting the cache variable VAR accordingly.
2313ac_fn_c_check_header_compile ()
2314{
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002318if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002319 $as_echo_n "(cached) " >&6
2320else
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322/* end confdefs.h. */
2323$4
2324#include <$2>
2325_ACEOF
2326if ac_fn_c_try_compile "$LINENO"; then :
2327 eval "$3=yes"
2328else
2329 eval "$3=no"
2330fi
2331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332fi
2333eval ac_res=\$$3
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002337
2338} # ac_fn_c_check_header_compile
2339
cristya0b81c32010-01-22 02:54:33 +00002340# ac_fn_cxx_try_compile LINENO
2341# ----------------------------
2342# Try to compile conftest.$ac_ext, and return whether this succeeded.
2343ac_fn_cxx_try_compile ()
2344{
2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346 rm -f conftest.$ac_objext
2347 if { { ac_try="$ac_compile"
2348case "(($ac_try" in
2349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350 *) ac_try_echo=$ac_try;;
2351esac
2352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2353$as_echo "$ac_try_echo"; } >&5
2354 (eval "$ac_compile") 2>conftest.err
2355 ac_status=$?
2356 if test -s conftest.err; then
2357 grep -v '^ *+' conftest.err >conftest.er1
2358 cat conftest.er1 >&5
2359 mv -f conftest.er1 conftest.err
2360 fi
2361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2362 test $ac_status = 0; } && {
2363 test -z "$ac_cxx_werror_flag" ||
2364 test ! -s conftest.err
2365 } && test -s conftest.$ac_objext; then :
2366 ac_retval=0
2367else
2368 $as_echo "$as_me: failed program was:" >&5
2369sed 's/^/| /' conftest.$ac_ext >&5
2370
2371 ac_retval=1
2372fi
cristyda16f162011-02-19 23:52:17 +00002373 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002374 as_fn_set_status $ac_retval
2375
2376} # ac_fn_cxx_try_compile
2377
cristyd95b7a52013-10-23 13:12:53 +00002378# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2379# --------------------------------------------
2380# Tries to find the compile-time value of EXPR in a program that includes
2381# INCLUDES, setting VAR accordingly. Returns whether the value could be
2382# computed
2383ac_fn_c_compute_int ()
2384{
2385 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386 if test "$cross_compiling" = yes; then
2387 # Depending upon the size, compute the lo and hi bounds.
2388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389/* end confdefs.h. */
2390$4
2391int
2392main ()
2393{
2394static int test_array [1 - 2 * !(($2) >= 0)];
2395test_array [0] = 0;
2396return test_array [0];
2397
2398 ;
2399 return 0;
2400}
2401_ACEOF
2402if ac_fn_c_try_compile "$LINENO"; then :
2403 ac_lo=0 ac_mid=0
2404 while :; do
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406/* end confdefs.h. */
2407$4
2408int
2409main ()
2410{
2411static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2412test_array [0] = 0;
2413return test_array [0];
2414
2415 ;
2416 return 0;
2417}
2418_ACEOF
2419if ac_fn_c_try_compile "$LINENO"; then :
2420 ac_hi=$ac_mid; break
2421else
2422 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2423 if test $ac_lo -le $ac_mid; then
2424 ac_lo= ac_hi=
2425 break
2426 fi
2427 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2428fi
2429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2430 done
2431else
2432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2433/* end confdefs.h. */
2434$4
2435int
2436main ()
2437{
2438static int test_array [1 - 2 * !(($2) < 0)];
2439test_array [0] = 0;
2440return test_array [0];
2441
2442 ;
2443 return 0;
2444}
2445_ACEOF
2446if ac_fn_c_try_compile "$LINENO"; then :
2447 ac_hi=-1 ac_mid=-1
2448 while :; do
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450/* end confdefs.h. */
2451$4
2452int
2453main ()
2454{
2455static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2456test_array [0] = 0;
2457return test_array [0];
2458
2459 ;
2460 return 0;
2461}
2462_ACEOF
2463if ac_fn_c_try_compile "$LINENO"; then :
2464 ac_lo=$ac_mid; break
2465else
2466 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2467 if test $ac_mid -le $ac_hi; then
2468 ac_lo= ac_hi=
2469 break
2470 fi
2471 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2472fi
2473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474 done
2475else
2476 ac_lo= ac_hi=
2477fi
2478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479fi
2480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2481# Binary search between lo and hi bounds.
2482while test "x$ac_lo" != "x$ac_hi"; do
2483 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485/* end confdefs.h. */
2486$4
2487int
2488main ()
2489{
2490static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2491test_array [0] = 0;
2492return test_array [0];
2493
2494 ;
2495 return 0;
2496}
2497_ACEOF
2498if ac_fn_c_try_compile "$LINENO"; then :
2499 ac_hi=$ac_mid
2500else
2501 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2502fi
2503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2504done
2505case $ac_lo in #((
2506?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2507'') ac_retval=1 ;;
2508esac
2509 else
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511/* end confdefs.h. */
2512$4
2513static long int longval () { return $2; }
2514static unsigned long int ulongval () { return $2; }
2515#include <stdio.h>
2516#include <stdlib.h>
2517int
2518main ()
2519{
2520
2521 FILE *f = fopen ("conftest.val", "w");
2522 if (! f)
2523 return 1;
2524 if (($2) < 0)
2525 {
2526 long int i = longval ();
2527 if (i != ($2))
2528 return 1;
2529 fprintf (f, "%ld", i);
2530 }
2531 else
2532 {
2533 unsigned long int i = ulongval ();
2534 if (i != ($2))
2535 return 1;
2536 fprintf (f, "%lu", i);
2537 }
2538 /* Do not output a trailing newline, as this causes \r\n confusion
2539 on some platforms. */
2540 return ferror (f) || fclose (f) != 0;
2541
2542 ;
2543 return 0;
2544}
2545_ACEOF
2546if ac_fn_c_try_run "$LINENO"; then :
2547 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2548else
2549 ac_retval=1
2550fi
2551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2552 conftest.$ac_objext conftest.beam conftest.$ac_ext
2553rm -f conftest.val
2554
2555 fi
2556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2557 as_fn_set_status $ac_retval
2558
2559} # ac_fn_c_compute_int
2560
cristy8b350f62009-11-15 23:12:43 +00002561# ac_fn_c_try_link LINENO
2562# -----------------------
2563# Try to link conftest.$ac_ext, and return whether this succeeded.
2564ac_fn_c_try_link ()
2565{
2566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567 rm -f conftest.$ac_objext conftest$ac_exeext
2568 if { { ac_try="$ac_link"
2569case "(($ac_try" in
2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571 *) ac_try_echo=$ac_try;;
2572esac
2573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2574$as_echo "$ac_try_echo"; } >&5
2575 (eval "$ac_link") 2>conftest.err
2576 ac_status=$?
2577 if test -s conftest.err; then
2578 grep -v '^ *+' conftest.err >conftest.er1
2579 cat conftest.er1 >&5
2580 mv -f conftest.er1 conftest.err
2581 fi
2582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2583 test $ac_status = 0; } && {
2584 test -z "$ac_c_werror_flag" ||
2585 test ! -s conftest.err
2586 } && test -s conftest$ac_exeext && {
2587 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002588 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002589 }; then :
2590 ac_retval=0
2591else
2592 $as_echo "$as_me: failed program was:" >&5
2593sed 's/^/| /' conftest.$ac_ext >&5
2594
2595 ac_retval=1
2596fi
2597 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2598 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2599 # interfere with the next link command; also delete a directory that is
2600 # left behind by Apple's compiler. We do this before executing the actions.
2601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002603 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002604
2605} # ac_fn_c_try_link
2606
cristy73bd4a52010-10-05 11:24:23 +00002607# ac_fn_c_check_func LINENO FUNC VAR
2608# ----------------------------------
2609# Tests whether FUNC exists, setting the cache variable VAR accordingly
2610ac_fn_c_check_func ()
2611{
2612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2614$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002615if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002616 $as_echo_n "(cached) " >&6
2617else
2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619/* end confdefs.h. */
2620/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2622#define $2 innocuous_$2
2623
2624/* System header to define __stub macros and hopefully few prototypes,
2625 which can conflict with char $2 (); below.
2626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2627 <limits.h> exists even on freestanding compilers. */
2628
2629#ifdef __STDC__
2630# include <limits.h>
2631#else
2632# include <assert.h>
2633#endif
2634
2635#undef $2
2636
2637/* Override any GCC internal prototype to avoid an error.
2638 Use char because int might match the return type of a GCC
2639 builtin and then its argument prototype would still apply. */
2640#ifdef __cplusplus
2641extern "C"
2642#endif
2643char $2 ();
2644/* The GNU C library defines this for functions which it implements
2645 to always fail with ENOSYS. Some functions are actually named
2646 something starting with __ and the normal name is an alias. */
2647#if defined __stub_$2 || defined __stub___$2
2648choke me
2649#endif
2650
2651int
2652main ()
2653{
2654return $2 ();
2655 ;
2656 return 0;
2657}
2658_ACEOF
2659if ac_fn_c_try_link "$LINENO"; then :
2660 eval "$3=yes"
2661else
2662 eval "$3=no"
2663fi
2664rm -f core conftest.err conftest.$ac_objext \
2665 conftest$ac_exeext conftest.$ac_ext
2666fi
2667eval ac_res=\$$3
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2669$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002671
2672} # ac_fn_c_check_func
2673
2674# ac_fn_cxx_try_cpp LINENO
2675# ------------------------
2676# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2677ac_fn_cxx_try_cpp ()
2678{
2679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2680 if { { ac_try="$ac_cpp conftest.$ac_ext"
2681case "(($ac_try" in
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2684esac
2685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2686$as_echo "$ac_try_echo"; } >&5
2687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2688 ac_status=$?
2689 if test -s conftest.err; then
2690 grep -v '^ *+' conftest.err >conftest.er1
2691 cat conftest.er1 >&5
2692 mv -f conftest.er1 conftest.err
2693 fi
2694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002695 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002696 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2697 test ! -s conftest.err
2698 }; then :
2699 ac_retval=0
2700else
2701 $as_echo "$as_me: failed program was:" >&5
2702sed 's/^/| /' conftest.$ac_ext >&5
2703
2704 ac_retval=1
2705fi
cristyda16f162011-02-19 23:52:17 +00002706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002707 as_fn_set_status $ac_retval
2708
2709} # ac_fn_cxx_try_cpp
2710
2711# ac_fn_cxx_try_link LINENO
2712# -------------------------
2713# Try to link conftest.$ac_ext, and return whether this succeeded.
2714ac_fn_cxx_try_link ()
2715{
2716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2717 rm -f conftest.$ac_objext conftest$ac_exeext
2718 if { { ac_try="$ac_link"
2719case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722esac
2723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2724$as_echo "$ac_try_echo"; } >&5
2725 (eval "$ac_link") 2>conftest.err
2726 ac_status=$?
2727 if test -s conftest.err; then
2728 grep -v '^ *+' conftest.err >conftest.er1
2729 cat conftest.er1 >&5
2730 mv -f conftest.er1 conftest.err
2731 fi
2732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2733 test $ac_status = 0; } && {
2734 test -z "$ac_cxx_werror_flag" ||
2735 test ! -s conftest.err
2736 } && test -s conftest$ac_exeext && {
2737 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002738 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002739 }; then :
2740 ac_retval=0
2741else
2742 $as_echo "$as_me: failed program was:" >&5
2743sed 's/^/| /' conftest.$ac_ext >&5
2744
2745 ac_retval=1
2746fi
2747 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2748 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2749 # interfere with the next link command; also delete a directory that is
2750 # left behind by Apple's compiler. We do this before executing the actions.
2751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002753 as_fn_set_status $ac_retval
2754
2755} # ac_fn_cxx_try_link
2756
cristy8b350f62009-11-15 23:12:43 +00002757# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2758# -------------------------------------------
2759# Tests whether TYPE exists after having included INCLUDES, setting cache
2760# variable VAR accordingly.
2761ac_fn_c_check_type ()
2762{
2763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2765$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002766if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002767 $as_echo_n "(cached) " >&6
2768else
2769 eval "$3=no"
2770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771/* end confdefs.h. */
2772$4
2773int
2774main ()
2775{
2776if (sizeof ($2))
2777 return 0;
2778 ;
2779 return 0;
2780}
2781_ACEOF
2782if ac_fn_c_try_compile "$LINENO"; then :
2783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2784/* end confdefs.h. */
2785$4
2786int
2787main ()
2788{
2789if (sizeof (($2)))
2790 return 0;
2791 ;
2792 return 0;
2793}
2794_ACEOF
2795if ac_fn_c_try_compile "$LINENO"; then :
2796
2797else
2798 eval "$3=yes"
2799fi
2800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801fi
2802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803fi
2804eval ac_res=\$$3
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2806$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002808
2809} # ac_fn_c_check_type
2810
cristy92703d82010-04-26 00:18:18 +00002811# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2812# ----------------------------------------------------
2813# Tries to find if the field MEMBER exists in type AGGR, after including
2814# INCLUDES, setting cache variable VAR accordingly.
2815ac_fn_c_check_member ()
2816{
2817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2819$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002820if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002821 $as_echo_n "(cached) " >&6
2822else
2823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2824/* end confdefs.h. */
2825$5
2826int
2827main ()
2828{
2829static $2 ac_aggr;
2830if (ac_aggr.$3)
2831return 0;
2832 ;
2833 return 0;
2834}
2835_ACEOF
2836if ac_fn_c_try_compile "$LINENO"; then :
2837 eval "$4=yes"
2838else
2839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2840/* end confdefs.h. */
2841$5
2842int
2843main ()
2844{
2845static $2 ac_aggr;
2846if (sizeof ac_aggr.$3)
2847return 0;
2848 ;
2849 return 0;
2850}
2851_ACEOF
2852if ac_fn_c_try_compile "$LINENO"; then :
2853 eval "$4=yes"
2854else
2855 eval "$4=no"
2856fi
2857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2858fi
2859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2860fi
2861eval ac_res=\$$4
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2863$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002865
2866} # ac_fn_c_check_member
2867
cristy5eef09f2012-10-16 12:08:28 +00002868# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2869# ---------------------------------------------
2870# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2871# accordingly.
2872ac_fn_c_check_decl ()
2873{
2874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2875 as_decl_name=`echo $2|sed 's/ *(.*//'`
2876 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2878$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2879if eval \${$3+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881else
2882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2883/* end confdefs.h. */
2884$4
2885int
2886main ()
2887{
2888#ifndef $as_decl_name
2889#ifdef __cplusplus
2890 (void) $as_decl_use;
2891#else
2892 (void) $as_decl_name;
2893#endif
2894#endif
2895
2896 ;
2897 return 0;
2898}
2899_ACEOF
2900if ac_fn_c_try_compile "$LINENO"; then :
2901 eval "$3=yes"
2902else
2903 eval "$3=no"
2904fi
2905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906fi
2907eval ac_res=\$$3
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2909$as_echo "$ac_res" >&6; }
2910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2911
2912} # ac_fn_c_check_decl
2913
cristy501c8042011-05-26 17:46:28 +00002914# ac_fn_c_find_intX_t LINENO BITS VAR
2915# -----------------------------------
2916# Finds a signed integer type with width BITS, setting cache variable VAR
2917# accordingly.
2918ac_fn_c_find_intX_t ()
2919{
2920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2922$as_echo_n "checking for int$2_t... " >&6; }
2923if eval \${$3+:} false; then :
2924 $as_echo_n "(cached) " >&6
2925else
2926 eval "$3=no"
2927 # Order is important - never check a type that is potentially smaller
2928 # than half of the expected target width.
2929 for ac_type in int$2_t 'int' 'long int' \
2930 'long long int' 'short int' 'signed char'; do
2931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2932/* end confdefs.h. */
2933$ac_includes_default
2934 enum { N = $2 / 2 - 1 };
2935int
2936main ()
2937{
2938static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002939test_array [0] = 0;
2940return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002941
2942 ;
2943 return 0;
2944}
2945_ACEOF
2946if ac_fn_c_try_compile "$LINENO"; then :
2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948/* end confdefs.h. */
2949$ac_includes_default
2950 enum { N = $2 / 2 - 1 };
2951int
2952main ()
2953{
2954static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2955 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002956test_array [0] = 0;
2957return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002958
2959 ;
2960 return 0;
2961}
2962_ACEOF
2963if ac_fn_c_try_compile "$LINENO"; then :
2964
2965else
2966 case $ac_type in #(
2967 int$2_t) :
2968 eval "$3=yes" ;; #(
2969 *) :
2970 eval "$3=\$ac_type" ;;
2971esac
2972fi
2973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974fi
2975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 if eval test \"x\$"$3"\" = x"no"; then :
2977
2978else
2979 break
2980fi
2981 done
2982fi
2983eval ac_res=\$$3
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2985$as_echo "$ac_res" >&6; }
2986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2987
2988} # ac_fn_c_find_intX_t
2989
2990# ac_fn_c_find_uintX_t LINENO BITS VAR
2991# ------------------------------------
2992# Finds an unsigned integer type with width BITS, setting cache variable VAR
2993# accordingly.
2994ac_fn_c_find_uintX_t ()
2995{
2996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2998$as_echo_n "checking for uint$2_t... " >&6; }
2999if eval \${$3+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001else
3002 eval "$3=no"
3003 # Order is important - never check a type that is potentially smaller
3004 # than half of the expected target width.
3005 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3006 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008/* end confdefs.h. */
3009$ac_includes_default
3010int
3011main ()
3012{
3013static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003014test_array [0] = 0;
3015return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003016
3017 ;
3018 return 0;
3019}
3020_ACEOF
3021if ac_fn_c_try_compile "$LINENO"; then :
3022 case $ac_type in #(
3023 uint$2_t) :
3024 eval "$3=yes" ;; #(
3025 *) :
3026 eval "$3=\$ac_type" ;;
3027esac
3028fi
3029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030 if eval test \"x\$"$3"\" = x"no"; then :
3031
3032else
3033 break
3034fi
3035 done
3036fi
3037eval ac_res=\$$3
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3039$as_echo "$ac_res" >&6; }
3040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3041
3042} # ac_fn_c_find_uintX_t
3043
cristy8b350f62009-11-15 23:12:43 +00003044# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3045# ---------------------------------------------------------
3046# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3047# the include files in INCLUDES and setting the cache variable VAR
3048# accordingly.
3049ac_fn_cxx_check_header_mongrel ()
3050{
3051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003052 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3054$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003055if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003056 $as_echo_n "(cached) " >&6
3057fi
3058eval ac_res=\$$3
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3060$as_echo "$ac_res" >&6; }
3061else
3062 # Is the header compilable?
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3064$as_echo_n "checking $2 usability... " >&6; }
3065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066/* end confdefs.h. */
3067$4
3068#include <$2>
3069_ACEOF
3070if ac_fn_cxx_try_compile "$LINENO"; then :
3071 ac_header_compiler=yes
3072else
3073 ac_header_compiler=no
3074fi
3075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3077$as_echo "$ac_header_compiler" >&6; }
3078
3079# Is the header present?
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3081$as_echo_n "checking $2 presence... " >&6; }
3082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3083/* end confdefs.h. */
3084#include <$2>
3085_ACEOF
3086if ac_fn_cxx_try_cpp "$LINENO"; then :
3087 ac_header_preproc=yes
3088else
3089 ac_header_preproc=no
3090fi
cristyda16f162011-02-19 23:52:17 +00003091rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3093$as_echo "$ac_header_preproc" >&6; }
3094
3095# So? What about this header?
3096case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3097 yes:no: )
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3099$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3101$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3102 ;;
3103 no:yes:* )
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3105$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3107$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3109$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3111$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3113$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003114( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003115## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003116## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003117 ) | sed "s/^/$as_me: WARNING: /" >&2
3118 ;;
3119esac
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3121$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003122if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003123 $as_echo_n "(cached) " >&6
3124else
3125 eval "$3=\$ac_header_compiler"
3126fi
3127eval ac_res=\$$3
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3129$as_echo "$ac_res" >&6; }
3130fi
cristyda16f162011-02-19 23:52:17 +00003131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003132
3133} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003134cat >config.log <<_ACEOF
3135This file contains any messages produced by compilers while
3136running configure, to aid debugging if configure makes a mistake.
3137
cristy29eb34e2011-10-16 00:46:08 +00003138It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003139generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003140
3141 $ $0 $@
3142
3143_ACEOF
3144exec 5>>config.log
3145{
3146cat <<_ASUNAME
3147## --------- ##
3148## Platform. ##
3149## --------- ##
3150
3151hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3152uname -m = `(uname -m) 2>/dev/null || echo unknown`
3153uname -r = `(uname -r) 2>/dev/null || echo unknown`
3154uname -s = `(uname -s) 2>/dev/null || echo unknown`
3155uname -v = `(uname -v) 2>/dev/null || echo unknown`
3156
3157/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3158/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3159
3160/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3161/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3162/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3163/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3164/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3165/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3166/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3167
3168_ASUNAME
3169
3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171for as_dir in $PATH
3172do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003175 $as_echo "PATH: $as_dir"
3176 done
cristy3ed852e2009-09-05 21:47:34 +00003177IFS=$as_save_IFS
3178
3179} >&5
3180
3181cat >&5 <<_ACEOF
3182
3183
3184## ----------- ##
3185## Core tests. ##
3186## ----------- ##
3187
3188_ACEOF
3189
3190
3191# Keep a trace of the command line.
3192# Strip out --no-create and --no-recursion so they do not pile up.
3193# Strip out --silent because we don't want to record it for future runs.
3194# Also quote any args containing shell meta-characters.
3195# Make two passes to allow for proper duplicate-argument suppression.
3196ac_configure_args=
3197ac_configure_args0=
3198ac_configure_args1=
3199ac_must_keep_next=false
3200for ac_pass in 1 2
3201do
3202 for ac_arg
3203 do
3204 case $ac_arg in
3205 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3207 | -silent | --silent | --silen | --sile | --sil)
3208 continue ;;
3209 *\'*)
3210 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3211 esac
3212 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003213 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003214 2)
cristy8b350f62009-11-15 23:12:43 +00003215 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003216 if test $ac_must_keep_next = true; then
3217 ac_must_keep_next=false # Got value, back to normal.
3218 else
3219 case $ac_arg in
3220 *=* | --config-cache | -C | -disable-* | --disable-* \
3221 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3222 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3223 | -with-* | --with-* | -without-* | --without-* | --x)
3224 case "$ac_configure_args0 " in
3225 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3226 esac
3227 ;;
3228 -* ) ac_must_keep_next=true ;;
3229 esac
3230 fi
cristy8b350f62009-11-15 23:12:43 +00003231 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003232 ;;
3233 esac
3234 done
3235done
cristy8b350f62009-11-15 23:12:43 +00003236{ ac_configure_args0=; unset ac_configure_args0;}
3237{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003238
3239# When interrupted or exit'd, cleanup temporary files, and complete
3240# config.log. We remove comments because anyway the quotes in there
3241# would cause problems or look ugly.
3242# WARNING: Use '\'' to represent an apostrophe within the trap.
3243# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3244trap 'exit_status=$?
3245 # Save into config.log some information that might help in debugging.
3246 {
3247 echo
3248
cristy98dddb52010-11-04 00:30:15 +00003249 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003250## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003251## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003252 echo
3253 # The following way of writing the cache mishandles newlines in values,
3254(
3255 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3256 eval ac_val=\$$ac_var
3257 case $ac_val in #(
3258 *${as_nl}*)
3259 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003260 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003261$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3262 esac
3263 case $ac_var in #(
3264 _ | IFS | as_nl) ;; #(
3265 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003266 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003267 esac ;;
3268 esac
3269 done
3270 (set) 2>&1 |
3271 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3272 *${as_nl}ac_space=\ *)
3273 sed -n \
3274 "s/'\''/'\''\\\\'\'''\''/g;
3275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3276 ;; #(
3277 *)
3278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3279 ;;
3280 esac |
3281 sort
3282)
3283 echo
3284
cristy98dddb52010-11-04 00:30:15 +00003285 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003286## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003287## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003288 echo
3289 for ac_var in $ac_subst_vars
3290 do
3291 eval ac_val=\$$ac_var
3292 case $ac_val in
3293 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3294 esac
3295 $as_echo "$ac_var='\''$ac_val'\''"
3296 done | sort
3297 echo
3298
3299 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003300 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003301## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003302## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003303 echo
3304 for ac_var in $ac_subst_files
3305 do
3306 eval ac_val=\$$ac_var
3307 case $ac_val in
3308 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3309 esac
3310 $as_echo "$ac_var='\''$ac_val'\''"
3311 done | sort
3312 echo
3313 fi
3314
3315 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003316 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003317## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003318## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003319 echo
3320 cat confdefs.h
3321 echo
3322 fi
3323 test "$ac_signal" != 0 &&
3324 $as_echo "$as_me: caught signal $ac_signal"
3325 $as_echo "$as_me: exit $exit_status"
3326 } >&5
3327 rm -f core *.core core.conftest.* &&
3328 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3329 exit $exit_status
3330' 0
3331for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003332 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003333done
3334ac_signal=0
3335
3336# confdefs.h avoids OS command line length limits that DEFS can exceed.
3337rm -f -r conftest* confdefs.h
3338
cristy8b350f62009-11-15 23:12:43 +00003339$as_echo "/* confdefs.h */" > confdefs.h
3340
cristy3ed852e2009-09-05 21:47:34 +00003341# Predefined preprocessor variables.
3342
3343cat >>confdefs.h <<_ACEOF
3344#define PACKAGE_NAME "$PACKAGE_NAME"
3345_ACEOF
3346
cristy3ed852e2009-09-05 21:47:34 +00003347cat >>confdefs.h <<_ACEOF
3348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3349_ACEOF
3350
cristy3ed852e2009-09-05 21:47:34 +00003351cat >>confdefs.h <<_ACEOF
3352#define PACKAGE_VERSION "$PACKAGE_VERSION"
3353_ACEOF
3354
cristy3ed852e2009-09-05 21:47:34 +00003355cat >>confdefs.h <<_ACEOF
3356#define PACKAGE_STRING "$PACKAGE_STRING"
3357_ACEOF
3358
cristy3ed852e2009-09-05 21:47:34 +00003359cat >>confdefs.h <<_ACEOF
3360#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3361_ACEOF
3362
cristy8b350f62009-11-15 23:12:43 +00003363cat >>confdefs.h <<_ACEOF
3364#define PACKAGE_URL "$PACKAGE_URL"
3365_ACEOF
3366
cristy3ed852e2009-09-05 21:47:34 +00003367
3368# Let the site file select an alternate cache file if it wants to.
3369# Prefer an explicitly selected file to automatically selected ones.
3370ac_site_file1=NONE
3371ac_site_file2=NONE
3372if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003373 # We do not want a PATH search for config.site.
3374 case $CONFIG_SITE in #((
3375 -*) ac_site_file1=./$CONFIG_SITE;;
3376 */*) ac_site_file1=$CONFIG_SITE;;
3377 *) ac_site_file1=./$CONFIG_SITE;;
3378 esac
cristy3ed852e2009-09-05 21:47:34 +00003379elif test "x$prefix" != xNONE; then
3380 ac_site_file1=$prefix/share/config.site
3381 ac_site_file2=$prefix/etc/config.site
3382else
3383 ac_site_file1=$ac_default_prefix/share/config.site
3384 ac_site_file2=$ac_default_prefix/etc/config.site
3385fi
3386for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3387do
3388 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003389 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003390 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003391$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3392 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003393 . "$ac_site_file" \
3394 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3396as_fn_error $? "failed to load site script $ac_site_file
3397See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003398 fi
3399done
3400
3401if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003402 # Some versions of bash will fail to source /dev/null (special files
3403 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3404 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003405 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003406$as_echo "$as_me: loading cache $cache_file" >&6;}
3407 case $cache_file in
3408 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3409 *) . "./$cache_file";;
3410 esac
3411 fi
3412else
cristy8b350f62009-11-15 23:12:43 +00003413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003414$as_echo "$as_me: creating cache $cache_file" >&6;}
3415 >$cache_file
3416fi
3417
cristycd4c5312009-11-22 01:19:08 +00003418as_fn_append ac_header_list " stdlib.h"
3419as_fn_append ac_header_list " unistd.h"
3420as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003421# Check that the precious variables saved in the cache have kept the same
3422# value.
3423ac_cache_corrupted=false
3424for ac_var in $ac_precious_vars; do
3425 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3426 eval ac_new_set=\$ac_env_${ac_var}_set
3427 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3428 eval ac_new_val=\$ac_env_${ac_var}_value
3429 case $ac_old_set,$ac_new_set in
3430 set,)
cristy8b350f62009-11-15 23:12:43 +00003431 { $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 +00003432$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3433 ac_cache_corrupted=: ;;
3434 ,set)
cristy8b350f62009-11-15 23:12:43 +00003435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003436$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3437 ac_cache_corrupted=: ;;
3438 ,);;
3439 *)
3440 if test "x$ac_old_val" != "x$ac_new_val"; then
3441 # differences in whitespace do not lead to failure.
3442 ac_old_val_w=`echo x $ac_old_val`
3443 ac_new_val_w=`echo x $ac_new_val`
3444 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003446$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3447 ac_cache_corrupted=:
3448 else
cristy8b350f62009-11-15 23:12:43 +00003449 { $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 +00003450$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3451 eval $ac_var=\$ac_old_val
3452 fi
cristy8b350f62009-11-15 23:12:43 +00003453 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003454$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003455 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003456$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3457 fi;;
3458 esac
3459 # Pass precious variables to config.status.
3460 if test "$ac_new_set" = set; then
3461 case $ac_new_val in
3462 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3463 *) ac_arg=$ac_var=$ac_new_val ;;
3464 esac
3465 case " $ac_configure_args " in
3466 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003467 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003468 esac
3469 fi
3470done
3471if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003474 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003475$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003476 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003477fi
cristy8b350f62009-11-15 23:12:43 +00003478## -------------------- ##
3479## Main body of script. ##
3480## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003481
3482ac_ext=c
3483ac_cpp='$CPP $CPPFLAGS'
3484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487
3488
3489
3490ac_aux_dir=
3491for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003492 if test -f "$ac_dir/install-sh"; then
3493 ac_aux_dir=$ac_dir
3494 ac_install_sh="$ac_aux_dir/install-sh -c"
3495 break
3496 elif test -f "$ac_dir/install.sh"; then
3497 ac_aux_dir=$ac_dir
3498 ac_install_sh="$ac_aux_dir/install.sh -c"
3499 break
3500 elif test -f "$ac_dir/shtool"; then
3501 ac_aux_dir=$ac_dir
3502 ac_install_sh="$ac_aux_dir/shtool install -c"
3503 break
3504 fi
cristy3ed852e2009-09-05 21:47:34 +00003505done
3506if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003507 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003508fi
3509
3510# These three variables are undocumented and unsupported,
3511# and are intended to be withdrawn in a future Autoconf release.
3512# They can cause serious problems if a builder's source tree is in a directory
3513# whose full name contains unusual characters.
3514ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3515ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3516ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3517
3518
3519
3520
3521ac_config_headers="$ac_config_headers config/config.h"
3522
cristy24fc1fe2010-10-23 21:13:01 +00003523
cristy01ff9f32012-12-01 18:15:29 +00003524ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003525
cristy8d0ff762013-03-10 20:33:28 +00003526ac_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 +00003527
3528
3529#
3530# Save initial user-tunable values
3531#
3532USER_LIBS=$LIBS
3533for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3534 eval isset=\${$var+set}
3535 if test "$isset" = 'set'; then
3536 eval val=$`echo $var`
3537 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3538 fi
3539done
3540
3541
3542CONFIGURE_ARGS="$0 ${ac_configure_args}"
3543
3544
3545# Source file containing package/library versioning information.
3546. ${srcdir}/version.sh
3547
cristy15a88782010-01-31 23:24:49 +00003548echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003549# Make sure we can run config.sub.
3550$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003551 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003552
cristy8b350f62009-11-15 23:12:43 +00003553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003554$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003555if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003556 $as_echo_n "(cached) " >&6
3557else
3558 ac_build_alias=$build_alias
3559test "x$ac_build_alias" = x &&
3560 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3561test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003562 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003563ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003564 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003565
3566fi
cristy8b350f62009-11-15 23:12:43 +00003567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003568$as_echo "$ac_cv_build" >&6; }
3569case $ac_cv_build in
3570*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003571*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003572esac
3573build=$ac_cv_build
3574ac_save_IFS=$IFS; IFS='-'
3575set x $ac_cv_build
3576shift
3577build_cpu=$1
3578build_vendor=$2
3579shift; shift
3580# Remember, the first character of IFS is used to create $*,
3581# except with old shells:
3582build_os=$*
3583IFS=$ac_save_IFS
3584case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3585
3586
cristy8b350f62009-11-15 23:12:43 +00003587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003588$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003589if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003590 $as_echo_n "(cached) " >&6
3591else
3592 if test "x$host_alias" = x; then
3593 ac_cv_host=$ac_cv_build
3594else
3595 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003596 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003597fi
3598
3599fi
cristy8b350f62009-11-15 23:12:43 +00003600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003601$as_echo "$ac_cv_host" >&6; }
3602case $ac_cv_host in
3603*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003604*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003605esac
3606host=$ac_cv_host
3607ac_save_IFS=$IFS; IFS='-'
3608set x $ac_cv_host
3609shift
3610host_cpu=$1
3611host_vendor=$2
3612shift; shift
3613# Remember, the first character of IFS is used to create $*,
3614# except with old shells:
3615host_os=$*
3616IFS=$ac_save_IFS
3617case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3618
3619
cristy8b350f62009-11-15 23:12:43 +00003620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003621$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003622if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003623 $as_echo_n "(cached) " >&6
3624else
3625 if test "x$target_alias" = x; then
3626 ac_cv_target=$ac_cv_host
3627else
3628 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003629 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003630fi
3631
3632fi
cristy8b350f62009-11-15 23:12:43 +00003633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003634$as_echo "$ac_cv_target" >&6; }
3635case $ac_cv_target in
3636*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003637*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003638esac
3639target=$ac_cv_target
3640ac_save_IFS=$IFS; IFS='-'
3641set x $ac_cv_target
3642shift
3643target_cpu=$1
3644target_vendor=$2
3645shift; shift
3646# Remember, the first character of IFS is used to create $*,
3647# except with old shells:
3648target_os=$*
3649IFS=$ac_save_IFS
3650case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3651
3652
3653# The aliases save the names the user supplied, while $host etc.
3654# will get canonicalized.
3655test -n "$target_alias" &&
3656 test "$program_prefix$program_suffix$program_transform_name" = \
3657 NONENONEs,x,x, &&
3658 program_prefix=${target_alias}-
3659
cristy837d6dc2010-02-27 01:16:57 +00003660
3661
3662
cristy8be34142012-06-17 14:07:18 +00003663
cristy19615b82011-04-13 20:02:01 +00003664MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003665
3666
cristy27d53d62012-07-29 23:30:07 +00003667cat >>confdefs.h <<_ACEOF
3668#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3669_ACEOF
3670
3671
cristy19615b82011-04-13 20:02:01 +00003672MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003673
3674
cristy27d53d62012-07-29 23:30:07 +00003675cat >>confdefs.h <<_ACEOF
3676#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3677_ACEOF
3678
3679
cristy19615b82011-04-13 20:02:01 +00003680MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003681
3682
cristy27d53d62012-07-29 23:30:07 +00003683cat >>confdefs.h <<_ACEOF
3684#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3685_ACEOF
3686
3687
cristy37442762013-02-10 21:07:23 +00003688
3689# Substitute versioning
3690MAGICK_MAJOR_VERSION=7
3691
3692MAGICK_MINOR_VERSION=0
3693
3694MAGICK_MICRO_VERSION=0
3695
3696MAGICK_PATCHLEVEL_VERSION=0
3697
3698MAGICK_VERSION=7.0.0-0
3699
cristybc964932014-05-08 21:45:03 +00003700MAGICK_SVN_REVISION=15693M
cristy37442762013-02-10 21:07:23 +00003701
3702
cristy3ed852e2009-09-05 21:47:34 +00003703# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003704MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3705
3706MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3707
cristy37442762013-02-10 21:07:23 +00003708
cristy5ed9c6e2013-07-14 21:20:31 +00003709MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3710
3711MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3712
3713
cristyd694ca32011-03-27 21:42:54 +00003714
cristy3ed852e2009-09-05 21:47:34 +00003715# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3717$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003718# Reject unsafe characters in $srcdir or the absolute working directory
3719# name. Accept space and tab only in the latter.
3720am_lf='
3721'
3722case `pwd` in
3723 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003724 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003725esac
3726case $srcdir in
3727 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003728 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003729esac
cristy3ed852e2009-09-05 21:47:34 +00003730
cristyc0890a62012-07-19 00:18:20 +00003731# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003732# arguments. Must try -L first in case configure is actually a
3733# symlink; some systems play weird games with the mod time of symlinks
3734# (eg FreeBSD returns the mod time of the symlink's containing
3735# directory).
3736if (
cristyc0890a62012-07-19 00:18:20 +00003737 am_has_slept=no
3738 for am_try in 1 2; do
3739 echo "timestamp, slept: $am_has_slept" > conftest.file
3740 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3741 if test "$*" = "X"; then
3742 # -L didn't work.
3743 set X `ls -t "$srcdir/configure" conftest.file`
3744 fi
3745 if test "$*" != "X $srcdir/configure conftest.file" \
3746 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003747
cristyc0890a62012-07-19 00:18:20 +00003748 # If neither matched, then we have a broken ls. This can happen
3749 # if, for instance, CONFIG_SHELL is bash and it inherits a
3750 # broken ls alias from the environment. This has actually
3751 # happened. Such a system could not be considered "sane".
3752 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3753 alias in your environment" "$LINENO" 5
3754 fi
3755 if test "$2" = conftest.file || test $am_try -eq 2; then
3756 break
3757 fi
3758 # Just in case.
3759 sleep 1
3760 am_has_slept=yes
3761 done
cristy73bd4a52010-10-05 11:24:23 +00003762 test "$2" = conftest.file
3763 )
3764then
3765 # Ok.
3766 :
3767else
cristy98dddb52010-11-04 00:30:15 +00003768 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003769Check your system clock" "$LINENO" 5
3770fi
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3772$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003773# If we didn't sleep, we still need to ensure time stamps of config.status and
3774# generated files are strictly newer.
3775am_sleep_pid=
3776if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3777 ( sleep 1 ) &
3778 am_sleep_pid=$!
3779fi
cristy73bd4a52010-10-05 11:24:23 +00003780
cristyc0890a62012-07-19 00:18:20 +00003781rm -f conftest.file
3782
3783
cristya5bda012013-11-03 18:05:38 +00003784am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003785
3786# Find a good install program. We prefer a C program (faster),
3787# so one script is as good as another. But avoid the broken or
3788# incompatible versions:
3789# SysV /etc/install, /usr/sbin/install
3790# SunOS /usr/etc/install
3791# IRIX /sbin/install
3792# AIX /bin/install
3793# AmigaOS /C/install, which installs bootblocks on floppy discs
3794# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3795# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3796# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3797# OS/2's system install, which has a completely different semantic
3798# ./install, which can be erroneously created by make from ./install.sh.
3799# Reject install programs that cannot install multiple files.
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3801$as_echo_n "checking for a BSD-compatible install... " >&6; }
3802if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003803if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003804 $as_echo_n "(cached) " >&6
3805else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807for as_dir in $PATH
3808do
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 # Account for people who put trailing slashes in PATH elements.
3812case $as_dir/ in #((
3813 ./ | .// | /[cC]/* | \
3814 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3815 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3816 /usr/ucb/* ) ;;
3817 *)
3818 # OSF1 and SCO ODT 3.0 have their own names for install.
3819 # Don't use installbsd from OSF since it installs stuff as root
3820 # by default.
3821 for ac_prog in ginstall scoinst install; do
3822 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003823 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003824 if test $ac_prog = install &&
3825 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3826 # AIX install. It has an incompatible calling convention.
3827 :
3828 elif test $ac_prog = install &&
3829 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3830 # program-specific install script used by HP pwplus--don't use.
3831 :
3832 else
3833 rm -rf conftest.one conftest.two conftest.dir
3834 echo one > conftest.one
3835 echo two > conftest.two
3836 mkdir conftest.dir
3837 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3838 test -s conftest.one && test -s conftest.two &&
3839 test -s conftest.dir/conftest.one &&
3840 test -s conftest.dir/conftest.two
3841 then
3842 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3843 break 3
3844 fi
3845 fi
3846 fi
3847 done
3848 done
3849 ;;
3850esac
3851
3852 done
3853IFS=$as_save_IFS
3854
3855rm -rf conftest.one conftest.two conftest.dir
3856
3857fi
3858 if test "${ac_cv_path_install+set}" = set; then
3859 INSTALL=$ac_cv_path_install
3860 else
3861 # As a last resort, use the slow shell script. Don't cache a
3862 # value for INSTALL within a source directory, because that will
3863 # break other packages using the cache if that directory is
3864 # removed, or if the value is a relative name.
3865 INSTALL=$ac_install_sh
3866 fi
3867fi
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3869$as_echo "$INSTALL" >&6; }
3870
3871# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3872# It thinks the first close brace ends the variable substitution.
3873test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3874
3875test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3876
3877test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3878
3879test "$program_prefix" != NONE &&
3880 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3881# Use a double $ so make ignores it.
3882test "$program_suffix" != NONE &&
3883 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3884# Double any \ or $.
3885# By default was `s,x,x', remove it if useless.
3886ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3887program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3888
3889# expand $ac_aux_dir to an absolute path
3890am_aux_dir=`cd $ac_aux_dir && pwd`
3891
3892if test x"${MISSING+set}" != xset; then
3893 case $am_aux_dir in
3894 *\ * | *\ *)
3895 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3896 *)
3897 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3898 esac
3899fi
3900# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003901if eval "$MISSING --is-lightweight"; then
3902 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003903else
3904 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3906$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003907fi
3908
3909if test x"${install_sh}" != xset; then
3910 case $am_aux_dir in
3911 *\ * | *\ *)
3912 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3913 *)
3914 install_sh="\${SHELL} $am_aux_dir/install-sh"
3915 esac
3916fi
3917
cristyc0890a62012-07-19 00:18:20 +00003918# Installed binaries are usually stripped using 'strip' when the user
3919# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003920# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003921# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003922if test "$cross_compiling" != no; then
3923 if test -n "$ac_tool_prefix"; then
3924 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3925set dummy ${ac_tool_prefix}strip; ac_word=$2
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003928if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003929 $as_echo_n "(cached) " >&6
3930else
3931 if test -n "$STRIP"; then
3932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3933else
3934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935for as_dir in $PATH
3936do
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003941 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3944 fi
3945done
3946 done
3947IFS=$as_save_IFS
3948
3949fi
3950fi
3951STRIP=$ac_cv_prog_STRIP
3952if test -n "$STRIP"; then
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3954$as_echo "$STRIP" >&6; }
3955else
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957$as_echo "no" >&6; }
3958fi
3959
3960
3961fi
3962if test -z "$ac_cv_prog_STRIP"; then
3963 ac_ct_STRIP=$STRIP
3964 # Extract the first word of "strip", so it can be a program name with args.
3965set dummy strip; ac_word=$2
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003968if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003969 $as_echo_n "(cached) " >&6
3970else
3971 if test -n "$ac_ct_STRIP"; then
3972 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3973else
3974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975for as_dir in $PATH
3976do
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003981 ac_cv_prog_ac_ct_STRIP="strip"
3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 break 2
3984 fi
3985done
3986 done
3987IFS=$as_save_IFS
3988
3989fi
3990fi
3991ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3992if test -n "$ac_ct_STRIP"; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3994$as_echo "$ac_ct_STRIP" >&6; }
3995else
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997$as_echo "no" >&6; }
3998fi
3999
4000 if test "x$ac_ct_STRIP" = x; then
4001 STRIP=":"
4002 else
4003 case $cross_compiling:$ac_tool_warned in
4004yes:)
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4007ac_tool_warned=yes ;;
4008esac
4009 STRIP=$ac_ct_STRIP
4010 fi
4011else
4012 STRIP="$ac_cv_prog_STRIP"
4013fi
4014
4015fi
4016INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4017
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4019$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4020if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004021 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004022 $as_echo_n "(cached) " >&6
4023else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4026do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_prog in mkdir gmkdir; do
4030 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004031 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004032 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4033 'mkdir (GNU coreutils) '* | \
4034 'mkdir (coreutils) '* | \
4035 'mkdir (fileutils) '4.1*)
4036 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4037 break 3;;
4038 esac
4039 done
4040 done
4041 done
4042IFS=$as_save_IFS
4043
4044fi
4045
4046 test -d ./--version && rmdir ./--version
4047 if test "${ac_cv_path_mkdir+set}" = set; then
4048 MKDIR_P="$ac_cv_path_mkdir -p"
4049 else
4050 # As a last resort, use the slow shell script. Don't cache a
4051 # value for MKDIR_P within a source directory, because that will
4052 # break other packages using the cache if that directory is
4053 # removed, or if the value is a relative name.
4054 MKDIR_P="$ac_install_sh -d"
4055 fi
4056fi
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4058$as_echo "$MKDIR_P" >&6; }
4059
cristy73bd4a52010-10-05 11:24:23 +00004060for ac_prog in gawk mawk nawk awk
4061do
4062 # Extract the first word of "$ac_prog", so it can be a program name with args.
4063set dummy $ac_prog; ac_word=$2
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004066if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004067 $as_echo_n "(cached) " >&6
4068else
4069 if test -n "$AWK"; then
4070 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4071else
4072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073for as_dir in $PATH
4074do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004079 ac_cv_prog_AWK="$ac_prog"
4080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 break 2
4082 fi
4083done
4084 done
4085IFS=$as_save_IFS
4086
4087fi
4088fi
4089AWK=$ac_cv_prog_AWK
4090if test -n "$AWK"; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4092$as_echo "$AWK" >&6; }
4093else
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095$as_echo "no" >&6; }
4096fi
4097
4098
4099 test -n "$AWK" && break
4100done
4101
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4103$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4104set x ${MAKE-make}
4105ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004106if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004107 $as_echo_n "(cached) " >&6
4108else
4109 cat >conftest.make <<\_ACEOF
4110SHELL = /bin/sh
4111all:
4112 @echo '@@@%%%=$(MAKE)=@@@%%%'
4113_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004114# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004115case `${MAKE-make} -f conftest.make 2>/dev/null` in
4116 *@@@%%%=?*=@@@%%%*)
4117 eval ac_cv_prog_make_${ac_make}_set=yes;;
4118 *)
4119 eval ac_cv_prog_make_${ac_make}_set=no;;
4120esac
4121rm -f conftest.make
4122fi
4123if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4125$as_echo "yes" >&6; }
4126 SET_MAKE=
4127else
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129$as_echo "no" >&6; }
4130 SET_MAKE="MAKE=${MAKE-make}"
4131fi
4132
4133rm -rf .tst 2>/dev/null
4134mkdir .tst 2>/dev/null
4135if test -d .tst; then
4136 am__leading_dot=.
4137else
4138 am__leading_dot=_
4139fi
4140rmdir .tst 2>/dev/null
4141
cristya448bd22011-10-14 12:38:13 +00004142# Check whether --enable-silent-rules was given.
4143if test "${enable_silent_rules+set}" = set; then :
4144 enableval=$enable_silent_rules;
4145fi
4146
cristyc0890a62012-07-19 00:18:20 +00004147case $enable_silent_rules in # (((
4148 yes) AM_DEFAULT_VERBOSITY=0;;
4149 no) AM_DEFAULT_VERBOSITY=1;;
4150 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004151esac
cristyc3fb77b2012-02-06 01:49:41 +00004152am_make=${MAKE-make}
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4154$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4155if ${am_cv_make_support_nested_variables+:} false; then :
4156 $as_echo_n "(cached) " >&6
4157else
4158 if $as_echo 'TRUE=$(BAR$(V))
4159BAR0=false
4160BAR1=true
4161V=1
4162am__doit:
4163 @$(TRUE)
4164.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4165 am_cv_make_support_nested_variables=yes
4166else
4167 am_cv_make_support_nested_variables=no
4168fi
4169fi
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4171$as_echo "$am_cv_make_support_nested_variables" >&6; }
4172if test $am_cv_make_support_nested_variables = yes; then
4173 AM_V='$(V)'
4174 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4175else
4176 AM_V=$AM_DEFAULT_VERBOSITY
4177 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4178fi
cristya448bd22011-10-14 12:38:13 +00004179AM_BACKSLASH='\'
4180
cristy73bd4a52010-10-05 11:24:23 +00004181if test "`cd $srcdir && pwd`" != "`pwd`"; then
4182 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4183 # is not polluted with repeated "-I."
4184 am__isrc=' -I$(srcdir)'
4185 # test to see if srcdir already configured
4186 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004187 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004188 fi
4189fi
4190
4191# test whether we have cygpath
4192if test -z "$CYGPATH_W"; then
4193 if (cygpath --version) >/dev/null 2>/dev/null; then
4194 CYGPATH_W='cygpath -w'
4195 else
4196 CYGPATH_W=echo
4197 fi
4198fi
4199
4200
4201# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004202 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004203 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004204
4205
cristya448bd22011-10-14 12:38:13 +00004206cat >>confdefs.h <<_ACEOF
4207#define PACKAGE "$PACKAGE"
4208_ACEOF
4209
4210
4211cat >>confdefs.h <<_ACEOF
4212#define VERSION "$VERSION"
4213_ACEOF
4214
cristy73bd4a52010-10-05 11:24:23 +00004215# Some tools Automake needs.
4216
4217ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4218
4219
4220AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4221
4222
4223AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4224
4225
4226AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4227
4228
4229MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4230
cristyc0890a62012-07-19 00:18:20 +00004231# For better backward compatibility. To be removed once Automake 1.9.x
4232# dies out for good. For more background, see:
4233# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4234# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4235mkdir_p='$(MKDIR_P)'
4236
cristy73bd4a52010-10-05 11:24:23 +00004237# We need awk for the "check" target. The system "awk" is bad on
4238# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004239# Always define AMTAR for backward compatibility. Yes, it's still used
4240# in the wild :-( We should find a proper way to deprecate it ...
4241AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004242
cristye69bdbe2013-05-03 21:40:44 +00004243
4244# We'll loop over all known methods to create a tar archive until one works.
4245_am_tools='gnutar pax cpio none'
4246
cristyc3fb77b2012-02-06 01:49:41 +00004247am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004248
4249
4250
4251
4252
cristy3ed852e2009-09-05 21:47:34 +00004253
cristya5bda012013-11-03 18:05:38 +00004254# POSIX will say in a future version that running "rm -f" with no argument
4255# is OK; and we want to be able to make that assumption in our Makefile
4256# recipes. So use an aggressive probe to check that the usage we want is
4257# actually supported "in the wild" to an acceptable degree.
4258# See automake bug#10828.
4259# To make any issue more visible, cause the running configure to be aborted
4260# by default if the 'rm' program in use doesn't match our expectations; the
4261# user can still override this though.
4262if rm -f && rm -fr && rm -rf; then : OK; else
4263 cat >&2 <<'END'
4264Oops!
4265
4266Your 'rm' program seems unable to run without file operands specified
4267on the command line, even when the '-f' option is present. This is contrary
4268to the behaviour of most rm programs out there, and not conforming with
4269the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4270
4271Please tell bug-automake@gnu.org about your system, including the value
4272of your $PATH and any error possibly output before this message. This
4273can help us improve future automake versions.
4274
4275END
4276 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4277 echo 'Configuration will proceed anyway, since you have set the' >&2
4278 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4279 echo >&2
4280 else
4281 cat >&2 <<'END'
4282Aborting the configuration process, to ensure you take notice of the issue.
4283
4284You can download and install GNU coreutils to get an 'rm' implementation
4285that behaves properly: <http://www.gnu.org/software/coreutils/>.
4286
4287If you want to complete the configuration process using your problematic
4288'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4289to "yes", and re-run configure.
4290
4291END
4292 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4293 fi
4294fi
cristye69bdbe2013-05-03 21:40:44 +00004295
cristy3ed852e2009-09-05 21:47:34 +00004296# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004297# Check whether --enable-silent-rules was given.
4298if test "${enable_silent_rules+set}" = set; then :
4299 enableval=$enable_silent_rules;
4300fi
4301
cristyc0890a62012-07-19 00:18:20 +00004302case $enable_silent_rules in # (((
4303 yes) AM_DEFAULT_VERBOSITY=0;;
4304 no) AM_DEFAULT_VERBOSITY=1;;
4305 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004306esac
cristyc3fb77b2012-02-06 01:49:41 +00004307am_make=${MAKE-make}
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4309$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4310if ${am_cv_make_support_nested_variables+:} false; then :
4311 $as_echo_n "(cached) " >&6
4312else
4313 if $as_echo 'TRUE=$(BAR$(V))
4314BAR0=false
4315BAR1=true
4316V=1
4317am__doit:
4318 @$(TRUE)
4319.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4320 am_cv_make_support_nested_variables=yes
4321else
4322 am_cv_make_support_nested_variables=no
4323fi
4324fi
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4326$as_echo "$am_cv_make_support_nested_variables" >&6; }
4327if test $am_cv_make_support_nested_variables = yes; then
4328 AM_V='$(V)'
4329 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4330else
4331 AM_V=$AM_DEFAULT_VERBOSITY
4332 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4333fi
cristy73bd4a52010-10-05 11:24:23 +00004334AM_BACKSLASH='\'
4335
cristy3ed852e2009-09-05 21:47:34 +00004336
cristy5ed9c6e2013-07-14 21:20:31 +00004337# versionning of library
cristy3ed852e2009-09-05 21:47:34 +00004338MAGICK_LIB_VERSION="0x"
4339if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4340 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4341fi
4342MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4343if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4344 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4345fi
4346MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4347if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4348 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4349fi
4350MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4351
4352
4353# Definition used to define MagickLibVersionText in version.h
4354MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4355
4356
4357# Definition used to define MagickLibVersionNumber in version.h
4358MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4359
4360
cristy5ed9c6e2013-07-14 21:20:31 +00004361MAGICKPP_LIB_VERSION="0x"
4362if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4363 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4364fi
4365MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4366if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4367 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4368fi
4369MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4370if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4371 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4372fi
4373MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4374
4375
4376# Definition used to define MagickLibVersionText in version.h
4377MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4378
4379
4380# Definition used to define MagickLibVersionNumber in version.h
4381MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4382
4383
4384
4385
cristy3ed852e2009-09-05 21:47:34 +00004386# Regenerate config.status if ChangeLog or version.sh is updated.
4387CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4388
4389
4390PERLMAINCC=$CC
4391
4392MAGICK_CFLAGS=''
4393MAGICK_CPPFLAGS=$CPPFLAGS_USER
4394MAGICK_PCFLAGS=$CPPFLAGS_USER
4395MAGICK_LDFLAGS=''
4396MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004397MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004398
4399#
4400# Evaluate shell variable equivalents to Makefile directory variables
4401#
4402if test "x$prefix" = xNONE; then
4403 prefix=$ac_default_prefix
4404fi
4405# Let make expand exec_prefix.
4406if test "x$exec_prefix" = xNONE; then
4407 exec_prefix='${prefix}'
4408fi
4409
4410#
4411eval "eval PREFIX_DIR=${prefix}"
4412
4413eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4414
4415eval "eval BIN_DIR=$bindir"
4416
4417eval "eval SBIN_DIR=$sbindir"
4418
4419eval "eval LIBEXEC_DIR=$libexecdir"
4420
4421eval "eval DATA_DIR=$datadir"
4422
cristy4e65ec22012-04-08 01:33:27 +00004423eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004424
cristy3ed852e2009-09-05 21:47:34 +00004425eval "eval SYSCONF_DIR=$sysconfdir"
4426
4427eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4428
4429eval "eval LOCALSTATE_DIR=$localstatedir"
4430
4431eval "eval LIB_DIR=$libdir"
4432
4433eval "eval INCLUDE_DIR=$includedir"
4434
4435eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4436
4437eval "eval INFO_DIR=$infodir"
4438
4439eval "eval MAN_DIR=$mandir"
4440
4441
4442# Get full paths to source and build directories
4443srcdirfull="`cd $srcdir && pwd`"
4444builddir="`pwd`"
4445
4446#
4447# Compute variables useful for running uninstalled software.
4448#
4449MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4450MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4451MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4452MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4453DIRSEP=':'
4454case "${build_os}" in
4455 mingw* )
4456 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4457 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4458 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4459 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4460 DIRSEP=';'
4461 ;;
4462esac
4463case "${host_os}" in
4464 mingw* )
4465 DIRSEP=';'
4466 ;;
4467esac
4468
4469
4470
4471
4472
4473
cristya0b81c32010-01-22 02:54:33 +00004474
4475#
4476# Enable OS features.
4477#
cristy73bd4a52010-10-05 11:24:23 +00004478DEPDIR="${am__leading_dot}deps"
4479
4480ac_config_commands="$ac_config_commands depfiles"
4481
4482
4483am_make=${MAKE-make}
4484cat > confinc << 'END'
4485am__doit:
4486 @echo this is the am__doit target
4487.PHONY: am__doit
4488END
4489# If we don't find an include directive, just comment out the code.
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4491$as_echo_n "checking for style of include used by $am_make... " >&6; }
4492am__include="#"
4493am__quote=
4494_am_result=none
4495# First try GNU make style include.
4496echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004497# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004498case `$am_make -s -f confmf 2> /dev/null` in #(
4499*the\ am__doit\ target*)
4500 am__include=include
4501 am__quote=
4502 _am_result=GNU
4503 ;;
4504esac
4505# Now try BSD make style include.
4506if test "$am__include" = "#"; then
4507 echo '.include "confinc"' > confmf
4508 case `$am_make -s -f confmf 2> /dev/null` in #(
4509 *the\ am__doit\ target*)
4510 am__include=.include
4511 am__quote="\""
4512 _am_result=BSD
4513 ;;
4514 esac
4515fi
4516
4517
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4519$as_echo "$_am_result" >&6; }
4520rm -f confinc confmf
4521
4522# Check whether --enable-dependency-tracking was given.
4523if test "${enable_dependency_tracking+set}" = set; then :
4524 enableval=$enable_dependency_tracking;
4525fi
4526
4527if test "x$enable_dependency_tracking" != xno; then
4528 am_depcomp="$ac_aux_dir/depcomp"
4529 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004530 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004531fi
4532 if test "x$enable_dependency_tracking" != xno; then
4533 AMDEP_TRUE=
4534 AMDEP_FALSE='#'
4535else
4536 AMDEP_TRUE='#'
4537 AMDEP_FALSE=
4538fi
4539
4540
cristy3ed852e2009-09-05 21:47:34 +00004541ac_ext=c
4542ac_cpp='$CPP $CPPFLAGS'
4543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546if test -n "$ac_tool_prefix"; then
4547 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4548set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004550$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004551if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004552 $as_echo_n "(cached) " >&6
4553else
4554 if test -n "$CC"; then
4555 ac_cv_prog_CC="$CC" # Let the user override the test.
4556else
4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004562 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004564 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004566 break 2
4567 fi
4568done
cristy8b350f62009-11-15 23:12:43 +00004569 done
cristy3ed852e2009-09-05 21:47:34 +00004570IFS=$as_save_IFS
4571
4572fi
4573fi
4574CC=$ac_cv_prog_CC
4575if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004577$as_echo "$CC" >&6; }
4578else
cristy8b350f62009-11-15 23:12:43 +00004579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004580$as_echo "no" >&6; }
4581fi
4582
4583
4584fi
4585if test -z "$ac_cv_prog_CC"; then
4586 ac_ct_CC=$CC
4587 # Extract the first word of "gcc", so it can be a program name with args.
4588set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004590$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004591if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004592 $as_echo_n "(cached) " >&6
4593else
4594 if test -n "$ac_ct_CC"; then
4595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4596else
4597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598for as_dir in $PATH
4599do
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004602 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004604 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004606 break 2
4607 fi
4608done
cristy8b350f62009-11-15 23:12:43 +00004609 done
cristy3ed852e2009-09-05 21:47:34 +00004610IFS=$as_save_IFS
4611
4612fi
4613fi
4614ac_ct_CC=$ac_cv_prog_ac_ct_CC
4615if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004617$as_echo "$ac_ct_CC" >&6; }
4618else
cristy8b350f62009-11-15 23:12:43 +00004619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004620$as_echo "no" >&6; }
4621fi
4622
4623 if test "x$ac_ct_CC" = x; then
4624 CC=""
4625 else
4626 case $cross_compiling:$ac_tool_warned in
4627yes:)
cristy8b350f62009-11-15 23:12:43 +00004628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4630ac_tool_warned=yes ;;
4631esac
4632 CC=$ac_ct_CC
4633 fi
4634else
4635 CC="$ac_cv_prog_CC"
4636fi
4637
4638if test -z "$CC"; then
4639 if test -n "$ac_tool_prefix"; then
4640 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4641set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004643$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004644if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004645 $as_echo_n "(cached) " >&6
4646else
4647 if test -n "$CC"; then
4648 ac_cv_prog_CC="$CC" # Let the user override the test.
4649else
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH
4652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004655 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004657 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004659 break 2
4660 fi
4661done
cristy8b350f62009-11-15 23:12:43 +00004662 done
cristy3ed852e2009-09-05 21:47:34 +00004663IFS=$as_save_IFS
4664
4665fi
4666fi
4667CC=$ac_cv_prog_CC
4668if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004670$as_echo "$CC" >&6; }
4671else
cristy8b350f62009-11-15 23:12:43 +00004672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004673$as_echo "no" >&6; }
4674fi
4675
4676
4677 fi
4678fi
4679if test -z "$CC"; then
4680 # Extract the first word of "cc", so it can be a program name with args.
4681set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004683$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004684if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004685 $as_echo_n "(cached) " >&6
4686else
4687 if test -n "$CC"; then
4688 ac_cv_prog_CC="$CC" # Let the user override the test.
4689else
4690 ac_prog_rejected=no
4691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692for as_dir in $PATH
4693do
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004696 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004698 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4699 ac_prog_rejected=yes
4700 continue
4701 fi
4702 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004704 break 2
4705 fi
4706done
cristy8b350f62009-11-15 23:12:43 +00004707 done
cristy3ed852e2009-09-05 21:47:34 +00004708IFS=$as_save_IFS
4709
4710if test $ac_prog_rejected = yes; then
4711 # We found a bogon in the path, so make sure we never use it.
4712 set dummy $ac_cv_prog_CC
4713 shift
4714 if test $# != 0; then
4715 # We chose a different compiler from the bogus one.
4716 # However, it has the same basename, so the bogon will be chosen
4717 # first if we set CC to just the basename; use the full file name.
4718 shift
4719 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4720 fi
4721fi
4722fi
4723fi
4724CC=$ac_cv_prog_CC
4725if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004727$as_echo "$CC" >&6; }
4728else
cristy8b350f62009-11-15 23:12:43 +00004729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004730$as_echo "no" >&6; }
4731fi
4732
4733
4734fi
4735if test -z "$CC"; then
4736 if test -n "$ac_tool_prefix"; then
4737 for ac_prog in cl.exe
4738 do
4739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4740set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004742$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004743if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004744 $as_echo_n "(cached) " >&6
4745else
4746 if test -n "$CC"; then
4747 ac_cv_prog_CC="$CC" # Let the user override the test.
4748else
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004754 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004756 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004758 break 2
4759 fi
4760done
cristy8b350f62009-11-15 23:12:43 +00004761 done
cristy3ed852e2009-09-05 21:47:34 +00004762IFS=$as_save_IFS
4763
4764fi
4765fi
4766CC=$ac_cv_prog_CC
4767if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004769$as_echo "$CC" >&6; }
4770else
cristy8b350f62009-11-15 23:12:43 +00004771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004772$as_echo "no" >&6; }
4773fi
4774
4775
4776 test -n "$CC" && break
4777 done
4778fi
4779if test -z "$CC"; then
4780 ac_ct_CC=$CC
4781 for ac_prog in cl.exe
4782do
4783 # Extract the first word of "$ac_prog", so it can be a program name with args.
4784set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004786$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004787if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004788 $as_echo_n "(cached) " >&6
4789else
4790 if test -n "$ac_ct_CC"; then
4791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4792else
4793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794for as_dir in $PATH
4795do
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004800 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004802 break 2
4803 fi
4804done
cristy8b350f62009-11-15 23:12:43 +00004805 done
cristy3ed852e2009-09-05 21:47:34 +00004806IFS=$as_save_IFS
4807
4808fi
4809fi
4810ac_ct_CC=$ac_cv_prog_ac_ct_CC
4811if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004813$as_echo "$ac_ct_CC" >&6; }
4814else
cristy8b350f62009-11-15 23:12:43 +00004815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004816$as_echo "no" >&6; }
4817fi
4818
4819
4820 test -n "$ac_ct_CC" && break
4821done
4822
4823 if test "x$ac_ct_CC" = x; then
4824 CC=""
4825 else
4826 case $cross_compiling:$ac_tool_warned in
4827yes:)
cristy8b350f62009-11-15 23:12:43 +00004828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4830ac_tool_warned=yes ;;
4831esac
4832 CC=$ac_ct_CC
4833 fi
4834fi
4835
4836fi
4837
4838
cristy8b350f62009-11-15 23:12:43 +00004839test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004841as_fn_error $? "no acceptable C compiler found in \$PATH
4842See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004843
4844# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004845$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004846set X $ac_compile
4847ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004848for ac_option in --version -v -V -qversion; do
4849 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004850case "(($ac_try" in
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4853esac
cristy8b350f62009-11-15 23:12:43 +00004854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4855$as_echo "$ac_try_echo"; } >&5
4856 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004857 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004858 if test -s conftest.err; then
4859 sed '10a\
4860... rest of stderr output deleted ...
4861 10q' conftest.err >conftest.er1
4862 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004863 fi
cristycd4c5312009-11-22 01:19:08 +00004864 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4866 test $ac_status = 0; }
4867done
cristy3ed852e2009-09-05 21:47:34 +00004868
cristy8b350f62009-11-15 23:12:43 +00004869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004870/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004871
cristy3ed852e2009-09-05 21:47:34 +00004872int
4873main ()
4874{
4875
4876 ;
4877 return 0;
4878}
4879_ACEOF
4880ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004881ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004882# Try to create an executable without -o first, disregard a.out.
4883# It will help us diagnose broken compilers, and finding out an intuition
4884# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4886$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004887ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4888
4889# The possible output files:
4890ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4891
4892ac_rmfiles=
4893for ac_file in $ac_files
4894do
4895 case $ac_file in
4896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4897 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4898 esac
4899done
4900rm -f $ac_rmfiles
4901
cristy8b350f62009-11-15 23:12:43 +00004902if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004903case "(($ac_try" in
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4906esac
cristy8b350f62009-11-15 23:12:43 +00004907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4908$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004909 (eval "$ac_link_default") 2>&5
4910 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4912 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004913 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4914# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4915# in a Makefile. We should not override ac_cv_exeext if it was cached,
4916# so that the user can short-circuit this test for compilers unknown to
4917# Autoconf.
4918for ac_file in $ac_files ''
4919do
4920 test -f "$ac_file" || continue
4921 case $ac_file in
4922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4923 ;;
4924 [ab].out )
4925 # We found the default executable, but exeext='' is most
4926 # certainly right.
4927 break;;
4928 *.* )
cristy8b350f62009-11-15 23:12:43 +00004929 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004930 then :; else
4931 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4932 fi
4933 # We set ac_cv_exeext here because the later test for it is not
4934 # safe: cross compilers may not add the suffix if given an `-o'
4935 # argument, so we may need to know it at that point already.
4936 # Even if this section looks crufty: it has the advantage of
4937 # actually working.
4938 break;;
4939 * )
4940 break;;
4941 esac
4942done
4943test "$ac_cv_exeext" = no && ac_cv_exeext=
4944
4945else
4946 ac_file=''
4947fi
cristy8b350f62009-11-15 23:12:43 +00004948if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950$as_echo "no" >&6; }
4951$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004952sed 's/^/| /' conftest.$ac_ext >&5
4953
cristy8b350f62009-11-15 23:12:43 +00004954{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004956as_fn_error 77 "C compiler cannot create executables
4957See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004958else
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4960$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004961fi
cristycd4c5312009-11-22 01:19:08 +00004962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4963$as_echo_n "checking for C compiler default output file name... " >&6; }
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4965$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004966ac_exeext=$ac_cv_exeext
4967
cristycd4c5312009-11-22 01:19:08 +00004968rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004969ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004971$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004972if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004973case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976esac
cristy8b350f62009-11-15 23:12:43 +00004977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4978$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004979 (eval "$ac_link") 2>&5
4980 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4982 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004983 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4984# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4985# work properly (i.e., refer to `conftest.exe'), while it won't with
4986# `rm'.
4987for ac_file in conftest.exe conftest conftest.*; do
4988 test -f "$ac_file" || continue
4989 case $ac_file in
4990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4991 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4992 break;;
4993 * ) break;;
4994 esac
4995done
4996else
cristy8b350f62009-11-15 23:12:43 +00004997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004999as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5000See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005001fi
cristycd4c5312009-11-22 01:19:08 +00005002rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005004$as_echo "$ac_cv_exeext" >&6; }
5005
5006rm -f conftest.$ac_ext
5007EXEEXT=$ac_cv_exeext
5008ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010/* end confdefs.h. */
5011#include <stdio.h>
5012int
5013main ()
5014{
5015FILE *f = fopen ("conftest.out", "w");
5016 return ferror (f) || fclose (f) != 0;
5017
5018 ;
5019 return 0;
5020}
5021_ACEOF
5022ac_clean_files="$ac_clean_files conftest.out"
5023# Check that the compiler produces executables we can run. If not, either
5024# the compiler is broken, or we cross compile.
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5026$as_echo_n "checking whether we are cross compiling... " >&6; }
5027if test "$cross_compiling" != yes; then
5028 { { ac_try="$ac_link"
5029case "(($ac_try" in
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5032esac
5033eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5034$as_echo "$ac_try_echo"; } >&5
5035 (eval "$ac_link") 2>&5
5036 ac_status=$?
5037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5038 test $ac_status = 0; }
5039 if { ac_try='./conftest$ac_cv_exeext'
5040 { { case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043esac
5044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5045$as_echo "$ac_try_echo"; } >&5
5046 (eval "$ac_try") 2>&5
5047 ac_status=$?
5048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5049 test $ac_status = 0; }; }; then
5050 cross_compiling=no
5051 else
5052 if test "$cross_compiling" = maybe; then
5053 cross_compiling=yes
5054 else
5055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005057as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005058If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005059See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005060 fi
5061 fi
5062fi
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5064$as_echo "$cross_compiling" >&6; }
5065
5066rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5067ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005069$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005070if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005071 $as_echo_n "(cached) " >&6
5072else
cristy8b350f62009-11-15 23:12:43 +00005073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005074/* end confdefs.h. */
5075
5076int
5077main ()
5078{
5079
5080 ;
5081 return 0;
5082}
5083_ACEOF
5084rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005085if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005086case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089esac
cristy8b350f62009-11-15 23:12:43 +00005090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5091$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005092 (eval "$ac_compile") 2>&5
5093 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5095 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005096 for ac_file in conftest.o conftest.obj conftest.*; do
5097 test -f "$ac_file" || continue;
5098 case $ac_file in
5099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5100 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5101 break;;
5102 esac
5103done
5104else
5105 $as_echo "$as_me: failed program was:" >&5
5106sed 's/^/| /' conftest.$ac_ext >&5
5107
cristy8b350f62009-11-15 23:12:43 +00005108{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005110as_fn_error $? "cannot compute suffix of object files: cannot compile
5111See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005112fi
cristy3ed852e2009-09-05 21:47:34 +00005113rm -f conftest.$ac_cv_objext conftest.$ac_ext
5114fi
cristy8b350f62009-11-15 23:12:43 +00005115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005116$as_echo "$ac_cv_objext" >&6; }
5117OBJEXT=$ac_cv_objext
5118ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005120$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005121if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005122 $as_echo_n "(cached) " >&6
5123else
cristy8b350f62009-11-15 23:12:43 +00005124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005125/* end confdefs.h. */
5126
5127int
5128main ()
5129{
5130#ifndef __GNUC__
5131 choke me
5132#endif
5133
5134 ;
5135 return 0;
5136}
5137_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005138if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005139 ac_compiler_gnu=yes
5140else
cristy8b350f62009-11-15 23:12:43 +00005141 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005142fi
cristy3ed852e2009-09-05 21:47:34 +00005143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144ac_cv_c_compiler_gnu=$ac_compiler_gnu
5145
5146fi
cristy8b350f62009-11-15 23:12:43 +00005147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005148$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5149if test $ac_compiler_gnu = yes; then
5150 GCC=yes
5151else
5152 GCC=
5153fi
5154ac_test_CFLAGS=${CFLAGS+set}
5155ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005157$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005158if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005159 $as_echo_n "(cached) " >&6
5160else
5161 ac_save_c_werror_flag=$ac_c_werror_flag
5162 ac_c_werror_flag=yes
5163 ac_cv_prog_cc_g=no
5164 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005166/* end confdefs.h. */
5167
5168int
5169main ()
5170{
5171
5172 ;
5173 return 0;
5174}
5175_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005176if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005177 ac_cv_prog_cc_g=yes
5178else
cristy8b350f62009-11-15 23:12:43 +00005179 CFLAGS=""
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005181/* end confdefs.h. */
5182
5183int
5184main ()
5185{
5186
5187 ;
5188 return 0;
5189}
5190_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005191if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005192
cristy8b350f62009-11-15 23:12:43 +00005193else
5194 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005195 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005197/* end confdefs.h. */
5198
5199int
5200main ()
5201{
5202
5203 ;
5204 return 0;
5205}
5206_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005207if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005208 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005209fi
cristy3ed852e2009-09-05 21:47:34 +00005210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211fi
cristy3ed852e2009-09-05 21:47:34 +00005212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213fi
cristy3ed852e2009-09-05 21:47:34 +00005214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5215 ac_c_werror_flag=$ac_save_c_werror_flag
5216fi
cristy8b350f62009-11-15 23:12:43 +00005217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005218$as_echo "$ac_cv_prog_cc_g" >&6; }
5219if test "$ac_test_CFLAGS" = set; then
5220 CFLAGS=$ac_save_CFLAGS
5221elif test $ac_cv_prog_cc_g = yes; then
5222 if test "$GCC" = yes; then
5223 CFLAGS="-g -O2"
5224 else
5225 CFLAGS="-g"
5226 fi
5227else
5228 if test "$GCC" = yes; then
5229 CFLAGS="-O2"
5230 else
5231 CFLAGS=
5232 fi
5233fi
cristy8b350f62009-11-15 23:12:43 +00005234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005235$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005236if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005237 $as_echo_n "(cached) " >&6
5238else
5239 ac_cv_prog_cc_c89=no
5240ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005242/* end confdefs.h. */
5243#include <stdarg.h>
5244#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005245struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005246/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5247struct buf { int x; };
5248FILE * (*rcsopen) (struct buf *, struct stat *, int);
5249static char *e (p, i)
5250 char **p;
5251 int i;
5252{
5253 return p[i];
5254}
5255static char *f (char * (*g) (char **, int), char **p, ...)
5256{
5257 char *s;
5258 va_list v;
5259 va_start (v,p);
5260 s = g (p, va_arg (v,int));
5261 va_end (v);
5262 return s;
5263}
5264
5265/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5266 function prototypes and stuff, but not '\xHH' hex character constants.
5267 These don't provoke an error unfortunately, instead are silently treated
5268 as 'x'. The following induces an error, until -std is added to get
5269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5270 array size at least. It's necessary to write '\x00'==0 to get something
5271 that's true only with -std. */
5272int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5273
5274/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5275 inside strings and character constants. */
5276#define FOO(x) 'x'
5277int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5278
5279int test (int i, double x);
5280struct s1 {int (*f) (int a);};
5281struct s2 {int (*f) (double a);};
5282int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5283int argc;
5284char **argv;
5285int
5286main ()
5287{
5288return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5289 ;
5290 return 0;
5291}
5292_ACEOF
5293for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5295do
5296 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005297 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005298 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005299fi
cristy3ed852e2009-09-05 21:47:34 +00005300rm -f core conftest.err conftest.$ac_objext
5301 test "x$ac_cv_prog_cc_c89" != "xno" && break
5302done
5303rm -f conftest.$ac_ext
5304CC=$ac_save_CC
5305
5306fi
5307# AC_CACHE_VAL
5308case "x$ac_cv_prog_cc_c89" in
5309 x)
cristy8b350f62009-11-15 23:12:43 +00005310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005311$as_echo "none needed" >&6; } ;;
5312 xno)
cristy8b350f62009-11-15 23:12:43 +00005313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005314$as_echo "unsupported" >&6; } ;;
5315 *)
5316 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005318$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5319esac
cristy8b350f62009-11-15 23:12:43 +00005320if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005321
cristy8b350f62009-11-15 23:12:43 +00005322fi
cristy3ed852e2009-09-05 21:47:34 +00005323
5324ac_ext=c
5325ac_cpp='$CPP $CPPFLAGS'
5326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5328ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005329
cristya5bda012013-11-03 18:05:38 +00005330ac_ext=c
5331ac_cpp='$CPP $CPPFLAGS'
5332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334ac_compiler_gnu=$ac_cv_c_compiler_gnu
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5336$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5337if ${am_cv_prog_cc_c_o+:} false; then :
5338 $as_echo_n "(cached) " >&6
5339else
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341/* end confdefs.h. */
5342
5343int
5344main ()
5345{
5346
5347 ;
5348 return 0;
5349}
5350_ACEOF
5351 # Make sure it works both with $CC and with simple cc.
5352 # Following AC_PROG_CC_C_O, we do the test twice because some
5353 # compilers refuse to overwrite an existing .o file with -o,
5354 # though they will create one.
5355 am_cv_prog_cc_c_o=yes
5356 for am_i in 1 2; do
5357 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5358 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5359 ac_status=$?
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } \
5362 && test -f conftest2.$ac_objext; then
5363 : OK
5364 else
5365 am_cv_prog_cc_c_o=no
5366 break
5367 fi
5368 done
5369 rm -f core conftest*
5370 unset am_i
5371fi
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5373$as_echo "$am_cv_prog_cc_c_o" >&6; }
5374if test "$am_cv_prog_cc_c_o" != yes; then
5375 # Losing compiler, so override with the script.
5376 # FIXME: It is wrong to rewrite CC.
5377 # But if we don't then we get into trouble of one sort or another.
5378 # A longer-term fix would be to have automake use am__CC in this case,
5379 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5380 CC="$am_aux_dir/compile $CC"
5381fi
5382ac_ext=c
5383ac_cpp='$CPP $CPPFLAGS'
5384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387
5388
cristy73bd4a52010-10-05 11:24:23 +00005389depcc="$CC" am_compiler_list=
5390
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5392$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005393if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005394 $as_echo_n "(cached) " >&6
5395else
5396 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5397 # We make a subdir and do the tests there. Otherwise we can end up
5398 # making bogus files that we don't know about and never remove. For
5399 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005400 # making a dummy file named 'D' -- because '-MD' means "put the output
5401 # in D".
cristy7247bba2012-02-05 16:37:27 +00005402 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005403 mkdir conftest.dir
5404 # Copy depcomp to subdir because otherwise we won't find it if we're
5405 # using a relative directory.
5406 cp "$am_depcomp" conftest.dir
5407 cd conftest.dir
5408 # We will build objects and dependencies in a subdirectory because
5409 # it helps to detect inapplicable dependency modes. For instance
5410 # both Tru64's cc and ICC support -MD to output dependencies as a
5411 # side effect of compilation, but ICC will put the dependencies in
5412 # the current directory while Tru64 will put them in the object
5413 # directory.
5414 mkdir sub
5415
5416 am_cv_CC_dependencies_compiler_type=none
5417 if test "$am_compiler_list" = ""; then
5418 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5419 fi
5420 am__universal=false
5421 case " $depcc " in #(
5422 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5423 esac
5424
5425 for depmode in $am_compiler_list; do
5426 # Setup a source with many dependencies, because some compilers
5427 # like to wrap large dependency lists on column 80 (with \), and
5428 # we should not choose a depcomp mode which is confused by this.
5429 #
5430 # We need to recreate these files for each test, as the compiler may
5431 # overwrite some of them when testing with obscure command lines.
5432 # This happens at least with the AIX C compiler.
5433 : > sub/conftest.c
5434 for i in 1 2 3 4 5 6; do
5435 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005436 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5437 # Solaris 10 /bin/sh.
5438 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005439 done
5440 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5441
cristyc0890a62012-07-19 00:18:20 +00005442 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005443 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005444 # handle '-M -o', and we need to detect this. Also, some Intel
5445 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005446 am__obj=sub/conftest.${OBJEXT-o}
5447 am__minus_obj="-o $am__obj"
5448 case $depmode in
5449 gcc)
5450 # This depmode causes a compiler race in universal mode.
5451 test "$am__universal" = false || continue
5452 ;;
5453 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005454 # After this tag, mechanisms are not by side-effect, so they'll
5455 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005456 if test "x$enable_dependency_tracking" = xyes; then
5457 continue
5458 else
5459 break
5460 fi
5461 ;;
cristy7247bba2012-02-05 16:37:27 +00005462 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005463 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005464 # not run yet. These depmodes are late enough in the game, and
5465 # so weak that their functioning should not be impacted.
5466 am__obj=conftest.${OBJEXT-o}
5467 am__minus_obj=
5468 ;;
5469 none) break ;;
5470 esac
5471 if depmode=$depmode \
5472 source=sub/conftest.c object=$am__obj \
5473 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5474 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5475 >/dev/null 2>conftest.err &&
5476 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5477 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5478 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5479 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5480 # icc doesn't choke on unknown options, it will just issue warnings
5481 # or remarks (even with -Werror). So we grep stderr for any message
5482 # that says an option was ignored or not supported.
5483 # When given -MP, icc 7.0 and 7.1 complain thusly:
5484 # icc: Command line warning: ignoring option '-M'; no argument required
5485 # The diagnosis changed in icc 8.0:
5486 # icc: Command line remark: option '-MP' not supported
5487 if (grep 'ignoring option' conftest.err ||
5488 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5489 am_cv_CC_dependencies_compiler_type=$depmode
5490 break
5491 fi
5492 fi
5493 done
5494
5495 cd ..
5496 rm -rf conftest.dir
5497else
5498 am_cv_CC_dependencies_compiler_type=none
5499fi
5500
5501fi
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5503$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5504CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5505
5506 if
5507 test "x$enable_dependency_tracking" != xno \
5508 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5509 am__fastdepCC_TRUE=
5510 am__fastdepCC_FALSE='#'
5511else
5512 am__fastdepCC_TRUE='#'
5513 am__fastdepCC_FALSE=
5514fi
5515
5516
cristy3ed852e2009-09-05 21:47:34 +00005517
cristya0b81c32010-01-22 02:54:33 +00005518ac_ext=c
5519ac_cpp='$CPP $CPPFLAGS'
5520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5522ac_compiler_gnu=$ac_cv_c_compiler_gnu
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5524$as_echo_n "checking how to run the C preprocessor... " >&6; }
5525# On Suns, sometimes $CPP names a directory.
5526if test -n "$CPP" && test -d "$CPP"; then
5527 CPP=
5528fi
5529if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005530 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005531 $as_echo_n "(cached) " >&6
5532else
5533 # Double quotes because CPP needs to be expanded
5534 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5535 do
5536 ac_preproc_ok=false
5537for ac_c_preproc_warn_flag in '' yes
5538do
5539 # Use a header file that comes with gcc, so configuring glibc
5540 # with a fresh cross-compiler works.
5541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5542 # <limits.h> exists even on freestanding compilers.
5543 # On the NeXT, cc -E runs the code through the compiler's parser,
5544 # not just through cpp. "Syntax error" is here to catch this case.
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546/* end confdefs.h. */
5547#ifdef __STDC__
5548# include <limits.h>
5549#else
5550# include <assert.h>
5551#endif
5552 Syntax error
5553_ACEOF
5554if ac_fn_c_try_cpp "$LINENO"; then :
5555
5556else
5557 # Broken: fails on valid input.
5558continue
5559fi
cristyda16f162011-02-19 23:52:17 +00005560rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005561
5562 # OK, works on sane cases. Now check whether nonexistent headers
5563 # can be detected and how.
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565/* end confdefs.h. */
5566#include <ac_nonexistent.h>
5567_ACEOF
5568if ac_fn_c_try_cpp "$LINENO"; then :
5569 # Broken: success on invalid input.
5570continue
5571else
5572 # Passes both tests.
5573ac_preproc_ok=:
5574break
5575fi
cristyda16f162011-02-19 23:52:17 +00005576rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005577
5578done
5579# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005580rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005581if $ac_preproc_ok; then :
5582 break
5583fi
5584
5585 done
5586 ac_cv_prog_CPP=$CPP
5587
5588fi
5589 CPP=$ac_cv_prog_CPP
5590else
5591 ac_cv_prog_CPP=$CPP
5592fi
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5594$as_echo "$CPP" >&6; }
5595ac_preproc_ok=false
5596for ac_c_preproc_warn_flag in '' yes
5597do
5598 # Use a header file that comes with gcc, so configuring glibc
5599 # with a fresh cross-compiler works.
5600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5601 # <limits.h> exists even on freestanding compilers.
5602 # On the NeXT, cc -E runs the code through the compiler's parser,
5603 # not just through cpp. "Syntax error" is here to catch this case.
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605/* end confdefs.h. */
5606#ifdef __STDC__
5607# include <limits.h>
5608#else
5609# include <assert.h>
5610#endif
5611 Syntax error
5612_ACEOF
5613if ac_fn_c_try_cpp "$LINENO"; then :
5614
5615else
5616 # Broken: fails on valid input.
5617continue
5618fi
cristyda16f162011-02-19 23:52:17 +00005619rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005620
5621 # OK, works on sane cases. Now check whether nonexistent headers
5622 # can be detected and how.
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624/* end confdefs.h. */
5625#include <ac_nonexistent.h>
5626_ACEOF
5627if ac_fn_c_try_cpp "$LINENO"; then :
5628 # Broken: success on invalid input.
5629continue
5630else
5631 # Passes both tests.
5632ac_preproc_ok=:
5633break
5634fi
cristyda16f162011-02-19 23:52:17 +00005635rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005636
5637done
5638# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005639rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005640if $ac_preproc_ok; then :
5641
5642else
5643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005645as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5646See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005647fi
5648
5649ac_ext=c
5650ac_cpp='$CPP $CPPFLAGS'
5651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653ac_compiler_gnu=$ac_cv_c_compiler_gnu
5654
5655
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5657$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005658if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005659 $as_echo_n "(cached) " >&6
5660else
5661 if test -z "$GREP"; then
5662 ac_path_GREP_found=false
5663 # Loop through the user's path and test for each of PROGNAME-LIST
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5666do
5667 IFS=$as_save_IFS
5668 test -z "$as_dir" && as_dir=.
5669 for ac_prog in grep ggrep; do
5670 for ac_exec_ext in '' $ac_executable_extensions; do
5671 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005672 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005673# Check for GNU ac_path_GREP and select it if it is found.
5674 # Check for GNU $ac_path_GREP
5675case `"$ac_path_GREP" --version 2>&1` in
5676*GNU*)
5677 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5678*)
5679 ac_count=0
5680 $as_echo_n 0123456789 >"conftest.in"
5681 while :
5682 do
5683 cat "conftest.in" "conftest.in" >"conftest.tmp"
5684 mv "conftest.tmp" "conftest.in"
5685 cp "conftest.in" "conftest.nl"
5686 $as_echo 'GREP' >> "conftest.nl"
5687 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5689 as_fn_arith $ac_count + 1 && ac_count=$as_val
5690 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5691 # Best one so far, save it but keep looking for a better one
5692 ac_cv_path_GREP="$ac_path_GREP"
5693 ac_path_GREP_max=$ac_count
5694 fi
5695 # 10*(2^10) chars as input seems more than enough
5696 test $ac_count -gt 10 && break
5697 done
5698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5699esac
5700
5701 $ac_path_GREP_found && break 3
5702 done
5703 done
5704 done
5705IFS=$as_save_IFS
5706 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005707 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005708 fi
5709else
5710 ac_cv_path_GREP=$GREP
5711fi
5712
5713fi
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5715$as_echo "$ac_cv_path_GREP" >&6; }
5716 GREP="$ac_cv_path_GREP"
5717
5718
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5720$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005721if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005722 $as_echo_n "(cached) " >&6
5723else
5724 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5725 then ac_cv_path_EGREP="$GREP -E"
5726 else
5727 if test -z "$EGREP"; then
5728 ac_path_EGREP_found=false
5729 # Loop through the user's path and test for each of PROGNAME-LIST
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5732do
5733 IFS=$as_save_IFS
5734 test -z "$as_dir" && as_dir=.
5735 for ac_prog in egrep; do
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005738 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005739# Check for GNU ac_path_EGREP and select it if it is found.
5740 # Check for GNU $ac_path_EGREP
5741case `"$ac_path_EGREP" --version 2>&1` in
5742*GNU*)
5743 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5744*)
5745 ac_count=0
5746 $as_echo_n 0123456789 >"conftest.in"
5747 while :
5748 do
5749 cat "conftest.in" "conftest.in" >"conftest.tmp"
5750 mv "conftest.tmp" "conftest.in"
5751 cp "conftest.in" "conftest.nl"
5752 $as_echo 'EGREP' >> "conftest.nl"
5753 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5755 as_fn_arith $ac_count + 1 && ac_count=$as_val
5756 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5757 # Best one so far, save it but keep looking for a better one
5758 ac_cv_path_EGREP="$ac_path_EGREP"
5759 ac_path_EGREP_max=$ac_count
5760 fi
5761 # 10*(2^10) chars as input seems more than enough
5762 test $ac_count -gt 10 && break
5763 done
5764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5765esac
5766
5767 $ac_path_EGREP_found && break 3
5768 done
5769 done
5770 done
5771IFS=$as_save_IFS
5772 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005773 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005774 fi
5775else
5776 ac_cv_path_EGREP=$EGREP
5777fi
5778
5779 fi
5780fi
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5782$as_echo "$ac_cv_path_EGREP" >&6; }
5783 EGREP="$ac_cv_path_EGREP"
5784
5785
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5787$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005788if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005789 $as_echo_n "(cached) " >&6
5790else
5791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792/* end confdefs.h. */
5793#include <stdlib.h>
5794#include <stdarg.h>
5795#include <string.h>
5796#include <float.h>
5797
5798int
5799main ()
5800{
5801
5802 ;
5803 return 0;
5804}
5805_ACEOF
5806if ac_fn_c_try_compile "$LINENO"; then :
5807 ac_cv_header_stdc=yes
5808else
5809 ac_cv_header_stdc=no
5810fi
5811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812
5813if test $ac_cv_header_stdc = yes; then
5814 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816/* end confdefs.h. */
5817#include <string.h>
5818
5819_ACEOF
5820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5821 $EGREP "memchr" >/dev/null 2>&1; then :
5822
5823else
5824 ac_cv_header_stdc=no
5825fi
5826rm -f conftest*
5827
5828fi
5829
5830if test $ac_cv_header_stdc = yes; then
5831 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833/* end confdefs.h. */
5834#include <stdlib.h>
5835
5836_ACEOF
5837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5838 $EGREP "free" >/dev/null 2>&1; then :
5839
5840else
5841 ac_cv_header_stdc=no
5842fi
5843rm -f conftest*
5844
5845fi
5846
5847if test $ac_cv_header_stdc = yes; then
5848 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5849 if test "$cross_compiling" = yes; then :
5850 :
5851else
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853/* end confdefs.h. */
5854#include <ctype.h>
5855#include <stdlib.h>
5856#if ((' ' & 0x0FF) == 0x020)
5857# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5858# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5859#else
5860# define ISLOWER(c) \
5861 (('a' <= (c) && (c) <= 'i') \
5862 || ('j' <= (c) && (c) <= 'r') \
5863 || ('s' <= (c) && (c) <= 'z'))
5864# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5865#endif
5866
5867#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5868int
5869main ()
5870{
5871 int i;
5872 for (i = 0; i < 256; i++)
5873 if (XOR (islower (i), ISLOWER (i))
5874 || toupper (i) != TOUPPER (i))
5875 return 2;
5876 return 0;
5877}
5878_ACEOF
5879if ac_fn_c_try_run "$LINENO"; then :
5880
5881else
5882 ac_cv_header_stdc=no
5883fi
5884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5885 conftest.$ac_objext conftest.beam conftest.$ac_ext
5886fi
5887
5888fi
5889fi
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5891$as_echo "$ac_cv_header_stdc" >&6; }
5892if test $ac_cv_header_stdc = yes; then
5893
5894$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5895
5896fi
5897
5898# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5899for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5900 inttypes.h stdint.h unistd.h
5901do :
5902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5903ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5904"
cristy98dddb52010-11-04 00:30:15 +00005905if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005906 cat >>confdefs.h <<_ACEOF
5907#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5908_ACEOF
5909
5910fi
5911
5912done
5913
5914
5915
5916 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 +00005917if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005918 MINIX=yes
5919else
5920 MINIX=
5921fi
5922
5923
5924 if test "$MINIX" = yes; then
5925
5926$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5927
5928
5929$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5930
5931
5932$as_echo "#define _MINIX 1" >>confdefs.h
5933
5934 fi
5935
5936
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5938$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005939if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005940 $as_echo_n "(cached) " >&6
5941else
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943/* end confdefs.h. */
5944
cristy14fefe52012-05-21 00:59:18 +00005945# define __EXTENSIONS__ 1
5946 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005947int
5948main ()
5949{
5950
5951 ;
5952 return 0;
5953}
5954_ACEOF
5955if ac_fn_c_try_compile "$LINENO"; then :
5956 ac_cv_safe_to_define___extensions__=yes
5957else
5958 ac_cv_safe_to_define___extensions__=no
5959fi
5960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961fi
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5963$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5964 test $ac_cv_safe_to_define___extensions__ = yes &&
5965 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5966
5967 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5968
5969 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5970
5971 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5972
5973 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5974
5975
5976
5977# Check for programs
5978ac_ext=c
5979ac_cpp='$CPP $CPPFLAGS'
5980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5982ac_compiler_gnu=$ac_cv_c_compiler_gnu
5983if test -n "$ac_tool_prefix"; then
5984 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5985set dummy ${ac_tool_prefix}gcc; ac_word=$2
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005988if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005989 $as_echo_n "(cached) " >&6
5990else
5991 if test -n "$CC"; then
5992 ac_cv_prog_CC="$CC" # Let the user override the test.
5993else
5994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995for as_dir in $PATH
5996do
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006001 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6004 fi
6005done
6006 done
6007IFS=$as_save_IFS
6008
6009fi
6010fi
6011CC=$ac_cv_prog_CC
6012if test -n "$CC"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6014$as_echo "$CC" >&6; }
6015else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017$as_echo "no" >&6; }
6018fi
6019
6020
6021fi
6022if test -z "$ac_cv_prog_CC"; then
6023 ac_ct_CC=$CC
6024 # Extract the first word of "gcc", so it can be a program name with args.
6025set dummy gcc; ac_word=$2
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006028if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006029 $as_echo_n "(cached) " >&6
6030else
6031 if test -n "$ac_ct_CC"; then
6032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6033else
6034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035for as_dir in $PATH
6036do
6037 IFS=$as_save_IFS
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006041 ac_cv_prog_ac_ct_CC="gcc"
6042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 break 2
6044 fi
6045done
6046 done
6047IFS=$as_save_IFS
6048
6049fi
6050fi
6051ac_ct_CC=$ac_cv_prog_ac_ct_CC
6052if test -n "$ac_ct_CC"; then
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6054$as_echo "$ac_ct_CC" >&6; }
6055else
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057$as_echo "no" >&6; }
6058fi
6059
6060 if test "x$ac_ct_CC" = x; then
6061 CC=""
6062 else
6063 case $cross_compiling:$ac_tool_warned in
6064yes:)
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6067ac_tool_warned=yes ;;
6068esac
6069 CC=$ac_ct_CC
6070 fi
6071else
6072 CC="$ac_cv_prog_CC"
6073fi
6074
6075if test -z "$CC"; then
6076 if test -n "$ac_tool_prefix"; then
6077 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6078set dummy ${ac_tool_prefix}cc; ac_word=$2
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006081if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006082 $as_echo_n "(cached) " >&6
6083else
6084 if test -n "$CC"; then
6085 ac_cv_prog_CC="$CC" # Let the user override the test.
6086else
6087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088for as_dir in $PATH
6089do
6090 IFS=$as_save_IFS
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006094 ac_cv_prog_CC="${ac_tool_prefix}cc"
6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 break 2
6097 fi
6098done
6099 done
6100IFS=$as_save_IFS
6101
6102fi
6103fi
6104CC=$ac_cv_prog_CC
6105if test -n "$CC"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6107$as_echo "$CC" >&6; }
6108else
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110$as_echo "no" >&6; }
6111fi
6112
6113
6114 fi
6115fi
6116if test -z "$CC"; then
6117 # Extract the first word of "cc", so it can be a program name with args.
6118set dummy cc; ac_word=$2
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006121if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006122 $as_echo_n "(cached) " >&6
6123else
6124 if test -n "$CC"; then
6125 ac_cv_prog_CC="$CC" # Let the user override the test.
6126else
6127 ac_prog_rejected=no
6128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129for as_dir in $PATH
6130do
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006135 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6136 ac_prog_rejected=yes
6137 continue
6138 fi
6139 ac_cv_prog_CC="cc"
6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 break 2
6142 fi
6143done
6144 done
6145IFS=$as_save_IFS
6146
6147if test $ac_prog_rejected = yes; then
6148 # We found a bogon in the path, so make sure we never use it.
6149 set dummy $ac_cv_prog_CC
6150 shift
6151 if test $# != 0; then
6152 # We chose a different compiler from the bogus one.
6153 # However, it has the same basename, so the bogon will be chosen
6154 # first if we set CC to just the basename; use the full file name.
6155 shift
6156 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6157 fi
6158fi
6159fi
6160fi
6161CC=$ac_cv_prog_CC
6162if test -n "$CC"; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6164$as_echo "$CC" >&6; }
6165else
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167$as_echo "no" >&6; }
6168fi
6169
6170
6171fi
6172if test -z "$CC"; then
6173 if test -n "$ac_tool_prefix"; then
6174 for ac_prog in cl.exe
6175 do
6176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6177set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006180if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006181 $as_echo_n "(cached) " >&6
6182else
6183 if test -n "$CC"; then
6184 ac_cv_prog_CC="$CC" # Let the user override the test.
6185else
6186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006193 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 break 2
6196 fi
6197done
6198 done
6199IFS=$as_save_IFS
6200
6201fi
6202fi
6203CC=$ac_cv_prog_CC
6204if test -n "$CC"; then
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6206$as_echo "$CC" >&6; }
6207else
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209$as_echo "no" >&6; }
6210fi
6211
6212
6213 test -n "$CC" && break
6214 done
6215fi
6216if test -z "$CC"; then
6217 ac_ct_CC=$CC
6218 for ac_prog in cl.exe
6219do
6220 # Extract the first word of "$ac_prog", so it can be a program name with args.
6221set dummy $ac_prog; ac_word=$2
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6223$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006224if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006225 $as_echo_n "(cached) " >&6
6226else
6227 if test -n "$ac_ct_CC"; then
6228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6229else
6230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231for as_dir in $PATH
6232do
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006237 ac_cv_prog_ac_ct_CC="$ac_prog"
6238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 break 2
6240 fi
6241done
6242 done
6243IFS=$as_save_IFS
6244
6245fi
6246fi
6247ac_ct_CC=$ac_cv_prog_ac_ct_CC
6248if test -n "$ac_ct_CC"; then
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6250$as_echo "$ac_ct_CC" >&6; }
6251else
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253$as_echo "no" >&6; }
6254fi
6255
6256
6257 test -n "$ac_ct_CC" && break
6258done
6259
6260 if test "x$ac_ct_CC" = x; then
6261 CC=""
6262 else
6263 case $cross_compiling:$ac_tool_warned in
6264yes:)
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267ac_tool_warned=yes ;;
6268esac
6269 CC=$ac_ct_CC
6270 fi
6271fi
6272
6273fi
6274
6275
6276test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006278as_fn_error $? "no acceptable C compiler found in \$PATH
6279See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006280
6281# Provide some information about the compiler.
6282$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6283set X $ac_compile
6284ac_compiler=$2
6285for ac_option in --version -v -V -qversion; do
6286 { { ac_try="$ac_compiler $ac_option >&5"
6287case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290esac
6291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6292$as_echo "$ac_try_echo"; } >&5
6293 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6294 ac_status=$?
6295 if test -s conftest.err; then
6296 sed '10a\
6297... rest of stderr output deleted ...
6298 10q' conftest.err >conftest.er1
6299 cat conftest.er1 >&5
6300 fi
6301 rm -f conftest.er1 conftest.err
6302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6303 test $ac_status = 0; }
6304done
6305
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6307$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006308if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006309 $as_echo_n "(cached) " >&6
6310else
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312/* end confdefs.h. */
6313
6314int
6315main ()
6316{
6317#ifndef __GNUC__
6318 choke me
6319#endif
6320
6321 ;
6322 return 0;
6323}
6324_ACEOF
6325if ac_fn_c_try_compile "$LINENO"; then :
6326 ac_compiler_gnu=yes
6327else
6328 ac_compiler_gnu=no
6329fi
6330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331ac_cv_c_compiler_gnu=$ac_compiler_gnu
6332
6333fi
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6335$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6336if test $ac_compiler_gnu = yes; then
6337 GCC=yes
6338else
6339 GCC=
6340fi
6341ac_test_CFLAGS=${CFLAGS+set}
6342ac_save_CFLAGS=$CFLAGS
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6344$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006345if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006346 $as_echo_n "(cached) " >&6
6347else
6348 ac_save_c_werror_flag=$ac_c_werror_flag
6349 ac_c_werror_flag=yes
6350 ac_cv_prog_cc_g=no
6351 CFLAGS="-g"
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353/* end confdefs.h. */
6354
6355int
6356main ()
6357{
6358
6359 ;
6360 return 0;
6361}
6362_ACEOF
6363if ac_fn_c_try_compile "$LINENO"; then :
6364 ac_cv_prog_cc_g=yes
6365else
6366 CFLAGS=""
6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368/* end confdefs.h. */
6369
6370int
6371main ()
6372{
6373
6374 ;
6375 return 0;
6376}
6377_ACEOF
6378if ac_fn_c_try_compile "$LINENO"; then :
6379
6380else
6381 ac_c_werror_flag=$ac_save_c_werror_flag
6382 CFLAGS="-g"
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384/* end confdefs.h. */
6385
6386int
6387main ()
6388{
6389
6390 ;
6391 return 0;
6392}
6393_ACEOF
6394if ac_fn_c_try_compile "$LINENO"; then :
6395 ac_cv_prog_cc_g=yes
6396fi
6397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398fi
6399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400fi
6401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6402 ac_c_werror_flag=$ac_save_c_werror_flag
6403fi
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6405$as_echo "$ac_cv_prog_cc_g" >&6; }
6406if test "$ac_test_CFLAGS" = set; then
6407 CFLAGS=$ac_save_CFLAGS
6408elif test $ac_cv_prog_cc_g = yes; then
6409 if test "$GCC" = yes; then
6410 CFLAGS="-g -O2"
6411 else
6412 CFLAGS="-g"
6413 fi
6414else
6415 if test "$GCC" = yes; then
6416 CFLAGS="-O2"
6417 else
6418 CFLAGS=
6419 fi
6420fi
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6422$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006423if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006424 $as_echo_n "(cached) " >&6
6425else
6426 ac_cv_prog_cc_c89=no
6427ac_save_CC=$CC
6428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429/* end confdefs.h. */
6430#include <stdarg.h>
6431#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006432struct stat;
cristya0b81c32010-01-22 02:54:33 +00006433/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6434struct buf { int x; };
6435FILE * (*rcsopen) (struct buf *, struct stat *, int);
6436static char *e (p, i)
6437 char **p;
6438 int i;
6439{
6440 return p[i];
6441}
6442static char *f (char * (*g) (char **, int), char **p, ...)
6443{
6444 char *s;
6445 va_list v;
6446 va_start (v,p);
6447 s = g (p, va_arg (v,int));
6448 va_end (v);
6449 return s;
6450}
6451
6452/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6453 function prototypes and stuff, but not '\xHH' hex character constants.
6454 These don't provoke an error unfortunately, instead are silently treated
6455 as 'x'. The following induces an error, until -std is added to get
6456 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6457 array size at least. It's necessary to write '\x00'==0 to get something
6458 that's true only with -std. */
6459int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6460
6461/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6462 inside strings and character constants. */
6463#define FOO(x) 'x'
6464int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6465
6466int test (int i, double x);
6467struct s1 {int (*f) (int a);};
6468struct s2 {int (*f) (double a);};
6469int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6470int argc;
6471char **argv;
6472int
6473main ()
6474{
6475return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6476 ;
6477 return 0;
6478}
6479_ACEOF
6480for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6481 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6482do
6483 CC="$ac_save_CC $ac_arg"
6484 if ac_fn_c_try_compile "$LINENO"; then :
6485 ac_cv_prog_cc_c89=$ac_arg
6486fi
6487rm -f core conftest.err conftest.$ac_objext
6488 test "x$ac_cv_prog_cc_c89" != "xno" && break
6489done
6490rm -f conftest.$ac_ext
6491CC=$ac_save_CC
6492
6493fi
6494# AC_CACHE_VAL
6495case "x$ac_cv_prog_cc_c89" in
6496 x)
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6498$as_echo "none needed" >&6; } ;;
6499 xno)
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6501$as_echo "unsupported" >&6; } ;;
6502 *)
6503 CC="$CC $ac_cv_prog_cc_c89"
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6505$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6506esac
6507if test "x$ac_cv_prog_cc_c89" != xno; then :
6508
6509fi
6510
6511ac_ext=c
6512ac_cpp='$CPP $CPPFLAGS'
6513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6515ac_compiler_gnu=$ac_cv_c_compiler_gnu
6516
cristya5bda012013-11-03 18:05:38 +00006517ac_ext=c
6518ac_cpp='$CPP $CPPFLAGS'
6519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6521ac_compiler_gnu=$ac_cv_c_compiler_gnu
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6523$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6524if ${am_cv_prog_cc_c_o+:} false; then :
6525 $as_echo_n "(cached) " >&6
6526else
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528/* end confdefs.h. */
6529
6530int
6531main ()
6532{
6533
6534 ;
6535 return 0;
6536}
6537_ACEOF
6538 # Make sure it works both with $CC and with simple cc.
6539 # Following AC_PROG_CC_C_O, we do the test twice because some
6540 # compilers refuse to overwrite an existing .o file with -o,
6541 # though they will create one.
6542 am_cv_prog_cc_c_o=yes
6543 for am_i in 1 2; do
6544 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6545 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6546 ac_status=$?
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } \
6549 && test -f conftest2.$ac_objext; then
6550 : OK
6551 else
6552 am_cv_prog_cc_c_o=no
6553 break
6554 fi
6555 done
6556 rm -f core conftest*
6557 unset am_i
6558fi
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6560$as_echo "$am_cv_prog_cc_c_o" >&6; }
6561if test "$am_cv_prog_cc_c_o" != yes; then
6562 # Losing compiler, so override with the script.
6563 # FIXME: It is wrong to rewrite CC.
6564 # But if we don't then we get into trouble of one sort or another.
6565 # A longer-term fix would be to have automake use am__CC in this case,
6566 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6567 CC="$am_aux_dir/compile $CC"
6568fi
6569ac_ext=c
6570ac_cpp='$CPP $CPPFLAGS'
6571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6573ac_compiler_gnu=$ac_cv_c_compiler_gnu
6574
6575
cristy73bd4a52010-10-05 11:24:23 +00006576depcc="$CC" am_compiler_list=
6577
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6579$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006580if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006581 $as_echo_n "(cached) " >&6
6582else
6583 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6584 # We make a subdir and do the tests there. Otherwise we can end up
6585 # making bogus files that we don't know about and never remove. For
6586 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006587 # making a dummy file named 'D' -- because '-MD' means "put the output
6588 # in D".
cristy7247bba2012-02-05 16:37:27 +00006589 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006590 mkdir conftest.dir
6591 # Copy depcomp to subdir because otherwise we won't find it if we're
6592 # using a relative directory.
6593 cp "$am_depcomp" conftest.dir
6594 cd conftest.dir
6595 # We will build objects and dependencies in a subdirectory because
6596 # it helps to detect inapplicable dependency modes. For instance
6597 # both Tru64's cc and ICC support -MD to output dependencies as a
6598 # side effect of compilation, but ICC will put the dependencies in
6599 # the current directory while Tru64 will put them in the object
6600 # directory.
6601 mkdir sub
6602
6603 am_cv_CC_dependencies_compiler_type=none
6604 if test "$am_compiler_list" = ""; then
6605 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6606 fi
6607 am__universal=false
6608 case " $depcc " in #(
6609 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6610 esac
6611
6612 for depmode in $am_compiler_list; do
6613 # Setup a source with many dependencies, because some compilers
6614 # like to wrap large dependency lists on column 80 (with \), and
6615 # we should not choose a depcomp mode which is confused by this.
6616 #
6617 # We need to recreate these files for each test, as the compiler may
6618 # overwrite some of them when testing with obscure command lines.
6619 # This happens at least with the AIX C compiler.
6620 : > sub/conftest.c
6621 for i in 1 2 3 4 5 6; do
6622 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006623 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6624 # Solaris 10 /bin/sh.
6625 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006626 done
6627 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6628
cristyc0890a62012-07-19 00:18:20 +00006629 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006630 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006631 # handle '-M -o', and we need to detect this. Also, some Intel
6632 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006633 am__obj=sub/conftest.${OBJEXT-o}
6634 am__minus_obj="-o $am__obj"
6635 case $depmode in
6636 gcc)
6637 # This depmode causes a compiler race in universal mode.
6638 test "$am__universal" = false || continue
6639 ;;
6640 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006641 # After this tag, mechanisms are not by side-effect, so they'll
6642 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006643 if test "x$enable_dependency_tracking" = xyes; then
6644 continue
6645 else
6646 break
6647 fi
6648 ;;
cristy7247bba2012-02-05 16:37:27 +00006649 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006650 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006651 # not run yet. These depmodes are late enough in the game, and
6652 # so weak that their functioning should not be impacted.
6653 am__obj=conftest.${OBJEXT-o}
6654 am__minus_obj=
6655 ;;
6656 none) break ;;
6657 esac
6658 if depmode=$depmode \
6659 source=sub/conftest.c object=$am__obj \
6660 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6661 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6662 >/dev/null 2>conftest.err &&
6663 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6664 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6665 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6666 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6667 # icc doesn't choke on unknown options, it will just issue warnings
6668 # or remarks (even with -Werror). So we grep stderr for any message
6669 # that says an option was ignored or not supported.
6670 # When given -MP, icc 7.0 and 7.1 complain thusly:
6671 # icc: Command line warning: ignoring option '-M'; no argument required
6672 # The diagnosis changed in icc 8.0:
6673 # icc: Command line remark: option '-MP' not supported
6674 if (grep 'ignoring option' conftest.err ||
6675 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6676 am_cv_CC_dependencies_compiler_type=$depmode
6677 break
6678 fi
6679 fi
6680 done
6681
6682 cd ..
6683 rm -rf conftest.dir
6684else
6685 am_cv_CC_dependencies_compiler_type=none
6686fi
6687
6688fi
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6690$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6691CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6692
6693 if
6694 test "x$enable_dependency_tracking" != xno \
6695 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6696 am__fastdepCC_TRUE=
6697 am__fastdepCC_FALSE='#'
6698else
6699 am__fastdepCC_TRUE='#'
6700 am__fastdepCC_FALSE=
6701fi
6702
6703
cristy95646052009-11-28 23:05:30 +00006704ac_ext=cpp
6705ac_cpp='$CXXCPP $CPPFLAGS'
6706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6709if test -z "$CXX"; then
6710 if test -n "$CCC"; then
6711 CXX=$CCC
6712 else
6713 if test -n "$ac_tool_prefix"; then
6714 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6715 do
6716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6717set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006720if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006721 $as_echo_n "(cached) " >&6
6722else
6723 if test -n "$CXX"; then
6724 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006733 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737done
6738 done
6739IFS=$as_save_IFS
6740
6741fi
6742fi
6743CXX=$ac_cv_prog_CXX
6744if test -n "$CXX"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6746$as_echo "$CXX" >&6; }
6747else
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749$as_echo "no" >&6; }
6750fi
6751
6752
6753 test -n "$CXX" && break
6754 done
6755fi
6756if test -z "$CXX"; then
6757 ac_ct_CXX=$CXX
6758 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6759do
6760 # Extract the first word of "$ac_prog", so it can be a program name with args.
6761set dummy $ac_prog; ac_word=$2
6762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006764if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006765 $as_echo_n "(cached) " >&6
6766else
6767 if test -n "$ac_ct_CXX"; then
6768 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6769else
6770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771for as_dir in $PATH
6772do
6773 IFS=$as_save_IFS
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006777 ac_cv_prog_ac_ct_CXX="$ac_prog"
6778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 break 2
6780 fi
6781done
6782 done
6783IFS=$as_save_IFS
6784
6785fi
6786fi
6787ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6788if test -n "$ac_ct_CXX"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6790$as_echo "$ac_ct_CXX" >&6; }
6791else
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793$as_echo "no" >&6; }
6794fi
6795
6796
6797 test -n "$ac_ct_CXX" && break
6798done
6799
6800 if test "x$ac_ct_CXX" = x; then
6801 CXX="g++"
6802 else
6803 case $cross_compiling:$ac_tool_warned in
6804yes:)
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807ac_tool_warned=yes ;;
6808esac
6809 CXX=$ac_ct_CXX
6810 fi
6811fi
6812
6813 fi
6814fi
6815# Provide some information about the compiler.
6816$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6817set X $ac_compile
6818ac_compiler=$2
6819for ac_option in --version -v -V -qversion; do
6820 { { ac_try="$ac_compiler $ac_option >&5"
6821case "(($ac_try" in
6822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6823 *) ac_try_echo=$ac_try;;
6824esac
6825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6826$as_echo "$ac_try_echo"; } >&5
6827 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6828 ac_status=$?
6829 if test -s conftest.err; then
6830 sed '10a\
6831... rest of stderr output deleted ...
6832 10q' conftest.err >conftest.er1
6833 cat conftest.er1 >&5
6834 fi
6835 rm -f conftest.er1 conftest.err
6836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6837 test $ac_status = 0; }
6838done
6839
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6841$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006842if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006843 $as_echo_n "(cached) " >&6
6844else
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846/* end confdefs.h. */
6847
6848int
6849main ()
6850{
6851#ifndef __GNUC__
6852 choke me
6853#endif
6854
6855 ;
6856 return 0;
6857}
6858_ACEOF
6859if ac_fn_cxx_try_compile "$LINENO"; then :
6860 ac_compiler_gnu=yes
6861else
6862 ac_compiler_gnu=no
6863fi
6864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6866
6867fi
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6869$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6870if test $ac_compiler_gnu = yes; then
6871 GXX=yes
6872else
6873 GXX=
6874fi
6875ac_test_CXXFLAGS=${CXXFLAGS+set}
6876ac_save_CXXFLAGS=$CXXFLAGS
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6878$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006879if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006880 $as_echo_n "(cached) " >&6
6881else
6882 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6883 ac_cxx_werror_flag=yes
6884 ac_cv_prog_cxx_g=no
6885 CXXFLAGS="-g"
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887/* end confdefs.h. */
6888
6889int
6890main ()
6891{
6892
6893 ;
6894 return 0;
6895}
6896_ACEOF
6897if ac_fn_cxx_try_compile "$LINENO"; then :
6898 ac_cv_prog_cxx_g=yes
6899else
6900 CXXFLAGS=""
6901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902/* end confdefs.h. */
6903
6904int
6905main ()
6906{
6907
6908 ;
6909 return 0;
6910}
6911_ACEOF
6912if ac_fn_cxx_try_compile "$LINENO"; then :
6913
6914else
6915 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6916 CXXFLAGS="-g"
6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918/* end confdefs.h. */
6919
6920int
6921main ()
6922{
6923
6924 ;
6925 return 0;
6926}
6927_ACEOF
6928if ac_fn_cxx_try_compile "$LINENO"; then :
6929 ac_cv_prog_cxx_g=yes
6930fi
6931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932fi
6933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934fi
6935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6937fi
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6939$as_echo "$ac_cv_prog_cxx_g" >&6; }
6940if test "$ac_test_CXXFLAGS" = set; then
6941 CXXFLAGS=$ac_save_CXXFLAGS
6942elif test $ac_cv_prog_cxx_g = yes; then
6943 if test "$GXX" = yes; then
6944 CXXFLAGS="-g -O2"
6945 else
6946 CXXFLAGS="-g"
6947 fi
6948else
6949 if test "$GXX" = yes; then
6950 CXXFLAGS="-O2"
6951 else
6952 CXXFLAGS=
6953 fi
6954fi
6955ac_ext=c
6956ac_cpp='$CPP $CPPFLAGS'
6957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959ac_compiler_gnu=$ac_cv_c_compiler_gnu
6960
cristy73bd4a52010-10-05 11:24:23 +00006961depcc="$CXX" am_compiler_list=
6962
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6964$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006965if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006966 $as_echo_n "(cached) " >&6
6967else
6968 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6969 # We make a subdir and do the tests there. Otherwise we can end up
6970 # making bogus files that we don't know about and never remove. For
6971 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006972 # making a dummy file named 'D' -- because '-MD' means "put the output
6973 # in D".
cristy7247bba2012-02-05 16:37:27 +00006974 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006975 mkdir conftest.dir
6976 # Copy depcomp to subdir because otherwise we won't find it if we're
6977 # using a relative directory.
6978 cp "$am_depcomp" conftest.dir
6979 cd conftest.dir
6980 # We will build objects and dependencies in a subdirectory because
6981 # it helps to detect inapplicable dependency modes. For instance
6982 # both Tru64's cc and ICC support -MD to output dependencies as a
6983 # side effect of compilation, but ICC will put the dependencies in
6984 # the current directory while Tru64 will put them in the object
6985 # directory.
6986 mkdir sub
6987
6988 am_cv_CXX_dependencies_compiler_type=none
6989 if test "$am_compiler_list" = ""; then
6990 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6991 fi
6992 am__universal=false
6993 case " $depcc " in #(
6994 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6995 esac
6996
6997 for depmode in $am_compiler_list; do
6998 # Setup a source with many dependencies, because some compilers
6999 # like to wrap large dependency lists on column 80 (with \), and
7000 # we should not choose a depcomp mode which is confused by this.
7001 #
7002 # We need to recreate these files for each test, as the compiler may
7003 # overwrite some of them when testing with obscure command lines.
7004 # This happens at least with the AIX C compiler.
7005 : > sub/conftest.c
7006 for i in 1 2 3 4 5 6; do
7007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007008 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7009 # Solaris 10 /bin/sh.
7010 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007011 done
7012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7013
cristyc0890a62012-07-19 00:18:20 +00007014 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007015 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007016 # handle '-M -o', and we need to detect this. Also, some Intel
7017 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007018 am__obj=sub/conftest.${OBJEXT-o}
7019 am__minus_obj="-o $am__obj"
7020 case $depmode in
7021 gcc)
7022 # This depmode causes a compiler race in universal mode.
7023 test "$am__universal" = false || continue
7024 ;;
7025 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007026 # After this tag, mechanisms are not by side-effect, so they'll
7027 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007028 if test "x$enable_dependency_tracking" = xyes; then
7029 continue
7030 else
7031 break
7032 fi
7033 ;;
cristy7247bba2012-02-05 16:37:27 +00007034 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007035 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007036 # not run yet. These depmodes are late enough in the game, and
7037 # so weak that their functioning should not be impacted.
7038 am__obj=conftest.${OBJEXT-o}
7039 am__minus_obj=
7040 ;;
7041 none) break ;;
7042 esac
7043 if depmode=$depmode \
7044 source=sub/conftest.c object=$am__obj \
7045 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7046 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7047 >/dev/null 2>conftest.err &&
7048 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7049 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7050 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7051 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7052 # icc doesn't choke on unknown options, it will just issue warnings
7053 # or remarks (even with -Werror). So we grep stderr for any message
7054 # that says an option was ignored or not supported.
7055 # When given -MP, icc 7.0 and 7.1 complain thusly:
7056 # icc: Command line warning: ignoring option '-M'; no argument required
7057 # The diagnosis changed in icc 8.0:
7058 # icc: Command line remark: option '-MP' not supported
7059 if (grep 'ignoring option' conftest.err ||
7060 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7061 am_cv_CXX_dependencies_compiler_type=$depmode
7062 break
7063 fi
7064 fi
7065 done
7066
7067 cd ..
7068 rm -rf conftest.dir
7069else
7070 am_cv_CXX_dependencies_compiler_type=none
7071fi
7072
7073fi
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7075$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7076CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7077
7078 if
7079 test "x$enable_dependency_tracking" != xno \
7080 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7081 am__fastdepCXX_TRUE=
7082 am__fastdepCXX_FALSE='#'
7083else
7084 am__fastdepCXX_TRUE='#'
7085 am__fastdepCXX_FALSE=
7086fi
7087
7088
cristy8b350f62009-11-15 23:12:43 +00007089 case $ac_cv_prog_cc_stdc in #(
7090 no) :
7091 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7092 *) :
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007094$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007095if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007096 $as_echo_n "(cached) " >&6
7097else
7098 ac_cv_prog_cc_c99=no
7099ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007101/* end confdefs.h. */
7102#include <stdarg.h>
7103#include <stdbool.h>
7104#include <stdlib.h>
7105#include <wchar.h>
7106#include <stdio.h>
7107
7108// Check varargs macros. These examples are taken from C99 6.10.3.5.
7109#define debug(...) fprintf (stderr, __VA_ARGS__)
7110#define showlist(...) puts (#__VA_ARGS__)
7111#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7112static void
7113test_varargs_macros (void)
7114{
7115 int x = 1234;
7116 int y = 5678;
7117 debug ("Flag");
7118 debug ("X = %d\n", x);
7119 showlist (The first, second, and third items.);
7120 report (x>y, "x is %d but y is %d", x, y);
7121}
7122
7123// Check long long types.
7124#define BIG64 18446744073709551615ull
7125#define BIG32 4294967295ul
7126#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7127#if !BIG_OK
7128 your preprocessor is broken;
7129#endif
7130#if BIG_OK
7131#else
7132 your preprocessor is broken;
7133#endif
7134static long long int bignum = -9223372036854775807LL;
7135static unsigned long long int ubignum = BIG64;
7136
7137struct incomplete_array
7138{
7139 int datasize;
7140 double data[];
7141};
7142
7143struct named_init {
7144 int number;
7145 const wchar_t *name;
7146 double average;
7147};
7148
7149typedef const char *ccp;
7150
7151static inline int
7152test_restrict (ccp restrict text)
7153{
7154 // See if C++-style comments work.
7155 // Iterate through items via the restricted pointer.
7156 // Also check for declarations in for loops.
7157 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7158 continue;
7159 return 0;
7160}
7161
7162// Check varargs and va_copy.
7163static void
7164test_varargs (const char *format, ...)
7165{
7166 va_list args;
7167 va_start (args, format);
7168 va_list args_copy;
7169 va_copy (args_copy, args);
7170
7171 const char *str;
7172 int number;
7173 float fnumber;
7174
7175 while (*format)
7176 {
7177 switch (*format++)
7178 {
7179 case 's': // string
7180 str = va_arg (args_copy, const char *);
7181 break;
7182 case 'd': // int
7183 number = va_arg (args_copy, int);
7184 break;
7185 case 'f': // float
7186 fnumber = va_arg (args_copy, double);
7187 break;
7188 default:
7189 break;
7190 }
7191 }
7192 va_end (args_copy);
7193 va_end (args);
7194}
7195
7196int
7197main ()
7198{
7199
7200 // Check bool.
7201 _Bool success = false;
7202
7203 // Check restrict.
7204 if (test_restrict ("String literal") == 0)
7205 success = true;
7206 char *restrict newvar = "Another string";
7207
7208 // Check varargs.
7209 test_varargs ("s, d' f .", "string", 65, 34.234);
7210 test_varargs_macros ();
7211
7212 // Check flexible array members.
7213 struct incomplete_array *ia =
7214 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7215 ia->datasize = 10;
7216 for (int i = 0; i < ia->datasize; ++i)
7217 ia->data[i] = i * 1.234;
7218
7219 // Check named initializers.
7220 struct named_init ni = {
7221 .number = 34,
7222 .name = L"Test wide string",
7223 .average = 543.34343,
7224 };
7225
7226 ni.number = 58;
7227
7228 int dynamic_array[ni.number];
7229 dynamic_array[ni.number - 1] = 543;
7230
7231 // work around unused variable warnings
7232 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7233 || dynamic_array[ni.number - 1] != 543);
7234
7235 ;
7236 return 0;
7237}
7238_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007239for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007240do
7241 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007242 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007243 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007244fi
cristy3ed852e2009-09-05 21:47:34 +00007245rm -f core conftest.err conftest.$ac_objext
7246 test "x$ac_cv_prog_cc_c99" != "xno" && break
7247done
7248rm -f conftest.$ac_ext
7249CC=$ac_save_CC
7250
7251fi
7252# AC_CACHE_VAL
7253case "x$ac_cv_prog_cc_c99" in
7254 x)
cristy8b350f62009-11-15 23:12:43 +00007255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007256$as_echo "none needed" >&6; } ;;
7257 xno)
cristy8b350f62009-11-15 23:12:43 +00007258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007259$as_echo "unsupported" >&6; } ;;
7260 *)
7261 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007263$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7264esac
cristy8b350f62009-11-15 23:12:43 +00007265if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007266 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7267else
cristy8b350f62009-11-15 23:12:43 +00007268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007269$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007270if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007271 $as_echo_n "(cached) " >&6
7272else
7273 ac_cv_prog_cc_c89=no
7274ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007276/* end confdefs.h. */
7277#include <stdarg.h>
7278#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007279struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007280/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7281struct buf { int x; };
7282FILE * (*rcsopen) (struct buf *, struct stat *, int);
7283static char *e (p, i)
7284 char **p;
7285 int i;
7286{
7287 return p[i];
7288}
7289static char *f (char * (*g) (char **, int), char **p, ...)
7290{
7291 char *s;
7292 va_list v;
7293 va_start (v,p);
7294 s = g (p, va_arg (v,int));
7295 va_end (v);
7296 return s;
7297}
7298
7299/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7300 function prototypes and stuff, but not '\xHH' hex character constants.
7301 These don't provoke an error unfortunately, instead are silently treated
7302 as 'x'. The following induces an error, until -std is added to get
7303 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7304 array size at least. It's necessary to write '\x00'==0 to get something
7305 that's true only with -std. */
7306int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7307
7308/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7309 inside strings and character constants. */
7310#define FOO(x) 'x'
7311int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7312
7313int test (int i, double x);
7314struct s1 {int (*f) (int a);};
7315struct s2 {int (*f) (double a);};
7316int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7317int argc;
7318char **argv;
7319int
7320main ()
7321{
7322return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7323 ;
7324 return 0;
7325}
7326_ACEOF
7327for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7328 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7329do
7330 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007331 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007332 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007333fi
cristy3ed852e2009-09-05 21:47:34 +00007334rm -f core conftest.err conftest.$ac_objext
7335 test "x$ac_cv_prog_cc_c89" != "xno" && break
7336done
7337rm -f conftest.$ac_ext
7338CC=$ac_save_CC
7339
7340fi
7341# AC_CACHE_VAL
7342case "x$ac_cv_prog_cc_c89" in
7343 x)
cristy8b350f62009-11-15 23:12:43 +00007344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007345$as_echo "none needed" >&6; } ;;
7346 xno)
cristy8b350f62009-11-15 23:12:43 +00007347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007348$as_echo "unsupported" >&6; } ;;
7349 *)
7350 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007352$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7353esac
cristy8b350f62009-11-15 23:12:43 +00007354if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007355 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7356else
7357 ac_cv_prog_cc_stdc=no
7358fi
7359
cristy3ed852e2009-09-05 21:47:34 +00007360fi
cristy3ed852e2009-09-05 21:47:34 +00007361 ;;
7362esac
cristy8b350f62009-11-15 23:12:43 +00007363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007364$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007365 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007366 $as_echo_n "(cached) " >&6
7367fi
7368
cristy8b350f62009-11-15 23:12:43 +00007369 case $ac_cv_prog_cc_stdc in #(
7370 no) :
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7372$as_echo "unsupported" >&6; } ;; #(
7373 '') :
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7375$as_echo "none needed" >&6; } ;; #(
7376 *) :
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007378$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7379esac
7380
cristy3ed852e2009-09-05 21:47:34 +00007381ac_ext=c
7382ac_cpp='$CPP $CPPFLAGS'
7383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7385ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007387$as_echo_n "checking how to run the C preprocessor... " >&6; }
7388# On Suns, sometimes $CPP names a directory.
7389if test -n "$CPP" && test -d "$CPP"; then
7390 CPP=
7391fi
7392if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007393 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007394 $as_echo_n "(cached) " >&6
7395else
7396 # Double quotes because CPP needs to be expanded
7397 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7398 do
7399 ac_preproc_ok=false
7400for ac_c_preproc_warn_flag in '' yes
7401do
7402 # Use a header file that comes with gcc, so configuring glibc
7403 # with a fresh cross-compiler works.
7404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7405 # <limits.h> exists even on freestanding compilers.
7406 # On the NeXT, cc -E runs the code through the compiler's parser,
7407 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007409/* end confdefs.h. */
7410#ifdef __STDC__
7411# include <limits.h>
7412#else
7413# include <assert.h>
7414#endif
7415 Syntax error
7416_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007417if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007418
cristy8b350f62009-11-15 23:12:43 +00007419else
cristy3ed852e2009-09-05 21:47:34 +00007420 # Broken: fails on valid input.
7421continue
7422fi
cristyda16f162011-02-19 23:52:17 +00007423rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007424
7425 # OK, works on sane cases. Now check whether nonexistent headers
7426 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007428/* end confdefs.h. */
7429#include <ac_nonexistent.h>
7430_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007431if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007432 # Broken: success on invalid input.
7433continue
7434else
cristy3ed852e2009-09-05 21:47:34 +00007435 # Passes both tests.
7436ac_preproc_ok=:
7437break
7438fi
cristyda16f162011-02-19 23:52:17 +00007439rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007440
7441done
7442# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007443rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007444if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007445 break
7446fi
7447
7448 done
7449 ac_cv_prog_CPP=$CPP
7450
7451fi
7452 CPP=$ac_cv_prog_CPP
7453else
7454 ac_cv_prog_CPP=$CPP
7455fi
cristy8b350f62009-11-15 23:12:43 +00007456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007457$as_echo "$CPP" >&6; }
7458ac_preproc_ok=false
7459for ac_c_preproc_warn_flag in '' yes
7460do
7461 # Use a header file that comes with gcc, so configuring glibc
7462 # with a fresh cross-compiler works.
7463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7464 # <limits.h> exists even on freestanding compilers.
7465 # On the NeXT, cc -E runs the code through the compiler's parser,
7466 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007468/* end confdefs.h. */
7469#ifdef __STDC__
7470# include <limits.h>
7471#else
7472# include <assert.h>
7473#endif
7474 Syntax error
7475_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007476if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007477
cristy8b350f62009-11-15 23:12:43 +00007478else
cristy3ed852e2009-09-05 21:47:34 +00007479 # Broken: fails on valid input.
7480continue
7481fi
cristyda16f162011-02-19 23:52:17 +00007482rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007483
7484 # OK, works on sane cases. Now check whether nonexistent headers
7485 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007487/* end confdefs.h. */
7488#include <ac_nonexistent.h>
7489_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007490if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007491 # Broken: success on invalid input.
7492continue
7493else
cristy3ed852e2009-09-05 21:47:34 +00007494 # Passes both tests.
7495ac_preproc_ok=:
7496break
7497fi
cristyda16f162011-02-19 23:52:17 +00007498rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007499
7500done
7501# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007502rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007503if $ac_preproc_ok; then :
7504
cristy3ed852e2009-09-05 21:47:34 +00007505else
cristy8b350f62009-11-15 23:12:43 +00007506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007508as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7509See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007510fi
7511
7512ac_ext=c
7513ac_cpp='$CPP $CPPFLAGS'
7514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7516ac_compiler_gnu=$ac_cv_c_compiler_gnu
7517
cristy73bd4a52010-10-05 11:24:23 +00007518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7519$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007520if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007521 $as_echo_n "(cached) " >&6
7522else
7523 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7524 for ac_i in 1 2 3 4 5 6 7; do
7525 ac_script="$ac_script$as_nl$ac_script"
7526 done
7527 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7528 { ac_script=; unset ac_script;}
7529 if test -z "$SED"; then
7530 ac_path_SED_found=false
7531 # Loop through the user's path and test for each of PROGNAME-LIST
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533for as_dir in $PATH
7534do
7535 IFS=$as_save_IFS
7536 test -z "$as_dir" && as_dir=.
7537 for ac_prog in sed gsed; do
7538 for ac_exec_ext in '' $ac_executable_extensions; do
7539 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007540 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007541# Check for GNU ac_path_SED and select it if it is found.
7542 # Check for GNU $ac_path_SED
7543case `"$ac_path_SED" --version 2>&1` in
7544*GNU*)
7545 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7546*)
7547 ac_count=0
7548 $as_echo_n 0123456789 >"conftest.in"
7549 while :
7550 do
7551 cat "conftest.in" "conftest.in" >"conftest.tmp"
7552 mv "conftest.tmp" "conftest.in"
7553 cp "conftest.in" "conftest.nl"
7554 $as_echo '' >> "conftest.nl"
7555 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7557 as_fn_arith $ac_count + 1 && ac_count=$as_val
7558 if test $ac_count -gt ${ac_path_SED_max-0}; then
7559 # Best one so far, save it but keep looking for a better one
7560 ac_cv_path_SED="$ac_path_SED"
7561 ac_path_SED_max=$ac_count
7562 fi
7563 # 10*(2^10) chars as input seems more than enough
7564 test $ac_count -gt 10 && break
7565 done
7566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7567esac
7568
7569 $ac_path_SED_found && break 3
7570 done
7571 done
7572 done
7573IFS=$as_save_IFS
7574 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007575 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007576 fi
7577else
7578 ac_cv_path_SED=$SED
7579fi
7580
7581fi
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7583$as_echo "$ac_cv_path_SED" >&6; }
7584 SED="$ac_cv_path_SED"
7585 rm -f conftest.sed
7586
7587test -z "$SED" && SED=sed
7588Xsed="$SED -e 1s/^X//"
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7601$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007602if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007603 $as_echo_n "(cached) " >&6
7604else
7605 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7606 then ac_cv_path_FGREP="$GREP -F"
7607 else
7608 if test -z "$FGREP"; then
7609 ac_path_FGREP_found=false
7610 # Loop through the user's path and test for each of PROGNAME-LIST
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7613do
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
7616 for ac_prog in fgrep; do
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007619 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007620# Check for GNU ac_path_FGREP and select it if it is found.
7621 # Check for GNU $ac_path_FGREP
7622case `"$ac_path_FGREP" --version 2>&1` in
7623*GNU*)
7624 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7625*)
7626 ac_count=0
7627 $as_echo_n 0123456789 >"conftest.in"
7628 while :
7629 do
7630 cat "conftest.in" "conftest.in" >"conftest.tmp"
7631 mv "conftest.tmp" "conftest.in"
7632 cp "conftest.in" "conftest.nl"
7633 $as_echo 'FGREP' >> "conftest.nl"
7634 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7636 as_fn_arith $ac_count + 1 && ac_count=$as_val
7637 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7638 # Best one so far, save it but keep looking for a better one
7639 ac_cv_path_FGREP="$ac_path_FGREP"
7640 ac_path_FGREP_max=$ac_count
7641 fi
7642 # 10*(2^10) chars as input seems more than enough
7643 test $ac_count -gt 10 && break
7644 done
7645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7646esac
7647
7648 $ac_path_FGREP_found && break 3
7649 done
7650 done
7651 done
7652IFS=$as_save_IFS
7653 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007654 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007655 fi
7656else
7657 ac_cv_path_FGREP=$FGREP
7658fi
7659
7660 fi
7661fi
7662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7663$as_echo "$ac_cv_path_FGREP" >&6; }
7664 FGREP="$ac_cv_path_FGREP"
7665
7666
7667test -z "$GREP" && GREP=grep
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
cristy0c60a692010-11-04 01:09:47 +00007685ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7686ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7687ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7688
7689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7690$as_echo_n "checking how to print strings... " >&6; }
7691# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007692if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007693 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7694 ECHO='print -r --'
7695elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7696 ECHO='printf %s\n'
7697else
7698 # Use this function as a fallback that always works.
7699 func_fallback_echo ()
7700 {
7701 eval 'cat <<_LTECHO_EOF
7702$1
7703_LTECHO_EOF'
7704 }
7705 ECHO='func_fallback_echo'
7706fi
7707
7708# func_echo_all arg...
7709# Invoke $ECHO with all args, space-separated.
7710func_echo_all ()
7711{
7712 $ECHO ""
7713}
7714
7715case "$ECHO" in
7716 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7717$as_echo "printf" >&6; } ;;
7718 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7719$as_echo "print -r" >&6; } ;;
7720 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7721$as_echo "cat" >&6; } ;;
7722esac
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
cristy73bd4a52010-10-05 11:24:23 +00007737
7738
7739# Check whether --with-gnu-ld was given.
7740if test "${with_gnu_ld+set}" = set; then :
7741 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7742else
7743 with_gnu_ld=no
7744fi
7745
7746ac_prog=ld
7747if test "$GCC" = yes; then
7748 # Check if gcc -print-prog-name=ld gives a path.
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7750$as_echo_n "checking for ld used by $CC... " >&6; }
7751 case $host in
7752 *-*-mingw*)
7753 # gcc leaves a trailing carriage return which upsets mingw
7754 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7755 *)
7756 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7757 esac
7758 case $ac_prog in
7759 # Accept absolute paths.
7760 [\\/]* | ?:[\\/]*)
7761 re_direlt='/[^/][^/]*/\.\./'
7762 # Canonicalize the pathname of ld
7763 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7764 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7765 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7766 done
7767 test -z "$LD" && LD="$ac_prog"
7768 ;;
7769 "")
7770 # If it fails, then pretend we aren't using GCC.
7771 ac_prog=ld
7772 ;;
7773 *)
7774 # If it is relative, then search for the first ld in PATH.
7775 with_gnu_ld=unknown
7776 ;;
7777 esac
7778elif test "$with_gnu_ld" = yes; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7780$as_echo_n "checking for GNU ld... " >&6; }
7781else
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7783$as_echo_n "checking for non-GNU ld... " >&6; }
7784fi
cristyda16f162011-02-19 23:52:17 +00007785if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007786 $as_echo_n "(cached) " >&6
7787else
7788 if test -z "$LD"; then
7789 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7790 for ac_dir in $PATH; do
7791 IFS="$lt_save_ifs"
7792 test -z "$ac_dir" && ac_dir=.
7793 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7794 lt_cv_path_LD="$ac_dir/$ac_prog"
7795 # Check to see if the program is GNU ld. I'd rather use --version,
7796 # but apparently some variants of GNU ld only accept -v.
7797 # Break only if it was the GNU/non-GNU ld that we prefer.
7798 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7799 *GNU* | *'with BFD'*)
7800 test "$with_gnu_ld" != no && break
7801 ;;
7802 *)
7803 test "$with_gnu_ld" != yes && break
7804 ;;
7805 esac
7806 fi
7807 done
7808 IFS="$lt_save_ifs"
7809else
7810 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7811fi
7812fi
7813
7814LD="$lt_cv_path_LD"
7815if test -n "$LD"; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7817$as_echo "$LD" >&6; }
7818else
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820$as_echo "no" >&6; }
7821fi
cristy98dddb52010-11-04 00:30:15 +00007822test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7824$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007825if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007826 $as_echo_n "(cached) " >&6
7827else
7828 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7829case `$LD -v 2>&1 </dev/null` in
7830*GNU* | *'with BFD'*)
7831 lt_cv_prog_gnu_ld=yes
7832 ;;
7833*)
7834 lt_cv_prog_gnu_ld=no
7835 ;;
7836esac
7837fi
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7839$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7840with_gnu_ld=$lt_cv_prog_gnu_ld
7841
7842
7843
7844
7845
7846
7847
7848
7849
cristy3ed852e2009-09-05 21:47:34 +00007850
cristy837d6dc2010-02-27 01:16:57 +00007851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7852$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007853if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007854 $as_echo_n "(cached) " >&6
7855else
7856 ac_cv_prog_cc_c99=no
7857ac_save_CC=$CC
7858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859/* end confdefs.h. */
7860#include <stdarg.h>
7861#include <stdbool.h>
7862#include <stdlib.h>
7863#include <wchar.h>
7864#include <stdio.h>
7865
7866// Check varargs macros. These examples are taken from C99 6.10.3.5.
7867#define debug(...) fprintf (stderr, __VA_ARGS__)
7868#define showlist(...) puts (#__VA_ARGS__)
7869#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7870static void
7871test_varargs_macros (void)
7872{
7873 int x = 1234;
7874 int y = 5678;
7875 debug ("Flag");
7876 debug ("X = %d\n", x);
7877 showlist (The first, second, and third items.);
7878 report (x>y, "x is %d but y is %d", x, y);
7879}
7880
7881// Check long long types.
7882#define BIG64 18446744073709551615ull
7883#define BIG32 4294967295ul
7884#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7885#if !BIG_OK
7886 your preprocessor is broken;
7887#endif
7888#if BIG_OK
7889#else
7890 your preprocessor is broken;
7891#endif
7892static long long int bignum = -9223372036854775807LL;
7893static unsigned long long int ubignum = BIG64;
7894
7895struct incomplete_array
7896{
7897 int datasize;
7898 double data[];
7899};
7900
7901struct named_init {
7902 int number;
7903 const wchar_t *name;
7904 double average;
7905};
7906
7907typedef const char *ccp;
7908
7909static inline int
7910test_restrict (ccp restrict text)
7911{
7912 // See if C++-style comments work.
7913 // Iterate through items via the restricted pointer.
7914 // Also check for declarations in for loops.
7915 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7916 continue;
7917 return 0;
7918}
7919
7920// Check varargs and va_copy.
7921static void
7922test_varargs (const char *format, ...)
7923{
7924 va_list args;
7925 va_start (args, format);
7926 va_list args_copy;
7927 va_copy (args_copy, args);
7928
7929 const char *str;
7930 int number;
7931 float fnumber;
7932
7933 while (*format)
7934 {
7935 switch (*format++)
7936 {
7937 case 's': // string
7938 str = va_arg (args_copy, const char *);
7939 break;
7940 case 'd': // int
7941 number = va_arg (args_copy, int);
7942 break;
7943 case 'f': // float
7944 fnumber = va_arg (args_copy, double);
7945 break;
7946 default:
7947 break;
7948 }
7949 }
7950 va_end (args_copy);
7951 va_end (args);
7952}
7953
7954int
7955main ()
7956{
7957
7958 // Check bool.
7959 _Bool success = false;
7960
7961 // Check restrict.
7962 if (test_restrict ("String literal") == 0)
7963 success = true;
7964 char *restrict newvar = "Another string";
7965
7966 // Check varargs.
7967 test_varargs ("s, d' f .", "string", 65, 34.234);
7968 test_varargs_macros ();
7969
7970 // Check flexible array members.
7971 struct incomplete_array *ia =
7972 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7973 ia->datasize = 10;
7974 for (int i = 0; i < ia->datasize; ++i)
7975 ia->data[i] = i * 1.234;
7976
7977 // Check named initializers.
7978 struct named_init ni = {
7979 .number = 34,
7980 .name = L"Test wide string",
7981 .average = 543.34343,
7982 };
7983
7984 ni.number = 58;
7985
7986 int dynamic_array[ni.number];
7987 dynamic_array[ni.number - 1] = 543;
7988
7989 // work around unused variable warnings
7990 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7991 || dynamic_array[ni.number - 1] != 543);
7992
7993 ;
7994 return 0;
7995}
7996_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007997for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007998do
7999 CC="$ac_save_CC $ac_arg"
8000 if ac_fn_c_try_compile "$LINENO"; then :
8001 ac_cv_prog_cc_c99=$ac_arg
8002fi
8003rm -f core conftest.err conftest.$ac_objext
8004 test "x$ac_cv_prog_cc_c99" != "xno" && break
8005done
8006rm -f conftest.$ac_ext
8007CC=$ac_save_CC
8008
8009fi
8010# AC_CACHE_VAL
8011case "x$ac_cv_prog_cc_c99" in
8012 x)
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8014$as_echo "none needed" >&6; } ;;
8015 xno)
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8017$as_echo "unsupported" >&6; } ;;
8018 *)
8019 CC="$CC $ac_cv_prog_cc_c99"
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8021$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8022esac
8023if test "x$ac_cv_prog_cc_c99" != xno; then :
8024
8025fi
8026
8027
cristy73bd4a52010-10-05 11:24:23 +00008028
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8030$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008031if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008032 $as_echo_n "(cached) " >&6
8033else
8034 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00008035 ac_ext=c
8036ac_cpp='$CPP $CPPFLAGS'
8037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8039ac_compiler_gnu=$ac_cv_c_compiler_gnu
8040
8041 ac_save_CFLAGS="$CFLAGS"
8042for 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" #
8043do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045/* end confdefs.h. */
8046
8047int
8048main ()
8049{
cristy24fc1fe2010-10-23 21:13:01 +00008050
cristy73bd4a52010-10-05 11:24:23 +00008051 ;
8052 return 0;
8053}
8054_ACEOF
8055if ac_fn_c_try_compile "$LINENO"; then :
8056 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8057fi
8058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059done
8060 CFLAGS="$ac_save_CFLAGS"
8061 ac_ext=c
8062ac_cpp='$CPP $CPPFLAGS'
8063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065ac_compiler_gnu=$ac_cv_c_compiler_gnu
8066
8067
8068fi
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8070$as_echo "$ac_cv_cflags_warn_all" >&6; }
8071case ".$ac_cv_cflags_warn_all" in
8072 .ok|.ok,*) ;;
8073 .|.no|.no,*)
8074 ;;
8075 *)
8076 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8077 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8078 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8079 ac_status=$?
8080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8081 test $ac_status = 0; }
8082 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8083 (: CFLAGS="$CFLAGS $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 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8088 fi
8089 ;;
nicolas6237c462010-10-05 06:11:49 +00008090esac
cristy3ed852e2009-09-05 21:47:34 +00008091
cristya0b81c32010-01-22 02:54:33 +00008092
8093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8094$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8095set x ${MAKE-make}
8096ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008097if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008098 $as_echo_n "(cached) " >&6
8099else
8100 cat >conftest.make <<\_ACEOF
8101SHELL = /bin/sh
8102all:
8103 @echo '@@@%%%=$(MAKE)=@@@%%%'
8104_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008105# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008106case `${MAKE-make} -f conftest.make 2>/dev/null` in
8107 *@@@%%%=?*=@@@%%%*)
8108 eval ac_cv_prog_make_${ac_make}_set=yes;;
8109 *)
8110 eval ac_cv_prog_make_${ac_make}_set=no;;
8111esac
8112rm -f conftest.make
8113fi
8114if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8116$as_echo "yes" >&6; }
8117 SET_MAKE=
8118else
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120$as_echo "no" >&6; }
8121 SET_MAKE="MAKE=${MAKE-make}"
8122fi
8123
cristy8b350f62009-11-15 23:12:43 +00008124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008125$as_echo_n "checking whether ln -s works... " >&6; }
8126LN_S=$as_ln_s
8127if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008129$as_echo "yes" >&6; }
8130else
cristy8b350f62009-11-15 23:12:43 +00008131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008132$as_echo "no, using $LN_S" >&6; }
8133fi
8134
cristy8d0ff762013-03-10 20:33:28 +00008135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8136$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8137if ${ac_cv_path_SED+:} false; then :
8138 $as_echo_n "(cached) " >&6
8139else
8140 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8141 for ac_i in 1 2 3 4 5 6 7; do
8142 ac_script="$ac_script$as_nl$ac_script"
8143 done
8144 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8145 { ac_script=; unset ac_script;}
8146 if test -z "$SED"; then
8147 ac_path_SED_found=false
8148 # Loop through the user's path and test for each of PROGNAME-LIST
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150for as_dir in $PATH
8151do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_prog in sed gsed; do
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8157 as_fn_executable_p "$ac_path_SED" || continue
8158# Check for GNU ac_path_SED and select it if it is found.
8159 # Check for GNU $ac_path_SED
8160case `"$ac_path_SED" --version 2>&1` in
8161*GNU*)
8162 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8163*)
8164 ac_count=0
8165 $as_echo_n 0123456789 >"conftest.in"
8166 while :
8167 do
8168 cat "conftest.in" "conftest.in" >"conftest.tmp"
8169 mv "conftest.tmp" "conftest.in"
8170 cp "conftest.in" "conftest.nl"
8171 $as_echo '' >> "conftest.nl"
8172 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8174 as_fn_arith $ac_count + 1 && ac_count=$as_val
8175 if test $ac_count -gt ${ac_path_SED_max-0}; then
8176 # Best one so far, save it but keep looking for a better one
8177 ac_cv_path_SED="$ac_path_SED"
8178 ac_path_SED_max=$ac_count
8179 fi
8180 # 10*(2^10) chars as input seems more than enough
8181 test $ac_count -gt 10 && break
8182 done
8183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8184esac
8185
8186 $ac_path_SED_found && break 3
8187 done
8188 done
8189 done
8190IFS=$as_save_IFS
8191 if test -z "$ac_cv_path_SED"; then
8192 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8193 fi
8194else
8195 ac_cv_path_SED=$SED
8196fi
8197
8198fi
8199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8200$as_echo "$ac_cv_path_SED" >&6; }
8201 SED="$ac_cv_path_SED"
8202 rm -f conftest.sed
8203
cristybc556452012-08-17 19:44:03 +00008204for ac_prog in gawk mawk nawk awk
8205do
8206 # Extract the first word of "$ac_prog", so it can be a program name with args.
8207set dummy $ac_prog; ac_word=$2
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209$as_echo_n "checking for $ac_word... " >&6; }
8210if ${ac_cv_prog_AWK+:} false; then :
8211 $as_echo_n "(cached) " >&6
8212else
8213 if test -n "$AWK"; then
8214 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8215else
8216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217for as_dir in $PATH
8218do
8219 IFS=$as_save_IFS
8220 test -z "$as_dir" && as_dir=.
8221 for ac_exec_ext in '' $ac_executable_extensions; do
8222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8223 ac_cv_prog_AWK="$ac_prog"
8224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8225 break 2
8226 fi
8227done
8228 done
8229IFS=$as_save_IFS
8230
8231fi
8232fi
8233AWK=$ac_cv_prog_AWK
8234if test -n "$AWK"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8236$as_echo "$AWK" >&6; }
8237else
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239$as_echo "no" >&6; }
8240fi
8241
8242
8243 test -n "$AWK" && break
8244done
8245
cristy73bd4a52010-10-05 11:24:23 +00008246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8247$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8248
8249# Check whether --with-dmalloc was given.
8250if test "${with_dmalloc+set}" = set; then :
8251 withval=$with_dmalloc; if test "$withval" = yes; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8253$as_echo "yes" >&6; }
8254
8255$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8256
8257 LIBS="$LIBS -ldmalloc"
8258 LDFLAGS="$LDFLAGS -g"
8259else
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261$as_echo "no" >&6; }
8262fi
8263else
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265$as_echo "no" >&6; }
8266fi
8267
8268
8269
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8271$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008272if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008273 $as_echo_n "(cached) " >&6
8274else
8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276/* end confdefs.h. */
8277#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008278 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008279 static void
8280 foo(void) {
8281 exit(1);
8282 }
8283
8284int
8285main ()
8286{
8287
8288 ;
8289 return 0;
8290}
8291_ACEOF
8292if ac_fn_c_try_compile "$LINENO"; then :
8293 ax_cv___attribute__=yes
8294else
8295 ax_cv___attribute__=no
8296
8297fi
8298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299
8300fi
8301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8302$as_echo "$ax_cv___attribute__" >&6; }
8303 if test "$ax_cv___attribute__" = "yes"; then
8304
8305$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8306
8307 fi
8308
8309
8310
cristya0459972013-11-03 18:09:35 +00008311
8312
8313# Check whether --with-gcc-arch was given.
8314if test "${with_gcc_arch+set}" = set; then :
8315 withval=$with_gcc_arch; ax_gcc_arch=$withval
8316else
8317 ax_gcc_arch=no
8318fi
8319
8320
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8322$as_echo_n "checking for gcc architecture flag... " >&6; }
8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8324$as_echo "" >&6; }
8325if ${ax_cv_gcc_archflag+:} false; then :
8326 $as_echo_n "(cached) " >&6
8327else
8328
8329ax_cv_gcc_archflag="unknown"
8330
8331if test "$GCC" = yes; then
8332
8333if test "x$ax_gcc_arch" = xyes; then
8334ax_gcc_arch=""
8335if test "$cross_compiling" = no; then
8336case $host_cpu in
8337 i[3456]86*|x86_64*) # use cpuid codes
8338
8339ac_ext=c
8340ac_cpp='$CPP $CPPFLAGS'
8341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8343ac_compiler_gnu=$ac_cv_c_compiler_gnu
8344
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8346$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8347if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349else
8350 if test "$cross_compiling" = yes; then :
8351 ax_cv_gcc_x86_cpuid_0=unknown
8352else
8353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354/* end confdefs.h. */
8355#include <stdio.h>
8356int
8357main ()
8358{
8359
8360 int op = 0, eax, ebx, ecx, edx;
8361 FILE *f;
8362 __asm__("cpuid"
8363 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8364 : "a" (op));
8365 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8366 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8367 fclose(f);
8368 return 0;
8369
8370 ;
8371 return 0;
8372}
8373_ACEOF
8374if ac_fn_c_try_run "$LINENO"; then :
8375 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8376else
8377 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8378fi
8379rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8380 conftest.$ac_objext conftest.beam conftest.$ac_ext
8381fi
8382
8383fi
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8385$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8386ac_ext=c
8387ac_cpp='$CPP $CPPFLAGS'
8388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8390ac_compiler_gnu=$ac_cv_c_compiler_gnu
8391
8392
8393
8394ac_ext=c
8395ac_cpp='$CPP $CPPFLAGS'
8396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8398ac_compiler_gnu=$ac_cv_c_compiler_gnu
8399
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8401$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8402if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8403 $as_echo_n "(cached) " >&6
8404else
8405 if test "$cross_compiling" = yes; then :
8406 ax_cv_gcc_x86_cpuid_1=unknown
8407else
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409/* end confdefs.h. */
8410#include <stdio.h>
8411int
8412main ()
8413{
8414
8415 int op = 1, eax, ebx, ecx, edx;
8416 FILE *f;
8417 __asm__("cpuid"
8418 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8419 : "a" (op));
8420 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8421 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8422 fclose(f);
8423 return 0;
8424
8425 ;
8426 return 0;
8427}
8428_ACEOF
8429if ac_fn_c_try_run "$LINENO"; then :
8430 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8431else
8432 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8433fi
8434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8435 conftest.$ac_objext conftest.beam conftest.$ac_ext
8436fi
8437
8438fi
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8440$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8441ac_ext=c
8442ac_cpp='$CPP $CPPFLAGS'
8443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8445ac_compiler_gnu=$ac_cv_c_compiler_gnu
8446
8447
8448 case $ax_cv_gcc_x86_cpuid_0 in
8449 *:756e6547:*:*) # Intel
8450 case $ax_cv_gcc_x86_cpuid_1 in
8451 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8452 *5??:*:*:*) ax_gcc_arch=pentium ;;
8453 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8454 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8455 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8456 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8457 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8458 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8459 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8460 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8461 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8462 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8463 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8464 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8465 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8466 case $host_cpu in
8467 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8468 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8469 esac ;;
8470 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8471 esac ;;
8472 *:68747541:*:*) # AMD
8473 case $ax_cv_gcc_x86_cpuid_1 in
8474 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8475 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8476 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8477 *60?:*:*:*) ax_gcc_arch=k7 ;;
8478 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8479 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8480 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8481 *6[68a]?:*:*:*)
8482
8483ac_ext=c
8484ac_cpp='$CPP $CPPFLAGS'
8485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8487ac_compiler_gnu=$ac_cv_c_compiler_gnu
8488
8489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8490$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8491if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8492 $as_echo_n "(cached) " >&6
8493else
8494 if test "$cross_compiling" = yes; then :
8495 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8496else
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498/* end confdefs.h. */
8499#include <stdio.h>
8500int
8501main ()
8502{
8503
8504 int op = 0x80000006, eax, ebx, ecx, edx;
8505 FILE *f;
8506 __asm__("cpuid"
8507 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8508 : "a" (op));
8509 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8510 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8511 fclose(f);
8512 return 0;
8513
8514 ;
8515 return 0;
8516}
8517_ACEOF
8518if ac_fn_c_try_run "$LINENO"; then :
8519 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8520else
8521 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8522fi
8523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8524 conftest.$ac_objext conftest.beam conftest.$ac_ext
8525fi
8526
8527fi
8528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8529$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8530ac_ext=c
8531ac_cpp='$CPP $CPPFLAGS'
8532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8534ac_compiler_gnu=$ac_cv_c_compiler_gnu
8535
8536 # L2 cache size
8537 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8538 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8539 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8540 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8541 esac ;;
8542 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8543 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8544 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8545 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8546 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8547 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8548 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8549 esac ;;
8550 *:746e6543:*:*) # IDT
8551 case $ax_cv_gcc_x86_cpuid_1 in
8552 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8553 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8554 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8555 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8556 esac ;;
8557 esac
8558 if test x"$ax_gcc_arch" = x; then # fallback
8559 case $host_cpu in
8560 i586*) ax_gcc_arch=pentium ;;
8561 i686*) ax_gcc_arch=pentiumpro ;;
8562 esac
8563 fi
8564 ;;
8565
8566 sparc*)
8567 # Extract the first word of "prtdiag", so it can be a program name with args.
8568set dummy prtdiag; ac_word=$2
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8570$as_echo_n "checking for $ac_word... " >&6; }
8571if ${ac_cv_path_PRTDIAG+:} false; then :
8572 $as_echo_n "(cached) " >&6
8573else
8574 case $PRTDIAG in
8575 [\\/]* | ?:[\\/]*)
8576 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8577 ;;
8578 *)
8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8581for as_dir in $as_dummy
8582do
8583 IFS=$as_save_IFS
8584 test -z "$as_dir" && as_dir=.
8585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8587 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8589 break 2
8590 fi
8591done
8592 done
8593IFS=$as_save_IFS
8594
8595 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8596 ;;
8597esac
8598fi
8599PRTDIAG=$ac_cv_path_PRTDIAG
8600if test -n "$PRTDIAG"; then
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8602$as_echo "$PRTDIAG" >&6; }
8603else
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605$as_echo "no" >&6; }
8606fi
8607
8608
8609 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`
8610 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8611 case $cputype in
8612 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8613 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8614 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8615 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8616 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8617 *cypress*) ax_gcc_arch=cypress ;;
8618 esac ;;
8619
8620 alphaev5) ax_gcc_arch=ev5 ;;
8621 alphaev56) ax_gcc_arch=ev56 ;;
8622 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8623 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8624 alphaev6) ax_gcc_arch=ev6 ;;
8625 alphaev67) ax_gcc_arch=ev67 ;;
8626 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8627 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8628 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8629 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8630
8631 powerpc*)
8632 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`
8633 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8634 case $cputype in
8635 *750*) ax_gcc_arch="750 G3" ;;
8636 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8637 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8638 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8639 *970*) ax_gcc_arch="970 G5 power4";;
8640 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8641 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8642 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8643 *) ax_gcc_arch=$cputype ;;
8644 esac
8645 ax_gcc_arch="$ax_gcc_arch powerpc"
8646 ;;
8647esac
8648fi # not cross-compiling
8649fi # guess arch
8650
8651if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8652for arch in $ax_gcc_arch; do
8653 if test "xno" = xyes; then # if we require portable code
8654 flags="-mtune=$arch"
8655 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8656 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8657 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8658 else
8659 flags="-march=$arch -mcpu=$arch -m$arch"
8660 fi
8661 for flag in $flags; do
8662 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8664$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8665if eval \${$as_CACHEVAR+:} false; then :
8666 $as_echo_n "(cached) " >&6
8667else
8668
8669 ax_check_save_flags=$CFLAGS
8670 CFLAGS="$CFLAGS $flag"
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672/* end confdefs.h. */
8673
8674int
8675main ()
8676{
8677
8678 ;
8679 return 0;
8680}
8681_ACEOF
8682if ac_fn_c_try_compile "$LINENO"; then :
8683 eval "$as_CACHEVAR=yes"
8684else
8685 eval "$as_CACHEVAR=no"
8686fi
8687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8688 CFLAGS=$ax_check_save_flags
8689fi
8690eval ac_res=\$$as_CACHEVAR
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8692$as_echo "$ac_res" >&6; }
8693if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8694 ax_cv_gcc_archflag=$flag; break
8695else
8696 :
8697fi
8698
8699 done
8700 test "x$ax_cv_gcc_archflag" = xunknown || break
8701done
8702fi
8703
8704fi # $GCC=yes
8705
8706fi
8707
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8709$as_echo_n "checking for gcc architecture flag... " >&6; }
8710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8711$as_echo "$ax_cv_gcc_archflag" >&6; }
8712if test "x$ax_cv_gcc_archflag" = xunknown; then
8713 :
8714else
8715 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8716fi
8717
8718
8719
cristy73bd4a52010-10-05 11:24:23 +00008720if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8721 if test -n "$ac_tool_prefix"; then
8722 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8723set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008726if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008727 $as_echo_n "(cached) " >&6
8728else
8729 case $PKG_CONFIG in
8730 [\\/]* | ?:[\\/]*)
8731 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8732 ;;
8733 *)
8734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735for as_dir in $PATH
8736do
8737 IFS=$as_save_IFS
8738 test -z "$as_dir" && as_dir=.
8739 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008741 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8743 break 2
8744 fi
8745done
8746 done
8747IFS=$as_save_IFS
8748
8749 ;;
8750esac
8751fi
8752PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8753if test -n "$PKG_CONFIG"; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8755$as_echo "$PKG_CONFIG" >&6; }
8756else
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758$as_echo "no" >&6; }
8759fi
8760
8761
8762fi
8763if test -z "$ac_cv_path_PKG_CONFIG"; then
8764 ac_pt_PKG_CONFIG=$PKG_CONFIG
8765 # Extract the first word of "pkg-config", so it can be a program name with args.
8766set dummy pkg-config; ac_word=$2
8767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008769if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008770 $as_echo_n "(cached) " >&6
8771else
8772 case $ac_pt_PKG_CONFIG in
8773 [\\/]* | ?:[\\/]*)
8774 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8775 ;;
8776 *)
8777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778for as_dir in $PATH
8779do
8780 IFS=$as_save_IFS
8781 test -z "$as_dir" && as_dir=.
8782 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008784 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8786 break 2
8787 fi
8788done
8789 done
8790IFS=$as_save_IFS
8791
8792 ;;
8793esac
8794fi
8795ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8796if test -n "$ac_pt_PKG_CONFIG"; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8798$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8799else
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801$as_echo "no" >&6; }
8802fi
8803
8804 if test "x$ac_pt_PKG_CONFIG" = x; then
8805 PKG_CONFIG=""
8806 else
8807 case $cross_compiling:$ac_tool_warned in
8808yes:)
8809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8811ac_tool_warned=yes ;;
8812esac
8813 PKG_CONFIG=$ac_pt_PKG_CONFIG
8814 fi
8815else
8816 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8817fi
8818
8819fi
8820if test -n "$PKG_CONFIG"; then
8821 _pkg_min_version=0.9.0
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8823$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8824 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8826$as_echo "yes" >&6; }
8827 else
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829$as_echo "no" >&6; }
8830 PKG_CONFIG=""
8831 fi
8832
8833fi
cristy3ed852e2009-09-05 21:47:34 +00008834
cristyd95b7a52013-10-23 13:12:53 +00008835# Test for 64-bit build.
8836# The cast to long int works around a bug in the HP C Compiler
8837# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8838# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8839# This bug is HP SR number 8606223364.
8840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8841$as_echo_n "checking size of size_t... " >&6; }
8842if ${ac_cv_sizeof_size_t+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844else
8845 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
8846
8847else
8848 if test "$ac_cv_type_size_t" = yes; then
8849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8851as_fn_error 77 "cannot compute sizeof (size_t)
8852See \`config.log' for more details" "$LINENO" 5; }
8853 else
8854 ac_cv_sizeof_size_t=0
8855 fi
8856fi
8857
8858fi
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8860$as_echo "$ac_cv_sizeof_size_t" >&6; }
8861
8862
8863
8864cat >>confdefs.h <<_ACEOF
8865#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8866_ACEOF
8867
8868
8869
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8871$as_echo_n "checking for C compiler vendor... " >&6; }
8872if ${ax_cv_c_compiler_vendor+:} false; then :
8873 $as_echo_n "(cached) " >&6
8874else
8875 # note: don't check for gcc first since some other compilers define __GNUC__
8876 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8877 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8878 pathscale: __PATHCC__,__PATHSCALE__
8879 clang: __clang__
8880 gnu: __GNUC__
8881 sun: __SUNPRO_C,__SUNPRO_CC
8882 hp: __HP_cc,__HP_aCC
8883 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8884 borland: __BORLANDC__,__TURBOC__
8885 comeau: __COMO__
8886 cray: _CRAYC
8887 kai: __KCC
8888 lcc: __LCC__
8889 sgi: __sgi,sgi
8890 microsoft: _MSC_VER
8891 metrowerks: __MWERKS__
8892 watcom: __WATCOMC__
8893 portland: __PGI
8894 unknown: UNKNOWN"
8895 for ventest in $vendors; do
8896 case $ventest in
8897 *:) vendor=$ventest; continue ;;
8898 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8899 esac
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901/* end confdefs.h. */
8902
8903int
8904main ()
8905{
8906
8907 #if !($vencpp)
8908 thisisanerror;
8909 #endif
8910
8911 ;
8912 return 0;
8913}
8914_ACEOF
8915if ac_fn_c_try_compile "$LINENO"; then :
8916 break
8917fi
8918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919 done
8920 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8921
8922fi
8923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8924$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8925
cristyd95b7a52013-10-23 13:12:53 +00008926# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
8927# compiler.
8928if test "$ax_cv_c_compiler_vendor" != "sun"; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8930$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8931if ${ac_cv_cflags_warn_all+:} false; then :
8932 $as_echo_n "(cached) " >&6
8933else
8934 ac_cv_cflags_warn_all="no, unknown"
8935 ac_ext=c
8936ac_cpp='$CPP $CPPFLAGS'
8937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8939ac_compiler_gnu=$ac_cv_c_compiler_gnu
8940
8941 ac_save_CFLAGS="$CFLAGS"
8942for 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" #
8943do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945/* end confdefs.h. */
8946
8947int
8948main ()
8949{
8950
8951 ;
8952 return 0;
8953}
8954_ACEOF
8955if ac_fn_c_try_compile "$LINENO"; then :
8956 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8957fi
8958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959done
8960 CFLAGS="$ac_save_CFLAGS"
8961 ac_ext=c
8962ac_cpp='$CPP $CPPFLAGS'
8963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8965ac_compiler_gnu=$ac_cv_c_compiler_gnu
8966
8967
8968fi
8969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8970$as_echo "$ac_cv_cflags_warn_all" >&6; }
8971case ".$ac_cv_cflags_warn_all" in
8972 .ok|.ok,*) ;;
8973 .|.no|.no,*)
8974 ;;
8975 *)
8976 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8977 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8978 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8979 ac_status=$?
8980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8981 test $ac_status = 0; }
8982 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8983 (: CFLAGS="$CFLAGS $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 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8988 fi
8989 ;;
8990esac
8991
8992fi
8993
8994if test "x$GCC" = "xyes"; then
8995 CFLAGS="$CFLAGS -fexceptions"
8996 touch local.exp
8997else
8998 cat > local.exp <<EOF
8999set CC_FOR_TARGET "$CC"
9000EOF
9001fi
9002
cristy9b86f202012-11-28 21:55:35 +00009003# Check for linker script support
9004
9005 # Check whether --enable-ld-version-script was given.
9006if test "${enable_ld_version_script+set}" = set; then :
9007 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9008fi
9009
9010 if test -z "$have_ld_version_script"; then
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9012$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9013 save_LDFLAGS="$LDFLAGS"
9014 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9015 cat > conftest.map <<EOF
9016foo
9017EOF
9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019/* end confdefs.h. */
9020
9021int
9022main ()
9023{
9024
9025 ;
9026 return 0;
9027}
9028_ACEOF
9029if ac_fn_c_try_link "$LINENO"; then :
9030 accepts_syntax_errors=yes
9031else
9032 accepts_syntax_errors=no
9033fi
9034rm -f core conftest.err conftest.$ac_objext \
9035 conftest$ac_exeext conftest.$ac_ext
9036 if test "$accepts_syntax_errors" = no; then
9037 cat > conftest.map <<EOF
9038VERS_1 {
9039 global: sym;
9040};
9041
9042VERS_2 {
9043 global: sym;
9044} VERS_1;
9045EOF
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047/* end confdefs.h. */
9048
9049int
9050main ()
9051{
9052
9053 ;
9054 return 0;
9055}
9056_ACEOF
9057if ac_fn_c_try_link "$LINENO"; then :
9058 have_ld_version_script=yes
9059else
9060 have_ld_version_script=no
9061fi
9062rm -f core conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
9064 else
9065 have_ld_version_script=no
9066 fi
9067 rm -f conftest.map
9068 LDFLAGS="$save_LDFLAGS"
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9070$as_echo "$have_ld_version_script" >&6; }
9071 fi
9072 if test "$have_ld_version_script" = "yes"; then
9073 HAVE_LD_VERSION_SCRIPT_TRUE=
9074 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9075else
9076 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9077 HAVE_LD_VERSION_SCRIPT_FALSE=
9078fi
9079
9080
9081
cristy3ed852e2009-09-05 21:47:34 +00009082#
cristy3ed852e2009-09-05 21:47:34 +00009083# Enable run-time checking.
9084#
9085# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009086if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009087 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9088else
9089 enable_bounds_checking='no'
9090fi
9091
9092
9093if test "$enable_bounds_checking" = yes; then
9094
cristy8b350f62009-11-15 23:12:43 +00009095$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009096
9097fi
9098
9099#
9100# Tests for Windows
9101#
9102
9103
9104
9105GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009106native_win32_build='no'
9107cygwin_build='no'
9108case "${host_os}" in
9109 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009110 cygwin_build='yes'
9111 GDI32_LIBS='-lgdi32'
9112 ;;
9113 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009114 native_win32_build='yes'
9115 GDI32_LIBS='-lgdi32'
9116 ;;
9117esac
9118if test "${GDI32_LIBS}x" != 'x'; then
9119
cristy8b350f62009-11-15 23:12:43 +00009120$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009121
9122fi
9123
cristy73bd4a52010-10-05 11:24:23 +00009124 if test "${GDI32_LIBS}x" != 'x' ; then
9125 WINGDI32_DELEGATE_TRUE=
9126 WINGDI32_DELEGATE_FALSE='#'
9127else
9128 WINGDI32_DELEGATE_TRUE='#'
9129 WINGDI32_DELEGATE_FALSE=
9130fi
9131
9132 if test "${native_win32_build}" = 'yes' ; then
9133 WIN32_NATIVE_BUILD_TRUE=
9134 WIN32_NATIVE_BUILD_FALSE='#'
9135else
9136 WIN32_NATIVE_BUILD_TRUE='#'
9137 WIN32_NATIVE_BUILD_FALSE=
9138fi
9139
9140 if test "${cygwin_build}" = 'yes' ; then
9141 CYGWIN_BUILD_TRUE=
9142 CYGWIN_BUILD_FALSE='#'
9143else
9144 CYGWIN_BUILD_TRUE='#'
9145 CYGWIN_BUILD_FALSE=
9146fi
9147
9148 if test "x${CC}" = 'xcl.exe' ; then
9149 USING_CL_TRUE=
9150 USING_CL_FALSE='#'
9151else
9152 USING_CL_TRUE='#'
9153 USING_CL_FALSE=
9154fi
9155
cristy3ed852e2009-09-05 21:47:34 +00009156
9157WinPathScript="${srcdirfull}/winpath.sh"
9158
9159
9160#
9161# Compiler flags tweaks
9162#
9163if test "${GCC}" != "yes"; then
9164 case "${host}" in
9165 *-*-hpux* )
9166 # aCC: HP ANSI C++ B3910B A.03.34
9167 CFLAGS="${CFLAGS} -Wp,-H30000"
9168 if test -n "${CXXFLAGS}"; then
9169 CXXFLAGS='-AA'
9170 else
9171 CXXFLAGS="${CXXFLAGS} -AA"
9172 fi
9173 ;;
9174 *-dec-osf5.* )
9175 # Compaq alphaev68-dec-osf5.1 compiler
9176 if test -n "${CXXFLAGS}"; then
9177 CXXFLAGS='-std strict_ansi -noimplicit_include'
9178 else
9179 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9180 fi
9181 esac
9182fi
9183
9184# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009186$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009187if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009188 $as_echo_n "(cached) " >&6
9189else
9190
9191im_cv_ld_lazyload='none'
9192case "${host}" in
9193 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9194 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9195 im_cv_ld_lazyload='-Wl,-zlazyload'
9196 fi
9197 ;;
9198esac
9199
9200fi
cristy8b350f62009-11-15 23:12:43 +00009201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009202$as_echo "$im_cv_ld_lazyload" >&6; }
9203if test "${im_cv_ld_lazyload}" != 'none' ; then
9204 if test -z "${LDFLAGS}" ; then
9205 LDFLAGS="${im_cv_ld_lazyload}"
9206 else
9207 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9208 fi
9209fi
9210
9211case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009212 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009213 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009214 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009215if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009216 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9217else
9218 build_osxuniversal=no
9219fi
9220
9221
cristyc37574e2013-02-16 01:04:55 +00009222 if test "${build_osxuniversal}" != no ; then
9223 if test "$enable_dependency_tracking" != no ; then
9224 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009225Please re-run configure with these options:
9226 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009227 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009228 fi
9229 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9230 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9231 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009232 fi
9233 ;;
9234esac
9235
cristy0151ae12011-10-28 16:32:29 +00009236#
9237# ARCH specific include directory
9238#
9239
cristy670aa3c2011-11-03 00:54:00 +00009240# Check whether --with-includearch-dir was given.
9241if test "${with_includearch_dir+set}" = set; then :
9242 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009243else
cristy670aa3c2011-11-03 00:54:00 +00009244 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009245fi
9246
9247
cristyd286fd72013-02-24 19:25:33 +00009248eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009249
cristy0151ae12011-10-28 16:32:29 +00009250
9251#
9252# ARCH specific configuration directory
9253#
9254
cristy670aa3c2011-11-03 00:54:00 +00009255# Check whether --with-sharearch-dir was given.
9256if test "${with_sharearch_dir+set}" = set; then :
9257 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009258else
cristy408ebcd2011-11-14 01:36:57 +00009259 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009260fi
9261
9262
cristy670aa3c2011-11-03 00:54:00 +00009263eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009264
cristy0151ae12011-10-28 16:32:29 +00009265
cristy2ec87cc2013-02-18 17:46:50 +00009266# Path to the pkgconfig folder
9267
9268# Check whether --with-pkgconfigdir was given.
9269if test "${with_pkgconfigdir+set}" = set; then :
9270 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9271else
9272 pkgconfigdir='${libdir}/pkgconfig'
9273fi
9274
9275
9276
cristy0151ae12011-10-28 16:32:29 +00009277#
cristy3ed852e2009-09-05 21:47:34 +00009278# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009279#
9280# Find Posix threads library
9281#
cristy3ed852e2009-09-05 21:47:34 +00009282
9283# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009284if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009285 withval=$with_threads; with_threads=$withval
9286else
9287 with_threads='yes'
9288fi
9289
9290
cristy1ae5c992013-07-30 14:55:07 +00009291THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009292have_threads=no
9293if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009294
9295
cristy73bd4a52010-10-05 11:24:23 +00009296ac_ext=c
9297ac_cpp='$CPP $CPPFLAGS'
9298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9300ac_compiler_gnu=$ac_cv_c_compiler_gnu
9301
9302ax_pthread_ok=no
9303
9304# We used to check for pthread.h first, but this fails if pthread.h
9305# requires special compiler flags (e.g. on True64 or Sequent).
9306# It gets checked for in the link test anyway.
9307
9308# First of all, check if the user has set any of the PTHREAD_LIBS,
9309# etcetera environment variables, and if threads linking works using
9310# them:
9311if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9312 save_CFLAGS="$CFLAGS"
9313 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9314 save_LIBS="$LIBS"
9315 LIBS="$PTHREAD_LIBS $LIBS"
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9317$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319/* end confdefs.h. */
9320
9321/* Override any GCC internal prototype to avoid an error.
9322 Use char because int might match the return type of a GCC
9323 builtin and then its argument prototype would still apply. */
9324#ifdef __cplusplus
9325extern "C"
9326#endif
9327char pthread_join ();
9328int
9329main ()
9330{
9331return pthread_join ();
9332 ;
9333 return 0;
9334}
9335_ACEOF
9336if ac_fn_c_try_link "$LINENO"; then :
9337 ax_pthread_ok=yes
9338fi
9339rm -f core conftest.err conftest.$ac_objext \
9340 conftest$ac_exeext conftest.$ac_ext
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9342$as_echo "$ax_pthread_ok" >&6; }
9343 if test x"$ax_pthread_ok" = xno; then
9344 PTHREAD_LIBS=""
9345 PTHREAD_CFLAGS=""
9346 fi
9347 LIBS="$save_LIBS"
9348 CFLAGS="$save_CFLAGS"
9349fi
9350
9351# We must check for the threads library under a number of different
9352# names; the ordering is very important because some systems
9353# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9354# libraries is broken (non-POSIX).
9355
9356# Create a list of thread flags to try. Items starting with a "-" are
9357# C compiler flags, and other items are library names, except for "none"
9358# which indicates that we try without any flags at all, and "pthread-config"
9359# which is a program returning the flags for the Pth emulation library.
9360
cristy2ec87cc2013-02-18 17:46:50 +00009361ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009362
9363# The ordering *is* (sometimes) important. Some notes on the
9364# individual items follow:
9365
9366# pthreads: AIX (must check this before -lpthread)
9367# none: in case threads are in libc; should be tried before -Kthread and
9368# other compiler flags to prevent continual compiler warnings
9369# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9370# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9371# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9372# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9373# -pthreads: Solaris/gcc
9374# -mthreads: Mingw32/gcc, Lynx/gcc
9375# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9376# doesn't hurt to check since this sometimes defines pthreads too;
9377# also defines -D_REENTRANT)
9378# ... -mt is also the pthreads flag for HP/aCC
9379# pthread: Linux, etcetera
9380# --thread-safe: KAI C++
9381# pthread-config: use pthread-config program (for GNU Pth library)
9382
cristy2ec87cc2013-02-18 17:46:50 +00009383case ${host_os} in
9384 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009385
9386 # On Solaris (at least, for some versions), libc contains stubbed
9387 # (non-functional) versions of the pthreads routines, so link-based
9388 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9389 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9390 # a function called by this macro, so we could check for that, but
9391 # who knows whether they'll stub that too in a future libc.) So,
9392 # we'll just look for -pthreads and -lpthread first:
9393
9394 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9395 ;;
9396
cristy2ec87cc2013-02-18 17:46:50 +00009397 darwin*)
cristya316db12011-10-24 00:49:45 +00009398 ax_pthread_flags="-pthread $ax_pthread_flags"
9399 ;;
cristy73bd4a52010-10-05 11:24:23 +00009400esac
9401
9402if test x"$ax_pthread_ok" = xno; then
9403for flag in $ax_pthread_flags; do
9404
9405 case $flag in
9406 none)
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9408$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9409 ;;
9410
9411 -*)
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9413$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9414 PTHREAD_CFLAGS="$flag"
9415 ;;
9416
cristya316db12011-10-24 00:49:45 +00009417 pthread-config)
9418 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009419set dummy pthread-config; ac_word=$2
9420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009422if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009423 $as_echo_n "(cached) " >&6
9424else
9425 if test -n "$ax_pthread_config"; then
9426 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9427else
9428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429for as_dir in $PATH
9430do
9431 IFS=$as_save_IFS
9432 test -z "$as_dir" && as_dir=.
9433 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009435 ac_cv_prog_ax_pthread_config="yes"
9436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9437 break 2
9438 fi
9439done
9440 done
9441IFS=$as_save_IFS
9442
9443 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9444fi
9445fi
9446ax_pthread_config=$ac_cv_prog_ax_pthread_config
9447if test -n "$ax_pthread_config"; then
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9449$as_echo "$ax_pthread_config" >&6; }
9450else
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452$as_echo "no" >&6; }
9453fi
9454
9455
cristya316db12011-10-24 00:49:45 +00009456 if test x"$ax_pthread_config" = xno; then continue; fi
9457 PTHREAD_CFLAGS="`pthread-config --cflags`"
9458 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9459 ;;
cristy73bd4a52010-10-05 11:24:23 +00009460
9461 *)
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9463$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9464 PTHREAD_LIBS="-l$flag"
9465 ;;
9466 esac
9467
9468 save_LIBS="$LIBS"
9469 save_CFLAGS="$CFLAGS"
9470 LIBS="$PTHREAD_LIBS $LIBS"
9471 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9472
9473 # Check for various functions. We must include pthread.h,
9474 # since some functions may be macros. (On the Sequent, we
9475 # need a special flag -Kthread to make this header compile.)
9476 # We check for pthread_join because it is in -lpthread on IRIX
9477 # while pthread_create is in libc. We check for pthread_attr_init
9478 # due to DEC craziness with -lpthreads. We check for
9479 # pthread_cleanup_push because it is one of the few pthread
9480 # functions on Solaris that doesn't have a non-functional libc stub.
9481 # We try pthread_create on general principles.
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483/* end confdefs.h. */
9484#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009485 static void routine(void *a) { a = 0; }
9486 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009487int
9488main ()
9489{
9490pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009491 pthread_create(&th, 0, start_routine, 0);
9492 pthread_join(th, 0);
9493 pthread_attr_init(&attr);
9494 pthread_cleanup_push(routine, 0);
9495 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009496 ;
9497 return 0;
9498}
9499_ACEOF
9500if ac_fn_c_try_link "$LINENO"; then :
9501 ax_pthread_ok=yes
9502fi
9503rm -f core conftest.err conftest.$ac_objext \
9504 conftest$ac_exeext conftest.$ac_ext
9505
9506 LIBS="$save_LIBS"
9507 CFLAGS="$save_CFLAGS"
9508
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9510$as_echo "$ax_pthread_ok" >&6; }
9511 if test "x$ax_pthread_ok" = xyes; then
9512 break;
9513 fi
9514
9515 PTHREAD_LIBS=""
9516 PTHREAD_CFLAGS=""
9517done
9518fi
9519
9520# Various other checks:
9521if test "x$ax_pthread_ok" = xyes; then
9522 save_LIBS="$LIBS"
9523 LIBS="$PTHREAD_LIBS $LIBS"
9524 save_CFLAGS="$CFLAGS"
9525 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9526
9527 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009529$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009530 attr_name=unknown
9531 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009533/* end confdefs.h. */
9534#include <pthread.h>
9535int
9536main ()
9537{
cristya316db12011-10-24 00:49:45 +00009538int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009539 ;
9540 return 0;
9541}
9542_ACEOF
9543if ac_fn_c_try_link "$LINENO"; then :
9544 attr_name=$attr; break
9545fi
9546rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009548 done
cristy73bd4a52010-10-05 11:24:23 +00009549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9550$as_echo "$attr_name" >&6; }
9551 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9552
9553cat >>confdefs.h <<_ACEOF
9554#define PTHREAD_CREATE_JOINABLE $attr_name
9555_ACEOF
9556
9557 fi
9558
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9560$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9561 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009562 case ${host_os} in
9563 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9564 osf* | hpux*) flag="-D_REENTRANT";;
9565 solaris*)
9566 if test "$GCC" = "yes"; then
9567 flag="-D_REENTRANT"
9568 else
9569 flag="-mt -D_REENTRANT"
9570 fi
9571 ;;
cristy73bd4a52010-10-05 11:24:23 +00009572 esac
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9574$as_echo "${flag}" >&6; }
9575 if test "x$flag" != xno; then
9576 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9577 fi
9578
cristya316db12011-10-24 00:49:45 +00009579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9580$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9581if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9582 $as_echo_n "(cached) " >&6
9583else
9584
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586/* end confdefs.h. */
9587
9588 #include <pthread.h>
9589int
9590main ()
9591{
9592int i = PTHREAD_PRIO_INHERIT;
9593 ;
9594 return 0;
9595}
9596_ACEOF
9597if ac_fn_c_try_link "$LINENO"; then :
9598 ax_cv_PTHREAD_PRIO_INHERIT=yes
9599else
9600 ax_cv_PTHREAD_PRIO_INHERIT=no
9601fi
9602rm -f core conftest.err conftest.$ac_objext \
9603 conftest$ac_exeext conftest.$ac_ext
9604
9605fi
9606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9607$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9608 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9609
9610$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9611
9612fi
9613
cristy73bd4a52010-10-05 11:24:23 +00009614 LIBS="$save_LIBS"
9615 CFLAGS="$save_CFLAGS"
9616
cristy23493c42013-04-11 16:04:59 +00009617 # More AIX lossage: compile with *_r variant
9618 if test "x$GCC" != xyes; then
9619 case $host_os in
9620 aix*)
9621 case "x/$CC" in #(
9622 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9623 #handle absolute path differently from PATH based program lookup
9624 case "x$CC" in #(
9625 x/*) :
9626 if as_fn_executable_p ${CC}_r; then :
9627 PTHREAD_CC="${CC}_r"
9628fi ;; #(
9629 *) :
9630 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009631do
9632 # Extract the first word of "$ac_prog", so it can be a program name with args.
9633set dummy $ac_prog; ac_word=$2
9634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9635$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009636if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009637 $as_echo_n "(cached) " >&6
9638else
9639 if test -n "$PTHREAD_CC"; then
9640 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9641else
9642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9643for as_dir in $PATH
9644do
9645 IFS=$as_save_IFS
9646 test -z "$as_dir" && as_dir=.
9647 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009649 ac_cv_prog_PTHREAD_CC="$ac_prog"
9650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9651 break 2
9652 fi
9653done
9654 done
9655IFS=$as_save_IFS
9656
9657fi
9658fi
9659PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9660if test -n "$PTHREAD_CC"; then
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9662$as_echo "$PTHREAD_CC" >&6; }
9663else
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9665$as_echo "no" >&6; }
9666fi
9667
9668
9669 test -n "$PTHREAD_CC" && break
9670done
cristy23493c42013-04-11 16:04:59 +00009671test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9672 ;;
9673esac ;; #(
9674 *) :
9675 ;;
9676esac
9677 ;;
9678 esac
cristya316db12011-10-24 00:49:45 +00009679 fi
cristy73bd4a52010-10-05 11:24:23 +00009680fi
9681
cristy23493c42013-04-11 16:04:59 +00009682test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9683
cristy73bd4a52010-10-05 11:24:23 +00009684
9685
9686
9687
9688# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9689if test x"$ax_pthread_ok" = xyes; then
9690
9691$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9692
9693 :
9694else
9695 ax_pthread_ok=no
9696
9697fi
9698ac_ext=c
9699ac_cpp='$CPP $CPPFLAGS'
9700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9702ac_compiler_gnu=$ac_cv_c_compiler_gnu
9703
9704
cristy7acf8fb2010-09-23 19:58:53 +00009705 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009706 have_threads=yes
9707 DEF_THREAD="$PTHREAD_CFLAGS"
9708 CFLAGS="$CFLAGS $DEF_THREAD"
9709 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009710 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009711 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009712 { $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 +00009713$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9714 CC="$PTHREAD_CC"
9715 fi
cristy55bf91c2010-09-24 00:29:41 +00009716
9717$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9718
cristy3ed852e2009-09-05 21:47:34 +00009719 fi
9720fi
cristy1ae5c992013-07-30 14:55:07 +00009721LIBS="$LIBS $THREAD_LIBS"
9722
cristy3ed852e2009-09-05 21:47:34 +00009723
9724# Enable support for OpenMP
9725if test "$have_threads" != 'yes'; then
9726 ac_cv_prog_c_openmp=unsupported
9727fi
9728
9729 OPENMP_CFLAGS=
9730 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009731if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009732 enableval=$enable_openmp;
9733fi
9734
9735 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009737$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009738if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009739 $as_echo_n "(cached) " >&6
9740else
cristy8b350f62009-11-15 23:12:43 +00009741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009743
9744#ifndef _OPENMP
9745 choke me
9746#endif
9747#include <omp.h>
9748int main () { return omp_get_num_threads (); }
9749
9750_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009751if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009752 ac_cv_prog_c_openmp='none needed'
9753else
cristy8b350f62009-11-15 23:12:43 +00009754 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009755 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9756 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009757 ac_save_CFLAGS=$CFLAGS
9758 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009761
9762#ifndef _OPENMP
9763 choke me
9764#endif
9765#include <omp.h>
9766int main () { return omp_get_num_threads (); }
9767
9768_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009769if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009770 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009771fi
cristy8b350f62009-11-15 23:12:43 +00009772rm -f core conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009774 CFLAGS=$ac_save_CFLAGS
9775 if test "$ac_cv_prog_c_openmp" != unsupported; then
9776 break
9777 fi
9778 done
9779fi
cristy8b350f62009-11-15 23:12:43 +00009780rm -f core conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009782fi
cristy8b350f62009-11-15 23:12:43 +00009783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009784$as_echo "$ac_cv_prog_c_openmp" >&6; }
9785 case $ac_cv_prog_c_openmp in #(
9786 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009787 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009788 *)
cristy8b350f62009-11-15 23:12:43 +00009789 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009790 esac
9791 fi
9792
9793
9794CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9795MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9796
cristy391f1ce2010-09-09 17:23:28 +00009797if test "$enable_openmp" != no; then
9798 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9799 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9800 fi
9801fi
cristy3ed852e2009-09-05 21:47:34 +00009802
cristy736173a2009-09-20 21:18:22 +00009803# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009804
9805
cristy73bd4a52010-10-05 11:24:23 +00009806ac_ext=c
9807ac_cpp='$CPP $CPPFLAGS'
9808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9810ac_compiler_gnu=$ac_cv_c_compiler_gnu
9811
9812ax_pthread_ok=no
9813
9814# We used to check for pthread.h first, but this fails if pthread.h
9815# requires special compiler flags (e.g. on True64 or Sequent).
9816# It gets checked for in the link test anyway.
9817
9818# First of all, check if the user has set any of the PTHREAD_LIBS,
9819# etcetera environment variables, and if threads linking works using
9820# them:
9821if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9822 save_CFLAGS="$CFLAGS"
9823 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9824 save_LIBS="$LIBS"
9825 LIBS="$PTHREAD_LIBS $LIBS"
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9827$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829/* end confdefs.h. */
9830
9831/* Override any GCC internal prototype to avoid an error.
9832 Use char because int might match the return type of a GCC
9833 builtin and then its argument prototype would still apply. */
9834#ifdef __cplusplus
9835extern "C"
9836#endif
9837char pthread_join ();
9838int
9839main ()
9840{
9841return pthread_join ();
9842 ;
9843 return 0;
9844}
9845_ACEOF
9846if ac_fn_c_try_link "$LINENO"; then :
9847 ax_pthread_ok=yes
9848fi
9849rm -f core conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9852$as_echo "$ax_pthread_ok" >&6; }
9853 if test x"$ax_pthread_ok" = xno; then
9854 PTHREAD_LIBS=""
9855 PTHREAD_CFLAGS=""
9856 fi
9857 LIBS="$save_LIBS"
9858 CFLAGS="$save_CFLAGS"
9859fi
9860
9861# We must check for the threads library under a number of different
9862# names; the ordering is very important because some systems
9863# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9864# libraries is broken (non-POSIX).
9865
9866# Create a list of thread flags to try. Items starting with a "-" are
9867# C compiler flags, and other items are library names, except for "none"
9868# which indicates that we try without any flags at all, and "pthread-config"
9869# which is a program returning the flags for the Pth emulation library.
9870
cristy2ec87cc2013-02-18 17:46:50 +00009871ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009872
9873# The ordering *is* (sometimes) important. Some notes on the
9874# individual items follow:
9875
9876# pthreads: AIX (must check this before -lpthread)
9877# none: in case threads are in libc; should be tried before -Kthread and
9878# other compiler flags to prevent continual compiler warnings
9879# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9880# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9881# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9882# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9883# -pthreads: Solaris/gcc
9884# -mthreads: Mingw32/gcc, Lynx/gcc
9885# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9886# doesn't hurt to check since this sometimes defines pthreads too;
9887# also defines -D_REENTRANT)
9888# ... -mt is also the pthreads flag for HP/aCC
9889# pthread: Linux, etcetera
9890# --thread-safe: KAI C++
9891# pthread-config: use pthread-config program (for GNU Pth library)
9892
cristy2ec87cc2013-02-18 17:46:50 +00009893case ${host_os} in
9894 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009895
9896 # On Solaris (at least, for some versions), libc contains stubbed
9897 # (non-functional) versions of the pthreads routines, so link-based
9898 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9899 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9900 # a function called by this macro, so we could check for that, but
9901 # who knows whether they'll stub that too in a future libc.) So,
9902 # we'll just look for -pthreads and -lpthread first:
9903
9904 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9905 ;;
9906
cristy2ec87cc2013-02-18 17:46:50 +00009907 darwin*)
cristya316db12011-10-24 00:49:45 +00009908 ax_pthread_flags="-pthread $ax_pthread_flags"
9909 ;;
cristy73bd4a52010-10-05 11:24:23 +00009910esac
9911
9912if test x"$ax_pthread_ok" = xno; then
9913for flag in $ax_pthread_flags; do
9914
9915 case $flag in
9916 none)
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9918$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9919 ;;
9920
9921 -*)
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9923$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9924 PTHREAD_CFLAGS="$flag"
9925 ;;
9926
cristya316db12011-10-24 00:49:45 +00009927 pthread-config)
9928 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009929set dummy pthread-config; ac_word=$2
9930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9931$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009932if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009933 $as_echo_n "(cached) " >&6
9934else
9935 if test -n "$ax_pthread_config"; then
9936 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9937else
9938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9939for as_dir in $PATH
9940do
9941 IFS=$as_save_IFS
9942 test -z "$as_dir" && as_dir=.
9943 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009945 ac_cv_prog_ax_pthread_config="yes"
9946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9947 break 2
9948 fi
9949done
9950 done
9951IFS=$as_save_IFS
9952
9953 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9954fi
9955fi
9956ax_pthread_config=$ac_cv_prog_ax_pthread_config
9957if test -n "$ax_pthread_config"; then
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9959$as_echo "$ax_pthread_config" >&6; }
9960else
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962$as_echo "no" >&6; }
9963fi
9964
9965
cristya316db12011-10-24 00:49:45 +00009966 if test x"$ax_pthread_config" = xno; then continue; fi
9967 PTHREAD_CFLAGS="`pthread-config --cflags`"
9968 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9969 ;;
cristy73bd4a52010-10-05 11:24:23 +00009970
9971 *)
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9973$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9974 PTHREAD_LIBS="-l$flag"
9975 ;;
9976 esac
9977
9978 save_LIBS="$LIBS"
9979 save_CFLAGS="$CFLAGS"
9980 LIBS="$PTHREAD_LIBS $LIBS"
9981 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9982
9983 # Check for various functions. We must include pthread.h,
9984 # since some functions may be macros. (On the Sequent, we
9985 # need a special flag -Kthread to make this header compile.)
9986 # We check for pthread_join because it is in -lpthread on IRIX
9987 # while pthread_create is in libc. We check for pthread_attr_init
9988 # due to DEC craziness with -lpthreads. We check for
9989 # pthread_cleanup_push because it is one of the few pthread
9990 # functions on Solaris that doesn't have a non-functional libc stub.
9991 # We try pthread_create on general principles.
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993/* end confdefs.h. */
9994#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009995 static void routine(void *a) { a = 0; }
9996 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009997int
9998main ()
9999{
10000pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010001 pthread_create(&th, 0, start_routine, 0);
10002 pthread_join(th, 0);
10003 pthread_attr_init(&attr);
10004 pthread_cleanup_push(routine, 0);
10005 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010006 ;
10007 return 0;
10008}
10009_ACEOF
10010if ac_fn_c_try_link "$LINENO"; then :
10011 ax_pthread_ok=yes
10012fi
10013rm -f core conftest.err conftest.$ac_objext \
10014 conftest$ac_exeext conftest.$ac_ext
10015
10016 LIBS="$save_LIBS"
10017 CFLAGS="$save_CFLAGS"
10018
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10020$as_echo "$ax_pthread_ok" >&6; }
10021 if test "x$ax_pthread_ok" = xyes; then
10022 break;
10023 fi
10024
10025 PTHREAD_LIBS=""
10026 PTHREAD_CFLAGS=""
10027done
10028fi
10029
10030# Various other checks:
10031if test "x$ax_pthread_ok" = xyes; then
10032 save_LIBS="$LIBS"
10033 LIBS="$PTHREAD_LIBS $LIBS"
10034 save_CFLAGS="$CFLAGS"
10035 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10036
10037 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010039$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010040 attr_name=unknown
10041 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010043/* end confdefs.h. */
10044#include <pthread.h>
10045int
10046main ()
10047{
cristya316db12011-10-24 00:49:45 +000010048int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010049 ;
10050 return 0;
10051}
10052_ACEOF
10053if ac_fn_c_try_link "$LINENO"; then :
10054 attr_name=$attr; break
10055fi
10056rm -f core conftest.err conftest.$ac_objext \
10057 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010058 done
cristy73bd4a52010-10-05 11:24:23 +000010059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10060$as_echo "$attr_name" >&6; }
10061 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10062
10063cat >>confdefs.h <<_ACEOF
10064#define PTHREAD_CREATE_JOINABLE $attr_name
10065_ACEOF
10066
10067 fi
10068
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10070$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10071 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010072 case ${host_os} in
10073 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10074 osf* | hpux*) flag="-D_REENTRANT";;
10075 solaris*)
10076 if test "$GCC" = "yes"; then
10077 flag="-D_REENTRANT"
10078 else
10079 flag="-mt -D_REENTRANT"
10080 fi
10081 ;;
cristy73bd4a52010-10-05 11:24:23 +000010082 esac
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
10084$as_echo "${flag}" >&6; }
10085 if test "x$flag" != xno; then
10086 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10087 fi
10088
cristya316db12011-10-24 00:49:45 +000010089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10090$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10091if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10092 $as_echo_n "(cached) " >&6
10093else
10094
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096/* end confdefs.h. */
10097
10098 #include <pthread.h>
10099int
10100main ()
10101{
10102int i = PTHREAD_PRIO_INHERIT;
10103 ;
10104 return 0;
10105}
10106_ACEOF
10107if ac_fn_c_try_link "$LINENO"; then :
10108 ax_cv_PTHREAD_PRIO_INHERIT=yes
10109else
10110 ax_cv_PTHREAD_PRIO_INHERIT=no
10111fi
10112rm -f core conftest.err conftest.$ac_objext \
10113 conftest$ac_exeext conftest.$ac_ext
10114
10115fi
10116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10117$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10118 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10119
10120$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10121
10122fi
10123
cristy73bd4a52010-10-05 11:24:23 +000010124 LIBS="$save_LIBS"
10125 CFLAGS="$save_CFLAGS"
10126
cristy23493c42013-04-11 16:04:59 +000010127 # More AIX lossage: compile with *_r variant
10128 if test "x$GCC" != xyes; then
10129 case $host_os in
10130 aix*)
10131 case "x/$CC" in #(
10132 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10133 #handle absolute path differently from PATH based program lookup
10134 case "x$CC" in #(
10135 x/*) :
10136 if as_fn_executable_p ${CC}_r; then :
10137 PTHREAD_CC="${CC}_r"
10138fi ;; #(
10139 *) :
10140 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010141do
10142 # Extract the first word of "$ac_prog", so it can be a program name with args.
10143set dummy $ac_prog; ac_word=$2
10144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010146if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010147 $as_echo_n "(cached) " >&6
10148else
10149 if test -n "$PTHREAD_CC"; then
10150 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10151else
10152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153for as_dir in $PATH
10154do
10155 IFS=$as_save_IFS
10156 test -z "$as_dir" && as_dir=.
10157 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010159 ac_cv_prog_PTHREAD_CC="$ac_prog"
10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161 break 2
10162 fi
10163done
10164 done
10165IFS=$as_save_IFS
10166
10167fi
10168fi
10169PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10170if test -n "$PTHREAD_CC"; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10172$as_echo "$PTHREAD_CC" >&6; }
10173else
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175$as_echo "no" >&6; }
10176fi
10177
10178
10179 test -n "$PTHREAD_CC" && break
10180done
cristy23493c42013-04-11 16:04:59 +000010181test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10182 ;;
10183esac ;; #(
10184 *) :
10185 ;;
10186esac
10187 ;;
10188 esac
cristya316db12011-10-24 00:49:45 +000010189 fi
cristy73bd4a52010-10-05 11:24:23 +000010190fi
10191
cristy23493c42013-04-11 16:04:59 +000010192test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10193
cristy73bd4a52010-10-05 11:24:23 +000010194
10195
10196
10197
10198# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10199if test x"$ax_pthread_ok" = xyes; then
10200
10201$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10202
10203 :
10204else
10205 ax_pthread_ok=no
10206
10207fi
10208ac_ext=c
10209ac_cpp='$CPP $CPPFLAGS'
10210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10212ac_compiler_gnu=$ac_cv_c_compiler_gnu
10213
10214
10215
10216# Check whether --enable-opencl was given.
10217if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010218 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010219else
cristy48794642012-09-02 15:19:08 +000010220 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010221fi
10222
10223
cristy48794642012-09-02 15:19:08 +000010224if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010225 ac_ext=c
10226ac_cpp='$CPP $CPPFLAGS'
10227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10229ac_compiler_gnu=$ac_cv_c_compiler_gnu
10230
cristy75314cc2012-09-15 23:08:29 +000010231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10232$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10233if ${ax_cv_c_compiler_ms+:} false; then :
10234 $as_echo_n "(cached) " >&6
10235else
10236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237/* end confdefs.h. */
10238
10239int
10240main ()
10241{
10242#ifndef _MSC_VER
10243 choke me
10244#endif
10245
10246 ;
10247 return 0;
10248}
10249_ACEOF
10250if ac_fn_c_try_compile "$LINENO"; then :
10251 ax_compiler_ms=yes
10252else
10253 ax_compiler_ms=no
10254fi
10255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10256ax_cv_c_compiler_ms=$ax_compiler_ms
10257
10258fi
10259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10260$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010261 if test X$ax_compiler_ms = Xno; then :
10262 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10263fi
10264
10265 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010266 ax_save_CL_CFLAGS=$CL_CFLAGS
10267
10268 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010269 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10270 for ac_header in CL/cl.h OpenCL/cl.h
10271do :
10272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10273ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010274if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010275 cat >>confdefs.h <<_ACEOF
10276#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10277_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010278 found_opencl_header='yes'
10279 break;
10280else
10281 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010282fi
10283
10284done
10285
cristyfdc7d122013-08-17 20:46:45 +000010286
10287 if test X$found_opencl_header = Xno; then :
10288 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10289 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10290 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10291 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10292 for ac_header in CL/cl.h OpenCL/cl.h
10293do :
10294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10295ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10296if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10297 cat >>confdefs.h <<_ACEOF
10298#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10299_ACEOF
10300 found_opencl_header='yes'
10301 break;
10302else
10303 found_opencl_header='no'
10304fi
10305
10306done
10307
10308
10309fi
10310
10311 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010312
10313 for ac_header in windows.h
10314do :
10315 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010316if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010317 cat >>confdefs.h <<_ACEOF
10318#define HAVE_WINDOWS_H 1
10319_ACEOF
10320
10321fi
10322
10323done
10324
10325
10326
10327
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10329$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010330if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010331 $as_echo_n "(cached) " >&6
10332else
10333 ax_cv_check_cl_libcl=no
10334 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010335 x86_64) ax_check_cl_libdir=lib64
10336 ax_check_cl_amd_libdir=x86_64
10337 ;;
10338 *) ax_check_cl_libdir=lib
10339 ax_check_cl_amd_libdir=x86
10340 ;;
cristy73bd4a52010-10-05 11:24:23 +000010341 esac
10342 ax_save_CPPFLAGS=$CPPFLAGS
10343 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10344 ax_save_LIBS=$LIBS
10345 LIBS=""
10346 ax_check_libs="-lOpenCL -lCL -lclparser"
10347 for ax_lib in $ax_check_libs; do
10348 if test X$ax_compiler_ms = Xyes; then :
10349 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10350else
10351 ax_try_lib=$ax_lib
10352fi
10353 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355/* end confdefs.h. */
10356
10357 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10358 # include <windows.h>
10359 # endif
10360 # ifdef HAVE_CL_CL_H
10361 # include <CL/cl.h>
10362 # elif defined(HAVE_OPENCL_CL_H)
10363 # include <OpenCL/cl.h>
10364 # else
10365 # error no CL.h
10366 # endif
10367int
10368main ()
10369{
10370clCreateContextFromType(0,0,0,0,0)
10371 ;
10372 return 0;
10373}
10374_ACEOF
10375if ac_fn_c_try_link "$LINENO"; then :
10376 ax_cv_check_cl_libcl=$ax_try_lib; break
10377else
10378 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"
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380/* end confdefs.h. */
10381
10382 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10383 # include <windows.h>
10384 # endif
10385 # ifdef HAVE_CL_CL_H
10386 # include <CL/cl.h>
10387 # elif defined(HAVE_OPENCL_CL_H)
10388 # include <OpenCL/cl.h>
10389 # else
10390 # error no CL.h
10391 # endif
10392int
10393main ()
10394{
10395clCreateContextFromType(0,0,0,0,0)
10396 ;
10397 return 0;
10398}
10399_ACEOF
10400if ac_fn_c_try_link "$LINENO"; then :
10401 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10402else
cristy78c5a0c2010-12-04 20:00:59 +000010403 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 +000010404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405/* end confdefs.h. */
10406
10407 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10408 # include <windows.h>
10409 # endif
10410 # ifdef HAVE_CL_CL_H
10411 # include <CL/cl.h>
10412 # elif defined(HAVE_OPENCL_CL_H)
10413 # include <OpenCL/cl.h>
10414 # else
10415 # error no CL.h
10416 # endif
10417int
10418main ()
10419{
10420clCreateContextFromType(0,0,0,0,0)
10421 ;
10422 return 0;
10423}
10424_ACEOF
10425if ac_fn_c_try_link "$LINENO"; then :
10426 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010427else
10428 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"
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430/* end confdefs.h. */
10431
10432 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10433 # include <windows.h>
10434 # endif
10435 # ifdef HAVE_CL_CL_H
10436 # include <CL/cl.h>
10437 # elif defined(HAVE_OPENCL_CL_H)
10438 # include <OpenCL/cl.h>
10439 # else
10440 # error no CL.h
10441 # endif
10442int
10443main ()
10444{
10445clCreateContextFromType(0,0,0,0,0)
10446 ;
10447 return 0;
10448}
10449_ACEOF
10450if ac_fn_c_try_link "$LINENO"; then :
10451 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10452
10453fi
10454rm -f core conftest.err conftest.$ac_objext \
10455 conftest$ac_exeext conftest.$ac_ext
10456
10457
cristy73bd4a52010-10-05 11:24:23 +000010458fi
10459rm -f core conftest.err conftest.$ac_objext \
10460 conftest$ac_exeext conftest.$ac_ext
10461fi
10462rm -f core conftest.err conftest.$ac_objext \
10463 conftest$ac_exeext conftest.$ac_ext
10464fi
10465rm -f core conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10467 done
10468
cristyc3f8b8e2011-12-22 14:55:16 +000010469 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010470 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472/* end confdefs.h. */
10473
10474 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10475 # include <windows.h>
10476 # endif
10477 # ifdef HAVE_CL_CL_H
10478 # include <CL/cl.h>
10479 # elif defined(HAVE_OPENCL_CL_H)
10480 # include <OpenCL/cl.h>
10481 # else
10482 # error no CL.h
10483 # endif
10484int
10485main ()
10486{
10487clCreateContextFromType(0,0,0,0,0)
10488 ;
10489 return 0;
10490}
10491_ACEOF
10492if ac_fn_c_try_link "$LINENO"; then :
10493 ax_cv_check_cl_libcl=$LIBS
10494fi
10495rm -f core conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
10497fi
10498
10499 LIBS=$ax_save_LIBS
10500 CPPFLAGS=$ax_save_CPPFLAGS
10501fi
10502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10503$as_echo "$ax_cv_check_cl_libcl" >&6; }
10504
10505 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10506 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10507else
10508 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10509$as_echo "#define _OPENCL 1" >>confdefs.h
10510
10511fi
10512 ac_ext=c
10513ac_cpp='$CPP $CPPFLAGS'
10514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10516ac_compiler_gnu=$ac_cv_c_compiler_gnu
10517
10518fi
10519
10520
10521
cristy0c832c62014-03-07 22:21:04 +000010522#remove static link on Linux
10523CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10524
cristy73bd4a52010-10-05 11:24:23 +000010525
cristyc7083c12009-10-14 03:16:55 +000010526CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010527CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010528LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010529
cristy391f1ce2010-09-09 17:23:28 +000010530if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010531 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010532 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10533 fi
cristyfd9dcd42010-08-08 18:07:02 +000010534fi
cristy2e8b51d2009-10-17 18:26:15 +000010535
cristy3ed852e2009-09-05 21:47:34 +000010536########
10537#
10538# Check for large file support
10539#
10540########
10541# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010542if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010543 enableval=$enable_largefile;
10544fi
10545
10546if test "$enable_largefile" != no; then
10547
cristy8b350f62009-11-15 23:12:43 +000010548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010549$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010550if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010551 $as_echo_n "(cached) " >&6
10552else
10553 ac_cv_sys_largefile_CC=no
10554 if test "$GCC" != yes; then
10555 ac_save_CC=$CC
10556 while :; do
10557 # IRIX 6.2 and later do not support large files by default,
10558 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010560/* end confdefs.h. */
10561#include <sys/types.h>
10562 /* Check that off_t can represent 2**63 - 1 correctly.
10563 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10564 since some C++ compilers masquerading as C compilers
10565 incorrectly reject 9223372036854775807. */
10566#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10567 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10568 && LARGE_OFF_T % 2147483647 == 1)
10569 ? 1 : -1];
10570int
10571main ()
10572{
10573
10574 ;
10575 return 0;
10576}
10577_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010578 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010579 break
cristy3ed852e2009-09-05 21:47:34 +000010580fi
cristy3ed852e2009-09-05 21:47:34 +000010581rm -f core conftest.err conftest.$ac_objext
10582 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010583 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010584 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010585fi
cristy3ed852e2009-09-05 21:47:34 +000010586rm -f core conftest.err conftest.$ac_objext
10587 break
10588 done
10589 CC=$ac_save_CC
10590 rm -f conftest.$ac_ext
10591 fi
10592fi
cristy8b350f62009-11-15 23:12:43 +000010593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010594$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10595 if test "$ac_cv_sys_largefile_CC" != no; then
10596 CC=$CC$ac_cv_sys_largefile_CC
10597 fi
10598
cristy8b350f62009-11-15 23:12:43 +000010599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010600$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010601if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010602 $as_echo_n "(cached) " >&6
10603else
10604 while :; do
cristy8b350f62009-11-15 23:12:43 +000010605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010606/* end confdefs.h. */
10607#include <sys/types.h>
10608 /* Check that off_t can represent 2**63 - 1 correctly.
10609 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10610 since some C++ compilers masquerading as C compilers
10611 incorrectly reject 9223372036854775807. */
10612#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10613 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10614 && LARGE_OFF_T % 2147483647 == 1)
10615 ? 1 : -1];
10616int
10617main ()
10618{
10619
10620 ;
10621 return 0;
10622}
10623_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010624if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010625 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010626fi
cristy3ed852e2009-09-05 21:47:34 +000010627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010629/* end confdefs.h. */
10630#define _FILE_OFFSET_BITS 64
10631#include <sys/types.h>
10632 /* Check that off_t can represent 2**63 - 1 correctly.
10633 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10634 since some C++ compilers masquerading as C compilers
10635 incorrectly reject 9223372036854775807. */
10636#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10637 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10638 && LARGE_OFF_T % 2147483647 == 1)
10639 ? 1 : -1];
10640int
10641main ()
10642{
10643
10644 ;
10645 return 0;
10646}
10647_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010648if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010649 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010650fi
cristy3ed852e2009-09-05 21:47:34 +000010651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10652 ac_cv_sys_file_offset_bits=unknown
10653 break
10654done
10655fi
cristy8b350f62009-11-15 23:12:43 +000010656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010657$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10658case $ac_cv_sys_file_offset_bits in #(
10659 no | unknown) ;;
10660 *)
10661cat >>confdefs.h <<_ACEOF
10662#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10663_ACEOF
10664;;
10665esac
10666rm -rf conftest*
10667 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010669$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010670if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010671 $as_echo_n "(cached) " >&6
10672else
10673 while :; do
cristy8b350f62009-11-15 23:12:43 +000010674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010675/* end confdefs.h. */
10676#include <sys/types.h>
10677 /* Check that off_t can represent 2**63 - 1 correctly.
10678 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10679 since some C++ compilers masquerading as C compilers
10680 incorrectly reject 9223372036854775807. */
10681#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10682 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10683 && LARGE_OFF_T % 2147483647 == 1)
10684 ? 1 : -1];
10685int
10686main ()
10687{
10688
10689 ;
10690 return 0;
10691}
10692_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010693if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010694 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010695fi
cristy3ed852e2009-09-05 21:47:34 +000010696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010698/* end confdefs.h. */
10699#define _LARGE_FILES 1
10700#include <sys/types.h>
10701 /* Check that off_t can represent 2**63 - 1 correctly.
10702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10703 since some C++ compilers masquerading as C compilers
10704 incorrectly reject 9223372036854775807. */
10705#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10707 && LARGE_OFF_T % 2147483647 == 1)
10708 ? 1 : -1];
10709int
10710main ()
10711{
10712
10713 ;
10714 return 0;
10715}
10716_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010717if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010718 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010719fi
cristy3ed852e2009-09-05 21:47:34 +000010720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10721 ac_cv_sys_large_files=unknown
10722 break
10723done
10724fi
cristy8b350f62009-11-15 23:12:43 +000010725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010726$as_echo "$ac_cv_sys_large_files" >&6; }
10727case $ac_cv_sys_large_files in #(
10728 no | unknown) ;;
10729 *)
10730cat >>confdefs.h <<_ACEOF
10731#define _LARGE_FILES $ac_cv_sys_large_files
10732_ACEOF
10733;;
10734esac
10735rm -rf conftest*
10736 fi
cristy14fefe52012-05-21 00:59:18 +000010737
10738
cristy3ed852e2009-09-05 21:47:34 +000010739fi
10740
cristy8b350f62009-11-15 23:12:43 +000010741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010742$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010743if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010744 $as_echo_n "(cached) " >&6
10745else
10746 while :; do
cristy8b350f62009-11-15 23:12:43 +000010747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010748/* end confdefs.h. */
10749#include <sys/types.h> /* for off_t */
10750 #include <stdio.h>
10751int
10752main ()
10753{
10754int (*fp) (FILE *, off_t, int) = fseeko;
10755 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10756 ;
10757 return 0;
10758}
10759_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010760if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010761 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010762fi
cristy8b350f62009-11-15 23:12:43 +000010763rm -f core conftest.err conftest.$ac_objext \
10764 conftest$ac_exeext conftest.$ac_ext
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010766/* end confdefs.h. */
10767#define _LARGEFILE_SOURCE 1
10768#include <sys/types.h> /* for off_t */
10769 #include <stdio.h>
10770int
10771main ()
10772{
10773int (*fp) (FILE *, off_t, int) = fseeko;
10774 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10775 ;
10776 return 0;
10777}
10778_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010779if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010780 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010781fi
cristy8b350f62009-11-15 23:12:43 +000010782rm -f core conftest.err conftest.$ac_objext \
10783 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010784 ac_cv_sys_largefile_source=unknown
10785 break
10786done
10787fi
cristy8b350f62009-11-15 23:12:43 +000010788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010789$as_echo "$ac_cv_sys_largefile_source" >&6; }
10790case $ac_cv_sys_largefile_source in #(
10791 no | unknown) ;;
10792 *)
10793cat >>confdefs.h <<_ACEOF
10794#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10795_ACEOF
10796;;
10797esac
10798rm -rf conftest*
10799
10800# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10801# in glibc 2.1.3, but that breaks too many other things.
10802# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10803if test $ac_cv_sys_largefile_source != unknown; then
10804
cristy8b350f62009-11-15 23:12:43 +000010805$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010806
10807fi
10808
10809LFS_CPPFLAGS=''
10810if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010811 case $ac_cv_sys_file_offset_bits in
10812 no)
10813 # nothing to do here as the host supports LFS fine
10814 ;;
10815 unknown)
cristy8b350f62009-11-15 23:12:43 +000010816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010817$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010818 if test "$cross_compiling" = yes; then :
10819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010821as_fn_error $? "cannot run test program while cross compiling
10822See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010823else
cristy8b350f62009-11-15 23:12:43 +000010824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010826#include <unistd.h>
10827 main () {
10828 exit(!(sizeof(off_t) == 8));
10829 }
cristyda16f162011-02-19 23:52:17 +000010830int
10831main ()
10832{
10833
10834 ;
10835 return 0;
10836}
cristy3ed852e2009-09-05 21:47:34 +000010837_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010838if ac_fn_c_try_run "$LINENO"; then :
10839 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010840
cristyad38abe2012-12-23 23:03:21 +000010841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10842$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010843else
cristyad38abe2012-12-23 23:03:21 +000010844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010846fi
cristy8b350f62009-11-15 23:12:43 +000010847rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10848 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010849fi
10850
cristyc1e0cc12011-09-21 16:41:16 +000010851 ;;
10852 *)
10853 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10854 ;;
10855 esac
cristy3ed852e2009-09-05 21:47:34 +000010856 if test "$ac_cv_sys_large_files" != 'no'; then
10857 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10858 fi
10859 if test "$ac_cv_sys_largefile_source" != 'no'; then
10860 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10861 fi
10862fi
10863
10864
cristy3ed852e2009-09-05 21:47:34 +000010865# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010866enable_dlopen=yes
10867
10868
10869
10870case `pwd` in
10871 *\ * | *\ *)
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10873$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10874esac
10875
10876
10877
cristy99bd5232011-12-07 14:38:20 +000010878macro_version='2.4.2'
10879macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893ltmain="$ac_aux_dir/ltmain.sh"
10894
cristy0c60a692010-11-04 01:09:47 +000010895# Backslashify metacharacters that are still active within
10896# double-quoted strings.
10897sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10898
10899# Same as above, but do not quote variable references.
10900double_quote_subst='s/\(["`\\]\)/\\\1/g'
10901
10902# Sed substitution to delay expansion of an escaped shell variable in a
10903# double_quote_subst'ed string.
10904delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10905
10906# Sed substitution to delay expansion of an escaped single quote.
10907delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10908
10909# Sed substitution to avoid accidental globbing in evaled expressions
10910no_glob_subst='s/\*/\\\*/g'
10911
cristy73bd4a52010-10-05 11:24:23 +000010912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10913$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010914if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010915 $as_echo_n "(cached) " >&6
10916else
10917 if test -n "$NM"; then
10918 # Let the user override the test.
10919 lt_cv_path_NM="$NM"
10920else
10921 lt_nm_to_check="${ac_tool_prefix}nm"
10922 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10923 lt_nm_to_check="$lt_nm_to_check nm"
10924 fi
10925 for lt_tmp_nm in $lt_nm_to_check; do
10926 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10927 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10928 IFS="$lt_save_ifs"
10929 test -z "$ac_dir" && ac_dir=.
10930 tmp_nm="$ac_dir/$lt_tmp_nm"
10931 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10932 # Check to see if the nm accepts a BSD-compat flag.
10933 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10934 # nm: unknown option "B" ignored
10935 # Tru64's nm complains that /dev/null is an invalid object file
10936 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10937 */dev/null* | *'Invalid file or object type'*)
10938 lt_cv_path_NM="$tmp_nm -B"
10939 break
10940 ;;
10941 *)
10942 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10943 */dev/null*)
10944 lt_cv_path_NM="$tmp_nm -p"
10945 break
10946 ;;
10947 *)
10948 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10949 continue # so that we can try to find one that supports BSD flags
10950 ;;
10951 esac
10952 ;;
10953 esac
10954 fi
10955 done
10956 IFS="$lt_save_ifs"
10957 done
10958 : ${lt_cv_path_NM=no}
10959fi
10960fi
10961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10962$as_echo "$lt_cv_path_NM" >&6; }
10963if test "$lt_cv_path_NM" != "no"; then
10964 NM="$lt_cv_path_NM"
10965else
10966 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010967 if test -n "$DUMPBIN"; then :
10968 # Let the user override the test.
10969 else
10970 if test -n "$ac_tool_prefix"; then
10971 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010972 do
10973 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10974set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10976$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010977if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010978 $as_echo_n "(cached) " >&6
10979else
10980 if test -n "$DUMPBIN"; then
10981 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10982else
10983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984for as_dir in $PATH
10985do
10986 IFS=$as_save_IFS
10987 test -z "$as_dir" && as_dir=.
10988 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010990 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10992 break 2
10993 fi
10994done
10995 done
10996IFS=$as_save_IFS
10997
10998fi
10999fi
11000DUMPBIN=$ac_cv_prog_DUMPBIN
11001if test -n "$DUMPBIN"; then
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11003$as_echo "$DUMPBIN" >&6; }
11004else
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006$as_echo "no" >&6; }
11007fi
11008
11009
11010 test -n "$DUMPBIN" && break
11011 done
11012fi
11013if test -z "$DUMPBIN"; then
11014 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011015 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011016do
11017 # Extract the first word of "$ac_prog", so it can be a program name with args.
11018set dummy $ac_prog; ac_word=$2
11019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11020$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011021if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011022 $as_echo_n "(cached) " >&6
11023else
11024 if test -n "$ac_ct_DUMPBIN"; then
11025 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11026else
11027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11028for as_dir in $PATH
11029do
11030 IFS=$as_save_IFS
11031 test -z "$as_dir" && as_dir=.
11032 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011034 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11036 break 2
11037 fi
11038done
11039 done
11040IFS=$as_save_IFS
11041
11042fi
11043fi
11044ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11045if test -n "$ac_ct_DUMPBIN"; then
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11047$as_echo "$ac_ct_DUMPBIN" >&6; }
11048else
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11050$as_echo "no" >&6; }
11051fi
11052
11053
11054 test -n "$ac_ct_DUMPBIN" && break
11055done
11056
11057 if test "x$ac_ct_DUMPBIN" = x; then
11058 DUMPBIN=":"
11059 else
11060 case $cross_compiling:$ac_tool_warned in
11061yes:)
11062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11064ac_tool_warned=yes ;;
11065esac
11066 DUMPBIN=$ac_ct_DUMPBIN
11067 fi
11068fi
11069
cristy0c60a692010-11-04 01:09:47 +000011070 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11071 *COFF*)
11072 DUMPBIN="$DUMPBIN -symbols"
11073 ;;
11074 *)
11075 DUMPBIN=:
11076 ;;
11077 esac
11078 fi
cristy73bd4a52010-10-05 11:24:23 +000011079
11080 if test "$DUMPBIN" != ":"; then
11081 NM="$DUMPBIN"
11082 fi
11083fi
11084test -z "$NM" && NM=nm
11085
11086
11087
11088
11089
11090
11091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11092$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011093if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011094 $as_echo_n "(cached) " >&6
11095else
11096 lt_cv_nm_interface="BSD nm"
11097 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011098 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011099 (eval "$ac_compile" 2>conftest.err)
11100 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011101 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011102 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11103 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011104 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011105 cat conftest.out >&5
11106 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11107 lt_cv_nm_interface="MS dumpbin"
11108 fi
11109 rm -f conftest*
11110fi
11111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11112$as_echo "$lt_cv_nm_interface" >&6; }
11113
11114# find the maximum length of command line arguments
11115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11116$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011117if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011118 $as_echo_n "(cached) " >&6
11119else
11120 i=0
11121 teststring="ABCD"
11122
11123 case $build_os in
11124 msdosdjgpp*)
11125 # On DJGPP, this test can blow up pretty badly due to problems in libc
11126 # (any single argument exceeding 2000 bytes causes a buffer overrun
11127 # during glob expansion). Even if it were fixed, the result of this
11128 # check would be larger than it should be.
11129 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11130 ;;
11131
11132 gnu*)
11133 # Under GNU Hurd, this test is not required because there is
11134 # no limit to the length of command line arguments.
11135 # Libtool will interpret -1 as no limit whatsoever
11136 lt_cv_sys_max_cmd_len=-1;
11137 ;;
11138
11139 cygwin* | mingw* | cegcc*)
11140 # On Win9x/ME, this test blows up -- it succeeds, but takes
11141 # about 5 minutes as the teststring grows exponentially.
11142 # Worse, since 9x/ME are not pre-emptively multitasking,
11143 # you end up with a "frozen" computer, even though with patience
11144 # the test eventually succeeds (with a max line length of 256k).
11145 # Instead, let's just punt: use the minimum linelength reported by
11146 # all of the supported platforms: 8192 (on NT/2K/XP).
11147 lt_cv_sys_max_cmd_len=8192;
11148 ;;
11149
cristy0c60a692010-11-04 01:09:47 +000011150 mint*)
11151 # On MiNT this can take a long time and run out of memory.
11152 lt_cv_sys_max_cmd_len=8192;
11153 ;;
11154
cristy73bd4a52010-10-05 11:24:23 +000011155 amigaos*)
11156 # On AmigaOS with pdksh, this test takes hours, literally.
11157 # So we just punt and use a minimum line length of 8192.
11158 lt_cv_sys_max_cmd_len=8192;
11159 ;;
11160
11161 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11162 # This has been around since 386BSD, at least. Likely further.
11163 if test -x /sbin/sysctl; then
11164 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11165 elif test -x /usr/sbin/sysctl; then
11166 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11167 else
11168 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11169 fi
11170 # And add a safety zone
11171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11173 ;;
11174
11175 interix*)
11176 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11177 lt_cv_sys_max_cmd_len=196608
11178 ;;
11179
cristy99bd5232011-12-07 14:38:20 +000011180 os2*)
11181 # The test takes a long time on OS/2.
11182 lt_cv_sys_max_cmd_len=8192
11183 ;;
11184
cristy73bd4a52010-10-05 11:24:23 +000011185 osf*)
11186 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11187 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11188 # nice to cause kernel panics so lets avoid the loop below.
11189 # First set a reasonable default.
11190 lt_cv_sys_max_cmd_len=16384
11191 #
11192 if test -x /sbin/sysconfig; then
11193 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11194 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11195 esac
11196 fi
11197 ;;
11198 sco3.2v5*)
11199 lt_cv_sys_max_cmd_len=102400
11200 ;;
11201 sysv5* | sco5v6* | sysv4.2uw2*)
11202 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11203 if test -n "$kargmax"; then
11204 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11205 else
11206 lt_cv_sys_max_cmd_len=32768
11207 fi
11208 ;;
11209 *)
11210 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11211 if test -n "$lt_cv_sys_max_cmd_len"; then
11212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11214 else
11215 # Make teststring a little bigger before we do anything with it.
11216 # a 1K string should be a reasonable start.
11217 for i in 1 2 3 4 5 6 7 8 ; do
11218 teststring=$teststring$teststring
11219 done
11220 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11221 # If test is not a shell built-in, we'll probably end up computing a
11222 # maximum length that is only half of the actual maximum length, but
11223 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011224 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011225 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011226 test $i != 17 # 1/2 MB should be enough
11227 do
11228 i=`expr $i + 1`
11229 teststring=$teststring$teststring
11230 done
11231 # Only check the string length outside the loop.
11232 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11233 teststring=
11234 # Add a significant safety factor because C++ compilers can tack on
11235 # massive amounts of additional arguments before passing them to the
11236 # linker. It appears as though 1/2 is a usable value.
11237 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11238 fi
11239 ;;
11240 esac
11241
11242fi
11243
11244if test -n $lt_cv_sys_max_cmd_len ; then
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11246$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11247else
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11249$as_echo "none" >&6; }
11250fi
11251max_cmd_len=$lt_cv_sys_max_cmd_len
11252
11253
11254
11255
11256
11257
11258: ${CP="cp -f"}
11259: ${MV="mv -f"}
11260: ${RM="rm -f"}
11261
11262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11263$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11264# Try some XSI features
11265xsi_shell=no
11266( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011267 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11268 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011269 && eval 'test $(( 1 + 1 )) -eq 2 \
11270 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11271 && xsi_shell=yes
11272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11273$as_echo "$xsi_shell" >&6; }
11274
11275
11276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11277$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11278lt_shell_append=no
11279( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11280 >/dev/null 2>&1 \
11281 && lt_shell_append=yes
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11283$as_echo "$lt_shell_append" >&6; }
11284
11285
11286if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11287 lt_unset=unset
11288else
11289 lt_unset=false
11290fi
11291
11292
11293
11294
11295
11296# test EBCDIC or ASCII
11297case `echo X|tr X '\101'` in
11298 A) # ASCII based system
11299 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11300 lt_SP2NL='tr \040 \012'
11301 lt_NL2SP='tr \015\012 \040\040'
11302 ;;
11303 *) # EBCDIC based system
11304 lt_SP2NL='tr \100 \n'
11305 lt_NL2SP='tr \r\n \100\100'
11306 ;;
11307esac
11308
11309
11310
11311
11312
11313
11314
11315
11316
cristyda16f162011-02-19 23:52:17 +000011317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11318$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11319if ${lt_cv_to_host_file_cmd+:} false; then :
11320 $as_echo_n "(cached) " >&6
11321else
11322 case $host in
11323 *-*-mingw* )
11324 case $build in
11325 *-*-mingw* ) # actually msys
11326 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11327 ;;
11328 *-*-cygwin* )
11329 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11330 ;;
11331 * ) # otherwise, assume *nix
11332 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11333 ;;
11334 esac
11335 ;;
11336 *-*-cygwin* )
11337 case $build in
11338 *-*-mingw* ) # actually msys
11339 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11340 ;;
11341 *-*-cygwin* )
11342 lt_cv_to_host_file_cmd=func_convert_file_noop
11343 ;;
11344 * ) # otherwise, assume *nix
11345 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11346 ;;
11347 esac
11348 ;;
11349 * ) # unhandled hosts (and "normal" native builds)
11350 lt_cv_to_host_file_cmd=func_convert_file_noop
11351 ;;
11352esac
11353
11354fi
11355
11356to_host_file_cmd=$lt_cv_to_host_file_cmd
11357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11358$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11359
11360
11361
11362
11363
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11365$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11366if ${lt_cv_to_tool_file_cmd+:} false; then :
11367 $as_echo_n "(cached) " >&6
11368else
11369 #assume ordinary cross tools, or native build.
11370lt_cv_to_tool_file_cmd=func_convert_file_noop
11371case $host in
11372 *-*-mingw* )
11373 case $build in
11374 *-*-mingw* ) # actually msys
11375 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11376 ;;
11377 esac
11378 ;;
11379esac
11380
11381fi
11382
11383to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11385$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11386
11387
11388
11389
11390
cristy73bd4a52010-10-05 11:24:23 +000011391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11392$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011393if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011394 $as_echo_n "(cached) " >&6
11395else
11396 lt_cv_ld_reload_flag='-r'
11397fi
11398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11399$as_echo "$lt_cv_ld_reload_flag" >&6; }
11400reload_flag=$lt_cv_ld_reload_flag
11401case $reload_flag in
11402"" | " "*) ;;
11403*) reload_flag=" $reload_flag" ;;
11404esac
11405reload_cmds='$LD$reload_flag -o $output$reload_objs'
11406case $host_os in
cristyda16f162011-02-19 23:52:17 +000011407 cygwin* | mingw* | pw32* | cegcc*)
11408 if test "$GCC" != yes; then
11409 reload_cmds=false
11410 fi
11411 ;;
cristy73bd4a52010-10-05 11:24:23 +000011412 darwin*)
11413 if test "$GCC" = yes; then
11414 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11415 else
11416 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11417 fi
11418 ;;
11419esac
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429if test -n "$ac_tool_prefix"; then
11430 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11431set dummy ${ac_tool_prefix}objdump; ac_word=$2
11432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11433$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011434if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011435 $as_echo_n "(cached) " >&6
11436else
11437 if test -n "$OBJDUMP"; then
11438 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11439else
11440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11441for as_dir in $PATH
11442do
11443 IFS=$as_save_IFS
11444 test -z "$as_dir" && as_dir=.
11445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011447 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11449 break 2
11450 fi
11451done
11452 done
11453IFS=$as_save_IFS
11454
11455fi
11456fi
11457OBJDUMP=$ac_cv_prog_OBJDUMP
11458if test -n "$OBJDUMP"; then
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11460$as_echo "$OBJDUMP" >&6; }
11461else
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11463$as_echo "no" >&6; }
11464fi
11465
11466
11467fi
11468if test -z "$ac_cv_prog_OBJDUMP"; then
11469 ac_ct_OBJDUMP=$OBJDUMP
11470 # Extract the first word of "objdump", so it can be a program name with args.
11471set dummy objdump; ac_word=$2
11472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11473$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011474if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011475 $as_echo_n "(cached) " >&6
11476else
11477 if test -n "$ac_ct_OBJDUMP"; then
11478 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11479else
11480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481for as_dir in $PATH
11482do
11483 IFS=$as_save_IFS
11484 test -z "$as_dir" && as_dir=.
11485 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011487 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11489 break 2
11490 fi
11491done
11492 done
11493IFS=$as_save_IFS
11494
11495fi
11496fi
11497ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11498if test -n "$ac_ct_OBJDUMP"; then
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11500$as_echo "$ac_ct_OBJDUMP" >&6; }
11501else
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503$as_echo "no" >&6; }
11504fi
11505
11506 if test "x$ac_ct_OBJDUMP" = x; then
11507 OBJDUMP="false"
11508 else
11509 case $cross_compiling:$ac_tool_warned in
11510yes:)
11511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11513ac_tool_warned=yes ;;
11514esac
11515 OBJDUMP=$ac_ct_OBJDUMP
11516 fi
11517else
11518 OBJDUMP="$ac_cv_prog_OBJDUMP"
11519fi
11520
11521test -z "$OBJDUMP" && OBJDUMP=objdump
11522
11523
11524
11525
11526
11527
11528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11529$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011530if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011531 $as_echo_n "(cached) " >&6
11532else
11533 lt_cv_file_magic_cmd='$MAGIC_CMD'
11534lt_cv_file_magic_test_file=
11535lt_cv_deplibs_check_method='unknown'
11536# Need to set the preceding variable on all platforms that support
11537# interlibrary dependencies.
11538# 'none' -- dependencies not supported.
11539# `unknown' -- same as none, but documents that we really don't know.
11540# 'pass_all' -- all dependencies passed with no checks.
11541# 'test_compile' -- check by making test program.
11542# 'file_magic [[regex]]' -- check by looking for files in library path
11543# which responds to the $file_magic_cmd with a given extended regex.
11544# If you have `file' or equivalent on your system and you're not sure
11545# whether `pass_all' will *always* work, you probably want this one.
11546
11547case $host_os in
11548aix[4-9]*)
11549 lt_cv_deplibs_check_method=pass_all
11550 ;;
11551
11552beos*)
11553 lt_cv_deplibs_check_method=pass_all
11554 ;;
11555
11556bsdi[45]*)
11557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11558 lt_cv_file_magic_cmd='/usr/bin/file -L'
11559 lt_cv_file_magic_test_file=/shlib/libc.so
11560 ;;
11561
11562cygwin*)
11563 # func_win32_libid is a shell function defined in ltmain.sh
11564 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11565 lt_cv_file_magic_cmd='func_win32_libid'
11566 ;;
11567
11568mingw* | pw32*)
11569 # Base MSYS/MinGW do not provide the 'file' command needed by
11570 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11571 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011572 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11573 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011574 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11575 lt_cv_file_magic_cmd='func_win32_libid'
11576 else
cristy0c60a692010-11-04 01:09:47 +000011577 # Keep this pattern in sync with the one in func_win32_libid.
11578 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 +000011579 lt_cv_file_magic_cmd='$OBJDUMP -f'
11580 fi
11581 ;;
11582
cristy0c60a692010-11-04 01:09:47 +000011583cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011584 # use the weaker test based on 'objdump'. See mingw*.
11585 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11586 lt_cv_file_magic_cmd='$OBJDUMP -f'
11587 ;;
11588
11589darwin* | rhapsody*)
11590 lt_cv_deplibs_check_method=pass_all
11591 ;;
11592
11593freebsd* | dragonfly*)
11594 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11595 case $host_cpu in
11596 i*86 )
11597 # Not sure whether the presence of OpenBSD here was a mistake.
11598 # Let's accept both of them until this is cleared up.
11599 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11600 lt_cv_file_magic_cmd=/usr/bin/file
11601 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11602 ;;
11603 esac
11604 else
11605 lt_cv_deplibs_check_method=pass_all
11606 fi
11607 ;;
11608
11609gnu*)
11610 lt_cv_deplibs_check_method=pass_all
11611 ;;
11612
cristy0c60a692010-11-04 01:09:47 +000011613haiku*)
11614 lt_cv_deplibs_check_method=pass_all
11615 ;;
11616
cristy73bd4a52010-10-05 11:24:23 +000011617hpux10.20* | hpux11*)
11618 lt_cv_file_magic_cmd=/usr/bin/file
11619 case $host_cpu in
11620 ia64*)
11621 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11622 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11623 ;;
11624 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011625 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 +000011626 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11627 ;;
11628 *)
cristy0c60a692010-11-04 01:09:47 +000011629 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 +000011630 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11631 ;;
11632 esac
11633 ;;
11634
11635interix[3-9]*)
11636 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11638 ;;
11639
11640irix5* | irix6* | nonstopux*)
11641 case $LD in
11642 *-32|*"-32 ") libmagic=32-bit;;
11643 *-n32|*"-n32 ") libmagic=N32;;
11644 *-64|*"-64 ") libmagic=64-bit;;
11645 *) libmagic=never-match;;
11646 esac
11647 lt_cv_deplibs_check_method=pass_all
11648 ;;
11649
cristy99bd5232011-12-07 14:38:20 +000011650# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011651linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011652 lt_cv_deplibs_check_method=pass_all
11653 ;;
11654
11655netbsd*)
11656 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11658 else
11659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11660 fi
11661 ;;
11662
11663newos6*)
11664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11665 lt_cv_file_magic_cmd=/usr/bin/file
11666 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11667 ;;
11668
11669*nto* | *qnx*)
11670 lt_cv_deplibs_check_method=pass_all
11671 ;;
11672
11673openbsd*)
11674 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11676 else
11677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11678 fi
11679 ;;
11680
11681osf3* | osf4* | osf5*)
11682 lt_cv_deplibs_check_method=pass_all
11683 ;;
11684
11685rdos*)
11686 lt_cv_deplibs_check_method=pass_all
11687 ;;
11688
11689solaris*)
11690 lt_cv_deplibs_check_method=pass_all
11691 ;;
11692
11693sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11694 lt_cv_deplibs_check_method=pass_all
11695 ;;
11696
11697sysv4 | sysv4.3*)
11698 case $host_vendor in
11699 motorola)
11700 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]'
11701 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11702 ;;
11703 ncr)
11704 lt_cv_deplibs_check_method=pass_all
11705 ;;
11706 sequent)
11707 lt_cv_file_magic_cmd='/bin/file'
11708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11709 ;;
11710 sni)
11711 lt_cv_file_magic_cmd='/bin/file'
11712 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11713 lt_cv_file_magic_test_file=/lib/libc.so
11714 ;;
11715 siemens)
11716 lt_cv_deplibs_check_method=pass_all
11717 ;;
11718 pc)
11719 lt_cv_deplibs_check_method=pass_all
11720 ;;
11721 esac
11722 ;;
11723
11724tpf*)
11725 lt_cv_deplibs_check_method=pass_all
11726 ;;
11727esac
11728
11729fi
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11731$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011732
11733file_magic_glob=
11734want_nocaseglob=no
11735if test "$build" = "$host"; then
11736 case $host_os in
11737 mingw* | pw32*)
11738 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11739 want_nocaseglob=yes
11740 else
11741 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11742 fi
11743 ;;
11744 esac
11745fi
11746
cristy73bd4a52010-10-05 11:24:23 +000011747file_magic_cmd=$lt_cv_file_magic_cmd
11748deplibs_check_method=$lt_cv_deplibs_check_method
11749test -z "$deplibs_check_method" && deplibs_check_method=unknown
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
cristyda16f162011-02-19 23:52:17 +000011762
11763
11764
11765
11766
11767
11768
11769
11770
11771
cristy73bd4a52010-10-05 11:24:23 +000011772if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011773 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11774set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11776$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011777if ${ac_cv_prog_DLLTOOL+:} false; then :
11778 $as_echo_n "(cached) " >&6
11779else
11780 if test -n "$DLLTOOL"; then
11781 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11782else
11783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784for as_dir in $PATH
11785do
11786 IFS=$as_save_IFS
11787 test -z "$as_dir" && as_dir=.
11788 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011790 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11792 break 2
11793 fi
11794done
11795 done
11796IFS=$as_save_IFS
11797
11798fi
11799fi
11800DLLTOOL=$ac_cv_prog_DLLTOOL
11801if test -n "$DLLTOOL"; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11803$as_echo "$DLLTOOL" >&6; }
11804else
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806$as_echo "no" >&6; }
11807fi
11808
11809
11810fi
11811if test -z "$ac_cv_prog_DLLTOOL"; then
11812 ac_ct_DLLTOOL=$DLLTOOL
11813 # Extract the first word of "dlltool", so it can be a program name with args.
11814set dummy dlltool; ac_word=$2
11815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816$as_echo_n "checking for $ac_word... " >&6; }
11817if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11818 $as_echo_n "(cached) " >&6
11819else
11820 if test -n "$ac_ct_DLLTOOL"; then
11821 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11822else
11823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824for as_dir in $PATH
11825do
11826 IFS=$as_save_IFS
11827 test -z "$as_dir" && as_dir=.
11828 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011830 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11832 break 2
11833 fi
11834done
11835 done
11836IFS=$as_save_IFS
11837
11838fi
11839fi
11840ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11841if test -n "$ac_ct_DLLTOOL"; then
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11843$as_echo "$ac_ct_DLLTOOL" >&6; }
11844else
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846$as_echo "no" >&6; }
11847fi
11848
11849 if test "x$ac_ct_DLLTOOL" = x; then
11850 DLLTOOL="false"
11851 else
11852 case $cross_compiling:$ac_tool_warned in
11853yes:)
11854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11856ac_tool_warned=yes ;;
11857esac
11858 DLLTOOL=$ac_ct_DLLTOOL
11859 fi
11860else
11861 DLLTOOL="$ac_cv_prog_DLLTOOL"
11862fi
11863
11864test -z "$DLLTOOL" && DLLTOOL=dlltool
11865
11866
11867
11868
11869
11870
11871
11872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11873$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11874if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11875 $as_echo_n "(cached) " >&6
11876else
11877 lt_cv_sharedlib_from_linklib_cmd='unknown'
11878
11879case $host_os in
11880cygwin* | mingw* | pw32* | cegcc*)
11881 # two different shell functions defined in ltmain.sh
11882 # decide which to use based on capabilities of $DLLTOOL
11883 case `$DLLTOOL --help 2>&1` in
11884 *--identify-strict*)
11885 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11886 ;;
11887 *)
11888 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11889 ;;
11890 esac
11891 ;;
11892*)
11893 # fallback: assume linklib IS sharedlib
11894 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11895 ;;
11896esac
11897
11898fi
11899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11900$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11901sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11902test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11903
11904
11905
11906
11907
11908
11909
11910if test -n "$ac_tool_prefix"; then
11911 for ac_prog in ar
11912 do
11913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11914set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11916$as_echo_n "checking for $ac_word... " >&6; }
11917if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011918 $as_echo_n "(cached) " >&6
11919else
11920 if test -n "$AR"; then
11921 ac_cv_prog_AR="$AR" # Let the user override the test.
11922else
11923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924for as_dir in $PATH
11925do
11926 IFS=$as_save_IFS
11927 test -z "$as_dir" && as_dir=.
11928 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011930 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11932 break 2
11933 fi
11934done
11935 done
11936IFS=$as_save_IFS
11937
11938fi
11939fi
11940AR=$ac_cv_prog_AR
11941if test -n "$AR"; then
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11943$as_echo "$AR" >&6; }
11944else
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11946$as_echo "no" >&6; }
11947fi
11948
11949
cristyda16f162011-02-19 23:52:17 +000011950 test -n "$AR" && break
11951 done
cristy73bd4a52010-10-05 11:24:23 +000011952fi
cristyda16f162011-02-19 23:52:17 +000011953if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011954 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011955 for ac_prog in ar
11956do
11957 # Extract the first word of "$ac_prog", so it can be a program name with args.
11958set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11960$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011961if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011962 $as_echo_n "(cached) " >&6
11963else
11964 if test -n "$ac_ct_AR"; then
11965 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11966else
11967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968for as_dir in $PATH
11969do
11970 IFS=$as_save_IFS
11971 test -z "$as_dir" && as_dir=.
11972 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011974 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11976 break 2
11977 fi
11978done
11979 done
11980IFS=$as_save_IFS
11981
11982fi
11983fi
11984ac_ct_AR=$ac_cv_prog_ac_ct_AR
11985if test -n "$ac_ct_AR"; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11987$as_echo "$ac_ct_AR" >&6; }
11988else
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990$as_echo "no" >&6; }
11991fi
11992
cristyda16f162011-02-19 23:52:17 +000011993
11994 test -n "$ac_ct_AR" && break
11995done
11996
cristy73bd4a52010-10-05 11:24:23 +000011997 if test "x$ac_ct_AR" = x; then
11998 AR="false"
11999 else
12000 case $cross_compiling:$ac_tool_warned in
12001yes:)
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12004ac_tool_warned=yes ;;
12005esac
12006 AR=$ac_ct_AR
12007 fi
cristy73bd4a52010-10-05 11:24:23 +000012008fi
12009
cristyda16f162011-02-19 23:52:17 +000012010: ${AR=ar}
12011: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
cristyda16f162011-02-19 23:52:17 +000012023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12024$as_echo_n "checking for archiver @FILE support... " >&6; }
12025if ${lt_cv_ar_at_file+:} false; then :
12026 $as_echo_n "(cached) " >&6
12027else
12028 lt_cv_ar_at_file=no
12029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030/* end confdefs.h. */
12031
12032int
12033main ()
12034{
12035
12036 ;
12037 return 0;
12038}
12039_ACEOF
12040if ac_fn_c_try_compile "$LINENO"; then :
12041 echo conftest.$ac_objext > conftest.lst
12042 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12044 (eval $lt_ar_try) 2>&5
12045 ac_status=$?
12046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12047 test $ac_status = 0; }
12048 if test "$ac_status" -eq 0; then
12049 # Ensure the archiver fails upon bogus file names.
12050 rm -f conftest.$ac_objext libconftest.a
12051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12052 (eval $lt_ar_try) 2>&5
12053 ac_status=$?
12054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12055 test $ac_status = 0; }
12056 if test "$ac_status" -ne 0; then
12057 lt_cv_ar_at_file=@
12058 fi
12059 fi
12060 rm -f conftest.* libconftest.a
12061
12062fi
12063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12064
12065fi
12066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12067$as_echo "$lt_cv_ar_at_file" >&6; }
12068
12069if test "x$lt_cv_ar_at_file" = xno; then
12070 archiver_list_spec=
12071else
12072 archiver_list_spec=$lt_cv_ar_at_file
12073fi
12074
12075
12076
12077
12078
12079
12080
cristy73bd4a52010-10-05 11:24:23 +000012081if test -n "$ac_tool_prefix"; then
12082 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12083set dummy ${ac_tool_prefix}strip; ac_word=$2
12084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12085$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012086if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012087 $as_echo_n "(cached) " >&6
12088else
12089 if test -n "$STRIP"; then
12090 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12091else
12092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093for as_dir in $PATH
12094do
12095 IFS=$as_save_IFS
12096 test -z "$as_dir" && as_dir=.
12097 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012099 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12101 break 2
12102 fi
12103done
12104 done
12105IFS=$as_save_IFS
12106
12107fi
12108fi
12109STRIP=$ac_cv_prog_STRIP
12110if test -n "$STRIP"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12112$as_echo "$STRIP" >&6; }
12113else
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115$as_echo "no" >&6; }
12116fi
12117
12118
12119fi
12120if test -z "$ac_cv_prog_STRIP"; then
12121 ac_ct_STRIP=$STRIP
12122 # Extract the first word of "strip", so it can be a program name with args.
12123set dummy strip; ac_word=$2
12124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12125$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012126if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012127 $as_echo_n "(cached) " >&6
12128else
12129 if test -n "$ac_ct_STRIP"; then
12130 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12131else
12132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12133for as_dir in $PATH
12134do
12135 IFS=$as_save_IFS
12136 test -z "$as_dir" && as_dir=.
12137 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012139 ac_cv_prog_ac_ct_STRIP="strip"
12140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12141 break 2
12142 fi
12143done
12144 done
12145IFS=$as_save_IFS
12146
12147fi
12148fi
12149ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12150if test -n "$ac_ct_STRIP"; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12152$as_echo "$ac_ct_STRIP" >&6; }
12153else
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155$as_echo "no" >&6; }
12156fi
12157
12158 if test "x$ac_ct_STRIP" = x; then
12159 STRIP=":"
12160 else
12161 case $cross_compiling:$ac_tool_warned in
12162yes:)
12163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12165ac_tool_warned=yes ;;
12166esac
12167 STRIP=$ac_ct_STRIP
12168 fi
12169else
12170 STRIP="$ac_cv_prog_STRIP"
12171fi
12172
12173test -z "$STRIP" && STRIP=:
12174
12175
12176
12177
12178
12179
12180if test -n "$ac_tool_prefix"; then
12181 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12182set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12184$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012185if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012186 $as_echo_n "(cached) " >&6
12187else
12188 if test -n "$RANLIB"; then
12189 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12190else
12191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192for as_dir in $PATH
12193do
12194 IFS=$as_save_IFS
12195 test -z "$as_dir" && as_dir=.
12196 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012198 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12200 break 2
12201 fi
12202done
12203 done
12204IFS=$as_save_IFS
12205
12206fi
12207fi
12208RANLIB=$ac_cv_prog_RANLIB
12209if test -n "$RANLIB"; then
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12211$as_echo "$RANLIB" >&6; }
12212else
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12214$as_echo "no" >&6; }
12215fi
12216
12217
12218fi
12219if test -z "$ac_cv_prog_RANLIB"; then
12220 ac_ct_RANLIB=$RANLIB
12221 # Extract the first word of "ranlib", so it can be a program name with args.
12222set dummy ranlib; ac_word=$2
12223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12224$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012225if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012226 $as_echo_n "(cached) " >&6
12227else
12228 if test -n "$ac_ct_RANLIB"; then
12229 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12230else
12231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232for as_dir in $PATH
12233do
12234 IFS=$as_save_IFS
12235 test -z "$as_dir" && as_dir=.
12236 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012238 ac_cv_prog_ac_ct_RANLIB="ranlib"
12239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12240 break 2
12241 fi
12242done
12243 done
12244IFS=$as_save_IFS
12245
12246fi
12247fi
12248ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12249if test -n "$ac_ct_RANLIB"; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12251$as_echo "$ac_ct_RANLIB" >&6; }
12252else
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254$as_echo "no" >&6; }
12255fi
12256
12257 if test "x$ac_ct_RANLIB" = x; then
12258 RANLIB=":"
12259 else
12260 case $cross_compiling:$ac_tool_warned in
12261yes:)
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12264ac_tool_warned=yes ;;
12265esac
12266 RANLIB=$ac_ct_RANLIB
12267 fi
12268else
12269 RANLIB="$ac_cv_prog_RANLIB"
12270fi
12271
12272test -z "$RANLIB" && RANLIB=:
12273
12274
12275
12276
12277
12278
12279# Determine commands to create old-style static archives.
12280old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12281old_postinstall_cmds='chmod 644 $oldlib'
12282old_postuninstall_cmds=
12283
12284if test -n "$RANLIB"; then
12285 case $host_os in
12286 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012287 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012288 ;;
12289 *)
cristy99bd5232011-12-07 14:38:20 +000012290 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012291 ;;
12292 esac
cristy99bd5232011-12-07 14:38:20 +000012293 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012294fi
12295
cristy0c60a692010-11-04 01:09:47 +000012296case $host_os in
12297 darwin*)
12298 lock_old_archive_extraction=yes ;;
12299 *)
12300 lock_old_archive_extraction=no ;;
12301esac
12302
12303
12304
12305
12306
12307
cristy73bd4a52010-10-05 11:24:23 +000012308
12309
12310
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# If no C compiler was specified, use CC.
12342LTCC=${LTCC-"$CC"}
12343
12344# If no C compiler flags were specified, use CFLAGS.
12345LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12346
12347# Allow CC to be a program name with arguments.
12348compiler=$CC
12349
12350
12351# Check for command to grab the raw symbol name followed by C symbol from nm.
12352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12353$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012354if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012355 $as_echo_n "(cached) " >&6
12356else
12357
12358# These are sane defaults that work on at least a few old systems.
12359# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12360
12361# Character class describing NM global symbol codes.
12362symcode='[BCDEGRST]'
12363
12364# Regexp to match symbols that can be accessed directly from C.
12365sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12366
12367# Define system-specific variables.
12368case $host_os in
12369aix*)
12370 symcode='[BCDT]'
12371 ;;
12372cygwin* | mingw* | pw32* | cegcc*)
12373 symcode='[ABCDGISTW]'
12374 ;;
12375hpux*)
12376 if test "$host_cpu" = ia64; then
12377 symcode='[ABCDEGRST]'
12378 fi
12379 ;;
12380irix* | nonstopux*)
12381 symcode='[BCDEGRST]'
12382 ;;
12383osf*)
12384 symcode='[BCDEGQRST]'
12385 ;;
12386solaris*)
12387 symcode='[BDRT]'
12388 ;;
12389sco3.2v5*)
12390 symcode='[DT]'
12391 ;;
12392sysv4.2uw2*)
12393 symcode='[DT]'
12394 ;;
12395sysv5* | sco5v6* | unixware* | OpenUNIX*)
12396 symcode='[ABDT]'
12397 ;;
12398sysv4)
12399 symcode='[DFNSTU]'
12400 ;;
12401esac
12402
12403# If we're using GNU nm, then use its standard symbol codes.
12404case `$NM -V 2>&1` in
12405*GNU* | *'with BFD'*)
12406 symcode='[ABCDGIRSTW]' ;;
12407esac
12408
12409# Transform an extracted symbol line into a proper C declaration.
12410# Some systems (esp. on ia64) link data and code symbols differently,
12411# so use this general approach.
12412lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12413
12414# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012415lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12416lt_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 +000012417
12418# Handle CRLF in mingw tool chain
12419opt_cr=
12420case $build_os in
12421mingw*)
12422 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12423 ;;
12424esac
12425
12426# Try without a prefix underscore, then with it.
12427for ac_symprfx in "" "_"; do
12428
12429 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12430 symxfrm="\\1 $ac_symprfx\\2 \\2"
12431
12432 # Write the raw and C identifiers.
12433 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12434 # Fake it for dumpbin and say T for any non-static function
12435 # and D for any global variable.
12436 # Also find C++ and __fastcall symbols from MSVC++,
12437 # which start with @ or ?.
12438 lt_cv_sys_global_symbol_pipe="$AWK '"\
12439" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012440" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012441" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12442" \$ 0!~/External *\|/{next};"\
12443" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12444" {if(hide[section]) next};"\
12445" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12446" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12447" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12448" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12449" ' prfx=^$ac_symprfx"
12450 else
12451 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12452 fi
cristyda16f162011-02-19 23:52:17 +000012453 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012454
12455 # Check to see that the pipe works correctly.
12456 pipe_works=no
12457
12458 rm -f conftest*
12459 cat > conftest.$ac_ext <<_LT_EOF
12460#ifdef __cplusplus
12461extern "C" {
12462#endif
12463char nm_test_var;
12464void nm_test_func(void);
12465void nm_test_func(void){}
12466#ifdef __cplusplus
12467}
12468#endif
12469int main(){nm_test_var='a';nm_test_func();return(0);}
12470_LT_EOF
12471
12472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12473 (eval $ac_compile) 2>&5
12474 ac_status=$?
12475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12476 test $ac_status = 0; }; then
12477 # Now try to grab the symbols.
12478 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12480 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012481 ac_status=$?
12482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12483 test $ac_status = 0; } && test -s "$nlist"; then
12484 # Try sorting and uniquifying the output.
12485 if sort "$nlist" | uniq > "$nlist"T; then
12486 mv -f "$nlist"T "$nlist"
12487 else
12488 rm -f "$nlist"T
12489 fi
12490
12491 # Make sure that we snagged all the symbols we need.
12492 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12493 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12494 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012495/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12496#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12497/* DATA imports from DLLs on WIN32 con't be const, because runtime
12498 relocations are performed -- see ld's documentation on pseudo-relocs. */
12499# define LT_DLSYM_CONST
12500#elif defined(__osf__)
12501/* This system does not cope well with relocations in const data. */
12502# define LT_DLSYM_CONST
12503#else
12504# define LT_DLSYM_CONST const
12505#endif
12506
cristy73bd4a52010-10-05 11:24:23 +000012507#ifdef __cplusplus
12508extern "C" {
12509#endif
12510
12511_LT_EOF
12512 # Now generate the symbol file.
12513 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12514
12515 cat <<_LT_EOF >> conftest.$ac_ext
12516
12517/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012518LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012519 const char *name;
12520 void *address;
12521}
12522lt__PROGRAM__LTX_preloaded_symbols[] =
12523{
12524 { "@PROGRAM@", (void *) 0 },
12525_LT_EOF
12526 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12527 cat <<\_LT_EOF >> conftest.$ac_ext
12528 {0, (void *) 0}
12529};
12530
12531/* This works around a problem in FreeBSD linker */
12532#ifdef FREEBSD_WORKAROUND
12533static const void *lt_preloaded_setup() {
12534 return lt__PROGRAM__LTX_preloaded_symbols;
12535}
12536#endif
12537
12538#ifdef __cplusplus
12539}
12540#endif
12541_LT_EOF
12542 # Now try linking the two files.
12543 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012544 lt_globsym_save_LIBS=$LIBS
12545 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012546 LIBS="conftstm.$ac_objext"
12547 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12549 (eval $ac_link) 2>&5
12550 ac_status=$?
12551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12552 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12553 pipe_works=yes
12554 fi
cristyda16f162011-02-19 23:52:17 +000012555 LIBS=$lt_globsym_save_LIBS
12556 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012557 else
12558 echo "cannot find nm_test_func in $nlist" >&5
12559 fi
12560 else
12561 echo "cannot find nm_test_var in $nlist" >&5
12562 fi
12563 else
12564 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12565 fi
12566 else
12567 echo "$progname: failed program was:" >&5
12568 cat conftest.$ac_ext >&5
12569 fi
12570 rm -rf conftest* conftst*
12571
12572 # Do not use the global_symbol_pipe unless it works.
12573 if test "$pipe_works" = yes; then
12574 break
12575 else
12576 lt_cv_sys_global_symbol_pipe=
12577 fi
12578done
12579
12580fi
12581
12582if test -z "$lt_cv_sys_global_symbol_pipe"; then
12583 lt_cv_sys_global_symbol_to_cdecl=
12584fi
12585if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12587$as_echo "failed" >&6; }
12588else
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12590$as_echo "ok" >&6; }
12591fi
12592
cristyda16f162011-02-19 23:52:17 +000012593# Response file support.
12594if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12595 nm_file_list_spec='@'
12596elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12597 nm_file_list_spec='@'
12598fi
cristy73bd4a52010-10-05 11:24:23 +000012599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
cristyda16f162011-02-19 23:52:17 +000012620
12621
12622
12623
12624
12625
12626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12627$as_echo_n "checking for sysroot... " >&6; }
12628
12629# Check whether --with-sysroot was given.
12630if test "${with_sysroot+set}" = set; then :
12631 withval=$with_sysroot;
12632else
12633 with_sysroot=no
12634fi
12635
12636
12637lt_sysroot=
12638case ${with_sysroot} in #(
12639 yes)
12640 if test "$GCC" = yes; then
12641 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12642 fi
12643 ;; #(
12644 /*)
12645 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12646 ;; #(
12647 no|'')
12648 ;; #(
12649 *)
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12651$as_echo "${with_sysroot}" >&6; }
12652 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12653 ;;
12654esac
12655
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12657$as_echo "${lt_sysroot:-no}" >&6; }
12658
12659
12660
12661
12662
cristy73bd4a52010-10-05 11:24:23 +000012663# Check whether --enable-libtool-lock was given.
12664if test "${enable_libtool_lock+set}" = set; then :
12665 enableval=$enable_libtool_lock;
12666fi
12667
12668test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12669
12670# Some flags need to be propagated to the compiler or linker for good
12671# libtool support.
12672case $host in
12673ia64-*-hpux*)
12674 # Find out which ABI we are using.
12675 echo 'int i;' > conftest.$ac_ext
12676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12677 (eval $ac_compile) 2>&5
12678 ac_status=$?
12679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12680 test $ac_status = 0; }; then
12681 case `/usr/bin/file conftest.$ac_objext` in
12682 *ELF-32*)
12683 HPUX_IA64_MODE="32"
12684 ;;
12685 *ELF-64*)
12686 HPUX_IA64_MODE="64"
12687 ;;
12688 esac
12689 fi
12690 rm -rf conftest*
12691 ;;
12692*-*-irix6*)
12693 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012694 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12696 (eval $ac_compile) 2>&5
12697 ac_status=$?
12698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12699 test $ac_status = 0; }; then
12700 if test "$lt_cv_prog_gnu_ld" = yes; then
12701 case `/usr/bin/file conftest.$ac_objext` in
12702 *32-bit*)
12703 LD="${LD-ld} -melf32bsmip"
12704 ;;
12705 *N32*)
12706 LD="${LD-ld} -melf32bmipn32"
12707 ;;
12708 *64-bit*)
12709 LD="${LD-ld} -melf64bmip"
12710 ;;
12711 esac
12712 else
12713 case `/usr/bin/file conftest.$ac_objext` in
12714 *32-bit*)
12715 LD="${LD-ld} -32"
12716 ;;
12717 *N32*)
12718 LD="${LD-ld} -n32"
12719 ;;
12720 *64-bit*)
12721 LD="${LD-ld} -64"
12722 ;;
12723 esac
12724 fi
12725 fi
12726 rm -rf conftest*
12727 ;;
12728
cristyd95b7a52013-10-23 13:12:53 +000012729x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000012730s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12731 # Find out which ABI we are using.
12732 echo 'int i;' > conftest.$ac_ext
12733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12734 (eval $ac_compile) 2>&5
12735 ac_status=$?
12736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12737 test $ac_status = 0; }; then
12738 case `/usr/bin/file conftest.o` in
12739 *32-bit*)
12740 case $host in
12741 x86_64-*kfreebsd*-gnu)
12742 LD="${LD-ld} -m elf_i386_fbsd"
12743 ;;
12744 x86_64-*linux*)
12745 LD="${LD-ld} -m elf_i386"
12746 ;;
cristya5bda012013-11-03 18:05:38 +000012747 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000012748 LD="${LD-ld} -m elf32lppclinux"
12749 ;;
cristya5bda012013-11-03 18:05:38 +000012750 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012751 LD="${LD-ld} -m elf32ppclinux"
12752 ;;
12753 s390x-*linux*)
12754 LD="${LD-ld} -m elf_s390"
12755 ;;
12756 sparc64-*linux*)
12757 LD="${LD-ld} -m elf32_sparc"
12758 ;;
12759 esac
12760 ;;
12761 *64-bit*)
12762 case $host in
12763 x86_64-*kfreebsd*-gnu)
12764 LD="${LD-ld} -m elf_x86_64_fbsd"
12765 ;;
12766 x86_64-*linux*)
12767 LD="${LD-ld} -m elf_x86_64"
12768 ;;
cristyd95b7a52013-10-23 13:12:53 +000012769 powerpcle-*linux*)
12770 LD="${LD-ld} -m elf64lppc"
12771 ;;
12772 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012773 LD="${LD-ld} -m elf64ppc"
12774 ;;
12775 s390*-*linux*|s390*-*tpf*)
12776 LD="${LD-ld} -m elf64_s390"
12777 ;;
12778 sparc*-*linux*)
12779 LD="${LD-ld} -m elf64_sparc"
12780 ;;
12781 esac
12782 ;;
12783 esac
12784 fi
12785 rm -rf conftest*
12786 ;;
12787
12788*-*-sco3.2v5*)
12789 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12790 SAVE_CFLAGS="$CFLAGS"
12791 CFLAGS="$CFLAGS -belf"
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12793$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012794if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012795 $as_echo_n "(cached) " >&6
12796else
12797 ac_ext=c
12798ac_cpp='$CPP $CPPFLAGS'
12799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12801ac_compiler_gnu=$ac_cv_c_compiler_gnu
12802
12803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804/* end confdefs.h. */
12805
12806int
12807main ()
12808{
12809
12810 ;
12811 return 0;
12812}
12813_ACEOF
12814if ac_fn_c_try_link "$LINENO"; then :
12815 lt_cv_cc_needs_belf=yes
12816else
12817 lt_cv_cc_needs_belf=no
12818fi
12819rm -f core conftest.err conftest.$ac_objext \
12820 conftest$ac_exeext conftest.$ac_ext
12821 ac_ext=c
12822ac_cpp='$CPP $CPPFLAGS'
12823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12825ac_compiler_gnu=$ac_cv_c_compiler_gnu
12826
12827fi
12828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12829$as_echo "$lt_cv_cc_needs_belf" >&6; }
12830 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12831 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12832 CFLAGS="$SAVE_CFLAGS"
12833 fi
12834 ;;
cristy99bd5232011-12-07 14:38:20 +000012835*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012836 # Find out which ABI we are using.
12837 echo 'int i;' > conftest.$ac_ext
12838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12839 (eval $ac_compile) 2>&5
12840 ac_status=$?
12841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12842 test $ac_status = 0; }; then
12843 case `/usr/bin/file conftest.o` in
12844 *64-bit*)
12845 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012846 yes*)
12847 case $host in
12848 i?86-*-solaris*)
12849 LD="${LD-ld} -m elf_x86_64"
12850 ;;
12851 sparc*-*-solaris*)
12852 LD="${LD-ld} -m elf64_sparc"
12853 ;;
12854 esac
12855 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12856 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12857 LD="${LD-ld}_sol2"
12858 fi
12859 ;;
cristy73bd4a52010-10-05 11:24:23 +000012860 *)
12861 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12862 LD="${LD-ld} -64"
12863 fi
12864 ;;
12865 esac
12866 ;;
12867 esac
12868 fi
12869 rm -rf conftest*
12870 ;;
12871esac
12872
12873need_locks="$enable_libtool_lock"
12874
cristyda16f162011-02-19 23:52:17 +000012875if test -n "$ac_tool_prefix"; then
12876 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12877set dummy ${ac_tool_prefix}mt; ac_word=$2
12878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12879$as_echo_n "checking for $ac_word... " >&6; }
12880if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12881 $as_echo_n "(cached) " >&6
12882else
12883 if test -n "$MANIFEST_TOOL"; then
12884 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12885else
12886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12887for as_dir in $PATH
12888do
12889 IFS=$as_save_IFS
12890 test -z "$as_dir" && as_dir=.
12891 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012893 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12895 break 2
12896 fi
12897done
12898 done
12899IFS=$as_save_IFS
12900
12901fi
12902fi
12903MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12904if test -n "$MANIFEST_TOOL"; then
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12906$as_echo "$MANIFEST_TOOL" >&6; }
12907else
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909$as_echo "no" >&6; }
12910fi
12911
12912
12913fi
12914if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12915 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12916 # Extract the first word of "mt", so it can be a program name with args.
12917set dummy mt; ac_word=$2
12918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12919$as_echo_n "checking for $ac_word... " >&6; }
12920if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12921 $as_echo_n "(cached) " >&6
12922else
12923 if test -n "$ac_ct_MANIFEST_TOOL"; then
12924 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12925else
12926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927for as_dir in $PATH
12928do
12929 IFS=$as_save_IFS
12930 test -z "$as_dir" && as_dir=.
12931 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012933 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12935 break 2
12936 fi
12937done
12938 done
12939IFS=$as_save_IFS
12940
12941fi
12942fi
12943ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12944if test -n "$ac_ct_MANIFEST_TOOL"; then
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12946$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12947else
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949$as_echo "no" >&6; }
12950fi
12951
12952 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12953 MANIFEST_TOOL=":"
12954 else
12955 case $cross_compiling:$ac_tool_warned in
12956yes:)
12957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12959ac_tool_warned=yes ;;
12960esac
12961 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12962 fi
12963else
12964 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12965fi
12966
12967test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12969$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12970if ${lt_cv_path_mainfest_tool+:} false; then :
12971 $as_echo_n "(cached) " >&6
12972else
12973 lt_cv_path_mainfest_tool=no
12974 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12975 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12976 cat conftest.err >&5
12977 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12978 lt_cv_path_mainfest_tool=yes
12979 fi
12980 rm -f conftest*
12981fi
12982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12983$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12984if test "x$lt_cv_path_mainfest_tool" != xyes; then
12985 MANIFEST_TOOL=:
12986fi
12987
12988
12989
12990
12991
cristy73bd4a52010-10-05 11:24:23 +000012992
12993 case $host_os in
12994 rhapsody* | darwin*)
12995 if test -n "$ac_tool_prefix"; then
12996 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12997set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12999$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013000if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013001 $as_echo_n "(cached) " >&6
13002else
13003 if test -n "$DSYMUTIL"; then
13004 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13005else
13006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13007for as_dir in $PATH
13008do
13009 IFS=$as_save_IFS
13010 test -z "$as_dir" && as_dir=.
13011 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013013 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13015 break 2
13016 fi
13017done
13018 done
13019IFS=$as_save_IFS
13020
13021fi
13022fi
13023DSYMUTIL=$ac_cv_prog_DSYMUTIL
13024if test -n "$DSYMUTIL"; then
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13026$as_echo "$DSYMUTIL" >&6; }
13027else
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13029$as_echo "no" >&6; }
13030fi
13031
13032
13033fi
13034if test -z "$ac_cv_prog_DSYMUTIL"; then
13035 ac_ct_DSYMUTIL=$DSYMUTIL
13036 # Extract the first word of "dsymutil", so it can be a program name with args.
13037set dummy dsymutil; ac_word=$2
13038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13039$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013040if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013041 $as_echo_n "(cached) " >&6
13042else
13043 if test -n "$ac_ct_DSYMUTIL"; then
13044 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13045else
13046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047for as_dir in $PATH
13048do
13049 IFS=$as_save_IFS
13050 test -z "$as_dir" && as_dir=.
13051 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013053 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13055 break 2
13056 fi
13057done
13058 done
13059IFS=$as_save_IFS
13060
13061fi
13062fi
13063ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13064if test -n "$ac_ct_DSYMUTIL"; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13066$as_echo "$ac_ct_DSYMUTIL" >&6; }
13067else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069$as_echo "no" >&6; }
13070fi
13071
13072 if test "x$ac_ct_DSYMUTIL" = x; then
13073 DSYMUTIL=":"
13074 else
13075 case $cross_compiling:$ac_tool_warned in
13076yes:)
13077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13079ac_tool_warned=yes ;;
13080esac
13081 DSYMUTIL=$ac_ct_DSYMUTIL
13082 fi
13083else
13084 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13085fi
13086
13087 if test -n "$ac_tool_prefix"; then
13088 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13089set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13091$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013092if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013093 $as_echo_n "(cached) " >&6
13094else
13095 if test -n "$NMEDIT"; then
13096 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13097else
13098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099for as_dir in $PATH
13100do
13101 IFS=$as_save_IFS
13102 test -z "$as_dir" && as_dir=.
13103 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013105 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13107 break 2
13108 fi
13109done
13110 done
13111IFS=$as_save_IFS
13112
13113fi
13114fi
13115NMEDIT=$ac_cv_prog_NMEDIT
13116if test -n "$NMEDIT"; then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13118$as_echo "$NMEDIT" >&6; }
13119else
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121$as_echo "no" >&6; }
13122fi
13123
13124
13125fi
13126if test -z "$ac_cv_prog_NMEDIT"; then
13127 ac_ct_NMEDIT=$NMEDIT
13128 # Extract the first word of "nmedit", so it can be a program name with args.
13129set dummy nmedit; ac_word=$2
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013132if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013133 $as_echo_n "(cached) " >&6
13134else
13135 if test -n "$ac_ct_NMEDIT"; then
13136 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13137else
13138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139for as_dir in $PATH
13140do
13141 IFS=$as_save_IFS
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013145 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13147 break 2
13148 fi
13149done
13150 done
13151IFS=$as_save_IFS
13152
13153fi
13154fi
13155ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13156if test -n "$ac_ct_NMEDIT"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13158$as_echo "$ac_ct_NMEDIT" >&6; }
13159else
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161$as_echo "no" >&6; }
13162fi
13163
13164 if test "x$ac_ct_NMEDIT" = x; then
13165 NMEDIT=":"
13166 else
13167 case $cross_compiling:$ac_tool_warned in
13168yes:)
13169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13171ac_tool_warned=yes ;;
13172esac
13173 NMEDIT=$ac_ct_NMEDIT
13174 fi
13175else
13176 NMEDIT="$ac_cv_prog_NMEDIT"
13177fi
13178
13179 if test -n "$ac_tool_prefix"; then
13180 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13181set dummy ${ac_tool_prefix}lipo; ac_word=$2
13182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13183$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013184if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013185 $as_echo_n "(cached) " >&6
13186else
13187 if test -n "$LIPO"; then
13188 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13189else
13190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13191for as_dir in $PATH
13192do
13193 IFS=$as_save_IFS
13194 test -z "$as_dir" && as_dir=.
13195 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013197 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13199 break 2
13200 fi
13201done
13202 done
13203IFS=$as_save_IFS
13204
13205fi
13206fi
13207LIPO=$ac_cv_prog_LIPO
13208if test -n "$LIPO"; then
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13210$as_echo "$LIPO" >&6; }
13211else
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13213$as_echo "no" >&6; }
13214fi
13215
13216
13217fi
13218if test -z "$ac_cv_prog_LIPO"; then
13219 ac_ct_LIPO=$LIPO
13220 # Extract the first word of "lipo", so it can be a program name with args.
13221set dummy lipo; ac_word=$2
13222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13223$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013224if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013225 $as_echo_n "(cached) " >&6
13226else
13227 if test -n "$ac_ct_LIPO"; then
13228 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13229else
13230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231for as_dir in $PATH
13232do
13233 IFS=$as_save_IFS
13234 test -z "$as_dir" && as_dir=.
13235 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013237 ac_cv_prog_ac_ct_LIPO="lipo"
13238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13239 break 2
13240 fi
13241done
13242 done
13243IFS=$as_save_IFS
13244
13245fi
13246fi
13247ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13248if test -n "$ac_ct_LIPO"; then
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13250$as_echo "$ac_ct_LIPO" >&6; }
13251else
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253$as_echo "no" >&6; }
13254fi
13255
13256 if test "x$ac_ct_LIPO" = x; then
13257 LIPO=":"
13258 else
13259 case $cross_compiling:$ac_tool_warned in
13260yes:)
13261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13263ac_tool_warned=yes ;;
13264esac
13265 LIPO=$ac_ct_LIPO
13266 fi
13267else
13268 LIPO="$ac_cv_prog_LIPO"
13269fi
13270
13271 if test -n "$ac_tool_prefix"; then
13272 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13273set dummy ${ac_tool_prefix}otool; ac_word=$2
13274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13275$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013276if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013277 $as_echo_n "(cached) " >&6
13278else
13279 if test -n "$OTOOL"; then
13280 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13281else
13282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13283for as_dir in $PATH
13284do
13285 IFS=$as_save_IFS
13286 test -z "$as_dir" && as_dir=.
13287 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013289 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13291 break 2
13292 fi
13293done
13294 done
13295IFS=$as_save_IFS
13296
13297fi
13298fi
13299OTOOL=$ac_cv_prog_OTOOL
13300if test -n "$OTOOL"; then
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13302$as_echo "$OTOOL" >&6; }
13303else
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13305$as_echo "no" >&6; }
13306fi
13307
13308
13309fi
13310if test -z "$ac_cv_prog_OTOOL"; then
13311 ac_ct_OTOOL=$OTOOL
13312 # Extract the first word of "otool", so it can be a program name with args.
13313set dummy otool; ac_word=$2
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13315$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013316if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013317 $as_echo_n "(cached) " >&6
13318else
13319 if test -n "$ac_ct_OTOOL"; then
13320 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13321else
13322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13323for as_dir in $PATH
13324do
13325 IFS=$as_save_IFS
13326 test -z "$as_dir" && as_dir=.
13327 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013329 ac_cv_prog_ac_ct_OTOOL="otool"
13330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13331 break 2
13332 fi
13333done
13334 done
13335IFS=$as_save_IFS
13336
13337fi
13338fi
13339ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13340if test -n "$ac_ct_OTOOL"; then
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13342$as_echo "$ac_ct_OTOOL" >&6; }
13343else
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13345$as_echo "no" >&6; }
13346fi
13347
13348 if test "x$ac_ct_OTOOL" = x; then
13349 OTOOL=":"
13350 else
13351 case $cross_compiling:$ac_tool_warned in
13352yes:)
13353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13355ac_tool_warned=yes ;;
13356esac
13357 OTOOL=$ac_ct_OTOOL
13358 fi
13359else
13360 OTOOL="$ac_cv_prog_OTOOL"
13361fi
13362
13363 if test -n "$ac_tool_prefix"; then
13364 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13365set dummy ${ac_tool_prefix}otool64; ac_word=$2
13366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13367$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013368if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013369 $as_echo_n "(cached) " >&6
13370else
13371 if test -n "$OTOOL64"; then
13372 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13373else
13374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13375for as_dir in $PATH
13376do
13377 IFS=$as_save_IFS
13378 test -z "$as_dir" && as_dir=.
13379 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013381 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13383 break 2
13384 fi
13385done
13386 done
13387IFS=$as_save_IFS
13388
13389fi
13390fi
13391OTOOL64=$ac_cv_prog_OTOOL64
13392if test -n "$OTOOL64"; then
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13394$as_echo "$OTOOL64" >&6; }
13395else
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13397$as_echo "no" >&6; }
13398fi
13399
13400
13401fi
13402if test -z "$ac_cv_prog_OTOOL64"; then
13403 ac_ct_OTOOL64=$OTOOL64
13404 # Extract the first word of "otool64", so it can be a program name with args.
13405set dummy otool64; ac_word=$2
13406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13407$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013408if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013409 $as_echo_n "(cached) " >&6
13410else
13411 if test -n "$ac_ct_OTOOL64"; then
13412 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13413else
13414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13415for as_dir in $PATH
13416do
13417 IFS=$as_save_IFS
13418 test -z "$as_dir" && as_dir=.
13419 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013421 ac_cv_prog_ac_ct_OTOOL64="otool64"
13422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13423 break 2
13424 fi
13425done
13426 done
13427IFS=$as_save_IFS
13428
13429fi
13430fi
13431ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13432if test -n "$ac_ct_OTOOL64"; then
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13434$as_echo "$ac_ct_OTOOL64" >&6; }
13435else
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13437$as_echo "no" >&6; }
13438fi
13439
13440 if test "x$ac_ct_OTOOL64" = x; then
13441 OTOOL64=":"
13442 else
13443 case $cross_compiling:$ac_tool_warned in
13444yes:)
13445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13447ac_tool_warned=yes ;;
13448esac
13449 OTOOL64=$ac_ct_OTOOL64
13450 fi
13451else
13452 OTOOL64="$ac_cv_prog_OTOOL64"
13453fi
13454
13455
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13482$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013483if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013484 $as_echo_n "(cached) " >&6
13485else
13486 lt_cv_apple_cc_single_mod=no
13487 if test -z "${LT_MULTI_MODULE}"; then
13488 # By default we will add the -single_module flag. You can override
13489 # by either setting the environment variable LT_MULTI_MODULE
13490 # non-empty at configure time, or by adding -multi_module to the
13491 # link flags.
13492 rm -rf libconftest.dylib*
13493 echo "int foo(void){return 1;}" > conftest.c
13494 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13495-dynamiclib -Wl,-single_module conftest.c" >&5
13496 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13497 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13498 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013499 # If there is a non-empty error log, and "single_module"
13500 # appears in it, assume the flag caused a linker warning
13501 if test -s conftest.err && $GREP single_module conftest.err; then
13502 cat conftest.err >&5
13503 # Otherwise, if the output was created with a 0 exit code from
13504 # the compiler, it worked.
13505 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013506 lt_cv_apple_cc_single_mod=yes
13507 else
13508 cat conftest.err >&5
13509 fi
13510 rm -rf libconftest.dylib*
13511 rm -f conftest.*
13512 fi
13513fi
13514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13515$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013516
cristy73bd4a52010-10-05 11:24:23 +000013517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13518$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013519if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013520 $as_echo_n "(cached) " >&6
13521else
13522 lt_cv_ld_exported_symbols_list=no
13523 save_LDFLAGS=$LDFLAGS
13524 echo "_main" > conftest.sym
13525 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527/* end confdefs.h. */
13528
13529int
13530main ()
13531{
13532
13533 ;
13534 return 0;
13535}
13536_ACEOF
13537if ac_fn_c_try_link "$LINENO"; then :
13538 lt_cv_ld_exported_symbols_list=yes
13539else
13540 lt_cv_ld_exported_symbols_list=no
13541fi
13542rm -f core conftest.err conftest.$ac_objext \
13543 conftest$ac_exeext conftest.$ac_ext
13544 LDFLAGS="$save_LDFLAGS"
13545
13546fi
13547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13548$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013549
cristy0c60a692010-11-04 01:09:47 +000013550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13551$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013552if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013553 $as_echo_n "(cached) " >&6
13554else
13555 lt_cv_ld_force_load=no
13556 cat > conftest.c << _LT_EOF
13557int forced_loaded() { return 2;}
13558_LT_EOF
13559 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13560 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13561 echo "$AR cru libconftest.a conftest.o" >&5
13562 $AR cru libconftest.a conftest.o 2>&5
13563 echo "$RANLIB libconftest.a" >&5
13564 $RANLIB libconftest.a 2>&5
13565 cat > conftest.c << _LT_EOF
13566int main() { return 0;}
13567_LT_EOF
13568 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13569 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13570 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013571 if test -s conftest.err && $GREP force_load conftest.err; then
13572 cat conftest.err >&5
13573 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013574 lt_cv_ld_force_load=yes
13575 else
13576 cat conftest.err >&5
13577 fi
13578 rm -f conftest.err libconftest.a conftest conftest.c
13579 rm -rf conftest.dSYM
13580
13581fi
13582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13583$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013584 case $host_os in
13585 rhapsody* | darwin1.[012])
13586 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13587 darwin1.*)
13588 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13589 darwin*) # darwin 5.x on
13590 # if running on 10.5 or later, the deployment target defaults
13591 # to the OS version, if on x86, and 10.4, the deployment
13592 # target defaults to 10.4. Don't you love it?
13593 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13594 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13595 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13596 10.[012]*)
13597 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13598 10.*)
13599 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13600 esac
13601 ;;
13602 esac
13603 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13604 _lt_dar_single_mod='$single_module'
13605 fi
13606 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13607 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13608 else
13609 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13610 fi
cristy0c60a692010-11-04 01:09:47 +000013611 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013612 _lt_dsymutil='~$DSYMUTIL $lib || :'
13613 else
13614 _lt_dsymutil=
13615 fi
13616 ;;
13617 esac
13618
13619for ac_header in dlfcn.h
13620do :
13621 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13622"
cristyda16f162011-02-19 23:52:17 +000013623if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013624 cat >>confdefs.h <<_ACEOF
13625#define HAVE_DLFCN_H 1
13626_ACEOF
13627
13628fi
13629
13630done
13631
13632
13633
cristy73bd4a52010-10-05 11:24:23 +000013634
cristyda16f162011-02-19 23:52:17 +000013635func_stripname_cnf ()
13636{
13637 case ${2} in
13638 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13639 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13640 esac
13641} # func_stripname_cnf
13642
13643
13644
cristy73bd4a52010-10-05 11:24:23 +000013645
13646
13647# Set options
13648enable_win32_dll=yes
13649
13650case $host in
cristy0c60a692010-11-04 01:09:47 +000013651*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013652 if test -n "$ac_tool_prefix"; then
13653 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13654set dummy ${ac_tool_prefix}as; ac_word=$2
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13656$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013657if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013658 $as_echo_n "(cached) " >&6
13659else
13660 if test -n "$AS"; then
13661 ac_cv_prog_AS="$AS" # Let the user override the test.
13662else
13663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13664for as_dir in $PATH
13665do
13666 IFS=$as_save_IFS
13667 test -z "$as_dir" && as_dir=.
13668 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013670 ac_cv_prog_AS="${ac_tool_prefix}as"
13671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13672 break 2
13673 fi
13674done
13675 done
13676IFS=$as_save_IFS
13677
13678fi
13679fi
13680AS=$ac_cv_prog_AS
13681if test -n "$AS"; then
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13683$as_echo "$AS" >&6; }
13684else
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13686$as_echo "no" >&6; }
13687fi
13688
13689
13690fi
13691if test -z "$ac_cv_prog_AS"; then
13692 ac_ct_AS=$AS
13693 # Extract the first word of "as", so it can be a program name with args.
13694set dummy as; ac_word=$2
13695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13696$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013697if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013698 $as_echo_n "(cached) " >&6
13699else
13700 if test -n "$ac_ct_AS"; then
13701 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13702else
13703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13704for as_dir in $PATH
13705do
13706 IFS=$as_save_IFS
13707 test -z "$as_dir" && as_dir=.
13708 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013710 ac_cv_prog_ac_ct_AS="as"
13711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13712 break 2
13713 fi
13714done
13715 done
13716IFS=$as_save_IFS
13717
13718fi
13719fi
13720ac_ct_AS=$ac_cv_prog_ac_ct_AS
13721if test -n "$ac_ct_AS"; then
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13723$as_echo "$ac_ct_AS" >&6; }
13724else
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13726$as_echo "no" >&6; }
13727fi
13728
13729 if test "x$ac_ct_AS" = x; then
13730 AS="false"
13731 else
13732 case $cross_compiling:$ac_tool_warned in
13733yes:)
13734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13736ac_tool_warned=yes ;;
13737esac
13738 AS=$ac_ct_AS
13739 fi
13740else
13741 AS="$ac_cv_prog_AS"
13742fi
13743
13744 if test -n "$ac_tool_prefix"; then
13745 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13746set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13748$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013749if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013750 $as_echo_n "(cached) " >&6
13751else
13752 if test -n "$DLLTOOL"; then
13753 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13754else
13755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13756for as_dir in $PATH
13757do
13758 IFS=$as_save_IFS
13759 test -z "$as_dir" && as_dir=.
13760 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013762 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13764 break 2
13765 fi
13766done
13767 done
13768IFS=$as_save_IFS
13769
13770fi
13771fi
13772DLLTOOL=$ac_cv_prog_DLLTOOL
13773if test -n "$DLLTOOL"; then
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13775$as_echo "$DLLTOOL" >&6; }
13776else
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13778$as_echo "no" >&6; }
13779fi
13780
13781
13782fi
13783if test -z "$ac_cv_prog_DLLTOOL"; then
13784 ac_ct_DLLTOOL=$DLLTOOL
13785 # Extract the first word of "dlltool", so it can be a program name with args.
13786set dummy dlltool; ac_word=$2
13787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13788$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013789if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013790 $as_echo_n "(cached) " >&6
13791else
13792 if test -n "$ac_ct_DLLTOOL"; then
13793 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13794else
13795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13796for as_dir in $PATH
13797do
13798 IFS=$as_save_IFS
13799 test -z "$as_dir" && as_dir=.
13800 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013802 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13804 break 2
13805 fi
13806done
13807 done
13808IFS=$as_save_IFS
13809
13810fi
13811fi
13812ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13813if test -n "$ac_ct_DLLTOOL"; then
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13815$as_echo "$ac_ct_DLLTOOL" >&6; }
13816else
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13818$as_echo "no" >&6; }
13819fi
13820
13821 if test "x$ac_ct_DLLTOOL" = x; then
13822 DLLTOOL="false"
13823 else
13824 case $cross_compiling:$ac_tool_warned in
13825yes:)
13826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13828ac_tool_warned=yes ;;
13829esac
13830 DLLTOOL=$ac_ct_DLLTOOL
13831 fi
13832else
13833 DLLTOOL="$ac_cv_prog_DLLTOOL"
13834fi
13835
13836 if test -n "$ac_tool_prefix"; then
13837 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13838set dummy ${ac_tool_prefix}objdump; ac_word=$2
13839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13840$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013841if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013842 $as_echo_n "(cached) " >&6
13843else
13844 if test -n "$OBJDUMP"; then
13845 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13846else
13847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13848for as_dir in $PATH
13849do
13850 IFS=$as_save_IFS
13851 test -z "$as_dir" && as_dir=.
13852 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013854 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13856 break 2
13857 fi
13858done
13859 done
13860IFS=$as_save_IFS
13861
13862fi
13863fi
13864OBJDUMP=$ac_cv_prog_OBJDUMP
13865if test -n "$OBJDUMP"; then
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13867$as_echo "$OBJDUMP" >&6; }
13868else
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13870$as_echo "no" >&6; }
13871fi
13872
13873
13874fi
13875if test -z "$ac_cv_prog_OBJDUMP"; then
13876 ac_ct_OBJDUMP=$OBJDUMP
13877 # Extract the first word of "objdump", so it can be a program name with args.
13878set dummy objdump; ac_word=$2
13879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13880$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013881if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013882 $as_echo_n "(cached) " >&6
13883else
13884 if test -n "$ac_ct_OBJDUMP"; then
13885 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13886else
13887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888for as_dir in $PATH
13889do
13890 IFS=$as_save_IFS
13891 test -z "$as_dir" && as_dir=.
13892 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013894 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13896 break 2
13897 fi
13898done
13899 done
13900IFS=$as_save_IFS
13901
13902fi
13903fi
13904ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13905if test -n "$ac_ct_OBJDUMP"; then
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13907$as_echo "$ac_ct_OBJDUMP" >&6; }
13908else
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13910$as_echo "no" >&6; }
13911fi
13912
13913 if test "x$ac_ct_OBJDUMP" = x; then
13914 OBJDUMP="false"
13915 else
13916 case $cross_compiling:$ac_tool_warned in
13917yes:)
13918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13920ac_tool_warned=yes ;;
13921esac
13922 OBJDUMP=$ac_ct_OBJDUMP
13923 fi
13924else
13925 OBJDUMP="$ac_cv_prog_OBJDUMP"
13926fi
13927
13928 ;;
13929esac
13930
13931test -z "$AS" && AS=as
13932
13933
13934
13935
13936
13937test -z "$DLLTOOL" && DLLTOOL=dlltool
13938
13939
13940
13941
13942
13943test -z "$OBJDUMP" && OBJDUMP=objdump
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953 # Check whether --enable-shared was given.
13954if test "${enable_shared+set}" = set; then :
13955 enableval=$enable_shared; p=${PACKAGE-default}
13956 case $enableval in
13957 yes) enable_shared=yes ;;
13958 no) enable_shared=no ;;
13959 *)
13960 enable_shared=no
13961 # Look at the argument we got. We use all the common list separators.
13962 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13963 for pkg in $enableval; do
13964 IFS="$lt_save_ifs"
13965 if test "X$pkg" = "X$p"; then
13966 enable_shared=yes
13967 fi
13968 done
13969 IFS="$lt_save_ifs"
13970 ;;
13971 esac
13972else
13973 enable_shared=yes
13974fi
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984 # Check whether --enable-static was given.
13985if test "${enable_static+set}" = set; then :
13986 enableval=$enable_static; p=${PACKAGE-default}
13987 case $enableval in
13988 yes) enable_static=yes ;;
13989 no) enable_static=no ;;
13990 *)
13991 enable_static=no
13992 # Look at the argument we got. We use all the common list separators.
13993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13994 for pkg in $enableval; do
13995 IFS="$lt_save_ifs"
13996 if test "X$pkg" = "X$p"; then
13997 enable_static=yes
13998 fi
13999 done
14000 IFS="$lt_save_ifs"
14001 ;;
14002 esac
14003else
14004 enable_static=yes
14005fi
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016# Check whether --with-pic was given.
14017if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014018 withval=$with_pic; lt_p=${PACKAGE-default}
14019 case $withval in
14020 yes|no) pic_mode=$withval ;;
14021 *)
14022 pic_mode=default
14023 # Look at the argument we got. We use all the common list separators.
14024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14025 for lt_pkg in $withval; do
14026 IFS="$lt_save_ifs"
14027 if test "X$lt_pkg" = "X$lt_p"; then
14028 pic_mode=yes
14029 fi
14030 done
14031 IFS="$lt_save_ifs"
14032 ;;
14033 esac
cristy73bd4a52010-10-05 11:24:23 +000014034else
14035 pic_mode=default
14036fi
14037
14038
14039test -z "$pic_mode" && pic_mode=default
14040
14041
14042
14043
14044
14045
14046
14047 # Check whether --enable-fast-install was given.
14048if test "${enable_fast_install+set}" = set; then :
14049 enableval=$enable_fast_install; p=${PACKAGE-default}
14050 case $enableval in
14051 yes) enable_fast_install=yes ;;
14052 no) enable_fast_install=no ;;
14053 *)
14054 enable_fast_install=no
14055 # Look at the argument we got. We use all the common list separators.
14056 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14057 for pkg in $enableval; do
14058 IFS="$lt_save_ifs"
14059 if test "X$pkg" = "X$p"; then
14060 enable_fast_install=yes
14061 fi
14062 done
14063 IFS="$lt_save_ifs"
14064 ;;
14065 esac
14066else
14067 enable_fast_install=yes
14068fi
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080# This can be used to rebuild libtool when needed
14081LIBTOOL_DEPS="$ltmain"
14082
14083# Always use our own libtool.
14084LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
cristy0c60a692010-11-04 01:09:47 +000014110
cristy99bd5232011-12-07 14:38:20 +000014111
14112
14113
14114
cristy73bd4a52010-10-05 11:24:23 +000014115test -z "$LN_S" && LN_S="ln -s"
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130if test -n "${ZSH_VERSION+set}" ; then
14131 setopt NO_GLOB_SUBST
14132fi
14133
14134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14135$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014136if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014137 $as_echo_n "(cached) " >&6
14138else
14139 rm -f .libs 2>/dev/null
14140mkdir .libs 2>/dev/null
14141if test -d .libs; then
14142 lt_cv_objdir=.libs
14143else
14144 # MS-DOS does not allow filenames that begin with a dot.
14145 lt_cv_objdir=_libs
14146fi
14147rmdir .libs 2>/dev/null
14148fi
14149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14150$as_echo "$lt_cv_objdir" >&6; }
14151objdir=$lt_cv_objdir
14152
14153
14154
14155
14156
14157cat >>confdefs.h <<_ACEOF
14158#define LT_OBJDIR "$lt_cv_objdir/"
14159_ACEOF
14160
14161
14162
14163
cristy73bd4a52010-10-05 11:24:23 +000014164case $host_os in
14165aix3*)
14166 # AIX sometimes has problems with the GCC collect2 program. For some
14167 # reason, if we set the COLLECT_NAMES environment variable, the problems
14168 # vanish in a puff of smoke.
14169 if test "X${COLLECT_NAMES+set}" != Xset; then
14170 COLLECT_NAMES=
14171 export COLLECT_NAMES
14172 fi
14173 ;;
14174esac
14175
cristy73bd4a52010-10-05 11:24:23 +000014176# Global variables:
14177ofile=libtool
14178can_build_shared=yes
14179
14180# All known linkers require a `.a' archive for static linking (except MSVC,
14181# which needs '.lib').
14182libext=a
14183
14184with_gnu_ld="$lt_cv_prog_gnu_ld"
14185
14186old_CC="$CC"
14187old_CFLAGS="$CFLAGS"
14188
14189# Set sane defaults for various variables
14190test -z "$CC" && CC=cc
14191test -z "$LTCC" && LTCC=$CC
14192test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14193test -z "$LD" && LD=ld
14194test -z "$ac_objext" && ac_objext=o
14195
14196for cc_temp in $compiler""; do
14197 case $cc_temp in
14198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14200 \-*) ;;
14201 *) break;;
14202 esac
14203done
cristy0c60a692010-11-04 01:09:47 +000014204cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014205
14206
14207# Only perform the check for file, if the check method requires it
14208test -z "$MAGIC_CMD" && MAGIC_CMD=file
14209case $deplibs_check_method in
14210file_magic*)
14211 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14213$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014214if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014215 $as_echo_n "(cached) " >&6
14216else
14217 case $MAGIC_CMD in
14218[\\/*] | ?:[\\/]*)
14219 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14220 ;;
14221*)
14222 lt_save_MAGIC_CMD="$MAGIC_CMD"
14223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14224 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14225 for ac_dir in $ac_dummy; do
14226 IFS="$lt_save_ifs"
14227 test -z "$ac_dir" && ac_dir=.
14228 if test -f $ac_dir/${ac_tool_prefix}file; then
14229 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14230 if test -n "$file_magic_test_file"; then
14231 case $deplibs_check_method in
14232 "file_magic "*)
14233 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14235 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14236 $EGREP "$file_magic_regex" > /dev/null; then
14237 :
14238 else
14239 cat <<_LT_EOF 1>&2
14240
14241*** Warning: the command libtool uses to detect shared libraries,
14242*** $file_magic_cmd, produces output that libtool cannot recognize.
14243*** The result is that libtool may fail to recognize shared libraries
14244*** as such. This will affect the creation of libtool libraries that
14245*** depend on shared libraries, but programs linked with such libtool
14246*** libraries will work regardless of this problem. Nevertheless, you
14247*** may want to report the problem to your system manager and/or to
14248*** bug-libtool@gnu.org
14249
14250_LT_EOF
14251 fi ;;
14252 esac
14253 fi
14254 break
14255 fi
14256 done
14257 IFS="$lt_save_ifs"
14258 MAGIC_CMD="$lt_save_MAGIC_CMD"
14259 ;;
14260esac
14261fi
14262
14263MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14264if test -n "$MAGIC_CMD"; then
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14266$as_echo "$MAGIC_CMD" >&6; }
14267else
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14269$as_echo "no" >&6; }
14270fi
14271
14272
14273
14274
14275
14276if test -z "$lt_cv_path_MAGIC_CMD"; then
14277 if test -n "$ac_tool_prefix"; then
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14279$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014280if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014281 $as_echo_n "(cached) " >&6
14282else
14283 case $MAGIC_CMD in
14284[\\/*] | ?:[\\/]*)
14285 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14286 ;;
14287*)
14288 lt_save_MAGIC_CMD="$MAGIC_CMD"
14289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14290 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14291 for ac_dir in $ac_dummy; do
14292 IFS="$lt_save_ifs"
14293 test -z "$ac_dir" && ac_dir=.
14294 if test -f $ac_dir/file; then
14295 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14296 if test -n "$file_magic_test_file"; then
14297 case $deplibs_check_method in
14298 "file_magic "*)
14299 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14300 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14301 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14302 $EGREP "$file_magic_regex" > /dev/null; then
14303 :
14304 else
14305 cat <<_LT_EOF 1>&2
14306
14307*** Warning: the command libtool uses to detect shared libraries,
14308*** $file_magic_cmd, produces output that libtool cannot recognize.
14309*** The result is that libtool may fail to recognize shared libraries
14310*** as such. This will affect the creation of libtool libraries that
14311*** depend on shared libraries, but programs linked with such libtool
14312*** libraries will work regardless of this problem. Nevertheless, you
14313*** may want to report the problem to your system manager and/or to
14314*** bug-libtool@gnu.org
14315
14316_LT_EOF
14317 fi ;;
14318 esac
14319 fi
14320 break
14321 fi
14322 done
14323 IFS="$lt_save_ifs"
14324 MAGIC_CMD="$lt_save_MAGIC_CMD"
14325 ;;
14326esac
14327fi
14328
14329MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14330if test -n "$MAGIC_CMD"; then
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14332$as_echo "$MAGIC_CMD" >&6; }
14333else
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14335$as_echo "no" >&6; }
14336fi
14337
14338
14339 else
14340 MAGIC_CMD=:
14341 fi
14342fi
14343
14344 fi
14345 ;;
14346esac
14347
14348# Use C for the default configuration in the libtool script
14349
14350lt_save_CC="$CC"
14351ac_ext=c
14352ac_cpp='$CPP $CPPFLAGS'
14353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14355ac_compiler_gnu=$ac_cv_c_compiler_gnu
14356
14357
14358# Source file extension for C test sources.
14359ac_ext=c
14360
14361# Object file extension for compiled C test sources.
14362objext=o
14363objext=$objext
14364
14365# Code to be used in simple compile tests
14366lt_simple_compile_test_code="int some_variable = 0;"
14367
14368# Code to be used in simple link tests
14369lt_simple_link_test_code='int main(){return(0);}'
14370
14371
14372
14373
14374
14375
14376
14377# If no C compiler was specified, use CC.
14378LTCC=${LTCC-"$CC"}
14379
14380# If no C compiler flags were specified, use CFLAGS.
14381LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14382
14383# Allow CC to be a program name with arguments.
14384compiler=$CC
14385
14386# Save the default compiler, since it gets overwritten when the other
14387# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14388compiler_DEFAULT=$CC
14389
14390# save warnings/boilerplate of simple test code
14391ac_outfile=conftest.$ac_objext
14392echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14393eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14394_lt_compiler_boilerplate=`cat conftest.err`
14395$RM conftest*
14396
14397ac_outfile=conftest.$ac_objext
14398echo "$lt_simple_link_test_code" >conftest.$ac_ext
14399eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14400_lt_linker_boilerplate=`cat conftest.err`
14401$RM -r conftest*
14402
14403
14404## CAVEAT EMPTOR:
14405## There is no encapsulation within the following macros, do not change
14406## the running order or otherwise move them around unless you know exactly
14407## what you are doing...
14408if test -n "$compiler"; then
14409
14410lt_prog_compiler_no_builtin_flag=
14411
14412if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014413 case $cc_basename in
14414 nvcc*)
14415 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14416 *)
14417 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14418 esac
cristy73bd4a52010-10-05 11:24:23 +000014419
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14421$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014422if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014423 $as_echo_n "(cached) " >&6
14424else
14425 lt_cv_prog_compiler_rtti_exceptions=no
14426 ac_outfile=conftest.$ac_objext
14427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14428 lt_compiler_flag="-fno-rtti -fno-exceptions"
14429 # Insert the option either (1) after the last *FLAGS variable, or
14430 # (2) before a word containing "conftest.", or (3) at the end.
14431 # Note that $ac_compile itself does not contain backslashes and begins
14432 # with a dollar sign (not a hyphen), so the echo should work correctly.
14433 # The option is referenced via a variable to avoid confusing sed.
14434 lt_compile=`echo "$ac_compile" | $SED \
14435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14437 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014438 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014439 (eval "$lt_compile" 2>conftest.err)
14440 ac_status=$?
14441 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014443 if (exit $ac_status) && test -s "$ac_outfile"; then
14444 # The compiler can only warn and ignore the option if not recognized
14445 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14449 lt_cv_prog_compiler_rtti_exceptions=yes
14450 fi
14451 fi
14452 $RM conftest*
14453
14454fi
14455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14456$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14457
14458if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14459 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14460else
14461 :
14462fi
14463
14464fi
14465
14466
14467
14468
14469
14470
14471 lt_prog_compiler_wl=
14472lt_prog_compiler_pic=
14473lt_prog_compiler_static=
14474
cristy73bd4a52010-10-05 11:24:23 +000014475
14476 if test "$GCC" = yes; then
14477 lt_prog_compiler_wl='-Wl,'
14478 lt_prog_compiler_static='-static'
14479
14480 case $host_os in
14481 aix*)
14482 # All AIX code is PIC.
14483 if test "$host_cpu" = ia64; then
14484 # AIX 5 now supports IA64 processor
14485 lt_prog_compiler_static='-Bstatic'
14486 fi
14487 ;;
14488
14489 amigaos*)
14490 case $host_cpu in
14491 powerpc)
14492 # see comment about AmigaOS4 .so support
14493 lt_prog_compiler_pic='-fPIC'
14494 ;;
14495 m68k)
14496 # FIXME: we need at least 68020 code to build shared libraries, but
14497 # adding the `-m68020' flag to GCC prevents building anything better,
14498 # like `-m68040'.
14499 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14500 ;;
14501 esac
14502 ;;
14503
14504 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14505 # PIC is the default for these OSes.
14506 ;;
14507
14508 mingw* | cygwin* | pw32* | os2* | cegcc*)
14509 # This hack is so that the source file can tell whether it is being
14510 # built for inclusion in a dll (and should export symbols for example).
14511 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14512 # (--disable-auto-import) libraries
14513 lt_prog_compiler_pic='-DDLL_EXPORT'
14514 ;;
14515
14516 darwin* | rhapsody*)
14517 # PIC is the default on this platform
14518 # Common symbols not allowed in MH_DYLIB files
14519 lt_prog_compiler_pic='-fno-common'
14520 ;;
14521
cristy0c60a692010-11-04 01:09:47 +000014522 haiku*)
14523 # PIC is the default for Haiku.
14524 # The "-static" flag exists, but is broken.
14525 lt_prog_compiler_static=
14526 ;;
14527
cristy73bd4a52010-10-05 11:24:23 +000014528 hpux*)
14529 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14530 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14531 # sets the default TLS model and affects inlining.
14532 case $host_cpu in
14533 hppa*64*)
14534 # +Z the default
14535 ;;
14536 *)
14537 lt_prog_compiler_pic='-fPIC'
14538 ;;
14539 esac
14540 ;;
14541
14542 interix[3-9]*)
14543 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14544 # Instead, we relocate shared libraries at runtime.
14545 ;;
14546
14547 msdosdjgpp*)
14548 # Just because we use GCC doesn't mean we suddenly get shared libraries
14549 # on systems that don't support them.
14550 lt_prog_compiler_can_build_shared=no
14551 enable_shared=no
14552 ;;
14553
14554 *nto* | *qnx*)
14555 # QNX uses GNU C++, but need to define -shared option too, otherwise
14556 # it will coredump.
14557 lt_prog_compiler_pic='-fPIC -shared'
14558 ;;
14559
14560 sysv4*MP*)
14561 if test -d /usr/nec; then
14562 lt_prog_compiler_pic=-Kconform_pic
14563 fi
14564 ;;
14565
14566 *)
14567 lt_prog_compiler_pic='-fPIC'
14568 ;;
14569 esac
cristy0c60a692010-11-04 01:09:47 +000014570
14571 case $cc_basename in
14572 nvcc*) # Cuda Compiler Driver 2.2
14573 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014574 if test -n "$lt_prog_compiler_pic"; then
14575 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14576 fi
cristy0c60a692010-11-04 01:09:47 +000014577 ;;
14578 esac
cristy73bd4a52010-10-05 11:24:23 +000014579 else
14580 # PORTME Check for flag to pass linker flags through the system compiler.
14581 case $host_os in
14582 aix*)
14583 lt_prog_compiler_wl='-Wl,'
14584 if test "$host_cpu" = ia64; then
14585 # AIX 5 now supports IA64 processor
14586 lt_prog_compiler_static='-Bstatic'
14587 else
14588 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14589 fi
14590 ;;
14591
14592 mingw* | cygwin* | pw32* | os2* | cegcc*)
14593 # This hack is so that the source file can tell whether it is being
14594 # built for inclusion in a dll (and should export symbols for example).
14595 lt_prog_compiler_pic='-DDLL_EXPORT'
14596 ;;
14597
14598 hpux9* | hpux10* | hpux11*)
14599 lt_prog_compiler_wl='-Wl,'
14600 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14601 # not for PA HP-UX.
14602 case $host_cpu in
14603 hppa*64*|ia64*)
14604 # +Z the default
14605 ;;
14606 *)
14607 lt_prog_compiler_pic='+Z'
14608 ;;
14609 esac
14610 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14611 lt_prog_compiler_static='${wl}-a ${wl}archive'
14612 ;;
14613
14614 irix5* | irix6* | nonstopux*)
14615 lt_prog_compiler_wl='-Wl,'
14616 # PIC (with -KPIC) is the default.
14617 lt_prog_compiler_static='-non_shared'
14618 ;;
14619
cristy0c60a692010-11-04 01:09:47 +000014620 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014621 case $cc_basename in
14622 # old Intel for x86_64 which still supported -KPIC.
14623 ecc*)
14624 lt_prog_compiler_wl='-Wl,'
14625 lt_prog_compiler_pic='-KPIC'
14626 lt_prog_compiler_static='-static'
14627 ;;
14628 # icc used to be incompatible with GCC.
14629 # ICC 10 doesn't accept -KPIC any more.
14630 icc* | ifort*)
14631 lt_prog_compiler_wl='-Wl,'
14632 lt_prog_compiler_pic='-fPIC'
14633 lt_prog_compiler_static='-static'
14634 ;;
14635 # Lahey Fortran 8.1.
14636 lf95*)
14637 lt_prog_compiler_wl='-Wl,'
14638 lt_prog_compiler_pic='--shared'
14639 lt_prog_compiler_static='--static'
14640 ;;
cristyda16f162011-02-19 23:52:17 +000014641 nagfor*)
14642 # NAG Fortran compiler
14643 lt_prog_compiler_wl='-Wl,-Wl,,'
14644 lt_prog_compiler_pic='-PIC'
14645 lt_prog_compiler_static='-Bstatic'
14646 ;;
cristy0c60a692010-11-04 01:09:47 +000014647 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014648 # Portland Group compilers (*not* the Pentium gcc compiler,
14649 # which looks to be a dead project)
14650 lt_prog_compiler_wl='-Wl,'
14651 lt_prog_compiler_pic='-fpic'
14652 lt_prog_compiler_static='-Bstatic'
14653 ;;
14654 ccc*)
14655 lt_prog_compiler_wl='-Wl,'
14656 # All Alpha code is PIC.
14657 lt_prog_compiler_static='-non_shared'
14658 ;;
cristy0c60a692010-11-04 01:09:47 +000014659 xl* | bgxl* | bgf* | mpixl*)
14660 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014661 lt_prog_compiler_wl='-Wl,'
14662 lt_prog_compiler_pic='-qpic'
14663 lt_prog_compiler_static='-qstaticlink'
14664 ;;
14665 *)
14666 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014667 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014668 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14669 lt_prog_compiler_pic='-KPIC'
14670 lt_prog_compiler_static='-Bstatic'
14671 lt_prog_compiler_wl=''
14672 ;;
cristy99bd5232011-12-07 14:38:20 +000014673 *Sun\ F* | *Sun*Fortran*)
14674 lt_prog_compiler_pic='-KPIC'
14675 lt_prog_compiler_static='-Bstatic'
14676 lt_prog_compiler_wl='-Qoption ld '
14677 ;;
cristy73bd4a52010-10-05 11:24:23 +000014678 *Sun\ C*)
14679 # Sun C 5.9
14680 lt_prog_compiler_pic='-KPIC'
14681 lt_prog_compiler_static='-Bstatic'
14682 lt_prog_compiler_wl='-Wl,'
14683 ;;
cristy99bd5232011-12-07 14:38:20 +000014684 *Intel*\ [CF]*Compiler*)
14685 lt_prog_compiler_wl='-Wl,'
14686 lt_prog_compiler_pic='-fPIC'
14687 lt_prog_compiler_static='-static'
14688 ;;
14689 *Portland\ Group*)
14690 lt_prog_compiler_wl='-Wl,'
14691 lt_prog_compiler_pic='-fpic'
14692 lt_prog_compiler_static='-Bstatic'
14693 ;;
cristy73bd4a52010-10-05 11:24:23 +000014694 esac
14695 ;;
14696 esac
14697 ;;
14698
14699 newsos6)
14700 lt_prog_compiler_pic='-KPIC'
14701 lt_prog_compiler_static='-Bstatic'
14702 ;;
14703
14704 *nto* | *qnx*)
14705 # QNX uses GNU C++, but need to define -shared option too, otherwise
14706 # it will coredump.
14707 lt_prog_compiler_pic='-fPIC -shared'
14708 ;;
14709
14710 osf3* | osf4* | osf5*)
14711 lt_prog_compiler_wl='-Wl,'
14712 # All OSF/1 code is PIC.
14713 lt_prog_compiler_static='-non_shared'
14714 ;;
14715
14716 rdos*)
14717 lt_prog_compiler_static='-non_shared'
14718 ;;
14719
14720 solaris*)
14721 lt_prog_compiler_pic='-KPIC'
14722 lt_prog_compiler_static='-Bstatic'
14723 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014724 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014725 lt_prog_compiler_wl='-Qoption ld ';;
14726 *)
14727 lt_prog_compiler_wl='-Wl,';;
14728 esac
14729 ;;
14730
14731 sunos4*)
14732 lt_prog_compiler_wl='-Qoption ld '
14733 lt_prog_compiler_pic='-PIC'
14734 lt_prog_compiler_static='-Bstatic'
14735 ;;
14736
14737 sysv4 | sysv4.2uw2* | sysv4.3*)
14738 lt_prog_compiler_wl='-Wl,'
14739 lt_prog_compiler_pic='-KPIC'
14740 lt_prog_compiler_static='-Bstatic'
14741 ;;
14742
14743 sysv4*MP*)
14744 if test -d /usr/nec ;then
14745 lt_prog_compiler_pic='-Kconform_pic'
14746 lt_prog_compiler_static='-Bstatic'
14747 fi
14748 ;;
14749
14750 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14751 lt_prog_compiler_wl='-Wl,'
14752 lt_prog_compiler_pic='-KPIC'
14753 lt_prog_compiler_static='-Bstatic'
14754 ;;
14755
14756 unicos*)
14757 lt_prog_compiler_wl='-Wl,'
14758 lt_prog_compiler_can_build_shared=no
14759 ;;
14760
14761 uts4*)
14762 lt_prog_compiler_pic='-pic'
14763 lt_prog_compiler_static='-Bstatic'
14764 ;;
14765
14766 *)
14767 lt_prog_compiler_can_build_shared=no
14768 ;;
14769 esac
14770 fi
14771
14772case $host_os in
14773 # For platforms which do not support PIC, -DPIC is meaningless:
14774 *djgpp*)
14775 lt_prog_compiler_pic=
14776 ;;
14777 *)
14778 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14779 ;;
14780esac
cristy73bd4a52010-10-05 11:24:23 +000014781
cristyda16f162011-02-19 23:52:17 +000014782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14783$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14784if ${lt_cv_prog_compiler_pic+:} false; then :
14785 $as_echo_n "(cached) " >&6
14786else
14787 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14788fi
14789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14790$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14791lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014792
14793#
14794# Check to make sure the PIC flag actually works.
14795#
14796if test -n "$lt_prog_compiler_pic"; then
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14798$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014799if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014800 $as_echo_n "(cached) " >&6
14801else
14802 lt_cv_prog_compiler_pic_works=no
14803 ac_outfile=conftest.$ac_objext
14804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14805 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14806 # Insert the option either (1) after the last *FLAGS variable, or
14807 # (2) before a word containing "conftest.", or (3) at the end.
14808 # Note that $ac_compile itself does not contain backslashes and begins
14809 # with a dollar sign (not a hyphen), so the echo should work correctly.
14810 # The option is referenced via a variable to avoid confusing sed.
14811 lt_compile=`echo "$ac_compile" | $SED \
14812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14814 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014816 (eval "$lt_compile" 2>conftest.err)
14817 ac_status=$?
14818 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014820 if (exit $ac_status) && test -s "$ac_outfile"; then
14821 # The compiler can only warn and ignore the option if not recognized
14822 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014823 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14825 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14826 lt_cv_prog_compiler_pic_works=yes
14827 fi
14828 fi
14829 $RM conftest*
14830
14831fi
14832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14833$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14834
14835if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14836 case $lt_prog_compiler_pic in
14837 "" | " "*) ;;
14838 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14839 esac
14840else
14841 lt_prog_compiler_pic=
14842 lt_prog_compiler_can_build_shared=no
14843fi
14844
14845fi
14846
14847
14848
14849
14850
14851
cristyda16f162011-02-19 23:52:17 +000014852
14853
14854
14855
14856
cristy73bd4a52010-10-05 11:24:23 +000014857#
14858# Check to make sure the static flag actually works.
14859#
14860wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14862$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014863if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014864 $as_echo_n "(cached) " >&6
14865else
14866 lt_cv_prog_compiler_static_works=no
14867 save_LDFLAGS="$LDFLAGS"
14868 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14869 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14870 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14871 # The linker can only warn and ignore the option if not recognized
14872 # So say no if there are warnings
14873 if test -s conftest.err; then
14874 # Append any errors to the config.log.
14875 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014876 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14878 if diff conftest.exp conftest.er2 >/dev/null; then
14879 lt_cv_prog_compiler_static_works=yes
14880 fi
14881 else
14882 lt_cv_prog_compiler_static_works=yes
14883 fi
14884 fi
14885 $RM -r conftest*
14886 LDFLAGS="$save_LDFLAGS"
14887
14888fi
14889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14890$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14891
14892if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14893 :
14894else
14895 lt_prog_compiler_static=
14896fi
14897
14898
14899
14900
14901
14902
14903
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14905$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014906if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014907 $as_echo_n "(cached) " >&6
14908else
14909 lt_cv_prog_compiler_c_o=no
14910 $RM -r conftest 2>/dev/null
14911 mkdir conftest
14912 cd conftest
14913 mkdir out
14914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14915
14916 lt_compiler_flag="-o out/conftest2.$ac_objext"
14917 # Insert the option either (1) after the last *FLAGS variable, or
14918 # (2) before a word containing "conftest.", or (3) at the end.
14919 # Note that $ac_compile itself does not contain backslashes and begins
14920 # with a dollar sign (not a hyphen), so the echo should work correctly.
14921 lt_compile=`echo "$ac_compile" | $SED \
14922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14924 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014926 (eval "$lt_compile" 2>out/conftest.err)
14927 ac_status=$?
14928 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014930 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14931 then
14932 # The compiler can only warn and ignore the option if not recognized
14933 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14937 lt_cv_prog_compiler_c_o=yes
14938 fi
14939 fi
14940 chmod u+w . 2>&5
14941 $RM conftest*
14942 # SGI C++ compiler will create directory out/ii_files/ for
14943 # template instantiation
14944 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14945 $RM out/* && rmdir out
14946 cd ..
14947 $RM -r conftest
14948 $RM conftest*
14949
14950fi
14951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14952$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14953
14954
14955
14956
14957
14958
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14960$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014961if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014962 $as_echo_n "(cached) " >&6
14963else
14964 lt_cv_prog_compiler_c_o=no
14965 $RM -r conftest 2>/dev/null
14966 mkdir conftest
14967 cd conftest
14968 mkdir out
14969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14970
14971 lt_compiler_flag="-o out/conftest2.$ac_objext"
14972 # Insert the option either (1) after the last *FLAGS variable, or
14973 # (2) before a word containing "conftest.", or (3) at the end.
14974 # Note that $ac_compile itself does not contain backslashes and begins
14975 # with a dollar sign (not a hyphen), so the echo should work correctly.
14976 lt_compile=`echo "$ac_compile" | $SED \
14977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14979 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014981 (eval "$lt_compile" 2>out/conftest.err)
14982 ac_status=$?
14983 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014985 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14986 then
14987 # The compiler can only warn and ignore the option if not recognized
14988 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014990 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14991 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14992 lt_cv_prog_compiler_c_o=yes
14993 fi
14994 fi
14995 chmod u+w . 2>&5
14996 $RM conftest*
14997 # SGI C++ compiler will create directory out/ii_files/ for
14998 # template instantiation
14999 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15000 $RM out/* && rmdir out
15001 cd ..
15002 $RM -r conftest
15003 $RM conftest*
15004
15005fi
15006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15007$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15008
15009
15010
15011
15012hard_links="nottested"
15013if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15014 # do not overwrite the value of need_locks provided by the user
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15016$as_echo_n "checking if we can lock with hard links... " >&6; }
15017 hard_links=yes
15018 $RM conftest*
15019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15020 touch conftest.a
15021 ln conftest.a conftest.b 2>&5 || hard_links=no
15022 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15024$as_echo "$hard_links" >&6; }
15025 if test "$hard_links" = no; then
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15027$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15028 need_locks=warn
15029 fi
15030else
15031 need_locks=no
15032fi
15033
15034
15035
15036
15037
15038
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15040$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15041
15042 runpath_var=
15043 allow_undefined_flag=
15044 always_export_symbols=no
15045 archive_cmds=
15046 archive_expsym_cmds=
15047 compiler_needs_object=no
15048 enable_shared_with_static_runtimes=no
15049 export_dynamic_flag_spec=
15050 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15051 hardcode_automatic=no
15052 hardcode_direct=no
15053 hardcode_direct_absolute=no
15054 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015055 hardcode_libdir_separator=
15056 hardcode_minus_L=no
15057 hardcode_shlibpath_var=unsupported
15058 inherit_rpath=no
15059 link_all_deplibs=unknown
15060 module_cmds=
15061 module_expsym_cmds=
15062 old_archive_from_new_cmds=
15063 old_archive_from_expsyms_cmds=
15064 thread_safe_flag_spec=
15065 whole_archive_flag_spec=
15066 # include_expsyms should be a list of space-separated symbols to be *always*
15067 # included in the symbol list
15068 include_expsyms=
15069 # exclude_expsyms can be an extended regexp of symbols to exclude
15070 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15071 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15072 # as well as any symbol that contains `d'.
15073 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15074 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15075 # platforms (ab)use it in PIC code, but their linkers get confused if
15076 # the symbol is explicitly referenced. Since portable code cannot
15077 # rely on this symbol name, it's probably fine to never include it in
15078 # preloaded symbol tables.
15079 # Exclude shared library initialization/finalization symbols.
15080 extract_expsyms_cmds=
15081
15082 case $host_os in
15083 cygwin* | mingw* | pw32* | cegcc*)
15084 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15085 # When not using gcc, we currently assume that we are using
15086 # Microsoft Visual C++.
15087 if test "$GCC" != yes; then
15088 with_gnu_ld=no
15089 fi
15090 ;;
15091 interix*)
15092 # we just hope/assume this is gcc and not c89 (= MSVC++)
15093 with_gnu_ld=yes
15094 ;;
15095 openbsd*)
15096 with_gnu_ld=no
15097 ;;
15098 esac
15099
15100 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015101
15102 # On some targets, GNU ld is compatible enough with the native linker
15103 # that we're better off using the native interface for both.
15104 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015105 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015106 case $host_os in
15107 aix*)
15108 # The AIX port of GNU ld has always aspired to compatibility
15109 # with the native linker. However, as the warning in the GNU ld
15110 # block says, versions before 2.19.5* couldn't really create working
15111 # shared libraries, regardless of the interface used.
15112 case `$LD -v 2>&1` in
15113 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15114 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15115 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15116 *)
15117 lt_use_gnu_ld_interface=yes
15118 ;;
15119 esac
15120 ;;
15121 *)
15122 lt_use_gnu_ld_interface=yes
15123 ;;
15124 esac
15125 fi
15126
15127 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015128 # If archive_cmds runs LD, not CC, wlarc should be empty
15129 wlarc='${wl}'
15130
15131 # Set some defaults for GNU ld with shared library support. These
15132 # are reset later if shared libraries are not supported. Putting them
15133 # here allows them to be overridden if necessary.
15134 runpath_var=LD_RUN_PATH
15135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15136 export_dynamic_flag_spec='${wl}--export-dynamic'
15137 # ancient GNU ld didn't support --whole-archive et. al.
15138 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15139 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15140 else
15141 whole_archive_flag_spec=
15142 fi
15143 supports_anon_versioning=no
15144 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015145 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015146 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15147 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15148 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15149 *\ 2.11.*) ;; # other 2.11 versions
15150 *) supports_anon_versioning=yes ;;
15151 esac
15152
15153 # See if GNU ld supports shared libraries.
15154 case $host_os in
15155 aix[3-9]*)
15156 # On AIX/PPC, the GNU linker is very broken
15157 if test "$host_cpu" != ia64; then
15158 ld_shlibs=no
15159 cat <<_LT_EOF 1>&2
15160
cristy0c60a692010-11-04 01:09:47 +000015161*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015162*** to be unable to reliably create shared libraries on AIX.
15163*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015164*** really care for shared libraries, you may want to install binutils
15165*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15166*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015167
15168_LT_EOF
15169 fi
15170 ;;
15171
15172 amigaos*)
15173 case $host_cpu in
15174 powerpc)
15175 # see comment about AmigaOS4 .so support
15176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15177 archive_expsym_cmds=''
15178 ;;
15179 m68k)
15180 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)'
15181 hardcode_libdir_flag_spec='-L$libdir'
15182 hardcode_minus_L=yes
15183 ;;
15184 esac
15185 ;;
15186
15187 beos*)
15188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15189 allow_undefined_flag=unsupported
15190 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15191 # support --undefined. This deserves some investigation. FIXME
15192 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15193 else
15194 ld_shlibs=no
15195 fi
15196 ;;
15197
15198 cygwin* | mingw* | pw32* | cegcc*)
15199 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15200 # as there is no search path for DLLs.
15201 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015202 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015203 allow_undefined_flag=unsupported
15204 always_export_symbols=no
15205 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015206 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'
15207 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 +000015208
15209 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15211 # If the export-symbols file already is a .def file (1st line
15212 # is EXPORTS), use it as is; otherwise, prepend...
15213 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15214 cp $export_symbols $output_objdir/$soname.def;
15215 else
15216 echo EXPORTS > $output_objdir/$soname.def;
15217 cat $export_symbols >> $output_objdir/$soname.def;
15218 fi~
15219 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15220 else
15221 ld_shlibs=no
15222 fi
15223 ;;
15224
cristy0c60a692010-11-04 01:09:47 +000015225 haiku*)
15226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15227 link_all_deplibs=yes
15228 ;;
15229
cristy73bd4a52010-10-05 11:24:23 +000015230 interix[3-9]*)
15231 hardcode_direct=no
15232 hardcode_shlibpath_var=no
15233 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15234 export_dynamic_flag_spec='${wl}-E'
15235 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15236 # Instead, shared libraries are loaded at an image base (0x10000000 by
15237 # default) and relocated if they conflict, which is a slow very memory
15238 # consuming and fragmenting process. To avoid this, we pick a random,
15239 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15240 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15241 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15242 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'
15243 ;;
15244
cristy0c60a692010-11-04 01:09:47 +000015245 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015246 tmp_diet=no
15247 if test "$host_os" = linux-dietlibc; then
15248 case $cc_basename in
15249 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15250 esac
15251 fi
15252 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15253 && test "$tmp_diet" = no
15254 then
cristyda16f162011-02-19 23:52:17 +000015255 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015256 tmp_sharedflag='-shared'
15257 case $cc_basename,$host_cpu in
15258 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015259 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 +000015260 tmp_addflag=' $pic_flag'
15261 ;;
cristy0c60a692010-11-04 01:09:47 +000015262 pgf77* | pgf90* | pgf95* | pgfortran*)
15263 # Portland Group f77 and f90 compilers
15264 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 +000015265 tmp_addflag=' $pic_flag -Mnomain' ;;
15266 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15267 tmp_addflag=' -i_dynamic' ;;
15268 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15269 tmp_addflag=' -i_dynamic -nofor_main' ;;
15270 ifc* | ifort*) # Intel Fortran compiler
15271 tmp_addflag=' -nofor_main' ;;
15272 lf95*) # Lahey Fortran 8.1
15273 whole_archive_flag_spec=
15274 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015275 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015276 tmp_sharedflag='-qmkshrobj'
15277 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015278 nvcc*) # Cuda Compiler Driver 2.2
15279 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'
15280 compiler_needs_object=yes
15281 ;;
cristy73bd4a52010-10-05 11:24:23 +000015282 esac
15283 case `$CC -V 2>&1 | sed 5q` in
15284 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015285 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 +000015286 compiler_needs_object=yes
15287 tmp_sharedflag='-G' ;;
15288 *Sun\ F*) # Sun Fortran 8.3
15289 tmp_sharedflag='-G' ;;
15290 esac
15291 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15292
15293 if test "x$supports_anon_versioning" = xyes; then
15294 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15295 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15296 echo "local: *; };" >> $output_objdir/$libname.ver~
15297 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15298 fi
15299
15300 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015301 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015302 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15303 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015305 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015306 if test "x$supports_anon_versioning" = xyes; then
15307 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15308 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15309 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015310 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015311 fi
15312 ;;
15313 esac
15314 else
15315 ld_shlibs=no
15316 fi
15317 ;;
15318
15319 netbsd*)
15320 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15321 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15322 wlarc=
15323 else
cristyda16f162011-02-19 23:52:17 +000015324 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15325 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 +000015326 fi
15327 ;;
15328
15329 solaris*)
15330 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15331 ld_shlibs=no
15332 cat <<_LT_EOF 1>&2
15333
15334*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15335*** create shared libraries on Solaris systems. Therefore, libtool
15336*** is disabling shared libraries support. We urge you to upgrade GNU
15337*** binutils to release 2.9.1 or newer. Another option is to modify
15338*** your PATH or compiler configuration so that the native linker is
15339*** used, and then restart.
15340
15341_LT_EOF
15342 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015343 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15344 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 +000015345 else
15346 ld_shlibs=no
15347 fi
15348 ;;
15349
15350 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15351 case `$LD -v 2>&1` in
15352 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15353 ld_shlibs=no
15354 cat <<_LT_EOF 1>&2
15355
15356*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15357*** reliably create shared libraries on SCO systems. Therefore, libtool
15358*** is disabling shared libraries support. We urge you to upgrade GNU
15359*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15360*** your PATH or compiler configuration so that the native linker is
15361*** used, and then restart.
15362
15363_LT_EOF
15364 ;;
15365 *)
15366 # For security reasons, it is highly recommended that you always
15367 # use absolute paths for naming shared libraries, and exclude the
15368 # DT_RUNPATH tag from executables and libraries. But doing so
15369 # requires that you compile everything twice, which is a pain.
15370 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15373 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15374 else
15375 ld_shlibs=no
15376 fi
15377 ;;
15378 esac
15379 ;;
15380
15381 sunos4*)
15382 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15383 wlarc=
15384 hardcode_direct=yes
15385 hardcode_shlibpath_var=no
15386 ;;
15387
15388 *)
15389 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015390 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15391 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 +000015392 else
15393 ld_shlibs=no
15394 fi
15395 ;;
15396 esac
15397
15398 if test "$ld_shlibs" = no; then
15399 runpath_var=
15400 hardcode_libdir_flag_spec=
15401 export_dynamic_flag_spec=
15402 whole_archive_flag_spec=
15403 fi
15404 else
15405 # PORTME fill in a description of your system's linker (not GNU ld)
15406 case $host_os in
15407 aix3*)
15408 allow_undefined_flag=unsupported
15409 always_export_symbols=yes
15410 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'
15411 # Note: this linker hardcodes the directories in LIBPATH if there
15412 # are no directories specified by -L.
15413 hardcode_minus_L=yes
15414 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15415 # Neither direct hardcoding nor static linking is supported with a
15416 # broken collect2.
15417 hardcode_direct=unsupported
15418 fi
15419 ;;
15420
15421 aix[4-9]*)
15422 if test "$host_cpu" = ia64; then
15423 # On IA64, the linker does run time linking by default, so we don't
15424 # have to do anything special.
15425 aix_use_runtimelinking=no
15426 exp_sym_flag='-Bexport'
15427 no_entry_flag=""
15428 else
15429 # If we're using GNU nm, then we don't want the "-C" option.
15430 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015431 # Also, AIX nm treats weak defined symbols like other global
15432 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015433 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015434 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 +000015435 else
15436 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'
15437 fi
15438 aix_use_runtimelinking=no
15439
15440 # Test if we are trying to use run time linking or normal
15441 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15442 # need to do runtime linking.
15443 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15444 for ld_flag in $LDFLAGS; do
15445 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15446 aix_use_runtimelinking=yes
15447 break
15448 fi
15449 done
15450 ;;
15451 esac
15452
15453 exp_sym_flag='-bexport'
15454 no_entry_flag='-bnoentry'
15455 fi
15456
15457 # When large executables or shared objects are built, AIX ld can
15458 # have problems creating the table of contents. If linking a library
15459 # or program results in "error TOC overflow" add -mminimal-toc to
15460 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15461 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15462
15463 archive_cmds=''
15464 hardcode_direct=yes
15465 hardcode_direct_absolute=yes
15466 hardcode_libdir_separator=':'
15467 link_all_deplibs=yes
15468 file_list_spec='${wl}-f,'
15469
15470 if test "$GCC" = yes; then
15471 case $host_os in aix4.[012]|aix4.[012].*)
15472 # We only want to do this on AIX 4.2 and lower, the check
15473 # below for broken collect2 doesn't work under 4.3+
15474 collect2name=`${CC} -print-prog-name=collect2`
15475 if test -f "$collect2name" &&
15476 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15477 then
15478 # We have reworked collect2
15479 :
15480 else
15481 # We have old collect2
15482 hardcode_direct=unsupported
15483 # It fails to find uninstalled libraries when the uninstalled
15484 # path is not listed in the libpath. Setting hardcode_minus_L
15485 # to unsupported forces relinking
15486 hardcode_minus_L=yes
15487 hardcode_libdir_flag_spec='-L$libdir'
15488 hardcode_libdir_separator=
15489 fi
15490 ;;
15491 esac
15492 shared_flag='-shared'
15493 if test "$aix_use_runtimelinking" = yes; then
15494 shared_flag="$shared_flag "'${wl}-G'
15495 fi
15496 else
15497 # not using gcc
15498 if test "$host_cpu" = ia64; then
15499 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15500 # chokes on -Wl,-G. The following line is correct:
15501 shared_flag='-G'
15502 else
15503 if test "$aix_use_runtimelinking" = yes; then
15504 shared_flag='${wl}-G'
15505 else
15506 shared_flag='${wl}-bM:SRE'
15507 fi
15508 fi
15509 fi
15510
15511 export_dynamic_flag_spec='${wl}-bexpall'
15512 # It seems that -bexpall does not export symbols beginning with
15513 # underscore (_), so it is better to generate a list of symbols to export.
15514 always_export_symbols=yes
15515 if test "$aix_use_runtimelinking" = yes; then
15516 # Warning - without using the other runtime loading flags (-brtl),
15517 # -berok will link without error, but may produce a broken library.
15518 allow_undefined_flag='-berok'
15519 # Determine the default libpath from the value encoded in an
15520 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015521 if test "${lt_cv_aix_libpath+set}" = set; then
15522 aix_libpath=$lt_cv_aix_libpath
15523else
15524 if ${lt_cv_aix_libpath_+:} false; then :
15525 $as_echo_n "(cached) " >&6
15526else
15527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015528/* end confdefs.h. */
15529
15530int
15531main ()
15532{
15533
15534 ;
15535 return 0;
15536}
15537_ACEOF
15538if ac_fn_c_try_link "$LINENO"; then :
15539
cristyda16f162011-02-19 23:52:17 +000015540 lt_aix_libpath_sed='
15541 /Import File Strings/,/^$/ {
15542 /^0/ {
15543 s/^0 *\([^ ]*\) *$/\1/
15544 p
15545 }
15546 }'
15547 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15548 # Check for a 64-bit object if we didn't find anything.
15549 if test -z "$lt_cv_aix_libpath_"; then
15550 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15551 fi
cristy73bd4a52010-10-05 11:24:23 +000015552fi
15553rm -f core conftest.err conftest.$ac_objext \
15554 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015555 if test -z "$lt_cv_aix_libpath_"; then
15556 lt_cv_aix_libpath_="/usr/lib:/lib"
15557 fi
15558
15559fi
15560
15561 aix_libpath=$lt_cv_aix_libpath_
15562fi
cristy73bd4a52010-10-05 11:24:23 +000015563
15564 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015565 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 +000015566 else
15567 if test "$host_cpu" = ia64; then
15568 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15569 allow_undefined_flag="-z nodefs"
15570 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"
15571 else
15572 # Determine the default libpath from the value encoded in an
15573 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015574 if test "${lt_cv_aix_libpath+set}" = set; then
15575 aix_libpath=$lt_cv_aix_libpath
15576else
15577 if ${lt_cv_aix_libpath_+:} false; then :
15578 $as_echo_n "(cached) " >&6
15579else
15580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015581/* end confdefs.h. */
15582
15583int
15584main ()
15585{
15586
15587 ;
15588 return 0;
15589}
15590_ACEOF
15591if ac_fn_c_try_link "$LINENO"; then :
15592
cristyda16f162011-02-19 23:52:17 +000015593 lt_aix_libpath_sed='
15594 /Import File Strings/,/^$/ {
15595 /^0/ {
15596 s/^0 *\([^ ]*\) *$/\1/
15597 p
15598 }
15599 }'
15600 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15601 # Check for a 64-bit object if we didn't find anything.
15602 if test -z "$lt_cv_aix_libpath_"; then
15603 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15604 fi
cristy73bd4a52010-10-05 11:24:23 +000015605fi
15606rm -f core conftest.err conftest.$ac_objext \
15607 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015608 if test -z "$lt_cv_aix_libpath_"; then
15609 lt_cv_aix_libpath_="/usr/lib:/lib"
15610 fi
15611
15612fi
15613
15614 aix_libpath=$lt_cv_aix_libpath_
15615fi
cristy73bd4a52010-10-05 11:24:23 +000015616
15617 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15618 # Warning - without using the other run time loading flags,
15619 # -berok will link without error, but may produce a broken library.
15620 no_undefined_flag=' ${wl}-bernotok'
15621 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015622 if test "$with_gnu_ld" = yes; then
15623 # We only use this code for GNU lds that support --whole-archive.
15624 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15625 else
15626 # Exported symbols can be pulled into shared objects from archives
15627 whole_archive_flag_spec='$convenience'
15628 fi
cristy73bd4a52010-10-05 11:24:23 +000015629 archive_cmds_need_lc=yes
15630 # This is similar to how AIX traditionally builds its shared libraries.
15631 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'
15632 fi
15633 fi
15634 ;;
15635
15636 amigaos*)
15637 case $host_cpu in
15638 powerpc)
15639 # see comment about AmigaOS4 .so support
15640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15641 archive_expsym_cmds=''
15642 ;;
15643 m68k)
15644 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)'
15645 hardcode_libdir_flag_spec='-L$libdir'
15646 hardcode_minus_L=yes
15647 ;;
15648 esac
15649 ;;
15650
15651 bsdi[45]*)
15652 export_dynamic_flag_spec=-rdynamic
15653 ;;
15654
15655 cygwin* | mingw* | pw32* | cegcc*)
15656 # When not using gcc, we currently assume that we are using
15657 # Microsoft Visual C++.
15658 # hardcode_libdir_flag_spec is actually meaningless, as there is
15659 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015660 case $cc_basename in
15661 cl*)
15662 # Native MSVC
15663 hardcode_libdir_flag_spec=' '
15664 allow_undefined_flag=unsupported
15665 always_export_symbols=yes
15666 file_list_spec='@'
15667 # Tell ltmain to make .lib files, not .a files.
15668 libext=lib
15669 # Tell ltmain to make .dll files, not .so files.
15670 shrext_cmds=".dll"
15671 # FIXME: Setting linknames here is a bad hack.
15672 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15673 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15674 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15675 else
15676 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15677 fi~
15678 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15679 linknames='
15680 # The linker will not automatically build a static lib if we build a DLL.
15681 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15682 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015683 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015684 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15685 # Don't use ranlib
15686 old_postinstall_cmds='chmod 644 $oldlib'
15687 postlink_cmds='lt_outputfile="@OUTPUT@"~
15688 lt_tool_outputfile="@TOOL_OUTPUT@"~
15689 case $lt_outputfile in
15690 *.exe|*.EXE) ;;
15691 *)
15692 lt_outputfile="$lt_outputfile.exe"
15693 lt_tool_outputfile="$lt_tool_outputfile.exe"
15694 ;;
15695 esac~
15696 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15697 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15698 $RM "$lt_outputfile.manifest";
15699 fi'
15700 ;;
15701 *)
15702 # Assume MSVC wrapper
15703 hardcode_libdir_flag_spec=' '
15704 allow_undefined_flag=unsupported
15705 # Tell ltmain to make .lib files, not .a files.
15706 libext=lib
15707 # Tell ltmain to make .dll files, not .so files.
15708 shrext_cmds=".dll"
15709 # FIXME: Setting linknames here is a bad hack.
15710 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15711 # The linker will automatically build a .lib file if we build a DLL.
15712 old_archive_from_new_cmds='true'
15713 # FIXME: Should let the user specify the lib program.
15714 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15715 enable_shared_with_static_runtimes=yes
15716 ;;
15717 esac
cristy73bd4a52010-10-05 11:24:23 +000015718 ;;
15719
15720 darwin* | rhapsody*)
15721
15722
15723 archive_cmds_need_lc=no
15724 hardcode_direct=no
15725 hardcode_automatic=yes
15726 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015727 if test "$lt_cv_ld_force_load" = "yes"; then
15728 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 +000015729
cristy0c60a692010-11-04 01:09:47 +000015730 else
15731 whole_archive_flag_spec=''
15732 fi
cristy73bd4a52010-10-05 11:24:23 +000015733 link_all_deplibs=yes
15734 allow_undefined_flag="$_lt_dar_allow_undefined"
15735 case $cc_basename in
15736 ifort*) _lt_dar_can_shared=yes ;;
15737 *) _lt_dar_can_shared=$GCC ;;
15738 esac
15739 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015740 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015741 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15742 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15743 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}"
15744 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}"
15745
15746 else
15747 ld_shlibs=no
15748 fi
15749
15750 ;;
15751
15752 dgux*)
15753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15754 hardcode_libdir_flag_spec='-L$libdir'
15755 hardcode_shlibpath_var=no
15756 ;;
15757
cristy73bd4a52010-10-05 11:24:23 +000015758 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15759 # support. Future versions do this automatically, but an explicit c++rt0.o
15760 # does not break anything, and helps significantly (at the cost of a little
15761 # extra space).
15762 freebsd2.2*)
15763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15764 hardcode_libdir_flag_spec='-R$libdir'
15765 hardcode_direct=yes
15766 hardcode_shlibpath_var=no
15767 ;;
15768
15769 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015770 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15772 hardcode_direct=yes
15773 hardcode_minus_L=yes
15774 hardcode_shlibpath_var=no
15775 ;;
15776
15777 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15778 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015779 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015780 hardcode_libdir_flag_spec='-R$libdir'
15781 hardcode_direct=yes
15782 hardcode_shlibpath_var=no
15783 ;;
15784
15785 hpux9*)
15786 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015787 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 +000015788 else
15789 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'
15790 fi
15791 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15792 hardcode_libdir_separator=:
15793 hardcode_direct=yes
15794
15795 # hardcode_minus_L: Not really in the search PATH,
15796 # but as the default location of the library.
15797 hardcode_minus_L=yes
15798 export_dynamic_flag_spec='${wl}-E'
15799 ;;
15800
15801 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015802 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015803 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 +000015804 else
15805 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15806 fi
15807 if test "$with_gnu_ld" = no; then
15808 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015809 hardcode_libdir_separator=:
15810 hardcode_direct=yes
15811 hardcode_direct_absolute=yes
15812 export_dynamic_flag_spec='${wl}-E'
15813 # hardcode_minus_L: Not really in the search PATH,
15814 # but as the default location of the library.
15815 hardcode_minus_L=yes
15816 fi
15817 ;;
15818
15819 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015820 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015821 case $host_cpu in
15822 hppa*64*)
15823 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15824 ;;
15825 ia64*)
cristyda16f162011-02-19 23:52:17 +000015826 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015827 ;;
15828 *)
cristyda16f162011-02-19 23:52:17 +000015829 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 +000015830 ;;
15831 esac
15832 else
15833 case $host_cpu in
15834 hppa*64*)
15835 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15836 ;;
15837 ia64*)
15838 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15839 ;;
15840 *)
cristy0c60a692010-11-04 01:09:47 +000015841
15842 # Older versions of the 11.00 compiler do not understand -b yet
15843 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15845$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015846if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015847 $as_echo_n "(cached) " >&6
15848else
15849 lt_cv_prog_compiler__b=no
15850 save_LDFLAGS="$LDFLAGS"
15851 LDFLAGS="$LDFLAGS -b"
15852 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15853 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15854 # The linker can only warn and ignore the option if not recognized
15855 # So say no if there are warnings
15856 if test -s conftest.err; then
15857 # Append any errors to the config.log.
15858 cat conftest.err 1>&5
15859 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15861 if diff conftest.exp conftest.er2 >/dev/null; then
15862 lt_cv_prog_compiler__b=yes
15863 fi
15864 else
15865 lt_cv_prog_compiler__b=yes
15866 fi
15867 fi
15868 $RM -r conftest*
15869 LDFLAGS="$save_LDFLAGS"
15870
15871fi
15872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15873$as_echo "$lt_cv_prog_compiler__b" >&6; }
15874
15875if test x"$lt_cv_prog_compiler__b" = xyes; then
15876 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15877else
15878 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15879fi
15880
cristy73bd4a52010-10-05 11:24:23 +000015881 ;;
15882 esac
15883 fi
15884 if test "$with_gnu_ld" = no; then
15885 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15886 hardcode_libdir_separator=:
15887
15888 case $host_cpu in
15889 hppa*64*|ia64*)
15890 hardcode_direct=no
15891 hardcode_shlibpath_var=no
15892 ;;
15893 *)
15894 hardcode_direct=yes
15895 hardcode_direct_absolute=yes
15896 export_dynamic_flag_spec='${wl}-E'
15897
15898 # hardcode_minus_L: Not really in the search PATH,
15899 # but as the default location of the library.
15900 hardcode_minus_L=yes
15901 ;;
15902 esac
15903 fi
15904 ;;
15905
15906 irix5* | irix6* | nonstopux*)
15907 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015908 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 +000015909 # Try to use the -exported_symbol ld option, if it does not
15910 # work, assume that -exports_file does not work either and
15911 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015912 # This should be the same for all languages, so no per-tag cache variable.
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15914$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15915if ${lt_cv_irix_exported_symbol+:} false; then :
15916 $as_echo_n "(cached) " >&6
15917else
15918 save_LDFLAGS="$LDFLAGS"
15919 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015921/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015922int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015923_ACEOF
15924if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015925 lt_cv_irix_exported_symbol=yes
15926else
15927 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015928fi
15929rm -f core conftest.err conftest.$ac_objext \
15930 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015931 LDFLAGS="$save_LDFLAGS"
15932fi
15933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15934$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15935 if test "$lt_cv_irix_exported_symbol" = yes; then
15936 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'
15937 fi
cristy73bd4a52010-10-05 11:24:23 +000015938 else
cristy0c60a692010-11-04 01:09:47 +000015939 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'
15940 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 +000015941 fi
15942 archive_cmds_need_lc='no'
15943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15944 hardcode_libdir_separator=:
15945 inherit_rpath=yes
15946 link_all_deplibs=yes
15947 ;;
15948
15949 netbsd*)
15950 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15952 else
15953 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15954 fi
15955 hardcode_libdir_flag_spec='-R$libdir'
15956 hardcode_direct=yes
15957 hardcode_shlibpath_var=no
15958 ;;
15959
15960 newsos6)
15961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15962 hardcode_direct=yes
15963 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15964 hardcode_libdir_separator=:
15965 hardcode_shlibpath_var=no
15966 ;;
15967
15968 *nto* | *qnx*)
15969 ;;
15970
15971 openbsd*)
15972 if test -f /usr/libexec/ld.so; then
15973 hardcode_direct=yes
15974 hardcode_shlibpath_var=no
15975 hardcode_direct_absolute=yes
15976 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15977 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15978 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15979 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15980 export_dynamic_flag_spec='${wl}-E'
15981 else
15982 case $host_os in
15983 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15985 hardcode_libdir_flag_spec='-R$libdir'
15986 ;;
15987 *)
15988 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15989 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15990 ;;
15991 esac
15992 fi
15993 else
15994 ld_shlibs=no
15995 fi
15996 ;;
15997
15998 os2*)
15999 hardcode_libdir_flag_spec='-L$libdir'
16000 hardcode_minus_L=yes
16001 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016002 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 +000016003 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16004 ;;
16005
16006 osf3*)
16007 if test "$GCC" = yes; then
16008 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016009 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 +000016010 else
16011 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016012 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 +000016013 fi
16014 archive_cmds_need_lc='no'
16015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16016 hardcode_libdir_separator=:
16017 ;;
16018
16019 osf4* | osf5*) # as osf3* with the addition of -msym flag
16020 if test "$GCC" = yes; then
16021 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016022 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 +000016023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16024 else
16025 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016026 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 +000016027 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 +000016028 $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 +000016029
16030 # Both c and cxx compiler support -rpath directly
16031 hardcode_libdir_flag_spec='-rpath $libdir'
16032 fi
16033 archive_cmds_need_lc='no'
16034 hardcode_libdir_separator=:
16035 ;;
16036
16037 solaris*)
16038 no_undefined_flag=' -z defs'
16039 if test "$GCC" = yes; then
16040 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016041 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 +000016042 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 +000016043 $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 +000016044 else
16045 case `$CC -V 2>&1` in
16046 *"Compilers 5.0"*)
16047 wlarc=''
16048 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16050 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16051 ;;
16052 *)
16053 wlarc='${wl}'
16054 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16055 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16056 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16057 ;;
16058 esac
16059 fi
16060 hardcode_libdir_flag_spec='-R$libdir'
16061 hardcode_shlibpath_var=no
16062 case $host_os in
16063 solaris2.[0-5] | solaris2.[0-5].*) ;;
16064 *)
16065 # The compiler driver will combine and reorder linker options,
16066 # but understands `-z linker_flag'. GCC discards it without `$wl',
16067 # but is careful enough not to reorder.
16068 # Supported since Solaris 2.6 (maybe 2.5.1?)
16069 if test "$GCC" = yes; then
16070 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16071 else
16072 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16073 fi
16074 ;;
16075 esac
16076 link_all_deplibs=yes
16077 ;;
16078
16079 sunos4*)
16080 if test "x$host_vendor" = xsequent; then
16081 # Use $CC to link under sequent, because it throws in some extra .o
16082 # files that make .init and .fini sections work.
16083 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16084 else
16085 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16086 fi
16087 hardcode_libdir_flag_spec='-L$libdir'
16088 hardcode_direct=yes
16089 hardcode_minus_L=yes
16090 hardcode_shlibpath_var=no
16091 ;;
16092
16093 sysv4)
16094 case $host_vendor in
16095 sni)
16096 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16097 hardcode_direct=yes # is this really true???
16098 ;;
16099 siemens)
16100 ## LD is ld it makes a PLAMLIB
16101 ## CC just makes a GrossModule.
16102 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16103 reload_cmds='$CC -r -o $output$reload_objs'
16104 hardcode_direct=no
16105 ;;
16106 motorola)
16107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16108 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16109 ;;
16110 esac
16111 runpath_var='LD_RUN_PATH'
16112 hardcode_shlibpath_var=no
16113 ;;
16114
16115 sysv4.3*)
16116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16117 hardcode_shlibpath_var=no
16118 export_dynamic_flag_spec='-Bexport'
16119 ;;
16120
16121 sysv4*MP*)
16122 if test -d /usr/nec; then
16123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16124 hardcode_shlibpath_var=no
16125 runpath_var=LD_RUN_PATH
16126 hardcode_runpath_var=yes
16127 ld_shlibs=yes
16128 fi
16129 ;;
16130
16131 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16132 no_undefined_flag='${wl}-z,text'
16133 archive_cmds_need_lc=no
16134 hardcode_shlibpath_var=no
16135 runpath_var='LD_RUN_PATH'
16136
16137 if test "$GCC" = yes; then
16138 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16139 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16140 else
16141 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16142 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16143 fi
16144 ;;
16145
16146 sysv5* | sco3.2v5* | sco5v6*)
16147 # Note: We can NOT use -z defs as we might desire, because we do not
16148 # link with -lc, and that would cause any symbols used from libc to
16149 # always be unresolved, which means just about no library would
16150 # ever link correctly. If we're not using GNU ld we use -z text
16151 # though, which does catch some bad symbols but isn't as heavy-handed
16152 # as -z defs.
16153 no_undefined_flag='${wl}-z,text'
16154 allow_undefined_flag='${wl}-z,nodefs'
16155 archive_cmds_need_lc=no
16156 hardcode_shlibpath_var=no
16157 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16158 hardcode_libdir_separator=':'
16159 link_all_deplibs=yes
16160 export_dynamic_flag_spec='${wl}-Bexport'
16161 runpath_var='LD_RUN_PATH'
16162
16163 if test "$GCC" = yes; then
16164 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16165 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16166 else
16167 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16168 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16169 fi
16170 ;;
16171
16172 uts4*)
16173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16174 hardcode_libdir_flag_spec='-L$libdir'
16175 hardcode_shlibpath_var=no
16176 ;;
16177
16178 *)
16179 ld_shlibs=no
16180 ;;
16181 esac
16182
16183 if test x$host_vendor = xsni; then
16184 case $host in
16185 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16186 export_dynamic_flag_spec='${wl}-Blargedynsym'
16187 ;;
16188 esac
16189 fi
16190 fi
16191
16192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16193$as_echo "$ld_shlibs" >&6; }
16194test "$ld_shlibs" = no && can_build_shared=no
16195
16196with_gnu_ld=$with_gnu_ld
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212#
16213# Do we need to explicitly link libc?
16214#
16215case "x$archive_cmds_need_lc" in
16216x|xyes)
16217 # Assume -lc should be added
16218 archive_cmds_need_lc=yes
16219
16220 if test "$enable_shared" = yes && test "$GCC" = yes; then
16221 case $archive_cmds in
16222 *'~'*)
16223 # FIXME: we may have to deal with multi-command sequences.
16224 ;;
16225 '$CC '*)
16226 # Test whether the compiler implicitly links with -lc since on some
16227 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16228 # to ld, don't add -lc before -lgcc.
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16230$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016231if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016232 $as_echo_n "(cached) " >&6
16233else
16234 $RM conftest*
16235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016236
cristy0c60a692010-11-04 01:09:47 +000016237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016238 (eval $ac_compile) 2>&5
16239 ac_status=$?
16240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16241 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016242 soname=conftest
16243 lib=conftest
16244 libobjs=conftest.$ac_objext
16245 deplibs=
16246 wl=$lt_prog_compiler_wl
16247 pic_flag=$lt_prog_compiler_pic
16248 compiler_flags=-v
16249 linker_flags=-v
16250 verstring=
16251 output_objdir=.
16252 libname=conftest
16253 lt_save_allow_undefined_flag=$allow_undefined_flag
16254 allow_undefined_flag=
16255 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 +000016256 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16257 ac_status=$?
16258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16259 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016260 then
16261 lt_cv_archive_cmds_need_lc=no
16262 else
16263 lt_cv_archive_cmds_need_lc=yes
16264 fi
16265 allow_undefined_flag=$lt_save_allow_undefined_flag
16266 else
16267 cat conftest.err 1>&5
16268 fi
16269 $RM conftest*
16270
16271fi
16272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16273$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16274 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016275 ;;
16276 esac
16277 fi
16278 ;;
16279esac
16280
16281
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
cristy73bd4a52010-10-05 11:24:23 +000016432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16433$as_echo_n "checking dynamic linker characteristics... " >&6; }
16434
16435if test "$GCC" = yes; then
16436 case $host_os in
16437 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16438 *) lt_awk_arg="/^libraries:/" ;;
16439 esac
cristy0c60a692010-11-04 01:09:47 +000016440 case $host_os in
16441 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16442 *) lt_sed_strip_eq="s,=/,/,g" ;;
16443 esac
16444 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16445 case $lt_search_path_spec in
16446 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016447 # if the path contains ";" then we assume it to be the separator
16448 # otherwise default to the standard path separator (i.e. ":") - it is
16449 # assumed that no part of a normal pathname contains ";" but that should
16450 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016451 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16452 ;;
16453 *)
16454 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16455 ;;
16456 esac
cristy73bd4a52010-10-05 11:24:23 +000016457 # Ok, now we have the path, separated by spaces, we can step through it
16458 # and add multilib dir if necessary.
16459 lt_tmp_lt_search_path_spec=
16460 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16461 for lt_sys_path in $lt_search_path_spec; do
16462 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16463 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16464 else
16465 test -d "$lt_sys_path" && \
16466 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16467 fi
16468 done
cristy0c60a692010-11-04 01:09:47 +000016469 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016470BEGIN {RS=" "; FS="/|\n";} {
16471 lt_foo="";
16472 lt_count=0;
16473 for (lt_i = NF; lt_i > 0; lt_i--) {
16474 if ($lt_i != "" && $lt_i != ".") {
16475 if ($lt_i == "..") {
16476 lt_count++;
16477 } else {
16478 if (lt_count == 0) {
16479 lt_foo="/" $lt_i lt_foo;
16480 } else {
16481 lt_count--;
16482 }
16483 }
16484 }
16485 }
16486 if (lt_foo != "") { lt_freq[lt_foo]++; }
16487 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16488}'`
cristy0c60a692010-11-04 01:09:47 +000016489 # AWK program above erroneously prepends '/' to C:/dos/paths
16490 # for these hosts.
16491 case $host_os in
16492 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16493 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16494 esac
16495 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016496else
16497 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16498fi
16499library_names_spec=
16500libname_spec='lib$name'
16501soname_spec=
16502shrext_cmds=".so"
16503postinstall_cmds=
16504postuninstall_cmds=
16505finish_cmds=
16506finish_eval=
16507shlibpath_var=
16508shlibpath_overrides_runpath=unknown
16509version_type=none
16510dynamic_linker="$host_os ld.so"
16511sys_lib_dlsearch_path_spec="/lib /usr/lib"
16512need_lib_prefix=unknown
16513hardcode_into_libs=no
16514
16515# when you set need_version to no, make sure it does not cause -set_version
16516# flags to be left without arguments
16517need_version=unknown
16518
16519case $host_os in
16520aix3*)
cristy99bd5232011-12-07 14:38:20 +000016521 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016522 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16523 shlibpath_var=LIBPATH
16524
16525 # AIX 3 has no versioning support, so we append a major version to the name.
16526 soname_spec='${libname}${release}${shared_ext}$major'
16527 ;;
16528
16529aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016530 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016531 need_lib_prefix=no
16532 need_version=no
16533 hardcode_into_libs=yes
16534 if test "$host_cpu" = ia64; then
16535 # AIX 5 supports IA64
16536 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16537 shlibpath_var=LD_LIBRARY_PATH
16538 else
16539 # With GCC up to 2.95.x, collect2 would create an import file
16540 # for dependence libraries. The import file would start with
16541 # the line `#! .'. This would cause the generated library to
16542 # depend on `.', always an invalid library. This was fixed in
16543 # development snapshots of GCC prior to 3.0.
16544 case $host_os in
16545 aix4 | aix4.[01] | aix4.[01].*)
16546 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16547 echo ' yes '
16548 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16549 :
16550 else
16551 can_build_shared=no
16552 fi
16553 ;;
16554 esac
16555 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16556 # soname into executable. Probably we can add versioning support to
16557 # collect2, so additional links can be useful in future.
16558 if test "$aix_use_runtimelinking" = yes; then
16559 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16560 # instead of lib<name>.a to let people know that these are not
16561 # typical AIX shared libraries.
16562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16563 else
16564 # We preserve .a as extension for shared libraries through AIX4.2
16565 # and later when we are not doing run time linking.
16566 library_names_spec='${libname}${release}.a $libname.a'
16567 soname_spec='${libname}${release}${shared_ext}$major'
16568 fi
16569 shlibpath_var=LIBPATH
16570 fi
16571 ;;
16572
16573amigaos*)
16574 case $host_cpu in
16575 powerpc)
16576 # Since July 2007 AmigaOS4 officially supports .so libraries.
16577 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16579 ;;
16580 m68k)
16581 library_names_spec='$libname.ixlibrary $libname.a'
16582 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016583 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 +000016584 ;;
16585 esac
16586 ;;
16587
16588beos*)
16589 library_names_spec='${libname}${shared_ext}'
16590 dynamic_linker="$host_os ld.so"
16591 shlibpath_var=LIBRARY_PATH
16592 ;;
16593
16594bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016595 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016596 need_version=no
16597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16598 soname_spec='${libname}${release}${shared_ext}$major'
16599 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16600 shlibpath_var=LD_LIBRARY_PATH
16601 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16602 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16603 # the default ld.so.conf also contains /usr/contrib/lib and
16604 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16605 # libtool to hard-code these into programs
16606 ;;
16607
16608cygwin* | mingw* | pw32* | cegcc*)
16609 version_type=windows
16610 shrext_cmds=".dll"
16611 need_version=no
16612 need_lib_prefix=no
16613
cristyda16f162011-02-19 23:52:17 +000016614 case $GCC,$cc_basename in
16615 yes,*)
16616 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016617 library_names_spec='$libname.dll.a'
16618 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16619 postinstall_cmds='base_file=`basename \${file}`~
16620 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16621 dldir=$destdir/`dirname \$dlpath`~
16622 test -d \$dldir || mkdir -p \$dldir~
16623 $install_prog $dir/$dlname \$dldir/$dlname~
16624 chmod a+x \$dldir/$dlname~
16625 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16626 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16627 fi'
16628 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16629 dlpath=$dir/\$dldll~
16630 $RM \$dlpath'
16631 shlibpath_overrides_runpath=yes
16632
16633 case $host_os in
16634 cygwin*)
16635 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16636 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016637
16638 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016639 ;;
16640 mingw* | cegcc*)
16641 # MinGW DLLs use traditional 'lib' prefix
16642 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016643 ;;
16644 pw32*)
16645 # pw32 DLLs use 'pw' prefix rather than 'lib'
16646 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16647 ;;
16648 esac
cristyda16f162011-02-19 23:52:17 +000016649 dynamic_linker='Win32 ld.exe'
16650 ;;
16651
16652 *,cl*)
16653 # Native MSVC
16654 libname_spec='$name'
16655 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16656 library_names_spec='${libname}.dll.lib'
16657
16658 case $build_os in
16659 mingw*)
16660 sys_lib_search_path_spec=
16661 lt_save_ifs=$IFS
16662 IFS=';'
16663 for lt_path in $LIB
16664 do
16665 IFS=$lt_save_ifs
16666 # Let DOS variable expansion print the short 8.3 style file name.
16667 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16668 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16669 done
16670 IFS=$lt_save_ifs
16671 # Convert to MSYS style.
16672 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16673 ;;
16674 cygwin*)
16675 # Convert to unix form, then to dos form, then back to unix form
16676 # but this time dos style (no spaces!) so that the unix form looks
16677 # like /cygdrive/c/PROGRA~1:/cygdr...
16678 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16679 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16680 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16681 ;;
16682 *)
16683 sys_lib_search_path_spec="$LIB"
16684 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16685 # It is most probably a Windows format PATH.
16686 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16687 else
16688 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16689 fi
16690 # FIXME: find the short name or the path components, as spaces are
16691 # common. (e.g. "Program Files" -> "PROGRA~1")
16692 ;;
16693 esac
16694
16695 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16696 postinstall_cmds='base_file=`basename \${file}`~
16697 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16698 dldir=$destdir/`dirname \$dlpath`~
16699 test -d \$dldir || mkdir -p \$dldir~
16700 $install_prog $dir/$dlname \$dldir/$dlname'
16701 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16702 dlpath=$dir/\$dldll~
16703 $RM \$dlpath'
16704 shlibpath_overrides_runpath=yes
16705 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016706 ;;
16707
16708 *)
cristyda16f162011-02-19 23:52:17 +000016709 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016710 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016711 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016712 ;;
16713 esac
cristy73bd4a52010-10-05 11:24:23 +000016714 # FIXME: first we should search . and the directory the executable is in
16715 shlibpath_var=PATH
16716 ;;
16717
16718darwin* | rhapsody*)
16719 dynamic_linker="$host_os dyld"
16720 version_type=darwin
16721 need_lib_prefix=no
16722 need_version=no
16723 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16724 soname_spec='${libname}${release}${major}$shared_ext'
16725 shlibpath_overrides_runpath=yes
16726 shlibpath_var=DYLD_LIBRARY_PATH
16727 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16728
16729 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16730 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16731 ;;
16732
16733dgux*)
cristy99bd5232011-12-07 14:38:20 +000016734 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016735 need_lib_prefix=no
16736 need_version=no
16737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16738 soname_spec='${libname}${release}${shared_ext}$major'
16739 shlibpath_var=LD_LIBRARY_PATH
16740 ;;
16741
cristy73bd4a52010-10-05 11:24:23 +000016742freebsd* | dragonfly*)
16743 # DragonFly does not have aout. When/if they implement a new
16744 # versioning mechanism, adjust this.
16745 if test -x /usr/bin/objformat; then
16746 objformat=`/usr/bin/objformat`
16747 else
16748 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016749 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016750 *) objformat=elf ;;
16751 esac
16752 fi
16753 version_type=freebsd-$objformat
16754 case $version_type in
16755 freebsd-elf*)
16756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16757 need_version=no
16758 need_lib_prefix=no
16759 ;;
16760 freebsd-*)
16761 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16762 need_version=yes
16763 ;;
16764 esac
16765 shlibpath_var=LD_LIBRARY_PATH
16766 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016767 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016768 shlibpath_overrides_runpath=yes
16769 ;;
16770 freebsd3.[01]* | freebsdelf3.[01]*)
16771 shlibpath_overrides_runpath=yes
16772 hardcode_into_libs=yes
16773 ;;
16774 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16775 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16776 shlibpath_overrides_runpath=no
16777 hardcode_into_libs=yes
16778 ;;
16779 *) # from 4.6 on, and DragonFly
16780 shlibpath_overrides_runpath=yes
16781 hardcode_into_libs=yes
16782 ;;
16783 esac
16784 ;;
16785
16786gnu*)
cristy99bd5232011-12-07 14:38:20 +000016787 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016788 need_lib_prefix=no
16789 need_version=no
16790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16791 soname_spec='${libname}${release}${shared_ext}$major'
16792 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016793 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016794 hardcode_into_libs=yes
16795 ;;
16796
cristy0c60a692010-11-04 01:09:47 +000016797haiku*)
cristy99bd5232011-12-07 14:38:20 +000016798 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016799 need_lib_prefix=no
16800 need_version=no
16801 dynamic_linker="$host_os runtime_loader"
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16803 soname_spec='${libname}${release}${shared_ext}$major'
16804 shlibpath_var=LIBRARY_PATH
16805 shlibpath_overrides_runpath=yes
16806 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16807 hardcode_into_libs=yes
16808 ;;
16809
cristy73bd4a52010-10-05 11:24:23 +000016810hpux9* | hpux10* | hpux11*)
16811 # Give a soname corresponding to the major version so that dld.sl refuses to
16812 # link against other versions.
16813 version_type=sunos
16814 need_lib_prefix=no
16815 need_version=no
16816 case $host_cpu in
16817 ia64*)
16818 shrext_cmds='.so'
16819 hardcode_into_libs=yes
16820 dynamic_linker="$host_os dld.so"
16821 shlibpath_var=LD_LIBRARY_PATH
16822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824 soname_spec='${libname}${release}${shared_ext}$major'
16825 if test "X$HPUX_IA64_MODE" = X32; then
16826 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16827 else
16828 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16829 fi
16830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16831 ;;
16832 hppa*64*)
16833 shrext_cmds='.sl'
16834 hardcode_into_libs=yes
16835 dynamic_linker="$host_os dld.sl"
16836 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16837 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16839 soname_spec='${libname}${release}${shared_ext}$major'
16840 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16842 ;;
16843 *)
16844 shrext_cmds='.sl'
16845 dynamic_linker="$host_os dld.sl"
16846 shlibpath_var=SHLIB_PATH
16847 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16849 soname_spec='${libname}${release}${shared_ext}$major'
16850 ;;
16851 esac
cristy0c60a692010-11-04 01:09:47 +000016852 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016853 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016854 # or fails outright, so override atomically:
16855 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016856 ;;
16857
16858interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016859 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016860 need_lib_prefix=no
16861 need_version=no
16862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16863 soname_spec='${libname}${release}${shared_ext}$major'
16864 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16865 shlibpath_var=LD_LIBRARY_PATH
16866 shlibpath_overrides_runpath=no
16867 hardcode_into_libs=yes
16868 ;;
16869
16870irix5* | irix6* | nonstopux*)
16871 case $host_os in
16872 nonstopux*) version_type=nonstopux ;;
16873 *)
16874 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016875 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016876 else
16877 version_type=irix
16878 fi ;;
16879 esac
16880 need_lib_prefix=no
16881 need_version=no
16882 soname_spec='${libname}${release}${shared_ext}$major'
16883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16884 case $host_os in
16885 irix5* | nonstopux*)
16886 libsuff= shlibsuff=
16887 ;;
16888 *)
16889 case $LD in # libtool.m4 will add one of these switches to LD
16890 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16891 libsuff= shlibsuff= libmagic=32-bit;;
16892 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16893 libsuff=32 shlibsuff=N32 libmagic=N32;;
16894 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16895 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16896 *) libsuff= shlibsuff= libmagic=never-match;;
16897 esac
16898 ;;
16899 esac
16900 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16901 shlibpath_overrides_runpath=no
16902 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16903 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16904 hardcode_into_libs=yes
16905 ;;
16906
16907# No shared lib support for Linux oldld, aout, or coff.
16908linux*oldld* | linux*aout* | linux*coff*)
16909 dynamic_linker=no
16910 ;;
16911
cristy99bd5232011-12-07 14:38:20 +000016912# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016913linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016914 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016915 need_lib_prefix=no
16916 need_version=no
16917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918 soname_spec='${libname}${release}${shared_ext}$major'
16919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16920 shlibpath_var=LD_LIBRARY_PATH
16921 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016922
cristy73bd4a52010-10-05 11:24:23 +000016923 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016924 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016925 $as_echo_n "(cached) " >&6
16926else
16927 lt_cv_shlibpath_overrides_runpath=no
16928 save_LDFLAGS=$LDFLAGS
16929 save_libdir=$libdir
16930 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16931 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016933/* end confdefs.h. */
16934
16935int
16936main ()
16937{
16938
16939 ;
16940 return 0;
16941}
16942_ACEOF
16943if ac_fn_c_try_link "$LINENO"; then :
16944 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016945 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016946fi
16947fi
16948rm -f core conftest.err conftest.$ac_objext \
16949 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016950 LDFLAGS=$save_LDFLAGS
16951 libdir=$save_libdir
16952
16953fi
16954
16955 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016956
16957 # This implies no fast_install, which is unacceptable.
16958 # Some rework will be needed to allow for fast_install
16959 # before this can be enabled.
16960 hardcode_into_libs=yes
16961
16962 # Add ABI-specific directories to the system library path.
16963 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16964
16965 # Append ld.so.conf contents to the search path
16966 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016967 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 +000016968 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016969
cristy73bd4a52010-10-05 11:24:23 +000016970 fi
16971
16972 # We used to test for /lib/ld.so.1 and disable shared libraries on
16973 # powerpc, because MkLinux only supported shared libraries with the
16974 # GNU dynamic linker. Since this was broken with cross compilers,
16975 # most powerpc-linux boxes support dynamic linking these days and
16976 # people can always --disable-shared, the test was removed, and we
16977 # assume the GNU/Linux dynamic linker is in use.
16978 dynamic_linker='GNU/Linux ld.so'
16979 ;;
16980
16981netbsd*)
16982 version_type=sunos
16983 need_lib_prefix=no
16984 need_version=no
16985 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16988 dynamic_linker='NetBSD (a.out) ld.so'
16989 else
16990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16991 soname_spec='${libname}${release}${shared_ext}$major'
16992 dynamic_linker='NetBSD ld.elf_so'
16993 fi
16994 shlibpath_var=LD_LIBRARY_PATH
16995 shlibpath_overrides_runpath=yes
16996 hardcode_into_libs=yes
16997 ;;
16998
16999newsos6)
cristy99bd5232011-12-07 14:38:20 +000017000 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17002 shlibpath_var=LD_LIBRARY_PATH
17003 shlibpath_overrides_runpath=yes
17004 ;;
17005
17006*nto* | *qnx*)
17007 version_type=qnx
17008 need_lib_prefix=no
17009 need_version=no
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17011 soname_spec='${libname}${release}${shared_ext}$major'
17012 shlibpath_var=LD_LIBRARY_PATH
17013 shlibpath_overrides_runpath=no
17014 hardcode_into_libs=yes
17015 dynamic_linker='ldqnx.so'
17016 ;;
17017
17018openbsd*)
17019 version_type=sunos
17020 sys_lib_dlsearch_path_spec="/usr/lib"
17021 need_lib_prefix=no
17022 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17023 case $host_os in
17024 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17025 *) need_version=no ;;
17026 esac
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17029 shlibpath_var=LD_LIBRARY_PATH
17030 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17031 case $host_os in
17032 openbsd2.[89] | openbsd2.[89].*)
17033 shlibpath_overrides_runpath=no
17034 ;;
17035 *)
17036 shlibpath_overrides_runpath=yes
17037 ;;
17038 esac
17039 else
17040 shlibpath_overrides_runpath=yes
17041 fi
17042 ;;
17043
17044os2*)
17045 libname_spec='$name'
17046 shrext_cmds=".dll"
17047 need_lib_prefix=no
17048 library_names_spec='$libname${shared_ext} $libname.a'
17049 dynamic_linker='OS/2 ld.exe'
17050 shlibpath_var=LIBPATH
17051 ;;
17052
17053osf3* | osf4* | osf5*)
17054 version_type=osf
17055 need_lib_prefix=no
17056 need_version=no
17057 soname_spec='${libname}${release}${shared_ext}$major'
17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17059 shlibpath_var=LD_LIBRARY_PATH
17060 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17061 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17062 ;;
17063
17064rdos*)
17065 dynamic_linker=no
17066 ;;
17067
17068solaris*)
cristy99bd5232011-12-07 14:38:20 +000017069 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017070 need_lib_prefix=no
17071 need_version=no
17072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17073 soname_spec='${libname}${release}${shared_ext}$major'
17074 shlibpath_var=LD_LIBRARY_PATH
17075 shlibpath_overrides_runpath=yes
17076 hardcode_into_libs=yes
17077 # ldd complains unless libraries are executable
17078 postinstall_cmds='chmod +x $lib'
17079 ;;
17080
17081sunos4*)
17082 version_type=sunos
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17084 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17085 shlibpath_var=LD_LIBRARY_PATH
17086 shlibpath_overrides_runpath=yes
17087 if test "$with_gnu_ld" = yes; then
17088 need_lib_prefix=no
17089 fi
17090 need_version=yes
17091 ;;
17092
17093sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017094 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17096 soname_spec='${libname}${release}${shared_ext}$major'
17097 shlibpath_var=LD_LIBRARY_PATH
17098 case $host_vendor in
17099 sni)
17100 shlibpath_overrides_runpath=no
17101 need_lib_prefix=no
17102 runpath_var=LD_RUN_PATH
17103 ;;
17104 siemens)
17105 need_lib_prefix=no
17106 ;;
17107 motorola)
17108 need_lib_prefix=no
17109 need_version=no
17110 shlibpath_overrides_runpath=no
17111 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17112 ;;
17113 esac
17114 ;;
17115
17116sysv4*MP*)
17117 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017118 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017119 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17120 soname_spec='$libname${shared_ext}.$major'
17121 shlibpath_var=LD_LIBRARY_PATH
17122 fi
17123 ;;
17124
17125sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17126 version_type=freebsd-elf
17127 need_lib_prefix=no
17128 need_version=no
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17130 soname_spec='${libname}${release}${shared_ext}$major'
17131 shlibpath_var=LD_LIBRARY_PATH
17132 shlibpath_overrides_runpath=yes
17133 hardcode_into_libs=yes
17134 if test "$with_gnu_ld" = yes; then
17135 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17136 else
17137 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17138 case $host_os in
17139 sco3.2v5*)
17140 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17141 ;;
17142 esac
17143 fi
17144 sys_lib_dlsearch_path_spec='/usr/lib'
17145 ;;
17146
17147tpf*)
17148 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017149 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017150 need_lib_prefix=no
17151 need_version=no
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 shlibpath_var=LD_LIBRARY_PATH
17154 shlibpath_overrides_runpath=no
17155 hardcode_into_libs=yes
17156 ;;
17157
17158uts4*)
cristy99bd5232011-12-07 14:38:20 +000017159 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17161 soname_spec='${libname}${release}${shared_ext}$major'
17162 shlibpath_var=LD_LIBRARY_PATH
17163 ;;
17164
17165*)
17166 dynamic_linker=no
17167 ;;
17168esac
17169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17170$as_echo "$dynamic_linker" >&6; }
17171test "$dynamic_linker" = no && can_build_shared=no
17172
17173variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17174if test "$GCC" = yes; then
17175 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17176fi
17177
17178if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17179 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17180fi
17181if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17182 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17183fi
17184
17185
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
cristy0c60a692010-11-04 01:09:47 +000017271
17272
17273
17274
17275
cristy73bd4a52010-10-05 11:24:23 +000017276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17277$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17278hardcode_action=
17279if test -n "$hardcode_libdir_flag_spec" ||
17280 test -n "$runpath_var" ||
17281 test "X$hardcode_automatic" = "Xyes" ; then
17282
17283 # We can hardcode non-existent directories.
17284 if test "$hardcode_direct" != no &&
17285 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17286 # have to relink, otherwise we might link with an installed library
17287 # when we should be linking with a yet-to-be-installed one
17288 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17289 test "$hardcode_minus_L" != no; then
17290 # Linking always hardcodes the temporary library directory.
17291 hardcode_action=relink
17292 else
17293 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17294 hardcode_action=immediate
17295 fi
17296else
17297 # We cannot hardcode anything, or else we can only hardcode existing
17298 # directories.
17299 hardcode_action=unsupported
17300fi
17301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17302$as_echo "$hardcode_action" >&6; }
17303
17304if test "$hardcode_action" = relink ||
17305 test "$inherit_rpath" = yes; then
17306 # Fast installation is not supported
17307 enable_fast_install=no
17308elif test "$shlibpath_overrides_runpath" = yes ||
17309 test "$enable_shared" = no; then
17310 # Fast installation is not necessary
17311 enable_fast_install=needless
17312fi
17313
17314
17315
17316
17317
17318
17319 if test "x$enable_dlopen" != xyes; then
17320 enable_dlopen=unknown
17321 enable_dlopen_self=unknown
17322 enable_dlopen_self_static=unknown
17323else
17324 lt_cv_dlopen=no
17325 lt_cv_dlopen_libs=
17326
17327 case $host_os in
17328 beos*)
17329 lt_cv_dlopen="load_add_on"
17330 lt_cv_dlopen_libs=
17331 lt_cv_dlopen_self=yes
17332 ;;
17333
17334 mingw* | pw32* | cegcc*)
17335 lt_cv_dlopen="LoadLibrary"
17336 lt_cv_dlopen_libs=
17337 ;;
17338
17339 cygwin*)
17340 lt_cv_dlopen="dlopen"
17341 lt_cv_dlopen_libs=
17342 ;;
17343
17344 darwin*)
17345 # if libdl is installed we need to link against it
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17347$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017348if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017349 $as_echo_n "(cached) " >&6
17350else
17351 ac_check_lib_save_LIBS=$LIBS
17352LIBS="-ldl $LIBS"
17353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17354/* end confdefs.h. */
17355
17356/* Override any GCC internal prototype to avoid an error.
17357 Use char because int might match the return type of a GCC
17358 builtin and then its argument prototype would still apply. */
17359#ifdef __cplusplus
17360extern "C"
17361#endif
17362char dlopen ();
17363int
17364main ()
17365{
17366return dlopen ();
17367 ;
17368 return 0;
17369}
17370_ACEOF
17371if ac_fn_c_try_link "$LINENO"; then :
17372 ac_cv_lib_dl_dlopen=yes
17373else
17374 ac_cv_lib_dl_dlopen=no
17375fi
17376rm -f core conftest.err conftest.$ac_objext \
17377 conftest$ac_exeext conftest.$ac_ext
17378LIBS=$ac_check_lib_save_LIBS
17379fi
17380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17381$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017382if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017383 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17384else
17385
17386 lt_cv_dlopen="dyld"
17387 lt_cv_dlopen_libs=
17388 lt_cv_dlopen_self=yes
17389
17390fi
17391
17392 ;;
17393
17394 *)
17395 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017396if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017397 lt_cv_dlopen="shl_load"
17398else
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17400$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017401if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017402 $as_echo_n "(cached) " >&6
17403else
17404 ac_check_lib_save_LIBS=$LIBS
17405LIBS="-ldld $LIBS"
17406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17407/* end confdefs.h. */
17408
17409/* Override any GCC internal prototype to avoid an error.
17410 Use char because int might match the return type of a GCC
17411 builtin and then its argument prototype would still apply. */
17412#ifdef __cplusplus
17413extern "C"
17414#endif
17415char shl_load ();
17416int
17417main ()
17418{
17419return shl_load ();
17420 ;
17421 return 0;
17422}
17423_ACEOF
17424if ac_fn_c_try_link "$LINENO"; then :
17425 ac_cv_lib_dld_shl_load=yes
17426else
17427 ac_cv_lib_dld_shl_load=no
17428fi
17429rm -f core conftest.err conftest.$ac_objext \
17430 conftest$ac_exeext conftest.$ac_ext
17431LIBS=$ac_check_lib_save_LIBS
17432fi
17433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17434$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017435if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017436 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17437else
17438 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017439if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017440 lt_cv_dlopen="dlopen"
17441else
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17443$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017444if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017445 $as_echo_n "(cached) " >&6
17446else
17447 ac_check_lib_save_LIBS=$LIBS
17448LIBS="-ldl $LIBS"
17449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17450/* end confdefs.h. */
17451
17452/* Override any GCC internal prototype to avoid an error.
17453 Use char because int might match the return type of a GCC
17454 builtin and then its argument prototype would still apply. */
17455#ifdef __cplusplus
17456extern "C"
17457#endif
17458char dlopen ();
17459int
17460main ()
17461{
17462return dlopen ();
17463 ;
17464 return 0;
17465}
17466_ACEOF
17467if ac_fn_c_try_link "$LINENO"; then :
17468 ac_cv_lib_dl_dlopen=yes
17469else
17470 ac_cv_lib_dl_dlopen=no
17471fi
17472rm -f core conftest.err conftest.$ac_objext \
17473 conftest$ac_exeext conftest.$ac_ext
17474LIBS=$ac_check_lib_save_LIBS
17475fi
17476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17477$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017478if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017479 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17480else
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17482$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017483if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017484 $as_echo_n "(cached) " >&6
17485else
17486 ac_check_lib_save_LIBS=$LIBS
17487LIBS="-lsvld $LIBS"
17488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17489/* end confdefs.h. */
17490
17491/* Override any GCC internal prototype to avoid an error.
17492 Use char because int might match the return type of a GCC
17493 builtin and then its argument prototype would still apply. */
17494#ifdef __cplusplus
17495extern "C"
17496#endif
17497char dlopen ();
17498int
17499main ()
17500{
17501return dlopen ();
17502 ;
17503 return 0;
17504}
17505_ACEOF
17506if ac_fn_c_try_link "$LINENO"; then :
17507 ac_cv_lib_svld_dlopen=yes
17508else
17509 ac_cv_lib_svld_dlopen=no
17510fi
17511rm -f core conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17513LIBS=$ac_check_lib_save_LIBS
17514fi
17515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17516$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017517if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17519else
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17521$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017522if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017523 $as_echo_n "(cached) " >&6
17524else
17525 ac_check_lib_save_LIBS=$LIBS
17526LIBS="-ldld $LIBS"
17527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17528/* end confdefs.h. */
17529
17530/* Override any GCC internal prototype to avoid an error.
17531 Use char because int might match the return type of a GCC
17532 builtin and then its argument prototype would still apply. */
17533#ifdef __cplusplus
17534extern "C"
17535#endif
17536char dld_link ();
17537int
17538main ()
17539{
17540return dld_link ();
17541 ;
17542 return 0;
17543}
17544_ACEOF
17545if ac_fn_c_try_link "$LINENO"; then :
17546 ac_cv_lib_dld_dld_link=yes
17547else
17548 ac_cv_lib_dld_dld_link=no
17549fi
17550rm -f core conftest.err conftest.$ac_objext \
17551 conftest$ac_exeext conftest.$ac_ext
17552LIBS=$ac_check_lib_save_LIBS
17553fi
17554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17555$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017556if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017557 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17558fi
17559
17560
17561fi
17562
17563
17564fi
17565
17566
17567fi
17568
17569
17570fi
17571
17572
17573fi
17574
17575 ;;
17576 esac
17577
17578 if test "x$lt_cv_dlopen" != xno; then
17579 enable_dlopen=yes
17580 else
17581 enable_dlopen=no
17582 fi
17583
17584 case $lt_cv_dlopen in
17585 dlopen)
17586 save_CPPFLAGS="$CPPFLAGS"
17587 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17588
17589 save_LDFLAGS="$LDFLAGS"
17590 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17591
17592 save_LIBS="$LIBS"
17593 LIBS="$lt_cv_dlopen_libs $LIBS"
17594
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17596$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017597if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017598 $as_echo_n "(cached) " >&6
17599else
17600 if test "$cross_compiling" = yes; then :
17601 lt_cv_dlopen_self=cross
17602else
17603 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17604 lt_status=$lt_dlunknown
17605 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017606#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017607#include "confdefs.h"
17608
17609#if HAVE_DLFCN_H
17610#include <dlfcn.h>
17611#endif
17612
17613#include <stdio.h>
17614
17615#ifdef RTLD_GLOBAL
17616# define LT_DLGLOBAL RTLD_GLOBAL
17617#else
17618# ifdef DL_GLOBAL
17619# define LT_DLGLOBAL DL_GLOBAL
17620# else
17621# define LT_DLGLOBAL 0
17622# endif
17623#endif
17624
17625/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17626 find out it does not work in some platform. */
17627#ifndef LT_DLLAZY_OR_NOW
17628# ifdef RTLD_LAZY
17629# define LT_DLLAZY_OR_NOW RTLD_LAZY
17630# else
17631# ifdef DL_LAZY
17632# define LT_DLLAZY_OR_NOW DL_LAZY
17633# else
17634# ifdef RTLD_NOW
17635# define LT_DLLAZY_OR_NOW RTLD_NOW
17636# else
17637# ifdef DL_NOW
17638# define LT_DLLAZY_OR_NOW DL_NOW
17639# else
17640# define LT_DLLAZY_OR_NOW 0
17641# endif
17642# endif
17643# endif
17644# endif
17645#endif
17646
cristy0c60a692010-11-04 01:09:47 +000017647/* When -fvisbility=hidden is used, assume the code has been annotated
17648 correspondingly for the symbols needed. */
17649#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017650int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017651#endif
17652
cristyda16f162011-02-19 23:52:17 +000017653int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017654int main ()
17655{
17656 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17657 int status = $lt_dlunknown;
17658
17659 if (self)
17660 {
17661 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017662 else
17663 {
17664 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17665 else puts (dlerror ());
17666 }
cristy73bd4a52010-10-05 11:24:23 +000017667 /* dlclose (self); */
17668 }
17669 else
17670 puts (dlerror ());
17671
17672 return status;
17673}
17674_LT_EOF
17675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17676 (eval $ac_link) 2>&5
17677 ac_status=$?
17678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17679 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17680 (./conftest; exit; ) >&5 2>/dev/null
17681 lt_status=$?
17682 case x$lt_status in
17683 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17684 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17685 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17686 esac
17687 else :
17688 # compilation failed
17689 lt_cv_dlopen_self=no
17690 fi
17691fi
17692rm -fr conftest*
17693
17694
17695fi
17696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17697$as_echo "$lt_cv_dlopen_self" >&6; }
17698
17699 if test "x$lt_cv_dlopen_self" = xyes; then
17700 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17702$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017703if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017704 $as_echo_n "(cached) " >&6
17705else
17706 if test "$cross_compiling" = yes; then :
17707 lt_cv_dlopen_self_static=cross
17708else
17709 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17710 lt_status=$lt_dlunknown
17711 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017712#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017713#include "confdefs.h"
17714
17715#if HAVE_DLFCN_H
17716#include <dlfcn.h>
17717#endif
17718
17719#include <stdio.h>
17720
17721#ifdef RTLD_GLOBAL
17722# define LT_DLGLOBAL RTLD_GLOBAL
17723#else
17724# ifdef DL_GLOBAL
17725# define LT_DLGLOBAL DL_GLOBAL
17726# else
17727# define LT_DLGLOBAL 0
17728# endif
17729#endif
17730
17731/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17732 find out it does not work in some platform. */
17733#ifndef LT_DLLAZY_OR_NOW
17734# ifdef RTLD_LAZY
17735# define LT_DLLAZY_OR_NOW RTLD_LAZY
17736# else
17737# ifdef DL_LAZY
17738# define LT_DLLAZY_OR_NOW DL_LAZY
17739# else
17740# ifdef RTLD_NOW
17741# define LT_DLLAZY_OR_NOW RTLD_NOW
17742# else
17743# ifdef DL_NOW
17744# define LT_DLLAZY_OR_NOW DL_NOW
17745# else
17746# define LT_DLLAZY_OR_NOW 0
17747# endif
17748# endif
17749# endif
17750# endif
17751#endif
17752
cristy0c60a692010-11-04 01:09:47 +000017753/* When -fvisbility=hidden is used, assume the code has been annotated
17754 correspondingly for the symbols needed. */
17755#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017756int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017757#endif
17758
cristyda16f162011-02-19 23:52:17 +000017759int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017760int main ()
17761{
17762 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17763 int status = $lt_dlunknown;
17764
17765 if (self)
17766 {
17767 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017768 else
17769 {
17770 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17771 else puts (dlerror ());
17772 }
cristy73bd4a52010-10-05 11:24:23 +000017773 /* dlclose (self); */
17774 }
17775 else
17776 puts (dlerror ());
17777
17778 return status;
17779}
17780_LT_EOF
17781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17782 (eval $ac_link) 2>&5
17783 ac_status=$?
17784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17785 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17786 (./conftest; exit; ) >&5 2>/dev/null
17787 lt_status=$?
17788 case x$lt_status in
17789 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17790 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17791 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17792 esac
17793 else :
17794 # compilation failed
17795 lt_cv_dlopen_self_static=no
17796 fi
17797fi
17798rm -fr conftest*
17799
17800
17801fi
17802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17803$as_echo "$lt_cv_dlopen_self_static" >&6; }
17804 fi
17805
17806 CPPFLAGS="$save_CPPFLAGS"
17807 LDFLAGS="$save_LDFLAGS"
17808 LIBS="$save_LIBS"
17809 ;;
17810 esac
17811
17812 case $lt_cv_dlopen_self in
17813 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17814 *) enable_dlopen_self=unknown ;;
17815 esac
17816
17817 case $lt_cv_dlopen_self_static in
17818 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17819 *) enable_dlopen_self_static=unknown ;;
17820 esac
17821fi
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839striplib=
17840old_striplib=
17841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17842$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17843if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17844 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17845 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17847$as_echo "yes" >&6; }
17848else
17849# FIXME - insert some real tests, host_os isn't really good enough
17850 case $host_os in
17851 darwin*)
17852 if test -n "$STRIP" ; then
17853 striplib="$STRIP -x"
17854 old_striplib="$STRIP -S"
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17856$as_echo "yes" >&6; }
17857 else
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17859$as_echo "no" >&6; }
17860 fi
17861 ;;
17862 *)
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17864$as_echo "no" >&6; }
17865 ;;
17866 esac
17867fi
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880 # Report which library types will actually be built
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17882$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17884$as_echo "$can_build_shared" >&6; }
17885
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17887$as_echo_n "checking whether to build shared libraries... " >&6; }
17888 test "$can_build_shared" = "no" && enable_shared=no
17889
17890 # On AIX, shared libraries and static libraries use the same namespace, and
17891 # are all built from PIC.
17892 case $host_os in
17893 aix3*)
17894 test "$enable_shared" = yes && enable_static=no
17895 if test -n "$RANLIB"; then
17896 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17897 postinstall_cmds='$RANLIB $lib'
17898 fi
17899 ;;
17900
17901 aix[4-9]*)
17902 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17903 test "$enable_shared" = yes && enable_static=no
17904 fi
17905 ;;
17906 esac
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17908$as_echo "$enable_shared" >&6; }
17909
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17911$as_echo_n "checking whether to build static libraries... " >&6; }
17912 # Make sure either enable_shared or enable_static is yes.
17913 test "$enable_shared" = yes || enable_static=yes
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17915$as_echo "$enable_static" >&6; }
17916
17917
17918
17919
17920fi
17921ac_ext=c
17922ac_cpp='$CPP $CPPFLAGS'
17923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17925ac_compiler_gnu=$ac_cv_c_compiler_gnu
17926
17927CC="$lt_save_CC"
17928
cristy0c60a692010-11-04 01:09:47 +000017929 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17930 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17931 (test "X$CXX" != "Xg++"))) ; then
17932 ac_ext=cpp
17933ac_cpp='$CXXCPP $CPPFLAGS'
17934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17938$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17939if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017940 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017941 $as_echo_n "(cached) " >&6
17942else
17943 # Double quotes because CXXCPP needs to be expanded
17944 for CXXCPP in "$CXX -E" "/lib/cpp"
17945 do
17946 ac_preproc_ok=false
17947for ac_cxx_preproc_warn_flag in '' yes
17948do
17949 # Use a header file that comes with gcc, so configuring glibc
17950 # with a fresh cross-compiler works.
17951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17952 # <limits.h> exists even on freestanding compilers.
17953 # On the NeXT, cc -E runs the code through the compiler's parser,
17954 # not just through cpp. "Syntax error" is here to catch this case.
17955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17956/* end confdefs.h. */
17957#ifdef __STDC__
17958# include <limits.h>
17959#else
17960# include <assert.h>
17961#endif
17962 Syntax error
17963_ACEOF
17964if ac_fn_cxx_try_cpp "$LINENO"; then :
17965
17966else
17967 # Broken: fails on valid input.
17968continue
17969fi
cristyda16f162011-02-19 23:52:17 +000017970rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017971
17972 # OK, works on sane cases. Now check whether nonexistent headers
17973 # can be detected and how.
17974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975/* end confdefs.h. */
17976#include <ac_nonexistent.h>
17977_ACEOF
17978if ac_fn_cxx_try_cpp "$LINENO"; then :
17979 # Broken: success on invalid input.
17980continue
17981else
17982 # Passes both tests.
17983ac_preproc_ok=:
17984break
17985fi
cristyda16f162011-02-19 23:52:17 +000017986rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017987
17988done
17989# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017990rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017991if $ac_preproc_ok; then :
17992 break
17993fi
17994
17995 done
17996 ac_cv_prog_CXXCPP=$CXXCPP
17997
17998fi
17999 CXXCPP=$ac_cv_prog_CXXCPP
18000else
18001 ac_cv_prog_CXXCPP=$CXXCPP
18002fi
18003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18004$as_echo "$CXXCPP" >&6; }
18005ac_preproc_ok=false
18006for ac_cxx_preproc_warn_flag in '' yes
18007do
18008 # Use a header file that comes with gcc, so configuring glibc
18009 # with a fresh cross-compiler works.
18010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18011 # <limits.h> exists even on freestanding compilers.
18012 # On the NeXT, cc -E runs the code through the compiler's parser,
18013 # not just through cpp. "Syntax error" is here to catch this case.
18014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18015/* end confdefs.h. */
18016#ifdef __STDC__
18017# include <limits.h>
18018#else
18019# include <assert.h>
18020#endif
18021 Syntax error
18022_ACEOF
18023if ac_fn_cxx_try_cpp "$LINENO"; then :
18024
18025else
18026 # Broken: fails on valid input.
18027continue
18028fi
cristyda16f162011-02-19 23:52:17 +000018029rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018030
18031 # OK, works on sane cases. Now check whether nonexistent headers
18032 # can be detected and how.
18033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18034/* end confdefs.h. */
18035#include <ac_nonexistent.h>
18036_ACEOF
18037if ac_fn_cxx_try_cpp "$LINENO"; then :
18038 # Broken: success on invalid input.
18039continue
18040else
18041 # Passes both tests.
18042ac_preproc_ok=:
18043break
18044fi
cristyda16f162011-02-19 23:52:17 +000018045rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018046
18047done
18048# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018049rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018050if $ac_preproc_ok; then :
18051
18052else
18053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18055as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18056See \`config.log' for more details" "$LINENO" 5; }
18057fi
18058
18059ac_ext=c
18060ac_cpp='$CPP $CPPFLAGS'
18061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18063ac_compiler_gnu=$ac_cv_c_compiler_gnu
18064
18065else
18066 _lt_caught_CXX_error=yes
18067fi
cristy73bd4a52010-10-05 11:24:23 +000018068
18069ac_ext=cpp
18070ac_cpp='$CXXCPP $CPPFLAGS'
18071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18074
18075archive_cmds_need_lc_CXX=no
18076allow_undefined_flag_CXX=
18077always_export_symbols_CXX=no
18078archive_expsym_cmds_CXX=
18079compiler_needs_object_CXX=no
18080export_dynamic_flag_spec_CXX=
18081hardcode_direct_CXX=no
18082hardcode_direct_absolute_CXX=no
18083hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018084hardcode_libdir_separator_CXX=
18085hardcode_minus_L_CXX=no
18086hardcode_shlibpath_var_CXX=unsupported
18087hardcode_automatic_CXX=no
18088inherit_rpath_CXX=no
18089module_cmds_CXX=
18090module_expsym_cmds_CXX=
18091link_all_deplibs_CXX=unknown
18092old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018093reload_flag_CXX=$reload_flag
18094reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018095no_undefined_flag_CXX=
18096whole_archive_flag_spec_CXX=
18097enable_shared_with_static_runtimes_CXX=no
18098
18099# Source file extension for C++ test sources.
18100ac_ext=cpp
18101
18102# Object file extension for compiled C++ test sources.
18103objext=o
18104objext_CXX=$objext
18105
18106# No sense in running all these tests if we already determined that
18107# the CXX compiler isn't working. Some variables (like enable_shared)
18108# are currently assumed to apply to all compilers on this platform,
18109# and will be corrupted by setting them based on a non-working compiler.
18110if test "$_lt_caught_CXX_error" != yes; then
18111 # Code to be used in simple compile tests
18112 lt_simple_compile_test_code="int some_variable = 0;"
18113
18114 # Code to be used in simple link tests
18115 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18116
18117 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18118
18119
18120
18121
18122
18123
18124# If no C compiler was specified, use CC.
18125LTCC=${LTCC-"$CC"}
18126
18127# If no C compiler flags were specified, use CFLAGS.
18128LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18129
18130# Allow CC to be a program name with arguments.
18131compiler=$CC
18132
18133
18134 # save warnings/boilerplate of simple test code
18135 ac_outfile=conftest.$ac_objext
18136echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18137eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18138_lt_compiler_boilerplate=`cat conftest.err`
18139$RM conftest*
18140
18141 ac_outfile=conftest.$ac_objext
18142echo "$lt_simple_link_test_code" >conftest.$ac_ext
18143eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18144_lt_linker_boilerplate=`cat conftest.err`
18145$RM -r conftest*
18146
18147
18148 # Allow CC to be a program name with arguments.
18149 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018150 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018151 lt_save_LD=$LD
18152 lt_save_GCC=$GCC
18153 GCC=$GXX
18154 lt_save_with_gnu_ld=$with_gnu_ld
18155 lt_save_path_LD=$lt_cv_path_LD
18156 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18157 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18158 else
18159 $as_unset lt_cv_prog_gnu_ld
18160 fi
18161 if test -n "${lt_cv_path_LDCXX+set}"; then
18162 lt_cv_path_LD=$lt_cv_path_LDCXX
18163 else
18164 $as_unset lt_cv_path_LD
18165 fi
18166 test -z "${LDCXX+set}" || LD=$LDCXX
18167 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018168 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018169 compiler=$CC
18170 compiler_CXX=$CC
18171 for cc_temp in $compiler""; do
18172 case $cc_temp in
18173 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18174 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18175 \-*) ;;
18176 *) break;;
18177 esac
18178done
cristy0c60a692010-11-04 01:09:47 +000018179cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018180
18181
18182 if test -n "$compiler"; then
18183 # We don't want -fno-exception when compiling C++ code, so set the
18184 # no_builtin_flag separately
18185 if test "$GXX" = yes; then
18186 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18187 else
18188 lt_prog_compiler_no_builtin_flag_CXX=
18189 fi
18190
18191 if test "$GXX" = yes; then
18192 # Set up default GNU C++ configuration
18193
18194
18195
18196# Check whether --with-gnu-ld was given.
18197if test "${with_gnu_ld+set}" = set; then :
18198 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18199else
18200 with_gnu_ld=no
18201fi
18202
18203ac_prog=ld
18204if test "$GCC" = yes; then
18205 # Check if gcc -print-prog-name=ld gives a path.
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18207$as_echo_n "checking for ld used by $CC... " >&6; }
18208 case $host in
18209 *-*-mingw*)
18210 # gcc leaves a trailing carriage return which upsets mingw
18211 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18212 *)
18213 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18214 esac
18215 case $ac_prog in
18216 # Accept absolute paths.
18217 [\\/]* | ?:[\\/]*)
18218 re_direlt='/[^/][^/]*/\.\./'
18219 # Canonicalize the pathname of ld
18220 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18221 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18222 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18223 done
18224 test -z "$LD" && LD="$ac_prog"
18225 ;;
18226 "")
18227 # If it fails, then pretend we aren't using GCC.
18228 ac_prog=ld
18229 ;;
18230 *)
18231 # If it is relative, then search for the first ld in PATH.
18232 with_gnu_ld=unknown
18233 ;;
18234 esac
18235elif test "$with_gnu_ld" = yes; then
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18237$as_echo_n "checking for GNU ld... " >&6; }
18238else
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18240$as_echo_n "checking for non-GNU ld... " >&6; }
18241fi
cristyda16f162011-02-19 23:52:17 +000018242if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018243 $as_echo_n "(cached) " >&6
18244else
18245 if test -z "$LD"; then
18246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18247 for ac_dir in $PATH; do
18248 IFS="$lt_save_ifs"
18249 test -z "$ac_dir" && ac_dir=.
18250 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18251 lt_cv_path_LD="$ac_dir/$ac_prog"
18252 # Check to see if the program is GNU ld. I'd rather use --version,
18253 # but apparently some variants of GNU ld only accept -v.
18254 # Break only if it was the GNU/non-GNU ld that we prefer.
18255 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18256 *GNU* | *'with BFD'*)
18257 test "$with_gnu_ld" != no && break
18258 ;;
18259 *)
18260 test "$with_gnu_ld" != yes && break
18261 ;;
18262 esac
18263 fi
18264 done
18265 IFS="$lt_save_ifs"
18266else
18267 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18268fi
18269fi
18270
18271LD="$lt_cv_path_LD"
18272if test -n "$LD"; then
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18274$as_echo "$LD" >&6; }
18275else
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18277$as_echo "no" >&6; }
18278fi
cristy98dddb52010-11-04 00:30:15 +000018279test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18281$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018282if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018283 $as_echo_n "(cached) " >&6
18284else
18285 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18286case `$LD -v 2>&1 </dev/null` in
18287*GNU* | *'with BFD'*)
18288 lt_cv_prog_gnu_ld=yes
18289 ;;
18290*)
18291 lt_cv_prog_gnu_ld=no
18292 ;;
18293esac
18294fi
18295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18296$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18297with_gnu_ld=$lt_cv_prog_gnu_ld
18298
18299
18300
18301
18302
18303
18304
18305 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18306 # archiving commands below assume that GNU ld is being used.
18307 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018308 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18309 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 +000018310
18311 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18312 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18313
18314 # If archive_cmds runs LD, not CC, wlarc should be empty
18315 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18316 # investigate it a little bit more. (MM)
18317 wlarc='${wl}'
18318
18319 # ancient GNU ld didn't support --whole-archive et. al.
18320 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18321 $GREP 'no-whole-archive' > /dev/null; then
18322 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18323 else
18324 whole_archive_flag_spec_CXX=
18325 fi
18326 else
18327 with_gnu_ld=no
18328 wlarc=
18329
18330 # A generic and very simple default shared library creation
18331 # command for GNU C++ for the case where it uses the native
18332 # linker, instead of GNU ld. If possible, this setting should
18333 # overridden to take advantage of the native linker features on
18334 # the platform it is being used on.
18335 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18336 fi
18337
18338 # Commands to make compiler produce verbose output that lists
18339 # what "hidden" libraries, object files and flags are used when
18340 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018341 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018342
18343 else
18344 GXX=no
18345 with_gnu_ld=no
18346 wlarc=
18347 fi
18348
18349 # PORTME: fill in a description of your system's C++ link characteristics
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18351$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18352 ld_shlibs_CXX=yes
18353 case $host_os in
18354 aix3*)
18355 # FIXME: insert proper C++ library support
18356 ld_shlibs_CXX=no
18357 ;;
18358 aix[4-9]*)
18359 if test "$host_cpu" = ia64; then
18360 # On IA64, the linker does run time linking by default, so we don't
18361 # have to do anything special.
18362 aix_use_runtimelinking=no
18363 exp_sym_flag='-Bexport'
18364 no_entry_flag=""
18365 else
18366 aix_use_runtimelinking=no
18367
18368 # Test if we are trying to use run time linking or normal
18369 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18370 # need to do runtime linking.
18371 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18372 for ld_flag in $LDFLAGS; do
18373 case $ld_flag in
18374 *-brtl*)
18375 aix_use_runtimelinking=yes
18376 break
18377 ;;
18378 esac
18379 done
18380 ;;
18381 esac
18382
18383 exp_sym_flag='-bexport'
18384 no_entry_flag='-bnoentry'
18385 fi
18386
18387 # When large executables or shared objects are built, AIX ld can
18388 # have problems creating the table of contents. If linking a library
18389 # or program results in "error TOC overflow" add -mminimal-toc to
18390 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18391 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18392
18393 archive_cmds_CXX=''
18394 hardcode_direct_CXX=yes
18395 hardcode_direct_absolute_CXX=yes
18396 hardcode_libdir_separator_CXX=':'
18397 link_all_deplibs_CXX=yes
18398 file_list_spec_CXX='${wl}-f,'
18399
18400 if test "$GXX" = yes; then
18401 case $host_os in aix4.[012]|aix4.[012].*)
18402 # We only want to do this on AIX 4.2 and lower, the check
18403 # below for broken collect2 doesn't work under 4.3+
18404 collect2name=`${CC} -print-prog-name=collect2`
18405 if test -f "$collect2name" &&
18406 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18407 then
18408 # We have reworked collect2
18409 :
18410 else
18411 # We have old collect2
18412 hardcode_direct_CXX=unsupported
18413 # It fails to find uninstalled libraries when the uninstalled
18414 # path is not listed in the libpath. Setting hardcode_minus_L
18415 # to unsupported forces relinking
18416 hardcode_minus_L_CXX=yes
18417 hardcode_libdir_flag_spec_CXX='-L$libdir'
18418 hardcode_libdir_separator_CXX=
18419 fi
18420 esac
18421 shared_flag='-shared'
18422 if test "$aix_use_runtimelinking" = yes; then
18423 shared_flag="$shared_flag "'${wl}-G'
18424 fi
18425 else
18426 # not using gcc
18427 if test "$host_cpu" = ia64; then
18428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18429 # chokes on -Wl,-G. The following line is correct:
18430 shared_flag='-G'
18431 else
18432 if test "$aix_use_runtimelinking" = yes; then
18433 shared_flag='${wl}-G'
18434 else
18435 shared_flag='${wl}-bM:SRE'
18436 fi
18437 fi
18438 fi
18439
18440 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18441 # It seems that -bexpall does not export symbols beginning with
18442 # underscore (_), so it is better to generate a list of symbols to
18443 # export.
18444 always_export_symbols_CXX=yes
18445 if test "$aix_use_runtimelinking" = yes; then
18446 # Warning - without using the other runtime loading flags (-brtl),
18447 # -berok will link without error, but may produce a broken library.
18448 allow_undefined_flag_CXX='-berok'
18449 # Determine the default libpath from the value encoded in an empty
18450 # executable.
cristyda16f162011-02-19 23:52:17 +000018451 if test "${lt_cv_aix_libpath+set}" = set; then
18452 aix_libpath=$lt_cv_aix_libpath
18453else
18454 if ${lt_cv_aix_libpath__CXX+:} false; then :
18455 $as_echo_n "(cached) " >&6
18456else
18457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018458/* end confdefs.h. */
18459
18460int
18461main ()
18462{
18463
18464 ;
18465 return 0;
18466}
18467_ACEOF
18468if ac_fn_cxx_try_link "$LINENO"; then :
18469
cristyda16f162011-02-19 23:52:17 +000018470 lt_aix_libpath_sed='
18471 /Import File Strings/,/^$/ {
18472 /^0/ {
18473 s/^0 *\([^ ]*\) *$/\1/
18474 p
18475 }
18476 }'
18477 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18478 # Check for a 64-bit object if we didn't find anything.
18479 if test -z "$lt_cv_aix_libpath__CXX"; then
18480 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18481 fi
cristy73bd4a52010-10-05 11:24:23 +000018482fi
18483rm -f core conftest.err conftest.$ac_objext \
18484 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018485 if test -z "$lt_cv_aix_libpath__CXX"; then
18486 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18487 fi
18488
18489fi
18490
18491 aix_libpath=$lt_cv_aix_libpath__CXX
18492fi
cristy73bd4a52010-10-05 11:24:23 +000018493
18494 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18495
cristy0c60a692010-11-04 01:09:47 +000018496 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 +000018497 else
18498 if test "$host_cpu" = ia64; then
18499 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18500 allow_undefined_flag_CXX="-z nodefs"
18501 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"
18502 else
18503 # Determine the default libpath from the value encoded in an
18504 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018505 if test "${lt_cv_aix_libpath+set}" = set; then
18506 aix_libpath=$lt_cv_aix_libpath
18507else
18508 if ${lt_cv_aix_libpath__CXX+:} false; then :
18509 $as_echo_n "(cached) " >&6
18510else
18511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018512/* end confdefs.h. */
18513
18514int
18515main ()
18516{
18517
18518 ;
18519 return 0;
18520}
18521_ACEOF
18522if ac_fn_cxx_try_link "$LINENO"; then :
18523
cristyda16f162011-02-19 23:52:17 +000018524 lt_aix_libpath_sed='
18525 /Import File Strings/,/^$/ {
18526 /^0/ {
18527 s/^0 *\([^ ]*\) *$/\1/
18528 p
18529 }
18530 }'
18531 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18532 # Check for a 64-bit object if we didn't find anything.
18533 if test -z "$lt_cv_aix_libpath__CXX"; then
18534 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18535 fi
cristy73bd4a52010-10-05 11:24:23 +000018536fi
18537rm -f core conftest.err conftest.$ac_objext \
18538 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018539 if test -z "$lt_cv_aix_libpath__CXX"; then
18540 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18541 fi
18542
18543fi
18544
18545 aix_libpath=$lt_cv_aix_libpath__CXX
18546fi
cristy73bd4a52010-10-05 11:24:23 +000018547
18548 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18549 # Warning - without using the other run time loading flags,
18550 # -berok will link without error, but may produce a broken library.
18551 no_undefined_flag_CXX=' ${wl}-bernotok'
18552 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018553 if test "$with_gnu_ld" = yes; then
18554 # We only use this code for GNU lds that support --whole-archive.
18555 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18556 else
18557 # Exported symbols can be pulled into shared objects from archives
18558 whole_archive_flag_spec_CXX='$convenience'
18559 fi
cristy73bd4a52010-10-05 11:24:23 +000018560 archive_cmds_need_lc_CXX=yes
18561 # This is similar to how AIX traditionally builds its shared
18562 # libraries.
18563 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'
18564 fi
18565 fi
18566 ;;
18567
18568 beos*)
18569 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18570 allow_undefined_flag_CXX=unsupported
18571 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18572 # support --undefined. This deserves some investigation. FIXME
18573 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18574 else
18575 ld_shlibs_CXX=no
18576 fi
18577 ;;
18578
18579 chorus*)
18580 case $cc_basename in
18581 *)
18582 # FIXME: insert proper C++ library support
18583 ld_shlibs_CXX=no
18584 ;;
18585 esac
18586 ;;
18587
18588 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018589 case $GXX,$cc_basename in
18590 ,cl* | no,cl*)
18591 # Native MSVC
18592 # hardcode_libdir_flag_spec is actually meaningless, as there is
18593 # no search path for DLLs.
18594 hardcode_libdir_flag_spec_CXX=' '
18595 allow_undefined_flag_CXX=unsupported
18596 always_export_symbols_CXX=yes
18597 file_list_spec_CXX='@'
18598 # Tell ltmain to make .lib files, not .a files.
18599 libext=lib
18600 # Tell ltmain to make .dll files, not .so files.
18601 shrext_cmds=".dll"
18602 # FIXME: Setting linknames here is a bad hack.
18603 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18604 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18605 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18606 else
18607 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18608 fi~
18609 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18610 linknames='
18611 # The linker will not automatically build a static lib if we build a DLL.
18612 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18613 enable_shared_with_static_runtimes_CXX=yes
18614 # Don't use ranlib
18615 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18616 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18617 lt_tool_outputfile="@TOOL_OUTPUT@"~
18618 case $lt_outputfile in
18619 *.exe|*.EXE) ;;
18620 *)
18621 lt_outputfile="$lt_outputfile.exe"
18622 lt_tool_outputfile="$lt_tool_outputfile.exe"
18623 ;;
18624 esac~
18625 func_to_tool_file "$lt_outputfile"~
18626 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18627 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18628 $RM "$lt_outputfile.manifest";
18629 fi'
18630 ;;
18631 *)
18632 # g++
18633 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18634 # as there is no search path for DLLs.
18635 hardcode_libdir_flag_spec_CXX='-L$libdir'
18636 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18637 allow_undefined_flag_CXX=unsupported
18638 always_export_symbols_CXX=no
18639 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018640
cristyda16f162011-02-19 23:52:17 +000018641 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18642 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'
18643 # If the export-symbols file already is a .def file (1st line
18644 # is EXPORTS), use it as is; otherwise, prepend...
18645 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18646 cp $export_symbols $output_objdir/$soname.def;
18647 else
18648 echo EXPORTS > $output_objdir/$soname.def;
18649 cat $export_symbols >> $output_objdir/$soname.def;
18650 fi~
18651 $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'
18652 else
18653 ld_shlibs_CXX=no
18654 fi
18655 ;;
18656 esac
18657 ;;
cristy73bd4a52010-10-05 11:24:23 +000018658 darwin* | rhapsody*)
18659
18660
18661 archive_cmds_need_lc_CXX=no
18662 hardcode_direct_CXX=no
18663 hardcode_automatic_CXX=yes
18664 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018665 if test "$lt_cv_ld_force_load" = "yes"; then
18666 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 +000018667
cristy0c60a692010-11-04 01:09:47 +000018668 else
18669 whole_archive_flag_spec_CXX=''
18670 fi
cristy73bd4a52010-10-05 11:24:23 +000018671 link_all_deplibs_CXX=yes
18672 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18673 case $cc_basename in
18674 ifort*) _lt_dar_can_shared=yes ;;
18675 *) _lt_dar_can_shared=$GCC ;;
18676 esac
18677 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018678 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018679 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}"
18680 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18681 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}"
18682 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}"
18683 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18684 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}"
18685 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}"
18686 fi
18687
18688 else
18689 ld_shlibs_CXX=no
18690 fi
18691
18692 ;;
18693
18694 dgux*)
18695 case $cc_basename in
18696 ec++*)
18697 # FIXME: insert proper C++ library support
18698 ld_shlibs_CXX=no
18699 ;;
18700 ghcx*)
18701 # Green Hills C++ Compiler
18702 # FIXME: insert proper C++ library support
18703 ld_shlibs_CXX=no
18704 ;;
18705 *)
18706 # FIXME: insert proper C++ library support
18707 ld_shlibs_CXX=no
18708 ;;
18709 esac
18710 ;;
18711
cristy99bd5232011-12-07 14:38:20 +000018712 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018713 # C++ shared libraries reported to be fairly broken before
18714 # switch to ELF
18715 ld_shlibs_CXX=no
18716 ;;
18717
18718 freebsd-elf*)
18719 archive_cmds_need_lc_CXX=no
18720 ;;
18721
18722 freebsd* | dragonfly*)
18723 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18724 # conventions
18725 ld_shlibs_CXX=yes
18726 ;;
18727
18728 gnu*)
18729 ;;
18730
cristy0c60a692010-11-04 01:09:47 +000018731 haiku*)
18732 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18733 link_all_deplibs_CXX=yes
18734 ;;
18735
cristy73bd4a52010-10-05 11:24:23 +000018736 hpux9*)
18737 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18738 hardcode_libdir_separator_CXX=:
18739 export_dynamic_flag_spec_CXX='${wl}-E'
18740 hardcode_direct_CXX=yes
18741 hardcode_minus_L_CXX=yes # Not in the search PATH,
18742 # but as the default
18743 # location of the library.
18744
18745 case $cc_basename in
18746 CC*)
18747 # FIXME: insert proper C++ library support
18748 ld_shlibs_CXX=no
18749 ;;
18750 aCC*)
18751 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'
18752 # Commands to make compiler produce verbose output that lists
18753 # what "hidden" libraries, object files and flags are used when
18754 # linking a shared library.
18755 #
18756 # There doesn't appear to be a way to prevent this compiler from
18757 # explicitly linking system object files so we need to strip them
18758 # from the output so that they don't get included in the library
18759 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018760 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 +000018761 ;;
18762 *)
18763 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018764 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 +000018765 else
18766 # FIXME: insert proper C++ library support
18767 ld_shlibs_CXX=no
18768 fi
18769 ;;
18770 esac
18771 ;;
18772
18773 hpux10*|hpux11*)
18774 if test $with_gnu_ld = no; then
18775 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18776 hardcode_libdir_separator_CXX=:
18777
18778 case $host_cpu in
18779 hppa*64*|ia64*)
18780 ;;
18781 *)
18782 export_dynamic_flag_spec_CXX='${wl}-E'
18783 ;;
18784 esac
18785 fi
18786 case $host_cpu in
18787 hppa*64*|ia64*)
18788 hardcode_direct_CXX=no
18789 hardcode_shlibpath_var_CXX=no
18790 ;;
18791 *)
18792 hardcode_direct_CXX=yes
18793 hardcode_direct_absolute_CXX=yes
18794 hardcode_minus_L_CXX=yes # Not in the search PATH,
18795 # but as the default
18796 # location of the library.
18797 ;;
18798 esac
18799
18800 case $cc_basename in
18801 CC*)
18802 # FIXME: insert proper C++ library support
18803 ld_shlibs_CXX=no
18804 ;;
18805 aCC*)
18806 case $host_cpu in
18807 hppa*64*)
18808 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18809 ;;
18810 ia64*)
18811 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18812 ;;
18813 *)
18814 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18815 ;;
18816 esac
18817 # Commands to make compiler produce verbose output that lists
18818 # what "hidden" libraries, object files and flags are used when
18819 # linking a shared library.
18820 #
18821 # There doesn't appear to be a way to prevent this compiler from
18822 # explicitly linking system object files so we need to strip them
18823 # from the output so that they don't get included in the library
18824 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018825 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 +000018826 ;;
18827 *)
18828 if test "$GXX" = yes; then
18829 if test $with_gnu_ld = no; then
18830 case $host_cpu in
18831 hppa*64*)
18832 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18833 ;;
18834 ia64*)
cristyda16f162011-02-19 23:52:17 +000018835 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 +000018836 ;;
18837 *)
cristyda16f162011-02-19 23:52:17 +000018838 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 +000018839 ;;
18840 esac
18841 fi
18842 else
18843 # FIXME: insert proper C++ library support
18844 ld_shlibs_CXX=no
18845 fi
18846 ;;
18847 esac
18848 ;;
18849
18850 interix[3-9]*)
18851 hardcode_direct_CXX=no
18852 hardcode_shlibpath_var_CXX=no
18853 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18854 export_dynamic_flag_spec_CXX='${wl}-E'
18855 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18856 # Instead, shared libraries are loaded at an image base (0x10000000 by
18857 # default) and relocated if they conflict, which is a slow very memory
18858 # consuming and fragmenting process. To avoid this, we pick a random,
18859 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18860 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18861 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'
18862 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'
18863 ;;
18864 irix5* | irix6*)
18865 case $cc_basename in
18866 CC*)
18867 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018868 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 +000018869
18870 # Archives containing C++ object files must be created using
18871 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18872 # necessary to make sure instantiated templates are included
18873 # in the archive.
18874 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18875 ;;
18876 *)
18877 if test "$GXX" = yes; then
18878 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018879 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 +000018880 else
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"` -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018882 fi
18883 fi
18884 link_all_deplibs_CXX=yes
18885 ;;
18886 esac
18887 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18888 hardcode_libdir_separator_CXX=:
18889 inherit_rpath_CXX=yes
18890 ;;
18891
cristy0c60a692010-11-04 01:09:47 +000018892 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018893 case $cc_basename in
18894 KCC*)
18895 # Kuck and Associates, Inc. (KAI) C++ Compiler
18896
18897 # KCC will only create a shared library if the output file
18898 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18899 # to its proper name (with version) after linking.
18900 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'
18901 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'
18902 # Commands to make compiler produce verbose output that lists
18903 # what "hidden" libraries, object files and flags are used when
18904 # linking a shared library.
18905 #
18906 # There doesn't appear to be a way to prevent this compiler from
18907 # explicitly linking system object files so we need to strip them
18908 # from the output so that they don't get included in the library
18909 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018910 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 +000018911
18912 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18913 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18914
18915 # Archives containing C++ object files must be created using
18916 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18917 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18918 ;;
18919 icpc* | ecpc* )
18920 # Intel C++
18921 with_gnu_ld=yes
18922 # version 8.0 and above of icpc choke on multiply defined symbols
18923 # if we add $predep_objects and $postdep_objects, however 7.1 and
18924 # earlier do not add the objects themselves.
18925 case `$CC -V 2>&1` in
18926 *"Version 7."*)
18927 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18928 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'
18929 ;;
18930 *) # Version 8.0 or newer
18931 tmp_idyn=
18932 case $host_cpu in
18933 ia64*) tmp_idyn=' -i_dynamic';;
18934 esac
18935 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18936 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'
18937 ;;
18938 esac
18939 archive_cmds_need_lc_CXX=no
18940 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18941 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18942 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18943 ;;
18944 pgCC* | pgcpp*)
18945 # Portland Group C++ compiler
18946 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018947 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018948 prelink_cmds_CXX='tpldir=Template.dir~
18949 rm -rf $tpldir~
18950 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018951 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018952 old_archive_cmds_CXX='tpldir=Template.dir~
18953 rm -rf $tpldir~
18954 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018955 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018956 $RANLIB $oldlib'
18957 archive_cmds_CXX='tpldir=Template.dir~
18958 rm -rf $tpldir~
18959 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018960 $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 +000018961 archive_expsym_cmds_CXX='tpldir=Template.dir~
18962 rm -rf $tpldir~
18963 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018964 $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 +000018965 ;;
cristy0c60a692010-11-04 01:09:47 +000018966 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018967 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18968 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'
18969 ;;
18970 esac
18971
18972 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18973 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018974 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 +000018975 ;;
18976 cxx*)
18977 # Compaq C++
18978 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18979 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'
18980
18981 runpath_var=LD_RUN_PATH
18982 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18983 hardcode_libdir_separator_CXX=:
18984
18985 # Commands to make compiler produce verbose output that lists
18986 # what "hidden" libraries, object files and flags are used when
18987 # linking a shared library.
18988 #
18989 # There doesn't appear to be a way to prevent this compiler from
18990 # explicitly linking system object files so we need to strip them
18991 # from the output so that they don't get included in the library
18992 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018993 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 +000018994 ;;
cristy0c60a692010-11-04 01:09:47 +000018995 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018996 # IBM XL 8.0 on PPC, with GNU ld
18997 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18998 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18999 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19000 if test "x$supports_anon_versioning" = xyes; then
19001 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19002 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19003 echo "local: *; };" >> $output_objdir/$libname.ver~
19004 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19005 fi
19006 ;;
19007 *)
19008 case `$CC -V 2>&1 | sed 5q` in
19009 *Sun\ C*)
19010 # Sun C++ 5.9
19011 no_undefined_flag_CXX=' -zdefs'
19012 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19013 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'
19014 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019015 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 +000019016 compiler_needs_object_CXX=yes
19017
19018 # Not sure whether something based on
19019 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19020 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019021 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019022
19023 # Archives containing C++ object files must be created using
19024 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19025 # necessary to make sure instantiated templates are included
19026 # in the archive.
19027 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19028 ;;
19029 esac
19030 ;;
19031 esac
19032 ;;
19033
19034 lynxos*)
19035 # FIXME: insert proper C++ library support
19036 ld_shlibs_CXX=no
19037 ;;
19038
19039 m88k*)
19040 # FIXME: insert proper C++ library support
19041 ld_shlibs_CXX=no
19042 ;;
19043
19044 mvs*)
19045 case $cc_basename in
19046 cxx*)
19047 # FIXME: insert proper C++ library support
19048 ld_shlibs_CXX=no
19049 ;;
19050 *)
19051 # FIXME: insert proper C++ library support
19052 ld_shlibs_CXX=no
19053 ;;
19054 esac
19055 ;;
19056
19057 netbsd*)
19058 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19059 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19060 wlarc=
19061 hardcode_libdir_flag_spec_CXX='-R$libdir'
19062 hardcode_direct_CXX=yes
19063 hardcode_shlibpath_var_CXX=no
19064 fi
19065 # Workaround some broken pre-1.5 toolchains
19066 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19067 ;;
19068
19069 *nto* | *qnx*)
19070 ld_shlibs_CXX=yes
19071 ;;
19072
19073 openbsd2*)
19074 # C++ shared libraries are fairly broken
19075 ld_shlibs_CXX=no
19076 ;;
19077
19078 openbsd*)
19079 if test -f /usr/libexec/ld.so; then
19080 hardcode_direct_CXX=yes
19081 hardcode_shlibpath_var_CXX=no
19082 hardcode_direct_absolute_CXX=yes
19083 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19084 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19086 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19087 export_dynamic_flag_spec_CXX='${wl}-E'
19088 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19089 fi
cristy0c60a692010-11-04 01:09:47 +000019090 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019091 else
19092 ld_shlibs_CXX=no
19093 fi
19094 ;;
19095
19096 osf3* | osf4* | osf5*)
19097 case $cc_basename in
19098 KCC*)
19099 # Kuck and Associates, Inc. (KAI) C++ Compiler
19100
19101 # KCC will only create a shared library if the output file
19102 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19103 # to its proper name (with version) after linking.
19104 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'
19105
19106 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19107 hardcode_libdir_separator_CXX=:
19108
19109 # Archives containing C++ object files must be created using
19110 # the KAI C++ compiler.
19111 case $host in
19112 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19113 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19114 esac
19115 ;;
19116 RCC*)
19117 # Rational C++ 2.4.1
19118 # FIXME: insert proper C++ library support
19119 ld_shlibs_CXX=no
19120 ;;
19121 cxx*)
19122 case $host in
19123 osf3*)
19124 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019125 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 +000019126 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19127 ;;
19128 *)
19129 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019130 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 +000019131 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19132 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019133 $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 +000019134 $RM $lib.exp'
19135 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19136 ;;
19137 esac
19138
19139 hardcode_libdir_separator_CXX=:
19140
19141 # Commands to make compiler produce verbose output that lists
19142 # what "hidden" libraries, object files and flags are used when
19143 # linking a shared library.
19144 #
19145 # There doesn't appear to be a way to prevent this compiler from
19146 # explicitly linking system object files so we need to strip them
19147 # from the output so that they don't get included in the library
19148 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019149 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 +000019150 ;;
19151 *)
19152 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19153 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19154 case $host in
19155 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019156 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 +000019157 ;;
19158 *)
cristyda16f162011-02-19 23:52:17 +000019159 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 +000019160 ;;
19161 esac
19162
19163 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19164 hardcode_libdir_separator_CXX=:
19165
19166 # Commands to make compiler produce verbose output that lists
19167 # what "hidden" libraries, object files and flags are used when
19168 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019169 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019170
19171 else
19172 # FIXME: insert proper C++ library support
19173 ld_shlibs_CXX=no
19174 fi
19175 ;;
19176 esac
19177 ;;
19178
19179 psos*)
19180 # FIXME: insert proper C++ library support
19181 ld_shlibs_CXX=no
19182 ;;
19183
19184 sunos4*)
19185 case $cc_basename in
19186 CC*)
19187 # Sun C++ 4.x
19188 # FIXME: insert proper C++ library support
19189 ld_shlibs_CXX=no
19190 ;;
19191 lcc*)
19192 # Lucid
19193 # FIXME: insert proper C++ library support
19194 ld_shlibs_CXX=no
19195 ;;
19196 *)
19197 # FIXME: insert proper C++ library support
19198 ld_shlibs_CXX=no
19199 ;;
19200 esac
19201 ;;
19202
19203 solaris*)
19204 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019205 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019206 # Sun C++ 4.2, 5.x and Centerline C++
19207 archive_cmds_need_lc_CXX=yes
19208 no_undefined_flag_CXX=' -zdefs'
19209 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19210 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19211 $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'
19212
19213 hardcode_libdir_flag_spec_CXX='-R$libdir'
19214 hardcode_shlibpath_var_CXX=no
19215 case $host_os in
19216 solaris2.[0-5] | solaris2.[0-5].*) ;;
19217 *)
19218 # The compiler driver will combine and reorder linker options,
19219 # but understands `-z linker_flag'.
19220 # Supported since Solaris 2.6 (maybe 2.5.1?)
19221 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19222 ;;
19223 esac
19224 link_all_deplibs_CXX=yes
19225
cristy0c60a692010-11-04 01:09:47 +000019226 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019227
19228 # Archives containing C++ object files must be created using
19229 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19230 # necessary to make sure instantiated templates are included
19231 # in the archive.
19232 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19233 ;;
19234 gcx*)
19235 # Green Hills C++ Compiler
19236 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19237
19238 # The C++ compiler must be used to create the archive.
19239 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19240 ;;
19241 *)
19242 # GNU C++ compiler with Solaris linker
19243 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19244 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19245 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019246 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 +000019247 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 +000019248 $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 +000019249
19250 # Commands to make compiler produce verbose output that lists
19251 # what "hidden" libraries, object files and flags are used when
19252 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019253 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019254 else
19255 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19256 # platform.
19257 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19258 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19259 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19260
19261 # Commands to make compiler produce verbose output that lists
19262 # what "hidden" libraries, object files and flags are used when
19263 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019264 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019265 fi
19266
19267 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19268 case $host_os in
19269 solaris2.[0-5] | solaris2.[0-5].*) ;;
19270 *)
19271 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19272 ;;
19273 esac
19274 fi
19275 ;;
19276 esac
19277 ;;
19278
19279 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19280 no_undefined_flag_CXX='${wl}-z,text'
19281 archive_cmds_need_lc_CXX=no
19282 hardcode_shlibpath_var_CXX=no
19283 runpath_var='LD_RUN_PATH'
19284
19285 case $cc_basename in
19286 CC*)
19287 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19288 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19289 ;;
19290 *)
19291 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19292 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19293 ;;
19294 esac
19295 ;;
19296
19297 sysv5* | sco3.2v5* | sco5v6*)
19298 # Note: We can NOT use -z defs as we might desire, because we do not
19299 # link with -lc, and that would cause any symbols used from libc to
19300 # always be unresolved, which means just about no library would
19301 # ever link correctly. If we're not using GNU ld we use -z text
19302 # though, which does catch some bad symbols but isn't as heavy-handed
19303 # as -z defs.
19304 no_undefined_flag_CXX='${wl}-z,text'
19305 allow_undefined_flag_CXX='${wl}-z,nodefs'
19306 archive_cmds_need_lc_CXX=no
19307 hardcode_shlibpath_var_CXX=no
19308 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19309 hardcode_libdir_separator_CXX=':'
19310 link_all_deplibs_CXX=yes
19311 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19312 runpath_var='LD_RUN_PATH'
19313
19314 case $cc_basename in
19315 CC*)
19316 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19317 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 +000019318 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19319 '"$old_archive_cmds_CXX"
19320 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19321 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019322 ;;
19323 *)
19324 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19325 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19326 ;;
19327 esac
19328 ;;
19329
19330 tandem*)
19331 case $cc_basename in
19332 NCC*)
19333 # NonStop-UX NCC 3.20
19334 # FIXME: insert proper C++ library support
19335 ld_shlibs_CXX=no
19336 ;;
19337 *)
19338 # FIXME: insert proper C++ library support
19339 ld_shlibs_CXX=no
19340 ;;
19341 esac
19342 ;;
19343
19344 vxworks*)
19345 # FIXME: insert proper C++ library support
19346 ld_shlibs_CXX=no
19347 ;;
19348
19349 *)
19350 # FIXME: insert proper C++ library support
19351 ld_shlibs_CXX=no
19352 ;;
19353 esac
19354
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19356$as_echo "$ld_shlibs_CXX" >&6; }
19357 test "$ld_shlibs_CXX" = no && can_build_shared=no
19358
19359 GCC_CXX="$GXX"
19360 LD_CXX="$LD"
19361
19362 ## CAVEAT EMPTOR:
19363 ## There is no encapsulation within the following macros, do not change
19364 ## the running order or otherwise move them around unless you know exactly
19365 ## what you are doing...
19366 # Dependencies to place before and after the object being linked:
19367predep_objects_CXX=
19368postdep_objects_CXX=
19369predeps_CXX=
19370postdeps_CXX=
19371compiler_lib_search_path_CXX=
19372
19373cat > conftest.$ac_ext <<_LT_EOF
19374class Foo
19375{
19376public:
19377 Foo (void) { a = 0; }
19378private:
19379 int a;
19380};
19381_LT_EOF
19382
cristyda16f162011-02-19 23:52:17 +000019383
19384_lt_libdeps_save_CFLAGS=$CFLAGS
19385case "$CC $CFLAGS " in #(
19386*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19387*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019388*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019389esac
19390
cristy73bd4a52010-10-05 11:24:23 +000019391if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19392 (eval $ac_compile) 2>&5
19393 ac_status=$?
19394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19395 test $ac_status = 0; }; then
19396 # Parse the compiler output and extract the necessary
19397 # objects, libraries and library flags.
19398
19399 # Sentinel used to keep track of whether or not we are before
19400 # the conftest object file.
19401 pre_test_object_deps_done=no
19402
19403 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019404 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019405
19406 -L* | -R* | -l*)
19407 # Some compilers place space between "-{L,R}" and the path.
19408 # Remove the space.
19409 if test $p = "-L" ||
19410 test $p = "-R"; then
19411 prev=$p
19412 continue
cristy73bd4a52010-10-05 11:24:23 +000019413 fi
19414
cristyda16f162011-02-19 23:52:17 +000019415 # Expand the sysroot to ease extracting the directories later.
19416 if test -z "$prev"; then
19417 case $p in
19418 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19419 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19420 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19421 esac
19422 fi
19423 case $p in
19424 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19425 esac
cristy73bd4a52010-10-05 11:24:23 +000019426 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019427 case ${prev} in
19428 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019429 # Internal compiler library paths should come after those
19430 # provided the user. The postdeps already come after the
19431 # user supplied libs so there is no need to process them.
19432 if test -z "$compiler_lib_search_path_CXX"; then
19433 compiler_lib_search_path_CXX="${prev}${p}"
19434 else
19435 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19436 fi
19437 ;;
19438 # The "-l" case would never come before the object being
19439 # linked, so don't bother handling this case.
19440 esac
19441 else
19442 if test -z "$postdeps_CXX"; then
19443 postdeps_CXX="${prev}${p}"
19444 else
19445 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19446 fi
19447 fi
cristyda16f162011-02-19 23:52:17 +000019448 prev=
cristy73bd4a52010-10-05 11:24:23 +000019449 ;;
19450
cristyda16f162011-02-19 23:52:17 +000019451 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019452 *.$objext)
19453 # This assumes that the test object file only shows up
19454 # once in the compiler output.
19455 if test "$p" = "conftest.$objext"; then
19456 pre_test_object_deps_done=yes
19457 continue
19458 fi
19459
19460 if test "$pre_test_object_deps_done" = no; then
19461 if test -z "$predep_objects_CXX"; then
19462 predep_objects_CXX="$p"
19463 else
19464 predep_objects_CXX="$predep_objects_CXX $p"
19465 fi
19466 else
19467 if test -z "$postdep_objects_CXX"; then
19468 postdep_objects_CXX="$p"
19469 else
19470 postdep_objects_CXX="$postdep_objects_CXX $p"
19471 fi
19472 fi
19473 ;;
19474
19475 *) ;; # Ignore the rest.
19476
19477 esac
19478 done
19479
19480 # Clean up.
19481 rm -f a.out a.exe
19482else
19483 echo "libtool.m4: error: problem compiling CXX test program"
19484fi
19485
19486$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019487CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019488
19489# PORTME: override above test on systems where it is broken
19490case $host_os in
19491interix[3-9]*)
19492 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19493 # hack all around it, let's just trust "g++" to DTRT.
19494 predep_objects_CXX=
19495 postdep_objects_CXX=
19496 postdeps_CXX=
19497 ;;
19498
19499linux*)
19500 case `$CC -V 2>&1 | sed 5q` in
19501 *Sun\ C*)
19502 # Sun C++ 5.9
19503
19504 # The more standards-conforming stlport4 library is
19505 # incompatible with the Cstd library. Avoid specifying
19506 # it if it's in CXXFLAGS. Ignore libCrun as
19507 # -library=stlport4 depends on it.
19508 case " $CXX $CXXFLAGS " in
19509 *" -library=stlport4 "*)
19510 solaris_use_stlport4=yes
19511 ;;
19512 esac
19513
19514 if test "$solaris_use_stlport4" != yes; then
19515 postdeps_CXX='-library=Cstd -library=Crun'
19516 fi
19517 ;;
19518 esac
19519 ;;
19520
19521solaris*)
19522 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019523 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019524 # The more standards-conforming stlport4 library is
19525 # incompatible with the Cstd library. Avoid specifying
19526 # it if it's in CXXFLAGS. Ignore libCrun as
19527 # -library=stlport4 depends on it.
19528 case " $CXX $CXXFLAGS " in
19529 *" -library=stlport4 "*)
19530 solaris_use_stlport4=yes
19531 ;;
19532 esac
19533
19534 # Adding this requires a known-good setup of shared libraries for
19535 # Sun compiler versions before 5.6, else PIC objects from an old
19536 # archive will be linked into the output, leading to subtle bugs.
19537 if test "$solaris_use_stlport4" != yes; then
19538 postdeps_CXX='-library=Cstd -library=Crun'
19539 fi
19540 ;;
19541 esac
19542 ;;
19543esac
19544
19545
19546case " $postdeps_CXX " in
19547*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19548esac
19549 compiler_lib_search_dirs_CXX=
19550if test -n "${compiler_lib_search_path_CXX}"; then
19551 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19552fi
19553
19554
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 lt_prog_compiler_wl_CXX=
19585lt_prog_compiler_pic_CXX=
19586lt_prog_compiler_static_CXX=
19587
cristy73bd4a52010-10-05 11:24:23 +000019588
19589 # C++ specific cases for pic, static, wl, etc.
19590 if test "$GXX" = yes; then
19591 lt_prog_compiler_wl_CXX='-Wl,'
19592 lt_prog_compiler_static_CXX='-static'
19593
19594 case $host_os in
19595 aix*)
19596 # All AIX code is PIC.
19597 if test "$host_cpu" = ia64; then
19598 # AIX 5 now supports IA64 processor
19599 lt_prog_compiler_static_CXX='-Bstatic'
19600 fi
19601 ;;
19602
19603 amigaos*)
19604 case $host_cpu in
19605 powerpc)
19606 # see comment about AmigaOS4 .so support
19607 lt_prog_compiler_pic_CXX='-fPIC'
19608 ;;
19609 m68k)
19610 # FIXME: we need at least 68020 code to build shared libraries, but
19611 # adding the `-m68020' flag to GCC prevents building anything better,
19612 # like `-m68040'.
19613 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19614 ;;
19615 esac
19616 ;;
19617
19618 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19619 # PIC is the default for these OSes.
19620 ;;
19621 mingw* | cygwin* | os2* | pw32* | cegcc*)
19622 # This hack is so that the source file can tell whether it is being
19623 # built for inclusion in a dll (and should export symbols for example).
19624 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19625 # (--disable-auto-import) libraries
19626 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19627 ;;
19628 darwin* | rhapsody*)
19629 # PIC is the default on this platform
19630 # Common symbols not allowed in MH_DYLIB files
19631 lt_prog_compiler_pic_CXX='-fno-common'
19632 ;;
19633 *djgpp*)
19634 # DJGPP does not support shared libraries at all
19635 lt_prog_compiler_pic_CXX=
19636 ;;
cristy0c60a692010-11-04 01:09:47 +000019637 haiku*)
19638 # PIC is the default for Haiku.
19639 # The "-static" flag exists, but is broken.
19640 lt_prog_compiler_static_CXX=
19641 ;;
cristy73bd4a52010-10-05 11:24:23 +000019642 interix[3-9]*)
19643 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19644 # Instead, we relocate shared libraries at runtime.
19645 ;;
19646 sysv4*MP*)
19647 if test -d /usr/nec; then
19648 lt_prog_compiler_pic_CXX=-Kconform_pic
19649 fi
19650 ;;
19651 hpux*)
19652 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19653 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19654 # sets the default TLS model and affects inlining.
19655 case $host_cpu in
19656 hppa*64*)
19657 ;;
19658 *)
19659 lt_prog_compiler_pic_CXX='-fPIC'
19660 ;;
19661 esac
19662 ;;
19663 *qnx* | *nto*)
19664 # QNX uses GNU C++, but need to define -shared option too, otherwise
19665 # it will coredump.
19666 lt_prog_compiler_pic_CXX='-fPIC -shared'
19667 ;;
19668 *)
19669 lt_prog_compiler_pic_CXX='-fPIC'
19670 ;;
19671 esac
19672 else
19673 case $host_os in
19674 aix[4-9]*)
19675 # All AIX code is PIC.
19676 if test "$host_cpu" = ia64; then
19677 # AIX 5 now supports IA64 processor
19678 lt_prog_compiler_static_CXX='-Bstatic'
19679 else
19680 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19681 fi
19682 ;;
19683 chorus*)
19684 case $cc_basename in
19685 cxch68*)
19686 # Green Hills C++ Compiler
19687 # _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"
19688 ;;
19689 esac
19690 ;;
cristyda16f162011-02-19 23:52:17 +000019691 mingw* | cygwin* | os2* | pw32* | cegcc*)
19692 # This hack is so that the source file can tell whether it is being
19693 # built for inclusion in a dll (and should export symbols for example).
19694 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19695 ;;
cristy73bd4a52010-10-05 11:24:23 +000019696 dgux*)
19697 case $cc_basename in
19698 ec++*)
19699 lt_prog_compiler_pic_CXX='-KPIC'
19700 ;;
19701 ghcx*)
19702 # Green Hills C++ Compiler
19703 lt_prog_compiler_pic_CXX='-pic'
19704 ;;
19705 *)
19706 ;;
19707 esac
19708 ;;
19709 freebsd* | dragonfly*)
19710 # FreeBSD uses GNU C++
19711 ;;
19712 hpux9* | hpux10* | hpux11*)
19713 case $cc_basename in
19714 CC*)
19715 lt_prog_compiler_wl_CXX='-Wl,'
19716 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19717 if test "$host_cpu" != ia64; then
19718 lt_prog_compiler_pic_CXX='+Z'
19719 fi
19720 ;;
19721 aCC*)
19722 lt_prog_compiler_wl_CXX='-Wl,'
19723 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19724 case $host_cpu in
19725 hppa*64*|ia64*)
19726 # +Z the default
19727 ;;
19728 *)
19729 lt_prog_compiler_pic_CXX='+Z'
19730 ;;
19731 esac
19732 ;;
19733 *)
19734 ;;
19735 esac
19736 ;;
19737 interix*)
19738 # This is c89, which is MS Visual C++ (no shared libs)
19739 # Anyone wants to do a port?
19740 ;;
19741 irix5* | irix6* | nonstopux*)
19742 case $cc_basename in
19743 CC*)
19744 lt_prog_compiler_wl_CXX='-Wl,'
19745 lt_prog_compiler_static_CXX='-non_shared'
19746 # CC pic flag -KPIC is the default.
19747 ;;
19748 *)
19749 ;;
19750 esac
19751 ;;
cristy0c60a692010-11-04 01:09:47 +000019752 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019753 case $cc_basename in
19754 KCC*)
19755 # KAI C++ Compiler
19756 lt_prog_compiler_wl_CXX='--backend -Wl,'
19757 lt_prog_compiler_pic_CXX='-fPIC'
19758 ;;
19759 ecpc* )
19760 # old Intel C++ for x86_64 which still supported -KPIC.
19761 lt_prog_compiler_wl_CXX='-Wl,'
19762 lt_prog_compiler_pic_CXX='-KPIC'
19763 lt_prog_compiler_static_CXX='-static'
19764 ;;
19765 icpc* )
19766 # Intel C++, used to be incompatible with GCC.
19767 # ICC 10 doesn't accept -KPIC any more.
19768 lt_prog_compiler_wl_CXX='-Wl,'
19769 lt_prog_compiler_pic_CXX='-fPIC'
19770 lt_prog_compiler_static_CXX='-static'
19771 ;;
19772 pgCC* | pgcpp*)
19773 # Portland Group C++ compiler
19774 lt_prog_compiler_wl_CXX='-Wl,'
19775 lt_prog_compiler_pic_CXX='-fpic'
19776 lt_prog_compiler_static_CXX='-Bstatic'
19777 ;;
19778 cxx*)
19779 # Compaq C++
19780 # Make sure the PIC flag is empty. It appears that all Alpha
19781 # Linux and Compaq Tru64 Unix objects are PIC.
19782 lt_prog_compiler_pic_CXX=
19783 lt_prog_compiler_static_CXX='-non_shared'
19784 ;;
cristy0c60a692010-11-04 01:09:47 +000019785 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19786 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019787 lt_prog_compiler_wl_CXX='-Wl,'
19788 lt_prog_compiler_pic_CXX='-qpic'
19789 lt_prog_compiler_static_CXX='-qstaticlink'
19790 ;;
19791 *)
19792 case `$CC -V 2>&1 | sed 5q` in
19793 *Sun\ C*)
19794 # Sun C++ 5.9
19795 lt_prog_compiler_pic_CXX='-KPIC'
19796 lt_prog_compiler_static_CXX='-Bstatic'
19797 lt_prog_compiler_wl_CXX='-Qoption ld '
19798 ;;
19799 esac
19800 ;;
19801 esac
19802 ;;
19803 lynxos*)
19804 ;;
19805 m88k*)
19806 ;;
19807 mvs*)
19808 case $cc_basename in
19809 cxx*)
19810 lt_prog_compiler_pic_CXX='-W c,exportall'
19811 ;;
19812 *)
19813 ;;
19814 esac
19815 ;;
19816 netbsd*)
19817 ;;
19818 *qnx* | *nto*)
19819 # QNX uses GNU C++, but need to define -shared option too, otherwise
19820 # it will coredump.
19821 lt_prog_compiler_pic_CXX='-fPIC -shared'
19822 ;;
19823 osf3* | osf4* | osf5*)
19824 case $cc_basename in
19825 KCC*)
19826 lt_prog_compiler_wl_CXX='--backend -Wl,'
19827 ;;
19828 RCC*)
19829 # Rational C++ 2.4.1
19830 lt_prog_compiler_pic_CXX='-pic'
19831 ;;
19832 cxx*)
19833 # Digital/Compaq C++
19834 lt_prog_compiler_wl_CXX='-Wl,'
19835 # Make sure the PIC flag is empty. It appears that all Alpha
19836 # Linux and Compaq Tru64 Unix objects are PIC.
19837 lt_prog_compiler_pic_CXX=
19838 lt_prog_compiler_static_CXX='-non_shared'
19839 ;;
19840 *)
19841 ;;
19842 esac
19843 ;;
19844 psos*)
19845 ;;
19846 solaris*)
19847 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019848 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019849 # Sun C++ 4.2, 5.x and Centerline C++
19850 lt_prog_compiler_pic_CXX='-KPIC'
19851 lt_prog_compiler_static_CXX='-Bstatic'
19852 lt_prog_compiler_wl_CXX='-Qoption ld '
19853 ;;
19854 gcx*)
19855 # Green Hills C++ Compiler
19856 lt_prog_compiler_pic_CXX='-PIC'
19857 ;;
19858 *)
19859 ;;
19860 esac
19861 ;;
19862 sunos4*)
19863 case $cc_basename in
19864 CC*)
19865 # Sun C++ 4.x
19866 lt_prog_compiler_pic_CXX='-pic'
19867 lt_prog_compiler_static_CXX='-Bstatic'
19868 ;;
19869 lcc*)
19870 # Lucid
19871 lt_prog_compiler_pic_CXX='-pic'
19872 ;;
19873 *)
19874 ;;
19875 esac
19876 ;;
19877 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19878 case $cc_basename in
19879 CC*)
19880 lt_prog_compiler_wl_CXX='-Wl,'
19881 lt_prog_compiler_pic_CXX='-KPIC'
19882 lt_prog_compiler_static_CXX='-Bstatic'
19883 ;;
19884 esac
19885 ;;
19886 tandem*)
19887 case $cc_basename in
19888 NCC*)
19889 # NonStop-UX NCC 3.20
19890 lt_prog_compiler_pic_CXX='-KPIC'
19891 ;;
19892 *)
19893 ;;
19894 esac
19895 ;;
19896 vxworks*)
19897 ;;
19898 *)
19899 lt_prog_compiler_can_build_shared_CXX=no
19900 ;;
19901 esac
19902 fi
19903
19904case $host_os in
19905 # For platforms which do not support PIC, -DPIC is meaningless:
19906 *djgpp*)
19907 lt_prog_compiler_pic_CXX=
19908 ;;
19909 *)
19910 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19911 ;;
19912esac
cristy73bd4a52010-10-05 11:24:23 +000019913
cristyda16f162011-02-19 23:52:17 +000019914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19915$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19916if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19917 $as_echo_n "(cached) " >&6
19918else
19919 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19920fi
19921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19922$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19923lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019924
19925#
19926# Check to make sure the PIC flag actually works.
19927#
19928if test -n "$lt_prog_compiler_pic_CXX"; then
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19930$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019931if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019932 $as_echo_n "(cached) " >&6
19933else
19934 lt_cv_prog_compiler_pic_works_CXX=no
19935 ac_outfile=conftest.$ac_objext
19936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19937 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19938 # Insert the option either (1) after the last *FLAGS variable, or
19939 # (2) before a word containing "conftest.", or (3) at the end.
19940 # Note that $ac_compile itself does not contain backslashes and begins
19941 # with a dollar sign (not a hyphen), so the echo should work correctly.
19942 # The option is referenced via a variable to avoid confusing sed.
19943 lt_compile=`echo "$ac_compile" | $SED \
19944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19946 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019947 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019948 (eval "$lt_compile" 2>conftest.err)
19949 ac_status=$?
19950 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019952 if (exit $ac_status) && test -s "$ac_outfile"; then
19953 # The compiler can only warn and ignore the option if not recognized
19954 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019955 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19957 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19958 lt_cv_prog_compiler_pic_works_CXX=yes
19959 fi
19960 fi
19961 $RM conftest*
19962
19963fi
19964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19965$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19966
19967if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19968 case $lt_prog_compiler_pic_CXX in
19969 "" | " "*) ;;
19970 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19971 esac
19972else
19973 lt_prog_compiler_pic_CXX=
19974 lt_prog_compiler_can_build_shared_CXX=no
19975fi
19976
19977fi
19978
19979
19980
cristyda16f162011-02-19 23:52:17 +000019981
19982
cristy73bd4a52010-10-05 11:24:23 +000019983#
19984# Check to make sure the static flag actually works.
19985#
19986wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19988$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019989if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019990 $as_echo_n "(cached) " >&6
19991else
19992 lt_cv_prog_compiler_static_works_CXX=no
19993 save_LDFLAGS="$LDFLAGS"
19994 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19995 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19996 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19997 # The linker can only warn and ignore the option if not recognized
19998 # So say no if there are warnings
19999 if test -s conftest.err; then
20000 # Append any errors to the config.log.
20001 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020002 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20004 if diff conftest.exp conftest.er2 >/dev/null; then
20005 lt_cv_prog_compiler_static_works_CXX=yes
20006 fi
20007 else
20008 lt_cv_prog_compiler_static_works_CXX=yes
20009 fi
20010 fi
20011 $RM -r conftest*
20012 LDFLAGS="$save_LDFLAGS"
20013
20014fi
20015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20016$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20017
20018if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20019 :
20020else
20021 lt_prog_compiler_static_CXX=
20022fi
20023
20024
20025
20026
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20028$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020029if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020030 $as_echo_n "(cached) " >&6
20031else
20032 lt_cv_prog_compiler_c_o_CXX=no
20033 $RM -r conftest 2>/dev/null
20034 mkdir conftest
20035 cd conftest
20036 mkdir out
20037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20038
20039 lt_compiler_flag="-o out/conftest2.$ac_objext"
20040 # Insert the option either (1) after the last *FLAGS variable, or
20041 # (2) before a word containing "conftest.", or (3) at the end.
20042 # Note that $ac_compile itself does not contain backslashes and begins
20043 # with a dollar sign (not a hyphen), so the echo should work correctly.
20044 lt_compile=`echo "$ac_compile" | $SED \
20045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20047 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020048 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020049 (eval "$lt_compile" 2>out/conftest.err)
20050 ac_status=$?
20051 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020053 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20054 then
20055 # The compiler can only warn and ignore the option if not recognized
20056 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020057 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020058 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20059 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20060 lt_cv_prog_compiler_c_o_CXX=yes
20061 fi
20062 fi
20063 chmod u+w . 2>&5
20064 $RM conftest*
20065 # SGI C++ compiler will create directory out/ii_files/ for
20066 # template instantiation
20067 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20068 $RM out/* && rmdir out
20069 cd ..
20070 $RM -r conftest
20071 $RM conftest*
20072
20073fi
20074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20075$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20076
20077
20078
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20080$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020081if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020082 $as_echo_n "(cached) " >&6
20083else
20084 lt_cv_prog_compiler_c_o_CXX=no
20085 $RM -r conftest 2>/dev/null
20086 mkdir conftest
20087 cd conftest
20088 mkdir out
20089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20090
20091 lt_compiler_flag="-o out/conftest2.$ac_objext"
20092 # Insert the option either (1) after the last *FLAGS variable, or
20093 # (2) before a word containing "conftest.", or (3) at the end.
20094 # Note that $ac_compile itself does not contain backslashes and begins
20095 # with a dollar sign (not a hyphen), so the echo should work correctly.
20096 lt_compile=`echo "$ac_compile" | $SED \
20097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20099 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020101 (eval "$lt_compile" 2>out/conftest.err)
20102 ac_status=$?
20103 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020105 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20106 then
20107 # The compiler can only warn and ignore the option if not recognized
20108 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020109 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020110 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20111 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20112 lt_cv_prog_compiler_c_o_CXX=yes
20113 fi
20114 fi
20115 chmod u+w . 2>&5
20116 $RM conftest*
20117 # SGI C++ compiler will create directory out/ii_files/ for
20118 # template instantiation
20119 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20120 $RM out/* && rmdir out
20121 cd ..
20122 $RM -r conftest
20123 $RM conftest*
20124
20125fi
20126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20127$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20128
20129
20130
20131
20132hard_links="nottested"
20133if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20134 # do not overwrite the value of need_locks provided by the user
20135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20136$as_echo_n "checking if we can lock with hard links... " >&6; }
20137 hard_links=yes
20138 $RM conftest*
20139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20140 touch conftest.a
20141 ln conftest.a conftest.b 2>&5 || hard_links=no
20142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20144$as_echo "$hard_links" >&6; }
20145 if test "$hard_links" = no; then
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20147$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20148 need_locks=warn
20149 fi
20150else
20151 need_locks=no
20152fi
20153
20154
20155
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20157$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20158
20159 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020160 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020161 case $host_os in
20162 aix[4-9]*)
20163 # If we're using GNU nm, then we don't want the "-C" option.
20164 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020165 # Also, AIX nm treats weak defined symbols like other global defined
20166 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020167 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020168 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 +000020169 else
20170 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'
20171 fi
20172 ;;
20173 pw32*)
20174 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020175 ;;
cristy73bd4a52010-10-05 11:24:23 +000020176 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020177 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020178 cl*)
20179 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20180 ;;
cristyda16f162011-02-19 23:52:17 +000020181 *)
20182 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'
20183 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20184 ;;
20185 esac
20186 ;;
cristy73bd4a52010-10-05 11:24:23 +000020187 *)
20188 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020189 ;;
cristy73bd4a52010-10-05 11:24:23 +000020190 esac
cristy73bd4a52010-10-05 11:24:23 +000020191
20192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20193$as_echo "$ld_shlibs_CXX" >&6; }
20194test "$ld_shlibs_CXX" = no && can_build_shared=no
20195
20196with_gnu_ld_CXX=$with_gnu_ld
20197
20198
20199
20200
20201
20202
20203#
20204# Do we need to explicitly link libc?
20205#
20206case "x$archive_cmds_need_lc_CXX" in
20207x|xyes)
20208 # Assume -lc should be added
20209 archive_cmds_need_lc_CXX=yes
20210
20211 if test "$enable_shared" = yes && test "$GCC" = yes; then
20212 case $archive_cmds_CXX in
20213 *'~'*)
20214 # FIXME: we may have to deal with multi-command sequences.
20215 ;;
20216 '$CC '*)
20217 # Test whether the compiler implicitly links with -lc since on some
20218 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20219 # to ld, don't add -lc before -lgcc.
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20221$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020222if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020223 $as_echo_n "(cached) " >&6
20224else
20225 $RM conftest*
20226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020227
cristy0c60a692010-11-04 01:09:47 +000020228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020229 (eval $ac_compile) 2>&5
20230 ac_status=$?
20231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20232 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020233 soname=conftest
20234 lib=conftest
20235 libobjs=conftest.$ac_objext
20236 deplibs=
20237 wl=$lt_prog_compiler_wl_CXX
20238 pic_flag=$lt_prog_compiler_pic_CXX
20239 compiler_flags=-v
20240 linker_flags=-v
20241 verstring=
20242 output_objdir=.
20243 libname=conftest
20244 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20245 allow_undefined_flag_CXX=
20246 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 +000020247 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20248 ac_status=$?
20249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20250 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020251 then
20252 lt_cv_archive_cmds_need_lc_CXX=no
20253 else
20254 lt_cv_archive_cmds_need_lc_CXX=yes
20255 fi
20256 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20257 else
20258 cat conftest.err 1>&5
20259 fi
20260 $RM conftest*
20261
20262fi
20263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20264$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20265 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020266 ;;
20267 esac
20268 fi
20269 ;;
20270esac
20271
20272
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
cristy73bd4a52010-10-05 11:24:23 +000020333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20334$as_echo_n "checking dynamic linker characteristics... " >&6; }
20335
20336library_names_spec=
20337libname_spec='lib$name'
20338soname_spec=
20339shrext_cmds=".so"
20340postinstall_cmds=
20341postuninstall_cmds=
20342finish_cmds=
20343finish_eval=
20344shlibpath_var=
20345shlibpath_overrides_runpath=unknown
20346version_type=none
20347dynamic_linker="$host_os ld.so"
20348sys_lib_dlsearch_path_spec="/lib /usr/lib"
20349need_lib_prefix=unknown
20350hardcode_into_libs=no
20351
20352# when you set need_version to no, make sure it does not cause -set_version
20353# flags to be left without arguments
20354need_version=unknown
20355
20356case $host_os in
20357aix3*)
cristy99bd5232011-12-07 14:38:20 +000020358 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020359 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20360 shlibpath_var=LIBPATH
20361
20362 # AIX 3 has no versioning support, so we append a major version to the name.
20363 soname_spec='${libname}${release}${shared_ext}$major'
20364 ;;
20365
20366aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020367 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020368 need_lib_prefix=no
20369 need_version=no
20370 hardcode_into_libs=yes
20371 if test "$host_cpu" = ia64; then
20372 # AIX 5 supports IA64
20373 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20374 shlibpath_var=LD_LIBRARY_PATH
20375 else
20376 # With GCC up to 2.95.x, collect2 would create an import file
20377 # for dependence libraries. The import file would start with
20378 # the line `#! .'. This would cause the generated library to
20379 # depend on `.', always an invalid library. This was fixed in
20380 # development snapshots of GCC prior to 3.0.
20381 case $host_os in
20382 aix4 | aix4.[01] | aix4.[01].*)
20383 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20384 echo ' yes '
20385 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20386 :
20387 else
20388 can_build_shared=no
20389 fi
20390 ;;
20391 esac
20392 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20393 # soname into executable. Probably we can add versioning support to
20394 # collect2, so additional links can be useful in future.
20395 if test "$aix_use_runtimelinking" = yes; then
20396 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20397 # instead of lib<name>.a to let people know that these are not
20398 # typical AIX shared libraries.
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20400 else
20401 # We preserve .a as extension for shared libraries through AIX4.2
20402 # and later when we are not doing run time linking.
20403 library_names_spec='${libname}${release}.a $libname.a'
20404 soname_spec='${libname}${release}${shared_ext}$major'
20405 fi
20406 shlibpath_var=LIBPATH
20407 fi
20408 ;;
20409
20410amigaos*)
20411 case $host_cpu in
20412 powerpc)
20413 # Since July 2007 AmigaOS4 officially supports .so libraries.
20414 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20416 ;;
20417 m68k)
20418 library_names_spec='$libname.ixlibrary $libname.a'
20419 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020420 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 +000020421 ;;
20422 esac
20423 ;;
20424
20425beos*)
20426 library_names_spec='${libname}${shared_ext}'
20427 dynamic_linker="$host_os ld.so"
20428 shlibpath_var=LIBRARY_PATH
20429 ;;
20430
20431bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020432 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020433 need_version=no
20434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20435 soname_spec='${libname}${release}${shared_ext}$major'
20436 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20437 shlibpath_var=LD_LIBRARY_PATH
20438 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20439 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20440 # the default ld.so.conf also contains /usr/contrib/lib and
20441 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20442 # libtool to hard-code these into programs
20443 ;;
20444
20445cygwin* | mingw* | pw32* | cegcc*)
20446 version_type=windows
20447 shrext_cmds=".dll"
20448 need_version=no
20449 need_lib_prefix=no
20450
cristyda16f162011-02-19 23:52:17 +000020451 case $GCC,$cc_basename in
20452 yes,*)
20453 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020454 library_names_spec='$libname.dll.a'
20455 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20456 postinstall_cmds='base_file=`basename \${file}`~
20457 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20458 dldir=$destdir/`dirname \$dlpath`~
20459 test -d \$dldir || mkdir -p \$dldir~
20460 $install_prog $dir/$dlname \$dldir/$dlname~
20461 chmod a+x \$dldir/$dlname~
20462 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20463 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20464 fi'
20465 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20466 dlpath=$dir/\$dldll~
20467 $RM \$dlpath'
20468 shlibpath_overrides_runpath=yes
20469
20470 case $host_os in
20471 cygwin*)
20472 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20473 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020474
cristy73bd4a52010-10-05 11:24:23 +000020475 ;;
20476 mingw* | cegcc*)
20477 # MinGW DLLs use traditional 'lib' prefix
20478 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020479 ;;
20480 pw32*)
20481 # pw32 DLLs use 'pw' prefix rather than 'lib'
20482 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20483 ;;
20484 esac
cristyda16f162011-02-19 23:52:17 +000020485 dynamic_linker='Win32 ld.exe'
20486 ;;
20487
20488 *,cl*)
20489 # Native MSVC
20490 libname_spec='$name'
20491 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20492 library_names_spec='${libname}.dll.lib'
20493
20494 case $build_os in
20495 mingw*)
20496 sys_lib_search_path_spec=
20497 lt_save_ifs=$IFS
20498 IFS=';'
20499 for lt_path in $LIB
20500 do
20501 IFS=$lt_save_ifs
20502 # Let DOS variable expansion print the short 8.3 style file name.
20503 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20504 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20505 done
20506 IFS=$lt_save_ifs
20507 # Convert to MSYS style.
20508 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20509 ;;
20510 cygwin*)
20511 # Convert to unix form, then to dos form, then back to unix form
20512 # but this time dos style (no spaces!) so that the unix form looks
20513 # like /cygdrive/c/PROGRA~1:/cygdr...
20514 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20515 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20516 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20517 ;;
20518 *)
20519 sys_lib_search_path_spec="$LIB"
20520 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20521 # It is most probably a Windows format PATH.
20522 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20523 else
20524 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20525 fi
20526 # FIXME: find the short name or the path components, as spaces are
20527 # common. (e.g. "Program Files" -> "PROGRA~1")
20528 ;;
20529 esac
20530
20531 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20532 postinstall_cmds='base_file=`basename \${file}`~
20533 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20534 dldir=$destdir/`dirname \$dlpath`~
20535 test -d \$dldir || mkdir -p \$dldir~
20536 $install_prog $dir/$dlname \$dldir/$dlname'
20537 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20538 dlpath=$dir/\$dldll~
20539 $RM \$dlpath'
20540 shlibpath_overrides_runpath=yes
20541 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020542 ;;
20543
20544 *)
cristyda16f162011-02-19 23:52:17 +000020545 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020546 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020547 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020548 ;;
20549 esac
cristy73bd4a52010-10-05 11:24:23 +000020550 # FIXME: first we should search . and the directory the executable is in
20551 shlibpath_var=PATH
20552 ;;
20553
20554darwin* | rhapsody*)
20555 dynamic_linker="$host_os dyld"
20556 version_type=darwin
20557 need_lib_prefix=no
20558 need_version=no
20559 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20560 soname_spec='${libname}${release}${major}$shared_ext'
20561 shlibpath_overrides_runpath=yes
20562 shlibpath_var=DYLD_LIBRARY_PATH
20563 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20564
20565 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20566 ;;
20567
20568dgux*)
cristy99bd5232011-12-07 14:38:20 +000020569 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020570 need_lib_prefix=no
20571 need_version=no
20572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20573 soname_spec='${libname}${release}${shared_ext}$major'
20574 shlibpath_var=LD_LIBRARY_PATH
20575 ;;
20576
cristy73bd4a52010-10-05 11:24:23 +000020577freebsd* | dragonfly*)
20578 # DragonFly does not have aout. When/if they implement a new
20579 # versioning mechanism, adjust this.
20580 if test -x /usr/bin/objformat; then
20581 objformat=`/usr/bin/objformat`
20582 else
20583 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020584 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020585 *) objformat=elf ;;
20586 esac
20587 fi
20588 version_type=freebsd-$objformat
20589 case $version_type in
20590 freebsd-elf*)
20591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20592 need_version=no
20593 need_lib_prefix=no
20594 ;;
20595 freebsd-*)
20596 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20597 need_version=yes
20598 ;;
20599 esac
20600 shlibpath_var=LD_LIBRARY_PATH
20601 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020602 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020603 shlibpath_overrides_runpath=yes
20604 ;;
20605 freebsd3.[01]* | freebsdelf3.[01]*)
20606 shlibpath_overrides_runpath=yes
20607 hardcode_into_libs=yes
20608 ;;
20609 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20610 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20611 shlibpath_overrides_runpath=no
20612 hardcode_into_libs=yes
20613 ;;
20614 *) # from 4.6 on, and DragonFly
20615 shlibpath_overrides_runpath=yes
20616 hardcode_into_libs=yes
20617 ;;
20618 esac
20619 ;;
20620
20621gnu*)
cristy99bd5232011-12-07 14:38:20 +000020622 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020623 need_lib_prefix=no
20624 need_version=no
20625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20626 soname_spec='${libname}${release}${shared_ext}$major'
20627 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020628 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020629 hardcode_into_libs=yes
20630 ;;
20631
cristy0c60a692010-11-04 01:09:47 +000020632haiku*)
cristy99bd5232011-12-07 14:38:20 +000020633 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020634 need_lib_prefix=no
20635 need_version=no
20636 dynamic_linker="$host_os runtime_loader"
20637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20638 soname_spec='${libname}${release}${shared_ext}$major'
20639 shlibpath_var=LIBRARY_PATH
20640 shlibpath_overrides_runpath=yes
20641 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20642 hardcode_into_libs=yes
20643 ;;
20644
cristy73bd4a52010-10-05 11:24:23 +000020645hpux9* | hpux10* | hpux11*)
20646 # Give a soname corresponding to the major version so that dld.sl refuses to
20647 # link against other versions.
20648 version_type=sunos
20649 need_lib_prefix=no
20650 need_version=no
20651 case $host_cpu in
20652 ia64*)
20653 shrext_cmds='.so'
20654 hardcode_into_libs=yes
20655 dynamic_linker="$host_os dld.so"
20656 shlibpath_var=LD_LIBRARY_PATH
20657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20659 soname_spec='${libname}${release}${shared_ext}$major'
20660 if test "X$HPUX_IA64_MODE" = X32; then
20661 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20662 else
20663 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20664 fi
20665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20666 ;;
20667 hppa*64*)
20668 shrext_cmds='.sl'
20669 hardcode_into_libs=yes
20670 dynamic_linker="$host_os dld.sl"
20671 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20672 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20674 soname_spec='${libname}${release}${shared_ext}$major'
20675 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20676 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20677 ;;
20678 *)
20679 shrext_cmds='.sl'
20680 dynamic_linker="$host_os dld.sl"
20681 shlibpath_var=SHLIB_PATH
20682 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20684 soname_spec='${libname}${release}${shared_ext}$major'
20685 ;;
20686 esac
cristy0c60a692010-11-04 01:09:47 +000020687 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020688 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020689 # or fails outright, so override atomically:
20690 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020691 ;;
20692
20693interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020694 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020695 need_lib_prefix=no
20696 need_version=no
20697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20698 soname_spec='${libname}${release}${shared_ext}$major'
20699 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20700 shlibpath_var=LD_LIBRARY_PATH
20701 shlibpath_overrides_runpath=no
20702 hardcode_into_libs=yes
20703 ;;
20704
20705irix5* | irix6* | nonstopux*)
20706 case $host_os in
20707 nonstopux*) version_type=nonstopux ;;
20708 *)
20709 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020710 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020711 else
20712 version_type=irix
20713 fi ;;
20714 esac
20715 need_lib_prefix=no
20716 need_version=no
20717 soname_spec='${libname}${release}${shared_ext}$major'
20718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20719 case $host_os in
20720 irix5* | nonstopux*)
20721 libsuff= shlibsuff=
20722 ;;
20723 *)
20724 case $LD in # libtool.m4 will add one of these switches to LD
20725 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20726 libsuff= shlibsuff= libmagic=32-bit;;
20727 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20728 libsuff=32 shlibsuff=N32 libmagic=N32;;
20729 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20730 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20731 *) libsuff= shlibsuff= libmagic=never-match;;
20732 esac
20733 ;;
20734 esac
20735 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20736 shlibpath_overrides_runpath=no
20737 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20738 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20739 hardcode_into_libs=yes
20740 ;;
20741
20742# No shared lib support for Linux oldld, aout, or coff.
20743linux*oldld* | linux*aout* | linux*coff*)
20744 dynamic_linker=no
20745 ;;
20746
cristy99bd5232011-12-07 14:38:20 +000020747# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020748linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020749 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020750 need_lib_prefix=no
20751 need_version=no
20752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20753 soname_spec='${libname}${release}${shared_ext}$major'
20754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20755 shlibpath_var=LD_LIBRARY_PATH
20756 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020757
cristy73bd4a52010-10-05 11:24:23 +000020758 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020759 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020760 $as_echo_n "(cached) " >&6
20761else
20762 lt_cv_shlibpath_overrides_runpath=no
20763 save_LDFLAGS=$LDFLAGS
20764 save_libdir=$libdir
20765 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20766 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020768/* end confdefs.h. */
20769
20770int
20771main ()
20772{
20773
20774 ;
20775 return 0;
20776}
20777_ACEOF
20778if ac_fn_cxx_try_link "$LINENO"; then :
20779 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020780 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020781fi
20782fi
20783rm -f core conftest.err conftest.$ac_objext \
20784 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020785 LDFLAGS=$save_LDFLAGS
20786 libdir=$save_libdir
20787
20788fi
20789
20790 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020791
20792 # This implies no fast_install, which is unacceptable.
20793 # Some rework will be needed to allow for fast_install
20794 # before this can be enabled.
20795 hardcode_into_libs=yes
20796
20797 # Add ABI-specific directories to the system library path.
20798 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20799
20800 # Append ld.so.conf contents to the search path
20801 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020802 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 +000020803 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020804
cristy73bd4a52010-10-05 11:24:23 +000020805 fi
20806
20807 # We used to test for /lib/ld.so.1 and disable shared libraries on
20808 # powerpc, because MkLinux only supported shared libraries with the
20809 # GNU dynamic linker. Since this was broken with cross compilers,
20810 # most powerpc-linux boxes support dynamic linking these days and
20811 # people can always --disable-shared, the test was removed, and we
20812 # assume the GNU/Linux dynamic linker is in use.
20813 dynamic_linker='GNU/Linux ld.so'
20814 ;;
20815
20816netbsd*)
20817 version_type=sunos
20818 need_lib_prefix=no
20819 need_version=no
20820 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20823 dynamic_linker='NetBSD (a.out) ld.so'
20824 else
20825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20826 soname_spec='${libname}${release}${shared_ext}$major'
20827 dynamic_linker='NetBSD ld.elf_so'
20828 fi
20829 shlibpath_var=LD_LIBRARY_PATH
20830 shlibpath_overrides_runpath=yes
20831 hardcode_into_libs=yes
20832 ;;
20833
20834newsos6)
cristy99bd5232011-12-07 14:38:20 +000020835 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20837 shlibpath_var=LD_LIBRARY_PATH
20838 shlibpath_overrides_runpath=yes
20839 ;;
20840
20841*nto* | *qnx*)
20842 version_type=qnx
20843 need_lib_prefix=no
20844 need_version=no
20845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20846 soname_spec='${libname}${release}${shared_ext}$major'
20847 shlibpath_var=LD_LIBRARY_PATH
20848 shlibpath_overrides_runpath=no
20849 hardcode_into_libs=yes
20850 dynamic_linker='ldqnx.so'
20851 ;;
20852
20853openbsd*)
20854 version_type=sunos
20855 sys_lib_dlsearch_path_spec="/usr/lib"
20856 need_lib_prefix=no
20857 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20858 case $host_os in
20859 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20860 *) need_version=no ;;
20861 esac
20862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20864 shlibpath_var=LD_LIBRARY_PATH
20865 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20866 case $host_os in
20867 openbsd2.[89] | openbsd2.[89].*)
20868 shlibpath_overrides_runpath=no
20869 ;;
20870 *)
20871 shlibpath_overrides_runpath=yes
20872 ;;
20873 esac
20874 else
20875 shlibpath_overrides_runpath=yes
20876 fi
20877 ;;
20878
20879os2*)
20880 libname_spec='$name'
20881 shrext_cmds=".dll"
20882 need_lib_prefix=no
20883 library_names_spec='$libname${shared_ext} $libname.a'
20884 dynamic_linker='OS/2 ld.exe'
20885 shlibpath_var=LIBPATH
20886 ;;
20887
20888osf3* | osf4* | osf5*)
20889 version_type=osf
20890 need_lib_prefix=no
20891 need_version=no
20892 soname_spec='${libname}${release}${shared_ext}$major'
20893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20894 shlibpath_var=LD_LIBRARY_PATH
20895 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20896 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20897 ;;
20898
20899rdos*)
20900 dynamic_linker=no
20901 ;;
20902
20903solaris*)
cristy99bd5232011-12-07 14:38:20 +000020904 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020905 need_lib_prefix=no
20906 need_version=no
20907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20908 soname_spec='${libname}${release}${shared_ext}$major'
20909 shlibpath_var=LD_LIBRARY_PATH
20910 shlibpath_overrides_runpath=yes
20911 hardcode_into_libs=yes
20912 # ldd complains unless libraries are executable
20913 postinstall_cmds='chmod +x $lib'
20914 ;;
20915
20916sunos4*)
20917 version_type=sunos
20918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20919 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20920 shlibpath_var=LD_LIBRARY_PATH
20921 shlibpath_overrides_runpath=yes
20922 if test "$with_gnu_ld" = yes; then
20923 need_lib_prefix=no
20924 fi
20925 need_version=yes
20926 ;;
20927
20928sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020929 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20931 soname_spec='${libname}${release}${shared_ext}$major'
20932 shlibpath_var=LD_LIBRARY_PATH
20933 case $host_vendor in
20934 sni)
20935 shlibpath_overrides_runpath=no
20936 need_lib_prefix=no
20937 runpath_var=LD_RUN_PATH
20938 ;;
20939 siemens)
20940 need_lib_prefix=no
20941 ;;
20942 motorola)
20943 need_lib_prefix=no
20944 need_version=no
20945 shlibpath_overrides_runpath=no
20946 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20947 ;;
20948 esac
20949 ;;
20950
20951sysv4*MP*)
20952 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020953 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020954 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20955 soname_spec='$libname${shared_ext}.$major'
20956 shlibpath_var=LD_LIBRARY_PATH
20957 fi
20958 ;;
20959
20960sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20961 version_type=freebsd-elf
20962 need_lib_prefix=no
20963 need_version=no
20964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20965 soname_spec='${libname}${release}${shared_ext}$major'
20966 shlibpath_var=LD_LIBRARY_PATH
20967 shlibpath_overrides_runpath=yes
20968 hardcode_into_libs=yes
20969 if test "$with_gnu_ld" = yes; then
20970 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20971 else
20972 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20973 case $host_os in
20974 sco3.2v5*)
20975 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20976 ;;
20977 esac
20978 fi
20979 sys_lib_dlsearch_path_spec='/usr/lib'
20980 ;;
20981
20982tpf*)
20983 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020984 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020985 need_lib_prefix=no
20986 need_version=no
20987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20988 shlibpath_var=LD_LIBRARY_PATH
20989 shlibpath_overrides_runpath=no
20990 hardcode_into_libs=yes
20991 ;;
20992
20993uts4*)
cristy99bd5232011-12-07 14:38:20 +000020994 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20996 soname_spec='${libname}${release}${shared_ext}$major'
20997 shlibpath_var=LD_LIBRARY_PATH
20998 ;;
20999
21000*)
21001 dynamic_linker=no
21002 ;;
21003esac
21004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21005$as_echo "$dynamic_linker" >&6; }
21006test "$dynamic_linker" = no && can_build_shared=no
21007
21008variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21009if test "$GCC" = yes; then
21010 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21011fi
21012
21013if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21014 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21015fi
21016if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21017 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21018fi
21019
21020
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
cristy0c60a692010-11-04 01:09:47 +000021055
21056
cristy73bd4a52010-10-05 11:24:23 +000021057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21058$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21059hardcode_action_CXX=
21060if test -n "$hardcode_libdir_flag_spec_CXX" ||
21061 test -n "$runpath_var_CXX" ||
21062 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21063
21064 # We can hardcode non-existent directories.
21065 if test "$hardcode_direct_CXX" != no &&
21066 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21067 # have to relink, otherwise we might link with an installed library
21068 # when we should be linking with a yet-to-be-installed one
21069 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21070 test "$hardcode_minus_L_CXX" != no; then
21071 # Linking always hardcodes the temporary library directory.
21072 hardcode_action_CXX=relink
21073 else
21074 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21075 hardcode_action_CXX=immediate
21076 fi
21077else
21078 # We cannot hardcode anything, or else we can only hardcode existing
21079 # directories.
21080 hardcode_action_CXX=unsupported
21081fi
21082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21083$as_echo "$hardcode_action_CXX" >&6; }
21084
21085if test "$hardcode_action_CXX" = relink ||
21086 test "$inherit_rpath_CXX" = yes; then
21087 # Fast installation is not supported
21088 enable_fast_install=no
21089elif test "$shlibpath_overrides_runpath" = yes ||
21090 test "$enable_shared" = no; then
21091 # Fast installation is not necessary
21092 enable_fast_install=needless
21093fi
21094
21095
21096
21097
21098
21099
21100
21101 fi # test -n "$compiler"
21102
21103 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021104 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021105 LDCXX=$LD
21106 LD=$lt_save_LD
21107 GCC=$lt_save_GCC
21108 with_gnu_ld=$lt_save_with_gnu_ld
21109 lt_cv_path_LDCXX=$lt_cv_path_LD
21110 lt_cv_path_LD=$lt_save_path_LD
21111 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21112 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21113fi # test "$_lt_caught_CXX_error" != yes
21114
21115ac_ext=c
21116ac_cpp='$CPP $CPPFLAGS'
21117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21119ac_compiler_gnu=$ac_cv_c_compiler_gnu
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
cristy99bd5232011-12-07 14:38:20 +000021133
21134
cristy73bd4a52010-10-05 11:24:23 +000021135 ac_config_commands="$ac_config_commands libtool"
21136
21137
21138
21139
21140# Only expand once:
21141
21142
21143
cristy3ed852e2009-09-05 21:47:34 +000021144
21145
cristy3ed852e2009-09-05 21:47:34 +000021146# Check to see if building shared libraries
21147libtool_build_shared_libs='no'
21148if test "$enable_shared" = 'yes'; then
21149 libtool_build_shared_libs='yes'
21150fi
21151
21152# Check to see if building static libraries
21153libtool_build_static_libs='no'
21154if test "$enable_static" = 'yes'; then
21155 libtool_build_static_libs='yes'
21156fi
21157
cristy73bd4a52010-10-05 11:24:23 +000021158 if test "${libtool_build_shared_libs}" = 'yes'; then
21159 WITH_SHARED_LIBS_TRUE=
21160 WITH_SHARED_LIBS_FALSE='#'
21161else
21162 WITH_SHARED_LIBS_TRUE='#'
21163 WITH_SHARED_LIBS_FALSE=
21164fi
21165
cristy3ed852e2009-09-05 21:47:34 +000021166#
21167# Enable support for building loadable modules
21168#
cristyaf4cbf32012-10-16 23:47:41 +000021169build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021170
21171# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021172if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021173 withval=$with_modules; with_modules=$withval
21174else
cristy5a1cefd2010-01-06 20:42:35 +000021175 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021176fi
21177
21178
21179# Only allow building loadable modules if we are building shared libraries
21180if test "$with_modules" != 'no' ; then
21181 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021182 { $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 +000021183$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021184 build_modules='no'
21185 else
21186 build_modules='yes'
21187 fi
cristy3ed852e2009-09-05 21:47:34 +000021188fi
cristyc6722092012-10-14 00:19:31 +000021189if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021190
cristy8b350f62009-11-15 23:12:43 +000021191$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021192
cristyfa161182012-12-19 15:45:28 +000021193 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021194fi
cristyc6722092012-10-14 00:19:31 +000021195 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021196 WITH_MODULES_TRUE=
21197 WITH_MODULES_FALSE='#'
21198else
21199 WITH_MODULES_TRUE='#'
21200 WITH_MODULES_FALSE=
21201fi
21202
cristy3ed852e2009-09-05 21:47:34 +000021203
cristy3ed852e2009-09-05 21:47:34 +000021204# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021205# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021206# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021207if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021208 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21209else
21210 enable_delegate_build='no'
21211fi
21212
21213
21214# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021215if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021216 enableval=$enable_deprecated; enable_deprecated=$enableval
21217else
21218 enable_deprecated='no'
21219fi
21220
21221
21222if test "$enable_deprecated" = 'yes'; then
21223
cristy8b350f62009-11-15 23:12:43 +000021224$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021225
21226else
21227 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21228fi
21229
21230# Build a version of ImageMagick which operates uninstalled.
21231# Used to build distributions located via MAGICK_HOME / executable path
21232# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021233if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021234 enableval=$enable_installed; enable_installed=$enableval
21235else
21236 enable_installed='yes'
21237fi
21238
21239
21240if test "$enable_installed" = 'yes'; then
21241
cristy8b350f62009-11-15 23:12:43 +000021242$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021243
21244else
21245 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21246fi
21247
21248# Permit enciphering and deciphering image pixels.
21249# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021250if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021251 enableval=$enable_cipher; enable_cipher=$enableval
21252else
21253 enable_cipher='yes'
21254fi
21255
21256
21257if test "$enable_cipher" = 'yes'; then
21258
cristy8b350f62009-11-15 23:12:43 +000021259$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021260
21261fi
21262
cristy6e3607c2011-09-13 13:59:17 +000021263# Build a zero-configuration version of ImageMagick.
21264# Check whether --enable-zero-configuration was given.
21265if test "${enable_zero_configuration+set}" = set; then :
21266 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021267else
cristy6e3607c2011-09-13 13:59:17 +000021268 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021269fi
21270
21271
cristy6e3607c2011-09-13 13:59:17 +000021272if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021273
cristy6e3607c2011-09-13 13:59:17 +000021274$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021275
cristy81af5702011-09-13 14:20:58 +000021276 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021277fi
21278
21279# Build a high dynamic range version of ImageMagick.
21280# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021281if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021282 enableval=$enable_hdri; enable_hdri=$enableval
21283else
cristy191c0b72012-08-12 16:29:52 +000021284 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021285fi
21286
21287
21288MAGICK_HDRI=""
21289if test "$enable_hdri" = 'yes'; then
21290 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021291 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021292 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021293else
21294 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021295fi
21296
cristye52f12f2012-12-31 15:32:36 +000021297cat >>confdefs.h <<_ACEOF
21298#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21299_ACEOF
21300
21301MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21302CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021303CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021304
cristy3ed852e2009-09-05 21:47:34 +000021305# Build a version of ImageMagick with assert statements.
21306# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021307if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021308 enableval=$enable_assert; enable_assert=$enableval
21309else
21310 enable_assert='yes'
21311fi
21312
21313
21314if test "$enable_assert" = 'no'; then
21315
cristy8b350f62009-11-15 23:12:43 +000021316$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021317
21318fi
21319
cristya448bd22011-10-14 12:38:13 +000021320# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021321
21322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21323$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21324 # Check whether --enable-maintainer-mode was given.
21325if test "${enable_maintainer_mode+set}" = set; then :
21326 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21327else
21328 USE_MAINTAINER_MODE=no
21329fi
21330
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21332$as_echo "$USE_MAINTAINER_MODE" >&6; }
21333 if test $USE_MAINTAINER_MODE = yes; then
21334 MAINTAINER_MODE_TRUE=
21335 MAINTAINER_MODE_FALSE='#'
21336else
21337 MAINTAINER_MODE_TRUE='#'
21338 MAINTAINER_MODE_FALSE=
21339fi
21340
21341 MAINT=$MAINTAINER_MODE_TRUE
21342
21343
cristy3ed852e2009-09-05 21:47:34 +000021344
cristy944e51f2013-04-16 18:45:02 +000021345# Enable hugepages support
21346# Check whether --enable-hugepages was given.
21347if test "${enable_hugepages+set}" = set; then :
21348 enableval=$enable_hugepages; enable_hugepages=$enableval
21349else
21350 enable_hugepages='no'
21351fi
21352
21353
cristy3ed852e2009-09-05 21:47:34 +000021354# Enable ccmalloc memory debugging support
21355# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021356if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021357 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21358else
21359 enable_ccmalloc='no'
21360fi
21361
21362
21363# Enable Electric Fence memory debugging support
21364# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021365if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021366 enableval=$enable_efence; enable_efence=$enableval
21367else
21368 enable_efence='no'
21369fi
21370
21371
21372# Enable prof-based profiling support
21373# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021374if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021375 enableval=$enable_prof; enable_prof=$enableval
21376else
21377 enable_prof='no'
21378fi
21379
21380
21381# Enable gprof-based profiling support
21382# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021383if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021384 enableval=$enable_gprof; enable_gprof=$enableval
21385else
21386 enable_gprof='no'
21387fi
21388
21389
21390# Enable gcov-based profiling support
21391# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021392if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021393 enableval=$enable_gcov; enable_gcov=$enableval
21394else
21395 enable_gcov='no'
21396fi
21397
21398
21399enable_profiling='no'
21400if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21401 enable_profiling='yes'
21402 if test "$libtool_build_shared_libs" = 'yes'; then
21403 echo "Warning: Can not profile code using shared libraries"
21404 fi
21405fi
21406
21407# Magick API method prefix
21408
21409# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021410if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021411 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021412else
cristyfc3d0222012-02-07 15:05:57 +000021413 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021414fi
21415
21416
cristyfc3d0222012-02-07 15:05:57 +000021417if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021418
21419cat >>confdefs.h <<_ACEOF
21420#define NAMESPACE_PREFIX $with_method_prefix
21421_ACEOF
21422
cristyfc3d0222012-02-07 15:05:57 +000021423 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021424fi
21425
cristy71d8c202012-03-20 17:05:01 +000021426# Enable legacy support (default no)
21427# Check whether --enable-legacy-support was given.
21428if test "${enable_legacy_support+set}" = set; then :
21429 enableval=$enable_legacy_support; with_legacy_support=$enableval
21430else
21431 with_legacy_support='no'
21432fi
21433
21434 if test "$with_legacy_support" != 'no'; then
21435 LEGACY_SUPPORT_TRUE=
21436 LEGACY_SUPPORT_FALSE='#'
21437else
21438 LEGACY_SUPPORT_TRUE='#'
21439 LEGACY_SUPPORT_FALSE=
21440fi
21441
21442
cristy3ed852e2009-09-05 21:47:34 +000021443# Number of bits in a Quantum
21444
21445# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021446if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021447 withval=$with_quantum_depth; with_quantum_depth=$withval
21448else
21449 with_quantum_depth=16
21450fi
21451
21452
21453if test "$with_quantum_depth" != '8'; then
21454 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21455fi
21456
21457case "${with_quantum_depth}" in
21458 8 ) ;;
21459 16 ) ;;
21460 32 ) ;;
21461 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021462 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021463esac
21464QUANTUM_DEPTH="$with_quantum_depth"
21465
21466cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021467#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021468_ACEOF
21469
cristya371edf2013-02-06 13:42:17 +000021470MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021471CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021472CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021473
cristy01ff9f32012-12-01 18:15:29 +000021474# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021475MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021476if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021477 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021478fi
cristy01ff9f32012-12-01 18:15:29 +000021479
21480
cristy3ed852e2009-09-05 21:47:34 +000021481# Set pixel cache threshold
21482
21483# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021484if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021485 withval=$with_cache; with_cache=$withval
21486else
21487 with_cache=''
21488fi
21489
21490
21491if test "$with_cache" != ''; then
21492
21493cat >>confdefs.h <<_ACEOF
21494#define PixelCacheThreshold $with_cache
21495_ACEOF
21496
21497 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21498fi
21499
21500# Disable/Enable support for full delegate paths
21501
21502# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021503if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021504 withval=$with_frozenpaths; with_frozenpaths=$withval
21505else
21506 with_frozenpaths='no'
21507fi
21508
21509
21510# Enable build/install of Magick++
21511
21512# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021513if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021514 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21515else
21516 with_magick_plus_plus='yes'
21517fi
21518
21519
cristy3a75f062012-09-08 23:29:40 +000021520# Encode the this name into the shared library.
21521
21522# Check whether --with-package-release-name was given.
21523if test "${with_package_release_name+set}" = set; then :
21524 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21525fi
21526
21527
21528
cristy3ed852e2009-09-05 21:47:34 +000021529# Disable build/install of PerlMagick.
21530
21531# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021532if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021533 withval=$with_perl; with_perl=$withval
21534else
cristyb5f4e2f2010-04-25 00:49:11 +000021535 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021536fi
21537
21538
21539# Options to pass when configuring PerlMagick
21540
21541# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021542if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021543 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021544fi
21545
21546
cristy3ed852e2009-09-05 21:47:34 +000021547
21548# Enable umem, object-caching memory allocation library.
21549
21550# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021551if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021552 withval=$with_umem; with_umem=$withval
21553else
21554 with_umem='no'
21555fi
21556
21557if test "$with_umem" != 'yes' ; then
21558 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21559fi
21560
21561#
21562# Specify path to shared libstdc++ if not in normal location
21563#
21564
21565# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021566if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021567 withval=$with_libstdc; with_libstdc=$withval
21568else
21569 with_libstdc=''
21570fi
21571
21572
21573if test "$with_libstdc" != ''; then
21574 if test -d "$with_libstdc"; then
21575 LIBSTDCLDFLAGS="-L$with_libstdc"
21576 fi
21577fi
21578
21579
21580# Does gcc required -traditional?
21581if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021583$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021584if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021585 $as_echo_n "(cached) " >&6
21586else
21587 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021589/* end confdefs.h. */
21590#include <sgtty.h>
21591Autoconf TIOCGETP
21592_ACEOF
21593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021594 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021595 ac_cv_prog_gcc_traditional=yes
21596else
21597 ac_cv_prog_gcc_traditional=no
21598fi
21599rm -f conftest*
21600
21601
21602 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021604/* end confdefs.h. */
21605#include <termio.h>
21606Autoconf TCGETA
21607_ACEOF
21608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021609 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021610 ac_cv_prog_gcc_traditional=yes
21611fi
21612rm -f conftest*
21613
21614 fi
21615fi
cristy8b350f62009-11-15 23:12:43 +000021616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021617$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21618 if test $ac_cv_prog_gcc_traditional = yes; then
21619 CC="$CC -traditional"
21620 fi
21621fi
21622
21623
21624########
21625#
21626# Set defines required to build DLLs and modules using MinGW
21627#
21628########
21629# These options are set for multi-thread DLL module build
21630# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21631# module: _DLL
21632# executable/Magick++: _DLL _MAGICKMOD_
21633MODULE_EXTRA_CPPFLAGS=''
21634LIBRARY_EXTRA_CPPFLAGS=''
21635if test "${native_win32_build}" = 'yes'; then
21636 if test "${libtool_build_shared_libs}" = 'yes'; then
21637 CPPFLAGS="$CPPFLAGS -D_DLL"
21638 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21639 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21640 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021641 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021642 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21643 else
21644 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21645 fi
21646 else
21647 CPPFLAGS="$CPPFLAGS -D_LIB"
21648 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21649 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21650 fi
21651 if test "$with_threads" = 'yes'; then
21652 CPPFLAGS="$CPPFLAGS -D_MT"
21653 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21654 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21655 fi
21656fi
21657
21658
21659
21660# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021662$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021663if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021664 $as_echo_n "(cached) " >&6
21665else
cristy8b350f62009-11-15 23:12:43 +000021666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021667/* end confdefs.h. */
21668#include <stdlib.h>
21669#include <stdarg.h>
21670#include <string.h>
21671#include <float.h>
21672
21673int
21674main ()
21675{
21676
21677 ;
21678 return 0;
21679}
21680_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021681if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021682 ac_cv_header_stdc=yes
21683else
cristy8b350f62009-11-15 23:12:43 +000021684 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021685fi
cristy3ed852e2009-09-05 21:47:34 +000021686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21687
21688if test $ac_cv_header_stdc = yes; then
21689 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021691/* end confdefs.h. */
21692#include <string.h>
21693
21694_ACEOF
21695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021696 $EGREP "memchr" >/dev/null 2>&1; then :
21697
cristy3ed852e2009-09-05 21:47:34 +000021698else
21699 ac_cv_header_stdc=no
21700fi
21701rm -f conftest*
21702
21703fi
21704
21705if test $ac_cv_header_stdc = yes; then
21706 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021708/* end confdefs.h. */
21709#include <stdlib.h>
21710
21711_ACEOF
21712if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021713 $EGREP "free" >/dev/null 2>&1; then :
21714
cristy3ed852e2009-09-05 21:47:34 +000021715else
21716 ac_cv_header_stdc=no
21717fi
21718rm -f conftest*
21719
21720fi
21721
21722if test $ac_cv_header_stdc = yes; then
21723 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021724 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021725 :
21726else
cristy8b350f62009-11-15 23:12:43 +000021727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021728/* end confdefs.h. */
21729#include <ctype.h>
21730#include <stdlib.h>
21731#if ((' ' & 0x0FF) == 0x020)
21732# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21733# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21734#else
21735# define ISLOWER(c) \
21736 (('a' <= (c) && (c) <= 'i') \
21737 || ('j' <= (c) && (c) <= 'r') \
21738 || ('s' <= (c) && (c) <= 'z'))
21739# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21740#endif
21741
21742#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21743int
21744main ()
21745{
21746 int i;
21747 for (i = 0; i < 256; i++)
21748 if (XOR (islower (i), ISLOWER (i))
21749 || toupper (i) != TOUPPER (i))
21750 return 2;
21751 return 0;
21752}
21753_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021754if ac_fn_c_try_run "$LINENO"; then :
21755
cristy3ed852e2009-09-05 21:47:34 +000021756else
cristy8b350f62009-11-15 23:12:43 +000021757 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021758fi
cristy8b350f62009-11-15 23:12:43 +000021759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21760 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021761fi
21762
cristy3ed852e2009-09-05 21:47:34 +000021763fi
21764fi
cristy8b350f62009-11-15 23:12:43 +000021765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021766$as_echo "$ac_cv_header_stdc" >&6; }
21767if test $ac_cv_header_stdc = yes; then
21768
cristy8b350f62009-11-15 23:12:43 +000021769$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021770
21771fi
21772
21773if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021774 { $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 +000021775 header files. Compilation cannot proceed. Please install the ANSI C
21776 headers and rerun this script." >&5
21777$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21778 header files. Compilation cannot proceed. Please install the ANSI C
21779 headers and rerun this script." >&2;};
21780fi
cristya0b81c32010-01-22 02:54:33 +000021781
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21783$as_echo_n "checking whether to enable assertions... " >&6; }
21784 # Check whether --enable-assert was given.
21785if test "${enable_assert+set}" = set; then :
21786 enableval=$enable_assert; ac_enable_assert=$enableval
21787 if test "x$enableval" = xno; then :
21788
21789$as_echo "#define NDEBUG 1" >>confdefs.h
21790
21791elif test "x$enableval" != xyes; then :
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21793$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21794 ac_enable_assert=yes
21795fi
21796else
21797 ac_enable_assert=yes
21798fi
21799
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21801$as_echo "$ac_enable_assert" >&6; }
21802
cristy3ed852e2009-09-05 21:47:34 +000021803ac_header_dirent=no
21804for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21805 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021807$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021808if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021809 $as_echo_n "(cached) " >&6
21810else
cristy8b350f62009-11-15 23:12:43 +000021811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021812/* end confdefs.h. */
21813#include <sys/types.h>
21814#include <$ac_hdr>
21815
21816int
21817main ()
21818{
21819if ((DIR *) 0)
21820return 0;
21821 ;
21822 return 0;
21823}
21824_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021825if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021826 eval "$as_ac_Header=yes"
21827else
cristy8b350f62009-11-15 23:12:43 +000021828 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021829fi
cristy3ed852e2009-09-05 21:47:34 +000021830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21831fi
cristy8b350f62009-11-15 23:12:43 +000021832eval ac_res=\$$as_ac_Header
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021834$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021835if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021836 cat >>confdefs.h <<_ACEOF
21837#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21838_ACEOF
21839
21840ac_header_dirent=$ac_hdr; break
21841fi
21842
21843done
21844# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21845if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021847$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021848if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021849 $as_echo_n "(cached) " >&6
21850else
21851 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021853/* end confdefs.h. */
21854
21855/* Override any GCC internal prototype to avoid an error.
21856 Use char because int might match the return type of a GCC
21857 builtin and then its argument prototype would still apply. */
21858#ifdef __cplusplus
21859extern "C"
21860#endif
21861char opendir ();
21862int
21863main ()
21864{
21865return opendir ();
21866 ;
21867 return 0;
21868}
21869_ACEOF
21870for ac_lib in '' dir; do
21871 if test -z "$ac_lib"; then
21872 ac_res="none required"
21873 else
21874 ac_res=-l$ac_lib
21875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21876 fi
cristy8b350f62009-11-15 23:12:43 +000021877 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021878 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021879fi
cristy8b350f62009-11-15 23:12:43 +000021880rm -f core conftest.err conftest.$ac_objext \
21881 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021882 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021883 break
21884fi
21885done
cristyda16f162011-02-19 23:52:17 +000021886if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021887
cristy3ed852e2009-09-05 21:47:34 +000021888else
21889 ac_cv_search_opendir=no
21890fi
21891rm conftest.$ac_ext
21892LIBS=$ac_func_search_save_LIBS
21893fi
cristy8b350f62009-11-15 23:12:43 +000021894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021895$as_echo "$ac_cv_search_opendir" >&6; }
21896ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021897if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21899
21900fi
21901
21902else
cristy8b350f62009-11-15 23:12:43 +000021903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021904$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021905if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021906 $as_echo_n "(cached) " >&6
21907else
21908 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021910/* end confdefs.h. */
21911
21912/* Override any GCC internal prototype to avoid an error.
21913 Use char because int might match the return type of a GCC
21914 builtin and then its argument prototype would still apply. */
21915#ifdef __cplusplus
21916extern "C"
21917#endif
21918char opendir ();
21919int
21920main ()
21921{
21922return opendir ();
21923 ;
21924 return 0;
21925}
21926_ACEOF
21927for ac_lib in '' x; do
21928 if test -z "$ac_lib"; then
21929 ac_res="none required"
21930 else
21931 ac_res=-l$ac_lib
21932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21933 fi
cristy8b350f62009-11-15 23:12:43 +000021934 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021935 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021936fi
cristy8b350f62009-11-15 23:12:43 +000021937rm -f core conftest.err conftest.$ac_objext \
21938 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021939 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021940 break
21941fi
21942done
cristyda16f162011-02-19 23:52:17 +000021943if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021944
cristy3ed852e2009-09-05 21:47:34 +000021945else
21946 ac_cv_search_opendir=no
21947fi
21948rm conftest.$ac_ext
21949LIBS=$ac_func_search_save_LIBS
21950fi
cristy8b350f62009-11-15 23:12:43 +000021951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021952$as_echo "$ac_cv_search_opendir" >&6; }
21953ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021954if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21956
21957fi
21958
21959fi
21960
21961
21962# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021963for 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 +000021964do :
21965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21966ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021967if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021968 cat >>confdefs.h <<_ACEOF
21969#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21970_ACEOF
21971
21972fi
21973
21974done
21975
21976
21977########
21978#
21979# Checks for typedefs, structures, and compiler characteristics.
21980#
21981########
21982
cristy8b350f62009-11-15 23:12:43 +000021983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021984$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021985if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021986 $as_echo_n "(cached) " >&6
21987else
cristy8b350f62009-11-15 23:12:43 +000021988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021989/* end confdefs.h. */
21990
cristy14fefe52012-05-21 00:59:18 +000021991 #include <stdbool.h>
21992 #ifndef bool
21993 "error: bool is not defined"
21994 #endif
21995 #ifndef false
21996 "error: false is not defined"
21997 #endif
21998 #if false
21999 "error: false is not 0"
22000 #endif
22001 #ifndef true
22002 "error: true is not defined"
22003 #endif
22004 #if true != 1
22005 "error: true is not 1"
22006 #endif
22007 #ifndef __bool_true_false_are_defined
22008 "error: __bool_true_false_are_defined is not defined"
22009 #endif
cristy3ed852e2009-09-05 21:47:34 +000022010
cristy14fefe52012-05-21 00:59:18 +000022011 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022012
cristy14fefe52012-05-21 00:59:18 +000022013 char a[true == 1 ? 1 : -1];
22014 char b[false == 0 ? 1 : -1];
22015 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22016 char d[(bool) 0.5 == true ? 1 : -1];
22017 /* See body of main program for 'e'. */
22018 char f[(_Bool) 0.0 == false ? 1 : -1];
22019 char g[true];
22020 char h[sizeof (_Bool)];
22021 char i[sizeof s.t];
22022 enum { j = false, k = true, l = false * true, m = true * 256 };
22023 /* The following fails for
22024 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22025 _Bool n[m];
22026 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22027 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22028 /* Catch a bug in an HP-UX C compiler. See
22029 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22030 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22031 */
22032 _Bool q = true;
22033 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022034
22035int
22036main ()
22037{
22038
cristy14fefe52012-05-21 00:59:18 +000022039 bool e = &s;
22040 *pq |= q;
22041 *pq |= ! q;
22042 /* Refer to every declared value, to avoid compiler optimizations. */
22043 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22044 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022045
22046 ;
22047 return 0;
22048}
22049_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022050if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022051 ac_cv_header_stdbool_h=yes
22052else
cristy8b350f62009-11-15 23:12:43 +000022053 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022054fi
cristy3ed852e2009-09-05 21:47:34 +000022055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22056fi
cristy8b350f62009-11-15 23:12:43 +000022057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022058$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022059 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022060if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022061
22062cat >>confdefs.h <<_ACEOF
22063#define HAVE__BOOL 1
22064_ACEOF
22065
22066
22067fi
22068
cristy14fefe52012-05-21 00:59:18 +000022069
cristy3ed852e2009-09-05 21:47:34 +000022070if test $ac_cv_header_stdbool_h = yes; then
22071
cristy8b350f62009-11-15 23:12:43 +000022072$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022073
22074fi
22075
cristy8b350f62009-11-15 23:12:43 +000022076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022077$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022078if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022079 $as_echo_n "(cached) " >&6
22080else
cristy8b350f62009-11-15 23:12:43 +000022081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022082/* end confdefs.h. */
22083
22084int
22085main ()
22086{
22087
22088volatile int x;
22089int * volatile y = (int *) 0;
22090return !x && !y;
22091 ;
22092 return 0;
22093}
22094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022095if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022096 ac_cv_c_volatile=yes
22097else
cristy8b350f62009-11-15 23:12:43 +000022098 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022099fi
cristy3ed852e2009-09-05 21:47:34 +000022100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22101fi
cristy8b350f62009-11-15 23:12:43 +000022102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022103$as_echo "$ac_cv_c_volatile" >&6; }
22104if test $ac_cv_c_volatile = no; then
22105
cristy8b350f62009-11-15 23:12:43 +000022106$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022107
22108fi
22109
cristy8b350f62009-11-15 23:12:43 +000022110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022111$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022112if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022113 $as_echo_n "(cached) " >&6
22114else
cristy8b350f62009-11-15 23:12:43 +000022115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022116/* end confdefs.h. */
22117#define x(y) #y
22118
22119char *s = x(teststring);
22120_ACEOF
22121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022122 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022123 ac_cv_c_stringize=no
22124else
22125 ac_cv_c_stringize=yes
22126fi
22127rm -f conftest*
22128
22129fi
cristy8b350f62009-11-15 23:12:43 +000022130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022131$as_echo "$ac_cv_c_stringize" >&6; }
22132if test $ac_cv_c_stringize = yes; then
22133
cristy8b350f62009-11-15 23:12:43 +000022134$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022135
22136fi
22137
cristy8b350f62009-11-15 23:12:43 +000022138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022139$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022140if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022141 $as_echo_n "(cached) " >&6
22142else
cristy8b350f62009-11-15 23:12:43 +000022143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022144/* end confdefs.h. */
22145#include <sys/types.h>
22146#include <sys/stat.h>
22147
22148#if defined S_ISBLK && defined S_IFDIR
22149extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22150#endif
22151
22152#if defined S_ISBLK && defined S_IFCHR
22153extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22154#endif
22155
22156#if defined S_ISLNK && defined S_IFREG
22157extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22158#endif
22159
22160#if defined S_ISSOCK && defined S_IFREG
22161extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22162#endif
22163
22164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022165if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022166 ac_cv_header_stat_broken=no
22167else
cristy8b350f62009-11-15 23:12:43 +000022168 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022169fi
cristy3ed852e2009-09-05 21:47:34 +000022170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22171fi
cristy8b350f62009-11-15 23:12:43 +000022172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022173$as_echo "$ac_cv_header_stat_broken" >&6; }
22174if test $ac_cv_header_stat_broken = yes; then
22175
cristy8b350f62009-11-15 23:12:43 +000022176$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022177
22178fi
22179
cristy8b350f62009-11-15 23:12:43 +000022180{ $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 +000022181$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022182if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022183 $as_echo_n "(cached) " >&6
22184else
cristy8b350f62009-11-15 23:12:43 +000022185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022186/* end confdefs.h. */
22187#include <sys/types.h>
22188#include <sys/time.h>
22189#include <time.h>
22190
22191int
22192main ()
22193{
22194if ((struct tm *) 0)
22195return 0;
22196 ;
22197 return 0;
22198}
22199_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022200if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022201 ac_cv_header_time=yes
22202else
cristy8b350f62009-11-15 23:12:43 +000022203 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022204fi
cristy3ed852e2009-09-05 21:47:34 +000022205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22206fi
cristy8b350f62009-11-15 23:12:43 +000022207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022208$as_echo "$ac_cv_header_time" >&6; }
22209if test $ac_cv_header_time = yes; then
22210
cristy8b350f62009-11-15 23:12:43 +000022211$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022212
22213fi
22214
cristy8b350f62009-11-15 23:12:43 +000022215{ $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 +000022216$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022217if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022218 $as_echo_n "(cached) " >&6
22219else
cristy8b350f62009-11-15 23:12:43 +000022220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022221/* end confdefs.h. */
22222#include <sys/types.h>
22223#include <time.h>
22224
22225int
22226main ()
22227{
22228struct tm tm;
22229 int *p = &tm.tm_sec;
22230 return !p;
22231 ;
22232 return 0;
22233}
22234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022235if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022236 ac_cv_struct_tm=time.h
22237else
cristy8b350f62009-11-15 23:12:43 +000022238 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022239fi
cristy3ed852e2009-09-05 21:47:34 +000022240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22241fi
cristy8b350f62009-11-15 23:12:43 +000022242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022243$as_echo "$ac_cv_struct_tm" >&6; }
22244if test $ac_cv_struct_tm = sys/time.h; then
22245
cristy8b350f62009-11-15 23:12:43 +000022246$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022247
22248fi
22249
cristy92703d82010-04-26 00:18:18 +000022250ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22251#include <$ac_cv_struct_tm>
22252
22253"
cristyda16f162011-02-19 23:52:17 +000022254if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022255
22256cat >>confdefs.h <<_ACEOF
22257#define HAVE_STRUCT_TM_TM_ZONE 1
22258_ACEOF
22259
22260
22261fi
22262
22263if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22264
22265$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22266
22267else
22268 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22269"
cristyda16f162011-02-19 23:52:17 +000022270if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022271 ac_have_decl=1
22272else
22273 ac_have_decl=0
22274fi
22275
22276cat >>confdefs.h <<_ACEOF
22277#define HAVE_DECL_TZNAME $ac_have_decl
22278_ACEOF
22279
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22281$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022282if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022283 $as_echo_n "(cached) " >&6
22284else
22285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22286/* end confdefs.h. */
22287#include <time.h>
22288#if !HAVE_DECL_TZNAME
22289extern char *tzname[];
22290#endif
22291
22292int
22293main ()
22294{
22295return tzname[0][0];
22296 ;
22297 return 0;
22298}
22299_ACEOF
22300if ac_fn_c_try_link "$LINENO"; then :
22301 ac_cv_var_tzname=yes
22302else
22303 ac_cv_var_tzname=no
22304fi
22305rm -f core conftest.err conftest.$ac_objext \
22306 conftest$ac_exeext conftest.$ac_ext
22307fi
22308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22309$as_echo "$ac_cv_var_tzname" >&6; }
22310 if test $ac_cv_var_tzname = yes; then
22311
22312$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22313
22314 fi
22315fi
22316
cristy8b350f62009-11-15 23:12:43 +000022317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022318$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022319if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022320 $as_echo_n "(cached) " >&6
22321else
22322 echo '#! /bin/cat
22323exit 69
22324' >conftest
22325chmod u+x conftest
22326(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22327if test $? -ne 69; then
22328 ac_cv_sys_interpreter=yes
22329else
22330 ac_cv_sys_interpreter=no
22331fi
22332rm -f conftest
22333fi
cristy8b350f62009-11-15 23:12:43 +000022334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022335$as_echo "$ac_cv_sys_interpreter" >&6; }
22336interpval=$ac_cv_sys_interpreter
22337
22338
cristye80f9cb2013-01-09 01:09:31 +000022339#
22340# Checks for language qualifiers and semantics.
22341#
22342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22343$as_echo_n "checking whether char is unsigned... " >&6; }
22344if ${ac_cv_c_char_unsigned+:} false; then :
22345 $as_echo_n "(cached) " >&6
22346else
22347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22348/* end confdefs.h. */
22349$ac_includes_default
22350int
22351main ()
22352{
22353static int test_array [1 - 2 * !(((char) -1) < 0)];
22354test_array [0] = 0;
22355return test_array [0];
22356
22357 ;
22358 return 0;
22359}
22360_ACEOF
22361if ac_fn_c_try_compile "$LINENO"; then :
22362 ac_cv_c_char_unsigned=no
22363else
22364 ac_cv_c_char_unsigned=yes
22365fi
22366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22367fi
22368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22369$as_echo "$ac_cv_c_char_unsigned" >&6; }
22370if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22371 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22372
22373fi
22374
22375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22376$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22377if ${ac_cv_c_const+:} false; then :
22378 $as_echo_n "(cached) " >&6
22379else
22380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22381/* end confdefs.h. */
22382
22383int
22384main ()
22385{
22386
22387#ifndef __cplusplus
22388 /* Ultrix mips cc rejects this sort of thing. */
22389 typedef int charset[2];
22390 const charset cs = { 0, 0 };
22391 /* SunOS 4.1.1 cc rejects this. */
22392 char const *const *pcpcc;
22393 char **ppc;
22394 /* NEC SVR4.0.2 mips cc rejects this. */
22395 struct point {int x, y;};
22396 static struct point const zero = {0,0};
22397 /* AIX XL C 1.02.0.0 rejects this.
22398 It does not let you subtract one const X* pointer from another in
22399 an arm of an if-expression whose if-part is not a constant
22400 expression */
22401 const char *g = "string";
22402 pcpcc = &g + (g ? g-g : 0);
22403 /* HPUX 7.0 cc rejects these. */
22404 ++pcpcc;
22405 ppc = (char**) pcpcc;
22406 pcpcc = (char const *const *) ppc;
22407 { /* SCO 3.2v4 cc rejects this sort of thing. */
22408 char tx;
22409 char *t = &tx;
22410 char const *s = 0 ? (char *) 0 : (char const *) 0;
22411
22412 *t++ = 0;
22413 if (s) return 0;
22414 }
22415 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22416 int x[] = {25, 17};
22417 const int *foo = &x[0];
22418 ++foo;
22419 }
22420 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22421 typedef const int *iptr;
22422 iptr p = 0;
22423 ++p;
22424 }
22425 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22426 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22427 struct s { int j; const int *ap[3]; } bx;
22428 struct s *b = &bx; b->j = 5;
22429 }
22430 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22431 const int foo = 10;
22432 if (!foo) return 0;
22433 }
22434 return !cs[0] && !zero.x;
22435#endif
22436
22437 ;
22438 return 0;
22439}
22440_ACEOF
22441if ac_fn_c_try_compile "$LINENO"; then :
22442 ac_cv_c_const=yes
22443else
22444 ac_cv_c_const=no
22445fi
22446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22447fi
22448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22449$as_echo "$ac_cv_c_const" >&6; }
22450if test $ac_cv_c_const = no; then
22451
22452$as_echo "#define const /**/" >>confdefs.h
22453
22454fi
22455
cristy8b350f62009-11-15 23:12:43 +000022456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022457$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022458if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022459 $as_echo_n "(cached) " >&6
22460else
22461 ac_cv_c_inline=no
22462for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022464/* end confdefs.h. */
22465#ifndef __cplusplus
22466typedef int foo_t;
22467static $ac_kw foo_t static_foo () {return 0; }
22468$ac_kw foo_t foo () {return 0; }
22469#endif
22470
22471_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022472if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022473 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022474fi
cristy3ed852e2009-09-05 21:47:34 +000022475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22476 test "$ac_cv_c_inline" != no && break
22477done
22478
22479fi
cristy8b350f62009-11-15 23:12:43 +000022480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022481$as_echo "$ac_cv_c_inline" >&6; }
22482
cristy3ed852e2009-09-05 21:47:34 +000022483case $ac_cv_c_inline in
22484 inline | yes) ;;
22485 *)
22486 case $ac_cv_c_inline in
22487 no) ac_val=;;
22488 *) ac_val=$ac_cv_c_inline;;
22489 esac
22490 cat >>confdefs.h <<_ACEOF
22491#ifndef __cplusplus
22492#define inline $ac_val
22493#endif
22494_ACEOF
22495 ;;
22496esac
22497
cristy8b350f62009-11-15 23:12:43 +000022498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022499$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022500if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022501 $as_echo_n "(cached) " >&6
22502else
22503 ac_cv_c_restrict=no
22504 # The order here caters to the fact that C++ does not require restrict.
22505 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022507/* end confdefs.h. */
22508typedef int * int_ptr;
22509 int foo (int_ptr $ac_kw ip) {
22510 return ip[0];
22511 }
22512int
22513main ()
22514{
22515int s[1];
22516 int * $ac_kw t = s;
22517 t[0] = 0;
22518 return foo(t)
22519 ;
22520 return 0;
22521}
22522_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022523if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022524 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022525fi
cristy3ed852e2009-09-05 21:47:34 +000022526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22527 test "$ac_cv_c_restrict" != no && break
22528 done
22529
22530fi
cristy8b350f62009-11-15 23:12:43 +000022531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022532$as_echo "$ac_cv_c_restrict" >&6; }
22533
cristy3ed852e2009-09-05 21:47:34 +000022534 case $ac_cv_c_restrict in
22535 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022536 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022537 ;;
22538 *) cat >>confdefs.h <<_ACEOF
22539#define restrict $ac_cv_c_restrict
22540_ACEOF
22541 ;;
22542 esac
22543
cristye80f9cb2013-01-09 01:09:31 +000022544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22545$as_echo_n "checking for working volatile... " >&6; }
22546if ${ac_cv_c_volatile+:} false; then :
22547 $as_echo_n "(cached) " >&6
22548else
22549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22550/* end confdefs.h. */
22551
22552int
22553main ()
22554{
22555
22556volatile int x;
22557int * volatile y = (int *) 0;
22558return !x && !y;
22559 ;
22560 return 0;
22561}
22562_ACEOF
22563if ac_fn_c_try_compile "$LINENO"; then :
22564 ac_cv_c_volatile=yes
22565else
22566 ac_cv_c_volatile=no
22567fi
22568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22569fi
22570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22571$as_echo "$ac_cv_c_volatile" >&6; }
22572if test $ac_cv_c_volatile = no; then
22573
22574$as_echo "#define volatile /**/" >>confdefs.h
22575
22576fi
22577
cristy3ed852e2009-09-05 21:47:34 +000022578
22579# If words are stored with the most significant byte first (like
22580# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022582$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022583if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022584 $as_echo_n "(cached) " >&6
22585else
22586 ac_cv_c_bigendian=unknown
22587 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022589/* end confdefs.h. */
22590#ifndef __APPLE_CC__
22591 not a universal capable compiler
22592 #endif
22593 typedef int dummy;
22594
22595_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022596if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022597
22598 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022599 # there are at least two -arch flags with different values.
22600 ac_arch=
22601 ac_prev=
22602 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22603 if test -n "$ac_prev"; then
22604 case $ac_word in
22605 i?86 | x86_64 | ppc | ppc64)
22606 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22607 ac_arch=$ac_word
22608 else
22609 ac_cv_c_bigendian=universal
22610 break
22611 fi
22612 ;;
22613 esac
22614 ac_prev=
22615 elif test "x$ac_word" = "x-arch"; then
22616 ac_prev=arch
22617 fi
22618 done
cristy3ed852e2009-09-05 21:47:34 +000022619fi
cristy3ed852e2009-09-05 21:47:34 +000022620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22621 if test $ac_cv_c_bigendian = unknown; then
22622 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022624/* end confdefs.h. */
22625#include <sys/types.h>
22626 #include <sys/param.h>
22627
22628int
22629main ()
22630{
22631#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22632 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22633 && LITTLE_ENDIAN)
22634 bogus endian macros
22635 #endif
22636
22637 ;
22638 return 0;
22639}
22640_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022641if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022642 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022644/* end confdefs.h. */
22645#include <sys/types.h>
22646 #include <sys/param.h>
22647
22648int
22649main ()
22650{
22651#if BYTE_ORDER != BIG_ENDIAN
22652 not big endian
22653 #endif
22654
22655 ;
22656 return 0;
22657}
22658_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022659if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022660 ac_cv_c_bigendian=yes
22661else
cristy8b350f62009-11-15 23:12:43 +000022662 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022663fi
cristy3ed852e2009-09-05 21:47:34 +000022664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022665fi
cristy3ed852e2009-09-05 21:47:34 +000022666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22667 fi
22668 if test $ac_cv_c_bigendian = unknown; then
22669 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022671/* end confdefs.h. */
22672#include <limits.h>
22673
22674int
22675main ()
22676{
22677#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22678 bogus endian macros
22679 #endif
22680
22681 ;
22682 return 0;
22683}
22684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022685if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022686 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022688/* end confdefs.h. */
22689#include <limits.h>
22690
22691int
22692main ()
22693{
22694#ifndef _BIG_ENDIAN
22695 not big endian
22696 #endif
22697
22698 ;
22699 return 0;
22700}
22701_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022702if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022703 ac_cv_c_bigendian=yes
22704else
cristy8b350f62009-11-15 23:12:43 +000022705 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022706fi
cristy3ed852e2009-09-05 21:47:34 +000022707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022708fi
cristy3ed852e2009-09-05 21:47:34 +000022709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22710 fi
22711 if test $ac_cv_c_bigendian = unknown; then
22712 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022713 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022714 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022716/* end confdefs.h. */
22717short int ascii_mm[] =
22718 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22719 short int ascii_ii[] =
22720 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22721 int use_ascii (int i) {
22722 return ascii_mm[i] + ascii_ii[i];
22723 }
22724 short int ebcdic_ii[] =
22725 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22726 short int ebcdic_mm[] =
22727 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22728 int use_ebcdic (int i) {
22729 return ebcdic_mm[i] + ebcdic_ii[i];
22730 }
22731 extern int foo;
22732
22733int
22734main ()
22735{
22736return use_ascii (foo) == use_ebcdic (foo);
22737 ;
22738 return 0;
22739}
22740_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022741if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022742 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22743 ac_cv_c_bigendian=yes
22744 fi
22745 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22746 if test "$ac_cv_c_bigendian" = unknown; then
22747 ac_cv_c_bigendian=no
22748 else
22749 # finding both strings is unlikely to happen, but who knows?
22750 ac_cv_c_bigendian=unknown
22751 fi
22752 fi
cristy3ed852e2009-09-05 21:47:34 +000022753fi
cristy3ed852e2009-09-05 21:47:34 +000022754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22755else
cristy8b350f62009-11-15 23:12:43 +000022756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022757/* end confdefs.h. */
22758$ac_includes_default
22759int
22760main ()
22761{
22762
22763 /* Are we little or big endian? From Harbison&Steele. */
22764 union
22765 {
22766 long int l;
22767 char c[sizeof (long int)];
22768 } u;
22769 u.l = 1;
22770 return u.c[sizeof (long int) - 1] == 1;
22771
22772 ;
22773 return 0;
22774}
22775_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022776if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022777 ac_cv_c_bigendian=no
22778else
cristy8b350f62009-11-15 23:12:43 +000022779 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022780fi
cristy8b350f62009-11-15 23:12:43 +000022781rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22782 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022783fi
22784
cristy3ed852e2009-09-05 21:47:34 +000022785 fi
22786fi
cristy8b350f62009-11-15 23:12:43 +000022787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022788$as_echo "$ac_cv_c_bigendian" >&6; }
22789 case $ac_cv_c_bigendian in #(
22790 yes)
cristy8b350f62009-11-15 23:12:43 +000022791 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022792;; #(
22793 no)
22794 ;; #(
22795 universal)
22796
cristy8b350f62009-11-15 23:12:43 +000022797$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022798
22799 ;; #(
22800 *)
cristy98dddb52010-11-04 00:30:15 +000022801 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022802 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022803 esac
22804
22805
cristy501c8042011-05-26 17:46:28 +000022806# Define to a suitable type, if standard headers do not define it.
22807ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22808case $ac_cv_c_int8_t in #(
22809 no|yes) ;; #(
22810 *)
cristy3ed852e2009-09-05 21:47:34 +000022811
22812cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022813#define int8_t $ac_cv_c_int8_t
22814_ACEOF
22815;;
22816esac
22817
22818ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22819case $ac_cv_c_int16_t in #(
22820 no|yes) ;; #(
22821 *)
22822
22823cat >>confdefs.h <<_ACEOF
22824#define int16_t $ac_cv_c_int16_t
22825_ACEOF
22826;;
22827esac
22828
22829ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22830case $ac_cv_c_int32_t in #(
22831 no|yes) ;; #(
22832 *)
22833
22834cat >>confdefs.h <<_ACEOF
22835#define int32_t $ac_cv_c_int32_t
22836_ACEOF
22837;;
22838esac
22839
22840ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22841case $ac_cv_c_int64_t in #(
22842 no|yes) ;; #(
22843 *)
22844
22845cat >>confdefs.h <<_ACEOF
22846#define int64_t $ac_cv_c_int64_t
22847_ACEOF
22848;;
22849esac
22850
22851
cristy045228a2013-06-23 11:00:16 +000022852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22853$as_echo_n "checking for unsigned long long int... " >&6; }
22854if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022855 $as_echo_n "(cached) " >&6
22856else
cristy045228a2013-06-23 11:00:16 +000022857 ac_cv_type_unsigned_long_long_int=yes
22858 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022860/* end confdefs.h. */
22861
22862 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022863 implementations with broken preprocessors. Perhaps this can
22864 be revisited in 2012. In the meantime, code should not expect
22865 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022866 /* Test literals. */
22867 long long int ll = 9223372036854775807ll;
22868 long long int nll = -9223372036854775807LL;
22869 unsigned long long int ull = 18446744073709551615ULL;
22870 /* Test constant expressions. */
22871 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022872 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022873 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022874 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022875 int i = 63;
22876int
22877main ()
22878{
22879/* Test availability of runtime routines for shift and division. */
22880 long long int llmax = 9223372036854775807ll;
22881 unsigned long long int ullmax = 18446744073709551615ull;
22882 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022883 | (llmax / ll) | (llmax % ll)
22884 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22885 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022886 ;
22887 return 0;
22888}
22889
22890_ACEOF
22891if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022892
22893else
22894 ac_cv_type_unsigned_long_long_int=no
22895fi
22896rm -f core conftest.err conftest.$ac_objext \
22897 conftest$ac_exeext conftest.$ac_ext
22898 fi
22899fi
22900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22901$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22902 if test $ac_cv_type_unsigned_long_long_int = yes; then
22903
22904$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22905
22906 fi
22907
22908
22909
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22911$as_echo_n "checking for long long int... " >&6; }
22912if ${ac_cv_type_long_long_int+:} false; then :
22913 $as_echo_n "(cached) " >&6
22914else
cristy501c8042011-05-26 17:46:28 +000022915 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022916 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022917 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22918 if test $ac_cv_type_long_long_int = yes; then
22919 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022920 :
cristy501c8042011-05-26 17:46:28 +000022921else
22922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22923/* end confdefs.h. */
22924#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022925 #ifndef LLONG_MAX
22926 # define HALF \
22927 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22928 # define LLONG_MAX (HALF - 1 + HALF)
22929 #endif
cristy501c8042011-05-26 17:46:28 +000022930int
22931main ()
22932{
22933long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022934 int i;
22935 for (i = 0; ; i++)
22936 {
22937 long long int m = n << i;
22938 if (m >> i != n)
22939 return 1;
22940 if (LLONG_MAX / 2 < m)
22941 break;
22942 }
22943 return 0;
cristy501c8042011-05-26 17:46:28 +000022944 ;
22945 return 0;
22946}
22947_ACEOF
22948if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022949
cristy501c8042011-05-26 17:46:28 +000022950else
22951 ac_cv_type_long_long_int=no
22952fi
22953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22954 conftest.$ac_objext conftest.beam conftest.$ac_ext
22955fi
22956
cristy5ed9c6e2013-07-14 21:20:31 +000022957 fi
cristy045228a2013-06-23 11:00:16 +000022958 fi
cristy501c8042011-05-26 17:46:28 +000022959fi
22960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22961$as_echo "$ac_cv_type_long_long_int" >&6; }
22962 if test $ac_cv_type_long_long_int = yes; then
22963
22964$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22965
22966 fi
22967
22968
22969
22970 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22971if test "x$ac_cv_type_intmax_t" = xyes; then :
22972
22973$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22974
22975else
22976 test $ac_cv_type_long_long_int = yes \
22977 && ac_type='long long int' \
22978 || ac_type='long int'
22979
22980cat >>confdefs.h <<_ACEOF
22981#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022982_ACEOF
22983
22984fi
22985
22986
cristy501c8042011-05-26 17:46:28 +000022987
22988 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22989if test "x$ac_cv_type_intptr_t" = xyes; then :
22990
22991$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022992
cristy3ed852e2009-09-05 21:47:34 +000022993else
cristy501c8042011-05-26 17:46:28 +000022994 for ac_type in 'int' 'long int' 'long long int'; do
22995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22996/* end confdefs.h. */
22997$ac_includes_default
22998int
22999main ()
23000{
23001static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023002test_array [0] = 0;
23003return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023004
23005 ;
23006 return 0;
23007}
23008_ACEOF
23009if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023010
23011cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023012#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023013_ACEOF
23014
cristy501c8042011-05-26 17:46:28 +000023015 ac_type=
23016fi
23017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23018 test -z "$ac_type" && break
23019 done
cristy3ed852e2009-09-05 21:47:34 +000023020fi
23021
23022
cristy3ed852e2009-09-05 21:47:34 +000023023
cristy501c8042011-05-26 17:46:28 +000023024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23025$as_echo_n "checking for long double... " >&6; }
23026if ${ac_cv_type_long_double+:} false; then :
23027 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023028else
cristy501c8042011-05-26 17:46:28 +000023029 if test "$GCC" = yes; then
23030 ac_cv_type_long_double=yes
23031 else
23032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23033/* end confdefs.h. */
23034/* The Stardent Vistra knows sizeof (long double), but does
23035 not support it. */
23036 long double foo = 0.0L;
23037int
23038main ()
23039{
23040static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23041 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023042test_array [0] = 0;
23043return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023044
cristy501c8042011-05-26 17:46:28 +000023045 ;
23046 return 0;
23047}
cristy3ed852e2009-09-05 21:47:34 +000023048_ACEOF
cristy501c8042011-05-26 17:46:28 +000023049if ac_fn_c_try_compile "$LINENO"; then :
23050 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023051else
cristy501c8042011-05-26 17:46:28 +000023052 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023053fi
cristy501c8042011-05-26 17:46:28 +000023054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23055 fi
cristy3ed852e2009-09-05 21:47:34 +000023056fi
cristy501c8042011-05-26 17:46:28 +000023057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23058$as_echo "$ac_cv_type_long_double" >&6; }
23059 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023060
cristy501c8042011-05-26 17:46:28 +000023061$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023062
cristy501c8042011-05-26 17:46:28 +000023063 fi
23064
cristy3ed852e2009-09-05 21:47:34 +000023065
cristy8b350f62009-11-15 23:12:43 +000023066 { $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 +000023067$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023068if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023069 $as_echo_n "(cached) " >&6
23070else
cristy8b350f62009-11-15 23:12:43 +000023071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023072/* end confdefs.h. */
23073#include <float.h>
23074 long double const a[] =
23075 {
23076 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23077 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23078 };
23079 long double
23080 f (long double x)
23081 {
23082 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23083 + (x ? f (x) : 'c'));
23084 }
23085
23086int
23087main ()
23088{
23089static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23090 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23091 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23092 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23093 && (int) LDBL_EPSILON == 0
23094 )];
cristy14fefe52012-05-21 00:59:18 +000023095test_array [0] = 0;
23096return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023097
23098 ;
23099 return 0;
23100}
23101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023102if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023103 ac_cv_type_long_double_wider=yes
23104else
cristy8b350f62009-11-15 23:12:43 +000023105 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023106fi
cristy3ed852e2009-09-05 21:47:34 +000023107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23108fi
cristy8b350f62009-11-15 23:12:43 +000023109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023110$as_echo "$ac_cv_type_long_double_wider" >&6; }
23111 if test $ac_cv_type_long_double_wider = yes; then
23112
cristy8b350f62009-11-15 23:12:43 +000023113$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023114
23115 fi
23116
23117
cristy045228a2013-06-23 11:00:16 +000023118
cristy501c8042011-05-26 17:46:28 +000023119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23120$as_echo_n "checking for long long int... " >&6; }
23121if ${ac_cv_type_long_long_int+:} false; then :
23122 $as_echo_n "(cached) " >&6
23123else
cristy501c8042011-05-26 17:46:28 +000023124 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023125 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023126 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23127 if test $ac_cv_type_long_long_int = yes; then
23128 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023129 :
cristy501c8042011-05-26 17:46:28 +000023130else
23131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23132/* end confdefs.h. */
23133#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023134 #ifndef LLONG_MAX
23135 # define HALF \
23136 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23137 # define LLONG_MAX (HALF - 1 + HALF)
23138 #endif
cristy501c8042011-05-26 17:46:28 +000023139int
23140main ()
23141{
23142long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023143 int i;
23144 for (i = 0; ; i++)
23145 {
23146 long long int m = n << i;
23147 if (m >> i != n)
23148 return 1;
23149 if (LLONG_MAX / 2 < m)
23150 break;
23151 }
23152 return 0;
cristy501c8042011-05-26 17:46:28 +000023153 ;
23154 return 0;
23155}
23156_ACEOF
23157if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023158
cristy501c8042011-05-26 17:46:28 +000023159else
23160 ac_cv_type_long_long_int=no
23161fi
23162rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23163 conftest.$ac_objext conftest.beam conftest.$ac_ext
23164fi
23165
cristy5ed9c6e2013-07-14 21:20:31 +000023166 fi
cristy045228a2013-06-23 11:00:16 +000023167 fi
cristy501c8042011-05-26 17:46:28 +000023168fi
23169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23170$as_echo "$ac_cv_type_long_long_int" >&6; }
23171 if test $ac_cv_type_long_long_int = yes; then
23172
23173$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23174
23175 fi
23176
23177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23178$as_echo_n "checking for mbstate_t... " >&6; }
23179if ${ac_cv_type_mbstate_t+:} false; then :
23180 $as_echo_n "(cached) " >&6
23181else
23182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23183/* end confdefs.h. */
23184$ac_includes_default
23185# include <wchar.h>
23186int
23187main ()
23188{
23189mbstate_t x; return sizeof x;
23190 ;
23191 return 0;
23192}
23193_ACEOF
23194if ac_fn_c_try_compile "$LINENO"; then :
23195 ac_cv_type_mbstate_t=yes
23196else
23197 ac_cv_type_mbstate_t=no
23198fi
23199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23200fi
23201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23202$as_echo "$ac_cv_type_mbstate_t" >&6; }
23203 if test $ac_cv_type_mbstate_t = yes; then
23204
23205$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23206
23207 else
23208
23209$as_echo "#define mbstate_t int" >>confdefs.h
23210
23211 fi
23212ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23213if test "x$ac_cv_type_mode_t" = xyes; then :
23214
23215else
23216
23217cat >>confdefs.h <<_ACEOF
23218#define mode_t int
23219_ACEOF
23220
23221fi
23222
23223ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23224if test "x$ac_cv_type_off_t" = xyes; then :
23225
23226else
23227
23228cat >>confdefs.h <<_ACEOF
23229#define off_t long int
23230_ACEOF
23231
23232fi
23233
23234ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23235if test "x$ac_cv_type_pid_t" = xyes; then :
23236
23237else
23238
23239cat >>confdefs.h <<_ACEOF
23240#define pid_t int
23241_ACEOF
23242
23243fi
23244
23245ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23246if test "x$ac_cv_type_size_t" = xyes; then :
23247
23248else
23249
23250cat >>confdefs.h <<_ACEOF
23251#define size_t unsigned int
23252_ACEOF
23253
23254fi
23255
23256ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23257if test "x$ac_cv_type_ssize_t" = xyes; then :
23258
23259else
23260
23261cat >>confdefs.h <<_ACEOF
23262#define ssize_t int
23263_ACEOF
23264
23265fi
23266
23267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23268$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23269if ${ac_cv_type_uid_t+:} false; then :
23270 $as_echo_n "(cached) " >&6
23271else
23272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23273/* end confdefs.h. */
23274#include <sys/types.h>
23275
23276_ACEOF
23277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23278 $EGREP "uid_t" >/dev/null 2>&1; then :
23279 ac_cv_type_uid_t=yes
23280else
23281 ac_cv_type_uid_t=no
23282fi
23283rm -f conftest*
23284
23285fi
23286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23287$as_echo "$ac_cv_type_uid_t" >&6; }
23288if test $ac_cv_type_uid_t = no; then
23289
23290$as_echo "#define uid_t int" >>confdefs.h
23291
23292
23293$as_echo "#define gid_t int" >>confdefs.h
23294
23295fi
23296
23297ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23298case $ac_cv_c_uint8_t in #(
23299 no|yes) ;; #(
23300 *)
23301
23302$as_echo "#define _UINT8_T 1" >>confdefs.h
23303
23304
23305cat >>confdefs.h <<_ACEOF
23306#define uint8_t $ac_cv_c_uint8_t
23307_ACEOF
23308;;
23309 esac
23310
23311ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23312case $ac_cv_c_uint16_t in #(
23313 no|yes) ;; #(
23314 *)
23315
23316
23317cat >>confdefs.h <<_ACEOF
23318#define uint16_t $ac_cv_c_uint16_t
23319_ACEOF
23320;;
23321 esac
23322
23323ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23324case $ac_cv_c_uint32_t in #(
23325 no|yes) ;; #(
23326 *)
23327
23328$as_echo "#define _UINT32_T 1" >>confdefs.h
23329
23330
23331cat >>confdefs.h <<_ACEOF
23332#define uint32_t $ac_cv_c_uint32_t
23333_ACEOF
23334;;
23335 esac
23336
23337ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23338case $ac_cv_c_uint64_t in #(
23339 no|yes) ;; #(
23340 *)
23341
23342$as_echo "#define _UINT64_T 1" >>confdefs.h
23343
23344
23345cat >>confdefs.h <<_ACEOF
23346#define uint64_t $ac_cv_c_uint64_t
23347_ACEOF
23348;;
23349 esac
23350
23351
cristy501c8042011-05-26 17:46:28 +000023352
23353 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23354if test "x$ac_cv_type_uintmax_t" = xyes; then :
23355
23356$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23357
23358else
23359 test $ac_cv_type_unsigned_long_long_int = yes \
23360 && ac_type='unsigned long long int' \
23361 || ac_type='unsigned long int'
23362
23363cat >>confdefs.h <<_ACEOF
23364#define uintmax_t $ac_type
23365_ACEOF
23366
23367fi
23368
23369
23370
23371 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23372if test "x$ac_cv_type_uintptr_t" = xyes; then :
23373
23374$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23375
23376else
23377 for ac_type in 'unsigned int' 'unsigned long int' \
23378 'unsigned long long int'; do
23379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23380/* end confdefs.h. */
23381$ac_includes_default
23382int
23383main ()
23384{
23385static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023386test_array [0] = 0;
23387return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023388
23389 ;
23390 return 0;
23391}
23392_ACEOF
23393if ac_fn_c_try_compile "$LINENO"; then :
23394
23395cat >>confdefs.h <<_ACEOF
23396#define uintptr_t $ac_type
23397_ACEOF
23398
23399 ac_type=
23400fi
23401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23402 test -z "$ac_type" && break
23403 done
23404fi
23405
23406
23407
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23409$as_echo_n "checking for unsigned long long int... " >&6; }
23410if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23411 $as_echo_n "(cached) " >&6
23412else
cristy045228a2013-06-23 11:00:16 +000023413 ac_cv_type_unsigned_long_long_int=yes
23414 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023416/* end confdefs.h. */
23417
23418 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023419 implementations with broken preprocessors. Perhaps this can
23420 be revisited in 2012. In the meantime, code should not expect
23421 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023422 /* Test literals. */
23423 long long int ll = 9223372036854775807ll;
23424 long long int nll = -9223372036854775807LL;
23425 unsigned long long int ull = 18446744073709551615ULL;
23426 /* Test constant expressions. */
23427 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023428 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023429 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023430 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023431 int i = 63;
23432int
23433main ()
23434{
23435/* Test availability of runtime routines for shift and division. */
23436 long long int llmax = 9223372036854775807ll;
23437 unsigned long long int ullmax = 18446744073709551615ull;
23438 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023439 | (llmax / ll) | (llmax % ll)
23440 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23441 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023442 ;
23443 return 0;
23444}
23445
23446_ACEOF
23447if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023448
cristy501c8042011-05-26 17:46:28 +000023449else
23450 ac_cv_type_unsigned_long_long_int=no
23451fi
23452rm -f core conftest.err conftest.$ac_objext \
23453 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023454 fi
cristy501c8042011-05-26 17:46:28 +000023455fi
23456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23457$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23458 if test $ac_cv_type_unsigned_long_long_int = yes; then
23459
23460$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23461
23462 fi
23463
23464
cristyfec31822013-05-23 12:32:12 +000023465# Float_t and double_t are intended to be the the most efficient type.
23466ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23467"
23468if test "x$ac_cv_type_float_t" = xyes; then :
23469
23470cat >>confdefs.h <<_ACEOF
23471#define HAVE_FLOAT_T 1
23472_ACEOF
23473
23474
23475fi
23476
23477ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23478"
23479if test "x$ac_cv_type_double_t" = xyes; then :
23480
23481cat >>confdefs.h <<_ACEOF
23482#define HAVE_DOUBLE_T 1
23483_ACEOF
23484
23485
23486fi
23487
23488# The cast to long int works around a bug in the HP C Compiler
23489# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23490# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23491# This bug is HP SR number 8606223364.
23492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23493$as_echo_n "checking size of float_t... " >&6; }
23494if ${ac_cv_sizeof_float_t+:} false; then :
23495 $as_echo_n "(cached) " >&6
23496else
23497 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23498"; then :
23499
23500else
23501 if test "$ac_cv_type_float_t" = yes; then
23502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23504as_fn_error 77 "cannot compute sizeof (float_t)
23505See \`config.log' for more details" "$LINENO" 5; }
23506 else
23507 ac_cv_sizeof_float_t=0
23508 fi
23509fi
23510
23511fi
23512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23513$as_echo "$ac_cv_sizeof_float_t" >&6; }
23514
23515
23516
23517cat >>confdefs.h <<_ACEOF
23518#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23519_ACEOF
23520
23521
23522# The cast to long int works around a bug in the HP C Compiler
23523# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23524# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23525# This bug is HP SR number 8606223364.
23526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23527$as_echo_n "checking size of double_t... " >&6; }
23528if ${ac_cv_sizeof_double_t+:} false; then :
23529 $as_echo_n "(cached) " >&6
23530else
23531 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23532"; then :
23533
23534else
23535 if test "$ac_cv_type_double_t" = yes; then
23536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23538as_fn_error 77 "cannot compute sizeof (double_t)
23539See \`config.log' for more details" "$LINENO" 5; }
23540 else
23541 ac_cv_sizeof_double_t=0
23542 fi
23543fi
23544
23545fi
23546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23547$as_echo "$ac_cv_sizeof_double_t" >&6; }
23548
23549
23550
23551cat >>confdefs.h <<_ACEOF
23552#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23553_ACEOF
23554
23555
23556
cristy9b86f202012-11-28 21:55:35 +000023557# Get size of float, double and long double for comparaison.
23558# The cast to long int works around a bug in the HP C Compiler
23559# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23560# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23561# This bug is HP SR number 8606223364.
23562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23563$as_echo_n "checking size of float... " >&6; }
23564if ${ac_cv_sizeof_float+:} false; then :
23565 $as_echo_n "(cached) " >&6
23566else
23567 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23568
23569else
23570 if test "$ac_cv_type_float" = yes; then
23571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23573as_fn_error 77 "cannot compute sizeof (float)
23574See \`config.log' for more details" "$LINENO" 5; }
23575 else
23576 ac_cv_sizeof_float=0
23577 fi
23578fi
23579
23580fi
23581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23582$as_echo "$ac_cv_sizeof_float" >&6; }
23583
23584
23585
23586cat >>confdefs.h <<_ACEOF
23587#define SIZEOF_FLOAT $ac_cv_sizeof_float
23588_ACEOF
23589
23590
23591# The cast to long int works around a bug in the HP C Compiler
23592# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23593# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23594# This bug is HP SR number 8606223364.
23595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23596$as_echo_n "checking size of double... " >&6; }
23597if ${ac_cv_sizeof_double+:} false; then :
23598 $as_echo_n "(cached) " >&6
23599else
23600 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23601
23602else
23603 if test "$ac_cv_type_double" = yes; then
23604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23606as_fn_error 77 "cannot compute sizeof (double)
23607See \`config.log' for more details" "$LINENO" 5; }
23608 else
23609 ac_cv_sizeof_double=0
23610 fi
23611fi
23612
23613fi
23614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23615$as_echo "$ac_cv_sizeof_double" >&6; }
23616
23617
23618
23619cat >>confdefs.h <<_ACEOF
23620#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23621_ACEOF
23622
23623
cristy9e2b6242014-03-25 11:49:41 +000023624# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000023625# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23626# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23627# This bug is HP SR number 8606223364.
23628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23629$as_echo_n "checking size of long double... " >&6; }
23630if ${ac_cv_sizeof_long_double+:} false; then :
23631 $as_echo_n "(cached) " >&6
23632else
23633 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23634
23635else
23636 if test "$ac_cv_type_long_double" = yes; then
23637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23639as_fn_error 77 "cannot compute sizeof (long double)
23640See \`config.log' for more details" "$LINENO" 5; }
23641 else
23642 ac_cv_sizeof_long_double=0
23643 fi
23644fi
23645
23646fi
23647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23648$as_echo "$ac_cv_sizeof_long_double" >&6; }
23649
23650
23651
23652cat >>confdefs.h <<_ACEOF
23653#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23654_ACEOF
23655
23656
cristyf0cf9a22012-10-24 12:05:01 +000023657
cristy3ed852e2009-09-05 21:47:34 +000023658# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23659# The cast to long int works around a bug in the HP C Compiler
23660# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23661# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23662# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023664$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023665if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023666 $as_echo_n "(cached) " >&6
23667else
cristy8b350f62009-11-15 23:12:43 +000023668 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 +000023669
cristy3ed852e2009-09-05 21:47:34 +000023670else
cristy8b350f62009-11-15 23:12:43 +000023671 if test "$ac_cv_type_signed_short" = yes; then
23672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023674as_fn_error 77 "cannot compute sizeof (signed short)
23675See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023676 else
23677 ac_cv_sizeof_signed_short=0
23678 fi
23679fi
cristy8b350f62009-11-15 23:12:43 +000023680
cristy3ed852e2009-09-05 21:47:34 +000023681fi
cristy8b350f62009-11-15 23:12:43 +000023682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023683$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23684
23685
23686
23687cat >>confdefs.h <<_ACEOF
23688#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23689_ACEOF
23690
23691
23692
23693# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23694# The cast to long int works around a bug in the HP C Compiler
23695# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23696# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23697# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023699$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023700if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023701 $as_echo_n "(cached) " >&6
23702else
cristy8b350f62009-11-15 23:12:43 +000023703 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 +000023704
cristy3ed852e2009-09-05 21:47:34 +000023705else
cristy8b350f62009-11-15 23:12:43 +000023706 if test "$ac_cv_type_unsigned_short" = yes; then
23707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023709as_fn_error 77 "cannot compute sizeof (unsigned short)
23710See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023711 else
23712 ac_cv_sizeof_unsigned_short=0
23713 fi
23714fi
cristy8b350f62009-11-15 23:12:43 +000023715
cristy3ed852e2009-09-05 21:47:34 +000023716fi
cristy8b350f62009-11-15 23:12:43 +000023717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023718$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23719
23720
23721
23722cat >>confdefs.h <<_ACEOF
23723#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23724_ACEOF
23725
23726
23727
23728# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23729# The cast to long int works around a bug in the HP C Compiler
23730# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23731# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23732# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023734$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023735if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023736 $as_echo_n "(cached) " >&6
23737else
cristy8b350f62009-11-15 23:12:43 +000023738 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 +000023739
cristy3ed852e2009-09-05 21:47:34 +000023740else
cristy8b350f62009-11-15 23:12:43 +000023741 if test "$ac_cv_type_signed_int" = yes; then
23742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023743$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023744as_fn_error 77 "cannot compute sizeof (signed int)
23745See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023746 else
23747 ac_cv_sizeof_signed_int=0
23748 fi
23749fi
cristy8b350f62009-11-15 23:12:43 +000023750
cristy3ed852e2009-09-05 21:47:34 +000023751fi
cristy8b350f62009-11-15 23:12:43 +000023752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023753$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23754
23755
23756
23757cat >>confdefs.h <<_ACEOF
23758#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23759_ACEOF
23760
23761
23762
23763# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23764# The cast to long int works around a bug in the HP C Compiler
23765# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23766# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23767# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023769$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023770if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023771 $as_echo_n "(cached) " >&6
23772else
cristy8b350f62009-11-15 23:12:43 +000023773 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 +000023774
cristy3ed852e2009-09-05 21:47:34 +000023775else
cristy8b350f62009-11-15 23:12:43 +000023776 if test "$ac_cv_type_unsigned_int" = yes; then
23777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023779as_fn_error 77 "cannot compute sizeof (unsigned int)
23780See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023781 else
23782 ac_cv_sizeof_unsigned_int=0
23783 fi
23784fi
cristy8b350f62009-11-15 23:12:43 +000023785
cristy3ed852e2009-09-05 21:47:34 +000023786fi
cristy8b350f62009-11-15 23:12:43 +000023787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023788$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23789
23790
23791
23792cat >>confdefs.h <<_ACEOF
23793#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23794_ACEOF
23795
23796
23797
23798# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23799# The cast to long int works around a bug in the HP C Compiler
23800# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23801# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23802# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023804$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023805if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023806 $as_echo_n "(cached) " >&6
23807else
cristy8b350f62009-11-15 23:12:43 +000023808 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 +000023809
cristy3ed852e2009-09-05 21:47:34 +000023810else
cristy8b350f62009-11-15 23:12:43 +000023811 if test "$ac_cv_type_signed_long" = yes; then
23812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023814as_fn_error 77 "cannot compute sizeof (signed long)
23815See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023816 else
23817 ac_cv_sizeof_signed_long=0
23818 fi
23819fi
cristy8b350f62009-11-15 23:12:43 +000023820
cristy3ed852e2009-09-05 21:47:34 +000023821fi
cristy8b350f62009-11-15 23:12:43 +000023822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023823$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23824
23825
23826
23827cat >>confdefs.h <<_ACEOF
23828#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23829_ACEOF
23830
23831
23832
23833# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23834# The cast to long int works around a bug in the HP C Compiler
23835# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23836# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23837# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023839$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023840if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023841 $as_echo_n "(cached) " >&6
23842else
cristy8b350f62009-11-15 23:12:43 +000023843 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 +000023844
cristy3ed852e2009-09-05 21:47:34 +000023845else
cristy8b350f62009-11-15 23:12:43 +000023846 if test "$ac_cv_type_unsigned_long" = yes; then
23847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023848$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023849as_fn_error 77 "cannot compute sizeof (unsigned long)
23850See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023851 else
23852 ac_cv_sizeof_unsigned_long=0
23853 fi
23854fi
cristy8b350f62009-11-15 23:12:43 +000023855
cristy3ed852e2009-09-05 21:47:34 +000023856fi
cristy8b350f62009-11-15 23:12:43 +000023857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023858$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23859
23860
23861
23862cat >>confdefs.h <<_ACEOF
23863#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23864_ACEOF
23865
23866
23867
23868# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23869# 'signed long long' is not supported then the value defined is zero.
23870# The cast to long int works around a bug in the HP C Compiler
23871# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23872# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23873# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023875$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023876if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023877 $as_echo_n "(cached) " >&6
23878else
cristy8b350f62009-11-15 23:12:43 +000023879 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 +000023880
cristy3ed852e2009-09-05 21:47:34 +000023881else
cristy8b350f62009-11-15 23:12:43 +000023882 if test "$ac_cv_type_signed_long_long" = yes; then
23883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023885as_fn_error 77 "cannot compute sizeof (signed long long)
23886See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023887 else
23888 ac_cv_sizeof_signed_long_long=0
23889 fi
23890fi
cristy8b350f62009-11-15 23:12:43 +000023891
cristy3ed852e2009-09-05 21:47:34 +000023892fi
cristy8b350f62009-11-15 23:12:43 +000023893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023894$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23895
23896
23897
23898cat >>confdefs.h <<_ACEOF
23899#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23900_ACEOF
23901
23902
23903
23904# Obtain size of a 'unsigned long long' and define as
23905# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23906# supported then the value defined is zero.
23907# The cast to long int works around a bug in the HP C Compiler
23908# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23909# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23910# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023912$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023913if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023914 $as_echo_n "(cached) " >&6
23915else
cristy8b350f62009-11-15 23:12:43 +000023916 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 +000023917
cristy3ed852e2009-09-05 21:47:34 +000023918else
cristy8b350f62009-11-15 23:12:43 +000023919 if test "$ac_cv_type_unsigned_long_long" = yes; then
23920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023922as_fn_error 77 "cannot compute sizeof (unsigned long long)
23923See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023924 else
23925 ac_cv_sizeof_unsigned_long_long=0
23926 fi
23927fi
cristy8b350f62009-11-15 23:12:43 +000023928
cristy3ed852e2009-09-05 21:47:34 +000023929fi
cristy8b350f62009-11-15 23:12:43 +000023930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023931$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23932
23933
23934
23935cat >>confdefs.h <<_ACEOF
23936#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23937_ACEOF
23938
23939
23940
cristyfec31822013-05-23 12:32:12 +000023941# Obtain size of off_t and define as SIZEOF_OFF_T
23942# The cast to long int works around a bug in the HP C Compiler
23943# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23944# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23945# This bug is HP SR number 8606223364.
23946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23947$as_echo_n "checking size of off_t... " >&6; }
23948if ${ac_cv_sizeof_off_t+:} false; then :
23949 $as_echo_n "(cached) " >&6
23950else
23951 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23952
23953else
23954 if test "$ac_cv_type_off_t" = yes; then
23955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23957as_fn_error 77 "cannot compute sizeof (off_t)
23958See \`config.log' for more details" "$LINENO" 5; }
23959 else
23960 ac_cv_sizeof_off_t=0
23961 fi
23962fi
23963
23964fi
23965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23966$as_echo "$ac_cv_sizeof_off_t" >&6; }
23967
23968
23969
23970cat >>confdefs.h <<_ACEOF
23971#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23972_ACEOF
23973
23974
23975
23976# Obtain size of size_t and define as SIZEOF_SIZE_T
23977# The cast to long int works around a bug in the HP C Compiler
23978# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23979# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23980# This bug is HP SR number 8606223364.
23981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23982$as_echo_n "checking size of size_t... " >&6; }
23983if ${ac_cv_sizeof_size_t+:} false; then :
23984 $as_echo_n "(cached) " >&6
23985else
23986 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23987
23988else
23989 if test "$ac_cv_type_size_t" = yes; then
23990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23992as_fn_error 77 "cannot compute sizeof (size_t)
23993See \`config.log' for more details" "$LINENO" 5; }
23994 else
23995 ac_cv_sizeof_size_t=0
23996 fi
23997fi
23998
23999fi
24000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24001$as_echo "$ac_cv_sizeof_size_t" >&6; }
24002
24003
24004
24005cat >>confdefs.h <<_ACEOF
24006#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24007_ACEOF
24008
24009
24010
24011# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24012# The cast to long int works around a bug in the HP C Compiler
24013# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24014# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24015# This bug is HP SR number 8606223364.
24016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24017$as_echo_n "checking size of ssize_t... " >&6; }
24018if ${ac_cv_sizeof_ssize_t+:} false; then :
24019 $as_echo_n "(cached) " >&6
24020else
24021 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24022
24023else
24024 if test "$ac_cv_type_ssize_t" = yes; then
24025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24027as_fn_error 77 "cannot compute sizeof (ssize_t)
24028See \`config.log' for more details" "$LINENO" 5; }
24029 else
24030 ac_cv_sizeof_ssize_t=0
24031 fi
24032fi
24033
24034fi
24035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24036$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24037
24038
24039
24040cat >>confdefs.h <<_ACEOF
24041#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24042_ACEOF
24043
24044
24045
cristy3ed852e2009-09-05 21:47:34 +000024046# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24047# The cast to long int works around a bug in the HP C Compiler
24048# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24049# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24050# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024052$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024053if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024054 $as_echo_n "(cached) " >&6
24055else
cristy8b350f62009-11-15 23:12:43 +000024056 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 +000024057
cristy3ed852e2009-09-05 21:47:34 +000024058else
cristy8b350f62009-11-15 23:12:43 +000024059 if test "$ac_cv_type_unsigned_intp" = yes; then
24060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024062as_fn_error 77 "cannot compute sizeof (unsigned int*)
24063See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024064 else
24065 ac_cv_sizeof_unsigned_intp=0
24066 fi
24067fi
cristy8b350f62009-11-15 23:12:43 +000024068
cristy3ed852e2009-09-05 21:47:34 +000024069fi
cristy8b350f62009-11-15 23:12:43 +000024070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024071$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24072
24073
24074
24075cat >>confdefs.h <<_ACEOF
24076#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24077_ACEOF
24078
24079
24080
24081#
24082# Compute sized types for current CPU and compiler options.
24083#
24084
cristy8b350f62009-11-15 23:12:43 +000024085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024086$as_echo_n "checking for signed 8-bit type... " >&6; }
24087INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24089$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024090
24091
cristy8b350f62009-11-15 23:12:43 +000024092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024093$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24094UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24096$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024097
24098
cristy8b350f62009-11-15 23:12:43 +000024099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024100$as_echo_n "checking for signed 16-bit type... " >&6; }
24101INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24103$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024104
24105
cristy8b350f62009-11-15 23:12:43 +000024106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024107$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24108UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24110$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024111
24112
cristy8b350f62009-11-15 23:12:43 +000024113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024114$as_echo_n "checking for signed 32-bit type... " >&6; }
24115INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024116INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024117if test $ac_cv_sizeof_signed_int -eq 4; then
24118 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024119 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024120elif test $ac_cv_sizeof_signed_long -eq 4; then
24121 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024122 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024123fi
cristyad38abe2012-12-23 23:03:21 +000024124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24125$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024126
24127
cristy6d5e20f2011-04-25 13:48:54 +000024128
cristy8b350f62009-11-15 23:12:43 +000024129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024130$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24131UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024132UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024133if test $ac_cv_sizeof_unsigned_int -eq 4; then
24134 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024135 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024136elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24137 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024138 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024139fi
cristyad38abe2012-12-23 23:03:21 +000024140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24141$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024142
24143
cristy6d5e20f2011-04-25 13:48:54 +000024144
cristy8b350f62009-11-15 23:12:43 +000024145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024146$as_echo_n "checking for signed 64-bit type... " >&6; }
24147INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024148INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024149if test $ac_cv_sizeof_signed_long -eq 8; then
24150 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024151 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024152elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24153 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024154 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024155fi
cristy3a99dcf2011-12-17 01:29:40 +000024156case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024157 mingw* )
24158 INT64_F='"I64"'
24159 ;;
24160esac
cristyad38abe2012-12-23 23:03:21 +000024161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24162$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024163
24164
cristy6d5e20f2011-04-25 13:48:54 +000024165
cristy8b350f62009-11-15 23:12:43 +000024166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024167$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24168UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024169UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024170if test $ac_cv_sizeof_unsigned_long -eq 8; then
24171 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024172 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024173elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24174 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024175 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024176fi
cristy3a99dcf2011-12-17 01:29:40 +000024177case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024178 mingw* )
24179 UINT64_F='"I64"'
24180 ;;
24181esac
cristyad38abe2012-12-23 23:03:21 +000024182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24183$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024184
24185
cristy6d5e20f2011-04-25 13:48:54 +000024186
cristy8b350f62009-11-15 23:12:43 +000024187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024188$as_echo_n "checking for unsigned maximum type... " >&6; }
24189UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024190UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024191if test "$UINT64_T" != 'none'; then
24192 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024193 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024194elif test "$UINT32_T" != 'none'; then
24195 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024196 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024197fi
cristyad38abe2012-12-23 23:03:21 +000024198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24199$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024200
24201
cristy6d5e20f2011-04-25 13:48:54 +000024202
cristy8b350f62009-11-15 23:12:43 +000024203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024204$as_echo_n "checking for pointer difference type... " >&6; }
24205UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024206UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024207if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24208 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024209 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024210elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24211 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024212 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024213fi
cristyad38abe2012-12-23 23:03:21 +000024214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24215$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024216
24217
cristy6d5e20f2011-04-25 13:48:54 +000024218
cristy8b350f62009-11-15 23:12:43 +000024219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024220$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024222/* end confdefs.h. */
24223
24224int
24225main ()
24226{
24227{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24228 ;
24229 return 0;
24230}
24231_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024232if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24234$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024235else
cristyad38abe2012-12-23 23:03:21 +000024236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24237$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024239$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024241/* end confdefs.h. */
24242
24243int
24244main ()
24245{
24246{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24247 ;
24248 return 0;
24249}
24250_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024251if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24253$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024254
cristy8b350f62009-11-15 23:12:43 +000024255$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024256
24257else
cristyad38abe2012-12-23 23:03:21 +000024258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24259$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024260
cristy8b350f62009-11-15 23:12:43 +000024261$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024262
24263fi
cristy3ed852e2009-09-05 21:47:34 +000024264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24265fi
cristy3ed852e2009-09-05 21:47:34 +000024266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24267
24268########
24269#
24270# Check for functions
24271#
24272########
cristy8b350f62009-11-15 23:12:43 +000024273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024274$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024275if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024276 $as_echo_n "(cached) " >&6
24277else
cristy8b350f62009-11-15 23:12:43 +000024278 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024279 ac_cv_func_closedir_void=yes
24280else
cristy8b350f62009-11-15 23:12:43 +000024281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024282/* end confdefs.h. */
24283$ac_includes_default
24284#include <$ac_header_dirent>
24285#ifndef __cplusplus
24286int closedir ();
24287#endif
24288
24289int
24290main ()
24291{
24292return closedir (opendir (".")) != 0;
24293 ;
24294 return 0;
24295}
24296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024297if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024298 ac_cv_func_closedir_void=no
24299else
cristy8b350f62009-11-15 23:12:43 +000024300 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024301fi
cristy8b350f62009-11-15 23:12:43 +000024302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24303 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024304fi
24305
cristy3ed852e2009-09-05 21:47:34 +000024306fi
cristy8b350f62009-11-15 23:12:43 +000024307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024308$as_echo "$ac_cv_func_closedir_void" >&6; }
24309if test $ac_cv_func_closedir_void = yes; then
24310
cristy8b350f62009-11-15 23:12:43 +000024311$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024312
24313fi
24314
cristycd4c5312009-11-22 01:19:08 +000024315
24316
24317
24318 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024319do :
24320 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024321ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24322"
cristy98dddb52010-11-04 00:30:15 +000024323if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024324 cat >>confdefs.h <<_ACEOF
24325#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24326_ACEOF
24327
24328fi
24329
24330done
24331
cristycd4c5312009-11-22 01:19:08 +000024332
24333
24334
24335
24336
24337
24338
cristy3ed852e2009-09-05 21:47:34 +000024339for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024340do :
24341 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024342if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024343 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024344#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024345_ACEOF
24346
24347fi
24348done
24349
cristy8b350f62009-11-15 23:12:43 +000024350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024351$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024352if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024353 $as_echo_n "(cached) " >&6
24354else
cristy8b350f62009-11-15 23:12:43 +000024355 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024356 ac_cv_func_mmap_fixed_mapped=no
24357else
cristy8b350f62009-11-15 23:12:43 +000024358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024359/* end confdefs.h. */
24360$ac_includes_default
24361/* malloc might have been renamed as rpl_malloc. */
24362#undef malloc
24363
24364/* Thanks to Mike Haertel and Jim Avera for this test.
24365 Here is a matrix of mmap possibilities:
24366 mmap private not fixed
24367 mmap private fixed at somewhere currently unmapped
24368 mmap private fixed at somewhere already mapped
24369 mmap shared not fixed
24370 mmap shared fixed at somewhere currently unmapped
24371 mmap shared fixed at somewhere already mapped
24372 For private mappings, we should verify that changes cannot be read()
24373 back from the file, nor mmap's back from the file at a different
24374 address. (There have been systems where private was not correctly
24375 implemented like the infamous i386 svr4.0, and systems where the
24376 VM page cache was not coherent with the file system buffer cache
24377 like early versions of FreeBSD and possibly contemporary NetBSD.)
24378 For shared mappings, we should conversely verify that changes get
24379 propagated back to all the places they're supposed to be.
24380
24381 Grep wants private fixed already mapped.
24382 The main things grep needs to know about mmap are:
24383 * does it exist and is it safe to write into the mmap'd area
24384 * how to use it (BSD variants) */
24385
24386#include <fcntl.h>
24387#include <sys/mman.h>
24388
24389#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24390char *malloc ();
24391#endif
24392
24393/* This mess was copied from the GNU getpagesize.h. */
24394#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024395# ifdef _SC_PAGESIZE
24396# define getpagesize() sysconf(_SC_PAGESIZE)
24397# else /* no _SC_PAGESIZE */
24398# ifdef HAVE_SYS_PARAM_H
24399# include <sys/param.h>
24400# ifdef EXEC_PAGESIZE
24401# define getpagesize() EXEC_PAGESIZE
24402# else /* no EXEC_PAGESIZE */
24403# ifdef NBPG
24404# define getpagesize() NBPG * CLSIZE
24405# ifndef CLSIZE
24406# define CLSIZE 1
24407# endif /* no CLSIZE */
24408# else /* no NBPG */
24409# ifdef NBPC
24410# define getpagesize() NBPC
24411# else /* no NBPC */
24412# ifdef PAGESIZE
24413# define getpagesize() PAGESIZE
24414# endif /* PAGESIZE */
24415# endif /* no NBPC */
24416# endif /* no NBPG */
24417# endif /* no EXEC_PAGESIZE */
24418# else /* no HAVE_SYS_PARAM_H */
24419# define getpagesize() 8192 /* punt totally */
24420# endif /* no HAVE_SYS_PARAM_H */
24421# endif /* no _SC_PAGESIZE */
24422
24423#endif /* no HAVE_GETPAGESIZE */
24424
24425int
24426main ()
24427{
24428 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024429 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024430 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024431 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024432
24433 pagesize = getpagesize ();
24434
24435 /* First, make a file with some known garbage in it. */
24436 data = (char *) malloc (pagesize);
24437 if (!data)
24438 return 1;
24439 for (i = 0; i < pagesize; ++i)
24440 *(data + i) = rand ();
24441 umask (0);
24442 fd = creat ("conftest.mmap", 0600);
24443 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024444 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024445 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024446 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024447 close (fd);
24448
cristycd4c5312009-11-22 01:19:08 +000024449 /* Next, check that the tail of a page is zero-filled. File must have
24450 non-zero length, otherwise we risk SIGBUS for entire page. */
24451 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24452 if (fd2 < 0)
24453 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024454 cdata2 = "";
24455 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024456 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024457 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024458 if (data2 == MAP_FAILED)
24459 return 6;
24460 for (i = 0; i < pagesize; ++i)
24461 if (*(data2 + i))
24462 return 7;
24463 close (fd2);
24464 if (munmap (data2, pagesize))
24465 return 8;
24466
cristy3ed852e2009-09-05 21:47:34 +000024467 /* Next, try to mmap the file at a fixed address which already has
24468 something else allocated at it. If we can, also make sure that
24469 we see the same garbage. */
24470 fd = open ("conftest.mmap", O_RDWR);
24471 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024472 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024473 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24474 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024475 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024476 for (i = 0; i < pagesize; ++i)
24477 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024478 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024479
24480 /* Finally, make sure that changes to the mapped area do not
24481 percolate back to the file as seen by read(). (This is a bug on
24482 some variants of i386 svr4.0.) */
24483 for (i = 0; i < pagesize; ++i)
24484 *(data2 + i) = *(data2 + i) + 1;
24485 data3 = (char *) malloc (pagesize);
24486 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024487 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024488 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024489 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024490 for (i = 0; i < pagesize; ++i)
24491 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024492 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024493 close (fd);
24494 return 0;
24495}
24496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024497if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024498 ac_cv_func_mmap_fixed_mapped=yes
24499else
cristy8b350f62009-11-15 23:12:43 +000024500 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024501fi
cristy8b350f62009-11-15 23:12:43 +000024502rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24503 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024504fi
24505
cristy3ed852e2009-09-05 21:47:34 +000024506fi
cristy8b350f62009-11-15 23:12:43 +000024507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024508$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24509if test $ac_cv_func_mmap_fixed_mapped = yes; then
24510
cristy8b350f62009-11-15 23:12:43 +000024511$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024512
24513fi
cristycd4c5312009-11-22 01:19:08 +000024514rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024515
cristy3ed852e2009-09-05 21:47:34 +000024516for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024517do :
24518 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024519if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024520 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024521#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024522_ACEOF
24523
24524fi
24525
24526done
24527
cristy3ed852e2009-09-05 21:47:34 +000024528for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024529do :
24530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24531ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024532if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024533 cat >>confdefs.h <<_ACEOF
24534#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24535_ACEOF
24536
24537fi
24538done
24539
24540if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024542$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024543if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024544 $as_echo_n "(cached) " >&6
24545else
cristy8b350f62009-11-15 23:12:43 +000024546 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024547 ac_cv_func_fork_works=cross
24548else
cristy8b350f62009-11-15 23:12:43 +000024549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024550/* end confdefs.h. */
24551$ac_includes_default
24552int
24553main ()
24554{
24555
24556 /* By Ruediger Kuhlmann. */
24557 return fork () < 0;
24558
24559 ;
24560 return 0;
24561}
24562_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024563if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024564 ac_cv_func_fork_works=yes
24565else
cristy8b350f62009-11-15 23:12:43 +000024566 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024567fi
cristy8b350f62009-11-15 23:12:43 +000024568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24569 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024570fi
24571
cristy3ed852e2009-09-05 21:47:34 +000024572fi
cristy8b350f62009-11-15 23:12:43 +000024573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024574$as_echo "$ac_cv_func_fork_works" >&6; }
24575
24576else
24577 ac_cv_func_fork_works=$ac_cv_func_fork
24578fi
24579if test "x$ac_cv_func_fork_works" = xcross; then
24580 case $host in
24581 *-*-amigaos* | *-*-msdosdjgpp*)
24582 # Override, as these systems have only a dummy fork() stub
24583 ac_cv_func_fork_works=no
24584 ;;
24585 *)
24586 ac_cv_func_fork_works=yes
24587 ;;
24588 esac
cristy8b350f62009-11-15 23:12:43 +000024589 { $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 +000024590$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24591fi
24592ac_cv_func_vfork_works=$ac_cv_func_vfork
24593if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024595$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024596if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024597 $as_echo_n "(cached) " >&6
24598else
cristy8b350f62009-11-15 23:12:43 +000024599 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024600 ac_cv_func_vfork_works=cross
24601else
cristy8b350f62009-11-15 23:12:43 +000024602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024603/* end confdefs.h. */
24604/* Thanks to Paul Eggert for this test. */
24605$ac_includes_default
24606#include <sys/wait.h>
24607#ifdef HAVE_VFORK_H
24608# include <vfork.h>
24609#endif
24610/* On some sparc systems, changes by the child to local and incoming
24611 argument registers are propagated back to the parent. The compiler
24612 is told about this with #include <vfork.h>, but some compilers
24613 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24614 static variable whose address is put into a register that is
24615 clobbered by the vfork. */
24616static void
24617#ifdef __cplusplus
24618sparc_address_test (int arg)
24619# else
24620sparc_address_test (arg) int arg;
24621#endif
24622{
24623 static pid_t child;
24624 if (!child) {
24625 child = vfork ();
24626 if (child < 0) {
24627 perror ("vfork");
24628 _exit(2);
24629 }
24630 if (!child) {
24631 arg = getpid();
24632 write(-1, "", 0);
24633 _exit (arg);
24634 }
24635 }
24636}
24637
24638int
24639main ()
24640{
24641 pid_t parent = getpid ();
24642 pid_t child;
24643
24644 sparc_address_test (0);
24645
24646 child = vfork ();
24647
24648 if (child == 0) {
24649 /* Here is another test for sparc vfork register problems. This
24650 test uses lots of local variables, at least as many local
24651 variables as main has allocated so far including compiler
24652 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24653 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24654 reuse the register of parent for one of the local variables,
24655 since it will think that parent can't possibly be used any more
24656 in this routine. Assigning to the local variable will thus
24657 munge parent in the parent process. */
24658 pid_t
24659 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24660 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24661 /* Convince the compiler that p..p7 are live; otherwise, it might
24662 use the same hardware register for all 8 local variables. */
24663 if (p != p1 || p != p2 || p != p3 || p != p4
24664 || p != p5 || p != p6 || p != p7)
24665 _exit(1);
24666
24667 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24668 from child file descriptors. If the child closes a descriptor
24669 before it execs or exits, this munges the parent's descriptor
24670 as well. Test for this by closing stdout in the child. */
24671 _exit(close(fileno(stdout)) != 0);
24672 } else {
24673 int status;
24674 struct stat st;
24675
24676 while (wait(&status) != child)
24677 ;
24678 return (
24679 /* Was there some problem with vforking? */
24680 child < 0
24681
24682 /* Did the child fail? (This shouldn't happen.) */
24683 || status
24684
24685 /* Did the vfork/compiler bug occur? */
24686 || parent != getpid()
24687
24688 /* Did the file descriptor bug occur? */
24689 || fstat(fileno(stdout), &st) != 0
24690 );
24691 }
24692}
24693_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024694if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024695 ac_cv_func_vfork_works=yes
24696else
cristy8b350f62009-11-15 23:12:43 +000024697 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024698fi
cristy8b350f62009-11-15 23:12:43 +000024699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24700 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024701fi
24702
cristy3ed852e2009-09-05 21:47:34 +000024703fi
cristy8b350f62009-11-15 23:12:43 +000024704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024705$as_echo "$ac_cv_func_vfork_works" >&6; }
24706
24707fi;
24708if test "x$ac_cv_func_fork_works" = xcross; then
24709 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024710 { $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 +000024711$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24712fi
24713
24714if test "x$ac_cv_func_vfork_works" = xyes; then
24715
cristy8b350f62009-11-15 23:12:43 +000024716$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024717
24718else
24719
cristy8b350f62009-11-15 23:12:43 +000024720$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024721
24722fi
24723if test "x$ac_cv_func_fork_works" = xyes; then
24724
cristy8b350f62009-11-15 23:12:43 +000024725$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024726
24727fi
24728
cristy8b350f62009-11-15 23:12:43 +000024729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024730$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024731if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024732 $as_echo_n "(cached) " >&6
24733else
cristy8b350f62009-11-15 23:12:43 +000024734 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024735 ac_cv_func_memcmp_working=no
24736else
cristy8b350f62009-11-15 23:12:43 +000024737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024738/* end confdefs.h. */
24739$ac_includes_default
24740int
24741main ()
24742{
24743
24744 /* Some versions of memcmp are not 8-bit clean. */
24745 char c0 = '\100', c1 = '\200', c2 = '\201';
24746 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24747 return 1;
24748
24749 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24750 or more and with at least one buffer not starting on a 4-byte boundary.
24751 William Lewis provided this test program. */
24752 {
24753 char foo[21];
24754 char bar[21];
24755 int i;
24756 for (i = 0; i < 4; i++)
24757 {
24758 char *a = foo + i;
24759 char *b = bar + i;
24760 strcpy (a, "--------01111111");
24761 strcpy (b, "--------10000000");
24762 if (memcmp (a, b, 16) >= 0)
24763 return 1;
24764 }
24765 return 0;
24766 }
24767
24768 ;
24769 return 0;
24770}
24771_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024772if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024773 ac_cv_func_memcmp_working=yes
24774else
cristy8b350f62009-11-15 23:12:43 +000024775 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024776fi
cristy8b350f62009-11-15 23:12:43 +000024777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24778 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024779fi
24780
cristy3ed852e2009-09-05 21:47:34 +000024781fi
cristy8b350f62009-11-15 23:12:43 +000024782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024783$as_echo "$ac_cv_func_memcmp_working" >&6; }
24784test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24785 *" memcmp.$ac_objext "* ) ;;
24786 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24787 ;;
24788esac
24789
24790
cristy3ed852e2009-09-05 21:47:34 +000024791for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024792do :
24793 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24794ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024795if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024796 cat >>confdefs.h <<_ACEOF
24797#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24798_ACEOF
24799
24800fi
24801
24802done
24803
cristy8b350f62009-11-15 23:12:43 +000024804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024805$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024806if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024807 $as_echo_n "(cached) " >&6
24808else
24809 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24810 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24811 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024813/* end confdefs.h. */
24814$ac_includes_default
24815#ifdef HAVE_SYS_SELECT_H
24816# include <sys/select.h>
24817#endif
24818#ifdef HAVE_SYS_SOCKET_H
24819# include <sys/socket.h>
24820#endif
24821
24822int
24823main ()
24824{
24825extern int select ($ac_arg1,
24826 $ac_arg234, $ac_arg234, $ac_arg234,
24827 $ac_arg5);
24828 ;
24829 return 0;
24830}
24831_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024832if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024833 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024834fi
cristy3ed852e2009-09-05 21:47:34 +000024835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24836 done
24837 done
24838done
24839# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024840: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024841
24842fi
cristy8b350f62009-11-15 23:12:43 +000024843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024844$as_echo "$ac_cv_func_select_args" >&6; }
24845ac_save_IFS=$IFS; IFS=','
24846set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24847IFS=$ac_save_IFS
24848shift
24849
24850cat >>confdefs.h <<_ACEOF
24851#define SELECT_TYPE_ARG1 $1
24852_ACEOF
24853
24854
24855cat >>confdefs.h <<_ACEOF
24856#define SELECT_TYPE_ARG234 ($2)
24857_ACEOF
24858
24859
24860cat >>confdefs.h <<_ACEOF
24861#define SELECT_TYPE_ARG5 ($3)
24862_ACEOF
24863
24864rm -f conftest*
24865
cristyda16f162011-02-19 23:52:17 +000024866if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024867 $as_echo_n "(cached) " >&6
24868else
24869 ac_cv_func_setvbuf_reversed=no
24870fi
24871
24872
cristy8b350f62009-11-15 23:12:43 +000024873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024874$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024875if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024876 $as_echo_n "(cached) " >&6
24877else
cristy8b350f62009-11-15 23:12:43 +000024878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024879/* end confdefs.h. */
24880#include <sys/types.h>
24881#include <signal.h>
24882
24883int
24884main ()
24885{
24886return *(signal (0, 0)) (0) == 1;
24887 ;
24888 return 0;
24889}
24890_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024891if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024892 ac_cv_type_signal=int
24893else
cristy8b350f62009-11-15 23:12:43 +000024894 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024895fi
cristy3ed852e2009-09-05 21:47:34 +000024896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24897fi
cristy8b350f62009-11-15 23:12:43 +000024898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024899$as_echo "$ac_cv_type_signal" >&6; }
24900
24901cat >>confdefs.h <<_ACEOF
24902#define RETSIGTYPE $ac_cv_type_signal
24903_ACEOF
24904
24905
cristy8b350f62009-11-15 23:12:43 +000024906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024907$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024908if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024909 $as_echo_n "(cached) " >&6
24910else
cristy8b350f62009-11-15 23:12:43 +000024911 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024912 ac_cv_func_strtod=no
24913else
cristy8b350f62009-11-15 23:12:43 +000024914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024915/* end confdefs.h. */
24916
24917$ac_includes_default
24918#ifndef strtod
24919double strtod ();
24920#endif
24921int
24922main()
24923{
24924 {
24925 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24926 char *string = " +69";
24927 char *term;
24928 double value;
24929 value = strtod (string, &term);
24930 if (value != 69 || term != (string + 4))
24931 return 1;
24932 }
24933
24934 {
24935 /* Under Solaris 2.4, strtod returns the wrong value for the
24936 terminating character under some conditions. */
24937 char *string = "NaN";
24938 char *term;
24939 strtod (string, &term);
24940 if (term != string && *(term - 1) == 0)
24941 return 1;
24942 }
24943 return 0;
24944}
24945
24946_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024947if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024948 ac_cv_func_strtod=yes
24949else
cristy8b350f62009-11-15 23:12:43 +000024950 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024951fi
cristy8b350f62009-11-15 23:12:43 +000024952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24953 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024954fi
24955
cristy3ed852e2009-09-05 21:47:34 +000024956fi
cristy8b350f62009-11-15 23:12:43 +000024957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024958$as_echo "$ac_cv_func_strtod" >&6; }
24959if test $ac_cv_func_strtod = no; then
24960 case " $LIBOBJS " in
24961 *" strtod.$ac_objext "* ) ;;
24962 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24963 ;;
24964esac
24965
cristy8b350f62009-11-15 23:12:43 +000024966ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024967if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024968
cristy3ed852e2009-09-05 21:47:34 +000024969fi
24970
cristy3ed852e2009-09-05 21:47:34 +000024971if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024973$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024974if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024975 $as_echo_n "(cached) " >&6
24976else
24977 ac_check_lib_save_LIBS=$LIBS
24978LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024980/* end confdefs.h. */
24981
24982/* Override any GCC internal prototype to avoid an error.
24983 Use char because int might match the return type of a GCC
24984 builtin and then its argument prototype would still apply. */
24985#ifdef __cplusplus
24986extern "C"
24987#endif
24988char pow ();
24989int
24990main ()
24991{
24992return pow ();
24993 ;
24994 return 0;
24995}
24996_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024997if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024998 ac_cv_lib_m_pow=yes
24999else
cristy8b350f62009-11-15 23:12:43 +000025000 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025001fi
cristy8b350f62009-11-15 23:12:43 +000025002rm -f core conftest.err conftest.$ac_objext \
25003 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025004LIBS=$ac_check_lib_save_LIBS
25005fi
cristy8b350f62009-11-15 23:12:43 +000025006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025007$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025008if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025009 POW_LIB=-lm
25010else
cristy8b350f62009-11-15 23:12:43 +000025011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025012$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25013fi
25014
25015fi
25016
25017fi
25018
cristy7d4a1d62011-10-13 15:54:12 +000025019ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25020if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25021 ac_have_decl=1
25022else
25023 ac_have_decl=0
25024fi
25025
25026cat >>confdefs.h <<_ACEOF
25027#define HAVE_DECL_STRERROR_R $ac_have_decl
25028_ACEOF
25029
25030for ac_func in strerror_r
25031do :
25032 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25033if test "x$ac_cv_func_strerror_r" = xyes; then :
25034 cat >>confdefs.h <<_ACEOF
25035#define HAVE_STRERROR_R 1
25036_ACEOF
25037
25038fi
25039done
25040
25041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25042$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25043if ${ac_cv_func_strerror_r_char_p+:} false; then :
25044 $as_echo_n "(cached) " >&6
25045else
25046
25047 ac_cv_func_strerror_r_char_p=no
25048 if test $ac_cv_have_decl_strerror_r = yes; then
25049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25050/* end confdefs.h. */
25051$ac_includes_default
25052int
25053main ()
25054{
25055
25056 char buf[100];
25057 char x = *strerror_r (0, buf, sizeof buf);
25058 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025059 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025060
25061 ;
25062 return 0;
25063}
25064_ACEOF
25065if ac_fn_c_try_compile "$LINENO"; then :
25066 ac_cv_func_strerror_r_char_p=yes
25067fi
25068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25069 else
25070 # strerror_r is not declared. Choose between
25071 # systems that have relatively inaccessible declarations for the
25072 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25073 # former has a strerror_r that returns char*, while the latter
25074 # has a strerror_r that returns `int'.
25075 # This test should segfault on the DEC system.
25076 if test "$cross_compiling" = yes; then :
25077 :
25078else
25079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25080/* end confdefs.h. */
25081$ac_includes_default
25082 extern char *strerror_r ();
25083int
25084main ()
25085{
25086char buf[100];
25087 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025088 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025089 ;
25090 return 0;
25091}
25092_ACEOF
25093if ac_fn_c_try_run "$LINENO"; then :
25094 ac_cv_func_strerror_r_char_p=yes
25095fi
25096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25097 conftest.$ac_objext conftest.beam conftest.$ac_ext
25098fi
25099
25100 fi
25101
25102fi
25103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25104$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25105if test $ac_cv_func_strerror_r_char_p = yes; then
25106
25107$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25108
25109fi
25110
cristy3ed852e2009-09-05 21:47:34 +000025111for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025112do :
25113 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025114if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025115 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025116#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025117_ACEOF
25118
cristy8b350f62009-11-15 23:12:43 +000025119ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025120if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025121
cristy8b350f62009-11-15 23:12:43 +000025122$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025123
25124fi
25125
25126fi
25127done
25128
25129
25130
cristy161b9262010-03-20 19:34:32 +000025131#
25132# Find math library
25133#
25134MATH_LIBS=''
25135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25136$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025137if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025138 $as_echo_n "(cached) " >&6
25139else
25140 ac_check_lib_save_LIBS=$LIBS
25141LIBS="-lm $LIBS"
25142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25143/* end confdefs.h. */
25144
25145/* Override any GCC internal prototype to avoid an error.
25146 Use char because int might match the return type of a GCC
25147 builtin and then its argument prototype would still apply. */
25148#ifdef __cplusplus
25149extern "C"
25150#endif
25151char sqrt ();
25152int
25153main ()
25154{
25155return sqrt ();
25156 ;
25157 return 0;
25158}
25159_ACEOF
25160if ac_fn_c_try_link "$LINENO"; then :
25161 ac_cv_lib_m_sqrt=yes
25162else
25163 ac_cv_lib_m_sqrt=no
25164fi
25165rm -f core conftest.err conftest.$ac_objext \
25166 conftest$ac_exeext conftest.$ac_ext
25167LIBS=$ac_check_lib_save_LIBS
25168fi
25169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25170$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025171if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025172 MATH_LIBS="-lm"
25173fi
25174
25175LIBS="$MATH_LIBS $LIBS"
25176
25177
cristy85572162013-01-04 19:19:32 +000025178#
25179# Find socket library
25180#
cristy8a5d7f42013-01-06 15:24:33 +000025181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25182$as_echo_n "checking for library containing gethostbyname... " >&6; }
25183if ${ac_cv_search_gethostbyname+:} false; then :
25184 $as_echo_n "(cached) " >&6
25185else
25186 ac_func_search_save_LIBS=$LIBS
25187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25188/* end confdefs.h. */
25189
25190/* Override any GCC internal prototype to avoid an error.
25191 Use char because int might match the return type of a GCC
25192 builtin and then its argument prototype would still apply. */
25193#ifdef __cplusplus
25194extern "C"
25195#endif
25196char gethostbyname ();
25197int
25198main ()
25199{
25200return gethostbyname ();
25201 ;
25202 return 0;
25203}
25204_ACEOF
25205for ac_lib in '' resolv nsl; do
25206 if test -z "$ac_lib"; then
25207 ac_res="none required"
25208 else
25209 ac_res=-l$ac_lib
25210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25211 fi
25212 if ac_fn_c_try_link "$LINENO"; then :
25213 ac_cv_search_gethostbyname=$ac_res
25214fi
25215rm -f core conftest.err conftest.$ac_objext \
25216 conftest$ac_exeext
25217 if ${ac_cv_search_gethostbyname+:} false; then :
25218 break
25219fi
25220done
25221if ${ac_cv_search_gethostbyname+:} false; then :
25222
25223else
25224 ac_cv_search_gethostbyname=no
25225fi
25226rm conftest.$ac_ext
25227LIBS=$ac_func_search_save_LIBS
25228fi
25229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25230$as_echo "$ac_cv_search_gethostbyname" >&6; }
25231ac_res=$ac_cv_search_gethostbyname
25232if test "$ac_res" != no; then :
25233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25234
25235fi
25236
cristy85572162013-01-04 19:19:32 +000025237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25238$as_echo_n "checking for library containing socket... " >&6; }
25239if ${ac_cv_search_socket+:} false; then :
25240 $as_echo_n "(cached) " >&6
25241else
25242 ac_func_search_save_LIBS=$LIBS
25243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25244/* end confdefs.h. */
25245
25246/* Override any GCC internal prototype to avoid an error.
25247 Use char because int might match the return type of a GCC
25248 builtin and then its argument prototype would still apply. */
25249#ifdef __cplusplus
25250extern "C"
25251#endif
25252char socket ();
25253int
25254main ()
25255{
25256return socket ();
25257 ;
25258 return 0;
25259}
25260_ACEOF
25261for ac_lib in '' socket; do
25262 if test -z "$ac_lib"; then
25263 ac_res="none required"
25264 else
25265 ac_res=-l$ac_lib
25266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25267 fi
25268 if ac_fn_c_try_link "$LINENO"; then :
25269 ac_cv_search_socket=$ac_res
25270fi
25271rm -f core conftest.err conftest.$ac_objext \
25272 conftest$ac_exeext
25273 if ${ac_cv_search_socket+:} false; then :
25274 break
25275fi
25276done
25277if ${ac_cv_search_socket+:} false; then :
25278
25279else
25280 ac_cv_search_socket=no
25281fi
25282rm conftest.$ac_ext
25283LIBS=$ac_func_search_save_LIBS
25284fi
25285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25286$as_echo "$ac_cv_search_socket" >&6; }
25287ac_res=$ac_cv_search_socket
25288if test "$ac_res" != no; then :
25289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25290
cristy85572162013-01-04 19:19:32 +000025291
cristy8a5d7f42013-01-06 15:24:33 +000025292$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025293
cristy03f187e2013-01-24 00:22:19 +000025294 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025295
25296fi
25297
25298
25299for 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 +000025300do :
25301 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25302ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025303if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025304 cat >>confdefs.h <<_ACEOF
25305#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25306_ACEOF
25307
25308fi
25309done
25310
25311
cristye43a45e2009-09-28 14:49:00 +000025312#
25313# Check for clock_gettime().
25314#
cristy8b350f62009-11-15 23:12:43 +000025315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025316$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025317if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025318 $as_echo_n "(cached) " >&6
25319else
25320 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025322/* end confdefs.h. */
25323
25324/* Override any GCC internal prototype to avoid an error.
25325 Use char because int might match the return type of a GCC
25326 builtin and then its argument prototype would still apply. */
25327#ifdef __cplusplus
25328extern "C"
25329#endif
25330char clock_gettime ();
25331int
25332main ()
25333{
25334return clock_gettime ();
25335 ;
25336 return 0;
25337}
25338_ACEOF
25339for ac_lib in '' rt; do
25340 if test -z "$ac_lib"; then
25341 ac_res="none required"
25342 else
25343 ac_res=-l$ac_lib
25344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25345 fi
cristy8b350f62009-11-15 23:12:43 +000025346 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025347 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025348fi
cristy8b350f62009-11-15 23:12:43 +000025349rm -f core conftest.err conftest.$ac_objext \
25350 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025351 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025352 break
25353fi
25354done
cristyda16f162011-02-19 23:52:17 +000025355if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025356
cristye43a45e2009-09-28 14:49:00 +000025357else
25358 ac_cv_search_clock_gettime=no
25359fi
25360rm conftest.$ac_ext
25361LIBS=$ac_func_search_save_LIBS
25362fi
cristy8b350f62009-11-15 23:12:43 +000025363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025364$as_echo "$ac_cv_search_clock_gettime" >&6; }
25365ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025366if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25368
25369
cristy8b350f62009-11-15 23:12:43 +000025370$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025371
cristy8b350f62009-11-15 23:12:43 +000025372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025373$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025375/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025376
25377 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025378int
25379main ()
25380{
25381clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025382 ;
25383 return 0;
25384}
25385_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025386if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025387
cristyad38abe2012-12-23 23:03:21 +000025388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25389$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025390
cristy8b350f62009-11-15 23:12:43 +000025391$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025392
25393
25394else
cristyad38abe2012-12-23 23:03:21 +000025395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25396$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025397
25398fi
cristye43a45e2009-09-28 14:49:00 +000025399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25400
25401else
25402
cristy8b350f62009-11-15 23:12:43 +000025403 for ac_func in gettimeofday ftime
25404do :
25405 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25406ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025407if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025408 cat >>confdefs.h <<_ACEOF
25409#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25410_ACEOF
25411 break
25412fi
25413done
25414
25415
25416
25417fi
25418
25419
cristy3ed852e2009-09-05 21:47:34 +000025420########
25421#
25422# Check for function prototypes
25423#
25424########
25425
cristy8b350f62009-11-15 23:12:43 +000025426ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025427#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025428"
cristyda16f162011-02-19 23:52:17 +000025429if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025430 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025431else
cristy8b350f62009-11-15 23:12:43 +000025432 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025433fi
25434
cristy3ed852e2009-09-05 21:47:34 +000025435cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025436#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025437_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025438ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025439#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025440"
cristyda16f162011-02-19 23:52:17 +000025441if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025442 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025443else
cristy8b350f62009-11-15 23:12:43 +000025444 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025445fi
25446
cristy3ed852e2009-09-05 21:47:34 +000025447cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025448#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025449_ACEOF
25450
25451
cristy8b350f62009-11-15 23:12:43 +000025452ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025453#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025454"
cristyda16f162011-02-19 23:52:17 +000025455if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025456 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025457else
cristy8b350f62009-11-15 23:12:43 +000025458 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025459fi
25460
cristy3ed852e2009-09-05 21:47:34 +000025461cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025462#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025463_ACEOF
25464
25465
cristy8b350f62009-11-15 23:12:43 +000025466ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025467#include <stdio.h>
25468#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025469"
cristyda16f162011-02-19 23:52:17 +000025470if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025471 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025472else
cristy8b350f62009-11-15 23:12:43 +000025473 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025474fi
25475
cristy3ed852e2009-09-05 21:47:34 +000025476cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025477#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025478_ACEOF
25479
25480
cristy3ed852e2009-09-05 21:47:34 +000025481########
25482#
25483# C++ Support Tests (For Magick++)
25484#
25485########
25486have_magick_plus_plus='no'
25487if test "$with_magick_plus_plus" = 'yes'; then
25488 OLIBS="$LIBS"
25489 LIBS=''
25490 ac_ext=cpp
25491ac_cpp='$CXXCPP $CPPFLAGS'
25492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25495
25496
25497 # Full set of headers used...
25498 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25499 # functional iomanip iosfwd iostream iterator list string strstream utility
25500 ac_ext=cpp
25501ac_cpp='$CXXCPP $CPPFLAGS'
25502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25505
25506 ac_ext=cpp
25507ac_cpp='$CXXCPP $CPPFLAGS'
25508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25511if test -z "$CXX"; then
25512 if test -n "$CCC"; then
25513 CXX=$CCC
25514 else
25515 if test -n "$ac_tool_prefix"; then
25516 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25517 do
25518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25519set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025521$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025522if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025523 $as_echo_n "(cached) " >&6
25524else
25525 if test -n "$CXX"; then
25526 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25527else
25528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25529for as_dir in $PATH
25530do
25531 IFS=$as_save_IFS
25532 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025533 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025535 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025537 break 2
25538 fi
25539done
cristy8b350f62009-11-15 23:12:43 +000025540 done
cristy3ed852e2009-09-05 21:47:34 +000025541IFS=$as_save_IFS
25542
25543fi
25544fi
25545CXX=$ac_cv_prog_CXX
25546if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025548$as_echo "$CXX" >&6; }
25549else
cristy8b350f62009-11-15 23:12:43 +000025550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025551$as_echo "no" >&6; }
25552fi
25553
25554
25555 test -n "$CXX" && break
25556 done
25557fi
25558if test -z "$CXX"; then
25559 ac_ct_CXX=$CXX
25560 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25561do
25562 # Extract the first word of "$ac_prog", so it can be a program name with args.
25563set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025565$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025566if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025567 $as_echo_n "(cached) " >&6
25568else
25569 if test -n "$ac_ct_CXX"; then
25570 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25571else
25572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25573for as_dir in $PATH
25574do
25575 IFS=$as_save_IFS
25576 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025577 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025579 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025581 break 2
25582 fi
25583done
cristy8b350f62009-11-15 23:12:43 +000025584 done
cristy3ed852e2009-09-05 21:47:34 +000025585IFS=$as_save_IFS
25586
25587fi
25588fi
25589ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25590if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025592$as_echo "$ac_ct_CXX" >&6; }
25593else
cristy8b350f62009-11-15 23:12:43 +000025594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025595$as_echo "no" >&6; }
25596fi
25597
25598
25599 test -n "$ac_ct_CXX" && break
25600done
25601
25602 if test "x$ac_ct_CXX" = x; then
25603 CXX="g++"
25604 else
25605 case $cross_compiling:$ac_tool_warned in
25606yes:)
cristy8b350f62009-11-15 23:12:43 +000025607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25609ac_tool_warned=yes ;;
25610esac
25611 CXX=$ac_ct_CXX
25612 fi
25613fi
25614
25615 fi
25616fi
25617# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025618$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025619set X $ac_compile
25620ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025621for ac_option in --version -v -V -qversion; do
25622 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025623case "(($ac_try" in
25624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625 *) ac_try_echo=$ac_try;;
25626esac
cristy8b350f62009-11-15 23:12:43 +000025627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25628$as_echo "$ac_try_echo"; } >&5
25629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025630 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025631 if test -s conftest.err; then
25632 sed '10a\
25633... rest of stderr output deleted ...
25634 10q' conftest.err >conftest.er1
25635 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025636 fi
cristycd4c5312009-11-22 01:19:08 +000025637 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25639 test $ac_status = 0; }
25640done
cristy3ed852e2009-09-05 21:47:34 +000025641
cristy8b350f62009-11-15 23:12:43 +000025642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025643$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025644if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025645 $as_echo_n "(cached) " >&6
25646else
cristy8b350f62009-11-15 23:12:43 +000025647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025648/* end confdefs.h. */
25649
25650int
25651main ()
25652{
25653#ifndef __GNUC__
25654 choke me
25655#endif
25656
25657 ;
25658 return 0;
25659}
25660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025661if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025662 ac_compiler_gnu=yes
25663else
cristy8b350f62009-11-15 23:12:43 +000025664 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025665fi
cristy3ed852e2009-09-05 21:47:34 +000025666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25667ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25668
25669fi
cristy8b350f62009-11-15 23:12:43 +000025670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025671$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25672if test $ac_compiler_gnu = yes; then
25673 GXX=yes
25674else
25675 GXX=
25676fi
25677ac_test_CXXFLAGS=${CXXFLAGS+set}
25678ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025680$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025681if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025682 $as_echo_n "(cached) " >&6
25683else
25684 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25685 ac_cxx_werror_flag=yes
25686 ac_cv_prog_cxx_g=no
25687 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025689/* end confdefs.h. */
25690
25691int
25692main ()
25693{
25694
25695 ;
25696 return 0;
25697}
25698_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025699if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025700 ac_cv_prog_cxx_g=yes
25701else
cristy8b350f62009-11-15 23:12:43 +000025702 CXXFLAGS=""
25703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025704/* end confdefs.h. */
25705
25706int
25707main ()
25708{
25709
25710 ;
25711 return 0;
25712}
25713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025714if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025715
cristy8b350f62009-11-15 23:12:43 +000025716else
25717 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025718 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025720/* end confdefs.h. */
25721
25722int
25723main ()
25724{
25725
25726 ;
25727 return 0;
25728}
25729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025730if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025731 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025732fi
cristy3ed852e2009-09-05 21:47:34 +000025733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25734fi
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
25738 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25739fi
cristy8b350f62009-11-15 23:12:43 +000025740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025741$as_echo "$ac_cv_prog_cxx_g" >&6; }
25742if test "$ac_test_CXXFLAGS" = set; then
25743 CXXFLAGS=$ac_save_CXXFLAGS
25744elif test $ac_cv_prog_cxx_g = yes; then
25745 if test "$GXX" = yes; then
25746 CXXFLAGS="-g -O2"
25747 else
25748 CXXFLAGS="-g"
25749 fi
25750else
25751 if test "$GXX" = yes; then
25752 CXXFLAGS="-O2"
25753 else
25754 CXXFLAGS=
25755 fi
25756fi
25757ac_ext=cpp
25758ac_cpp='$CXXCPP $CPPFLAGS'
25759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25762
cristy73bd4a52010-10-05 11:24:23 +000025763depcc="$CXX" am_compiler_list=
25764
25765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25766$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025767if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025768 $as_echo_n "(cached) " >&6
25769else
25770 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25771 # We make a subdir and do the tests there. Otherwise we can end up
25772 # making bogus files that we don't know about and never remove. For
25773 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025774 # making a dummy file named 'D' -- because '-MD' means "put the output
25775 # in D".
cristy7247bba2012-02-05 16:37:27 +000025776 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025777 mkdir conftest.dir
25778 # Copy depcomp to subdir because otherwise we won't find it if we're
25779 # using a relative directory.
25780 cp "$am_depcomp" conftest.dir
25781 cd conftest.dir
25782 # We will build objects and dependencies in a subdirectory because
25783 # it helps to detect inapplicable dependency modes. For instance
25784 # both Tru64's cc and ICC support -MD to output dependencies as a
25785 # side effect of compilation, but ICC will put the dependencies in
25786 # the current directory while Tru64 will put them in the object
25787 # directory.
25788 mkdir sub
25789
25790 am_cv_CXX_dependencies_compiler_type=none
25791 if test "$am_compiler_list" = ""; then
25792 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25793 fi
25794 am__universal=false
25795 case " $depcc " in #(
25796 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25797 esac
25798
25799 for depmode in $am_compiler_list; do
25800 # Setup a source with many dependencies, because some compilers
25801 # like to wrap large dependency lists on column 80 (with \), and
25802 # we should not choose a depcomp mode which is confused by this.
25803 #
25804 # We need to recreate these files for each test, as the compiler may
25805 # overwrite some of them when testing with obscure command lines.
25806 # This happens at least with the AIX C compiler.
25807 : > sub/conftest.c
25808 for i in 1 2 3 4 5 6; do
25809 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025810 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25811 # Solaris 10 /bin/sh.
25812 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025813 done
25814 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25815
cristyc0890a62012-07-19 00:18:20 +000025816 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025817 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025818 # handle '-M -o', and we need to detect this. Also, some Intel
25819 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025820 am__obj=sub/conftest.${OBJEXT-o}
25821 am__minus_obj="-o $am__obj"
25822 case $depmode in
25823 gcc)
25824 # This depmode causes a compiler race in universal mode.
25825 test "$am__universal" = false || continue
25826 ;;
25827 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025828 # After this tag, mechanisms are not by side-effect, so they'll
25829 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025830 if test "x$enable_dependency_tracking" = xyes; then
25831 continue
25832 else
25833 break
25834 fi
25835 ;;
cristy7247bba2012-02-05 16:37:27 +000025836 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025837 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025838 # not run yet. These depmodes are late enough in the game, and
25839 # so weak that their functioning should not be impacted.
25840 am__obj=conftest.${OBJEXT-o}
25841 am__minus_obj=
25842 ;;
25843 none) break ;;
25844 esac
25845 if depmode=$depmode \
25846 source=sub/conftest.c object=$am__obj \
25847 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25848 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25849 >/dev/null 2>conftest.err &&
25850 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25851 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25852 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25853 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25854 # icc doesn't choke on unknown options, it will just issue warnings
25855 # or remarks (even with -Werror). So we grep stderr for any message
25856 # that says an option was ignored or not supported.
25857 # When given -MP, icc 7.0 and 7.1 complain thusly:
25858 # icc: Command line warning: ignoring option '-M'; no argument required
25859 # The diagnosis changed in icc 8.0:
25860 # icc: Command line remark: option '-MP' not supported
25861 if (grep 'ignoring option' conftest.err ||
25862 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25863 am_cv_CXX_dependencies_compiler_type=$depmode
25864 break
25865 fi
25866 fi
25867 done
25868
25869 cd ..
25870 rm -rf conftest.dir
25871else
25872 am_cv_CXX_dependencies_compiler_type=none
25873fi
25874
25875fi
25876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25877$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25878CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25879
25880 if
25881 test "x$enable_dependency_tracking" != xno \
25882 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25883 am__fastdepCXX_TRUE=
25884 am__fastdepCXX_FALSE='#'
25885else
25886 am__fastdepCXX_TRUE='#'
25887 am__fastdepCXX_FALSE=
25888fi
25889
25890
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25892$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025893if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025894 $as_echo_n "(cached) " >&6
25895else
25896
25897 ac_ext=cpp
25898ac_cpp='$CXXCPP $CPPFLAGS'
25899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25902
25903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25904/* end confdefs.h. */
25905
25906int f(int x){return 1;}
25907int f(char x){return 1;}
25908int f(bool x){return 1;}
25909
25910int
25911main ()
25912{
25913bool b = true; return f(b);
25914 ;
25915 return 0;
25916}
25917_ACEOF
25918if ac_fn_cxx_try_compile "$LINENO"; then :
25919 ax_cv_cxx_bool=yes
25920else
25921 ax_cv_cxx_bool=no
25922fi
25923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25924 ac_ext=cpp
25925ac_cpp='$CXXCPP $CPPFLAGS'
25926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25929
25930
25931fi
25932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25933$as_echo "$ax_cv_cxx_bool" >&6; }
25934if test "$ax_cv_cxx_bool" = yes; then
25935
25936$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25937
25938fi
25939
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25941$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025942if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025943 $as_echo_n "(cached) " >&6
25944else
25945
25946 ac_ext=cpp
25947ac_cpp='$CXXCPP $CPPFLAGS'
25948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25951
25952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25953/* end confdefs.h. */
25954namespace Outer { namespace Inner { int i = 0; }}
25955int
25956main ()
25957{
25958using namespace Outer::Inner; return i;
25959 ;
25960 return 0;
25961}
25962_ACEOF
25963if ac_fn_cxx_try_compile "$LINENO"; then :
25964 ax_cv_cxx_namespaces=yes
25965else
25966 ax_cv_cxx_namespaces=no
25967fi
25968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25969 ac_ext=cpp
25970ac_cpp='$CXXCPP $CPPFLAGS'
25971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25974
25975
25976fi
25977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25978$as_echo "$ax_cv_cxx_namespaces" >&6; }
25979if test "$ax_cv_cxx_namespaces" = yes; then
25980
25981$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25982
25983fi
25984
25985
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25987$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025988if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025989 $as_echo_n "(cached) " >&6
25990else
25991
25992 ac_ext=cpp
25993ac_cpp='$CXXCPP $CPPFLAGS'
25994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25997
25998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25999/* end confdefs.h. */
26000#include <iostream>
26001 std::istream& is = std::cin;
26002int
26003main ()
26004{
26005
26006 ;
26007 return 0;
26008}
26009_ACEOF
26010if ac_fn_cxx_try_compile "$LINENO"; then :
26011 ax_cv_cxx_have_std_namespace=yes
26012else
26013 ax_cv_cxx_have_std_namespace=no
26014fi
26015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26016 ac_ext=cpp
26017ac_cpp='$CXXCPP $CPPFLAGS'
26018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26021
26022
26023fi
26024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26025$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26026 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26027
26028$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26029
26030 fi
26031
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26033$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026034if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026035 $as_echo_n "(cached) " >&6
26036else
26037
26038
26039 ac_ext=cpp
26040ac_cpp='$CXXCPP $CPPFLAGS'
26041ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26042ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26043ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26044
26045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26046/* end confdefs.h. */
26047#include <iostream>
26048#include <map>
26049#include <iomanip>
26050#include <cmath>
26051#ifdef HAVE_NAMESPACES
26052using namespace std;
26053#endif
26054int
26055main ()
26056{
26057return 0;
26058 ;
26059 return 0;
26060}
26061_ACEOF
26062if ac_fn_cxx_try_compile "$LINENO"; then :
26063 ac_cv_cxx_have_std_libs=yes
26064else
26065 ac_cv_cxx_have_std_libs=no
26066fi
26067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26068 ac_ext=cpp
26069ac_cpp='$CXXCPP $CPPFLAGS'
26070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26073
26074
26075fi
26076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26077$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26078if test "$ac_cv_cxx_have_std_libs" = yes; then
26079
26080$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26081
26082fi
26083
cristy3ed852e2009-09-05 21:47:34 +000026084
26085 OPENMP_CXXFLAGS=
26086 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026087if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026088 enableval=$enable_openmp;
26089fi
26090
26091 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26093$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026094if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026095 $as_echo_n "(cached) " >&6
26096else
cristy8b350f62009-11-15 23:12:43 +000026097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26098/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026099
26100#ifndef _OPENMP
26101 choke me
26102#endif
26103#include <omp.h>
26104int main () { return omp_get_num_threads (); }
26105
26106_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026107if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026108 ac_cv_prog_cxx_openmp='none needed'
26109else
cristy8b350f62009-11-15 23:12:43 +000026110 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026111 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26112 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026113 ac_save_CXXFLAGS=$CXXFLAGS
26114 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26116/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026117
26118#ifndef _OPENMP
26119 choke me
26120#endif
26121#include <omp.h>
26122int main () { return omp_get_num_threads (); }
26123
26124_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026125if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026126 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026127fi
cristy8b350f62009-11-15 23:12:43 +000026128rm -f core conftest.err conftest.$ac_objext \
26129 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026130 CXXFLAGS=$ac_save_CXXFLAGS
26131 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26132 break
26133 fi
26134 done
26135fi
cristy8b350f62009-11-15 23:12:43 +000026136rm -f core conftest.err conftest.$ac_objext \
26137 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026138fi
cristy8b350f62009-11-15 23:12:43 +000026139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026140$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26141 case $ac_cv_prog_cxx_openmp in #(
26142 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026143 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026144 *)
cristy8b350f62009-11-15 23:12:43 +000026145 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026146 esac
26147 fi
26148
26149
26150 ac_ext=c
26151ac_cpp='$CPP $CPPFLAGS'
26152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26154ac_compiler_gnu=$ac_cv_c_compiler_gnu
26155
26156
cristy8b350f62009-11-15 23:12:43 +000026157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026158$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26159 if \
cristy964cb7f2010-04-25 23:18:00 +000026160 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026161 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026162 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026163 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026164 have_magick_plus_plus='yes'
26165 else
26166 have_magick_plus_plus='no (failed tests)'
26167 fi
cristyad38abe2012-12-23 23:03:21 +000026168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26169$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026170 LIBS="$OLIBS"
26171fi
cristy73bd4a52010-10-05 11:24:23 +000026172 if test "$have_magick_plus_plus" = 'yes'; then
26173 WITH_MAGICK_PLUS_PLUS_TRUE=
26174 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26175else
26176 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26177 WITH_MAGICK_PLUS_PLUS_FALSE=
26178fi
26179
cristy3ed852e2009-09-05 21:47:34 +000026180
26181# Only check for delegate libraries in subdirectories if requested.
26182if test "$enable_delegate_build" != 'no'; then
26183 # Check for delegate sub-directories and add -I & -L options as required.
26184 # This presumes that delegates are installed as detailed in the ImageMagick
26185 # README. If delegates are installed in a standard location where the
26186 # compiler will automatically find them then these options should not be
26187 # required.
26188
26189 #
26190 # Most delegates have includes in the same directory as the library, but not all...
26191 #
26192 # Includes
cristy31269aa2014-04-06 13:07:35 +000026193 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026194 if test -d "$builddir/$dir"; then
26195 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26196 else
26197 if test -d "$srcdirfull/$dir"; then
26198 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26199 fi
26200 fi
26201 done
26202
26203 # Libraries
cristy31269aa2014-04-06 13:07:35 +000026204 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026205 if test -d "$builddir/$dir/.libs"; then
26206 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26207 else
26208 if test -d "$srcdirfull/$dir/.libs"; then
26209 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26210 fi
26211 fi
26212 if test -d "$builddir/$dir"; then
26213 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26214 else
26215 if test -d "$srcdirfull/$dir"; then
26216 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26217 fi
26218 fi
26219 done
26220fi
26221
26222# Assume that delegate headers reside under same directory as ImageMagick
26223# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026224MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026225
26226#
26227# Find the X11 RGB database
26228#
cristy8b350f62009-11-15 23:12:43 +000026229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026230$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026231if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026232 $as_echo_n "(cached) " >&6
26233else
26234 # Look for the header file in a standard set of common directories.
26235# Check X11 before X11Rn because it is often a symlink to the current release.
26236 for ac_dir in \
26237 /lib/usr/lib/X11 \
26238 /usr/X11/lib \
26239 /usr/X11R4/lib \
26240 /usr/X11R5/lib \
26241 /usr/X11R6/lib \
26242 /usr/X11R7/lib \
26243 /usr/X386/lib \
26244 /usr/XFree86/lib/X11 \
26245 /usr/athena/lib \
26246 /usr/lib \
26247 /usr/lib/X11 \
26248 /usr/lib/X11R4 \
26249 /usr/lib/X11R5 \
26250 /usr/lib/X11R6 \
26251 /usr/lib/X11R7 \
26252 /usr/local/X11/lib \
26253 /usr/local/X11R4/lib \
26254 /usr/local/X11R5/lib \
26255 /usr/local/X11R6/lib \
26256 /usr/local/lib \
26257 /usr/local/lib/X11 \
26258 /usr/local/lib/X11R4 \
26259 /usr/local/lib/X11R5 \
26260 /usr/local/lib/X11R6 \
26261 /usr/local/lib/X11R7 \
26262 /usr/local/x11r5/lib \
26263 /usr/lpp/Xamples/lib \
26264 /usr/openwin/lib \
26265 /usr/openwin/share/lib \
26266 /usr/unsupported/lib \
26267 /usr/x386/lib \
26268 ; do
26269 if test -f "$ac_dir/X11/rgb.txt"; then
26270 im_cv_x_configure="$ac_dir/X11/"
26271 break
26272 elif test -f "$ac_dir/rgb.txt"; then
26273 im_cv_x_configure="$ac_dir/"
26274 break
26275 fi
26276
26277 done
26278fi
cristy8b350f62009-11-15 23:12:43 +000026279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026280$as_echo "$im_cv_x_configure" >&6; }
26281X11_CONFIGURE_PATH="$im_cv_x_configure"
26282case "${build_os}" in
26283 mingw* )
26284 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26285 ;;
26286esac
26287
26288cat >>confdefs.h <<_ACEOF
26289#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26290_ACEOF
26291
26292
26293#
26294# Find OpenMP library
26295#
26296GOMP_LIBS=''
26297if test "$enable_openmp" != 'no'; then
26298 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026299 # Open64 (passes for GCC but uses different OpenMP implementation)
26300 if test "x$GOMP_LIBS" = x ; then
26301 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26303$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26304if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26305 $as_echo_n "(cached) " >&6
26306else
26307 ac_check_lib_save_LIBS=$LIBS
26308LIBS="-lopenmp $LIBS"
26309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26310/* end confdefs.h. */
26311
26312/* Override any GCC internal prototype to avoid an error.
26313 Use char because int might match the return type of a GCC
26314 builtin and then its argument prototype would still apply. */
26315#ifdef __cplusplus
26316extern "C"
26317#endif
26318char omp_get_num_procs ();
26319int
26320main ()
26321{
26322return omp_get_num_procs ();
26323 ;
26324 return 0;
26325}
26326_ACEOF
26327if ac_fn_c_try_link "$LINENO"; then :
26328 ac_cv_lib_openmp_omp_get_num_procs=yes
26329else
26330 ac_cv_lib_openmp_omp_get_num_procs=no
26331fi
26332rm -f core conftest.err conftest.$ac_objext \
26333 conftest$ac_exeext conftest.$ac_ext
26334LIBS=$ac_check_lib_save_LIBS
26335fi
26336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26337$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26338if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26339 GOMP_LIBS="-lopenmp"
26340fi
26341
26342 fi
26343 fi
26344 # GCC
26345 if test "x$GOMP_LIBS" = x ; then
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026347$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026348if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026349 $as_echo_n "(cached) " >&6
26350else
26351 ac_check_lib_save_LIBS=$LIBS
26352LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026354/* end confdefs.h. */
26355
26356/* Override any GCC internal prototype to avoid an error.
26357 Use char because int might match the return type of a GCC
26358 builtin and then its argument prototype would still apply. */
26359#ifdef __cplusplus
26360extern "C"
26361#endif
26362char GOMP_parallel_start ();
26363int
26364main ()
26365{
26366return GOMP_parallel_start ();
26367 ;
26368 return 0;
26369}
26370_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026371if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026372 ac_cv_lib_gomp_GOMP_parallel_start=yes
26373else
cristy8b350f62009-11-15 23:12:43 +000026374 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026375fi
cristy8b350f62009-11-15 23:12:43 +000026376rm -f core conftest.err conftest.$ac_objext \
26377 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026378LIBS=$ac_check_lib_save_LIBS
26379fi
cristy8b350f62009-11-15 23:12:43 +000026380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026381$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026382if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026383 GOMP_LIBS="-lgomp"
26384fi
cristy18307f12011-12-30 01:20:16 +000026385
26386 fi
cristy3ed852e2009-09-05 21:47:34 +000026387 else
cristy18307f12011-12-30 01:20:16 +000026388 # Sun CC
26389 if test "x$GOMP_LIBS" = x ; then
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026391$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026392if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026393 $as_echo_n "(cached) " >&6
26394else
26395 ac_check_lib_save_LIBS=$LIBS
26396LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026398/* end confdefs.h. */
26399
26400/* Override any GCC internal prototype to avoid an error.
26401 Use char because int might match the return type of a GCC
26402 builtin and then its argument prototype would still apply. */
26403#ifdef __cplusplus
26404extern "C"
26405#endif
26406char sunw_mp_register_warn ();
26407int
26408main ()
26409{
26410return sunw_mp_register_warn ();
26411 ;
26412 return 0;
26413}
26414_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026415if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026416 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26417else
cristy8b350f62009-11-15 23:12:43 +000026418 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026419fi
cristy8b350f62009-11-15 23:12:43 +000026420rm -f core conftest.err conftest.$ac_objext \
26421 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026422LIBS=$ac_check_lib_save_LIBS
26423fi
cristy8b350f62009-11-15 23:12:43 +000026424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026425$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026426if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026427 GOMP_LIBS="-lmtsk"
26428fi
cristy18307f12011-12-30 01:20:16 +000026429
26430 fi
26431 # AIX xlc
26432 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026434$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026435if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026436 $as_echo_n "(cached) " >&6
26437else
26438 ac_check_lib_save_LIBS=$LIBS
26439LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026441/* end confdefs.h. */
26442
26443/* Override any GCC internal prototype to avoid an error.
26444 Use char because int might match the return type of a GCC
26445 builtin and then its argument prototype would still apply. */
26446#ifdef __cplusplus
26447extern "C"
26448#endif
26449char _xlsmpFlush ();
26450int
26451main ()
26452{
26453return _xlsmpFlush ();
26454 ;
26455 return 0;
26456}
26457_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026458if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026459 ac_cv_lib_xlsmp__xlsmpFlush=yes
26460else
cristy8b350f62009-11-15 23:12:43 +000026461 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026462fi
cristy8b350f62009-11-15 23:12:43 +000026463rm -f core conftest.err conftest.$ac_objext \
26464 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026465LIBS=$ac_check_lib_save_LIBS
26466fi
cristy8b350f62009-11-15 23:12:43 +000026467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026468$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026469if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026470 GOMP_LIBS="-lxlsmp"
26471fi
cristy18307f12011-12-30 01:20:16 +000026472
26473 fi
26474 # SGI IRIX 6.5 MIPSpro C/C++
26475 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026477$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026478if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026479 $as_echo_n "(cached) " >&6
26480else
26481 ac_check_lib_save_LIBS=$LIBS
26482LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026484/* end confdefs.h. */
26485
26486/* Override any GCC internal prototype to avoid an error.
26487 Use char because int might match the return type of a GCC
26488 builtin and then its argument prototype would still apply. */
26489#ifdef __cplusplus
26490extern "C"
26491#endif
26492char mp_destroy ();
26493int
26494main ()
26495{
26496return mp_destroy ();
26497 ;
26498 return 0;
26499}
26500_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026501if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026502 ac_cv_lib_mp_mp_destroy=yes
26503else
cristy8b350f62009-11-15 23:12:43 +000026504 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026505fi
cristy8b350f62009-11-15 23:12:43 +000026506rm -f core conftest.err conftest.$ac_objext \
26507 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026508LIBS=$ac_check_lib_save_LIBS
26509fi
cristy8b350f62009-11-15 23:12:43 +000026510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026511$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026512if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026513 GOMP_LIBS="-lmp"
26514fi
cristy18307f12011-12-30 01:20:16 +000026515
26516 fi
cristy3ed852e2009-09-05 21:47:34 +000026517 fi
26518 LIBS="$GOMP_LIBS $LIBS"
26519fi
26520
26521
cristy3ed852e2009-09-05 21:47:34 +000026522
26523
26524#
26525# Check for umem.
26526#
26527have_umem='no'
26528UMEM_LIBS=''
26529if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026531$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26533$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026534 failed=0
26535 passed=0
cristy8b350f62009-11-15 23:12:43 +000026536 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026537if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026538 passed=`expr $passed + 1`
26539else
26540 failed=`expr $failed + 1`
26541fi
26542
26543
cristy8b350f62009-11-15 23:12:43 +000026544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026545$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026546if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026547 $as_echo_n "(cached) " >&6
26548else
26549 ac_check_lib_save_LIBS=$LIBS
26550LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026552/* end confdefs.h. */
26553
26554/* Override any GCC internal prototype to avoid an error.
26555 Use char because int might match the return type of a GCC
26556 builtin and then its argument prototype would still apply. */
26557#ifdef __cplusplus
26558extern "C"
26559#endif
26560char umem_alloc ();
26561int
26562main ()
26563{
26564return umem_alloc ();
26565 ;
26566 return 0;
26567}
26568_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026569if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026570 ac_cv_lib_umem_umem_alloc=yes
26571else
cristy8b350f62009-11-15 23:12:43 +000026572 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026573fi
cristy8b350f62009-11-15 23:12:43 +000026574rm -f core conftest.err conftest.$ac_objext \
26575 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026576LIBS=$ac_check_lib_save_LIBS
26577fi
cristy8b350f62009-11-15 23:12:43 +000026578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026579$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026580if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026581 passed=`expr $passed + 1`
26582else
26583 failed=`expr $failed + 1`
26584fi
26585
cristy8b350f62009-11-15 23:12:43 +000026586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026587$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026588if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026589 $as_echo_n "(cached) " >&6
26590else
26591 ac_check_lib_save_LIBS=$LIBS
26592LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026594/* end confdefs.h. */
26595
26596/* Override any GCC internal prototype to avoid an error.
26597 Use char because int might match the return type of a GCC
26598 builtin and then its argument prototype would still apply. */
26599#ifdef __cplusplus
26600extern "C"
26601#endif
26602char umem_free ();
26603int
26604main ()
26605{
26606return umem_free ();
26607 ;
26608 return 0;
26609}
26610_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026611if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026612 ac_cv_lib_umem_umem_free=yes
26613else
cristy8b350f62009-11-15 23:12:43 +000026614 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026615fi
cristy8b350f62009-11-15 23:12:43 +000026616rm -f core conftest.err conftest.$ac_objext \
26617 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026618LIBS=$ac_check_lib_save_LIBS
26619fi
cristy8b350f62009-11-15 23:12:43 +000026620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026621$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026622if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026623 passed=`expr $passed + 1`
26624else
26625 failed=`expr $failed + 1`
26626fi
26627
cristy8b350f62009-11-15 23:12:43 +000026628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026629$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26630 if test $passed -gt 0; then
26631 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26633$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026634 have_umem='no (failed tests)'
26635 else
26636 UMEM_LIBS='-lumem'
26637 LIBS="$UMEM_LIBS $LIBS"
26638
cristy8b350f62009-11-15 23:12:43 +000026639$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026640
cristyad38abe2012-12-23 23:03:21 +000026641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26642$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026643 have_umem='yes'
26644 fi
26645 else
cristyad38abe2012-12-23 23:03:21 +000026646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26647$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026648 fi
26649fi
cristy73bd4a52010-10-05 11:24:23 +000026650 if test "$have_umem" = 'yes'; then
26651 HasUMEM_TRUE=
26652 HasUMEM_FALSE='#'
26653else
26654 HasUMEM_TRUE='#'
26655 HasUMEM_FALSE=
26656fi
26657
cristy3ed852e2009-09-05 21:47:34 +000026658
26659
26660#
26661# Add support for ccmalloc memory debugging library if requested
26662#
26663have_ccmalloc='no'
26664CCMALLOC_LIBS=''
26665if test "$enable_ccmalloc" = 'yes'; then
26666 # Extract the first word of "ccmalloc", so it can be a program name with args.
26667set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026669$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026670if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026671 $as_echo_n "(cached) " >&6
26672else
26673 case $CCMALLOCDelegate in
26674 [\\/]* | ?:[\\/]*)
26675 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26676 ;;
26677 *)
26678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26679for as_dir in $PATH
26680do
26681 IFS=$as_save_IFS
26682 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026683 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026685 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026687 break 2
26688 fi
26689done
cristy8b350f62009-11-15 23:12:43 +000026690 done
cristy3ed852e2009-09-05 21:47:34 +000026691IFS=$as_save_IFS
26692
26693 ;;
26694esac
26695fi
26696CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26697if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026699$as_echo "$CCMALLOCDelegate" >&6; }
26700else
cristy8b350f62009-11-15 23:12:43 +000026701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026702$as_echo "no" >&6; }
26703fi
26704
26705
26706 if test -n "$CCMALLOCDelegate"; then
26707 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26708 OLIBS="$LIBS"
26709 # Assume that gcc is used with ccmalloc.
26710 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026712$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026713if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026714 $as_echo_n "(cached) " >&6
26715else
26716 ac_check_lib_save_LIBS=$LIBS
26717LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026719/* end confdefs.h. */
26720
26721/* Override any GCC internal prototype to avoid an error.
26722 Use char because int might match the return type of a GCC
26723 builtin and then its argument prototype would still apply. */
26724#ifdef __cplusplus
26725extern "C"
26726#endif
26727char ccmalloc_malloc ();
26728int
26729main ()
26730{
26731return ccmalloc_malloc ();
26732 ;
26733 return 0;
26734}
26735_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026736if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026737 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26738else
cristy8b350f62009-11-15 23:12:43 +000026739 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026740fi
cristy8b350f62009-11-15 23:12:43 +000026741rm -f core conftest.err conftest.$ac_objext \
26742 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026743LIBS=$ac_check_lib_save_LIBS
26744fi
cristy8b350f62009-11-15 23:12:43 +000026745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026746$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026747if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026748 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26749fi
26750
26751 if test -n "$CCMALLOC_LIBS"; then
26752 LIBS="$OLIBS"
26753 LIBS="$LIBS $CCMALLOC_LIBS"
26754 have_ccmalloc='yes'
26755 else
26756 LIBS="$OLIBS"
26757 fi
26758 fi
26759fi
26760
26761#
cristy944e51f2013-04-16 18:45:02 +000026762# Add support for 'huge pages' if requested
26763#
26764if test "x$enable_hugepages" != "xno"; then :
26765
26766
26767$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26768
26769
26770fi
26771
26772#
cristy3ed852e2009-09-05 21:47:34 +000026773# Add support for efence memory debugging library if requested
26774#
26775if test "$enable_efence" = 'yes'; then
26776 EFENCE_LIBS='-lefence'
26777 LIBS="$EFENCE_LIBS $LIBS"
26778fi
26779
cristy3ed852e2009-09-05 21:47:34 +000026780
26781#
26782# Check for BZLIB
26783#
26784
26785
26786# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026787if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026788 withval=$with_bzlib; with_bzlib=$withval
26789else
26790 with_bzlib='yes'
26791fi
26792
26793
26794if test "$with_bzlib" != 'yes'; then
26795 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26796fi
26797
26798have_bzlib='no'
26799if test "$with_bzlib" != 'no'; then
26800 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26802$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026804$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26806$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026807 failed=0
26808 passed=0
26809 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026810 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026811if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026812 passed=`expr $passed + 1`
26813else
26814 failed=`expr $failed + 1`
26815fi
26816
26817
cristy8b350f62009-11-15 23:12:43 +000026818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026819$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026820if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026821 $as_echo_n "(cached) " >&6
26822else
26823 ac_check_lib_save_LIBS=$LIBS
26824LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026826/* end confdefs.h. */
26827
26828/* Override any GCC internal prototype to avoid an error.
26829 Use char because int might match the return type of a GCC
26830 builtin and then its argument prototype would still apply. */
26831#ifdef __cplusplus
26832extern "C"
26833#endif
26834char BZ2_bzDecompress ();
26835int
26836main ()
26837{
26838return BZ2_bzDecompress ();
26839 ;
26840 return 0;
26841}
26842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026843if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026844 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26845else
cristy8b350f62009-11-15 23:12:43 +000026846 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026847fi
cristy8b350f62009-11-15 23:12:43 +000026848rm -f core conftest.err conftest.$ac_objext \
26849 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026850LIBS=$ac_check_lib_save_LIBS
26851fi
cristy8b350f62009-11-15 23:12:43 +000026852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026853$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026854if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026855 found_libbz=`expr $found_libbz + 1`
26856fi
26857
26858 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026860$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026861if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026862 $as_echo_n "(cached) " >&6
26863else
26864 ac_check_lib_save_LIBS=$LIBS
26865LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026867/* end confdefs.h. */
26868
26869/* Override any GCC internal prototype to avoid an error.
26870 Use char because int might match the return type of a GCC
26871 builtin and then its argument prototype would still apply. */
26872#ifdef __cplusplus
26873extern "C"
26874#endif
26875char _imp__BZ2_decompress ();
26876int
26877main ()
26878{
26879return _imp__BZ2_decompress ();
26880 ;
26881 return 0;
26882}
26883_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026884if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026885 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26886else
cristy8b350f62009-11-15 23:12:43 +000026887 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026888fi
cristy8b350f62009-11-15 23:12:43 +000026889rm -f core conftest.err conftest.$ac_objext \
26890 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026891LIBS=$ac_check_lib_save_LIBS
26892fi
cristy8b350f62009-11-15 23:12:43 +000026893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026894$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026895if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026896 found_libbz=`expr $found_libbz + 1`
26897fi
26898
26899 fi
26900 if test $found_libbz -gt 0; then
26901 passed=`expr $passed + 1`
26902 else
26903 failed=`expr $failed + 1`
26904 fi
cristy8b350f62009-11-15 23:12:43 +000026905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026906$as_echo_n "checking if BZLIB package is complete... " >&6; }
26907 if test $passed -gt 0; then
26908 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26910$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026911 have_bzlib='no (failed tests)'
26912 else
26913 BZLIB_LIBS='-lbz2'
26914 LIBS="$BZLIB_LIBS $LIBS"
26915
cristy8b350f62009-11-15 23:12:43 +000026916$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026917
cristyad38abe2012-12-23 23:03:21 +000026918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26919$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026920 have_bzlib='yes'
26921 fi
26922 else
cristyad38abe2012-12-23 23:03:21 +000026923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26924$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026925 fi
26926fi
cristy73bd4a52010-10-05 11:24:23 +000026927 if test "$have_bzlib" = 'yes'; then
26928 BZLIB_DELEGATE_TRUE=
26929 BZLIB_DELEGATE_FALSE='#'
26930else
26931 BZLIB_DELEGATE_TRUE='#'
26932 BZLIB_DELEGATE_FALSE=
26933fi
26934
cristy3ed852e2009-09-05 21:47:34 +000026935
26936
26937#
26938# Find the X11 include and library directories.
26939#
26940IPC_LIBS=''
26941X11_LIBS=''
26942XEXT_LIBS=''
26943XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026945$as_echo_n "checking for X... " >&6; }
26946
26947
26948# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026949if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026950 withval=$with_x;
26951fi
26952
26953# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26954if test "x$with_x" = xno; then
26955 # The user explicitly disabled X.
26956 have_x=disabled
26957else
26958 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026959 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026960 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026961 $as_echo_n "(cached) " >&6
26962else
26963 # One or both of the vars are not set, and there is no cached value.
26964ac_x_includes=no ac_x_libraries=no
26965rm -f -r conftest.dir
26966if mkdir conftest.dir; then
26967 cd conftest.dir
26968 cat >Imakefile <<'_ACEOF'
26969incroot:
26970 @echo incroot='${INCROOT}'
26971usrlibdir:
26972 @echo usrlibdir='${USRLIBDIR}'
26973libdir:
26974 @echo libdir='${LIBDIR}'
26975_ACEOF
26976 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026977 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026978 for ac_var in incroot usrlibdir libdir; do
26979 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26980 done
26981 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26982 for ac_extension in a so sl dylib la dll; do
26983 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26984 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26985 ac_im_usrlibdir=$ac_im_libdir; break
26986 fi
26987 done
26988 # Screen out bogus values from the imake configuration. They are
26989 # bogus both because they are the default anyway, and because
26990 # using them would break gcc on systems where it needs fixed includes.
26991 case $ac_im_incroot in
26992 /usr/include) ac_x_includes= ;;
26993 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26994 esac
26995 case $ac_im_usrlibdir in
26996 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26997 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26998 esac
26999 fi
27000 cd ..
27001 rm -f -r conftest.dir
27002fi
27003
27004# Standard set of common directories for X headers.
27005# Check X11 before X11Rn because it is often a symlink to the current release.
27006ac_x_header_dirs='
27007/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027008/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027009/usr/X11R6/include
27010/usr/X11R5/include
27011/usr/X11R4/include
27012
27013/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027014/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027015/usr/include/X11R6
27016/usr/include/X11R5
27017/usr/include/X11R4
27018
27019/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027020/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027021/usr/local/X11R6/include
27022/usr/local/X11R5/include
27023/usr/local/X11R4/include
27024
27025/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027026/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027027/usr/local/include/X11R6
27028/usr/local/include/X11R5
27029/usr/local/include/X11R4
27030
27031/usr/X386/include
27032/usr/x386/include
27033/usr/XFree86/include/X11
27034
27035/usr/include
27036/usr/local/include
27037/usr/unsupported/include
27038/usr/athena/include
27039/usr/local/x11r5/include
27040/usr/lpp/Xamples/include
27041
27042/usr/openwin/include
27043/usr/openwin/share/include'
27044
27045if test "$ac_x_includes" = no; then
27046 # Guess where to find include files, by looking for Xlib.h.
27047 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027049/* end confdefs.h. */
27050#include <X11/Xlib.h>
27051_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027052if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027053 # We can compile using X headers with no special include directory.
27054ac_x_includes=
27055else
cristyc7083c12009-10-14 03:16:55 +000027056 for ac_dir in $ac_x_header_dirs; do
27057 if test -r "$ac_dir/X11/Xlib.h"; then
27058 ac_x_includes=$ac_dir
27059 break
27060 fi
27061done
27062fi
cristyda16f162011-02-19 23:52:17 +000027063rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027064fi # $ac_x_includes = no
27065
27066if test "$ac_x_libraries" = no; then
27067 # Check for the libraries.
27068 # See if we find them without any special options.
27069 # Don't add to $LIBS permanently.
27070 ac_save_LIBS=$LIBS
27071 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027073/* end confdefs.h. */
27074#include <X11/Xlib.h>
27075int
27076main ()
27077{
27078XrmInitialize ()
27079 ;
27080 return 0;
27081}
27082_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027083if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027084 LIBS=$ac_save_LIBS
27085# We can link X programs with no special library path.
27086ac_x_libraries=
27087else
cristy8b350f62009-11-15 23:12:43 +000027088 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027089for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27090do
27091 # Don't even attempt the hair of trying to link an X program!
27092 for ac_extension in a so sl dylib la dll; do
27093 if test -r "$ac_dir/libX11.$ac_extension"; then
27094 ac_x_libraries=$ac_dir
27095 break 2
27096 fi
27097 done
27098done
27099fi
cristy8b350f62009-11-15 23:12:43 +000027100rm -f core conftest.err conftest.$ac_objext \
27101 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027102fi # $ac_x_libraries = no
27103
27104case $ac_x_includes,$ac_x_libraries in #(
27105 no,* | *,no | *\'*)
27106 # Didn't find X, or a directory has "'" in its name.
27107 ac_cv_have_x="have_x=no";; #(
27108 *)
27109 # Record where we found X for the cache.
27110 ac_cv_have_x="have_x=yes\
27111 ac_x_includes='$ac_x_includes'\
27112 ac_x_libraries='$ac_x_libraries'"
27113esac
27114fi
27115;; #(
27116 *) have_x=yes;;
27117 esac
27118 eval "$ac_cv_have_x"
27119fi # $with_x != no
27120
27121if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027123$as_echo "$have_x" >&6; }
27124 no_x=yes
27125else
27126 # If each of the values was on the command line, it overrides each guess.
27127 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27128 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27129 # Update the cache value to reflect the command line values.
27130 ac_cv_have_x="have_x=yes\
27131 ac_x_includes='$x_includes'\
27132 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027134$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27135fi
27136
cristy3ed852e2009-09-05 21:47:34 +000027137if test "$no_x" = yes; then
27138 # Not all programs may use this symbol, but it does not hurt to define it.
27139
cristy8b350f62009-11-15 23:12:43 +000027140$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027141
27142 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27143else
27144 if test -n "$x_includes"; then
27145 X_CFLAGS="$X_CFLAGS -I$x_includes"
27146 fi
27147
27148 # It would also be nice to do this for all -L options, not just this one.
27149 if test -n "$x_libraries"; then
27150 X_LIBS="$X_LIBS -L$x_libraries"
27151 # For Solaris; some versions of Sun CC require a space after -R and
27152 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027154$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27155 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27156 ac_xsave_c_werror_flag=$ac_c_werror_flag
27157 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027159/* end confdefs.h. */
27160
27161int
27162main ()
27163{
27164
27165 ;
27166 return 0;
27167}
27168_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027169if ac_fn_c_try_link "$LINENO"; then :
27170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027171$as_echo "no" >&6; }
27172 X_LIBS="$X_LIBS -R$x_libraries"
27173else
cristy8b350f62009-11-15 23:12:43 +000027174 LIBS="$ac_xsave_LIBS -R $x_libraries"
27175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027176/* end confdefs.h. */
27177
27178int
27179main ()
27180{
27181
27182 ;
27183 return 0;
27184}
27185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027186if ac_fn_c_try_link "$LINENO"; then :
27187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027188$as_echo "yes" >&6; }
27189 X_LIBS="$X_LIBS -R $x_libraries"
27190else
cristy8b350f62009-11-15 23:12:43 +000027191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027192$as_echo "neither works" >&6; }
27193fi
cristy8b350f62009-11-15 23:12:43 +000027194rm -f core conftest.err conftest.$ac_objext \
27195 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027196fi
cristy8b350f62009-11-15 23:12:43 +000027197rm -f core conftest.err conftest.$ac_objext \
27198 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027199 ac_c_werror_flag=$ac_xsave_c_werror_flag
27200 LIBS=$ac_xsave_LIBS
27201 fi
27202
27203 # Check for system-dependent libraries X programs must link with.
27204 # Do this before checking for the system-independent R6 libraries
27205 # (-lICE), since we may need -lsocket or whatever for X linking.
27206
27207 if test "$ISC" = yes; then
27208 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27209 else
27210 # Martyn Johnson says this is needed for Ultrix, if the X
27211 # libraries were built with DECnet support. And Karl Berry says
27212 # the Alpha needs dnet_stub (dnet does not exist).
27213 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027215/* end confdefs.h. */
27216
27217/* Override any GCC internal prototype to avoid an error.
27218 Use char because int might match the return type of a GCC
27219 builtin and then its argument prototype would still apply. */
27220#ifdef __cplusplus
27221extern "C"
27222#endif
27223char XOpenDisplay ();
27224int
27225main ()
27226{
27227return XOpenDisplay ();
27228 ;
27229 return 0;
27230}
27231_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027232if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027233
cristy8b350f62009-11-15 23:12:43 +000027234else
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027236$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027237if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027238 $as_echo_n "(cached) " >&6
27239else
27240 ac_check_lib_save_LIBS=$LIBS
27241LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027243/* end confdefs.h. */
27244
27245/* Override any GCC internal prototype to avoid an error.
27246 Use char because int might match the return type of a GCC
27247 builtin and then its argument prototype would still apply. */
27248#ifdef __cplusplus
27249extern "C"
27250#endif
27251char dnet_ntoa ();
27252int
27253main ()
27254{
27255return dnet_ntoa ();
27256 ;
27257 return 0;
27258}
27259_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027260if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027261 ac_cv_lib_dnet_dnet_ntoa=yes
27262else
cristy8b350f62009-11-15 23:12:43 +000027263 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027264fi
cristy8b350f62009-11-15 23:12:43 +000027265rm -f core conftest.err conftest.$ac_objext \
27266 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027267LIBS=$ac_check_lib_save_LIBS
27268fi
cristy8b350f62009-11-15 23:12:43 +000027269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027270$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027271if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027272 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27273fi
27274
27275 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027277$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027278if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027279 $as_echo_n "(cached) " >&6
27280else
27281 ac_check_lib_save_LIBS=$LIBS
27282LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027284/* end confdefs.h. */
27285
27286/* Override any GCC internal prototype to avoid an error.
27287 Use char because int might match the return type of a GCC
27288 builtin and then its argument prototype would still apply. */
27289#ifdef __cplusplus
27290extern "C"
27291#endif
27292char dnet_ntoa ();
27293int
27294main ()
27295{
27296return dnet_ntoa ();
27297 ;
27298 return 0;
27299}
27300_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027301if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027302 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27303else
cristy8b350f62009-11-15 23:12:43 +000027304 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027305fi
cristy8b350f62009-11-15 23:12:43 +000027306rm -f core conftest.err conftest.$ac_objext \
27307 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027308LIBS=$ac_check_lib_save_LIBS
27309fi
cristy8b350f62009-11-15 23:12:43 +000027310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027311$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027312if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027313 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27314fi
27315
27316 fi
27317fi
cristy8b350f62009-11-15 23:12:43 +000027318rm -f core conftest.err conftest.$ac_objext \
27319 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027320 LIBS="$ac_xsave_LIBS"
27321
27322 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27323 # to get the SysV transport functions.
27324 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27325 # needs -lnsl.
27326 # The nsl library prevents programs from opening the X display
27327 # on Irix 5.2, according to T.E. Dickey.
27328 # The functions gethostbyname, getservbyname, and inet_addr are
27329 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027330 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027331if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027332
cristy3ed852e2009-09-05 21:47:34 +000027333fi
27334
cristy3ed852e2009-09-05 21:47:34 +000027335 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027337$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027338if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027339 $as_echo_n "(cached) " >&6
27340else
27341 ac_check_lib_save_LIBS=$LIBS
27342LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027344/* end confdefs.h. */
27345
27346/* Override any GCC internal prototype to avoid an error.
27347 Use char because int might match the return type of a GCC
27348 builtin and then its argument prototype would still apply. */
27349#ifdef __cplusplus
27350extern "C"
27351#endif
27352char gethostbyname ();
27353int
27354main ()
27355{
27356return gethostbyname ();
27357 ;
27358 return 0;
27359}
27360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027361if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027362 ac_cv_lib_nsl_gethostbyname=yes
27363else
cristy8b350f62009-11-15 23:12:43 +000027364 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027365fi
cristy8b350f62009-11-15 23:12:43 +000027366rm -f core conftest.err conftest.$ac_objext \
27367 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027368LIBS=$ac_check_lib_save_LIBS
27369fi
cristy8b350f62009-11-15 23:12:43 +000027370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027371$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027372if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027373 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27374fi
27375
27376 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027378$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027379if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027380 $as_echo_n "(cached) " >&6
27381else
27382 ac_check_lib_save_LIBS=$LIBS
27383LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027385/* end confdefs.h. */
27386
27387/* Override any GCC internal prototype to avoid an error.
27388 Use char because int might match the return type of a GCC
27389 builtin and then its argument prototype would still apply. */
27390#ifdef __cplusplus
27391extern "C"
27392#endif
27393char gethostbyname ();
27394int
27395main ()
27396{
27397return gethostbyname ();
27398 ;
27399 return 0;
27400}
27401_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027402if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027403 ac_cv_lib_bsd_gethostbyname=yes
27404else
cristy8b350f62009-11-15 23:12:43 +000027405 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027406fi
cristy8b350f62009-11-15 23:12:43 +000027407rm -f core conftest.err conftest.$ac_objext \
27408 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027409LIBS=$ac_check_lib_save_LIBS
27410fi
cristy8b350f62009-11-15 23:12:43 +000027411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027412$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027413if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027414 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27415fi
27416
27417 fi
27418 fi
27419
27420 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27421 # socket/setsockopt and other routines are undefined under SCO ODT
27422 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27423 # on later versions), says Simon Leinen: it contains gethostby*
27424 # variants that don't use the name server (or something). -lsocket
27425 # must be given before -lnsl if both are needed. We assume that
27426 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027427 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027428if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027429
cristy3ed852e2009-09-05 21:47:34 +000027430fi
27431
cristy3ed852e2009-09-05 21:47:34 +000027432 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027434$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027435if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027436 $as_echo_n "(cached) " >&6
27437else
27438 ac_check_lib_save_LIBS=$LIBS
27439LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027441/* end confdefs.h. */
27442
27443/* Override any GCC internal prototype to avoid an error.
27444 Use char because int might match the return type of a GCC
27445 builtin and then its argument prototype would still apply. */
27446#ifdef __cplusplus
27447extern "C"
27448#endif
27449char connect ();
27450int
27451main ()
27452{
27453return connect ();
27454 ;
27455 return 0;
27456}
27457_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027458if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027459 ac_cv_lib_socket_connect=yes
27460else
cristy8b350f62009-11-15 23:12:43 +000027461 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027462fi
cristy8b350f62009-11-15 23:12:43 +000027463rm -f core conftest.err conftest.$ac_objext \
27464 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027465LIBS=$ac_check_lib_save_LIBS
27466fi
cristy8b350f62009-11-15 23:12:43 +000027467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027468$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027469if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027470 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27471fi
27472
27473 fi
27474
27475 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027476 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027477if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027478
cristy3ed852e2009-09-05 21:47:34 +000027479fi
27480
cristy3ed852e2009-09-05 21:47:34 +000027481 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027483$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027484if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027485 $as_echo_n "(cached) " >&6
27486else
27487 ac_check_lib_save_LIBS=$LIBS
27488LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027490/* end confdefs.h. */
27491
27492/* Override any GCC internal prototype to avoid an error.
27493 Use char because int might match the return type of a GCC
27494 builtin and then its argument prototype would still apply. */
27495#ifdef __cplusplus
27496extern "C"
27497#endif
27498char remove ();
27499int
27500main ()
27501{
27502return remove ();
27503 ;
27504 return 0;
27505}
27506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027507if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027508 ac_cv_lib_posix_remove=yes
27509else
cristy8b350f62009-11-15 23:12:43 +000027510 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027511fi
cristy8b350f62009-11-15 23:12:43 +000027512rm -f core conftest.err conftest.$ac_objext \
27513 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027514LIBS=$ac_check_lib_save_LIBS
27515fi
cristy8b350f62009-11-15 23:12:43 +000027516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027517$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027518if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027519 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27520fi
27521
27522 fi
27523
27524 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027525 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027526if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027527
cristy3ed852e2009-09-05 21:47:34 +000027528fi
27529
cristy3ed852e2009-09-05 21:47:34 +000027530 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027532$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027533if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027534 $as_echo_n "(cached) " >&6
27535else
27536 ac_check_lib_save_LIBS=$LIBS
27537LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027539/* end confdefs.h. */
27540
27541/* Override any GCC internal prototype to avoid an error.
27542 Use char because int might match the return type of a GCC
27543 builtin and then its argument prototype would still apply. */
27544#ifdef __cplusplus
27545extern "C"
27546#endif
27547char shmat ();
27548int
27549main ()
27550{
27551return shmat ();
27552 ;
27553 return 0;
27554}
27555_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027556if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027557 ac_cv_lib_ipc_shmat=yes
27558else
cristy8b350f62009-11-15 23:12:43 +000027559 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027560fi
cristy8b350f62009-11-15 23:12:43 +000027561rm -f core conftest.err conftest.$ac_objext \
27562 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027563LIBS=$ac_check_lib_save_LIBS
27564fi
cristy8b350f62009-11-15 23:12:43 +000027565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027566$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027567if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27569fi
27570
27571 fi
27572 fi
27573
27574 # Check for libraries that X11R6 Xt/Xaw programs need.
27575 ac_save_LDFLAGS=$LDFLAGS
27576 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27577 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27578 # check for ICE first), but we must link in the order -lSM -lICE or
27579 # we get undefined symbols. So assume we have SM if we have ICE.
27580 # These have to be linked with before -lX11, unlike the other
27581 # libraries we check for below, so use a different variable.
27582 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027584$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027585if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027586 $as_echo_n "(cached) " >&6
27587else
27588 ac_check_lib_save_LIBS=$LIBS
27589LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027591/* end confdefs.h. */
27592
27593/* Override any GCC internal prototype to avoid an error.
27594 Use char because int might match the return type of a GCC
27595 builtin and then its argument prototype would still apply. */
27596#ifdef __cplusplus
27597extern "C"
27598#endif
27599char IceConnectionNumber ();
27600int
27601main ()
27602{
27603return IceConnectionNumber ();
27604 ;
27605 return 0;
27606}
27607_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027608if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027609 ac_cv_lib_ICE_IceConnectionNumber=yes
27610else
cristy8b350f62009-11-15 23:12:43 +000027611 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027612fi
cristy8b350f62009-11-15 23:12:43 +000027613rm -f core conftest.err conftest.$ac_objext \
27614 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027615LIBS=$ac_check_lib_save_LIBS
27616fi
cristy8b350f62009-11-15 23:12:43 +000027617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027618$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027619if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027620 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27621fi
27622
27623 LDFLAGS=$ac_save_LDFLAGS
27624
27625fi
27626
27627if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27629$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027631$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27633$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027634 LDFLAGS="$LDFLAGS $X_LIBS"
27635 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27636 LIBS="$X11_LIBS $LIBS"
27637 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27638
27639
cristy8b350f62009-11-15 23:12:43 +000027640$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027641
27642 #
27643 # Check for X11 shared memory extension
27644 #
27645 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027646 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027647if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027648 have_shmctl='yes'
27649fi
27650
27651 if test "$have_shmctl" != 'yes'; then
27652 PERSIST_LIBS=$LIBS
27653 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027655/* end confdefs.h. */
27656
27657/* Override any GCC internal prototype to avoid an error.
27658 Use char because int might match the return type of a GCC
27659 builtin and then its argument prototype would still apply. */
27660#ifdef __cplusplus
27661extern "C"
27662#endif
27663char shmctl ();
27664int
27665main ()
27666{
27667return shmctl ();
27668 ;
27669 return 0;
27670}
27671_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027672if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027673 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027674fi
cristy8b350f62009-11-15 23:12:43 +000027675rm -f core conftest.err conftest.$ac_objext \
27676 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027677 LIBS=$PERSIST_LIBS
27678 fi
27679
27680 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027682$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027683if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027684 $as_echo_n "(cached) " >&6
27685else
27686 ac_check_lib_save_LIBS=$LIBS
27687LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027689/* end confdefs.h. */
27690
27691/* Override any GCC internal prototype to avoid an error.
27692 Use char because int might match the return type of a GCC
27693 builtin and then its argument prototype would still apply. */
27694#ifdef __cplusplus
27695extern "C"
27696#endif
27697char XShmAttach ();
27698int
27699main ()
27700{
27701return XShmAttach ();
27702 ;
27703 return 0;
27704}
27705_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027706if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027707 ac_cv_lib_Xext_XShmAttach=yes
27708else
cristy8b350f62009-11-15 23:12:43 +000027709 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027710fi
cristy8b350f62009-11-15 23:12:43 +000027711rm -f core conftest.err conftest.$ac_objext \
27712 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027713LIBS=$ac_check_lib_save_LIBS
27714fi
cristy8b350f62009-11-15 23:12:43 +000027715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027716$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027717if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027718 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027719$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027720
27721fi
27722
27723 fi
27724
27725 #
27726 # Check for X11 shape extension
27727 #
cristy8b350f62009-11-15 23:12:43 +000027728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027729$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027730if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027731 $as_echo_n "(cached) " >&6
27732else
27733 ac_check_lib_save_LIBS=$LIBS
27734LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027736/* end confdefs.h. */
27737
27738/* Override any GCC internal prototype to avoid an error.
27739 Use char because int might match the return type of a GCC
27740 builtin and then its argument prototype would still apply. */
27741#ifdef __cplusplus
27742extern "C"
27743#endif
27744char XShapeCombineMask ();
27745int
27746main ()
27747{
27748return XShapeCombineMask ();
27749 ;
27750 return 0;
27751}
27752_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027753if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027754 ac_cv_lib_Xext_XShapeCombineMask=yes
27755else
cristy8b350f62009-11-15 23:12:43 +000027756 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027757fi
cristy8b350f62009-11-15 23:12:43 +000027758rm -f core conftest.err conftest.$ac_objext \
27759 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027760LIBS=$ac_check_lib_save_LIBS
27761fi
cristy8b350f62009-11-15 23:12:43 +000027762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027763$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027764if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027765 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027766$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027767
27768fi
27769
cristy8b350f62009-11-15 23:12:43 +000027770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027771$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027772if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027773 $as_echo_n "(cached) " >&6
27774else
27775 ac_check_lib_save_LIBS=$LIBS
27776LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027778/* end confdefs.h. */
27779
27780/* Override any GCC internal prototype to avoid an error.
27781 Use char because int might match the return type of a GCC
27782 builtin and then its argument prototype would still apply. */
27783#ifdef __cplusplus
27784extern "C"
27785#endif
27786char XtSetEventDispatcher ();
27787int
27788main ()
27789{
27790return XtSetEventDispatcher ();
27791 ;
27792 return 0;
27793}
27794_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027795if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027796 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27797else
cristy8b350f62009-11-15 23:12:43 +000027798 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027799fi
cristy8b350f62009-11-15 23:12:43 +000027800rm -f core conftest.err conftest.$ac_objext \
27801 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027802LIBS=$ac_check_lib_save_LIBS
27803fi
cristy8b350f62009-11-15 23:12:43 +000027804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027805$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027806if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027807 XT_LIBS='-lXt'
27808fi
27809
27810 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27811fi
27812if test "$no_x" != 'yes'; then
27813 have_x='yes'
27814else
27815 have_x='no'
27816fi
cristy73bd4a52010-10-05 11:24:23 +000027817 if test "$have_x" = 'yes'; then
27818 X11_DELEGATE_TRUE=
27819 X11_DELEGATE_FALSE='#'
27820else
27821 X11_DELEGATE_TRUE='#'
27822 X11_DELEGATE_FALSE=
27823fi
27824
cristy3ed852e2009-09-05 21:47:34 +000027825
27826
27827
27828
27829#
27830# Check for ZLIB
27831#
27832
27833# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027834if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027835 withval=$with_zlib; with_zlib=$withval
27836else
27837 with_zlib='yes'
27838fi
27839
27840
27841if test "$with_zlib" != 'yes'; then
27842 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27843fi
27844
27845have_zlib='no'
27846ZLIB_LIBS=''
27847if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27849$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027851$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27853$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027854 ZLIB_LIBS=''
27855 failed=0
27856 passed=0
cristy8b350f62009-11-15 23:12:43 +000027857 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027858if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027859 passed=`expr $passed + 1`
27860else
27861 failed=`expr $failed + 1`
27862fi
27863
27864
cristy8b350f62009-11-15 23:12:43 +000027865 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027866if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027867 passed=`expr $passed + 1`
27868else
27869 failed=`expr $failed + 1`
27870fi
27871
27872
cristy8b350f62009-11-15 23:12:43 +000027873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027874$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027875if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027876 $as_echo_n "(cached) " >&6
27877else
27878 ac_check_lib_save_LIBS=$LIBS
27879LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027881/* end confdefs.h. */
27882
27883/* Override any GCC internal prototype to avoid an error.
27884 Use char because int might match the return type of a GCC
27885 builtin and then its argument prototype would still apply. */
27886#ifdef __cplusplus
27887extern "C"
27888#endif
27889char compress ();
27890int
27891main ()
27892{
27893return compress ();
27894 ;
27895 return 0;
27896}
27897_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027898if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027899 ac_cv_lib_z_compress=yes
27900else
cristy8b350f62009-11-15 23:12:43 +000027901 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027902fi
cristy8b350f62009-11-15 23:12:43 +000027903rm -f core conftest.err conftest.$ac_objext \
27904 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027905LIBS=$ac_check_lib_save_LIBS
27906fi
cristy8b350f62009-11-15 23:12:43 +000027907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027908$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027909if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027910 passed=`expr $passed + 1`
27911else
27912 failed=`expr $failed + 1`
27913fi
27914
cristy8b350f62009-11-15 23:12:43 +000027915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027916$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027917if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027918 $as_echo_n "(cached) " >&6
27919else
27920 ac_check_lib_save_LIBS=$LIBS
27921LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027923/* end confdefs.h. */
27924
27925/* Override any GCC internal prototype to avoid an error.
27926 Use char because int might match the return type of a GCC
27927 builtin and then its argument prototype would still apply. */
27928#ifdef __cplusplus
27929extern "C"
27930#endif
27931char uncompress ();
27932int
27933main ()
27934{
27935return uncompress ();
27936 ;
27937 return 0;
27938}
27939_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027940if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027941 ac_cv_lib_z_uncompress=yes
27942else
cristy8b350f62009-11-15 23:12:43 +000027943 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027944fi
cristy8b350f62009-11-15 23:12:43 +000027945rm -f core conftest.err conftest.$ac_objext \
27946 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027947LIBS=$ac_check_lib_save_LIBS
27948fi
cristy8b350f62009-11-15 23:12:43 +000027949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027950$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027951if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027952 passed=`expr $passed + 1`
27953else
27954 failed=`expr $failed + 1`
27955fi
27956
cristy8b350f62009-11-15 23:12:43 +000027957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027958$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027959if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027960 $as_echo_n "(cached) " >&6
27961else
27962 ac_check_lib_save_LIBS=$LIBS
27963LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027965/* end confdefs.h. */
27966
27967/* Override any GCC internal prototype to avoid an error.
27968 Use char because int might match the return type of a GCC
27969 builtin and then its argument prototype would still apply. */
27970#ifdef __cplusplus
27971extern "C"
27972#endif
27973char deflate ();
27974int
27975main ()
27976{
27977return deflate ();
27978 ;
27979 return 0;
27980}
27981_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027982if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027983 ac_cv_lib_z_deflate=yes
27984else
cristy8b350f62009-11-15 23:12:43 +000027985 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027986fi
cristy8b350f62009-11-15 23:12:43 +000027987rm -f core conftest.err conftest.$ac_objext \
27988 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027989LIBS=$ac_check_lib_save_LIBS
27990fi
cristy8b350f62009-11-15 23:12:43 +000027991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027992$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027993if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027994 passed=`expr $passed + 1`
27995else
27996 failed=`expr $failed + 1`
27997fi
27998
cristy8b350f62009-11-15 23:12:43 +000027999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028000$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028001if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028002 $as_echo_n "(cached) " >&6
28003else
28004 ac_check_lib_save_LIBS=$LIBS
28005LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028007/* end confdefs.h. */
28008
28009/* Override any GCC internal prototype to avoid an error.
28010 Use char because int might match the return type of a GCC
28011 builtin and then its argument prototype would still apply. */
28012#ifdef __cplusplus
28013extern "C"
28014#endif
28015char inflate ();
28016int
28017main ()
28018{
28019return inflate ();
28020 ;
28021 return 0;
28022}
28023_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028024if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028025 ac_cv_lib_z_inflate=yes
28026else
cristy8b350f62009-11-15 23:12:43 +000028027 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028028fi
cristy8b350f62009-11-15 23:12:43 +000028029rm -f core conftest.err conftest.$ac_objext \
28030 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028031LIBS=$ac_check_lib_save_LIBS
28032fi
cristy8b350f62009-11-15 23:12:43 +000028033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028034$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028035if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028036 passed=`expr $passed + 1`
28037else
28038 failed=`expr $failed + 1`
28039fi
28040
cristy8b350f62009-11-15 23:12:43 +000028041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028042$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028043if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028044 $as_echo_n "(cached) " >&6
28045else
28046 ac_check_lib_save_LIBS=$LIBS
28047LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028049/* end confdefs.h. */
28050
28051/* Override any GCC internal prototype to avoid an error.
28052 Use char because int might match the return type of a GCC
28053 builtin and then its argument prototype would still apply. */
28054#ifdef __cplusplus
28055extern "C"
28056#endif
28057char gzseek ();
28058int
28059main ()
28060{
28061return gzseek ();
28062 ;
28063 return 0;
28064}
28065_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028066if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028067 ac_cv_lib_z_gzseek=yes
28068else
cristy8b350f62009-11-15 23:12:43 +000028069 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028070fi
cristy8b350f62009-11-15 23:12:43 +000028071rm -f core conftest.err conftest.$ac_objext \
28072 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028073LIBS=$ac_check_lib_save_LIBS
28074fi
cristy8b350f62009-11-15 23:12:43 +000028075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028076$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028077if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028078 passed=`expr $passed + 1`
28079else
28080 failed=`expr $failed + 1`
28081fi
28082
cristy8b350f62009-11-15 23:12:43 +000028083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028084$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028085if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028086 $as_echo_n "(cached) " >&6
28087else
28088 ac_check_lib_save_LIBS=$LIBS
28089LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028091/* end confdefs.h. */
28092
28093/* Override any GCC internal prototype to avoid an error.
28094 Use char because int might match the return type of a GCC
28095 builtin and then its argument prototype would still apply. */
28096#ifdef __cplusplus
28097extern "C"
28098#endif
28099char gztell ();
28100int
28101main ()
28102{
28103return gztell ();
28104 ;
28105 return 0;
28106}
28107_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028108if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028109 ac_cv_lib_z_gztell=yes
28110else
cristy8b350f62009-11-15 23:12:43 +000028111 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028112fi
cristy8b350f62009-11-15 23:12:43 +000028113rm -f core conftest.err conftest.$ac_objext \
28114 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028115LIBS=$ac_check_lib_save_LIBS
28116fi
cristy8b350f62009-11-15 23:12:43 +000028117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028118$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028119if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028120 passed=`expr $passed + 1`
28121else
28122 failed=`expr $failed + 1`
28123fi
28124
cristy8b350f62009-11-15 23:12:43 +000028125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028126$as_echo_n "checking if ZLIB package is complete... " >&6; }
28127 if test $passed -gt 0; then
28128 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28130$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028131 have_zlib='no (failed tests)'
28132 else
28133 ZLIB_LIBS='-lz'
28134 LIBS="$ZLIB_LIBS $LIBS"
28135
cristy8b350f62009-11-15 23:12:43 +000028136$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028137
cristyad38abe2012-12-23 23:03:21 +000028138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28139$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028140 have_zlib='yes'
28141 fi
28142 else
cristyad38abe2012-12-23 23:03:21 +000028143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28144$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028145 fi
28146fi
cristy73bd4a52010-10-05 11:24:23 +000028147 if test "$have_zlib" = 'yes'; then
28148 ZLIB_DELEGATE_TRUE=
28149 ZLIB_DELEGATE_FALSE='#'
28150else
28151 ZLIB_DELEGATE_TRUE='#'
28152 ZLIB_DELEGATE_FALSE=
28153fi
28154
cristy3ed852e2009-09-05 21:47:34 +000028155
28156
cristy5eef09f2012-10-16 12:08:28 +000028157# whether modules are built or not.
28158with_ltdl='yes'
28159have_ltdl='no'
28160LTDL_LIBS=''
28161if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28163$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28165$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28167$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028168 failed=0
28169 passed=0
28170 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28171if test "x$ac_cv_header_ltdl_h" = xyes; then :
28172 passed=`expr $passed + 1`
28173else
28174 failed=`expr $failed + 1`
28175fi
28176
28177
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28179$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28180if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28181 $as_echo_n "(cached) " >&6
28182else
28183 ac_check_lib_save_LIBS=$LIBS
28184LIBS="-lltdl $LIBS"
28185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28186/* end confdefs.h. */
28187
28188/* Override any GCC internal prototype to avoid an error.
28189 Use char because int might match the return type of a GCC
28190 builtin and then its argument prototype would still apply. */
28191#ifdef __cplusplus
28192extern "C"
28193#endif
28194char lt_dlinit ();
28195int
28196main ()
28197{
28198return lt_dlinit ();
28199 ;
28200 return 0;
28201}
28202_ACEOF
28203if ac_fn_c_try_link "$LINENO"; then :
28204 ac_cv_lib_ltdl_lt_dlinit=yes
28205else
28206 ac_cv_lib_ltdl_lt_dlinit=no
28207fi
28208rm -f core conftest.err conftest.$ac_objext \
28209 conftest$ac_exeext conftest.$ac_ext
28210LIBS=$ac_check_lib_save_LIBS
28211fi
28212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28213$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28214if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28215 passed=`expr $passed + 1`
28216else
28217 failed=`expr $failed + 1`
28218fi
28219
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28221$as_echo_n "checking if libltdl package is complete... " >&6; }
28222 if test $passed -gt 0 ; then
28223 if test $failed -gt 0 ; then
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28225$as_echo "no -- some components failed test" >&6; }
28226 have_ltdl='no (failed tests)'
28227 else
28228 LTDL_LIBS='-lltdl'
28229 LIBS="$LTDL_LIBS $LIBS"
28230
28231$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28232
28233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28234$as_echo "yes" >&6; }
28235 have_ltdl='yes'
28236 fi
28237 else
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28239$as_echo "no" >&6; }
28240 fi
cristyaf4cbf32012-10-16 23:47:41 +000028241 if test "$have_ltdl" != 'yes' ; then
28242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28244as_fn_error 1 "libltdl is required for modules build
28245See \`config.log' for more details" "$LINENO" 5; }
28246 fi
cristy5eef09f2012-10-16 12:08:28 +000028247fi
28248 if test "$have_ltdl" != 'no'; then
28249 WITH_LTDL_TRUE=
28250 WITH_LTDL_FALSE='#'
28251else
28252 WITH_LTDL_TRUE='#'
28253 WITH_LTDL_FALSE=
28254fi
28255
28256
cristy3ed852e2009-09-05 21:47:34 +000028257#
28258# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28259#
28260LIB_DL=''
28261if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028263$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028264if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028265 $as_echo_n "(cached) " >&6
28266else
28267 ac_check_lib_save_LIBS=$LIBS
28268LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028270/* end confdefs.h. */
28271
28272/* Override any GCC internal prototype to avoid an error.
28273 Use char because int might match the return type of a GCC
28274 builtin and then its argument prototype would still apply. */
28275#ifdef __cplusplus
28276extern "C"
28277#endif
28278char dlopen ();
28279int
28280main ()
28281{
28282return dlopen ();
28283 ;
28284 return 0;
28285}
28286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028287if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028288 ac_cv_lib_dl_dlopen=yes
28289else
cristy8b350f62009-11-15 23:12:43 +000028290 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028291fi
cristy8b350f62009-11-15 23:12:43 +000028292rm -f core conftest.err conftest.$ac_objext \
28293 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028294LIBS=$ac_check_lib_save_LIBS
28295fi
cristy8b350f62009-11-15 23:12:43 +000028296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028297$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028298if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028299 LIB_DL='-ldl'
28300fi
28301
28302 LIBS="$LIB_DL $LIBS"
28303fi
28304
28305
28306
28307#
28308# Check for Autotrace delegate library.
28309#
28310
28311# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028312if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028313 withval=$with_autotrace; with_autotrace=$withval
28314else
28315 with_autotrace='no'
28316fi
28317
28318
28319if test "$with_autotrace" != 'yes'; then
28320 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28321fi
28322
28323have_autotrace='no'
28324AUTOTRACE_CFLAGS=""
28325AUTOTRACE_LIBS=""
28326AUTOTRACE_PKG=""
28327if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28329$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028330
28331pkg_failed=no
28332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28333$as_echo_n "checking for AUTOTRACE... " >&6; }
28334
28335if test -n "$AUTOTRACE_CFLAGS"; then
28336 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28337 elif test -n "$PKG_CONFIG"; then
28338 if test -n "$PKG_CONFIG" && \
28339 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28340 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28341 ac_status=$?
28342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28343 test $ac_status = 0; }; then
28344 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28345else
28346 pkg_failed=yes
28347fi
28348 else
28349 pkg_failed=untried
28350fi
28351if test -n "$AUTOTRACE_LIBS"; then
28352 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28353 elif test -n "$PKG_CONFIG"; then
28354 if test -n "$PKG_CONFIG" && \
28355 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28356 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28357 ac_status=$?
28358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28359 test $ac_status = 0; }; then
28360 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28361else
28362 pkg_failed=yes
28363fi
28364 else
28365 pkg_failed=untried
28366fi
28367
28368
28369
28370if test $pkg_failed = yes; then
28371
28372if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28373 _pkg_short_errors_supported=yes
28374else
28375 _pkg_short_errors_supported=no
28376fi
28377 if test $_pkg_short_errors_supported = yes; then
28378 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28379 else
28380 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28381 fi
28382 # Put the nasty error message in config.log where it belongs
28383 echo "$AUTOTRACE_PKG_ERRORS" >&5
28384
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28386$as_echo "no" >&6; }
28387 have_autotrace=no
28388elif test $pkg_failed = untried; then
28389 have_autotrace=no
28390else
28391 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28392 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28394$as_echo "yes" >&6; }
28395 have_autotrace=yes
28396fi
cristyad38abe2012-12-23 23:03:21 +000028397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28398$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028399fi
28400
28401if test "$have_autotrace" = 'yes'; then
28402 failed=0
28403
cristy8b350f62009-11-15 23:12:43 +000028404$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028405
cristyc6722092012-10-14 00:19:31 +000028406 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028407 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028408 fi
28409fi
28410
cristy73bd4a52010-10-05 11:24:23 +000028411 if test "$have_autotrace" = 'yes'; then
28412 AUTOTRACE_DELEGATE_TRUE=
28413 AUTOTRACE_DELEGATE_FALSE='#'
28414else
28415 AUTOTRACE_DELEGATE_TRUE='#'
28416 AUTOTRACE_DELEGATE_FALSE=
28417fi
28418
cristy3ed852e2009-09-05 21:47:34 +000028419
28420
28421
28422
28423#
28424# Check for Display Postscript delegate library.
28425#
28426
28427# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028428if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028429 withval=$with_dps; with_dps=$withval
28430else
28431 with_dps='yes'
28432fi
28433
28434
28435if test "$with_dps" != 'yes'; then
28436 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28437fi
28438
28439have_dps='no'
28440DPS_LIBS=''
28441if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28443$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028445$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28447$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028448 failed=0
28449 passed=0
28450 PERSIST_CPPFLAGS="$CPPFLAGS"
28451 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028452 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 +000028453if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028454 passed=`expr $passed + 1`
28455else
28456 failed=`expr $failed + 1`
28457fi
28458
28459
28460 # DPS issues:
28461 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28462 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28463 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28464 # ImageMagick itself doesn't use -lXt.
28465 have_libdps='no'
28466 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028468$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028469if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028470 $as_echo_n "(cached) " >&6
28471else
28472 ac_check_lib_save_LIBS=$LIBS
28473LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028475/* end confdefs.h. */
28476
28477/* Override any GCC internal prototype to avoid an error.
28478 Use char because int might match the return type of a GCC
28479 builtin and then its argument prototype would still apply. */
28480#ifdef __cplusplus
28481extern "C"
28482#endif
28483char DPSInitialize ();
28484int
28485main ()
28486{
28487return DPSInitialize ();
28488 ;
28489 return 0;
28490}
28491_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028492if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028493 ac_cv_lib_dps_DPSInitialize=yes
28494else
cristy8b350f62009-11-15 23:12:43 +000028495 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028496fi
cristy8b350f62009-11-15 23:12:43 +000028497rm -f core conftest.err conftest.$ac_objext \
28498 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028499LIBS=$ac_check_lib_save_LIBS
28500fi
cristy8b350f62009-11-15 23:12:43 +000028501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028502$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028503if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028504 have_libdps='yes'
28505else
28506 have_libdps='no'
28507fi
28508
28509 if test "$have_libdps" != 'yes'; then
28510 # Unset cache variable so we can try again.
28511 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028513$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028514if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028515 $as_echo_n "(cached) " >&6
28516else
28517 ac_check_lib_save_LIBS=$LIBS
28518LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028520/* end confdefs.h. */
28521
28522/* Override any GCC internal prototype to avoid an error.
28523 Use char because int might match the return type of a GCC
28524 builtin and then its argument prototype would still apply. */
28525#ifdef __cplusplus
28526extern "C"
28527#endif
28528char DPSInitialize ();
28529int
28530main ()
28531{
28532return DPSInitialize ();
28533 ;
28534 return 0;
28535}
28536_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028537if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028538 ac_cv_lib_dps_DPSInitialize=yes
28539else
cristy8b350f62009-11-15 23:12:43 +000028540 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028541fi
cristy8b350f62009-11-15 23:12:43 +000028542rm -f core conftest.err conftest.$ac_objext \
28543 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028544LIBS=$ac_check_lib_save_LIBS
28545fi
cristy8b350f62009-11-15 23:12:43 +000028546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028547$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028548if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028549 have_libdps='yes'
28550else
28551 have_libdps='no'
28552fi
28553
28554 if test "$have_libdps" = 'yes'; then
28555 LIBDPS_XT='-lXt'
28556 fi
28557 fi
28558 if test "$have_libdps" = 'yes'; then
28559 passed=`expr $passed + 1`
28560 else
28561 failed=`expr $failed + 1`
28562 fi
cristy8b350f62009-11-15 23:12:43 +000028563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028564$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028565if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028566 $as_echo_n "(cached) " >&6
28567else
28568 ac_check_lib_save_LIBS=$LIBS
28569LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028571/* end confdefs.h. */
28572
28573/* Override any GCC internal prototype to avoid an error.
28574 Use char because int might match the return type of a GCC
28575 builtin and then its argument prototype would still apply. */
28576#ifdef __cplusplus
28577extern "C"
28578#endif
28579char XDPSPixelsPerPoint ();
28580int
28581main ()
28582{
28583return XDPSPixelsPerPoint ();
28584 ;
28585 return 0;
28586}
28587_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028588if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028589 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28590else
cristy8b350f62009-11-15 23:12:43 +000028591 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028592fi
cristy8b350f62009-11-15 23:12:43 +000028593rm -f core conftest.err conftest.$ac_objext \
28594 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028595LIBS=$ac_check_lib_save_LIBS
28596fi
cristy8b350f62009-11-15 23:12:43 +000028597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028598$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028599if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028600 passed=`expr $passed + 1`
28601else
28602 failed=`expr $failed + 1`
28603fi
28604
cristy8b350f62009-11-15 23:12:43 +000028605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028606$as_echo_n "checking if DPS package is complete... " >&6; }
28607 if test $passed -gt 0; then
28608 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28610$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028611 have_dps='no (failed tests)'
28612 CPPFLAGS="$PERSIST_CPPFLAGS"
28613 else
28614 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28615 LIBS="$DPS_LIBS $LIBS"
28616
cristy8b350f62009-11-15 23:12:43 +000028617$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028618
cristyad38abe2012-12-23 23:03:21 +000028619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28620$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028621 have_dps='yes'
28622 fi
28623 else
cristyad38abe2012-12-23 23:03:21 +000028624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28625$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028626 CPPFLAGS=$PERSIST_CPPFLAGS
28627 fi
28628fi
cristy73bd4a52010-10-05 11:24:23 +000028629 if test "$have_dps" = 'yes'; then
28630 DPS_DELEGATE_TRUE=
28631 DPS_DELEGATE_FALSE='#'
28632else
28633 DPS_DELEGATE_TRUE='#'
28634 DPS_DELEGATE_FALSE=
28635fi
28636
cristy3ed852e2009-09-05 21:47:34 +000028637
28638
28639
28640#
28641# Check for DJVU delegate library.
28642#
28643
28644# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028645if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028646 withval=$with_djvu; with_djvu=$withval
28647else
28648 with_djvu='yes'
28649fi
28650
28651
28652if test "$with_djvu" != 'yes'; then
28653 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28654fi
28655
28656have_djvu='no'
28657DJVU_LIBS=''
28658if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28660$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028662$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28664$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028665 failed=0
28666 passed=0
cristy8b350f62009-11-15 23:12:43 +000028667 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 +000028668if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028669 passed=`expr $passed + 1`
28670else
28671 failed=`expr $failed + 1`
28672fi
28673
28674
cristy8b350f62009-11-15 23:12:43 +000028675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028676$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028677if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028678 $as_echo_n "(cached) " >&6
28679else
28680 ac_check_lib_save_LIBS=$LIBS
28681LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028683/* end confdefs.h. */
28684
28685/* Override any GCC internal prototype to avoid an error.
28686 Use char because int might match the return type of a GCC
28687 builtin and then its argument prototype would still apply. */
28688#ifdef __cplusplus
28689extern "C"
28690#endif
28691char ddjvu_context_create ();
28692int
28693main ()
28694{
28695return ddjvu_context_create ();
28696 ;
28697 return 0;
28698}
28699_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028700if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028701 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28702else
cristy8b350f62009-11-15 23:12:43 +000028703 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028704fi
cristy8b350f62009-11-15 23:12:43 +000028705rm -f core conftest.err conftest.$ac_objext \
28706 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028707LIBS=$ac_check_lib_save_LIBS
28708fi
cristy8b350f62009-11-15 23:12:43 +000028709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028710$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028711if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028712 passed=`expr $passed + 1`
28713else
28714 failed=`expr $failed + 1`
28715fi
28716
cristy8b350f62009-11-15 23:12:43 +000028717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028718$as_echo_n "checking if DJVU package is complete... " >&6; }
28719 if test $passed -gt 0; then
28720 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28722$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028723 have_djvu='no (failed tests)'
28724 else
28725 DJVU_LIBS='-ldjvulibre'
28726 LIBS="$DJVU_LIBS $LIBS"
28727
cristy8b350f62009-11-15 23:12:43 +000028728$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028729
cristyad38abe2012-12-23 23:03:21 +000028730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28731$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028732 have_djvu='yes'
28733 fi
28734 else
cristyad38abe2012-12-23 23:03:21 +000028735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28736$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028737 fi
28738fi
cristy73bd4a52010-10-05 11:24:23 +000028739 if test "$have_djvu" = 'yes'; then
28740 DJVU_DELEGATE_TRUE=
28741 DJVU_DELEGATE_FALSE='#'
28742else
28743 DJVU_DELEGATE_TRUE='#'
28744 DJVU_DELEGATE_FALSE=
28745fi
28746
cristy3ed852e2009-09-05 21:47:34 +000028747
28748
28749
28750#
cristy430a7312010-01-21 20:44:04 +000028751# Set DejaVu font directory.
28752#
28753
28754# Check whether --with-dejavu-font-dir was given.
28755if test "${with_dejavu_font_dir+set}" = set; then :
28756 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28757else
28758 with_dejavu_font_dir='default'
28759fi
28760
28761
28762if test "$with_dejavu_font_dir" != 'default'; then
28763 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28764fi
28765
28766
28767#
cristy3ed852e2009-09-05 21:47:34 +000028768# Check for FFTW delegate library.
28769#
28770
28771# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028772if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028773 withval=$with_fftw; with_fftw=$withval
28774else
28775 with_fftw='yes'
28776fi
28777
28778
28779if test "$with_fftw" != 'yes'; then
28780 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28781fi
28782
cristy81beccd2011-10-03 18:17:24 +000028783have_fftw='no'
28784FFTW_LIBS=''
28785if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28787$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28789$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28791$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028792 failed=0
28793 passed=0
28794 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28795if test "x$ac_cv_header_fftw3_h" = xyes; then :
28796 passed=`expr $passed + 1`
28797else
28798 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028799fi
28800
cristy81beccd2011-10-03 18:17:24 +000028801
28802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28803$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28804if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28805 $as_echo_n "(cached) " >&6
28806else
28807 ac_check_lib_save_LIBS=$LIBS
28808LIBS="-lfftw3 $LIBS"
28809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28810/* end confdefs.h. */
28811
28812/* Override any GCC internal prototype to avoid an error.
28813 Use char because int might match the return type of a GCC
28814 builtin and then its argument prototype would still apply. */
28815#ifdef __cplusplus
28816extern "C"
28817#endif
28818char fftw_execute ();
28819int
28820main ()
28821{
28822return fftw_execute ();
28823 ;
28824 return 0;
28825}
28826_ACEOF
28827if ac_fn_c_try_link "$LINENO"; then :
28828 ac_cv_lib_fftw3_fftw_execute=yes
28829else
28830 ac_cv_lib_fftw3_fftw_execute=no
28831fi
28832rm -f core conftest.err conftest.$ac_objext \
28833 conftest$ac_exeext conftest.$ac_ext
28834LIBS=$ac_check_lib_save_LIBS
28835fi
28836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28837$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28838if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28839 passed=`expr $passed + 1`
28840else
28841 failed=`expr $failed + 1`
28842fi
28843
28844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28845$as_echo_n "checking if FFTW package is complete... " >&6; }
28846 if test $passed -gt 0; then
28847 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28849$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028850 have_fftw='no (failed tests)'
28851 else
28852 FFTW_LIBS='-lfftw3'
28853 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028854
cristy8b350f62009-11-15 23:12:43 +000028855$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028856
cristyad38abe2012-12-23 23:03:21 +000028857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28858$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028859 have_fftw='yes'
28860 fi
28861 else
cristyad38abe2012-12-23 23:03:21 +000028862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28863$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028864 fi
28865fi
cristy73bd4a52010-10-05 11:24:23 +000028866 if test "$have_fftw" = 'yes'; then
28867 FFTW_DELEGATE_TRUE=
28868 FFTW_DELEGATE_FALSE='#'
28869else
28870 FFTW_DELEGATE_TRUE='#'
28871 FFTW_DELEGATE_FALSE=
28872fi
28873
cristy3ed852e2009-09-05 21:47:34 +000028874
28875
28876
28877#
28878# Check for FlashPIX delegate library.
28879#
28880
28881# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028882if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028883 withval=$with_fpx; with_fpx=$withval
28884else
28885 with_fpx='yes'
28886fi
28887
28888
28889if test "$with_fpx" != 'yes'; then
28890 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28891fi
28892
28893have_fpx='no'
28894FPX_LIBS=''
cristyd7f73ad2014-03-05 00:25:29 +000028895SAVED_LIBS=${LIBS}
28896LIBS=${LIBS/-ldjvulibre/}
cristy3ed852e2009-09-05 21:47:34 +000028897if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28899$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028901$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28903$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028904 failed=0
28905 passed=0
28906 ac_ext=cpp
28907ac_cpp='$CXXCPP $CPPFLAGS'
28908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28911
28912
cristy8b350f62009-11-15 23:12:43 +000028913ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028914if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028915 passed=`expr $passed + 1`
28916else
28917 failed=`expr $failed + 1`
28918fi
28919
28920
cristy8b350f62009-11-15 23:12:43 +000028921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028922$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028923if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028924 $as_echo_n "(cached) " >&6
28925else
28926 ac_check_lib_save_LIBS=$LIBS
28927LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028929/* end confdefs.h. */
28930
28931/* Override any GCC internal prototype to avoid an error.
28932 Use char because int might match the return type of a GCC
28933 builtin and then its argument prototype would still apply. */
28934#ifdef __cplusplus
28935extern "C"
28936#endif
28937char FPX_OpenImageByFilename ();
28938int
28939main ()
28940{
28941return FPX_OpenImageByFilename ();
28942 ;
28943 return 0;
28944}
28945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028946if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028947 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28948else
cristy8b350f62009-11-15 23:12:43 +000028949 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028950fi
cristy8b350f62009-11-15 23:12:43 +000028951rm -f core conftest.err conftest.$ac_objext \
28952 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028953LIBS=$ac_check_lib_save_LIBS
28954fi
cristy8b350f62009-11-15 23:12:43 +000028955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028956$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028957if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028958 passed=`expr $passed + 1`
28959else
28960 failed=`expr $failed + 1`
28961fi
28962
28963 ac_ext=c
28964ac_cpp='$CPP $CPPFLAGS'
28965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28967ac_compiler_gnu=$ac_cv_c_compiler_gnu
28968
cristy8b350f62009-11-15 23:12:43 +000028969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028970$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28971 if test $passed -gt 0; then
28972 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28974$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028975 have_fpx='no (failed tests)'
28976 else
28977 FPX_LIBS='-lfpx'
28978
cristy8b350f62009-11-15 23:12:43 +000028979$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028980
cristyad38abe2012-12-23 23:03:21 +000028981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28982$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028983 have_fpx='yes'
28984 PERLMAINCC="$CXX"
28985 fi
28986 else
cristyad38abe2012-12-23 23:03:21 +000028987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28988$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028989 fi
28990fi
cristy73bd4a52010-10-05 11:24:23 +000028991 if test "$have_fpx" = 'yes'; then
28992 FPX_DELEGATE_TRUE=
28993 FPX_DELEGATE_FALSE='#'
28994else
28995 FPX_DELEGATE_TRUE='#'
28996 FPX_DELEGATE_FALSE=
28997fi
28998
cristy3ed852e2009-09-05 21:47:34 +000028999
cristyd7f73ad2014-03-05 00:25:29 +000029000LIBS=${SAVED_LIBS}
cristy3ed852e2009-09-05 21:47:34 +000029001
29002
29003#
29004# Check for fontconfig delegate library.
29005#
29006
29007# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029008if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029009 withval=$with_fontconfig; with_fontconfig=$withval
29010else
cristyfc3d0222012-02-07 15:05:57 +000029011 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029012fi
29013
29014
29015if test "$with_fontconfig" != 'yes'; then
29016 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29017fi
29018
29019have_fontconfig='no'
29020FONTCONFIG_CFLAGS=""
29021FONTCONFIG_LIBS=""
29022FONTCONFIG_PKG=""
29023if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29025$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029026
29027pkg_failed=no
29028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29029$as_echo_n "checking for FONTCONFIG... " >&6; }
29030
29031if test -n "$FONTCONFIG_CFLAGS"; then
29032 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29033 elif test -n "$PKG_CONFIG"; then
29034 if test -n "$PKG_CONFIG" && \
29035 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29036 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29037 ac_status=$?
29038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29039 test $ac_status = 0; }; then
29040 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29041else
29042 pkg_failed=yes
29043fi
29044 else
29045 pkg_failed=untried
29046fi
29047if test -n "$FONTCONFIG_LIBS"; then
29048 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29049 elif test -n "$PKG_CONFIG"; then
29050 if test -n "$PKG_CONFIG" && \
29051 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29052 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29053 ac_status=$?
29054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29055 test $ac_status = 0; }; then
29056 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29057else
29058 pkg_failed=yes
29059fi
29060 else
29061 pkg_failed=untried
29062fi
29063
29064
29065
29066if test $pkg_failed = yes; then
29067
29068if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29069 _pkg_short_errors_supported=yes
29070else
29071 _pkg_short_errors_supported=no
29072fi
29073 if test $_pkg_short_errors_supported = yes; then
29074 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29075 else
29076 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29077 fi
29078 # Put the nasty error message in config.log where it belongs
29079 echo "$FONTCONFIG_PKG_ERRORS" >&5
29080
29081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29082$as_echo "no" >&6; }
29083 have_fontconfig=no
29084elif test $pkg_failed = untried; then
29085 have_fontconfig=no
29086else
29087 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29088 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29090$as_echo "yes" >&6; }
29091 have_fontconfig=yes
29092fi
cristyad38abe2012-12-23 23:03:21 +000029093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29094$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029095fi
29096
29097if test "$have_fontconfig" = 'yes'; then
29098
cristy8b350f62009-11-15 23:12:43 +000029099$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029100
cristyc6722092012-10-14 00:19:31 +000029101 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029102 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029103 fi
cristy3ed852e2009-09-05 21:47:34 +000029104fi
29105
cristy73bd4a52010-10-05 11:24:23 +000029106 if test "$have_fontconfig" = 'yes'; then
29107 FONTCONFIG_DELEGATE_TRUE=
29108 FONTCONFIG_DELEGATE_FALSE='#'
29109else
29110 FONTCONFIG_DELEGATE_TRUE='#'
29111 FONTCONFIG_DELEGATE_FALSE=
29112fi
29113
cristy3ed852e2009-09-05 21:47:34 +000029114
29115
29116
29117
29118#
cristy03f187e2013-01-24 00:22:19 +000029119# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029120#
29121
29122# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029123if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029124 withval=$with_freetype; with_freetype=$withval
29125else
29126 with_freetype='yes'
29127fi
29128
29129
cristy3ed852e2009-09-05 21:47:34 +000029130if test "$with_freetype" != 'yes'; then
29131 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29132fi
29133
cristy81beccd2011-10-03 18:17:24 +000029134have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029135FREETYPE_CFLAGS=""
29136FREETYPE_LIBS=""
29137FREETYPE_PKG=""
29138if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29140$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029141
29142pkg_failed=no
29143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29144$as_echo_n "checking for FREETYPE... " >&6; }
29145
29146if test -n "$FREETYPE_CFLAGS"; then
29147 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29148 elif test -n "$PKG_CONFIG"; then
29149 if test -n "$PKG_CONFIG" && \
29150 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29151 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29152 ac_status=$?
29153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29154 test $ac_status = 0; }; then
29155 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29156else
29157 pkg_failed=yes
29158fi
29159 else
29160 pkg_failed=untried
29161fi
29162if test -n "$FREETYPE_LIBS"; then
29163 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29164 elif test -n "$PKG_CONFIG"; then
29165 if test -n "$PKG_CONFIG" && \
29166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29167 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29168 ac_status=$?
29169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29170 test $ac_status = 0; }; then
29171 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29172else
29173 pkg_failed=yes
29174fi
29175 else
29176 pkg_failed=untried
29177fi
29178
29179
29180
29181if test $pkg_failed = yes; then
29182
29183if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29184 _pkg_short_errors_supported=yes
29185else
29186 _pkg_short_errors_supported=no
29187fi
29188 if test $_pkg_short_errors_supported = yes; then
29189 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29190 else
29191 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29192 fi
29193 # Put the nasty error message in config.log where it belongs
29194 echo "$FREETYPE_PKG_ERRORS" >&5
29195
29196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29197$as_echo "no" >&6; }
29198 have_freetype=no
29199elif test $pkg_failed = untried; then
29200 have_freetype=no
29201else
29202 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29203 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29205$as_echo "yes" >&6; }
29206 have_freetype=yes
29207fi
cristyad38abe2012-12-23 23:03:21 +000029208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29209$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029210fi
29211
cristy03f187e2013-01-24 00:22:19 +000029212if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029213
cristy8b350f62009-11-15 23:12:43 +000029214$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029215
cristy03f187e2013-01-24 00:22:19 +000029216 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029217fi
cristy03f187e2013-01-24 00:22:19 +000029218
cristy73bd4a52010-10-05 11:24:23 +000029219 if test "$have_freetype" = 'yes'; then
29220 FREETYPE_DELEGATE_TRUE=
29221 FREETYPE_DELEGATE_FALSE='#'
29222else
29223 FREETYPE_DELEGATE_TRUE='#'
29224 FREETYPE_DELEGATE_FALSE=
29225fi
29226
cristy3ed852e2009-09-05 21:47:34 +000029227
29228
29229
cristy03f187e2013-01-24 00:22:19 +000029230
cristy3ed852e2009-09-05 21:47:34 +000029231#
29232# Check for Ghostscript library or framework.
29233#
29234# Test for iapi.h & test for gsapi_new_instance in -lgs
29235# or -framework Ghostscript
29236
29237
29238# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029239if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029240 withval=$with_gslib; with_gslib=$withval
29241else
29242 with_gslib='no'
29243fi
29244
29245
cristyb7931f12009-09-25 10:22:21 +000029246gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029247if test "$with_gslib" != 'yes'; then
29248 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29249fi
29250
29251have_gslib='no'
29252GS_LIBS=''
29253if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29255$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029257$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29259$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029260 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029261 failed=0
29262 passed=0
cristy8b350f62009-11-15 23:12:43 +000029263 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 +000029264if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029265 passed=`expr $passed + 1`
29266else
29267 failed=`expr $failed + 1`
29268fi
29269
29270
cristy8b350f62009-11-15 23:12:43 +000029271 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 +000029272if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029273 passed=`expr $passed + 1`
29274else
29275 failed=`expr $failed + 1`
29276fi
29277
29278
cristy73bd4a52010-10-05 11:24:23 +000029279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29280$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029281if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029282 $as_echo_n "(cached) " >&6
29283else
29284 ac_check_framework_save_LIBS=$LIBS
29285LIBS="-framework Ghostscript $LIBS"
29286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29287/* end confdefs.h. */
29288
29289/* Override any GCC internal prototype to avoid an error.
29290 Use char because int might match the return type of a GCC
29291 builtin and then its argument prototype would still apply. */
29292#ifdef __cplusplus
29293extern "C"
29294#endif
29295char gsapi_new_instance ();
29296int
29297main ()
29298{
29299return gsapi_new_instance ();
29300 ;
29301 return 0;
29302}
29303_ACEOF
29304if ac_fn_c_try_link "$LINENO"; then :
29305 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29306else
29307 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29308fi
29309rm -f core conftest.err conftest.$ac_objext \
29310 conftest$ac_exeext conftest.$ac_ext
29311LIBS=$ac_check_framework_save_LIBS
29312fi
29313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29314$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29315if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29316 framework=`expr $framework + 1`
29317else
29318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029319$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029320if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029321 $as_echo_n "(cached) " >&6
29322else
29323 ac_check_lib_save_LIBS=$LIBS
29324LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029326/* end confdefs.h. */
29327
29328/* Override any GCC internal prototype to avoid an error.
29329 Use char because int might match the return type of a GCC
29330 builtin and then its argument prototype would still apply. */
29331#ifdef __cplusplus
29332extern "C"
29333#endif
29334char gsapi_new_instance ();
29335int
29336main ()
29337{
29338return gsapi_new_instance ();
29339 ;
29340 return 0;
29341}
29342_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029343if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029344 ac_cv_lib_gs_gsapi_new_instance=yes
29345else
cristy8b350f62009-11-15 23:12:43 +000029346 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029347fi
cristy8b350f62009-11-15 23:12:43 +000029348rm -f core conftest.err conftest.$ac_objext \
29349 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029350LIBS=$ac_check_lib_save_LIBS
29351fi
cristy8b350f62009-11-15 23:12:43 +000029352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029353$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029354if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029355 passed=`expr $passed + 1`
29356else
29357 failed=`expr $failed + 1`
29358fi
cristy73bd4a52010-10-05 11:24:23 +000029359
29360fi
cristy8b350f62009-11-15 23:12:43 +000029361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029362$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29363 if test $passed -gt 0; then
29364 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29366$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029367 have_gslib='no (failed tests)'
29368 else
29369 if test $framework -gt 0; then
29370 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029371 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29373$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029374 else
cristyad38abe2012-12-23 23:03:21 +000029375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29376$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029377 GS_LIBS='-lgs'
29378 fi
29379 LIBS="$GS_LIBS $LIBS"
29380
cristy8b350f62009-11-15 23:12:43 +000029381$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029382
29383 have_gslib='yes'
29384 fi
29385 else
cristyad38abe2012-12-23 23:03:21 +000029386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29387$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029388 fi
29389fi
cristy73bd4a52010-10-05 11:24:23 +000029390 if test "$have_gslib" = 'yes'; then
29391 GS_DELEGATE_TRUE=
29392 GS_DELEGATE_FALSE='#'
29393else
29394 GS_DELEGATE_TRUE='#'
29395 GS_DELEGATE_FALSE=
29396fi
29397
cristy3ed852e2009-09-05 21:47:34 +000029398
29399
29400# Set default font search path
29401
29402# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029403if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029404 withval=$with_fontpath; with_fontpath=$withval
29405else
29406 with_fontpath=''
29407fi
29408
29409
29410if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29411 with_fontpath=''
29412else
29413
29414cat >>confdefs.h <<_ACEOF
29415#define MAGICK_FONT_PATH "$with_fontpath"
29416_ACEOF
29417
29418fi
29419if test "$with_fontpath=" != ''; then
29420 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29421fi
29422
29423# Set Ghostscript font directory
29424
29425# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029426if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029427 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29428else
29429 with_gs_font_dir='default'
29430fi
29431
29432
29433if test "$with_gs_font_dir" != 'default'; then
29434 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29435fi
29436
29437
29438#
29439# Check for GVC delegate library.
29440#
29441
29442# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029443if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029444 withval=$with_gvc; with_gvc=$withval
29445else
cristy1b70dc82012-07-01 23:15:05 +000029446 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029447fi
29448
29449
29450if test "$with_gvc" != 'yes'; then
29451 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29452fi
29453
29454GVC_PKG=""
29455if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29457$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029458
29459pkg_failed=no
29460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29461$as_echo_n "checking for GVC... " >&6; }
29462
29463if test -n "$GVC_CFLAGS"; then
29464 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29465 elif test -n "$PKG_CONFIG"; then
29466 if test -n "$PKG_CONFIG" && \
29467 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29468 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29469 ac_status=$?
29470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29471 test $ac_status = 0; }; then
29472 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29473else
29474 pkg_failed=yes
29475fi
29476 else
29477 pkg_failed=untried
29478fi
29479if test -n "$GVC_LIBS"; then
29480 pkg_cv_GVC_LIBS="$GVC_LIBS"
29481 elif test -n "$PKG_CONFIG"; then
29482 if test -n "$PKG_CONFIG" && \
29483 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29484 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29485 ac_status=$?
29486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29487 test $ac_status = 0; }; then
29488 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29489else
29490 pkg_failed=yes
29491fi
29492 else
29493 pkg_failed=untried
29494fi
29495
29496
29497
29498if test $pkg_failed = yes; then
29499
29500if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29501 _pkg_short_errors_supported=yes
29502else
29503 _pkg_short_errors_supported=no
29504fi
29505 if test $_pkg_short_errors_supported = yes; then
29506 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29507 else
29508 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29509 fi
29510 # Put the nasty error message in config.log where it belongs
29511 echo "$GVC_PKG_ERRORS" >&5
29512
29513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29514$as_echo "no" >&6; }
29515 have_gvc=no
29516elif test $pkg_failed = untried; then
29517 have_gvc=no
29518else
29519 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29520 GVC_LIBS=$pkg_cv_GVC_LIBS
29521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29522$as_echo "yes" >&6; }
29523 have_gvc=yes
29524fi
cristyad38abe2012-12-23 23:03:21 +000029525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29526$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029527fi
29528
29529if test "$have_gvc" = 'yes'; then
29530
cristy8b350f62009-11-15 23:12:43 +000029531$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029532
cristyc6722092012-10-14 00:19:31 +000029533 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029534 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29535 fi
29536fi
29537
cristy73bd4a52010-10-05 11:24:23 +000029538 if test "$have_gvc" = 'yes'; then
29539 GVC_DELEGATE_TRUE=
29540 GVC_DELEGATE_FALSE='#'
29541else
29542 GVC_DELEGATE_TRUE='#'
29543 GVC_DELEGATE_FALSE=
29544fi
29545
cristy3ed852e2009-09-05 21:47:34 +000029546
29547
29548
29549
29550#
29551# Check for JBIG delegate library.
29552#
29553
29554
29555# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029556if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029557 withval=$with_jbig; with_jbig=$withval
29558else
29559 with_jbig='yes'
29560fi
29561
29562
29563have_jbig='no'
29564JBIG_LIBS=''
29565if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29567$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029569$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29571$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029572 failed=0
29573 passed=0
cristy8b350f62009-11-15 23:12:43 +000029574 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029575if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029576 passed=`expr $passed + 1`
29577else
29578 failed=`expr $failed + 1`
29579fi
29580
29581
cristy8b350f62009-11-15 23:12:43 +000029582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029583$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029584if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029585 $as_echo_n "(cached) " >&6
29586else
29587 ac_check_lib_save_LIBS=$LIBS
29588LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029590/* end confdefs.h. */
29591
29592/* Override any GCC internal prototype to avoid an error.
29593 Use char because int might match the return type of a GCC
29594 builtin and then its argument prototype would still apply. */
29595#ifdef __cplusplus
29596extern "C"
29597#endif
29598char jbg_dec_init ();
29599int
29600main ()
29601{
29602return jbg_dec_init ();
29603 ;
29604 return 0;
29605}
29606_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029607if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029608 ac_cv_lib_jbig_jbg_dec_init=yes
29609else
cristy8b350f62009-11-15 23:12:43 +000029610 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029611fi
cristy8b350f62009-11-15 23:12:43 +000029612rm -f core conftest.err conftest.$ac_objext \
29613 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029614LIBS=$ac_check_lib_save_LIBS
29615fi
cristy8b350f62009-11-15 23:12:43 +000029616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029617$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029618if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029619 passed=`expr $passed + 1`
29620else
29621 failed=`expr $failed + 1`
29622fi
29623
cristy8b350f62009-11-15 23:12:43 +000029624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029625$as_echo_n "checking if JBIG package is complete... " >&6; }
29626 if test $passed -gt 0; then
29627 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29629$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029630 have_jbig='no (failed tests)'
29631 else
29632 JBIG_LIBS='-ljbig'
29633 LIBS="$JBIG_LIBS $LIBS"
29634
cristy8b350f62009-11-15 23:12:43 +000029635$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029636
cristyad38abe2012-12-23 23:03:21 +000029637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29638$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029639 have_jbig='yes'
29640 fi
29641 else
cristyad38abe2012-12-23 23:03:21 +000029642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29643$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029644 fi
29645fi
cristy73bd4a52010-10-05 11:24:23 +000029646 if test "$have_jbig" = 'yes'; then
29647 JBIG_DELEGATE_TRUE=
29648 JBIG_DELEGATE_FALSE='#'
29649else
29650 JBIG_DELEGATE_TRUE='#'
29651 JBIG_DELEGATE_FALSE=
29652fi
29653
cristy3ed852e2009-09-05 21:47:34 +000029654
29655
29656
29657#
29658# Check for JPEG delegate library.
29659#
29660
29661# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029662if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029663 withval=$with_jpeg; with_jpeg=$withval
29664else
29665 with_jpeg='yes'
29666fi
29667
29668
29669if test "$with_jpeg" != 'yes'; then
29670 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29671fi
29672
29673have_jpeg='no'
29674JPEG_LIBS=''
29675if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29677$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029679$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29681$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029682 failed=0
29683 passed=0
cristy8b350f62009-11-15 23:12:43 +000029684 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029685if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029686 passed=`expr $passed + 1`
29687else
29688 failed=`expr $failed + 1`
29689fi
29690
29691
cristy8b350f62009-11-15 23:12:43 +000029692 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029693if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029694 passed=`expr $passed + 1`
29695else
29696 failed=`expr $failed + 1`
29697fi
29698
29699
cristy8b350f62009-11-15 23:12:43 +000029700 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029701if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029702 passed=`expr $passed + 1`
29703else
29704 failed=`expr $failed + 1`
29705fi
29706
29707
cristy8b350f62009-11-15 23:12:43 +000029708 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029709if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029710 passed=`expr $passed + 1`
29711else
29712 failed=`expr $failed + 1`
29713fi
29714
29715
cristy8b350f62009-11-15 23:12:43 +000029716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029717$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029718if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029719 $as_echo_n "(cached) " >&6
29720else
29721 ac_check_lib_save_LIBS=$LIBS
29722LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029724/* end confdefs.h. */
29725
29726/* Override any GCC internal prototype to avoid an error.
29727 Use char because int might match the return type of a GCC
29728 builtin and then its argument prototype would still apply. */
29729#ifdef __cplusplus
29730extern "C"
29731#endif
29732char jpeg_read_header ();
29733int
29734main ()
29735{
29736return jpeg_read_header ();
29737 ;
29738 return 0;
29739}
29740_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029741if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029742 ac_cv_lib_jpeg_jpeg_read_header=yes
29743else
cristy8b350f62009-11-15 23:12:43 +000029744 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029745fi
cristy8b350f62009-11-15 23:12:43 +000029746rm -f core conftest.err conftest.$ac_objext \
29747 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029748LIBS=$ac_check_lib_save_LIBS
29749fi
cristy8b350f62009-11-15 23:12:43 +000029750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029751$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029752if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029753 passed=`expr $passed + 1`
29754else
29755 failed=`expr $failed + 1`
29756fi
29757
29758
29759# Test for compatible JPEG library
29760if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029762$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029763if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029764 $as_echo_n "(cached) " >&6
29765else
cristy8b350f62009-11-15 23:12:43 +000029766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029767/* end confdefs.h. */
29768#include <stdio.h>
29769#include <stdlib.h>
29770#include <jpeglib.h>
29771
29772int
29773main ()
29774{
29775
29776#if JPEG_LIB_VERSION < 62
29777#error IJG JPEG library must be version 6b or newer!
29778#endif
29779return 0;
29780
29781 ;
29782 return 0;
29783}
29784_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029785if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029786 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29787else
cristy8b350f62009-11-15 23:12:43 +000029788 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029789fi
cristy3ed852e2009-09-05 21:47:34 +000029790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29791fi
cristy8b350f62009-11-15 23:12:43 +000029792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029793$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29794fi
cristy8b350f62009-11-15 23:12:43 +000029795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029796$as_echo_n "checking if JPEG package is complete... " >&6; }
29797 if test $passed -gt 0; then
29798 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29800$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029801 have_jpeg='no (failed tests)'
29802 else
29803 JPEG_LIBS='-ljpeg'
29804 LIBS="$JPEG_LIBS $LIBS"
29805
cristy8b350f62009-11-15 23:12:43 +000029806$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029807
cristyad38abe2012-12-23 23:03:21 +000029808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29809$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029810 have_jpeg='yes'
29811 fi
29812 else
cristyad38abe2012-12-23 23:03:21 +000029813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29814$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029815 fi
29816fi
cristy73bd4a52010-10-05 11:24:23 +000029817 if test "$have_jpeg" = 'yes'; then
29818 JPEG_DELEGATE_TRUE=
29819 JPEG_DELEGATE_FALSE='#'
29820else
29821 JPEG_DELEGATE_TRUE='#'
29822 JPEG_DELEGATE_FALSE=
29823fi
29824
cristy3ed852e2009-09-05 21:47:34 +000029825
29826
29827
29828#
cristy3ed852e2009-09-05 21:47:34 +000029829# Check for LCMS delegate library.
29830#
cristy71203402010-06-18 13:12:03 +000029831# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029832
29833# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029834if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029835 withval=$with_lcms; with_lcms=$withval
29836else
29837 with_lcms='yes'
29838fi
29839
cristy71203402010-06-18 13:12:03 +000029840if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029841 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29842fi
29843
cristy71203402010-06-18 13:12:03 +000029844# Disable LCMS2.
29845
29846# Check whether --with-lcms2 was given.
29847if test "${with_lcms2+set}" = set; then :
29848 withval=$with_lcms2; with_lcms2=$withval
29849else
29850 with_lcms2='yes'
29851fi
29852
29853if test "$with_lcms2" != 'yes' ; then
29854 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29855fi
29856
29857have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029858LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029859if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29861$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29863$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29865$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029866 failed=0
29867 passed=0
29868 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029869
29870 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029871 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029872if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029873 have_lcms_header='yes'
29874fi
29875
29876
29877 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029878
29879$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29880
cristy71203402010-06-18 13:12:03 +000029881 passed=`expr $passed + 1`
29882 fi
29883
29884 # Check for <lcms2/lcms2.h)
29885 if test "$have_lcms_header" != 'yes'; then
29886 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 +000029887if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029888 have_lcms_header='yes'
29889fi
29890
29891
cristy71203402010-06-18 13:12:03 +000029892 if test "$have_lcms_header" = 'yes'; then
29893 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029894
cristy71203402010-06-18 13:12:03 +000029895$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029896
cristy71203402010-06-18 13:12:03 +000029897 fi
cristyd09bcf92010-03-25 03:04:45 +000029898 fi
cristy71203402010-06-18 13:12:03 +000029899
29900 # Failed to find lcms header?
29901 if test "$have_lcms_header" != 'yes'; then
29902 failed=`expr $failed + 1`
29903 fi
29904
29905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29906$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029907if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029908 $as_echo_n "(cached) " >&6
29909else
29910 ac_check_lib_save_LIBS=$LIBS
29911LIBS="-llcms2 $LIBS"
29912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29913/* end confdefs.h. */
29914
29915/* Override any GCC internal prototype to avoid an error.
29916 Use char because int might match the return type of a GCC
29917 builtin and then its argument prototype would still apply. */
29918#ifdef __cplusplus
29919extern "C"
29920#endif
cristy71203402010-06-18 13:12:03 +000029921char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029922int
29923main ()
29924{
cristy71203402010-06-18 13:12:03 +000029925return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029926 ;
29927 return 0;
29928}
29929_ACEOF
29930if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029931 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029932else
cristy71203402010-06-18 13:12:03 +000029933 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029934fi
29935rm -f core conftest.err conftest.$ac_objext \
29936 conftest$ac_exeext conftest.$ac_ext
29937LIBS=$ac_check_lib_save_LIBS
29938fi
cristy71203402010-06-18 13:12:03 +000029939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29940$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029941if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029942 passed=`expr $passed + 1`
29943else
29944 failed=`expr $failed + 1`
29945fi
29946
cristy71203402010-06-18 13:12:03 +000029947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29948$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029949 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029950 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29952$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029953 have_lcms2='no (failed tests)'
29954 else
29955 LCMS_LIBS='-llcms2'
29956 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29958$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029959 have_lcms2='yes'
29960 fi
cristyd09bcf92010-03-25 03:04:45 +000029961 else
cristyad38abe2012-12-23 23:03:21 +000029962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29963$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029964 fi
29965fi
29966
cristy71203402010-06-18 13:12:03 +000029967#
29968# Check for LCMS v1 (1.11 or later)
29969#
29970if test $have_lcms2 = 'yes'; then
29971 with_lcms='no'
29972fi
29973
29974have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029975if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29977$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29979$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29981$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029982 failed=0
29983 passed=0
29984 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029985
29986 # Check for <lcms.h>
29987 if test "$have_lcms_header" != 'yes'; then
29988 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029989if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029990 have_lcms_header='yes'
29991fi
29992
29993
cristy71203402010-06-18 13:12:03 +000029994 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029995 passed=`expr $passed + 1`
29996
cristy8b350f62009-11-15 23:12:43 +000029997$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029998
cristy71203402010-06-18 13:12:03 +000029999 fi
30000 fi
30001
30002 # Check for <lcms/lcms.h>
30003 if test "$have_lcms_header" != 'yes'; then
30004 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 +000030005if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030006 have_lcms_header='yes'
30007fi
30008
30009
cristy71203402010-06-18 13:12:03 +000030010 if test "$have_lcms_header" = 'yes'; then
30011 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030012
cristy8b350f62009-11-15 23:12:43 +000030013$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030014
cristy71203402010-06-18 13:12:03 +000030015 fi
cristy3ed852e2009-09-05 21:47:34 +000030016 fi
cristy71203402010-06-18 13:12:03 +000030017
30018 # Failed to find lcms header?
30019 if test "$have_lcms_header" != 'yes'; then
30020 failed=`expr $failed + 1`
30021 fi
30022
30023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30024$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030025if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030026 $as_echo_n "(cached) " >&6
30027else
30028 ac_check_lib_save_LIBS=$LIBS
30029LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030031/* end confdefs.h. */
30032
30033/* Override any GCC internal prototype to avoid an error.
30034 Use char because int might match the return type of a GCC
30035 builtin and then its argument prototype would still apply. */
30036#ifdef __cplusplus
30037extern "C"
30038#endif
cristy71203402010-06-18 13:12:03 +000030039char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030040int
30041main ()
30042{
cristy71203402010-06-18 13:12:03 +000030043return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030044 ;
30045 return 0;
30046}
30047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030048if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030049 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030050else
cristy71203402010-06-18 13:12:03 +000030051 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030052fi
cristy8b350f62009-11-15 23:12:43 +000030053rm -f core conftest.err conftest.$ac_objext \
30054 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030055LIBS=$ac_check_lib_save_LIBS
30056fi
cristy71203402010-06-18 13:12:03 +000030057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30058$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030059if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030060 passed=`expr $passed + 1`
30061else
30062 failed=`expr $failed + 1`
30063fi
30064
cristy8b350f62009-11-15 23:12:43 +000030065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030066$as_echo_n "checking if LCMS package is complete... " >&6; }
30067 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030068 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30070$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030071 have_lcms='no (failed tests)'
30072 else
30073 LCMS_LIBS='-llcms'
30074 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30076$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030077 have_lcms='yes'
30078 fi
cristy3ed852e2009-09-05 21:47:34 +000030079 else
cristyad38abe2012-12-23 23:03:21 +000030080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30081$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030082 fi
30083fi
cristy71203402010-06-18 13:12:03 +000030084
cristy73bd4a52010-10-05 11:24:23 +000030085 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30086 LCMS_DELEGATE_TRUE=
30087 LCMS_DELEGATE_FALSE='#'
30088else
30089 LCMS_DELEGATE_TRUE='#'
30090 LCMS_DELEGATE_FALSE=
30091fi
30092
cristy71203402010-06-18 13:12:03 +000030093if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30094
30095$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30096
30097fi
30098
cristy3ed852e2009-09-05 21:47:34 +000030099
30100
30101
30102#
cristy99db3872014-01-01 15:11:34 +000030103# Check for the OpenJP2 delegate library.
30104#
30105
30106# Check whether --with-openjp2 was given.
30107if test "${with_openjp2+set}" = set; then :
30108 withval=$with_openjp2; with_openjp2=$withval
30109else
30110 with_openjp2='yes'
30111fi
30112
30113
30114if test "$with_openjp2" != 'yes'; then
30115 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30116fi
30117
30118have_openjp2='no'
30119LIBOPENJP2_CFLAGS=""
30120LIBOPENJP2_LIBS=""
30121LIBOPENJP2_PKG=""
30122if test "x$with_openjp2" = "xyes"; then
30123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30124$as_echo "-------------------------------------------------------------" >&6; }
30125
30126pkg_failed=no
30127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30128$as_echo_n "checking for LIBOPENJP2... " >&6; }
30129
30130if test -n "$LIBOPENJP2_CFLAGS"; then
30131 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30132 elif test -n "$PKG_CONFIG"; then
30133 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030134 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30135 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030136 ac_status=$?
30137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30138 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030139 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030140else
30141 pkg_failed=yes
30142fi
30143 else
30144 pkg_failed=untried
30145fi
30146if test -n "$LIBOPENJP2_LIBS"; then
30147 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30148 elif test -n "$PKG_CONFIG"; then
30149 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030150 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30151 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030152 ac_status=$?
30153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30154 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030155 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030156else
30157 pkg_failed=yes
30158fi
30159 else
30160 pkg_failed=untried
30161fi
30162
30163
30164
30165if test $pkg_failed = yes; then
30166
30167if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30168 _pkg_short_errors_supported=yes
30169else
30170 _pkg_short_errors_supported=no
30171fi
30172 if test $_pkg_short_errors_supported = yes; then
cristybc964932014-05-08 21:45:03 +000030173 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030174 else
cristybc964932014-05-08 21:45:03 +000030175 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030176 fi
30177 # Put the nasty error message in config.log where it belongs
30178 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30179
30180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30181$as_echo "no" >&6; }
30182 have_openjp2=no
30183elif test $pkg_failed = untried; then
30184 have_openjp2=no
30185else
30186 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30187 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30189$as_echo "yes" >&6; }
30190 have_openjp2=yes
30191fi
30192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30193$as_echo "" >&6; }
30194fi
30195
30196if test "$have_openjp2" = 'yes'; then
30197
30198$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30199
30200 if test "$build_modules" = 'no'; then
30201 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30202 fi
30203fi
30204
30205 if test "$have_openjp2" = 'yes'; then
30206 LIBOPENJP2_DELEGATE_TRUE=
30207 LIBOPENJP2_DELEGATE_FALSE='#'
30208else
30209 LIBOPENJP2_DELEGATE_TRUE='#'
30210 LIBOPENJP2_DELEGATE_FALSE=
30211fi
30212
30213
30214
30215
30216
30217
30218#
cristy3ed852e2009-09-05 21:47:34 +000030219# Check for the LQR (Liquid Rescale) delegate library.
30220#
30221
30222# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030223if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030224 withval=$with_lqr; with_lqr=$withval
30225else
30226 with_lqr='yes'
30227fi
30228
30229
30230if test "$with_lqr" != 'yes'; then
30231 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30232fi
30233
30234have_lqr='no'
30235LQR_CFLAGS=""
30236LQR_LIBS=""
30237LQR_PKG=""
30238if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30240$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030241
30242pkg_failed=no
30243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30244$as_echo_n "checking for LQR... " >&6; }
30245
30246if test -n "$LQR_CFLAGS"; then
30247 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30248 elif test -n "$PKG_CONFIG"; then
30249 if test -n "$PKG_CONFIG" && \
30250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30251 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30252 ac_status=$?
30253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30254 test $ac_status = 0; }; then
30255 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30256else
30257 pkg_failed=yes
30258fi
30259 else
30260 pkg_failed=untried
30261fi
30262if test -n "$LQR_LIBS"; then
30263 pkg_cv_LQR_LIBS="$LQR_LIBS"
30264 elif test -n "$PKG_CONFIG"; then
30265 if test -n "$PKG_CONFIG" && \
30266 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30267 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30268 ac_status=$?
30269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30270 test $ac_status = 0; }; then
30271 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30272else
30273 pkg_failed=yes
30274fi
30275 else
30276 pkg_failed=untried
30277fi
30278
30279
30280
30281if test $pkg_failed = yes; then
30282
30283if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30284 _pkg_short_errors_supported=yes
30285else
30286 _pkg_short_errors_supported=no
30287fi
30288 if test $_pkg_short_errors_supported = yes; then
30289 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30290 else
30291 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30292 fi
30293 # Put the nasty error message in config.log where it belongs
30294 echo "$LQR_PKG_ERRORS" >&5
30295
30296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30297$as_echo "no" >&6; }
30298 have_lqr=no
30299elif test $pkg_failed = untried; then
30300 have_lqr=no
30301else
30302 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30303 LQR_LIBS=$pkg_cv_LQR_LIBS
30304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30305$as_echo "yes" >&6; }
30306 have_lqr=yes
30307fi
cristyad38abe2012-12-23 23:03:21 +000030308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30309$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030310fi
30311
30312if test "$have_lqr" = 'yes'; then
30313
cristy8b350f62009-11-15 23:12:43 +000030314$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030315
30316 CFLAGS="$LQR_CFLAGS $CFLAGS"
30317fi
30318
cristy73bd4a52010-10-05 11:24:23 +000030319 if test "$have_lqr" = 'yes'; then
30320 LQR_DELEGATE_TRUE=
30321 LQR_DELEGATE_FALSE='#'
30322else
30323 LQR_DELEGATE_TRUE='#'
30324 LQR_DELEGATE_FALSE=
30325fi
30326
cristy3ed852e2009-09-05 21:47:34 +000030327
30328
30329
30330
cristy81beccd2011-10-03 18:17:24 +000030331# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030332
30333# Check whether --with-lzma was given.
30334if test "${with_lzma+set}" = set; then :
30335 withval=$with_lzma; with_lzma=$withval
30336else
30337 with_lzma='yes'
30338fi
30339
cristy81beccd2011-10-03 18:17:24 +000030340if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030341 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30342fi
30343
cristyb94e5002011-11-14 13:20:10 +000030344LZMA_PKG=""
30345if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30347$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030348
30349pkg_failed=no
30350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030351$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030352
30353if test -n "$LZMA_CFLAGS"; then
30354 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30355 elif test -n "$PKG_CONFIG"; then
30356 if test -n "$PKG_CONFIG" && \
30357 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30358 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30359 ac_status=$?
30360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30361 test $ac_status = 0; }; then
30362 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30363else
30364 pkg_failed=yes
30365fi
30366 else
30367 pkg_failed=untried
30368fi
30369if test -n "$LZMA_LIBS"; then
30370 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30371 elif test -n "$PKG_CONFIG"; then
30372 if test -n "$PKG_CONFIG" && \
30373 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30374 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30375 ac_status=$?
30376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30377 test $ac_status = 0; }; then
30378 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30379else
30380 pkg_failed=yes
30381fi
30382 else
30383 pkg_failed=untried
30384fi
30385
30386
30387
30388if test $pkg_failed = yes; then
30389
30390if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30391 _pkg_short_errors_supported=yes
30392else
30393 _pkg_short_errors_supported=no
30394fi
30395 if test $_pkg_short_errors_supported = yes; then
30396 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30397 else
30398 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30399 fi
30400 # Put the nasty error message in config.log where it belongs
30401 echo "$LZMA_PKG_ERRORS" >&5
30402
30403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30404$as_echo "no" >&6; }
30405 have_lzma=no
30406elif test $pkg_failed = untried; then
30407 have_lzma=no
30408else
30409 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30410 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30412$as_echo "yes" >&6; }
30413 have_lzma=yes
30414fi
cristyad38abe2012-12-23 23:03:21 +000030415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30416$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030417fi
30418
cristyb94e5002011-11-14 13:20:10 +000030419if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030420
30421$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30422
cristyc6722092012-10-14 00:19:31 +000030423 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030424 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030425 fi
cristyfbb0ef02010-12-19 02:32:11 +000030426fi
cristyb94e5002011-11-14 13:20:10 +000030427
cristyfbb0ef02010-12-19 02:32:11 +000030428 if test "$have_lzma" = 'yes'; then
30429 LZMA_DELEGATE_TRUE=
30430 LZMA_DELEGATE_FALSE='#'
30431else
30432 LZMA_DELEGATE_TRUE='#'
30433 LZMA_DELEGATE_FALSE=
30434fi
30435
30436
30437
30438
cristyb94e5002011-11-14 13:20:10 +000030439
cristy3ed852e2009-09-05 21:47:34 +000030440#
30441# Check for the OpenEXR delegate library.
30442#
30443
30444# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030445if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030446 withval=$with_openexr; with_openexr=$withval
30447else
30448 with_openexr='yes'
30449fi
30450
30451
30452if test "$with_openexr" != 'yes'; then
30453 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30454fi
30455
30456have_openexr='no'
30457OPENEXR_CFLAGS=""
30458OPENEXR_LIBS=""
30459OPENEXR_PKG=""
30460if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30462$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030463
30464pkg_failed=no
30465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30466$as_echo_n "checking for OPENEXR... " >&6; }
30467
30468if test -n "$OPENEXR_CFLAGS"; then
30469 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30470 elif test -n "$PKG_CONFIG"; then
30471 if test -n "$PKG_CONFIG" && \
30472 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30473 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30474 ac_status=$?
30475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30476 test $ac_status = 0; }; then
30477 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30478else
30479 pkg_failed=yes
30480fi
30481 else
30482 pkg_failed=untried
30483fi
30484if test -n "$OPENEXR_LIBS"; then
30485 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30486 elif test -n "$PKG_CONFIG"; then
30487 if test -n "$PKG_CONFIG" && \
30488 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30489 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30490 ac_status=$?
30491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30492 test $ac_status = 0; }; then
30493 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30494else
30495 pkg_failed=yes
30496fi
30497 else
30498 pkg_failed=untried
30499fi
30500
30501
30502
30503if test $pkg_failed = yes; then
30504
30505if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30506 _pkg_short_errors_supported=yes
30507else
30508 _pkg_short_errors_supported=no
30509fi
30510 if test $_pkg_short_errors_supported = yes; then
30511 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30512 else
30513 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30514 fi
30515 # Put the nasty error message in config.log where it belongs
30516 echo "$OPENEXR_PKG_ERRORS" >&5
30517
30518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30519$as_echo "no" >&6; }
30520 have_openexr=no
30521elif test $pkg_failed = untried; then
30522 have_openexr=no
30523else
30524 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30525 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30527$as_echo "yes" >&6; }
30528 have_openexr=yes
30529fi
cristyad38abe2012-12-23 23:03:21 +000030530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30531$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030532fi
30533
30534if test "$have_openexr" = 'yes'; then
30535
cristy8b350f62009-11-15 23:12:43 +000030536$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030537
cristyc6722092012-10-14 00:19:31 +000030538 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030539 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30540 fi
30541fi
30542
cristy73bd4a52010-10-05 11:24:23 +000030543 if test "$have_openexr" = 'yes'; then
30544 OPENEXR_DELEGATE_TRUE=
30545 OPENEXR_DELEGATE_FALSE='#'
30546else
30547 OPENEXR_DELEGATE_TRUE='#'
30548 OPENEXR_DELEGATE_FALSE=
30549fi
30550
cristy3ed852e2009-09-05 21:47:34 +000030551
30552
30553
30554
30555#
cristy41cbe8a2011-10-27 01:35:18 +000030556# Check for PANGO delegate library.
30557#
30558
30559# Check whether --with-pango was given.
30560if test "${with_pango+set}" = set; then :
30561 withval=$with_pango; with_pango=$withval
30562else
cristyfc3d0222012-02-07 15:05:57 +000030563 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030564fi
30565
30566
30567if test "$with_pango" != 'yes'; then
30568 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30569fi
30570
30571have_pango='no'
cristya054b762012-03-26 23:16:00 +000030572have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030573PANGO_CFLAGS=""
30574PANGO_LIBS=""
30575PANGO_PKG=""
30576if test "x$with_pango" = "xyes"; then
30577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30578$as_echo "-------------------------------------------------------------" >&6; }
30579
30580pkg_failed=no
30581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30582$as_echo_n "checking for PANGO... " >&6; }
30583
30584if test -n "$PANGO_CFLAGS"; then
30585 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30586 elif test -n "$PKG_CONFIG"; then
30587 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030588 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30589 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030590 ac_status=$?
30591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30592 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030593 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030594else
30595 pkg_failed=yes
30596fi
30597 else
30598 pkg_failed=untried
30599fi
30600if test -n "$PANGO_LIBS"; then
30601 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30602 elif test -n "$PKG_CONFIG"; then
30603 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30605 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030606 ac_status=$?
30607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30608 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030609 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030610else
30611 pkg_failed=yes
30612fi
30613 else
30614 pkg_failed=untried
30615fi
30616
30617
30618
30619if test $pkg_failed = yes; then
30620
30621if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30622 _pkg_short_errors_supported=yes
30623else
30624 _pkg_short_errors_supported=no
30625fi
30626 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030627 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030628 else
cristya054b762012-03-26 23:16:00 +000030629 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030630 fi
30631 # Put the nasty error message in config.log where it belongs
30632 echo "$PANGO_PKG_ERRORS" >&5
30633
30634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30635$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030636 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030637elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030638 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030639else
30640 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30641 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30643$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030644 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030645fi
30646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30647$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030648
30649pkg_failed=no
30650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30651$as_echo_n "checking for PANGO... " >&6; }
30652
30653if test -n "$PANGO_CFLAGS"; then
30654 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30655 elif test -n "$PKG_CONFIG"; then
30656 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030657 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30658 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030659 ac_status=$?
30660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30661 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030662 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030663else
30664 pkg_failed=yes
30665fi
30666 else
30667 pkg_failed=untried
30668fi
30669if test -n "$PANGO_LIBS"; then
30670 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30671 elif test -n "$PKG_CONFIG"; then
30672 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030673 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30674 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030675 ac_status=$?
30676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30677 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030678 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030679else
30680 pkg_failed=yes
30681fi
30682 else
30683 pkg_failed=untried
30684fi
30685
30686
30687
30688if test $pkg_failed = yes; then
30689
30690if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30691 _pkg_short_errors_supported=yes
30692else
30693 _pkg_short_errors_supported=no
30694fi
30695 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030696 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030697 else
cristy2542fc62011-12-06 17:50:25 +000030698 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030699 fi
30700 # Put the nasty error message in config.log where it belongs
30701 echo "$PANGO_PKG_ERRORS" >&5
30702
30703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30704$as_echo "no" >&6; }
30705 have_pango=no
30706elif test $pkg_failed = untried; then
30707 have_pango=no
30708else
30709 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30710 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30712$as_echo "yes" >&6; }
30713 have_pango=yes
30714fi
30715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30716$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030717fi
30718
30719if test "$have_pango" = 'yes'; then
30720
30721$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30722
cristyc6722092012-10-14 00:19:31 +000030723 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030724 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30725 fi
30726fi
30727
cristya054b762012-03-26 23:16:00 +000030728if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030729
cristya054b762012-03-26 23:16:00 +000030730$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030731
cristyc6722092012-10-14 00:19:31 +000030732 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030733 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030734 fi
30735fi
30736
30737 if test "$have_pango" = 'yes'; then
30738 PANGO_DELEGATE_TRUE=
30739 PANGO_DELEGATE_FALSE='#'
30740else
30741 PANGO_DELEGATE_TRUE='#'
30742 PANGO_DELEGATE_FALSE=
30743fi
30744
cristya054b762012-03-26 23:16:00 +000030745 if test "$have_pangocairo" = 'yes'; then
30746 PANGOCAIRO_DELEGATE_TRUE=
30747 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030748else
cristya054b762012-03-26 23:16:00 +000030749 PANGOCAIRO_DELEGATE_TRUE='#'
30750 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030751fi
30752
30753
30754
30755
30756
30757#
cristy3ed852e2009-09-05 21:47:34 +000030758# Check for PNG delegate library.
30759#
30760
30761# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030762if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030763 withval=$with_png; with_png=$withval
30764else
30765 with_png='yes'
30766fi
30767
30768
30769if test "$with_png" != 'yes'; then
30770 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30771fi
30772
cristy81beccd2011-10-03 18:17:24 +000030773have_png='no'
30774PNG_LIBS=''
30775
30776if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30778$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30780$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30782$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030783 failed=0
30784 passed=0
30785 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30786if test "x$ac_cv_header_png_h" = xyes; then :
30787 passed=`expr $passed + 1`
30788else
30789 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030790fi
30791
cristy81beccd2011-10-03 18:17:24 +000030792
30793
30794 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030795 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030796 if test "$have_png" = 'no' ; then
30797 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030798 pnglib='png'
30799 else
30800 pnglib="png1${var}"
30801 fi
30802
30803# Test for compatible LIBPNG library
30804 failed=0
30805 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030806 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030807 if test "${pnglib}" != 'png' ; then
30808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30809$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30811/* end confdefs.h. */
30812#include <stdio.h>
30813#include <stdlib.h>
30814#include <png.h>
30815
30816int
30817main ()
30818{
30819
30820#if PNG_LIBPNG_VER_MINOR != ${var}
30821#error LIBPNG library must be version 1${var}!
30822Kaboom, Kaboom
30823#endif
30824return 0;
30825
30826 ;
30827 return 0;
30828}
30829_ACEOF
30830if ac_fn_c_try_compile "$LINENO"; then :
30831 ac_cv_libpng_ok='yes'
30832else
30833 ac_cv_libpng_ok='no'
30834fi
30835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30836 if test "$ac_cv_libpng_ok" = 'yes' ; then
30837 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30839$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030840 else
30841 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30843$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030844 fi
30845 else
30846 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30848$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030849 fi
30850 fi
30851
30852 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030853 if test "1${var}" = '17' ; then
30854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30855$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30856if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30857 $as_echo_n "(cached) " >&6
30858else
30859 ac_check_lib_save_LIBS=$LIBS
30860LIBS="-lpng17 $LIBS"
30861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30862/* end confdefs.h. */
30863
30864/* Override any GCC internal prototype to avoid an error.
30865 Use char because int might match the return type of a GCC
30866 builtin and then its argument prototype would still apply. */
30867#ifdef __cplusplus
30868extern "C"
30869#endif
30870char png_get_io_ptr ();
30871int
30872main ()
30873{
30874return png_get_io_ptr ();
30875 ;
30876 return 0;
30877}
30878_ACEOF
30879if ac_fn_c_try_link "$LINENO"; then :
30880 ac_cv_lib_png17_png_get_io_ptr=yes
30881else
30882 ac_cv_lib_png17_png_get_io_ptr=no
30883fi
30884rm -f core conftest.err conftest.$ac_objext \
30885 conftest$ac_exeext conftest.$ac_ext
30886LIBS=$ac_check_lib_save_LIBS
30887fi
30888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30889$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30890if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30891 passed=`expr $passed + 1`
30892else
30893 failed=`expr $failed + 1`
30894fi
30895
30896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30897$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30898if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30899 $as_echo_n "(cached) " >&6
30900else
30901 ac_check_lib_save_LIBS=$LIBS
30902LIBS="-lpng17 $LIBS"
30903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30904/* end confdefs.h. */
30905
30906/* Override any GCC internal prototype to avoid an error.
30907 Use char because int might match the return type of a GCC
30908 builtin and then its argument prototype would still apply. */
30909#ifdef __cplusplus
30910extern "C"
30911#endif
30912char png_longjmp ();
30913int
30914main ()
30915{
30916return png_longjmp ();
30917 ;
30918 return 0;
30919}
30920_ACEOF
30921if ac_fn_c_try_link "$LINENO"; then :
30922 ac_cv_lib_png17_png_longjmp=yes
30923else
30924 ac_cv_lib_png17_png_longjmp=no
30925fi
30926rm -f core conftest.err conftest.$ac_objext \
30927 conftest$ac_exeext conftest.$ac_ext
30928LIBS=$ac_check_lib_save_LIBS
30929fi
30930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30931$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30932if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30933 passed=`expr $passed + 1`
30934else
30935 failed=`expr $failed + 1`
30936fi
30937
30938 fi
30939 if test "1${var}" = '16' ; then
30940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30941$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30942if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30943 $as_echo_n "(cached) " >&6
30944else
30945 ac_check_lib_save_LIBS=$LIBS
30946LIBS="-lpng16 $LIBS"
30947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30948/* end confdefs.h. */
30949
30950/* Override any GCC internal prototype to avoid an error.
30951 Use char because int might match the return type of a GCC
30952 builtin and then its argument prototype would still apply. */
30953#ifdef __cplusplus
30954extern "C"
30955#endif
30956char png_get_io_ptr ();
30957int
30958main ()
30959{
30960return png_get_io_ptr ();
30961 ;
30962 return 0;
30963}
30964_ACEOF
30965if ac_fn_c_try_link "$LINENO"; then :
30966 ac_cv_lib_png16_png_get_io_ptr=yes
30967else
30968 ac_cv_lib_png16_png_get_io_ptr=no
30969fi
30970rm -f core conftest.err conftest.$ac_objext \
30971 conftest$ac_exeext conftest.$ac_ext
30972LIBS=$ac_check_lib_save_LIBS
30973fi
30974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
30975$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
30976if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
30977 passed=`expr $passed + 1`
30978else
30979 failed=`expr $failed + 1`
30980fi
30981
30982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
30983$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
30984if ${ac_cv_lib_png16_png_longjmp+:} false; then :
30985 $as_echo_n "(cached) " >&6
30986else
30987 ac_check_lib_save_LIBS=$LIBS
30988LIBS="-lpng16 $LIBS"
30989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30990/* end confdefs.h. */
30991
30992/* Override any GCC internal prototype to avoid an error.
30993 Use char because int might match the return type of a GCC
30994 builtin and then its argument prototype would still apply. */
30995#ifdef __cplusplus
30996extern "C"
30997#endif
30998char png_longjmp ();
30999int
31000main ()
31001{
31002return png_longjmp ();
31003 ;
31004 return 0;
31005}
31006_ACEOF
31007if ac_fn_c_try_link "$LINENO"; then :
31008 ac_cv_lib_png16_png_longjmp=yes
31009else
31010 ac_cv_lib_png16_png_longjmp=no
31011fi
31012rm -f core conftest.err conftest.$ac_objext \
31013 conftest$ac_exeext conftest.$ac_ext
31014LIBS=$ac_check_lib_save_LIBS
31015fi
31016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31017$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31018if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31019 passed=`expr $passed + 1`
31020else
31021 failed=`expr $failed + 1`
31022fi
31023
31024 fi
cristy81beccd2011-10-03 18:17:24 +000031025 if test "1${var}" = '15' ; then
31026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31027$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31028if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31029 $as_echo_n "(cached) " >&6
31030else
31031 ac_check_lib_save_LIBS=$LIBS
31032LIBS="-lpng15 $LIBS"
31033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31034/* end confdefs.h. */
31035
31036/* Override any GCC internal prototype to avoid an error.
31037 Use char because int might match the return type of a GCC
31038 builtin and then its argument prototype would still apply. */
31039#ifdef __cplusplus
31040extern "C"
31041#endif
31042char png_get_io_ptr ();
31043int
31044main ()
31045{
31046return png_get_io_ptr ();
31047 ;
31048 return 0;
31049}
31050_ACEOF
31051if ac_fn_c_try_link "$LINENO"; then :
31052 ac_cv_lib_png15_png_get_io_ptr=yes
31053else
31054 ac_cv_lib_png15_png_get_io_ptr=no
31055fi
31056rm -f core conftest.err conftest.$ac_objext \
31057 conftest$ac_exeext conftest.$ac_ext
31058LIBS=$ac_check_lib_save_LIBS
31059fi
31060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31061$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31062if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31063 passed=`expr $passed + 1`
31064else
31065 failed=`expr $failed + 1`
31066fi
31067
31068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31069$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31070if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31071 $as_echo_n "(cached) " >&6
31072else
31073 ac_check_lib_save_LIBS=$LIBS
31074LIBS="-lpng15 $LIBS"
31075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31076/* end confdefs.h. */
31077
31078/* Override any GCC internal prototype to avoid an error.
31079 Use char because int might match the return type of a GCC
31080 builtin and then its argument prototype would still apply. */
31081#ifdef __cplusplus
31082extern "C"
31083#endif
31084char png_longjmp ();
31085int
31086main ()
31087{
31088return png_longjmp ();
31089 ;
31090 return 0;
31091}
31092_ACEOF
31093if ac_fn_c_try_link "$LINENO"; then :
31094 ac_cv_lib_png15_png_longjmp=yes
31095else
31096 ac_cv_lib_png15_png_longjmp=no
31097fi
31098rm -f core conftest.err conftest.$ac_objext \
31099 conftest$ac_exeext conftest.$ac_ext
31100LIBS=$ac_check_lib_save_LIBS
31101fi
31102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31103$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31104if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31105 passed=`expr $passed + 1`
31106else
31107 failed=`expr $failed + 1`
31108fi
31109
31110 fi
31111 if test "1${var}" = '14' ; then
31112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31113$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31114if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31115 $as_echo_n "(cached) " >&6
31116else
31117 ac_check_lib_save_LIBS=$LIBS
31118LIBS="-lpng14 $LIBS"
31119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31120/* end confdefs.h. */
31121
31122/* Override any GCC internal prototype to avoid an error.
31123 Use char because int might match the return type of a GCC
31124 builtin and then its argument prototype would still apply. */
31125#ifdef __cplusplus
31126extern "C"
31127#endif
31128char png_get_io_ptr ();
31129int
31130main ()
31131{
31132return png_get_io_ptr ();
31133 ;
31134 return 0;
31135}
31136_ACEOF
31137if ac_fn_c_try_link "$LINENO"; then :
31138 ac_cv_lib_png14_png_get_io_ptr=yes
31139else
31140 ac_cv_lib_png14_png_get_io_ptr=no
31141fi
31142rm -f core conftest.err conftest.$ac_objext \
31143 conftest$ac_exeext conftest.$ac_ext
31144LIBS=$ac_check_lib_save_LIBS
31145fi
31146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31147$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31148if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31149 passed=`expr $passed + 1`
31150else
31151 failed=`expr $failed + 1`
31152fi
31153
31154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31155$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31156if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31157 $as_echo_n "(cached) " >&6
31158else
31159 ac_check_lib_save_LIBS=$LIBS
31160LIBS="-lpng14 $LIBS"
31161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31162/* end confdefs.h. */
31163
31164/* Override any GCC internal prototype to avoid an error.
31165 Use char because int might match the return type of a GCC
31166 builtin and then its argument prototype would still apply. */
31167#ifdef __cplusplus
31168extern "C"
31169#endif
31170char png_get_io_state ();
31171int
31172main ()
31173{
31174return png_get_io_state ();
31175 ;
31176 return 0;
31177}
31178_ACEOF
31179if ac_fn_c_try_link "$LINENO"; then :
31180 ac_cv_lib_png14_png_get_io_state=yes
31181else
31182 ac_cv_lib_png14_png_get_io_state=no
31183fi
31184rm -f core conftest.err conftest.$ac_objext \
31185 conftest$ac_exeext conftest.$ac_ext
31186LIBS=$ac_check_lib_save_LIBS
31187fi
31188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31189$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31190if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31191 passed=`expr $passed + 1`
31192else
31193 failed=`expr $failed + 1`
31194fi
31195
31196 fi
31197 if test "1${var}" = '12' ; then
31198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31199$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31200if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31201 $as_echo_n "(cached) " >&6
31202else
31203 ac_check_lib_save_LIBS=$LIBS
31204LIBS="-lpng12 $LIBS"
31205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31206/* end confdefs.h. */
31207
31208/* Override any GCC internal prototype to avoid an error.
31209 Use char because int might match the return type of a GCC
31210 builtin and then its argument prototype would still apply. */
31211#ifdef __cplusplus
31212extern "C"
31213#endif
31214char png_get_io_ptr ();
31215int
31216main ()
31217{
31218return png_get_io_ptr ();
31219 ;
31220 return 0;
31221}
31222_ACEOF
31223if ac_fn_c_try_link "$LINENO"; then :
31224 ac_cv_lib_png12_png_get_io_ptr=yes
31225else
31226 ac_cv_lib_png12_png_get_io_ptr=no
31227fi
31228rm -f core conftest.err conftest.$ac_objext \
31229 conftest$ac_exeext conftest.$ac_ext
31230LIBS=$ac_check_lib_save_LIBS
31231fi
31232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31233$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31234if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31235 passed=`expr $passed + 1`
31236else
31237 failed=`expr $failed + 1`
31238fi
31239
31240 fi
31241 if test "1${var}" = '1' ; then
31242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31243$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31244if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31245 $as_echo_n "(cached) " >&6
31246else
31247 ac_check_lib_save_LIBS=$LIBS
31248LIBS="-lpng $LIBS"
31249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31250/* end confdefs.h. */
31251
31252/* Override any GCC internal prototype to avoid an error.
31253 Use char because int might match the return type of a GCC
31254 builtin and then its argument prototype would still apply. */
31255#ifdef __cplusplus
31256extern "C"
31257#endif
31258char png_get_io_ptr ();
31259int
31260main ()
31261{
31262return png_get_io_ptr ();
31263 ;
31264 return 0;
31265}
31266_ACEOF
31267if ac_fn_c_try_link "$LINENO"; then :
31268 ac_cv_lib_png_png_get_io_ptr=yes
31269else
31270 ac_cv_lib_png_png_get_io_ptr=no
31271fi
31272rm -f core conftest.err conftest.$ac_objext \
31273 conftest$ac_exeext conftest.$ac_ext
31274LIBS=$ac_check_lib_save_LIBS
31275fi
31276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31277$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31278if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31279 passed=`expr $passed + 1`
31280else
31281 failed=`expr $failed + 1`
31282fi
31283
31284 fi
31285 if test $passed -gt 0 -a $failed -le 0 ; then
31286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31287$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31288 if test $passed -gt 0 ; then
31289 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31291$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031292 have_png='no (failed tests)'
31293 else
31294 PNG_LIBS="-l${pnglib}"
31295 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031296
cristy8b350f62009-11-15 23:12:43 +000031297$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031298
cristyad38abe2012-12-23 23:03:21 +000031299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31300$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031301 have_png='yes'
31302 fi
31303 fi
31304 fi
31305 fi
31306 fi
31307 done
31308 fi
cristy3ed852e2009-09-05 21:47:34 +000031309fi
cristy64877302011-08-23 19:10:31 +000031310
cristy73bd4a52010-10-05 11:24:23 +000031311 if test "$have_png" = 'yes'; then
31312 PNG_DELEGATE_TRUE=
31313 PNG_DELEGATE_FALSE='#'
31314else
31315 PNG_DELEGATE_TRUE='#'
31316 PNG_DELEGATE_FALSE=
31317fi
31318
cristy3ed852e2009-09-05 21:47:34 +000031319
cristy50d3f5c2011-09-10 20:09:06 +000031320
cristy3ed852e2009-09-05 21:47:34 +000031321
31322
31323#
31324# Check for RSVG delegate library.
31325#
31326
31327# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031328if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031329 withval=$with_rsvg; with_rsvg=$withval
31330else
cristy1164d5f2012-08-15 00:58:25 +000031331 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031332fi
31333
31334
31335if test "$with_rsvg" != 'yes'; then
31336 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31337fi
31338
31339have_rsvg='no'
31340have_cairo='no'
31341RSVG_CFLAGS=""
31342RSVG_LIBS=""
31343RSVG_PKG=""
31344if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31346$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031347
31348pkg_failed=no
31349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31350$as_echo_n "checking for RSVG... " >&6; }
31351
31352if test -n "$RSVG_CFLAGS"; then
31353 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31354 elif test -n "$PKG_CONFIG"; then
31355 if test -n "$PKG_CONFIG" && \
31356 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31357 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31358 ac_status=$?
31359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31360 test $ac_status = 0; }; then
31361 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31362else
31363 pkg_failed=yes
31364fi
31365 else
31366 pkg_failed=untried
31367fi
31368if test -n "$RSVG_LIBS"; then
31369 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31370 elif test -n "$PKG_CONFIG"; then
31371 if test -n "$PKG_CONFIG" && \
31372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31373 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31374 ac_status=$?
31375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31376 test $ac_status = 0; }; then
31377 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31378else
31379 pkg_failed=yes
31380fi
31381 else
31382 pkg_failed=untried
31383fi
31384
31385
31386
31387if test $pkg_failed = yes; then
31388
31389if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31390 _pkg_short_errors_supported=yes
31391else
31392 _pkg_short_errors_supported=no
31393fi
31394 if test $_pkg_short_errors_supported = yes; then
31395 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31396 else
31397 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31398 fi
31399 # Put the nasty error message in config.log where it belongs
31400 echo "$RSVG_PKG_ERRORS" >&5
31401
31402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31403$as_echo "no" >&6; }
31404 have_rsvg=no
31405elif test $pkg_failed = untried; then
31406 have_rsvg=no
31407else
31408 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31409 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31411$as_echo "yes" >&6; }
31412 have_rsvg=yes
31413fi
cristyad38abe2012-12-23 23:03:21 +000031414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31415$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031416
31417pkg_failed=no
31418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31419$as_echo_n "checking for CAIRO_SVG... " >&6; }
31420
31421if test -n "$CAIRO_SVG_CFLAGS"; then
31422 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31423 elif test -n "$PKG_CONFIG"; then
31424 if test -n "$PKG_CONFIG" && \
31425 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31426 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31427 ac_status=$?
31428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31429 test $ac_status = 0; }; then
31430 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31431else
31432 pkg_failed=yes
31433fi
31434 else
31435 pkg_failed=untried
31436fi
31437if test -n "$CAIRO_SVG_LIBS"; then
31438 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31439 elif test -n "$PKG_CONFIG"; then
31440 if test -n "$PKG_CONFIG" && \
31441 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31442 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31443 ac_status=$?
31444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31445 test $ac_status = 0; }; then
31446 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31447else
31448 pkg_failed=yes
31449fi
31450 else
31451 pkg_failed=untried
31452fi
31453
31454
31455
31456if test $pkg_failed = yes; then
31457
31458if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31459 _pkg_short_errors_supported=yes
31460else
31461 _pkg_short_errors_supported=no
31462fi
31463 if test $_pkg_short_errors_supported = yes; then
31464 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31465 else
31466 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31467 fi
31468 # Put the nasty error message in config.log where it belongs
31469 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31470
31471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31472$as_echo "no" >&6; }
31473 have_cairo=no
31474elif test $pkg_failed = untried; then
31475 have_cairo=no
31476else
31477 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31478 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31480$as_echo "yes" >&6; }
31481 have_cairo=yes
31482fi
cristyad38abe2012-12-23 23:03:21 +000031483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31484$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031485fi
31486
31487if test "$have_rsvg" = 'yes'; then
31488
cristy8b350f62009-11-15 23:12:43 +000031489$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031490
cristyc6722092012-10-14 00:19:31 +000031491 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031492 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31493 fi
31494fi
31495
31496if test "$have_cairo" = 'yes'; then
31497
cristy8b350f62009-11-15 23:12:43 +000031498$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031499
cristyc6722092012-10-14 00:19:31 +000031500 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031501 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31502 fi
31503fi
31504
cristy73bd4a52010-10-05 11:24:23 +000031505 if test "$have_rsvg" = 'yes'; then
31506 RSVG_DELEGATE_TRUE=
31507 RSVG_DELEGATE_FALSE='#'
31508else
31509 RSVG_DELEGATE_TRUE='#'
31510 RSVG_DELEGATE_FALSE=
31511fi
31512
31513 if test "$have_cairo" = 'yes'; then
31514 CAIRO_DELEGATE_TRUE=
31515 CAIRO_DELEGATE_FALSE='#'
31516else
31517 CAIRO_DELEGATE_TRUE='#'
31518 CAIRO_DELEGATE_FALSE=
31519fi
31520
cristy3ed852e2009-09-05 21:47:34 +000031521
31522
31523
31524
31525#
31526# Check for TIFF delegate library.
31527#
31528
31529# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031530if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031531 withval=$with_tiff; with_tiff=$withval
31532else
31533 with_tiff='yes'
31534fi
31535
31536
31537if test "$with_tiff" != 'yes'; then
31538 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31539fi
31540
31541have_tiff='no'
31542TIFF_LIBS=''
31543if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31545$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031547$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31549$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031550 failed=0
31551 passed=0
cristy8b350f62009-11-15 23:12:43 +000031552 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031553if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031554 passed=`expr $passed + 1`
31555else
31556 failed=`expr $failed + 1`
31557fi
31558
31559
cristy8b350f62009-11-15 23:12:43 +000031560 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031561if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031562 passed=`expr $passed + 1`
31563else
31564 failed=`expr $failed + 1`
31565fi
31566
31567
cristy8b350f62009-11-15 23:12:43 +000031568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031569$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031570if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031571 $as_echo_n "(cached) " >&6
31572else
31573 ac_check_lib_save_LIBS=$LIBS
31574LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031576/* end confdefs.h. */
31577
31578/* Override any GCC internal prototype to avoid an error.
31579 Use char because int might match the return type of a GCC
31580 builtin and then its argument prototype would still apply. */
31581#ifdef __cplusplus
31582extern "C"
31583#endif
31584char TIFFOpen ();
31585int
31586main ()
31587{
31588return TIFFOpen ();
31589 ;
31590 return 0;
31591}
31592_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031593if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031594 ac_cv_lib_tiff_TIFFOpen=yes
31595else
cristy8b350f62009-11-15 23:12:43 +000031596 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031597fi
cristy8b350f62009-11-15 23:12:43 +000031598rm -f core conftest.err conftest.$ac_objext \
31599 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031600LIBS=$ac_check_lib_save_LIBS
31601fi
cristy8b350f62009-11-15 23:12:43 +000031602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031603$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031604if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031605 passed=`expr $passed + 1`
31606else
31607 failed=`expr $failed + 1`
31608fi
31609
cristy8b350f62009-11-15 23:12:43 +000031610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031611$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031612if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031613 $as_echo_n "(cached) " >&6
31614else
31615 ac_check_lib_save_LIBS=$LIBS
31616LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031618/* end confdefs.h. */
31619
31620/* Override any GCC internal prototype to avoid an error.
31621 Use char because int might match the return type of a GCC
31622 builtin and then its argument prototype would still apply. */
31623#ifdef __cplusplus
31624extern "C"
31625#endif
31626char TIFFClientOpen ();
31627int
31628main ()
31629{
31630return TIFFClientOpen ();
31631 ;
31632 return 0;
31633}
31634_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031635if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031636 ac_cv_lib_tiff_TIFFClientOpen=yes
31637else
cristy8b350f62009-11-15 23:12:43 +000031638 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031639fi
cristy8b350f62009-11-15 23:12:43 +000031640rm -f core conftest.err conftest.$ac_objext \
31641 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031642LIBS=$ac_check_lib_save_LIBS
31643fi
cristy8b350f62009-11-15 23:12:43 +000031644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031645$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031646if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031647 passed=`expr $passed + 1`
31648else
31649 failed=`expr $failed + 1`
31650fi
31651
cristy8b350f62009-11-15 23:12:43 +000031652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031653$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031654if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031655 $as_echo_n "(cached) " >&6
31656else
31657 ac_check_lib_save_LIBS=$LIBS
31658LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031660/* end confdefs.h. */
31661
31662/* Override any GCC internal prototype to avoid an error.
31663 Use char because int might match the return type of a GCC
31664 builtin and then its argument prototype would still apply. */
31665#ifdef __cplusplus
31666extern "C"
31667#endif
31668char TIFFIsByteSwapped ();
31669int
31670main ()
31671{
31672return TIFFIsByteSwapped ();
31673 ;
31674 return 0;
31675}
31676_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031677if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031678 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31679else
cristy8b350f62009-11-15 23:12:43 +000031680 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031681fi
cristy8b350f62009-11-15 23:12:43 +000031682rm -f core conftest.err conftest.$ac_objext \
31683 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031684LIBS=$ac_check_lib_save_LIBS
31685fi
cristy8b350f62009-11-15 23:12:43 +000031686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031687$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031688if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031689 passed=`expr $passed + 1`
31690else
31691 failed=`expr $failed + 1`
31692fi
31693
cristy8b350f62009-11-15 23:12:43 +000031694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031695$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031696if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031697 $as_echo_n "(cached) " >&6
31698else
31699 ac_check_lib_save_LIBS=$LIBS
31700LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031702/* end confdefs.h. */
31703
31704/* Override any GCC internal prototype to avoid an error.
31705 Use char because int might match the return type of a GCC
31706 builtin and then its argument prototype would still apply. */
31707#ifdef __cplusplus
31708extern "C"
31709#endif
31710char TIFFReadRGBATile ();
31711int
31712main ()
31713{
31714return TIFFReadRGBATile ();
31715 ;
31716 return 0;
31717}
31718_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031719if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031720 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31721else
cristy8b350f62009-11-15 23:12:43 +000031722 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031723fi
cristy8b350f62009-11-15 23:12:43 +000031724rm -f core conftest.err conftest.$ac_objext \
31725 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031726LIBS=$ac_check_lib_save_LIBS
31727fi
cristy8b350f62009-11-15 23:12:43 +000031728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031729$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031730if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031731 passed=`expr $passed + 1`
31732else
31733 failed=`expr $failed + 1`
31734fi
31735
cristy8b350f62009-11-15 23:12:43 +000031736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031737$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031738if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031739 $as_echo_n "(cached) " >&6
31740else
31741 ac_check_lib_save_LIBS=$LIBS
31742LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031744/* end confdefs.h. */
31745
31746/* Override any GCC internal prototype to avoid an error.
31747 Use char because int might match the return type of a GCC
31748 builtin and then its argument prototype would still apply. */
31749#ifdef __cplusplus
31750extern "C"
31751#endif
31752char TIFFReadRGBAStrip ();
31753int
31754main ()
31755{
31756return TIFFReadRGBAStrip ();
31757 ;
31758 return 0;
31759}
31760_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031761if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031762 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31763else
cristy8b350f62009-11-15 23:12:43 +000031764 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031765fi
cristy8b350f62009-11-15 23:12:43 +000031766rm -f core conftest.err conftest.$ac_objext \
31767 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031768LIBS=$ac_check_lib_save_LIBS
31769fi
cristy8b350f62009-11-15 23:12:43 +000031770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031771$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031772if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031773 passed=`expr $passed + 1`
31774else
31775 failed=`expr $failed + 1`
31776fi
31777
cristy8b350f62009-11-15 23:12:43 +000031778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031779$as_echo_n "checking if TIFF package is complete... " >&6; }
31780 if test $passed -gt 0; then
31781 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31783$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031784 have_tiff='no (failed tests)'
31785 else
31786 TIFF_LIBS='-ltiff'
31787 LIBS="$TIFF_LIBS $LIBS"
31788
cristy8b350f62009-11-15 23:12:43 +000031789$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031790
cristyad38abe2012-12-23 23:03:21 +000031791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31792$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031793 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031794 for ac_header in tiffconf.h
31795do :
31796 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031797if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031798 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031799#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031800_ACEOF
31801
31802fi
31803
31804done
31805
cristy8b350f62009-11-15 23:12:43 +000031806 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031807 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31808 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31809 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031810do :
31811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31812ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031813if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031814 cat >>confdefs.h <<_ACEOF
31815#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31816_ACEOF
31817
31818fi
31819done
31820
31821 fi
31822 else
cristyad38abe2012-12-23 23:03:21 +000031823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31824$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031825 fi
31826fi
cristy73bd4a52010-10-05 11:24:23 +000031827 if test "$have_tiff" = 'yes'; then
31828 TIFF_DELEGATE_TRUE=
31829 TIFF_DELEGATE_FALSE='#'
31830else
31831 TIFF_DELEGATE_TRUE='#'
31832 TIFF_DELEGATE_FALSE=
31833fi
31834
cristy3ed852e2009-09-05 21:47:34 +000031835
31836
31837
31838#
cristyb1860752011-03-14 00:27:46 +000031839# Check for WEBP delegate library.
31840#
31841
31842# Check whether --with-webp was given.
31843if test "${with_webp+set}" = set; then :
31844 withval=$with_webp; with_webp=$withval
31845else
31846 with_webp='yes'
31847fi
31848
31849
31850if test "$with_webp" != 'yes'; then
31851 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31852fi
31853
31854have_webp='no'
31855WEBP_LIBS=''
31856if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31858$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31860$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31862$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031863 failed=0
31864 passed=0
31865 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31866if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31867 passed=`expr $passed + 1`
31868else
31869 failed=`expr $failed + 1`
31870fi
31871
31872
cristy6d670312013-03-22 23:23:01 +000031873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31874$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31875if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031876 $as_echo_n "(cached) " >&6
31877else
31878 ac_check_lib_save_LIBS=$LIBS
31879LIBS="-lwebp $LIBS"
31880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31881/* end confdefs.h. */
31882
31883/* Override any GCC internal prototype to avoid an error.
31884 Use char because int might match the return type of a GCC
31885 builtin and then its argument prototype would still apply. */
31886#ifdef __cplusplus
31887extern "C"
31888#endif
cristy6d670312013-03-22 23:23:01 +000031889char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031890int
31891main ()
31892{
cristy6d670312013-03-22 23:23:01 +000031893return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031894 ;
31895 return 0;
31896}
31897_ACEOF
31898if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031899 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031900else
cristy6d670312013-03-22 23:23:01 +000031901 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031902fi
31903rm -f core conftest.err conftest.$ac_objext \
31904 conftest$ac_exeext conftest.$ac_ext
31905LIBS=$ac_check_lib_save_LIBS
31906fi
cristy6d670312013-03-22 23:23:01 +000031907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31908$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31909if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031910 passed=`expr $passed + 1`
31911else
31912 failed=`expr $failed + 1`
31913fi
31914
31915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31916$as_echo_n "checking if WEBP package is complete... " >&6; }
31917 if test $passed -gt 0; then
31918 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31920$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031921 have_webp='no (failed tests)'
31922 else
31923 WEBP_LIBS='-lwebp'
31924 LIBS="$WEBP_LIBS $LIBS"
31925
31926$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31927
cristyad38abe2012-12-23 23:03:21 +000031928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31929$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031930 have_webp='yes'
31931 fi
31932 else
cristyad38abe2012-12-23 23:03:21 +000031933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31934$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031935 fi
31936fi
31937 if test "$have_webp" = 'yes'; then
31938 WEBP_DELEGATE_TRUE=
31939 WEBP_DELEGATE_FALSE='#'
31940else
31941 WEBP_DELEGATE_TRUE='#'
31942 WEBP_DELEGATE_FALSE=
31943fi
31944
31945
31946
31947
31948#
cristy3ed852e2009-09-05 21:47:34 +000031949# Set Windows font directory.
31950#
31951
31952# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031953if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031954 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31955else
31956 with_windows_font_dir=''
31957fi
31958
31959if test "$with_windows_font_dir" != '' ; then
31960 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31961fi
31962
31963
31964#
31965# Check for WMF delegate library.
31966#
31967
31968# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031969if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031970 withval=$with_wmf; with_wmf=$withval
31971else
cristyfc3d0222012-02-07 15:05:57 +000031972 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031973fi
31974
31975
31976if test "$with_wmf" != 'yes'; then
31977 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31978fi
31979
31980have_wmf='no'
31981WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031982WMF_LIBS_DEPS=''
31983OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031984if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31986$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031988$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31990$as_echo "" >&6; }
31991 have_libwmf='no'
31992 have_libwmflite='no'
31993 have_libwmf_ipa_h='no'
31994
31995 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31996"
31997if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31998 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031999fi
32000
32001
cristy03f7cf92011-12-15 01:40:41 +000032002 if test "$have_libwmf_ipa_h" = 'yes'; then
32003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32004$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32005if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032006 $as_echo_n "(cached) " >&6
32007else
32008 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032009LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032011/* end confdefs.h. */
32012
32013/* Override any GCC internal prototype to avoid an error.
32014 Use char because int might match the return type of a GCC
32015 builtin and then its argument prototype would still apply. */
32016#ifdef __cplusplus
32017extern "C"
32018#endif
cristy03f7cf92011-12-15 01:40:41 +000032019char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032020int
32021main ()
32022{
cristy03f7cf92011-12-15 01:40:41 +000032023return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032024 ;
32025 return 0;
32026}
32027_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032028if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032029 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032030else
cristy03f7cf92011-12-15 01:40:41 +000032031 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032032fi
cristy8b350f62009-11-15 23:12:43 +000032033rm -f core conftest.err conftest.$ac_objext \
32034 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032035LIBS=$ac_check_lib_save_LIBS
32036fi
cristy03f7cf92011-12-15 01:40:41 +000032037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32038$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32039if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32040 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032041fi
32042
cristy03f7cf92011-12-15 01:40:41 +000032043 if test "$have_libwmflite" = 'yes'; then
32044
32045$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32046
32047 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032048 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032049 have_wmf='yes'
32050 else
32051 WMF_LIBS_DEPS=''
32052 WMF_CONFIG_LIBS=`libwmf-config --libs`
32053 for lib in xml2 expat freetype jpeg png z; do
32054 testlib="-l${lib}"
32055 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32056 done
32057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32058$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32059if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32060 $as_echo_n "(cached) " >&6
32061else
32062 ac_check_lib_save_LIBS=$LIBS
32063LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32065/* end confdefs.h. */
32066
32067/* Override any GCC internal prototype to avoid an error.
32068 Use char because int might match the return type of a GCC
32069 builtin and then its argument prototype would still apply. */
32070#ifdef __cplusplus
32071extern "C"
32072#endif
32073char wmf_api_create ();
32074int
32075main ()
32076{
32077return wmf_api_create ();
32078 ;
32079 return 0;
32080}
32081_ACEOF
32082if ac_fn_c_try_link "$LINENO"; then :
32083 ac_cv_lib_wmf_wmf_api_create=yes
32084else
32085 ac_cv_lib_wmf_wmf_api_create=no
32086fi
32087rm -f core conftest.err conftest.$ac_objext \
32088 conftest$ac_exeext conftest.$ac_ext
32089LIBS=$ac_check_lib_save_LIBS
32090fi
32091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32092$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32093if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32094 have_libwmf='yes'
32095fi
32096
32097 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032098
cristy8b350f62009-11-15 23:12:43 +000032099$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032100
cristy03f7cf92011-12-15 01:40:41 +000032101 WMF_LIBS='-lwmf'
32102 LIBS="$WMF_LIBS $LIBS"
32103 have_wmf='yes'
32104 else
32105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32106$as_echo "no -- some components failed test" >&6; }
32107 have_wmf='no (failed tests)'
32108 have_wmflite='no (failed tests)'
32109 LIBS="$OLIBS"
32110 WMF_LIBS=''
32111 fi
glennrp33e524b2011-08-24 17:41:57 +000032112 fi
cristy03f7cf92011-12-15 01:40:41 +000032113 fi
32114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32115$as_echo_n "checking if WMF package is complete... " >&6; }
32116 if test "$have_wmf" = 'yes'; then
32117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32118$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032119 else
cristy03f7cf92011-12-15 01:40:41 +000032120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32121$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032122 fi
cristy3ed852e2009-09-05 21:47:34 +000032123fi
cristy73bd4a52010-10-05 11:24:23 +000032124 if test "$have_wmf" = 'yes'; then
32125 WMF_DELEGATE_TRUE=
32126 WMF_DELEGATE_FALSE='#'
32127else
32128 WMF_DELEGATE_TRUE='#'
32129 WMF_DELEGATE_FALSE=
32130fi
32131
cristy3ed852e2009-09-05 21:47:34 +000032132
32133
32134
cristy81beccd2011-10-03 18:17:24 +000032135
32136
cristy3ed852e2009-09-05 21:47:34 +000032137#
32138# Check for XML delegate library.
32139#
32140
32141# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032142if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032143 withval=$with_xml; with_xml=$withval
32144else
cristyfc3d0222012-02-07 15:05:57 +000032145 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032146fi
32147
32148
cristy81beccd2011-10-03 18:17:24 +000032149if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032150 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32151fi
32152
cristy81beccd2011-10-03 18:17:24 +000032153have_xml='no'
32154XML_LIBS=''
32155if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32157$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32159$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32161$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032162 PERSIST_LDFLAGS=$LDFLAGS
32163 PERSIST_CPPFLAGS=$CPPFLAGS
32164 xml2_config=''
32165 # Extract the first word of "xml2-config", so it can be a program name with args.
32166set dummy xml2-config; ac_word=$2
32167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32168$as_echo_n "checking for $ac_word... " >&6; }
32169if ${ac_cv_path_xml2_config+:} false; then :
32170 $as_echo_n "(cached) " >&6
32171else
32172 case $xml2_config in
32173 [\\/]* | ?:[\\/]*)
32174 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32175 ;;
32176 *)
32177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32178for as_dir in $PATH
32179do
32180 IFS=$as_save_IFS
32181 test -z "$as_dir" && as_dir=.
32182 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032184 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32186 break 2
32187 fi
32188done
32189 done
32190IFS=$as_save_IFS
32191
32192 ;;
32193esac
32194fi
32195xml2_config=$ac_cv_path_xml2_config
32196if test -n "$xml2_config"; then
32197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32198$as_echo "$xml2_config" >&6; }
32199else
32200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32201$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032202fi
32203
cristy81beccd2011-10-03 18:17:24 +000032204 if test -n "$xml2_config"; then
32205 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32206 # the shared library installed under /usr/lib, whereas the package
32207 # installs itself under $prefix/libxml and $prefix/lib.
32208 xml2_prefix=`xml2-config --prefix`
32209 if test -d "${xml2_prefix}/include/libxml2"; then
32210 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32211 fi
32212 if test "${xml2_prefix}" != '/usr'; then
32213 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32214 fi
32215 fi
32216 failed=0
32217 passed=0
32218 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32219if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32220 passed=`expr $passed + 1`
32221else
32222 failed=`expr $failed + 1`
32223fi
32224
32225
32226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32227$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32228if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32229 $as_echo_n "(cached) " >&6
32230else
32231 ac_check_lib_save_LIBS=$LIBS
32232LIBS="-lxml2 $LIBS"
32233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32234/* end confdefs.h. */
32235
32236/* Override any GCC internal prototype to avoid an error.
32237 Use char because int might match the return type of a GCC
32238 builtin and then its argument prototype would still apply. */
32239#ifdef __cplusplus
32240extern "C"
32241#endif
32242char xmlSAXVersion ();
32243int
32244main ()
32245{
32246return xmlSAXVersion ();
32247 ;
32248 return 0;
32249}
32250_ACEOF
32251if ac_fn_c_try_link "$LINENO"; then :
32252 ac_cv_lib_xml2_xmlSAXVersion=yes
32253else
32254 ac_cv_lib_xml2_xmlSAXVersion=no
32255fi
32256rm -f core conftest.err conftest.$ac_objext \
32257 conftest$ac_exeext conftest.$ac_ext
32258LIBS=$ac_check_lib_save_LIBS
32259fi
32260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32261$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32262if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32263 passed=`expr $passed + 1`
32264else
32265 failed=`expr $failed + 1`
32266fi
32267
32268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32269$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32270if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32271 $as_echo_n "(cached) " >&6
32272else
32273 ac_check_lib_save_LIBS=$LIBS
32274LIBS="-lxml2 $LIBS"
32275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32276/* end confdefs.h. */
32277
32278/* Override any GCC internal prototype to avoid an error.
32279 Use char because int might match the return type of a GCC
32280 builtin and then its argument prototype would still apply. */
32281#ifdef __cplusplus
32282extern "C"
32283#endif
32284char xmlParseChunk ();
32285int
32286main ()
32287{
32288return xmlParseChunk ();
32289 ;
32290 return 0;
32291}
32292_ACEOF
32293if ac_fn_c_try_link "$LINENO"; then :
32294 ac_cv_lib_xml2_xmlParseChunk=yes
32295else
32296 ac_cv_lib_xml2_xmlParseChunk=no
32297fi
32298rm -f core conftest.err conftest.$ac_objext \
32299 conftest$ac_exeext conftest.$ac_ext
32300LIBS=$ac_check_lib_save_LIBS
32301fi
32302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32303$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32304if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32305 passed=`expr $passed + 1`
32306else
32307 failed=`expr $failed + 1`
32308fi
32309
32310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32311$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32312if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32313 $as_echo_n "(cached) " >&6
32314else
32315 ac_check_lib_save_LIBS=$LIBS
32316LIBS="-lxml2 $LIBS"
32317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32318/* end confdefs.h. */
32319
32320/* Override any GCC internal prototype to avoid an error.
32321 Use char because int might match the return type of a GCC
32322 builtin and then its argument prototype would still apply. */
32323#ifdef __cplusplus
32324extern "C"
32325#endif
32326char xmlCreatePushParserCtxt ();
32327int
32328main ()
32329{
32330return xmlCreatePushParserCtxt ();
32331 ;
32332 return 0;
32333}
32334_ACEOF
32335if ac_fn_c_try_link "$LINENO"; then :
32336 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32337else
32338 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32339fi
32340rm -f core conftest.err conftest.$ac_objext \
32341 conftest$ac_exeext conftest.$ac_ext
32342LIBS=$ac_check_lib_save_LIBS
32343fi
32344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32345$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32346if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32347 passed=`expr $passed + 1`
32348else
32349 failed=`expr $failed + 1`
32350fi
32351
32352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32353$as_echo_n "checking if XML package is complete... " >&6; }
32354 if test $passed -gt 0; then
32355 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32357$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032358 have_xml='no (failed tests)'
32359 LDFLAGS="$PERSIST_LDFLAGS"
32360 CPPFLAGS="$PERSIST_CPPFLAGS"
32361 else
32362 XML_LIBS='-lxml2'
32363 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032364
cristy8b350f62009-11-15 23:12:43 +000032365$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032366
cristyad38abe2012-12-23 23:03:21 +000032367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32368$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032369 have_xml='yes'
32370 fi
32371 else
cristyad38abe2012-12-23 23:03:21 +000032372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32373$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032374 fi
32375fi
cristy73bd4a52010-10-05 11:24:23 +000032376 if test "$have_xml" = 'yes'; then
32377 XML_DELEGATE_TRUE=
32378 XML_DELEGATE_FALSE='#'
32379else
32380 XML_DELEGATE_TRUE='#'
32381 XML_DELEGATE_FALSE=
32382fi
32383
cristy3ed852e2009-09-05 21:47:34 +000032384
32385
32386
32387# Substitute compiler name to build/link PerlMagick
32388#
32389
32390
32391#
32392# Configure install Paths
32393#
cristy7def36a2011-10-28 19:04:41 +000032394
cristy2a11bef2011-10-28 18:33:11 +000032395# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032396INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032397INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32398DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032399case "${build_os}" in
32400 mingw* )
32401 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32402 ;;
32403esac
32404
32405cat >>confdefs.h <<_ACEOF
32406#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32407_ACEOF
32408
32409
cristy3ed852e2009-09-05 21:47:34 +000032410
cristye52f12f2012-12-31 15:32:36 +000032411# Path to ImageMagick header files (arch part)
32412INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32413DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32414case "${build_os}" in
32415 mingw* )
32416 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32417 ;;
32418esac
32419
32420cat >>confdefs.h <<_ACEOF
32421#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32422_ACEOF
32423
32424
32425
cristy3ed852e2009-09-05 21:47:34 +000032426# Subdirectory under lib to place ImageMagick lib files
32427LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32428
32429cat >>confdefs.h <<_ACEOF
32430#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32431_ACEOF
32432
32433
32434# Path to ImageMagick bin directory
32435EXECUTABLE_PATH="${BIN_DIR}"
32436DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32437case "${build_os}" in
32438 mingw* )
32439 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32440 ;;
32441esac
32442
32443cat >>confdefs.h <<_ACEOF
32444#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32445_ACEOF
32446
32447
32448
32449# Path to ImageMagick lib
32450LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32451DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32452case "${build_os}" in
32453 mingw* )
32454 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32455 ;;
32456esac
32457
32458cat >>confdefs.h <<_ACEOF
32459#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32460_ACEOF
32461
32462
32463
cristy3ed852e2009-09-05 21:47:34 +000032464#
cristy8d0ff762013-03-10 20:33:28 +000032465# path to local binaries
32466if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32467 LIB_BIN_BASEDIRNAME="bin"
32468fi
32469
32470cat >>confdefs.h <<_ACEOF
32471#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32472_ACEOF
32473
32474
32475
32476if test "x$LIB_BIN_DIR" = "x"; then
32477 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32478fi
32479
32480
32481LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32482
32483LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32484
32485
32486#
cristy01ff9f32012-12-01 18:15:29 +000032487# path to modules lib
32488if test "x$MODULES_BASEDIRNAME" = "x"; then
32489 MODULES_BASEDIRNAME="modules"
32490fi
cristy3ed852e2009-09-05 21:47:34 +000032491
32492cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032493#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032494_ACEOF
32495
cristy01ff9f32012-12-01 18:15:29 +000032496
32497
32498if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032499 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32500else
cristy3ed852e2009-09-05 21:47:34 +000032501
32502cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032503#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032504_ACEOF
32505
cristycf4a3c22012-12-02 21:47:25 +000032506fi
cristy01ff9f32012-12-01 18:15:29 +000032507
32508
cristy371d4812012-12-01 19:48:10 +000032509MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032510
32511MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32512
32513
32514#
32515# path to coders lib
32516if test "x$CODER_DIRNAME" = "x"; then
32517 CODER_DIRNAME="coders"
32518fi
32519
32520cat >>confdefs.h <<_ACEOF
32521#define CODER_DIRNAME "$CODER_DIRNAME"
32522_ACEOF
32523
32524
32525
cristy371d4812012-12-01 19:48:10 +000032526CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032527CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032528
32529
32530#
32531# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032532#
32533# path to coders lib
32534if test "x$FILTER_DIRNAME" = "x"; then
32535 FILTER_DIRNAME="filters"
32536fi
cristy3ed852e2009-09-05 21:47:34 +000032537
32538cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032539#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032540_ACEOF
32541
cristy3ed852e2009-09-05 21:47:34 +000032542
cristy3ed852e2009-09-05 21:47:34 +000032543
cristy371d4812012-12-01 19:48:10 +000032544FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032545FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032546
32547
32548#
32549# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032550DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032551DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32552DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032553case "${build_os}" in
32554 mingw* )
32555 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32556 ;;
32557esac
32558
32559cat >>confdefs.h <<_ACEOF
32560#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32561_ACEOF
32562
32563
32564
cristydd17feb2014-03-05 02:06:32 +000032565#
32566# Enable/Disable documentation
32567# Check whether --enable-docs was given.
32568if test "${enable_docs+set}" = set; then :
32569 enableval=$enable_docs; wantdocs=$enableval
32570else
cristy02272312014-03-07 00:55:25 +000032571 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000032572fi
32573
cristy02272312014-03-07 00:55:25 +000032574 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000032575 INSTALL_DOC_TRUE=
32576 INSTALL_DOC_FALSE='#'
32577else
32578 INSTALL_DOC_TRUE='#'
32579 INSTALL_DOC_FALSE=
32580fi
32581
32582
cristy2a11bef2011-10-28 18:33:11 +000032583# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032584CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032585
32586cat >>confdefs.h <<_ACEOF
32587#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32588_ACEOF
32589
cristy7def36a2011-10-28 19:04:41 +000032590CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032591DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32592case "${build_os}" in
32593 mingw* )
32594 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32595 ;;
32596esac
32597
32598cat >>confdefs.h <<_ACEOF
32599#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32600_ACEOF
32601
32602
32603
cristy2a11bef2011-10-28 18:33:11 +000032604# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032605SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032606
32607cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032608#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032609_ACEOF
32610
cristy670aa3c2011-11-03 00:54:00 +000032611SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032612DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032613case "${build_os}" in
32614 mingw* )
cristy4f820712011-04-01 12:35:43 +000032615 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032616 ;;
32617esac
32618
32619cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032620#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032621_ACEOF
32622
32623
32624
cristy54378032012-12-04 15:52:20 +000032625#
32626# Subdirectory to place architecture-dependent configuration files.
32627if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32628 SHAREARCH_BASEDIRNAME="config"
32629fi
cristy670aa3c2011-11-03 00:54:00 +000032630
32631cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032632#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032633_ACEOF
32634
cristy54378032012-12-04 15:52:20 +000032635
32636
32637if test "x$SHAREARCH_DIRNAME" = "x"; then
32638 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32639else
cristy670aa3c2011-11-03 00:54:00 +000032640
32641cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032642#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032643_ACEOF
32644
cristy54378032012-12-04 15:52:20 +000032645fi
32646
32647
32648SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32649
32650SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032651
32652
cristy3ed852e2009-09-05 21:47:34 +000032653#
32654# program_transform_name is formed for use in a Makefile, so create a
32655# modified version for use in a shell script.
32656configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32657
32658# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32660$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032662$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32664$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032665AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032666BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032667BZIPDelegateDefault='bzip2'
32668BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032669CatDelegateDefault='cat'
32670DNGDecodeDelegateDefault='ufraw-batch'
32671GVCDecodeDelegateDefault='dot'
32672DVIDecodeDelegateDefault='dvips'
32673EchoDelegateDefault='echo'
32674EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032675ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32676DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32677MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32678GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032679HPGLDecodeDelegateDefault='hp2xx'
32680HTMLDecodeDelegateDefault='html2ps'
32681ILBMDecodeDelegateDefault='ilbmtoppm'
32682ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032683JXRDecodeDelegateDefault='JxrDecApp'
32684JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032685LPDelegateDefault='lp'
32686LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032687LaunchDelegateDefault='gimp'
32688MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032689MPEGDecodeDelegateDefault='avconv'
32690MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032691MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032692MVDelegateDefault='mv'
32693PCLDelegateDefault='pcl6'
32694PGPDecodeDelegateDefault='pgpv'
32695POVDelegateDefault='povray'
32696if test "$native_win32_build" = 'yes'; then
32697 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032698elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032699 PSDelegateDefault='gsc'
32700else
32701 PSDelegateDefault='gs'
32702fi
32703RLEEncodeDelegateDefault='rawtorle'
32704RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032705RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032706SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032707SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032708TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032709UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032710WebPDecodeDelegateDefault='dwebp'
32711WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032712WMFDecodeDelegateDefault='wmf2eps'
32713WWWDecodeDelegateDefault='curl'
32714XPSDelegateDefault='gxps'
32715ZipDelegateDefault='gzip'
32716
32717# Search for delegates
32718# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32719set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032721$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032722if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032723 $as_echo_n "(cached) " >&6
32724else
32725 case $AutotraceDecodeDelegate in
32726 [\\/]* | ?:[\\/]*)
32727 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32728 ;;
32729 *)
32730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32731for as_dir in $PATH
32732do
32733 IFS=$as_save_IFS
32734 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032735 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032737 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032739 break 2
32740 fi
32741done
cristy8b350f62009-11-15 23:12:43 +000032742 done
cristy3ed852e2009-09-05 21:47:34 +000032743IFS=$as_save_IFS
32744
32745 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32746 ;;
32747esac
32748fi
32749AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32750if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032752$as_echo "$AutotraceDecodeDelegate" >&6; }
32753else
cristy8b350f62009-11-15 23:12:43 +000032754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032755$as_echo "no" >&6; }
32756fi
32757
32758
cristy3ed852e2009-09-05 21:47:34 +000032759# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32760set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032762$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032763if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032764 $as_echo_n "(cached) " >&6
32765else
32766 case $BlenderDecodeDelegate in
32767 [\\/]* | ?:[\\/]*)
32768 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32769 ;;
32770 *)
32771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32772for as_dir in $PATH
32773do
32774 IFS=$as_save_IFS
32775 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032776 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032778 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032780 break 2
32781 fi
32782done
cristy8b350f62009-11-15 23:12:43 +000032783 done
cristy3ed852e2009-09-05 21:47:34 +000032784IFS=$as_save_IFS
32785
32786 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32787 ;;
32788esac
32789fi
32790BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32791if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032793$as_echo "$BlenderDecodeDelegate" >&6; }
32794else
cristy8b350f62009-11-15 23:12:43 +000032795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032796$as_echo "no" >&6; }
32797fi
32798
32799
32800# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32801set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032803$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032804if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032805 $as_echo_n "(cached) " >&6
32806else
32807 case $BZIPDelegate in
32808 [\\/]* | ?:[\\/]*)
32809 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32810 ;;
32811 *)
32812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32813for as_dir in $PATH
32814do
32815 IFS=$as_save_IFS
32816 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032817 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032819 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032821 break 2
32822 fi
32823done
cristy8b350f62009-11-15 23:12:43 +000032824 done
cristy3ed852e2009-09-05 21:47:34 +000032825IFS=$as_save_IFS
32826
32827 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32828 ;;
32829esac
32830fi
32831BZIPDelegate=$ac_cv_path_BZIPDelegate
32832if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032834$as_echo "$BZIPDelegate" >&6; }
32835else
cristy8b350f62009-11-15 23:12:43 +000032836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032837$as_echo "no" >&6; }
32838fi
32839
32840
cristyc59f0e72012-08-27 12:59:33 +000032841for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32842do
32843 # Extract the first word of "$ac_prog", so it can be a program name with args.
32844set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032846$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032847if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032848 $as_echo_n "(cached) " >&6
32849else
32850 case $BrowseDelegate in
32851 [\\/]* | ?:[\\/]*)
32852 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32853 ;;
32854 *)
32855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32856for as_dir in $PATH
32857do
32858 IFS=$as_save_IFS
32859 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032860 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032862 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032864 break 2
32865 fi
32866done
cristy8b350f62009-11-15 23:12:43 +000032867 done
cristy3ed852e2009-09-05 21:47:34 +000032868IFS=$as_save_IFS
32869
cristy3ed852e2009-09-05 21:47:34 +000032870 ;;
32871esac
32872fi
32873BrowseDelegate=$ac_cv_path_BrowseDelegate
32874if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032876$as_echo "$BrowseDelegate" >&6; }
32877else
cristy8b350f62009-11-15 23:12:43 +000032878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032879$as_echo "no" >&6; }
32880fi
32881
32882
cristyc59f0e72012-08-27 12:59:33 +000032883 test -n "$BrowseDelegate" && break
32884done
32885test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32886
cristy3ed852e2009-09-05 21:47:34 +000032887# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32888set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032890$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032891if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032892 $as_echo_n "(cached) " >&6
32893else
32894 case $CatDelegate in
32895 [\\/]* | ?:[\\/]*)
32896 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32897 ;;
32898 *)
32899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32900for as_dir in $PATH
32901do
32902 IFS=$as_save_IFS
32903 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032904 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032906 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032908 break 2
32909 fi
32910done
cristy8b350f62009-11-15 23:12:43 +000032911 done
cristy3ed852e2009-09-05 21:47:34 +000032912IFS=$as_save_IFS
32913
32914 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32915 ;;
32916esac
32917fi
32918CatDelegate=$ac_cv_path_CatDelegate
32919if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032921$as_echo "$CatDelegate" >&6; }
32922else
cristy8b350f62009-11-15 23:12:43 +000032923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032924$as_echo "no" >&6; }
32925fi
32926
32927
32928# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32929set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032931$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032932if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032933 $as_echo_n "(cached) " >&6
32934else
32935 case $DNGDecodeDelegate in
32936 [\\/]* | ?:[\\/]*)
32937 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32938 ;;
32939 *)
32940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32941for as_dir in $PATH
32942do
32943 IFS=$as_save_IFS
32944 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032945 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032947 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032949 break 2
32950 fi
32951done
cristy8b350f62009-11-15 23:12:43 +000032952 done
cristy3ed852e2009-09-05 21:47:34 +000032953IFS=$as_save_IFS
32954
32955 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32956 ;;
32957esac
32958fi
32959DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32960if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032962$as_echo "$DNGDecodeDelegate" >&6; }
32963else
cristy8b350f62009-11-15 23:12:43 +000032964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032965$as_echo "no" >&6; }
32966fi
32967
32968
32969# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32970set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032972$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032973if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032974 $as_echo_n "(cached) " >&6
32975else
32976 case $GVCDecodeDelegate in
32977 [\\/]* | ?:[\\/]*)
32978 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32979 ;;
32980 *)
32981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32982for as_dir in $PATH
32983do
32984 IFS=$as_save_IFS
32985 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032986 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032988 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032990 break 2
32991 fi
32992done
cristy8b350f62009-11-15 23:12:43 +000032993 done
cristy3ed852e2009-09-05 21:47:34 +000032994IFS=$as_save_IFS
32995
32996 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32997 ;;
32998esac
32999fi
33000GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33001if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033003$as_echo "$GVCDecodeDelegate" >&6; }
33004else
cristy8b350f62009-11-15 23:12:43 +000033005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033006$as_echo "no" >&6; }
33007fi
33008
33009
33010# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33011set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033013$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033014if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033015 $as_echo_n "(cached) " >&6
33016else
33017 case $DVIDecodeDelegate in
33018 [\\/]* | ?:[\\/]*)
33019 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33020 ;;
33021 *)
33022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33023for as_dir in $PATH
33024do
33025 IFS=$as_save_IFS
33026 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033027 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033029 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033031 break 2
33032 fi
33033done
cristy8b350f62009-11-15 23:12:43 +000033034 done
cristy3ed852e2009-09-05 21:47:34 +000033035IFS=$as_save_IFS
33036
33037 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33038 ;;
33039esac
33040fi
33041DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33042if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033044$as_echo "$DVIDecodeDelegate" >&6; }
33045else
cristy8b350f62009-11-15 23:12:43 +000033046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033047$as_echo "no" >&6; }
33048fi
33049
33050
33051# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33052set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033054$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033055if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033056 $as_echo_n "(cached) " >&6
33057else
33058 case $EchoDelegate in
33059 [\\/]* | ?:[\\/]*)
33060 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33061 ;;
33062 *)
33063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33064for as_dir in $PATH
33065do
33066 IFS=$as_save_IFS
33067 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033068 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033070 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033072 break 2
33073 fi
33074done
cristy8b350f62009-11-15 23:12:43 +000033075 done
cristy3ed852e2009-09-05 21:47:34 +000033076IFS=$as_save_IFS
33077
33078 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33079 ;;
33080esac
33081fi
33082EchoDelegate=$ac_cv_path_EchoDelegate
33083if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033085$as_echo "$EchoDelegate" >&6; }
33086else
cristy8b350f62009-11-15 23:12:43 +000033087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033088$as_echo "no" >&6; }
33089fi
33090
33091
33092# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33093set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033095$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033096if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033097 $as_echo_n "(cached) " >&6
33098else
33099 case $EditorDelegate in
33100 [\\/]* | ?:[\\/]*)
33101 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33102 ;;
33103 *)
33104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33105for as_dir in $PATH
33106do
33107 IFS=$as_save_IFS
33108 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033109 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033111 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033113 break 2
33114 fi
33115done
cristy8b350f62009-11-15 23:12:43 +000033116 done
cristy3ed852e2009-09-05 21:47:34 +000033117IFS=$as_save_IFS
33118
33119 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33120 ;;
33121esac
33122fi
33123EditorDelegate=$ac_cv_path_EditorDelegate
33124if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033126$as_echo "$EditorDelegate" >&6; }
33127else
cristy8b350f62009-11-15 23:12:43 +000033128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033129$as_echo "no" >&6; }
33130fi
33131
33132
cristy3ed852e2009-09-05 21:47:34 +000033133# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33134set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033136$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033137if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033138 $as_echo_n "(cached) " >&6
33139else
33140 case $ConvertDelegate in
33141 [\\/]* | ?:[\\/]*)
33142 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33143 ;;
33144 *)
33145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33146for as_dir in $PATH
33147do
33148 IFS=$as_save_IFS
33149 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033150 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033152 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033154 break 2
33155 fi
33156done
cristy8b350f62009-11-15 23:12:43 +000033157 done
cristy3ed852e2009-09-05 21:47:34 +000033158IFS=$as_save_IFS
33159
33160 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33161 ;;
33162esac
33163fi
33164ConvertDelegate=$ac_cv_path_ConvertDelegate
33165if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033167$as_echo "$ConvertDelegate" >&6; }
33168else
cristy8b350f62009-11-15 23:12:43 +000033169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033170$as_echo "no" >&6; }
33171fi
33172
33173
33174# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33175set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033177$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033178if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033179 $as_echo_n "(cached) " >&6
33180else
33181 case $DisplayDelegate in
33182 [\\/]* | ?:[\\/]*)
33183 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33184 ;;
33185 *)
33186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33187for as_dir in $PATH
33188do
33189 IFS=$as_save_IFS
33190 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033191 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033193 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033195 break 2
33196 fi
33197done
cristy8b350f62009-11-15 23:12:43 +000033198 done
cristy3ed852e2009-09-05 21:47:34 +000033199IFS=$as_save_IFS
33200
33201 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33202 ;;
33203esac
33204fi
33205DisplayDelegate=$ac_cv_path_DisplayDelegate
33206if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033208$as_echo "$DisplayDelegate" >&6; }
33209else
cristy8b350f62009-11-15 23:12:43 +000033210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033211$as_echo "no" >&6; }
33212fi
33213
33214
33215# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33216set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033218$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033219if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033220 $as_echo_n "(cached) " >&6
33221else
33222 case $MogrifyDelegate in
33223 [\\/]* | ?:[\\/]*)
33224 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33225 ;;
33226 *)
33227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33228for as_dir in $PATH
33229do
33230 IFS=$as_save_IFS
33231 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033232 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033234 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033236 break 2
33237 fi
33238done
cristy8b350f62009-11-15 23:12:43 +000033239 done
cristy3ed852e2009-09-05 21:47:34 +000033240IFS=$as_save_IFS
33241
33242 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33243 ;;
33244esac
33245fi
33246MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33247if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033249$as_echo "$MogrifyDelegate" >&6; }
33250else
cristy8b350f62009-11-15 23:12:43 +000033251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033252$as_echo "no" >&6; }
33253fi
33254
33255
33256# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33257set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033259$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033260if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033261 $as_echo_n "(cached) " >&6
33262else
33263 case $GnuplotDecodeDelegate in
33264 [\\/]* | ?:[\\/]*)
33265 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33266 ;;
33267 *)
33268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33269for as_dir in $PATH
33270do
33271 IFS=$as_save_IFS
33272 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033273 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033275 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033277 break 2
33278 fi
33279done
cristy8b350f62009-11-15 23:12:43 +000033280 done
cristy3ed852e2009-09-05 21:47:34 +000033281IFS=$as_save_IFS
33282
33283 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33284 ;;
33285esac
33286fi
33287GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33288if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033290$as_echo "$GnuplotDecodeDelegate" >&6; }
33291else
cristy8b350f62009-11-15 23:12:43 +000033292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033293$as_echo "no" >&6; }
33294fi
33295
33296
cristy3ed852e2009-09-05 21:47:34 +000033297# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33298set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033300$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033301if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033302 $as_echo_n "(cached) " >&6
33303else
33304 case $HPGLDecodeDelegate in
33305 [\\/]* | ?:[\\/]*)
33306 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33307 ;;
33308 *)
33309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33310for as_dir in $PATH
33311do
33312 IFS=$as_save_IFS
33313 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033314 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033316 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033318 break 2
33319 fi
33320done
cristy8b350f62009-11-15 23:12:43 +000033321 done
cristy3ed852e2009-09-05 21:47:34 +000033322IFS=$as_save_IFS
33323
33324 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33325 ;;
33326esac
33327fi
33328HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33329if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033331$as_echo "$HPGLDecodeDelegate" >&6; }
33332else
cristy8b350f62009-11-15 23:12:43 +000033333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033334$as_echo "no" >&6; }
33335fi
33336
33337
33338# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33339set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033341$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033342if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033343 $as_echo_n "(cached) " >&6
33344else
33345 case $HTMLDecodeDelegate in
33346 [\\/]* | ?:[\\/]*)
33347 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33348 ;;
33349 *)
33350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33351for as_dir in $PATH
33352do
33353 IFS=$as_save_IFS
33354 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033355 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033357 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033359 break 2
33360 fi
33361done
cristy8b350f62009-11-15 23:12:43 +000033362 done
cristy3ed852e2009-09-05 21:47:34 +000033363IFS=$as_save_IFS
33364
33365 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33366 ;;
33367esac
33368fi
33369HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33370if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033372$as_echo "$HTMLDecodeDelegate" >&6; }
33373else
cristy8b350f62009-11-15 23:12:43 +000033374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033375$as_echo "no" >&6; }
33376fi
33377
33378
33379# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33380set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033382$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033383if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033384 $as_echo_n "(cached) " >&6
33385else
33386 case $ILBMDecodeDelegate in
33387 [\\/]* | ?:[\\/]*)
33388 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33389 ;;
33390 *)
33391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33392for as_dir in $PATH
33393do
33394 IFS=$as_save_IFS
33395 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033396 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033398 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033400 break 2
33401 fi
33402done
cristy8b350f62009-11-15 23:12:43 +000033403 done
cristy3ed852e2009-09-05 21:47:34 +000033404IFS=$as_save_IFS
33405
33406 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33407 ;;
33408esac
33409fi
33410ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33411if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033413$as_echo "$ILBMDecodeDelegate" >&6; }
33414else
cristy8b350f62009-11-15 23:12:43 +000033415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033416$as_echo "no" >&6; }
33417fi
33418
33419
33420# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33421set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033423$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033424if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033425 $as_echo_n "(cached) " >&6
33426else
33427 case $ILBMEncodeDelegate in
33428 [\\/]* | ?:[\\/]*)
33429 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33430 ;;
33431 *)
33432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33433for as_dir in $PATH
33434do
33435 IFS=$as_save_IFS
33436 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033437 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033439 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033441 break 2
33442 fi
33443done
cristy8b350f62009-11-15 23:12:43 +000033444 done
cristy3ed852e2009-09-05 21:47:34 +000033445IFS=$as_save_IFS
33446
33447 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33448 ;;
33449esac
33450fi
33451ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33452if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033454$as_echo "$ILBMEncodeDelegate" >&6; }
33455else
cristy8b350f62009-11-15 23:12:43 +000033456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033457$as_echo "no" >&6; }
33458fi
33459
33460
cristy71f53d52013-04-27 13:33:59 +000033461# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33462set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33464$as_echo_n "checking for $ac_word... " >&6; }
33465if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33466 $as_echo_n "(cached) " >&6
33467else
33468 case $JXRDecodeDelegate in
33469 [\\/]* | ?:[\\/]*)
33470 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33471 ;;
33472 *)
33473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33474for as_dir in $PATH
33475do
33476 IFS=$as_save_IFS
33477 test -z "$as_dir" && as_dir=.
33478 for ac_exec_ext in '' $ac_executable_extensions; do
33479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33480 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33482 break 2
33483 fi
33484done
33485 done
33486IFS=$as_save_IFS
33487
33488 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33489 ;;
33490esac
33491fi
33492JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33493if test -n "$JXRDecodeDelegate"; then
33494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33495$as_echo "$JXRDecodeDelegate" >&6; }
33496else
33497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33498$as_echo "no" >&6; }
33499fi
33500
33501
33502# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33503set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33505$as_echo_n "checking for $ac_word... " >&6; }
33506if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33507 $as_echo_n "(cached) " >&6
33508else
33509 case $JXREncodeDelegate in
33510 [\\/]* | ?:[\\/]*)
33511 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33512 ;;
33513 *)
33514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33515for as_dir in $PATH
33516do
33517 IFS=$as_save_IFS
33518 test -z "$as_dir" && as_dir=.
33519 for ac_exec_ext in '' $ac_executable_extensions; do
33520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33521 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33523 break 2
33524 fi
33525done
33526 done
33527IFS=$as_save_IFS
33528
33529 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33530 ;;
33531esac
33532fi
33533JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33534if test -n "$JXREncodeDelegate"; then
33535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33536$as_echo "$JXREncodeDelegate" >&6; }
33537else
33538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33539$as_echo "no" >&6; }
33540fi
33541
33542
cristy3ed852e2009-09-05 21:47:34 +000033543# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33544set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033546$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033547if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033548 $as_echo_n "(cached) " >&6
33549else
33550 case $LPDelegate in
33551 [\\/]* | ?:[\\/]*)
33552 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33553 ;;
33554 *)
33555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33556for as_dir in $PATH
33557do
33558 IFS=$as_save_IFS
33559 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033560 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033562 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033564 break 2
33565 fi
33566done
cristy8b350f62009-11-15 23:12:43 +000033567 done
cristy3ed852e2009-09-05 21:47:34 +000033568IFS=$as_save_IFS
33569
33570 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33571 ;;
33572esac
33573fi
33574LPDelegate=$ac_cv_path_LPDelegate
33575if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033577$as_echo "$LPDelegate" >&6; }
33578else
cristy8b350f62009-11-15 23:12:43 +000033579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033580$as_echo "no" >&6; }
33581fi
33582
33583
33584# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33585set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033587$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033588if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033589 $as_echo_n "(cached) " >&6
33590else
33591 case $LPRDelegate in
33592 [\\/]* | ?:[\\/]*)
33593 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33594 ;;
33595 *)
33596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33597for as_dir in $PATH
33598do
33599 IFS=$as_save_IFS
33600 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033601 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033603 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033605 break 2
33606 fi
33607done
cristy8b350f62009-11-15 23:12:43 +000033608 done
cristy3ed852e2009-09-05 21:47:34 +000033609IFS=$as_save_IFS
33610
33611 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33612 ;;
33613esac
33614fi
33615LPRDelegate=$ac_cv_path_LPRDelegate
33616if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033618$as_echo "$LPRDelegate" >&6; }
33619else
cristy8b350f62009-11-15 23:12:43 +000033620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033621$as_echo "no" >&6; }
33622fi
33623
33624
cristy3ed852e2009-09-05 21:47:34 +000033625# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33626set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033628$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033629if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033630 $as_echo_n "(cached) " >&6
33631else
33632 case $LaunchDelegate in
33633 [\\/]* | ?:[\\/]*)
33634 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33635 ;;
33636 *)
33637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33638for as_dir in $PATH
33639do
33640 IFS=$as_save_IFS
33641 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033642 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033644 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033646 break 2
33647 fi
33648done
cristy8b350f62009-11-15 23:12:43 +000033649 done
cristy3ed852e2009-09-05 21:47:34 +000033650IFS=$as_save_IFS
33651
33652 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33653 ;;
33654esac
33655fi
33656LaunchDelegate=$ac_cv_path_LaunchDelegate
33657if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033659$as_echo "$LaunchDelegate" >&6; }
33660else
cristy8b350f62009-11-15 23:12:43 +000033661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033662$as_echo "no" >&6; }
33663fi
33664
33665
33666# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33667set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033669$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033670if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033671 $as_echo_n "(cached) " >&6
33672else
33673 case $MANDelegate in
33674 [\\/]* | ?:[\\/]*)
33675 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33676 ;;
33677 *)
33678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33679for as_dir in $PATH
33680do
33681 IFS=$as_save_IFS
33682 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033683 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033685 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033687 break 2
33688 fi
33689done
cristy8b350f62009-11-15 23:12:43 +000033690 done
cristy3ed852e2009-09-05 21:47:34 +000033691IFS=$as_save_IFS
33692
33693 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33694 ;;
33695esac
33696fi
33697MANDelegate=$ac_cv_path_MANDelegate
33698if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033700$as_echo "$MANDelegate" >&6; }
33701else
cristy8b350f62009-11-15 23:12:43 +000033702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033703$as_echo "no" >&6; }
33704fi
33705
33706
33707# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33708set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033710$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033711if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033712 $as_echo_n "(cached) " >&6
33713else
33714 case $MPEGDecodeDelegate in
33715 [\\/]* | ?:[\\/]*)
33716 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33717 ;;
33718 *)
33719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33720for as_dir in $PATH
33721do
33722 IFS=$as_save_IFS
33723 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033724 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033726 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033728 break 2
33729 fi
33730done
cristy8b350f62009-11-15 23:12:43 +000033731 done
cristy3ed852e2009-09-05 21:47:34 +000033732IFS=$as_save_IFS
33733
33734 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33735 ;;
33736esac
33737fi
33738MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33739if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033741$as_echo "$MPEGDecodeDelegate" >&6; }
33742else
cristy8b350f62009-11-15 23:12:43 +000033743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033744$as_echo "no" >&6; }
33745fi
33746
33747
cristy81ab5af2013-10-06 18:28:39 +000033748if test "$MPEGDecodeDelegate" == "$MPEGDecodeDelegateDefault" ; then
33749 MPEGDecodeDelegateDefault='ffmpeg'
33750 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33751set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33753$as_echo_n "checking for $ac_word... " >&6; }
33754if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33755 $as_echo_n "(cached) " >&6
33756else
33757 case $MPEGDecodeDelegate in
33758 [\\/]* | ?:[\\/]*)
33759 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33760 ;;
33761 *)
33762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33763for as_dir in $PATH
33764do
33765 IFS=$as_save_IFS
33766 test -z "$as_dir" && as_dir=.
33767 for ac_exec_ext in '' $ac_executable_extensions; do
33768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33769 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33771 break 2
33772 fi
33773done
33774 done
33775IFS=$as_save_IFS
33776
33777 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33778 ;;
33779esac
33780fi
33781MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33782if test -n "$MPEGDecodeDelegate"; then
33783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33784$as_echo "$MPEGDecodeDelegate" >&6; }
33785else
33786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33787$as_echo "no" >&6; }
33788fi
33789
33790
33791fi;
cristy3ed852e2009-09-05 21:47:34 +000033792# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33793set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033795$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033796if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033797 $as_echo_n "(cached) " >&6
33798else
33799 case $MPEGEncodeDelegate in
33800 [\\/]* | ?:[\\/]*)
33801 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33802 ;;
33803 *)
33804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33805for as_dir in $PATH
33806do
33807 IFS=$as_save_IFS
33808 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033809 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033811 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033813 break 2
33814 fi
33815done
cristy8b350f62009-11-15 23:12:43 +000033816 done
cristy3ed852e2009-09-05 21:47:34 +000033817IFS=$as_save_IFS
33818
33819 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33820 ;;
33821esac
33822fi
33823MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33824if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033826$as_echo "$MPEGEncodeDelegate" >&6; }
33827else
cristy8b350f62009-11-15 23:12:43 +000033828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033829$as_echo "no" >&6; }
33830fi
33831
33832
cristy81ab5af2013-10-06 18:28:39 +000033833if test "$MPEGEncodeDelegate" == "$MPEGEncodeDelegateDefault" ; then
33834 MPEGEncodeDelegateDefault='ffmpeg'
33835 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33836set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33838$as_echo_n "checking for $ac_word... " >&6; }
33839if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33840 $as_echo_n "(cached) " >&6
33841else
33842 case $MPEGEncodeDelegate in
33843 [\\/]* | ?:[\\/]*)
33844 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33845 ;;
33846 *)
33847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33848for as_dir in $PATH
33849do
33850 IFS=$as_save_IFS
33851 test -z "$as_dir" && as_dir=.
33852 for ac_exec_ext in '' $ac_executable_extensions; do
33853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33854 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33856 break 2
33857 fi
33858done
33859 done
33860IFS=$as_save_IFS
33861
33862 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33863 ;;
33864esac
33865fi
33866MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33867if test -n "$MPEGEncodeDelegate"; then
33868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33869$as_echo "$MPEGEncodeDelegate" >&6; }
33870else
33871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33872$as_echo "no" >&6; }
33873fi
33874
33875
33876fi;
cristy935c86e2010-06-05 23:50:07 +000033877# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33878set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33880$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033881if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033882 $as_echo_n "(cached) " >&6
33883else
33884 case $MrSIDDecodeDelegate in
33885 [\\/]* | ?:[\\/]*)
33886 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33887 ;;
33888 *)
33889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33890for as_dir in $PATH
33891do
33892 IFS=$as_save_IFS
33893 test -z "$as_dir" && as_dir=.
33894 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033896 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33898 break 2
33899 fi
33900done
33901 done
33902IFS=$as_save_IFS
33903
33904 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33905 ;;
33906esac
33907fi
33908MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33909if test -n "$MrSIDDecodeDelegate"; then
33910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33911$as_echo "$MrSIDDecodeDelegate" >&6; }
33912else
33913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33914$as_echo "no" >&6; }
33915fi
33916
33917
cristy3ed852e2009-09-05 21:47:34 +000033918# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33919set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033921$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033922if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033923 $as_echo_n "(cached) " >&6
33924else
33925 case $MVDelegate in
33926 [\\/]* | ?:[\\/]*)
33927 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33928 ;;
33929 *)
33930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33931for as_dir in $PATH
33932do
33933 IFS=$as_save_IFS
33934 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033935 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033937 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033939 break 2
33940 fi
33941done
cristy8b350f62009-11-15 23:12:43 +000033942 done
cristy3ed852e2009-09-05 21:47:34 +000033943IFS=$as_save_IFS
33944
33945 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33946 ;;
33947esac
33948fi
33949MVDelegate=$ac_cv_path_MVDelegate
33950if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033952$as_echo "$MVDelegate" >&6; }
33953else
cristy8b350f62009-11-15 23:12:43 +000033954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033955$as_echo "no" >&6; }
33956fi
33957
33958
33959# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33960set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033962$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033963if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033964 $as_echo_n "(cached) " >&6
33965else
33966 case $PCLDelegate in
33967 [\\/]* | ?:[\\/]*)
33968 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33969 ;;
33970 *)
33971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33972for as_dir in $PATH
33973do
33974 IFS=$as_save_IFS
33975 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033976 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033978 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033980 break 2
33981 fi
33982done
cristy8b350f62009-11-15 23:12:43 +000033983 done
cristy3ed852e2009-09-05 21:47:34 +000033984IFS=$as_save_IFS
33985
33986 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33987 ;;
33988esac
33989fi
33990PCLDelegate=$ac_cv_path_PCLDelegate
33991if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033993$as_echo "$PCLDelegate" >&6; }
33994else
cristy8b350f62009-11-15 23:12:43 +000033995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033996$as_echo "no" >&6; }
33997fi
33998
33999
34000# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34001set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034003$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034004if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034005 $as_echo_n "(cached) " >&6
34006else
34007 case $PGPDecodeDelegate in
34008 [\\/]* | ?:[\\/]*)
34009 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34010 ;;
34011 *)
34012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34013for as_dir in $PATH
34014do
34015 IFS=$as_save_IFS
34016 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034017 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034019 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034021 break 2
34022 fi
34023done
cristy8b350f62009-11-15 23:12:43 +000034024 done
cristy3ed852e2009-09-05 21:47:34 +000034025IFS=$as_save_IFS
34026
34027 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34028 ;;
34029esac
34030fi
34031PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34032if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034034$as_echo "$PGPDecodeDelegate" >&6; }
34035else
cristy8b350f62009-11-15 23:12:43 +000034036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034037$as_echo "no" >&6; }
34038fi
34039
34040
34041# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34042set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034044$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034045if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034046 $as_echo_n "(cached) " >&6
34047else
34048 case $POVDelegate in
34049 [\\/]* | ?:[\\/]*)
34050 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34051 ;;
34052 *)
34053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34054for as_dir in $PATH
34055do
34056 IFS=$as_save_IFS
34057 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034058 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034060 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034062 break 2
34063 fi
34064done
cristy8b350f62009-11-15 23:12:43 +000034065 done
cristy3ed852e2009-09-05 21:47:34 +000034066IFS=$as_save_IFS
34067
34068 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34069 ;;
34070esac
34071fi
34072POVDelegate=$ac_cv_path_POVDelegate
34073if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034075$as_echo "$POVDelegate" >&6; }
34076else
cristy8b350f62009-11-15 23:12:43 +000034077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034078$as_echo "no" >&6; }
34079fi
34080
34081
34082for ac_prog in gsx gsc "$PSDelegateDefault"
34083do
34084 # Extract the first word of "$ac_prog", so it can be a program name with args.
34085set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034088if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034089 $as_echo_n "(cached) " >&6
34090else
34091 case $PSDelegate in
34092 [\\/]* | ?:[\\/]*)
34093 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34094 ;;
34095 *)
34096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34097for as_dir in $PATH
34098do
34099 IFS=$as_save_IFS
34100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034101 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034103 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034105 break 2
34106 fi
34107done
cristy8b350f62009-11-15 23:12:43 +000034108 done
cristy3ed852e2009-09-05 21:47:34 +000034109IFS=$as_save_IFS
34110
34111 ;;
34112esac
34113fi
34114PSDelegate=$ac_cv_path_PSDelegate
34115if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034117$as_echo "$PSDelegate" >&6; }
34118else
cristy8b350f62009-11-15 23:12:43 +000034119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034120$as_echo "no" >&6; }
34121fi
34122
34123
34124 test -n "$PSDelegate" && break
34125done
34126test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34127
34128# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34129set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034131$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034132if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034133 $as_echo_n "(cached) " >&6
34134else
34135 case $RLEEncodeDelegate in
34136 [\\/]* | ?:[\\/]*)
34137 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34138 ;;
34139 *)
34140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34141for as_dir in $PATH
34142do
34143 IFS=$as_save_IFS
34144 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034145 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034147 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034149 break 2
34150 fi
34151done
cristy8b350f62009-11-15 23:12:43 +000034152 done
cristy3ed852e2009-09-05 21:47:34 +000034153IFS=$as_save_IFS
34154
34155 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34156 ;;
34157esac
34158fi
34159RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34160if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034162$as_echo "$RLEEncodeDelegate" >&6; }
34163else
cristy8b350f62009-11-15 23:12:43 +000034164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034165$as_echo "no" >&6; }
34166fi
34167
34168
34169# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34170set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034172$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034173if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034174 $as_echo_n "(cached) " >&6
34175else
34176 case $RMDelegate in
34177 [\\/]* | ?:[\\/]*)
34178 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34179 ;;
34180 *)
34181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34182for as_dir in $PATH
34183do
34184 IFS=$as_save_IFS
34185 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034186 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034188 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034190 break 2
34191 fi
34192done
cristy8b350f62009-11-15 23:12:43 +000034193 done
cristy3ed852e2009-09-05 21:47:34 +000034194IFS=$as_save_IFS
34195
34196 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34197 ;;
34198esac
34199fi
34200RMDelegate=$ac_cv_path_RMDelegate
34201if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034203$as_echo "$RMDelegate" >&6; }
34204else
cristy8b350f62009-11-15 23:12:43 +000034205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034206$as_echo "no" >&6; }
34207fi
34208
34209
cristy4689cf02010-02-17 21:15:45 +000034210# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34211set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034214if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034215 $as_echo_n "(cached) " >&6
34216else
34217 case $RSVGDecodeDelegate in
34218 [\\/]* | ?:[\\/]*)
34219 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34220 ;;
34221 *)
34222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34223for as_dir in $PATH
34224do
34225 IFS=$as_save_IFS
34226 test -z "$as_dir" && as_dir=.
34227 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034229 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34231 break 2
34232 fi
34233done
34234 done
34235IFS=$as_save_IFS
34236
34237 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34238 ;;
34239esac
34240fi
34241RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34242if test -n "$RSVGDecodeDelegate"; then
34243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34244$as_echo "$RSVGDecodeDelegate" >&6; }
34245else
34246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34247$as_echo "no" >&6; }
34248fi
34249
34250
cristy3ed852e2009-09-05 21:47:34 +000034251# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34252set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034254$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034255if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034256 $as_echo_n "(cached) " >&6
34257else
34258 case $SCANDecodeDelegate in
34259 [\\/]* | ?:[\\/]*)
34260 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34261 ;;
34262 *)
34263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34264for as_dir in $PATH
34265do
34266 IFS=$as_save_IFS
34267 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034268 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034270 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034272 break 2
34273 fi
34274done
cristy8b350f62009-11-15 23:12:43 +000034275 done
cristy3ed852e2009-09-05 21:47:34 +000034276IFS=$as_save_IFS
34277
34278 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34279 ;;
34280esac
34281fi
34282SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34283if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034285$as_echo "$SCANDecodeDelegate" >&6; }
34286else
cristy8b350f62009-11-15 23:12:43 +000034287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034288$as_echo "no" >&6; }
34289fi
34290
34291
cristyec6934f2012-08-14 18:38:40 +000034292# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34293set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34295$as_echo_n "checking for $ac_word... " >&6; }
34296if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34297 $as_echo_n "(cached) " >&6
34298else
34299 case $SVGDecodeDelegate in
34300 [\\/]* | ?:[\\/]*)
34301 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34302 ;;
34303 *)
34304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34305for as_dir in $PATH
34306do
34307 IFS=$as_save_IFS
34308 test -z "$as_dir" && as_dir=.
34309 for ac_exec_ext in '' $ac_executable_extensions; do
34310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34311 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34313 break 2
34314 fi
34315done
34316 done
34317IFS=$as_save_IFS
34318
34319 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34320 ;;
34321esac
34322fi
34323SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34324if test -n "$SVGDecodeDelegate"; then
34325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34326$as_echo "$SVGDecodeDelegate" >&6; }
34327else
34328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34329$as_echo "no" >&6; }
34330fi
34331
34332
cristy3ed852e2009-09-05 21:47:34 +000034333# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34334set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034336$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034337if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034338 $as_echo_n "(cached) " >&6
34339else
34340 case $TXTDelegate in
34341 [\\/]* | ?:[\\/]*)
34342 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34343 ;;
34344 *)
34345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34346for as_dir in $PATH
34347do
34348 IFS=$as_save_IFS
34349 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034350 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034352 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034354 break 2
34355 fi
34356done
cristy8b350f62009-11-15 23:12:43 +000034357 done
cristy3ed852e2009-09-05 21:47:34 +000034358IFS=$as_save_IFS
34359
34360 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34361 ;;
34362esac
34363fi
34364TXTDelegate=$ac_cv_path_TXTDelegate
34365if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034367$as_echo "$TXTDelegate" >&6; }
34368else
cristy8b350f62009-11-15 23:12:43 +000034369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034370$as_echo "no" >&6; }
34371fi
34372
34373
cristy5ac9ac82010-07-29 13:24:24 +000034374# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34375set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34377$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034378if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034379 $as_echo_n "(cached) " >&6
34380else
34381 case $UniconvertorDelegate in
34382 [\\/]* | ?:[\\/]*)
34383 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34384 ;;
34385 *)
34386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34387for as_dir in $PATH
34388do
34389 IFS=$as_save_IFS
34390 test -z "$as_dir" && as_dir=.
34391 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034393 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34395 break 2
34396 fi
34397done
34398 done
34399IFS=$as_save_IFS
34400
34401 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34402 ;;
34403esac
34404fi
34405UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34406if test -n "$UniconvertorDelegate"; then
34407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34408$as_echo "$UniconvertorDelegate" >&6; }
34409else
34410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34411$as_echo "no" >&6; }
34412fi
34413
34414
cristy86e86092013-08-04 17:43:57 +000034415# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34416set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34418$as_echo_n "checking for $ac_word... " >&6; }
34419if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34420 $as_echo_n "(cached) " >&6
34421else
34422 case $WebPDecodeDelegate in
34423 [\\/]* | ?:[\\/]*)
34424 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34425 ;;
34426 *)
34427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34428for as_dir in $PATH
34429do
34430 IFS=$as_save_IFS
34431 test -z "$as_dir" && as_dir=.
34432 for ac_exec_ext in '' $ac_executable_extensions; do
34433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34434 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34436 break 2
34437 fi
34438done
34439 done
34440IFS=$as_save_IFS
34441
34442 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34443 ;;
34444esac
34445fi
34446WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34447if test -n "$WebPDecodeDelegate"; then
34448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34449$as_echo "$WebPDecodeDelegate" >&6; }
34450else
34451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34452$as_echo "no" >&6; }
34453fi
34454
34455
34456# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34457set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34459$as_echo_n "checking for $ac_word... " >&6; }
34460if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34461 $as_echo_n "(cached) " >&6
34462else
34463 case $WebPEncodeDelegate in
34464 [\\/]* | ?:[\\/]*)
34465 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34466 ;;
34467 *)
34468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34469for as_dir in $PATH
34470do
34471 IFS=$as_save_IFS
34472 test -z "$as_dir" && as_dir=.
34473 for ac_exec_ext in '' $ac_executable_extensions; do
34474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34475 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34477 break 2
34478 fi
34479done
34480 done
34481IFS=$as_save_IFS
34482
34483 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34484 ;;
34485esac
34486fi
34487WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34488if test -n "$WebPEncodeDelegate"; then
34489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34490$as_echo "$WebPEncodeDelegate" >&6; }
34491else
34492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34493$as_echo "no" >&6; }
34494fi
34495
34496
cristy3ed852e2009-09-05 21:47:34 +000034497# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34498set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034500$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034501if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034502 $as_echo_n "(cached) " >&6
34503else
34504 case $WMFDecodeDelegate in
34505 [\\/]* | ?:[\\/]*)
34506 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34507 ;;
34508 *)
34509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34510for as_dir in $PATH
34511do
34512 IFS=$as_save_IFS
34513 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034514 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034516 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034518 break 2
34519 fi
34520done
cristy8b350f62009-11-15 23:12:43 +000034521 done
cristy3ed852e2009-09-05 21:47:34 +000034522IFS=$as_save_IFS
34523
34524 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34525 ;;
34526esac
34527fi
34528WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34529if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034531$as_echo "$WMFDecodeDelegate" >&6; }
34532else
cristy8b350f62009-11-15 23:12:43 +000034533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034534$as_echo "no" >&6; }
34535fi
34536
34537
34538# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34539set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034541$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034542if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034543 $as_echo_n "(cached) " >&6
34544else
34545 case $WWWDecodeDelegate in
34546 [\\/]* | ?:[\\/]*)
34547 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34548 ;;
34549 *)
34550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34551for as_dir in $PATH
34552do
34553 IFS=$as_save_IFS
34554 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034555 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034557 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034559 break 2
34560 fi
34561done
cristy8b350f62009-11-15 23:12:43 +000034562 done
cristy3ed852e2009-09-05 21:47:34 +000034563IFS=$as_save_IFS
34564
34565 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34566 ;;
34567esac
34568fi
34569WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34570if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034572$as_echo "$WWWDecodeDelegate" >&6; }
34573else
cristy8b350f62009-11-15 23:12:43 +000034574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034575$as_echo "no" >&6; }
34576fi
34577
34578
34579# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34580set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034582$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034583if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034584 $as_echo_n "(cached) " >&6
34585else
34586 case $XPSDelegate in
34587 [\\/]* | ?:[\\/]*)
34588 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34589 ;;
34590 *)
34591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34592for as_dir in $PATH
34593do
34594 IFS=$as_save_IFS
34595 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034596 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034598 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034600 break 2
34601 fi
34602done
cristy8b350f62009-11-15 23:12:43 +000034603 done
cristy3ed852e2009-09-05 21:47:34 +000034604IFS=$as_save_IFS
34605
34606 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34607 ;;
34608esac
34609fi
34610XPSDelegate=$ac_cv_path_XPSDelegate
34611if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034613$as_echo "$XPSDelegate" >&6; }
34614else
cristy8b350f62009-11-15 23:12:43 +000034615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034616$as_echo "no" >&6; }
34617fi
34618
34619
34620# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34621set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034623$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034624if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034625 $as_echo_n "(cached) " >&6
34626else
34627 case $ZipDelegate in
34628 [\\/]* | ?:[\\/]*)
34629 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34630 ;;
34631 *)
34632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34633for as_dir in $PATH
34634do
34635 IFS=$as_save_IFS
34636 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034637 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034639 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034641 break 2
34642 fi
34643done
cristy8b350f62009-11-15 23:12:43 +000034644 done
cristy3ed852e2009-09-05 21:47:34 +000034645IFS=$as_save_IFS
34646
34647 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34648 ;;
34649esac
34650fi
34651ZipDelegate=$ac_cv_path_ZipDelegate
34652if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034654$as_echo "$ZipDelegate" >&6; }
34655else
cristy8b350f62009-11-15 23:12:43 +000034656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034657$as_echo "no" >&6; }
34658fi
34659
34660
34661
34662# Prefer lpr to lp; lp needs options tacked on.
34663if test "$LPRDelegate" != no; then
34664 PrintDelegate="$LPRDelegate"
34665else
34666 PrintDelegate="$LPDelegate -c -s"
34667fi
34668
34669
34670# Installed ImageMagick utiltity paths
34671ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34672DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34673MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34674
34675# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034676have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034677have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34678have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34679have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034680have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034681have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34682have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034683have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34684
34685#
34686# Test for font directories
34687#
34688type_include_files=''
34689
cristy430a7312010-01-21 20:44:04 +000034690# Dejavu fonts.
34691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34692$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34693dejavu_font_dir=''
34694if test "${with_dejavu_font_dir}" != 'default'; then
34695 dejavu_font_dir="${with_dejavu_font_dir}/"
34696else
34697 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34698 if test -f "${font_dir}DejaVuSerif.ttf"; then
34699 dejavu_font_dir="${font_dir}"
34700 break 1
34701 fi
34702 done
34703fi
34704if test "${dejavu_font_dir}x" != 'x'; then
34705 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34707$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034708else
cristyad38abe2012-12-23 23:03:21 +000034709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34710$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034711fi
34712
34713
cristy3ed852e2009-09-05 21:47:34 +000034714# Windows
34715windows_font_dir=''
34716if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34717 windows_font_dir="${with_windows_font_dir}/"
34718fi
cristy430a7312010-01-21 20:44:04 +000034719if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034720 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34721 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34722 fi
34723 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34724 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34725 fi
34726 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34727 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34728 fi
34729fi
cristy430a7312010-01-21 20:44:04 +000034730if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034731 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34732fi
34733
34734
34735# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034737$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34738ghostscript_font_dir=''
34739if test "${with_gs_font_dir}" != 'default'; then
34740 ghostscript_font_dir="${with_gs_font_dir}/"
34741else
34742 if test "${native_win32_build}" = 'yes'; then
34743 # Native Windows Build
34744 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34745 if test -f "${font_dir}a010013l.pfb"; then
34746 ghostscript_font_dir="$font_dir"
34747 break 1
34748 fi
34749 done
34750 if test "${PSDelegate}" != 'gswin32c'; then
34751 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34752 fi
34753 else
34754 # Linux / Mac OS X / Unix Build
34755 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
34756 if test -f "${font_dir}a010013l.pfb"; then
34757 ghostscript_font_dir="${font_dir}"
34758 break 1
34759 fi
34760 done
34761 if test "${ghostscript_font_dir}x" = 'x'; then
34762 if test "$PSDelegate" != 'gs'; then
34763 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34764 fi
34765 fi
34766 fi
34767fi
34768if test "${ghostscript_font_dir}x" != 'x'; then
34769 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34771$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034772else
cristyad38abe2012-12-23 23:03:21 +000034773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34774$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034775fi
34776
34777case "${build_os}" in
34778 mingw* )
34779 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34780 ;;
34781esac
34782
34783
34784
34785#
34786# Handle case where user doesn't want frozen paths
34787#
34788if test "$with_frozenpaths" != 'yes'; then
34789 # Re-set delegate definitions to default (no paths)
34790 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034791 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34792 BZIPDelegate="$BZIPDelegateDefault"
34793 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034794 CatDelegate="$CatDelegateDefault"
34795 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034796 DisplayDelegate="$DisplayDelegateDefault"
34797 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034798 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34799 EchoDelegate="$EchoDelegateDefault"
34800 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034801 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034802 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034803 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34804 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34805 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34806 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034807 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34808 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034809 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034810 LaunchDelegate="$LaunchDelegateDefault"
34811 MANDelegate="$MANDelegateDefault"
34812 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34813 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034814 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034815 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34816 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034817 PCLDelegate="$PCLDelegateDefault"
34818 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34819 POVDelegate="$POVDelegateDefault"
34820 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034821 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34822 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034823 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034824 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034825 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034826 ShowImageDelegate="$ShowImageDelegateDefault"
34827 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034828 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000034829 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34830 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034831 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34832 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34833 XPSDelegate="$XPSDelegateDefault"
34834 ZipDelegate="$ZipDelegateDefault"
34835fi
34836
34837# Delegate substitutions
34838
34839
34840
34841
34842
34843
34844
34845
34846
34847
34848
34849
34850
34851
34852
34853
34854
34855
34856
34857
34858
34859
34860
34861
34862
34863
34864
34865
34866
34867
34868
34869
34870
34871
34872
34873
34874
34875
34876
34877
cristy71f53d52013-04-27 13:33:59 +000034878
34879
cristy3ed852e2009-09-05 21:47:34 +000034880#
34881# RPM support.
34882#
34883RPM=''
34884for ac_prog in gnutar gtar tar
34885do
34886 # Extract the first word of "$ac_prog", so it can be a program name with args.
34887set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034889$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034890if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034891 $as_echo_n "(cached) " >&6
34892else
34893 if test -n "$TAR"; then
34894 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34895else
34896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34897for as_dir in $PATH
34898do
34899 IFS=$as_save_IFS
34900 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034901 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034903 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034905 break 2
34906 fi
34907done
cristy8b350f62009-11-15 23:12:43 +000034908 done
cristy3ed852e2009-09-05 21:47:34 +000034909IFS=$as_save_IFS
34910
34911fi
34912fi
34913TAR=$ac_cv_prog_TAR
34914if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034916$as_echo "$TAR" >&6; }
34917else
cristy8b350f62009-11-15 23:12:43 +000034918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034919$as_echo "no" >&6; }
34920fi
34921
34922
34923 test -n "$TAR" && break
34924done
34925
34926for ac_prog in perl
34927do
34928 # Extract the first word of "$ac_prog", so it can be a program name with args.
34929set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034931$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034932if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034933 $as_echo_n "(cached) " >&6
34934else
34935 if test -n "$PERL"; then
34936 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34937else
34938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34939for as_dir in $PATH
34940do
34941 IFS=$as_save_IFS
34942 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034943 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034945 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034947 break 2
34948 fi
34949done
cristy8b350f62009-11-15 23:12:43 +000034950 done
cristy3ed852e2009-09-05 21:47:34 +000034951IFS=$as_save_IFS
34952
34953fi
34954fi
34955PERL=$ac_cv_prog_PERL
34956if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034958$as_echo "$PERL" >&6; }
34959else
cristy8b350f62009-11-15 23:12:43 +000034960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034961$as_echo "no" >&6; }
34962fi
34963
34964
34965 test -n "$PERL" && break
34966done
34967
34968for ac_prog in rpmbuild rpm
34969do
34970 # Extract the first word of "$ac_prog", so it can be a program name with args.
34971set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034973$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034974if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034975 $as_echo_n "(cached) " >&6
34976else
34977 if test -n "$RPM"; then
34978 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34979else
34980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34981for as_dir in $PATH
34982do
34983 IFS=$as_save_IFS
34984 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034985 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034987 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034989 break 2
34990 fi
34991done
cristy8b350f62009-11-15 23:12:43 +000034992 done
cristy3ed852e2009-09-05 21:47:34 +000034993IFS=$as_save_IFS
34994
34995fi
34996fi
34997RPM=$ac_cv_prog_RPM
34998if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035000$as_echo "$RPM" >&6; }
35001else
cristy8b350f62009-11-15 23:12:43 +000035002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035003$as_echo "no" >&6; }
35004fi
35005
35006
35007 test -n "$RPM" && break
35008done
35009
35010
cristy73bd4a52010-10-05 11:24:23 +000035011ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35012
35013
35014AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35015
35016
35017AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35018
35019
35020AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35021
35022
35023 if test "x$RPM" != "x" ; then
35024 RPM_DELEGATE_TRUE=
35025 RPM_DELEGATE_FALSE='#'
35026else
35027 RPM_DELEGATE_TRUE='#'
35028 RPM_DELEGATE_FALSE=
35029fi
35030
cristy3ed852e2009-09-05 21:47:34 +000035031
35032#
35033# 7ZIP support (http://p7zip.sourceforge.net/)
35034#
35035P7ZIP=''
35036for ac_prog in 7za
35037do
35038 # Extract the first word of "$ac_prog", so it can be a program name with args.
35039set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035041$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035042if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035043 $as_echo_n "(cached) " >&6
35044else
35045 if test -n "$P7ZIP"; then
35046 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35047else
35048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35049for as_dir in $PATH
35050do
35051 IFS=$as_save_IFS
35052 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035053 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035055 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035057 break 2
35058 fi
35059done
cristy8b350f62009-11-15 23:12:43 +000035060 done
cristy3ed852e2009-09-05 21:47:34 +000035061IFS=$as_save_IFS
35062
35063fi
35064fi
35065P7ZIP=$ac_cv_prog_P7ZIP
35066if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035068$as_echo "$P7ZIP" >&6; }
35069else
cristy8b350f62009-11-15 23:12:43 +000035070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035071$as_echo "no" >&6; }
35072fi
35073
35074
35075 test -n "$P7ZIP" && break
35076done
35077
35078
cristy73bd4a52010-10-05 11:24:23 +000035079 if test "x$P7ZIP" != "x" ; then
35080 P7ZIP_DELEGATE_TRUE=
35081 P7ZIP_DELEGATE_FALSE='#'
35082else
35083 P7ZIP_DELEGATE_TRUE='#'
35084 P7ZIP_DELEGATE_FALSE=
35085fi
35086
cristy3ed852e2009-09-05 21:47:34 +000035087
35088#
35089# ZIP support (http://www.info-zip.org/Zip.html)
35090#
35091ZIP=''
35092for ac_prog in zip
35093do
35094 # Extract the first word of "$ac_prog", so it can be a program name with args.
35095set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035097$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035098if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035099 $as_echo_n "(cached) " >&6
35100else
35101 if test -n "$ZIP"; then
35102 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35103else
35104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35105for as_dir in $PATH
35106do
35107 IFS=$as_save_IFS
35108 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035109 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035111 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035113 break 2
35114 fi
35115done
cristy8b350f62009-11-15 23:12:43 +000035116 done
cristy3ed852e2009-09-05 21:47:34 +000035117IFS=$as_save_IFS
35118
35119fi
35120fi
35121ZIP=$ac_cv_prog_ZIP
35122if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035124$as_echo "$ZIP" >&6; }
35125else
cristy8b350f62009-11-15 23:12:43 +000035126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035127$as_echo "no" >&6; }
35128fi
35129
35130
35131 test -n "$ZIP" && break
35132done
35133
35134
cristy73bd4a52010-10-05 11:24:23 +000035135 if test "x$ZIP" != "x" ; then
35136 ZIP_DELEGATE_TRUE=
35137 ZIP_DELEGATE_FALSE='#'
35138else
35139 ZIP_DELEGATE_TRUE='#'
35140 ZIP_DELEGATE_FALSE=
35141fi
35142
cristy3ed852e2009-09-05 21:47:34 +000035143
35144#
35145# GhostPCL related configuration.
35146#
35147PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035148PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035149PCLMonoDevice=pbmraw
35150if test -z "$PCLVersion"; then
35151 PCLVersion='unknown'
35152fi
35153if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35155$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035157$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35159$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035160 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035162$as_echo_n "checking for pcl color device... " >&6; }
35163 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35164 :
35165 else
35166 PCLColorDevice=ppmraw
35167 fi
cristyad38abe2012-12-23 23:03:21 +000035168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35169$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035170
35171 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035173$as_echo_n "checking for pcl CMYK device... " >&6; }
35174 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35175 :
35176 else
35177 PCLCMYKDevice=$PCLColorDevice
35178 fi
cristyad38abe2012-12-23 23:03:21 +000035179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35180$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035181
35182 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035184$as_echo_n "checking for pcl mono device... " >&6; }
35185 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35186 :
35187 else
35188 PCLMonoDevice=$PCLColorDevice
35189 fi
cristyad38abe2012-12-23 23:03:21 +000035190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35191$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035192fi
35193
35194
35195
35196
35197
35198
35199#
35200# GhostXPS related configuration.
35201#
35202XPSColorDevice=ppmraw
35203XPSCMYKDevice=bmpsep8
35204XPSMonoDevice=pbmraw
35205if test -z "$XPSVersion"; then
35206 XPSVersion='unknown'
35207fi
35208if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35210$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035212$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35214$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035215 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035217$as_echo_n "checking for xps color device... " >&6; }
35218 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35219 :
35220 else
35221 XPSColorDevice=ppmraw
35222 fi
cristyad38abe2012-12-23 23:03:21 +000035223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35224$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035225
35226 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035228$as_echo_n "checking for xps CMYK device... " >&6; }
35229 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35230 :
35231 else
35232 XPSCMYKDevice=$XPSColorDevice
35233 fi
cristyad38abe2012-12-23 23:03:21 +000035234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35235$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035236
35237 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035239$as_echo_n "checking for xps mono device... " >&6; }
35240 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35241 :
35242 else
35243 XPSMonoDevice=$XPSColorDevice
35244 fi
cristyad38abe2012-12-23 23:03:21 +000035245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35246$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035247fi
35248
35249
35250
35251
35252
35253
35254#
35255# Ghostscript related configuration.
35256#
cristya97426c2011-02-04 01:41:27 +000035257GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035258GSColorDevice=pnmraw
35259GSCMYKDevice=pam
35260GSMonoDevice=pbmraw
35261GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035262GSPSDevice=ps2write
cristy3ed852e2009-09-05 21:47:34 +000035263GSEPSDevice=epswrite
35264GSVersion='unknown'
35265if test $have_gs = '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 Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035269$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35271$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035273$as_echo_n "checking for Ghostscript version... " >&6; }
35274 if GSVersion=`$PSDelegate --version`; then
35275 :
35276 else
35277 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35278 fi
cristyad38abe2012-12-23 23:03:21 +000035279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35280$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035281
35282 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035284$as_echo_n "checking for gs alpha device... " >&6; }
35285 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35286 :
35287 else
35288 GSAlphaDevice=pnmraw
35289 fi
cristyad38abe2012-12-23 23:03:21 +000035290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35291$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035292
35293 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035295$as_echo_n "checking for gs color device... " >&6; }
35296 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35297 :
35298 else
35299 GSColorDevice=pnmraw
35300 fi
cristyad38abe2012-12-23 23:03:21 +000035301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35302$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035303
35304 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035306$as_echo_n "checking for gs CMYK device... " >&6; }
35307 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35308 :
35309 else
35310 GSCMYKDevice=bmpsep8
35311 fi
cristyad38abe2012-12-23 23:03:21 +000035312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35313$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035314
35315 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035317$as_echo_n "checking for gs mono device... " >&6; }
35318 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35319 :
35320 else
35321 GSMonoDevice=$GSColorDevice
35322 fi
cristyad38abe2012-12-23 23:03:21 +000035323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35324$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035325
35326 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035328$as_echo_n "checking for gs PDF writing device... " >&6; }
35329 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35330 :
35331 else
35332 GSPDFDevice=nodevice
35333 fi
cristyad38abe2012-12-23 23:03:21 +000035334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35335$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035336
35337 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035339$as_echo_n "checking for gs PS writing device... " >&6; }
35340 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35341 :
35342 else
35343 GSPSDevice=nodevice
35344 fi
cristyad38abe2012-12-23 23:03:21 +000035345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35346$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035347
35348 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035350$as_echo_n "checking for gs EPS writing device... " >&6; }
35351 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35352 :
35353 else
35354 GSEPSDevice=nodevice
35355 fi
cristyad38abe2012-12-23 23:03:21 +000035356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35357$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035358fi
35359
35360
35361
35362
35363
35364
35365
35366
35367
35368
35369#
35370# PerlMagick-related configuration
35371#
35372
35373# Look for PERL if PerlMagick requested
35374# If name/path of desired PERL interpreter is specified, look for that one first
35375have_perl='no'
35376if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35378$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035380$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35382$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035383 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035385$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035386if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035387 $as_echo_n "(cached) " >&6
35388else
35389 ac_cv_path_PERL="$with_perl"
35390fi
cristy8b350f62009-11-15 23:12:43 +000035391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035392$as_echo "$ac_cv_path_PERL" >&6; };
35393 PERL=$ac_cv_path_PERL
35394 have_perl="$ac_cv_path_PERL"
35395 else
35396 for ac_prog in perl perl5
35397do
35398 # Extract the first word of "$ac_prog", so it can be a program name with args.
35399set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035401$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035402if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035403 $as_echo_n "(cached) " >&6
35404else
35405 case $PERL in
35406 [\\/]* | ?:[\\/]*)
35407 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35408 ;;
35409 *)
35410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35411for as_dir in $PATH
35412do
35413 IFS=$as_save_IFS
35414 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035415 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035417 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035419 break 2
35420 fi
35421done
cristy8b350f62009-11-15 23:12:43 +000035422 done
cristy3ed852e2009-09-05 21:47:34 +000035423IFS=$as_save_IFS
35424
35425 ;;
35426esac
35427fi
35428PERL=$ac_cv_path_PERL
35429if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035431$as_echo "$PERL" >&6; }
35432else
cristy8b350f62009-11-15 23:12:43 +000035433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035434$as_echo "no" >&6; }
35435fi
35436
35437
35438 test -n "$PERL" && break
35439done
35440 if test "$ac_cv_path_PERL"; then
35441 have_perl="$ac_cv_path_PERL"
35442 fi
35443 fi
35444fi
35445
cristy949301e2010-01-06 01:38:40 +000035446if test "$with_perl" != 'yes' ; then
35447 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35448fi
35449
35450PERL_SUPPORTS_DESTDIR='no'
35451
cristy3ed852e2009-09-05 21:47:34 +000035452with_perl_static='no'
35453with_perl_dynamic='no'
35454if test "$have_perl" != 'no'; then
35455 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35456 with_perl_static='yes'
35457 fi
35458 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35459 with_perl_dynamic='yes'
35460 fi
35461 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035462
35463
35464
35465
35466 if test -n "$PERL"; then :
35467
35468 ax_perl_version="5.8.1"
35469
35470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35471$as_echo_n "checking for perl version... " >&6; }
35472
35473 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35474
35475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35476$as_echo "$perl_version" >&6; }
35477
35478 PERL_VERSION=$perl_version
35479
35480
35481
35482
35483
35484 # Used to indicate true or false condition
35485 ax_compare_version=false
35486
35487 # Convert the two version strings to be compared into a format that
35488 # allows a simple string comparison. The end result is that a version
35489 # string of the form 1.12.5-r617 will be converted to the form
35490 # 0001001200050617. In other words, each number is zero padded to four
35491 # digits, and non digits are removed.
35492
35493 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35494 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35495 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35496 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35497 -e 's/[^0-9]//g'`
35498
35499
35500 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35501 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35502 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35503 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35504 -e 's/[^0-9]//g'`
35505
35506
35507 ax_compare_version=`echo "x$ax_compare_version_A
35508x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35509
35510
35511
35512 if test "$ax_compare_version" = "true" ; then
35513
35514 :
35515 PERL_SUPPORTS_DESTDIR='yes'
35516
35517 else
35518 :
35519 PERL_SUPPORTS_DESTDIR='no'
35520
35521 fi
35522
35523
35524else
35525
35526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35527$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35528 PERL_SUPPORTS_DESTDIR='no'
35529
cristy3ed852e2009-09-05 21:47:34 +000035530fi
cristy73bd4a52010-10-05 11:24:23 +000035531
35532fi
35533 if test "$have_perl" != 'no'; then
35534 WITH_PERL_TRUE=
35535 WITH_PERL_FALSE='#'
35536else
35537 WITH_PERL_TRUE='#'
35538 WITH_PERL_FALSE=
35539fi
35540
35541 if test $with_perl_static = 'yes'; then
35542 WITH_PERL_STATIC_TRUE=
35543 WITH_PERL_STATIC_FALSE='#'
35544else
35545 WITH_PERL_STATIC_TRUE='#'
35546 WITH_PERL_STATIC_FALSE=
35547fi
35548
35549 if test $with_perl_dynamic = 'yes'; then
35550 WITH_PERL_DYNAMIC_TRUE=
35551 WITH_PERL_DYNAMIC_FALSE='#'
35552else
35553 WITH_PERL_DYNAMIC_TRUE='#'
35554 WITH_PERL_DYNAMIC_FALSE=
35555fi
35556
cristy3ed852e2009-09-05 21:47:34 +000035557
35558
35559# Determine path to pick up MagickCore library from for use with building PerlMagick
35560MAGICKCORE_PATH="${LIB_DIR}"
35561if test $with_perl_static = 'yes'; then
35562 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35563 libtool_objdir=$objdir
35564
35565 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035566 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035567fi
35568
35569
cristy2a3eb392012-12-17 13:39:20 +000035570# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035571MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035572if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035573 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035574fi
cristy2a3eb392012-12-17 13:39:20 +000035575if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035576 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035577fi
35578if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035579 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035580fi
35581if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035582 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035583fi
cristy81ab5af2013-10-06 18:28:39 +000035584if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035585 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035586fi
35587if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035588 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035589fi
cristy2a3eb392012-12-17 13:39:20 +000035590if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035591 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035592fi
35593if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035594 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035595fi
35596if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035597 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035598fi
35599if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035600 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035601fi
35602if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035603 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035604fi
35605if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035606 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035607fi
35608if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035609 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035610fi
35611if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035612 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035613fi
35614if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035615 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035616fi
35617if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035618 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035619fi
35620if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035621 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035622fi
35623if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035624 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035625fi
cristy99db3872014-01-01 15:11:34 +000035626if test "$have_openjp2" = 'yes' ; then
35627 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000035628fi
cristy2a3eb392012-12-17 13:39:20 +000035629if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035630 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035631fi
35632if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035633 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035634fi
35635have_ps='no'
35636if test "$have_dps" = 'yes' || \
35637 test "$have_gs" = 'yes' || \
35638 test "${native_win32_build}" = 'yes' ; then
35639 have_ps='yes'
35640fi
35641if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035642 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035643fi
cristy2a3eb392012-12-17 13:39:20 +000035644if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035645 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035646fi
35647if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035648 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035649fi
35650if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035651 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035652fi
35653if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035654 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035655fi
cristy3b640ed2013-07-29 00:27:59 +000035656if test "$have_webp" = 'yes' ; then
35657 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35658fi
cristy2a3eb392012-12-17 13:39:20 +000035659if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035660 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035661fi
35662if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035663 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035664fi
35665if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035666 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035667fi
35668if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035669 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035670fi
cristy2a3eb392012-12-17 13:39:20 +000035671# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035672MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035673MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035674
35675
cristyfa161182012-12-19 15:45:28 +000035676
cristy3ed852e2009-09-05 21:47:34 +000035677#
35678# Handle special compiler flags
35679#
35680
35681# Add '-p' if prof source profiling support enabled
35682if test "$enable_prof" = 'yes'; then
35683 CFLAGS="-p $CFLAGS"
35684 CXXFLAGS="-p $CXXFLAGS"
35685 LDFLAGS="-p $LDFLAGS"
35686fi
35687
35688# Add '-pg' if gprof source profiling support enabled
35689if test "$enable_gprof" = 'yes'; then
35690 CFLAGS="-pg $CFLAGS"
35691 CXXFLAGS="-pg $CXXFLAGS"
35692 LDFLAGS="-pg $LDFLAGS"
35693fi
35694
35695# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35696# This is a gcc-specific feature
35697if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035699$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035700if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035701 $as_echo_n "(cached) " >&6
35702else
35703 ac_check_lib_save_LIBS=$LIBS
35704LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035706/* end confdefs.h. */
35707
35708/* Override any GCC internal prototype to avoid an error.
35709 Use char because int might match the return type of a GCC
35710 builtin and then its argument prototype would still apply. */
35711#ifdef __cplusplus
35712extern "C"
35713#endif
35714char _gcov_init ();
35715int
35716main ()
35717{
35718return _gcov_init ();
35719 ;
35720 return 0;
35721}
35722_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035723if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035724 ac_cv_lib_gcov__gcov_init=yes
35725else
cristy8b350f62009-11-15 23:12:43 +000035726 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035727fi
cristy8b350f62009-11-15 23:12:43 +000035728rm -f core conftest.err conftest.$ac_objext \
35729 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035730LIBS=$ac_check_lib_save_LIBS
35731fi
cristy8b350f62009-11-15 23:12:43 +000035732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035733$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035734if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035735 cat >>confdefs.h <<_ACEOF
35736#define HAVE_LIBGCOV 1
35737_ACEOF
35738
35739 LIBS="-lgcov $LIBS"
35740
35741fi
35742
cristy8b350f62009-11-15 23:12:43 +000035743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035744$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035745if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035746 $as_echo_n "(cached) " >&6
35747else
35748 ac_check_lib_save_LIBS=$LIBS
35749LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035751/* end confdefs.h. */
35752
35753/* Override any GCC internal prototype to avoid an error.
35754 Use char because int might match the return type of a GCC
35755 builtin and then its argument prototype would still apply. */
35756#ifdef __cplusplus
35757extern "C"
35758#endif
35759char __gcov_init ();
35760int
35761main ()
35762{
35763return __gcov_init ();
35764 ;
35765 return 0;
35766}
35767_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035768if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035769 ac_cv_lib_gcov___gcov_init=yes
35770else
cristy8b350f62009-11-15 23:12:43 +000035771 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035772fi
cristy8b350f62009-11-15 23:12:43 +000035773rm -f core conftest.err conftest.$ac_objext \
35774 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035775LIBS=$ac_check_lib_save_LIBS
35776fi
cristy8b350f62009-11-15 23:12:43 +000035777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035778$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035779if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035780 cat >>confdefs.h <<_ACEOF
35781#define HAVE_LIBGCOV 1
35782_ACEOF
35783
35784 LIBS="-lgcov $LIBS"
35785
35786fi
35787
35788 case "$target_os" in
35789 darwin*)
35790 OSX_GCOV_LDFLAG="-Wl,-single_module"
35791 ;;
35792 *)
35793 OSX_GCOV_LDFLAG=""
35794 ;;
35795 esac
35796
35797 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35798 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35799 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35800fi
35801
35802#
35803# Build library dependency list for libMagickCore
35804#
35805
cristyc6722092012-10-14 00:19:31 +000035806if test "$build_modules" != 'no'; then
cristy5e2e2382014-04-20 02:06:01 +000035807 MAGICK_DEP_LIBS="$USER_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 +000035808else
cristy5e2e2382014-04-20 02:06:01 +000035809 MAGICK_DEP_LIBS="$USER_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 +000035810fi
35811
35812
35813#
35814# Remove extraneous spaces from output variables (asthetic)
35815#
35816X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35817X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35818X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35819X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35820
35821CC=`echo $CC | sed -e 's/ */ /g'`
35822CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35823CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35824CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035825DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35826LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35827TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35828MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35829#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35830
35831# Pass only user-provided LIBS as "global" libraries
35832LIBS=$USER_LIBS
35833
35834#AC_SUBST(CPPFLAGS)
35835
35836#AC_SUBST(LDFLAGS)
35837#AC_SUBST(X_PRE_LIBS)
35838#AC_SUBST(X_LIBS)
35839#AC_SUBST(X_EXTRA_LIBS)
35840
35841MAGICK_CFLAGS=$CFLAGS
35842MAGICK_CXXFLAGS="$CXXFLAGS"
35843MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35844MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35845MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000035846MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035847
35848
35849
35850
35851
35852
35853
35854
35855# Set configured scripts to executable.
35856ac_config_commands="$ac_config_commands default"
35857
cristy2bd4b6e2012-07-22 15:29:11 +000035858ac_config_commands="$ac_config_commands magick.sh.in"
35859
cristy3ed852e2009-09-05 21:47:34 +000035860ac_config_commands="$ac_config_commands MagickCore-config.in"
35861
cristy3ed852e2009-09-05 21:47:34 +000035862ac_config_commands="$ac_config_commands MagickWand-config.in"
35863
cristy3ed852e2009-09-05 21:47:34 +000035864ac_config_commands="$ac_config_commands Magick++-config.in"
35865
35866ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35867
35868
cristyad38abe2012-12-23 23:03:21 +000035869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35870$as_echo "-------------------------------------------------------------" >&6; }
35871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35872$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035873cat >confcache <<\_ACEOF
35874# This file is a shell script that caches the results of configure
35875# tests run on this system so they can be shared between configure
35876# scripts and configure runs, see configure's option --config-cache.
35877# It is not useful on other systems. If it contains results you don't
35878# want to keep, you may remove or edit it.
35879#
35880# config.status only pays attention to the cache file if you give it
35881# the --recheck option to rerun configure.
35882#
35883# `ac_cv_env_foo' variables (set or unset) will be overridden when
35884# loading this file, other *unset* `ac_cv_foo' will be assigned the
35885# following values.
35886
35887_ACEOF
35888
35889# The following way of writing the cache mishandles newlines in values,
35890# but we know of no workaround that is simple, portable, and efficient.
35891# So, we kill variables containing newlines.
35892# Ultrix sh set writes to stderr and can't be redirected directly,
35893# and sets the high bit in the cache file unless we assign to the vars.
35894(
35895 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35896 eval ac_val=\$$ac_var
35897 case $ac_val in #(
35898 *${as_nl}*)
35899 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035900 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035901$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35902 esac
35903 case $ac_var in #(
35904 _ | IFS | as_nl) ;; #(
35905 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035906 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035907 esac ;;
35908 esac
35909 done
35910
35911 (set) 2>&1 |
35912 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35913 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035914 # `set' does not quote correctly, so add quotes: double-quote
35915 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035916 sed -n \
35917 "s/'/'\\\\''/g;
35918 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35919 ;; #(
35920 *)
35921 # `set' quotes correctly as required by POSIX, so do not add quotes.
35922 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35923 ;;
35924 esac |
35925 sort
35926) |
35927 sed '
35928 /^ac_cv_env_/b end
35929 t clear
35930 :clear
35931 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35932 t end
35933 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35934 :end' >>confcache
35935if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35936 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035937 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035938 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035939$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035940 if test ! -f "$cache_file" || test -h "$cache_file"; then
35941 cat confcache >"$cache_file"
35942 else
35943 case $cache_file in #(
35944 */* | ?:*)
35945 mv -f confcache "$cache_file"$$ &&
35946 mv -f "$cache_file"$$ "$cache_file" ;; #(
35947 *)
35948 mv -f confcache "$cache_file" ;;
35949 esac
35950 fi
35951 fi
cristy3ed852e2009-09-05 21:47:34 +000035952 else
cristy8b350f62009-11-15 23:12:43 +000035953 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035954$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35955 fi
35956fi
35957rm -f confcache
35958
35959test "x$prefix" = xNONE && prefix=$ac_default_prefix
35960# Let make expand exec_prefix.
35961test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35962
35963DEFS=-DHAVE_CONFIG_H
35964
35965ac_libobjs=
35966ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035967U=
cristy3ed852e2009-09-05 21:47:34 +000035968for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35969 # 1. Remove the extension, and $U if already installed.
35970 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35971 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35972 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35973 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035974 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35975 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035976done
35977LIBOBJS=$ac_libobjs
35978
35979LTLIBOBJS=$ac_ltlibobjs
35980
35981
cristyc0890a62012-07-19 00:18:20 +000035982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35983$as_echo_n "checking that generated files are newer than configure... " >&6; }
35984 if test -n "$am_sleep_pid"; then
35985 # Hide warnings about reused PIDs.
35986 wait $am_sleep_pid 2>/dev/null
35987 fi
35988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35989$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035990 if test -n "$EXEEXT"; then
35991 am__EXEEXT_TRUE=
35992 am__EXEEXT_FALSE='#'
35993else
35994 am__EXEEXT_TRUE='#'
35995 am__EXEEXT_FALSE=
35996fi
cristy3ed852e2009-09-05 21:47:34 +000035997
cristy73bd4a52010-10-05 11:24:23 +000035998if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035999 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036000Usually this means the macro was only invoked conditionally." "$LINENO" 5
36001fi
36002if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036003 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036004Usually this means the macro was only invoked conditionally." "$LINENO" 5
36005fi
36006if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036007 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036008Usually this means the macro was only invoked conditionally." "$LINENO" 5
36009fi
36010if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036011 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036012Usually this means the macro was only invoked conditionally." "$LINENO" 5
36013fi
cristy9b86f202012-11-28 21:55:35 +000036014if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36015 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36016Usually this means the macro was only invoked conditionally." "$LINENO" 5
36017fi
cristy73bd4a52010-10-05 11:24:23 +000036018if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036019 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036020Usually this means the macro was only invoked conditionally." "$LINENO" 5
36021fi
36022if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036023 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036024Usually this means the macro was only invoked conditionally." "$LINENO" 5
36025fi
36026if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036027 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036028Usually this means the macro was only invoked conditionally." "$LINENO" 5
36029fi
36030if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036031 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036032Usually this means the macro was only invoked conditionally." "$LINENO" 5
36033fi
cristy73bd4a52010-10-05 11:24:23 +000036034if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036035 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036036Usually this means the macro was only invoked conditionally." "$LINENO" 5
36037fi
36038if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036039 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036040Usually this means the macro was only invoked conditionally." "$LINENO" 5
36041fi
cristy73bd4a52010-10-05 11:24:23 +000036042if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036043 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036044Usually this means the macro was only invoked conditionally." "$LINENO" 5
36045fi
cristy71d8c202012-03-20 17:05:01 +000036046if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36047 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36048Usually this means the macro was only invoked conditionally." "$LINENO" 5
36049fi
cristy73bd4a52010-10-05 11:24:23 +000036050
36051if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036052 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036053Usually this means the macro was only invoked conditionally." "$LINENO" 5
36054fi
36055if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036056 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036057Usually this means the macro was only invoked conditionally." "$LINENO" 5
36058fi
36059if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036060 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036061Usually this means the macro was only invoked conditionally." "$LINENO" 5
36062fi
36063if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036064 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036065Usually this means the macro was only invoked conditionally." "$LINENO" 5
36066fi
36067if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036068 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036069Usually this means the macro was only invoked conditionally." "$LINENO" 5
36070fi
36071if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036072 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036073Usually this means the macro was only invoked conditionally." "$LINENO" 5
36074fi
cristy5eef09f2012-10-16 12:08:28 +000036075if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36076 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36077Usually this means the macro was only invoked conditionally." "$LINENO" 5
36078fi
cristy73bd4a52010-10-05 11:24:23 +000036079if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036080 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036081Usually this means the macro was only invoked conditionally." "$LINENO" 5
36082fi
36083if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036084 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036085Usually this means the macro was only invoked conditionally." "$LINENO" 5
36086fi
36087if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036088 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036089Usually this means the macro was only invoked conditionally." "$LINENO" 5
36090fi
36091if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036092 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036093Usually this means the macro was only invoked conditionally." "$LINENO" 5
36094fi
36095if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036096 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036097Usually this means the macro was only invoked conditionally." "$LINENO" 5
36098fi
36099if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036100 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036101Usually this means the macro was only invoked conditionally." "$LINENO" 5
36102fi
36103if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036104 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036105Usually this means the macro was only invoked conditionally." "$LINENO" 5
36106fi
36107if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036108 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036109Usually this means the macro was only invoked conditionally." "$LINENO" 5
36110fi
36111if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036112 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036113Usually this means the macro was only invoked conditionally." "$LINENO" 5
36114fi
36115if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036116 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036117Usually this means the macro was only invoked conditionally." "$LINENO" 5
36118fi
36119if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036120 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036121Usually this means the macro was only invoked conditionally." "$LINENO" 5
36122fi
cristy73bd4a52010-10-05 11:24:23 +000036123if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036124 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036125Usually this means the macro was only invoked conditionally." "$LINENO" 5
36126fi
cristy99db3872014-01-01 15:11:34 +000036127if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36128 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36129Usually this means the macro was only invoked conditionally." "$LINENO" 5
36130fi
cristy73bd4a52010-10-05 11:24:23 +000036131if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036132 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036133Usually this means the macro was only invoked conditionally." "$LINENO" 5
36134fi
cristyfbb0ef02010-12-19 02:32:11 +000036135if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36136 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36137Usually this means the macro was only invoked conditionally." "$LINENO" 5
36138fi
cristy73bd4a52010-10-05 11:24:23 +000036139if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036140 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036141Usually this means the macro was only invoked conditionally." "$LINENO" 5
36142fi
cristy41cbe8a2011-10-27 01:35:18 +000036143if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36144 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36145Usually this means the macro was only invoked conditionally." "$LINENO" 5
36146fi
cristya054b762012-03-26 23:16:00 +000036147if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36148 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036149Usually this means the macro was only invoked conditionally." "$LINENO" 5
36150fi
cristy73bd4a52010-10-05 11:24:23 +000036151if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036152 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036153Usually this means the macro was only invoked conditionally." "$LINENO" 5
36154fi
36155if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036156 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036157Usually this means the macro was only invoked conditionally." "$LINENO" 5
36158fi
36159if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036160 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036161Usually this means the macro was only invoked conditionally." "$LINENO" 5
36162fi
36163if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036164 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036165Usually this means the macro was only invoked conditionally." "$LINENO" 5
36166fi
cristyb1860752011-03-14 00:27:46 +000036167if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36168 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36169Usually this means the macro was only invoked conditionally." "$LINENO" 5
36170fi
cristy73bd4a52010-10-05 11:24:23 +000036171if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036172 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036173Usually this means the macro was only invoked conditionally." "$LINENO" 5
36174fi
36175if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036176 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036177Usually this means the macro was only invoked conditionally." "$LINENO" 5
36178fi
cristydd17feb2014-03-05 02:06:32 +000036179if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36180 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36181Usually this means the macro was only invoked conditionally." "$LINENO" 5
36182fi
cristy73bd4a52010-10-05 11:24:23 +000036183if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036184 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036185Usually this means the macro was only invoked conditionally." "$LINENO" 5
36186fi
36187if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036188 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036189Usually this means the macro was only invoked conditionally." "$LINENO" 5
36190fi
36191if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036192 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036193Usually this means the macro was only invoked conditionally." "$LINENO" 5
36194fi
36195if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036196 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036197Usually this means the macro was only invoked conditionally." "$LINENO" 5
36198fi
36199if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036200 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036201Usually this means the macro was only invoked conditionally." "$LINENO" 5
36202fi
36203if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036204 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036205Usually this means the macro was only invoked conditionally." "$LINENO" 5
36206fi
cristy3ed852e2009-09-05 21:47:34 +000036207
cristyda16f162011-02-19 23:52:17 +000036208: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036209ac_write_fail=0
36210ac_clean_files_save=$ac_clean_files
36211ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036212{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036213$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036214as_write_fail=0
36215cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036216#! $SHELL
36217# Generated by $as_me.
36218# Run this file to recreate the current configuration.
36219# Compiler output produced by configure, useful for debugging
36220# configure, is in config.log if it exists.
36221
36222debug=false
36223ac_cs_recheck=false
36224ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036225
cristy8b350f62009-11-15 23:12:43 +000036226SHELL=\${CONFIG_SHELL-$SHELL}
36227export SHELL
36228_ASEOF
36229cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36230## -------------------- ##
36231## M4sh Initialization. ##
36232## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036233
36234# Be more Bourne compatible
36235DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036236if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036237 emulate sh
36238 NULLCMD=:
36239 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36240 # is contrary to our usage. Disable this feature.
36241 alias -g '${1+"$@"}'='"$@"'
36242 setopt NO_GLOB_SUBST
36243else
cristy8b350f62009-11-15 23:12:43 +000036244 case `(set -o) 2>/dev/null` in #(
36245 *posix*) :
36246 set -o posix ;; #(
36247 *) :
36248 ;;
cristy3ed852e2009-09-05 21:47:34 +000036249esac
cristy3ed852e2009-09-05 21:47:34 +000036250fi
36251
36252
cristy3ed852e2009-09-05 21:47:34 +000036253as_nl='
36254'
36255export as_nl
36256# Printing a long string crashes Solaris 7 /usr/bin/printf.
36257as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36258as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36259as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036260# Prefer a ksh shell builtin over an external printf program on Solaris,
36261# but without wasting forks for bash or zsh.
36262if test -z "$BASH_VERSION$ZSH_VERSION" \
36263 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36264 as_echo='print -r --'
36265 as_echo_n='print -rn --'
36266elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036267 as_echo='printf %s\n'
36268 as_echo_n='printf %s'
36269else
36270 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36271 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36272 as_echo_n='/usr/ucb/echo -n'
36273 else
36274 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36275 as_echo_n_body='eval
36276 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036277 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036278 *"$as_nl"*)
36279 expr "X$arg" : "X\\(.*\\)$as_nl";
36280 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36281 esac;
36282 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36283 '
36284 export as_echo_n_body
36285 as_echo_n='sh -c $as_echo_n_body as_echo'
36286 fi
36287 export as_echo_body
36288 as_echo='sh -c $as_echo_body as_echo'
36289fi
36290
36291# The user is always right.
36292if test "${PATH_SEPARATOR+set}" != set; then
36293 PATH_SEPARATOR=:
36294 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36295 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36296 PATH_SEPARATOR=';'
36297 }
36298fi
36299
cristy3ed852e2009-09-05 21:47:34 +000036300
36301# IFS
36302# We need space, tab and new line, in precisely that order. Quoting is
36303# there to prevent editors from complaining about space-tab.
36304# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36305# splitting by setting IFS to empty value.)
36306IFS=" "" $as_nl"
36307
36308# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036309as_myself=
cristy8b350f62009-11-15 23:12:43 +000036310case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036311 *[\\/]* ) as_myself=$0 ;;
36312 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36313for as_dir in $PATH
36314do
36315 IFS=$as_save_IFS
36316 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036317 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36318 done
cristy3ed852e2009-09-05 21:47:34 +000036319IFS=$as_save_IFS
36320
36321 ;;
36322esac
36323# We did not find ourselves, most probably we were run as `sh COMMAND'
36324# in which case we are not to be found in the path.
36325if test "x$as_myself" = x; then
36326 as_myself=$0
36327fi
36328if test ! -f "$as_myself"; then
36329 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036330 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036331fi
36332
cristy8b350f62009-11-15 23:12:43 +000036333# Unset variables that we do not need and which cause bugs (e.g. in
36334# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36335# suppresses any "Segmentation fault" message there. '((' could
36336# trigger a bug in pdksh 5.2.14.
36337for as_var in BASH_ENV ENV MAIL MAILPATH
36338do eval test x\${$as_var+set} = xset \
36339 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036340done
36341PS1='$ '
36342PS2='> '
36343PS4='+ '
36344
36345# NLS nuisances.
36346LC_ALL=C
36347export LC_ALL
36348LANGUAGE=C
36349export LANGUAGE
36350
cristy8b350f62009-11-15 23:12:43 +000036351# CDPATH.
36352(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36353
36354
cristy98dddb52010-11-04 00:30:15 +000036355# as_fn_error STATUS ERROR [LINENO LOG_FD]
36356# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036357# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36358# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036359# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036360as_fn_error ()
36361{
cristy98dddb52010-11-04 00:30:15 +000036362 as_status=$1; test $as_status -eq 0 && as_status=1
36363 if test "$4"; then
36364 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36365 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036366 fi
cristy98dddb52010-11-04 00:30:15 +000036367 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036368 as_fn_exit $as_status
36369} # as_fn_error
36370
36371
36372# as_fn_set_status STATUS
36373# -----------------------
36374# Set $? to STATUS, without forking.
36375as_fn_set_status ()
36376{
36377 return $1
36378} # as_fn_set_status
36379
36380# as_fn_exit STATUS
36381# -----------------
36382# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36383as_fn_exit ()
36384{
36385 set +e
36386 as_fn_set_status $1
36387 exit $1
36388} # as_fn_exit
36389
36390# as_fn_unset VAR
36391# ---------------
36392# Portably unset VAR.
36393as_fn_unset ()
36394{
36395 { eval $1=; unset $1;}
36396}
36397as_unset=as_fn_unset
36398# as_fn_append VAR VALUE
36399# ----------------------
36400# Append the text in VALUE to the end of the definition contained in VAR. Take
36401# advantage of any shell optimizations that allow amortized linear growth over
36402# repeated appends, instead of the typical quadratic growth present in naive
36403# implementations.
36404if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36405 eval 'as_fn_append ()
36406 {
36407 eval $1+=\$2
36408 }'
36409else
36410 as_fn_append ()
36411 {
36412 eval $1=\$$1\$2
36413 }
36414fi # as_fn_append
36415
36416# as_fn_arith ARG...
36417# ------------------
36418# Perform arithmetic evaluation on the ARGs, and store the result in the
36419# global $as_val. Take advantage of shells that can avoid forks. The arguments
36420# must be portable across $(()) and expr.
36421if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36422 eval 'as_fn_arith ()
36423 {
36424 as_val=$(( $* ))
36425 }'
36426else
36427 as_fn_arith ()
36428 {
36429 as_val=`expr "$@" || test $? -eq 1`
36430 }
36431fi # as_fn_arith
36432
36433
cristy3ed852e2009-09-05 21:47:34 +000036434if expr a : '\(a\)' >/dev/null 2>&1 &&
36435 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36436 as_expr=expr
36437else
36438 as_expr=false
36439fi
36440
36441if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36442 as_basename=basename
36443else
36444 as_basename=false
36445fi
36446
cristy8b350f62009-11-15 23:12:43 +000036447if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36448 as_dirname=dirname
36449else
36450 as_dirname=false
36451fi
cristy3ed852e2009-09-05 21:47:34 +000036452
cristy3ed852e2009-09-05 21:47:34 +000036453as_me=`$as_basename -- "$0" ||
36454$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36455 X"$0" : 'X\(//\)$' \| \
36456 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36457$as_echo X/"$0" |
36458 sed '/^.*\/\([^/][^/]*\)\/*$/{
36459 s//\1/
36460 q
36461 }
36462 /^X\/\(\/\/\)$/{
36463 s//\1/
36464 q
36465 }
36466 /^X\/\(\/\).*/{
36467 s//\1/
36468 q
36469 }
36470 s/.*/./; q'`
36471
cristy8b350f62009-11-15 23:12:43 +000036472# Avoid depending upon Character Ranges.
36473as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36474as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36475as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36476as_cr_digits='0123456789'
36477as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036478
36479ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036480case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036481-n*)
cristy8b350f62009-11-15 23:12:43 +000036482 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036483 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036484 xy) ECHO_C='\c';;
36485 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36486 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036487 esac;;
36488*)
36489 ECHO_N='-n';;
36490esac
cristy3ed852e2009-09-05 21:47:34 +000036491
36492rm -f conf$$ conf$$.exe conf$$.file
36493if test -d conf$$.dir; then
36494 rm -f conf$$.dir/conf$$.file
36495else
36496 rm -f conf$$.dir
36497 mkdir conf$$.dir 2>/dev/null
36498fi
36499if (echo >conf$$.file) 2>/dev/null; then
36500 if ln -s conf$$.file conf$$ 2>/dev/null; then
36501 as_ln_s='ln -s'
36502 # ... but there are two gotchas:
36503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036505 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036507 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036508 elif ln conf$$.file conf$$ 2>/dev/null; then
36509 as_ln_s=ln
36510 else
cristy14fefe52012-05-21 00:59:18 +000036511 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036512 fi
36513else
cristy14fefe52012-05-21 00:59:18 +000036514 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036515fi
36516rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36517rmdir conf$$.dir 2>/dev/null
36518
cristy8b350f62009-11-15 23:12:43 +000036519
36520# as_fn_mkdir_p
36521# -------------
36522# Create "$as_dir" as a directory, including parents if necessary.
36523as_fn_mkdir_p ()
36524{
36525
36526 case $as_dir in #(
36527 -*) as_dir=./$as_dir;;
36528 esac
36529 test -d "$as_dir" || eval $as_mkdir_p || {
36530 as_dirs=
36531 while :; do
36532 case $as_dir in #(
36533 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36534 *) as_qdir=$as_dir;;
36535 esac
36536 as_dirs="'$as_qdir' $as_dirs"
36537 as_dir=`$as_dirname -- "$as_dir" ||
36538$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36539 X"$as_dir" : 'X\(//\)[^/]' \| \
36540 X"$as_dir" : 'X\(//\)$' \| \
36541 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36542$as_echo X"$as_dir" |
36543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36544 s//\1/
36545 q
36546 }
36547 /^X\(\/\/\)[^/].*/{
36548 s//\1/
36549 q
36550 }
36551 /^X\(\/\/\)$/{
36552 s//\1/
36553 q
36554 }
36555 /^X\(\/\).*/{
36556 s//\1/
36557 q
36558 }
36559 s/.*/./; q'`
36560 test -d "$as_dir" && break
36561 done
36562 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036563 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036564
36565
36566} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036567if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036568 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036569else
36570 test -d ./-p && rmdir ./-p
36571 as_mkdir_p=false
36572fi
36573
cristy14fefe52012-05-21 00:59:18 +000036574
36575# as_fn_executable_p FILE
36576# -----------------------
36577# Test if FILE is an executable regular file.
36578as_fn_executable_p ()
36579{
36580 test -f "$1" && test -x "$1"
36581} # as_fn_executable_p
36582as_test_x='test -x'
36583as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036584
36585# Sed expression to map a string onto a valid CPP name.
36586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36587
36588# Sed expression to map a string onto a valid variable name.
36589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36590
36591
36592exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036593## ----------------------------------- ##
36594## Main body of $CONFIG_STATUS script. ##
36595## ----------------------------------- ##
36596_ASEOF
36597test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036598
cristy8b350f62009-11-15 23:12:43 +000036599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36600# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036601# report actual input values of CONFIG_FILES etc. instead of their
36602# values after options handling.
36603ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036604This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036605generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036606
36607 CONFIG_FILES = $CONFIG_FILES
36608 CONFIG_HEADERS = $CONFIG_HEADERS
36609 CONFIG_LINKS = $CONFIG_LINKS
36610 CONFIG_COMMANDS = $CONFIG_COMMANDS
36611 $ $0 $@
36612
36613on `(hostname || uname -n) 2>/dev/null | sed 1q`
36614"
36615
36616_ACEOF
36617
36618case $ac_config_files in *"
36619"*) set x $ac_config_files; shift; ac_config_files=$*;;
36620esac
36621
36622case $ac_config_headers in *"
36623"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36624esac
36625
36626
36627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36628# Files that config.status was made for.
36629config_files="$ac_config_files"
36630config_headers="$ac_config_headers"
36631config_commands="$ac_config_commands"
36632
36633_ACEOF
36634
36635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36636ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036637\`$as_me' instantiates files and other configuration actions
36638from templates according to the current configuration. Unless the files
36639and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036640
cristy8b350f62009-11-15 23:12:43 +000036641Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036642
36643 -h, --help print this help, then exit
36644 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036645 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036646 -q, --quiet, --silent
36647 do not print progress messages
36648 -d, --debug don't remove temporary files
36649 --recheck update $as_me by reconfiguring in the same conditions
36650 --file=FILE[:TEMPLATE]
36651 instantiate the configuration file FILE
36652 --header=FILE[:TEMPLATE]
36653 instantiate the configuration header FILE
36654
36655Configuration files:
36656$config_files
36657
36658Configuration headers:
36659$config_headers
36660
36661Configuration commands:
36662$config_commands
36663
cristy8b350f62009-11-15 23:12:43 +000036664Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036665
36666_ACEOF
36667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036668ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036669ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036670ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036671configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036672 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036673
cristy14fefe52012-05-21 00:59:18 +000036674Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036675This config.status script is free software; the Free Software Foundation
36676gives unlimited permission to copy, distribute and modify it."
36677
36678ac_pwd='$ac_pwd'
36679srcdir='$srcdir'
36680INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036681MKDIR_P='$MKDIR_P'
36682AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036683test -n "\$AWK" || AWK=awk
36684_ACEOF
36685
36686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36687# The default lists apply if the user does not specify any file.
36688ac_need_defaults=:
36689while test $# != 0
36690do
36691 case $1 in
cristyda16f162011-02-19 23:52:17 +000036692 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036693 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36694 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36695 ac_shift=:
36696 ;;
cristyda16f162011-02-19 23:52:17 +000036697 --*=)
36698 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36699 ac_optarg=
36700 ac_shift=:
36701 ;;
cristy3ed852e2009-09-05 21:47:34 +000036702 *)
36703 ac_option=$1
36704 ac_optarg=$2
36705 ac_shift=shift
36706 ;;
36707 esac
36708
36709 case $ac_option in
36710 # Handling of the options.
36711 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36712 ac_cs_recheck=: ;;
36713 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36714 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036715 --config | --confi | --conf | --con | --co | --c )
36716 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036717 --debug | --debu | --deb | --de | --d | -d )
36718 debug=: ;;
36719 --file | --fil | --fi | --f )
36720 $ac_shift
36721 case $ac_optarg in
36722 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036723 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036724 esac
cristy8b350f62009-11-15 23:12:43 +000036725 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036726 ac_need_defaults=false;;
36727 --header | --heade | --head | --hea )
36728 $ac_shift
36729 case $ac_optarg in
36730 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36731 esac
cristy8b350f62009-11-15 23:12:43 +000036732 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036733 ac_need_defaults=false;;
36734 --he | --h)
36735 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036736 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036737Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036738 --help | --hel | -h )
36739 $as_echo "$ac_cs_usage"; exit ;;
36740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36741 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36742 ac_cs_silent=: ;;
36743
36744 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036745 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036746Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036747
cristy8b350f62009-11-15 23:12:43 +000036748 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036749 ac_need_defaults=false ;;
36750
36751 esac
36752 shift
36753done
36754
36755ac_configure_extra_args=
36756
36757if $ac_cs_silent; then
36758 exec 6>/dev/null
36759 ac_configure_extra_args="$ac_configure_extra_args --silent"
36760fi
36761
36762_ACEOF
36763cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36764if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036765 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036766 shift
36767 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36768 CONFIG_SHELL='$SHELL'
36769 export CONFIG_SHELL
36770 exec "\$@"
36771fi
36772
36773_ACEOF
36774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36775exec 5>>config.log
36776{
36777 echo
36778 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36779## Running $as_me. ##
36780_ASBOX
36781 $as_echo "$ac_log"
36782} >&5
36783
36784_ACEOF
36785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036786#
36787# INIT-COMMANDS
36788#
36789PACKAGE="$PACKAGE"
36790AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36791
36792
36793# The HP-UX ksh and POSIX shell print the target directory to stdout
36794# if CDPATH is set.
36795(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36796
36797sed_quote_subst='$sed_quote_subst'
36798double_quote_subst='$double_quote_subst'
36799delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036800SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36801Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36802GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36803EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36804FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36805SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36806ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36807LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36808macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36809macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36810AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36811DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36812OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36813enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36814enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36815pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36816enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036817PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036818host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36819host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36820host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36821build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36822build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36823build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36824NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36825LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36826max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36827ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36828exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36829lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36830lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36831lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036832lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36833lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036834reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36835reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36836deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36837file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036838file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36839want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36840sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036841AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36842AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036843archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036844STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36845RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36846old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36847old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36848old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36849lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36850CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36851CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36852compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36853GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36854lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36855lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36856lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36857lt_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 +000036858nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36859lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036860objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36861MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36862lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036863lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036864lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036865lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36866lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36867need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036868MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036869DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36870NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36871LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36872OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36873OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36874libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36875shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36876extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36877archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36878enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36879export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36880whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36881compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36882old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36883old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36884archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36885archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36886module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36887module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36888with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36889allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36890no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36891hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036892hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36893hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36894hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36895hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36896hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36897hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36898inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36899link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036900always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36901export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36902exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36903include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36904prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036905postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036906file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36907variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36908need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36909need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36910version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36911runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36912shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36913shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36914libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36915library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36916soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36917install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36918postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36919postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36920finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36921finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36922hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36923sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36924sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36925hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36926enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36927enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36928enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36929old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36930striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36931compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36932predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36933postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36934predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36935postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36936compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36937LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36938reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36939reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36940old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36941compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36942GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36943lt_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 +000036944lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036945lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036946lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36947lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36948archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36949enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36950export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36951whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36952compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36953old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36954old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36955archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36956archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36957module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36958module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36959with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36960allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36961no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36962hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036963hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36964hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36965hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36966hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36967hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36968hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36969inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36970link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036971always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36972export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36973exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36974include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36975prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036976postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036977file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36978hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36979compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36980predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36981postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36982predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36983postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36984compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036985
36986LTCC='$LTCC'
36987LTCFLAGS='$LTCFLAGS'
36988compiler='$compiler_DEFAULT'
36989
cristy0c60a692010-11-04 01:09:47 +000036990# A function that is used when there is no print builtin or printf.
36991func_fallback_echo ()
36992{
36993 eval 'cat <<_LTECHO_EOF
36994\$1
36995_LTECHO_EOF'
36996}
36997
cristy73bd4a52010-10-05 11:24:23 +000036998# Quote evaled strings.
36999for var in SED \
37000GREP \
37001EGREP \
37002FGREP \
cristy0c60a692010-11-04 01:09:47 +000037003SHELL \
37004ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037005LD \
cristy0c60a692010-11-04 01:09:47 +000037006AS \
37007DLLTOOL \
37008OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037009PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037010NM \
37011LN_S \
37012lt_SP2NL \
37013lt_NL2SP \
37014reload_flag \
37015deplibs_check_method \
37016file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037017file_magic_glob \
37018want_nocaseglob \
37019sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037020AR \
37021AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037022archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037023STRIP \
37024RANLIB \
37025CC \
37026CFLAGS \
37027compiler \
37028lt_cv_sys_global_symbol_pipe \
37029lt_cv_sys_global_symbol_to_cdecl \
37030lt_cv_sys_global_symbol_to_c_name_address \
37031lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037032nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037033lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037034lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037035lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037036lt_prog_compiler_static \
37037lt_cv_prog_compiler_c_o \
37038need_locks \
cristyda16f162011-02-19 23:52:17 +000037039MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037040DSYMUTIL \
37041NMEDIT \
37042LIPO \
37043OTOOL \
37044OTOOL64 \
37045shrext_cmds \
37046export_dynamic_flag_spec \
37047whole_archive_flag_spec \
37048compiler_needs_object \
37049with_gnu_ld \
37050allow_undefined_flag \
37051no_undefined_flag \
37052hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037053hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037054exclude_expsyms \
37055include_expsyms \
37056file_list_spec \
37057variables_saved_for_relink \
37058libname_spec \
37059library_names_spec \
37060soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037061install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037062finish_eval \
37063old_striplib \
37064striplib \
37065compiler_lib_search_dirs \
37066predep_objects \
37067postdep_objects \
37068predeps \
37069postdeps \
37070compiler_lib_search_path \
37071LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037072reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037073compiler_CXX \
37074lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037075lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037076lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037077lt_prog_compiler_static_CXX \
37078lt_cv_prog_compiler_c_o_CXX \
37079export_dynamic_flag_spec_CXX \
37080whole_archive_flag_spec_CXX \
37081compiler_needs_object_CXX \
37082with_gnu_ld_CXX \
37083allow_undefined_flag_CXX \
37084no_undefined_flag_CXX \
37085hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037086hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037087exclude_expsyms_CXX \
37088include_expsyms_CXX \
37089file_list_spec_CXX \
37090compiler_lib_search_dirs_CXX \
37091predep_objects_CXX \
37092postdep_objects_CXX \
37093predeps_CXX \
37094postdeps_CXX \
37095compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037096 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037097 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037098 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037099 ;;
37100 *)
37101 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37102 ;;
37103 esac
37104done
37105
37106# Double-quote double-evaled strings.
37107for var in reload_cmds \
37108old_postinstall_cmds \
37109old_postuninstall_cmds \
37110old_archive_cmds \
37111extract_expsyms_cmds \
37112old_archive_from_new_cmds \
37113old_archive_from_expsyms_cmds \
37114archive_cmds \
37115archive_expsym_cmds \
37116module_cmds \
37117module_expsym_cmds \
37118export_symbols_cmds \
37119prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037120postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037121postinstall_cmds \
37122postuninstall_cmds \
37123finish_cmds \
37124sys_lib_search_path_spec \
37125sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037126reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037127old_archive_cmds_CXX \
37128old_archive_from_new_cmds_CXX \
37129old_archive_from_expsyms_cmds_CXX \
37130archive_cmds_CXX \
37131archive_expsym_cmds_CXX \
37132module_cmds_CXX \
37133module_expsym_cmds_CXX \
37134export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037135prelink_cmds_CXX \
37136postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037137 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037138 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037139 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037140 ;;
37141 *)
37142 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37143 ;;
37144 esac
37145done
37146
cristy73bd4a52010-10-05 11:24:23 +000037147ac_aux_dir='$ac_aux_dir'
37148xsi_shell='$xsi_shell'
37149lt_shell_append='$lt_shell_append'
37150
37151# See if we are running on zsh, and set the options which allow our
37152# commands through without removal of \ escapes INIT.
37153if test -n "\${ZSH_VERSION+set}" ; then
37154 setopt NO_GLOB_SUBST
37155fi
37156
37157
37158 PACKAGE='$PACKAGE'
37159 VERSION='$VERSION'
37160 TIMESTAMP='$TIMESTAMP'
37161 RM='$RM'
37162 ofile='$ofile'
37163
37164
37165
37166
37167
37168
cristy3ed852e2009-09-05 21:47:34 +000037169_ACEOF
37170
37171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37172
37173# Handling of arguments.
37174for ac_config_target in $ac_config_targets
37175do
37176 case $ac_config_target in
37177 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037178 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037179 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037180 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37181 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37182 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37183 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37184 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037185 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037186 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037187 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37188 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37189 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37190 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37191 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037192 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037193 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037194 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37195 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37196 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037197 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37198 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037199 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037200 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037201 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037202 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037203 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37204 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37205 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37206 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037207 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37208 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37209 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37210 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37211 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37212 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37213 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37214 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37215 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37216 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37217 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37218 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037219 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37220 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037221 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37222 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037223 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037224 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037225 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037226 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037227 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37228 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37229
cristy98dddb52010-11-04 00:30:15 +000037230 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037231 esac
37232done
37233
37234
37235# If the user did not use the arguments to specify the items to instantiate,
37236# then the envvar interface is used. Set only those that are not.
37237# We use the long form for the default assignment because of an extremely
37238# bizarre bug on SunOS 4.1.3.
37239if $ac_need_defaults; then
37240 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37241 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37242 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37243fi
37244
37245# Have a temporary directory for convenience. Make it in the build tree
37246# simply because there is no reason against having it here, and in addition,
37247# creating and moving files from /tmp can sometimes cause problems.
37248# Hook for its removal unless debugging.
37249# Note that there is a small window in which the directory will not be cleaned:
37250# after its creation but before its name has been assigned to `$tmp'.
37251$debug ||
37252{
cristyda16f162011-02-19 23:52:17 +000037253 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037254 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037255 : "${ac_tmp:=$tmp}"
37256 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037257' 0
cristy8b350f62009-11-15 23:12:43 +000037258 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037259}
37260# Create a (secure) tmp directory for tmp files.
37261
37262{
37263 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037264 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037265} ||
37266{
37267 tmp=./conf$$-$RANDOM
37268 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037269} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037270ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037271
37272# Set up the scripts for CONFIG_FILES section.
37273# No need to generate them if there are no CONFIG_FILES.
37274# This happens for instance with `./config.status config.h'.
37275if test -n "$CONFIG_FILES"; then
37276
37277
cristy8b350f62009-11-15 23:12:43 +000037278ac_cr=`echo X | tr X '\015'`
37279# On cygwin, bash can eat \r inside `` if the user requested igncr.
37280# But we know of no other shell where ac_cr would be empty at this
37281# point, so we can use a bashism as a fallback.
37282if test "x$ac_cr" = x; then
37283 eval ac_cr=\$\'\\r\'
37284fi
cristy3ed852e2009-09-05 21:47:34 +000037285ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37286if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037287 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037288else
37289 ac_cs_awk_cr=$ac_cr
37290fi
37291
cristyda16f162011-02-19 23:52:17 +000037292echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037293_ACEOF
37294
37295
37296{
37297 echo "cat >conf$$subs.awk <<_ACEOF" &&
37298 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37299 echo "_ACEOF"
37300} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037301 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37302ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037303ac_delim='%!_!# '
37304for ac_last_try in false false false false false :; do
37305 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037306 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037307
37308 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37309 if test $ac_delim_n = $ac_delim_num; then
37310 break
37311 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037312 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037313 else
37314 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37315 fi
37316done
37317rm -f conf$$subs.sh
37318
37319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037320cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037321_ACEOF
37322sed -n '
37323h
37324s/^/S["/; s/!.*/"]=/
37325p
37326g
37327s/^[^!]*!//
37328:repl
37329t repl
37330s/'"$ac_delim"'$//
37331t delim
37332:nl
37333h
cristycd4c5312009-11-22 01:19:08 +000037334s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037335t more1
37336s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37337p
37338n
37339b repl
37340:more1
37341s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37342p
37343g
37344s/.\{148\}//
37345t nl
37346:delim
37347h
cristycd4c5312009-11-22 01:19:08 +000037348s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037349t more2
37350s/["\\]/\\&/g; s/^/"/; s/$/"/
37351p
37352b
37353:more2
37354s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37355p
37356g
37357s/.\{148\}//
37358t delim
37359' <conf$$subs.awk | sed '
37360/^[^""]/{
37361 N
37362 s/\n//
37363}
37364' >>$CONFIG_STATUS || ac_write_fail=1
37365rm -f conf$$subs.awk
37366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37367_ACAWK
cristyda16f162011-02-19 23:52:17 +000037368cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037369 for (key in S) S_is_set[key] = 1
37370 FS = ""
37371
37372}
37373{
37374 line = $ 0
37375 nfields = split(line, field, "@")
37376 substed = 0
37377 len = length(field[1])
37378 for (i = 2; i < nfields; i++) {
37379 key = field[i]
37380 keylen = length(key)
37381 if (S_is_set[key]) {
37382 value = S[key]
37383 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37384 len += length(value) + length(field[++i])
37385 substed = 1
37386 } else
37387 len += 1 + keylen
37388 }
37389
37390 print line
37391}
37392
37393_ACAWK
37394_ACEOF
37395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37396if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37397 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37398else
37399 cat
cristyda16f162011-02-19 23:52:17 +000037400fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037401 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037402_ACEOF
37403
cristy98dddb52010-11-04 00:30:15 +000037404# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37405# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037406# trailing colons and then remove the whole line if VPATH becomes empty
37407# (actually we leave an empty line to preserve line numbers).
37408if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037409 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37410h
37411s///
37412s/^/:/
37413s/[ ]*$/:/
37414s/:\$(srcdir):/:/g
37415s/:\${srcdir}:/:/g
37416s/:@srcdir@:/:/g
37417s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037418s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037419x
37420s/\(=[ ]*\).*/\1/
37421G
37422s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037423s/^[^=]*=[ ]*$//
37424}'
37425fi
37426
37427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37428fi # test -n "$CONFIG_FILES"
37429
37430# Set up the scripts for CONFIG_HEADERS section.
37431# No need to generate them if there are no CONFIG_HEADERS.
37432# This happens for instance with `./config.status Makefile'.
37433if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037434cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037435BEGIN {
37436_ACEOF
37437
37438# Transform confdefs.h into an awk script `defines.awk', embedded as
37439# here-document in config.status, that substitutes the proper values into
37440# config.h.in to produce config.h.
37441
37442# Create a delimiter string that does not exist in confdefs.h, to ease
37443# handling of long lines.
37444ac_delim='%!_!# '
37445for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037446 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37447 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037448 break
37449 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037450 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037451 else
37452 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37453 fi
37454done
37455
37456# For the awk script, D is an array of macro values keyed by name,
37457# likewise P contains macro parameters if any. Preserve backslash
37458# newline sequences.
37459
37460ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37461sed -n '
37462s/.\{148\}/&'"$ac_delim"'/g
37463t rset
37464:rset
37465s/^[ ]*#[ ]*define[ ][ ]*/ /
37466t def
37467d
37468:def
37469s/\\$//
37470t bsnl
37471s/["\\]/\\&/g
37472s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37473D["\1"]=" \3"/p
37474s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37475d
37476:bsnl
37477s/["\\]/\\&/g
37478s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37479D["\1"]=" \3\\\\\\n"\\/p
37480t cont
37481s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37482t cont
37483d
37484:cont
37485n
37486s/.\{148\}/&'"$ac_delim"'/g
37487t clear
37488:clear
37489s/\\$//
37490t bsnlc
37491s/["\\]/\\&/g; s/^/"/; s/$/"/p
37492d
37493:bsnlc
37494s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37495b cont
37496' <confdefs.h | sed '
37497s/'"$ac_delim"'/"\\\
37498"/g' >>$CONFIG_STATUS || ac_write_fail=1
37499
37500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37501 for (key in D) D_is_set[key] = 1
37502 FS = ""
37503}
37504/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37505 line = \$ 0
37506 split(line, arg, " ")
37507 if (arg[1] == "#") {
37508 defundef = arg[2]
37509 mac1 = arg[3]
37510 } else {
37511 defundef = substr(arg[1], 2)
37512 mac1 = arg[2]
37513 }
37514 split(mac1, mac2, "(") #)
37515 macro = mac2[1]
37516 prefix = substr(line, 1, index(line, defundef) - 1)
37517 if (D_is_set[macro]) {
37518 # Preserve the white space surrounding the "#".
37519 print prefix "define", macro P[macro] D[macro]
37520 next
37521 } else {
37522 # Replace #undef with comments. This is necessary, for example,
37523 # in the case of _POSIX_SOURCE, which is predefined and required
37524 # on some systems where configure will not decide to define it.
37525 if (defundef == "undef") {
37526 print "/*", prefix defundef, macro, "*/"
37527 next
37528 }
37529 }
37530}
37531{ print }
37532_ACAWK
37533_ACEOF
37534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037535 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037536fi # test -n "$CONFIG_HEADERS"
37537
37538
37539eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37540shift
37541for ac_tag
37542do
37543 case $ac_tag in
37544 :[FHLC]) ac_mode=$ac_tag; continue;;
37545 esac
37546 case $ac_mode$ac_tag in
37547 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037548 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037549 :[FH]-) ac_tag=-:-;;
37550 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37551 esac
37552 ac_save_IFS=$IFS
37553 IFS=:
37554 set x $ac_tag
37555 IFS=$ac_save_IFS
37556 shift
37557 ac_file=$1
37558 shift
37559
37560 case $ac_mode in
37561 :L) ac_source=$1;;
37562 :[FH])
37563 ac_file_inputs=
37564 for ac_f
37565 do
37566 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037567 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037568 *) # Look for the file first in the build tree, then in the source tree
37569 # (if the path is not absolute). The absolute path cannot be DOS-style,
37570 # because $ac_f cannot contain `:'.
37571 test -f "$ac_f" ||
37572 case $ac_f in
37573 [\\/$]*) false;;
37574 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37575 esac ||
cristy98dddb52010-11-04 00:30:15 +000037576 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037577 esac
37578 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037579 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037580 done
37581
37582 # Let's still pretend it is `configure' which instantiates (i.e., don't
37583 # use $as_me), people would be surprised to read:
37584 # /* config.h. Generated by config.status. */
37585 configure_input='Generated from '`
37586 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37587 `' by configure.'
37588 if test x"$ac_file" != x-; then
37589 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037590 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037591$as_echo "$as_me: creating $ac_file" >&6;}
37592 fi
37593 # Neutralize special characters interpreted by sed in replacement strings.
37594 case $configure_input in #(
37595 *\&* | *\|* | *\\* )
37596 ac_sed_conf_input=`$as_echo "$configure_input" |
37597 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37598 *) ac_sed_conf_input=$configure_input;;
37599 esac
37600
37601 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037602 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037603 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037604 esac
37605 ;;
37606 esac
37607
37608 ac_dir=`$as_dirname -- "$ac_file" ||
37609$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37610 X"$ac_file" : 'X\(//\)[^/]' \| \
37611 X"$ac_file" : 'X\(//\)$' \| \
37612 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37613$as_echo X"$ac_file" |
37614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37615 s//\1/
37616 q
37617 }
37618 /^X\(\/\/\)[^/].*/{
37619 s//\1/
37620 q
37621 }
37622 /^X\(\/\/\)$/{
37623 s//\1/
37624 q
37625 }
37626 /^X\(\/\).*/{
37627 s//\1/
37628 q
37629 }
37630 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037631 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037632 ac_builddir=.
37633
37634case "$ac_dir" in
37635.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37636*)
37637 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37638 # A ".." for each directory in $ac_dir_suffix.
37639 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37640 case $ac_top_builddir_sub in
37641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37643 esac ;;
37644esac
37645ac_abs_top_builddir=$ac_pwd
37646ac_abs_builddir=$ac_pwd$ac_dir_suffix
37647# for backward compatibility:
37648ac_top_builddir=$ac_top_build_prefix
37649
37650case $srcdir in
37651 .) # We are building in place.
37652 ac_srcdir=.
37653 ac_top_srcdir=$ac_top_builddir_sub
37654 ac_abs_top_srcdir=$ac_pwd ;;
37655 [\\/]* | ?:[\\/]* ) # Absolute name.
37656 ac_srcdir=$srcdir$ac_dir_suffix;
37657 ac_top_srcdir=$srcdir
37658 ac_abs_top_srcdir=$srcdir ;;
37659 *) # Relative name.
37660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37661 ac_top_srcdir=$ac_top_build_prefix$srcdir
37662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37663esac
37664ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37665
37666
37667 case $ac_mode in
37668 :F)
37669 #
37670 # CONFIG_FILE
37671 #
37672
37673 case $INSTALL in
37674 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37675 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37676 esac
cristy73bd4a52010-10-05 11:24:23 +000037677 ac_MKDIR_P=$MKDIR_P
37678 case $MKDIR_P in
37679 [\\/$]* | ?:[\\/]* ) ;;
37680 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37681 esac
cristy3ed852e2009-09-05 21:47:34 +000037682_ACEOF
37683
37684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37685# If the template does not know about datarootdir, expand it.
37686# FIXME: This hack should be removed a few years after 2.60.
37687ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037688ac_sed_dataroot='
37689/datarootdir/ {
37690 p
37691 q
37692}
37693/@datadir@/p
37694/@docdir@/p
37695/@infodir@/p
37696/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037697/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037698case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37699*datarootdir*) ac_datarootdir_seen=yes;;
37700*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037702$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37703_ACEOF
37704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37705 ac_datarootdir_hack='
37706 s&@datadir@&$datadir&g
37707 s&@docdir@&$docdir&g
37708 s&@infodir@&$infodir&g
37709 s&@localedir@&$localedir&g
37710 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037711 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037712esac
37713_ACEOF
37714
37715# Neutralize VPATH when `$srcdir' = `.'.
37716# Shell code in configure.ac might set extrasub.
37717# FIXME: do we really want to maintain this feature?
37718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37719ac_sed_extra="$ac_vpsub
37720$extrasub
37721_ACEOF
37722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37723:t
37724/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37725s|@configure_input@|$ac_sed_conf_input|;t t
37726s&@top_builddir@&$ac_top_builddir_sub&;t t
37727s&@top_build_prefix@&$ac_top_build_prefix&;t t
37728s&@srcdir@&$ac_srcdir&;t t
37729s&@abs_srcdir@&$ac_abs_srcdir&;t t
37730s&@top_srcdir@&$ac_top_srcdir&;t t
37731s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37732s&@builddir@&$ac_builddir&;t t
37733s&@abs_builddir@&$ac_abs_builddir&;t t
37734s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37735s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037736s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037737$ac_datarootdir_hack
37738"
cristyda16f162011-02-19 23:52:17 +000037739eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37740 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037741
37742test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037743 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37744 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37745 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037747which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037748$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037749which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037750
cristyda16f162011-02-19 23:52:17 +000037751 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037752 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037753 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37754 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037755 esac \
cristy98dddb52010-11-04 00:30:15 +000037756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037757 ;;
37758 :H)
37759 #
37760 # CONFIG_HEADER
37761 #
37762 if test x"$ac_file" != x-; then
37763 {
37764 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037765 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37766 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037767 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037768 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037769 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037770$as_echo "$as_me: $ac_file is unchanged" >&6;}
37771 else
37772 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037773 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037774 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037775 fi
37776 else
37777 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037778 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037779 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037780 fi
cristy73bd4a52010-10-05 11:24:23 +000037781# Compute "$ac_file"'s index in $config_headers.
37782_am_arg="$ac_file"
37783_am_stamp_count=1
37784for _am_header in $config_headers :; do
37785 case $_am_header in
37786 $_am_arg | $_am_arg:* )
37787 break ;;
37788 * )
37789 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37790 esac
37791done
37792echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37793$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37794 X"$_am_arg" : 'X\(//\)[^/]' \| \
37795 X"$_am_arg" : 'X\(//\)$' \| \
37796 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37797$as_echo X"$_am_arg" |
37798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37799 s//\1/
37800 q
37801 }
37802 /^X\(\/\/\)[^/].*/{
37803 s//\1/
37804 q
37805 }
37806 /^X\(\/\/\)$/{
37807 s//\1/
37808 q
37809 }
37810 /^X\(\/\).*/{
37811 s//\1/
37812 q
37813 }
37814 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037815 ;;
37816
cristy8b350f62009-11-15 23:12:43 +000037817 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037818$as_echo "$as_me: executing $ac_file commands" >&6;}
37819 ;;
37820 esac
37821
37822
37823 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037824 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037825ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37826ac_prefix_conf_PKG=`echo MagickCore`
37827ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37828ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37829ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37830if test ".$ac_prefix_conf_INP" = "."; then
37831 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37832 case "$ac_file" in
37833 *.h) ac_prefix_conf_INP=$ac_file ;;
37834 *)
37835 esac
37836 test ".$ac_prefix_conf_INP" != "." && break
37837 done
37838fi
37839if test ".$ac_prefix_conf_INP" = "."; then
37840 case "$ac_prefix_conf_OUT" in
37841 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37842 ;;
37843 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37844 ;;
37845 *) ac_prefix_conf_INP=config.h
37846 ;;
37847 esac
37848fi
37849if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037850 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037851else
37852 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37853 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37854 fi fi
37855 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37856$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37857 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037858 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37859 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37860 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37861 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37862 $as_echo "#endif/" >> conftest.prefix
37863 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37864 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37865 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037866 # now executing _script on _DEF input to create _OUT output file
37867 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37868 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37869 echo ' ' >>$tmp/pconfig.h
37870 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37871
37872 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37873 echo ' ' >>$tmp/pconfig.h
37874 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37875 echo "#endif" >>$tmp/pconfig.h
37876 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37877 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37878$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37879 else
37880 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37881$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37882 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37883 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37884 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37885$as_echo X"$ac_prefix_conf_OUT" |
37886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37887 s//\1/
37888 q
37889 }
37890 /^X\(\/\/\)[^/].*/{
37891 s//\1/
37892 q
37893 }
37894 /^X\(\/\/\)$/{
37895 s//\1/
37896 q
37897 }
37898 /^X\(\/\).*/{
37899 s//\1/
37900 q
37901 }
37902 s/.*/./; q'`
37903 as_dir="$ac_dir"; as_fn_mkdir_p
37904 rm -f "$ac_prefix_conf_OUT"
37905 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37906 fi
37907 cp conftest.prefix _configs.sed
37908 else
cristy98dddb52010-11-04 00:30:15 +000037909 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 +000037910 fi
37911 rm -f conftest.*
37912fi
37913 ;;
37914 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037915 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037916 # are listed without --file. Let's play safe and only enable the eval
37917 # if we detect the quoting.
37918 case $CONFIG_FILES in
37919 *\'*) eval set x "$CONFIG_FILES" ;;
37920 *) set x $CONFIG_FILES ;;
37921 esac
37922 shift
37923 for mf
37924 do
37925 # Strip MF so we end up with the name of the file.
37926 mf=`echo "$mf" | sed -e 's/:.*$//'`
37927 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037928 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037929 # some people rename them; so instead we look at the file content.
37930 # Grep'ing the first line is not enough: some people post-process
37931 # each Makefile.in and add a new line on top of each file to say so.
37932 # Grep'ing the whole file is not good either: AIX grep has a line
37933 # limit of 2048, but all sed's we know have understand at least 4000.
37934 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37935 dirpart=`$as_dirname -- "$mf" ||
37936$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37937 X"$mf" : 'X\(//\)[^/]' \| \
37938 X"$mf" : 'X\(//\)$' \| \
37939 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37940$as_echo X"$mf" |
37941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37942 s//\1/
37943 q
37944 }
37945 /^X\(\/\/\)[^/].*/{
37946 s//\1/
37947 q
37948 }
37949 /^X\(\/\/\)$/{
37950 s//\1/
37951 q
37952 }
37953 /^X\(\/\).*/{
37954 s//\1/
37955 q
37956 }
37957 s/.*/./; q'`
37958 else
37959 continue
37960 fi
37961 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037962 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037963 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37964 test -z "$DEPDIR" && continue
37965 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000037966 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000037967 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037968 # Find all dependency output files, they are included files with
37969 # $(DEPDIR) in their names. We invoke sed twice because it is the
37970 # simplest approach to changing $(DEPDIR) to its actual value in the
37971 # expansion.
37972 for file in `sed -n "
37973 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037974 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037975 # Make sure the directory exists.
37976 test -f "$dirpart/$file" && continue
37977 fdir=`$as_dirname -- "$file" ||
37978$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37979 X"$file" : 'X\(//\)[^/]' \| \
37980 X"$file" : 'X\(//\)$' \| \
37981 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37982$as_echo X"$file" |
37983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37984 s//\1/
37985 q
37986 }
37987 /^X\(\/\/\)[^/].*/{
37988 s//\1/
37989 q
37990 }
37991 /^X\(\/\/\)$/{
37992 s//\1/
37993 q
37994 }
37995 /^X\(\/\).*/{
37996 s//\1/
37997 q
37998 }
37999 s/.*/./; q'`
38000 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38001 # echo "creating $dirpart/$file"
38002 echo '# dummy' > "$dirpart/$file"
38003 done
38004 done
38005}
38006 ;;
38007 "libtool":C)
38008
38009 # See if we are running on zsh, and set the options which allow our
38010 # commands through without removal of \ escapes.
38011 if test -n "${ZSH_VERSION+set}" ; then
38012 setopt NO_GLOB_SUBST
38013 fi
38014
38015 cfgfile="${ofile}T"
38016 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38017 $RM "$cfgfile"
38018
38019 cat <<_LT_EOF >> "$cfgfile"
38020#! $SHELL
38021
38022# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38023# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38024# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38025# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38026#
38027# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038028# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38029# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038030# Written by Gordon Matzigkeit, 1996
38031#
38032# This file is part of GNU Libtool.
38033#
38034# GNU Libtool is free software; you can redistribute it and/or
38035# modify it under the terms of the GNU General Public License as
38036# published by the Free Software Foundation; either version 2 of
38037# the License, or (at your option) any later version.
38038#
38039# As a special exception to the GNU General Public License,
38040# if you distribute this file as part of a program or library that
38041# is built using GNU Libtool, you may include this file under the
38042# same distribution terms that you use for the rest of that program.
38043#
38044# GNU Libtool is distributed in the hope that it will be useful,
38045# but WITHOUT ANY WARRANTY; without even the implied warranty of
38046# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38047# GNU General Public License for more details.
38048#
38049# You should have received a copy of the GNU General Public License
38050# along with GNU Libtool; see the file COPYING. If not, a copy
38051# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38052# obtained by writing to the Free Software Foundation, Inc.,
38053# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38054
38055
38056# The names of the tagged configurations supported by this script.
38057available_tags="CXX "
38058
38059# ### BEGIN LIBTOOL CONFIG
38060
38061# A sed program that does not truncate output.
38062SED=$lt_SED
38063
38064# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38065Xsed="\$SED -e 1s/^X//"
38066
38067# A grep program that handles long lines.
38068GREP=$lt_GREP
38069
38070# An ERE matcher.
38071EGREP=$lt_EGREP
38072
38073# A literal string matcher.
38074FGREP=$lt_FGREP
38075
cristy0c60a692010-11-04 01:09:47 +000038076# Shell to use when invoking shell scripts.
38077SHELL=$lt_SHELL
38078
38079# An echo program that protects backslashes.
38080ECHO=$lt_ECHO
38081
cristy73bd4a52010-10-05 11:24:23 +000038082# Which release of libtool.m4 was used?
38083macro_version=$macro_version
38084macro_revision=$macro_revision
38085
38086# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038087AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038088
38089# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038090DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038091
38092# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038093OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038094
38095# Whether or not to build shared libraries.
38096build_libtool_libs=$enable_shared
38097
38098# Whether or not to build static libraries.
38099build_old_libs=$enable_static
38100
38101# What type of objects to build.
38102pic_mode=$pic_mode
38103
38104# Whether or not to optimize for fast installation.
38105fast_install=$enable_fast_install
38106
cristy99bd5232011-12-07 14:38:20 +000038107# The PATH separator for the build system.
38108PATH_SEPARATOR=$lt_PATH_SEPARATOR
38109
cristy73bd4a52010-10-05 11:24:23 +000038110# The host system.
38111host_alias=$host_alias
38112host=$host
38113host_os=$host_os
38114
38115# The build system.
38116build_alias=$build_alias
38117build=$build
38118build_os=$build_os
38119
38120# A BSD- or MS-compatible name lister.
38121NM=$lt_NM
38122
38123# Whether we need soft or hard links.
38124LN_S=$lt_LN_S
38125
38126# What is the maximum length of a command?
38127max_cmd_len=$max_cmd_len
38128
38129# Object file suffix (normally "o").
38130objext=$ac_objext
38131
38132# Executable file suffix (normally "").
38133exeext=$exeext
38134
38135# whether the shell understands "unset".
38136lt_unset=$lt_unset
38137
38138# turn spaces into newlines.
38139SP2NL=$lt_lt_SP2NL
38140
38141# turn newlines into spaces.
38142NL2SP=$lt_lt_NL2SP
38143
cristyda16f162011-02-19 23:52:17 +000038144# convert \$build file names to \$host format.
38145to_host_file_cmd=$lt_cv_to_host_file_cmd
38146
38147# convert \$build files to toolchain format.
38148to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38149
cristy73bd4a52010-10-05 11:24:23 +000038150# Method to check whether dependent libraries are shared objects.
38151deplibs_check_method=$lt_deplibs_check_method
38152
cristyda16f162011-02-19 23:52:17 +000038153# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038154file_magic_cmd=$lt_file_magic_cmd
38155
cristyda16f162011-02-19 23:52:17 +000038156# How to find potential files when deplibs_check_method = "file_magic".
38157file_magic_glob=$lt_file_magic_glob
38158
38159# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38160want_nocaseglob=$lt_want_nocaseglob
38161
38162# Command to associate shared and link libraries.
38163sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38164
cristy73bd4a52010-10-05 11:24:23 +000038165# The archiver.
38166AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038167
38168# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038169AR_FLAGS=$lt_AR_FLAGS
38170
cristyda16f162011-02-19 23:52:17 +000038171# How to feed a file listing to the archiver.
38172archiver_list_spec=$lt_archiver_list_spec
38173
cristy73bd4a52010-10-05 11:24:23 +000038174# A symbol stripping program.
38175STRIP=$lt_STRIP
38176
38177# Commands used to install an old-style archive.
38178RANLIB=$lt_RANLIB
38179old_postinstall_cmds=$lt_old_postinstall_cmds
38180old_postuninstall_cmds=$lt_old_postuninstall_cmds
38181
cristy0c60a692010-11-04 01:09:47 +000038182# Whether to use a lock for old archive extraction.
38183lock_old_archive_extraction=$lock_old_archive_extraction
38184
cristy73bd4a52010-10-05 11:24:23 +000038185# A C compiler.
38186LTCC=$lt_CC
38187
38188# LTCC compiler flags.
38189LTCFLAGS=$lt_CFLAGS
38190
38191# Take the output of nm and produce a listing of raw symbols and C names.
38192global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38193
38194# Transform the output of nm in a proper C declaration.
38195global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38196
38197# Transform the output of nm in a C name address pair.
38198global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38199
38200# Transform the output of nm in a C name address pair when lib prefix is needed.
38201global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38202
cristyda16f162011-02-19 23:52:17 +000038203# Specify filename containing input files for \$NM.
38204nm_file_list_spec=$lt_nm_file_list_spec
38205
38206# The root where to search for dependent libraries,and in which our libraries should be installed.
38207lt_sysroot=$lt_sysroot
38208
cristy73bd4a52010-10-05 11:24:23 +000038209# The name of the directory that contains temporary libtool files.
38210objdir=$objdir
38211
cristy73bd4a52010-10-05 11:24:23 +000038212# Used to examine libraries when file_magic_cmd begins with "file".
38213MAGIC_CMD=$MAGIC_CMD
38214
38215# Must we lock files when doing compilation?
38216need_locks=$lt_need_locks
38217
cristyda16f162011-02-19 23:52:17 +000038218# Manifest tool.
38219MANIFEST_TOOL=$lt_MANIFEST_TOOL
38220
cristy73bd4a52010-10-05 11:24:23 +000038221# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38222DSYMUTIL=$lt_DSYMUTIL
38223
38224# Tool to change global to local symbols on Mac OS X.
38225NMEDIT=$lt_NMEDIT
38226
38227# Tool to manipulate fat objects and archives on Mac OS X.
38228LIPO=$lt_LIPO
38229
38230# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38231OTOOL=$lt_OTOOL
38232
38233# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38234OTOOL64=$lt_OTOOL64
38235
38236# Old archive suffix (normally "a").
38237libext=$libext
38238
38239# Shared library suffix (normally ".so").
38240shrext_cmds=$lt_shrext_cmds
38241
38242# The commands to extract the exported symbol list from a shared archive.
38243extract_expsyms_cmds=$lt_extract_expsyms_cmds
38244
38245# Variables whose values should be saved in libtool wrapper scripts and
38246# restored at link time.
38247variables_saved_for_relink=$lt_variables_saved_for_relink
38248
38249# Do we need the "lib" prefix for modules?
38250need_lib_prefix=$need_lib_prefix
38251
38252# Do we need a version for libraries?
38253need_version=$need_version
38254
38255# Library versioning type.
38256version_type=$version_type
38257
38258# Shared library runtime path variable.
38259runpath_var=$runpath_var
38260
38261# Shared library path variable.
38262shlibpath_var=$shlibpath_var
38263
38264# Is shlibpath searched before the hard-coded library search path?
38265shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38266
38267# Format of library name prefix.
38268libname_spec=$lt_libname_spec
38269
38270# List of archive names. First name is the real one, the rest are links.
38271# The last name is the one that the linker finds with -lNAME
38272library_names_spec=$lt_library_names_spec
38273
38274# The coded name of the library, if different from the real name.
38275soname_spec=$lt_soname_spec
38276
cristy0c60a692010-11-04 01:09:47 +000038277# Permission mode override for installation of shared libraries.
38278install_override_mode=$lt_install_override_mode
38279
cristy73bd4a52010-10-05 11:24:23 +000038280# Command to use after installation of a shared archive.
38281postinstall_cmds=$lt_postinstall_cmds
38282
38283# Command to use after uninstallation of a shared archive.
38284postuninstall_cmds=$lt_postuninstall_cmds
38285
38286# Commands used to finish a libtool library installation in a directory.
38287finish_cmds=$lt_finish_cmds
38288
38289# As "finish_cmds", except a single script fragment to be evaled but
38290# not shown.
38291finish_eval=$lt_finish_eval
38292
38293# Whether we should hardcode library paths into libraries.
38294hardcode_into_libs=$hardcode_into_libs
38295
38296# Compile-time system search path for libraries.
38297sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38298
38299# Run-time system search path for libraries.
38300sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38301
38302# Whether dlopen is supported.
38303dlopen_support=$enable_dlopen
38304
38305# Whether dlopen of programs is supported.
38306dlopen_self=$enable_dlopen_self
38307
38308# Whether dlopen of statically linked programs is supported.
38309dlopen_self_static=$enable_dlopen_self_static
38310
38311# Commands to strip libraries.
38312old_striplib=$lt_old_striplib
38313striplib=$lt_striplib
38314
38315
38316# The linker used to build libraries.
38317LD=$lt_LD
38318
cristy0c60a692010-11-04 01:09:47 +000038319# How to create reloadable object files.
38320reload_flag=$lt_reload_flag
38321reload_cmds=$lt_reload_cmds
38322
cristy73bd4a52010-10-05 11:24:23 +000038323# Commands used to build an old-style archive.
38324old_archive_cmds=$lt_old_archive_cmds
38325
38326# A language specific compiler.
38327CC=$lt_compiler
38328
38329# Is the compiler the GNU compiler?
38330with_gcc=$GCC
38331
38332# Compiler flag to turn off builtin functions.
38333no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38334
cristy73bd4a52010-10-05 11:24:23 +000038335# Additional compiler flags for building library objects.
38336pic_flag=$lt_lt_prog_compiler_pic
38337
cristyda16f162011-02-19 23:52:17 +000038338# How to pass a linker flag through the compiler.
38339wl=$lt_lt_prog_compiler_wl
38340
cristy73bd4a52010-10-05 11:24:23 +000038341# Compiler flag to prevent dynamic linking.
38342link_static_flag=$lt_lt_prog_compiler_static
38343
38344# Does compiler simultaneously support -c and -o options?
38345compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38346
38347# Whether or not to add -lc for building shared libraries.
38348build_libtool_need_lc=$archive_cmds_need_lc
38349
38350# Whether or not to disallow shared libs when runtime libs are static.
38351allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38352
38353# Compiler flag to allow reflexive dlopens.
38354export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38355
38356# Compiler flag to generate shared objects directly from archives.
38357whole_archive_flag_spec=$lt_whole_archive_flag_spec
38358
38359# Whether the compiler copes with passing no objects directly.
38360compiler_needs_object=$lt_compiler_needs_object
38361
38362# Create an old-style archive from a shared archive.
38363old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38364
38365# Create a temporary old-style archive to link instead of a shared archive.
38366old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38367
38368# Commands used to build a shared archive.
38369archive_cmds=$lt_archive_cmds
38370archive_expsym_cmds=$lt_archive_expsym_cmds
38371
38372# Commands used to build a loadable module if different from building
38373# a shared archive.
38374module_cmds=$lt_module_cmds
38375module_expsym_cmds=$lt_module_expsym_cmds
38376
38377# Whether we are building with GNU ld or not.
38378with_gnu_ld=$lt_with_gnu_ld
38379
38380# Flag that allows shared libraries with undefined symbols to be built.
38381allow_undefined_flag=$lt_allow_undefined_flag
38382
38383# Flag that enforces no undefined symbols.
38384no_undefined_flag=$lt_no_undefined_flag
38385
38386# Flag to hardcode \$libdir into a binary during linking.
38387# This must work even if \$libdir does not exist
38388hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38389
cristy73bd4a52010-10-05 11:24:23 +000038390# Whether we need a single "-rpath" flag with a separated argument.
38391hardcode_libdir_separator=$lt_hardcode_libdir_separator
38392
38393# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38394# DIR into the resulting binary.
38395hardcode_direct=$hardcode_direct
38396
38397# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38398# DIR into the resulting binary and the resulting library dependency is
38399# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38400# library is relocated.
38401hardcode_direct_absolute=$hardcode_direct_absolute
38402
38403# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38404# into the resulting binary.
38405hardcode_minus_L=$hardcode_minus_L
38406
38407# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38408# into the resulting binary.
38409hardcode_shlibpath_var=$hardcode_shlibpath_var
38410
38411# Set to "yes" if building a shared library automatically hardcodes DIR
38412# into the library and all subsequent libraries and executables linked
38413# against it.
38414hardcode_automatic=$hardcode_automatic
38415
38416# Set to yes if linker adds runtime paths of dependent libraries
38417# to runtime path list.
38418inherit_rpath=$inherit_rpath
38419
38420# Whether libtool must link a program against all its dependency libraries.
38421link_all_deplibs=$link_all_deplibs
38422
cristy73bd4a52010-10-05 11:24:23 +000038423# Set to "yes" if exported symbols are required.
38424always_export_symbols=$always_export_symbols
38425
38426# The commands to list exported symbols.
38427export_symbols_cmds=$lt_export_symbols_cmds
38428
38429# Symbols that should not be listed in the preloaded symbols.
38430exclude_expsyms=$lt_exclude_expsyms
38431
38432# Symbols that must always be exported.
38433include_expsyms=$lt_include_expsyms
38434
38435# Commands necessary for linking programs (against libraries) with templates.
38436prelink_cmds=$lt_prelink_cmds
38437
cristyda16f162011-02-19 23:52:17 +000038438# Commands necessary for finishing linking programs.
38439postlink_cmds=$lt_postlink_cmds
38440
cristy73bd4a52010-10-05 11:24:23 +000038441# Specify filename containing input files.
38442file_list_spec=$lt_file_list_spec
38443
38444# How to hardcode a shared library path into an executable.
38445hardcode_action=$hardcode_action
38446
38447# The directories searched by this compiler when creating a shared library.
38448compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38449
38450# Dependencies to place before and after the objects being linked to
38451# create a shared library.
38452predep_objects=$lt_predep_objects
38453postdep_objects=$lt_postdep_objects
38454predeps=$lt_predeps
38455postdeps=$lt_postdeps
38456
38457# The library search path used internally by the compiler when linking
38458# a shared library.
38459compiler_lib_search_path=$lt_compiler_lib_search_path
38460
38461# ### END LIBTOOL CONFIG
38462
38463_LT_EOF
38464
38465 case $host_os in
38466 aix3*)
38467 cat <<\_LT_EOF >> "$cfgfile"
38468# AIX sometimes has problems with the GCC collect2 program. For some
38469# reason, if we set the COLLECT_NAMES environment variable, the problems
38470# vanish in a puff of smoke.
38471if test "X${COLLECT_NAMES+set}" != Xset; then
38472 COLLECT_NAMES=
38473 export COLLECT_NAMES
38474fi
38475_LT_EOF
38476 ;;
38477 esac
38478
38479
38480ltmain="$ac_aux_dir/ltmain.sh"
38481
38482
38483 # We use sed instead of cat because bash on DJGPP gets confused if
38484 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38485 # text mode, it properly converts lines to CR/LF. This bash problem
38486 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038487 sed '$q' "$ltmain" >> "$cfgfile" \
38488 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038489
cristyda16f162011-02-19 23:52:17 +000038490 if test x"$xsi_shell" = xyes; then
38491 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38492func_dirname ()\
38493{\
38494\ case ${1} in\
38495\ */*) func_dirname_result="${1%/*}${2}" ;;\
38496\ * ) func_dirname_result="${3}" ;;\
38497\ esac\
38498} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38499 && mv -f "$cfgfile.tmp" "$cfgfile" \
38500 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38501test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038502
38503
cristyda16f162011-02-19 23:52:17 +000038504 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38505func_basename ()\
38506{\
38507\ func_basename_result="${1##*/}"\
38508} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38509 && mv -f "$cfgfile.tmp" "$cfgfile" \
38510 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38511test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038512
38513
cristyda16f162011-02-19 23:52:17 +000038514 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38515func_dirname_and_basename ()\
38516{\
38517\ case ${1} in\
38518\ */*) func_dirname_result="${1%/*}${2}" ;;\
38519\ * ) func_dirname_result="${3}" ;;\
38520\ esac\
38521\ func_basename_result="${1##*/}"\
38522} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38523 && mv -f "$cfgfile.tmp" "$cfgfile" \
38524 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38525test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038526
cristyda16f162011-02-19 23:52:17 +000038527
38528 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38529func_stripname ()\
38530{\
38531\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38532\ # positional parameters, so assign one to ordinary parameter first.\
38533\ func_stripname_result=${3}\
38534\ func_stripname_result=${func_stripname_result#"${1}"}\
38535\ func_stripname_result=${func_stripname_result%"${2}"}\
38536} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38537 && mv -f "$cfgfile.tmp" "$cfgfile" \
38538 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38539test 0 -eq $? || _lt_function_replace_fail=:
38540
38541
38542 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38543func_split_long_opt ()\
38544{\
38545\ func_split_long_opt_name=${1%%=*}\
38546\ func_split_long_opt_arg=${1#*=}\
38547} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38548 && mv -f "$cfgfile.tmp" "$cfgfile" \
38549 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38550test 0 -eq $? || _lt_function_replace_fail=:
38551
38552
38553 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38554func_split_short_opt ()\
38555{\
38556\ func_split_short_opt_arg=${1#??}\
38557\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38558} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38559 && mv -f "$cfgfile.tmp" "$cfgfile" \
38560 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38561test 0 -eq $? || _lt_function_replace_fail=:
38562
38563
38564 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38565func_lo2o ()\
38566{\
38567\ case ${1} in\
38568\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38569\ *) func_lo2o_result=${1} ;;\
38570\ esac\
38571} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38572 && mv -f "$cfgfile.tmp" "$cfgfile" \
38573 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38574test 0 -eq $? || _lt_function_replace_fail=:
38575
38576
38577 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38578func_xform ()\
38579{\
38580 func_xform_result=${1%.*}.lo\
38581} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38582 && mv -f "$cfgfile.tmp" "$cfgfile" \
38583 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38584test 0 -eq $? || _lt_function_replace_fail=:
38585
38586
38587 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38588func_arith ()\
38589{\
38590 func_arith_result=$(( $* ))\
38591} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38592 && mv -f "$cfgfile.tmp" "$cfgfile" \
38593 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38594test 0 -eq $? || _lt_function_replace_fail=:
38595
38596
38597 sed -e '/^func_len ()$/,/^} # func_len /c\
38598func_len ()\
38599{\
38600 func_len_result=${#1}\
38601} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38602 && mv -f "$cfgfile.tmp" "$cfgfile" \
38603 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38604test 0 -eq $? || _lt_function_replace_fail=:
38605
38606fi
38607
38608if test x"$lt_shell_append" = xyes; then
38609 sed -e '/^func_append ()$/,/^} # func_append /c\
38610func_append ()\
38611{\
38612 eval "${1}+=\\${2}"\
38613} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38614 && mv -f "$cfgfile.tmp" "$cfgfile" \
38615 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38616test 0 -eq $? || _lt_function_replace_fail=:
38617
38618
38619 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38620func_append_quoted ()\
38621{\
38622\ func_quote_for_eval "${2}"\
38623\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38624} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38625 && mv -f "$cfgfile.tmp" "$cfgfile" \
38626 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38627test 0 -eq $? || _lt_function_replace_fail=:
38628
38629
38630 # Save a `func_append' function call where possible by direct use of '+='
38631 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38632 && mv -f "$cfgfile.tmp" "$cfgfile" \
38633 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38634 test 0 -eq $? || _lt_function_replace_fail=:
38635else
38636 # Save a `func_append' function call even when '+=' is not available
38637 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38638 && mv -f "$cfgfile.tmp" "$cfgfile" \
38639 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38640 test 0 -eq $? || _lt_function_replace_fail=:
38641fi
38642
38643if test x"$_lt_function_replace_fail" = x":"; then
38644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38645$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38646fi
38647
38648
38649 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038650 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38651 chmod +x "$ofile"
38652
38653
38654 cat <<_LT_EOF >> "$ofile"
38655
38656# ### BEGIN LIBTOOL TAG CONFIG: CXX
38657
38658# The linker used to build libraries.
38659LD=$lt_LD_CXX
38660
cristy0c60a692010-11-04 01:09:47 +000038661# How to create reloadable object files.
38662reload_flag=$lt_reload_flag_CXX
38663reload_cmds=$lt_reload_cmds_CXX
38664
cristy73bd4a52010-10-05 11:24:23 +000038665# Commands used to build an old-style archive.
38666old_archive_cmds=$lt_old_archive_cmds_CXX
38667
38668# A language specific compiler.
38669CC=$lt_compiler_CXX
38670
38671# Is the compiler the GNU compiler?
38672with_gcc=$GCC_CXX
38673
38674# Compiler flag to turn off builtin functions.
38675no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38676
cristy73bd4a52010-10-05 11:24:23 +000038677# Additional compiler flags for building library objects.
38678pic_flag=$lt_lt_prog_compiler_pic_CXX
38679
cristyda16f162011-02-19 23:52:17 +000038680# How to pass a linker flag through the compiler.
38681wl=$lt_lt_prog_compiler_wl_CXX
38682
cristy73bd4a52010-10-05 11:24:23 +000038683# Compiler flag to prevent dynamic linking.
38684link_static_flag=$lt_lt_prog_compiler_static_CXX
38685
38686# Does compiler simultaneously support -c and -o options?
38687compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38688
38689# Whether or not to add -lc for building shared libraries.
38690build_libtool_need_lc=$archive_cmds_need_lc_CXX
38691
38692# Whether or not to disallow shared libs when runtime libs are static.
38693allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38694
38695# Compiler flag to allow reflexive dlopens.
38696export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38697
38698# Compiler flag to generate shared objects directly from archives.
38699whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38700
38701# Whether the compiler copes with passing no objects directly.
38702compiler_needs_object=$lt_compiler_needs_object_CXX
38703
38704# Create an old-style archive from a shared archive.
38705old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38706
38707# Create a temporary old-style archive to link instead of a shared archive.
38708old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38709
38710# Commands used to build a shared archive.
38711archive_cmds=$lt_archive_cmds_CXX
38712archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38713
38714# Commands used to build a loadable module if different from building
38715# a shared archive.
38716module_cmds=$lt_module_cmds_CXX
38717module_expsym_cmds=$lt_module_expsym_cmds_CXX
38718
38719# Whether we are building with GNU ld or not.
38720with_gnu_ld=$lt_with_gnu_ld_CXX
38721
38722# Flag that allows shared libraries with undefined symbols to be built.
38723allow_undefined_flag=$lt_allow_undefined_flag_CXX
38724
38725# Flag that enforces no undefined symbols.
38726no_undefined_flag=$lt_no_undefined_flag_CXX
38727
38728# Flag to hardcode \$libdir into a binary during linking.
38729# This must work even if \$libdir does not exist
38730hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38731
cristy73bd4a52010-10-05 11:24:23 +000038732# Whether we need a single "-rpath" flag with a separated argument.
38733hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38734
38735# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38736# DIR into the resulting binary.
38737hardcode_direct=$hardcode_direct_CXX
38738
38739# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38740# DIR into the resulting binary and the resulting library dependency is
38741# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38742# library is relocated.
38743hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38744
38745# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38746# into the resulting binary.
38747hardcode_minus_L=$hardcode_minus_L_CXX
38748
38749# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38750# into the resulting binary.
38751hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38752
38753# Set to "yes" if building a shared library automatically hardcodes DIR
38754# into the library and all subsequent libraries and executables linked
38755# against it.
38756hardcode_automatic=$hardcode_automatic_CXX
38757
38758# Set to yes if linker adds runtime paths of dependent libraries
38759# to runtime path list.
38760inherit_rpath=$inherit_rpath_CXX
38761
38762# Whether libtool must link a program against all its dependency libraries.
38763link_all_deplibs=$link_all_deplibs_CXX
38764
cristy73bd4a52010-10-05 11:24:23 +000038765# Set to "yes" if exported symbols are required.
38766always_export_symbols=$always_export_symbols_CXX
38767
38768# The commands to list exported symbols.
38769export_symbols_cmds=$lt_export_symbols_cmds_CXX
38770
38771# Symbols that should not be listed in the preloaded symbols.
38772exclude_expsyms=$lt_exclude_expsyms_CXX
38773
38774# Symbols that must always be exported.
38775include_expsyms=$lt_include_expsyms_CXX
38776
38777# Commands necessary for linking programs (against libraries) with templates.
38778prelink_cmds=$lt_prelink_cmds_CXX
38779
cristyda16f162011-02-19 23:52:17 +000038780# Commands necessary for finishing linking programs.
38781postlink_cmds=$lt_postlink_cmds_CXX
38782
cristy73bd4a52010-10-05 11:24:23 +000038783# Specify filename containing input files.
38784file_list_spec=$lt_file_list_spec_CXX
38785
38786# How to hardcode a shared library path into an executable.
38787hardcode_action=$hardcode_action_CXX
38788
38789# The directories searched by this compiler when creating a shared library.
38790compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38791
38792# Dependencies to place before and after the objects being linked to
38793# create a shared library.
38794predep_objects=$lt_predep_objects_CXX
38795postdep_objects=$lt_postdep_objects_CXX
38796predeps=$lt_predeps_CXX
38797postdeps=$lt_postdeps_CXX
38798
38799# The library search path used internally by the compiler when linking
38800# a shared library.
38801compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38802
38803# ### END LIBTOOL TAG CONFIG: CXX
38804_LT_EOF
38805
38806 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038807 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038808 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038809 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038810 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38811 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38812
38813 esac
38814done # for ac_tag
38815
38816
cristy8b350f62009-11-15 23:12:43 +000038817as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038818_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038819ac_clean_files=$ac_clean_files_save
38820
38821test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038822 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038823
38824
38825# configure is writing to config.log, and then calls config.status.
38826# config.status does its own redirection, appending to config.log.
38827# Unfortunately, on DOS this fails, as config.log is still kept open
38828# by configure, so config.status won't be able to write to it; its
38829# output is simply discarded. So we exec the FD to /dev/null,
38830# effectively closing config.log, so it can be properly (re)opened and
38831# appended to by config.status. When coming back to configure, we
38832# need to make the FD available again.
38833if test "$no_create" != yes; then
38834 ac_cs_success=:
38835 ac_config_status_args=
38836 test "$silent" = yes &&
38837 ac_config_status_args="$ac_config_status_args --quiet"
38838 exec 5>/dev/null
38839 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38840 exec 5>>config.log
38841 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38842 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038843 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038844fi
38845if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038847$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38848fi
38849
38850
38851rm -f magick-version
38852
cristy430a7312010-01-21 20:44:04 +000038853result_dejavu_font_dir='none'
38854if test "${dejavu_font_dir}x" != 'x'; then
38855 result_dejavu_font_dir=$dejavu_font_dir
38856fi
38857
cristy3ed852e2009-09-05 21:47:34 +000038858result_ghostscript_font_dir='none'
38859if test "${ghostscript_font_dir}x" != 'x'; then
38860 result_ghostscript_font_dir=$ghostscript_font_dir
38861fi
38862
38863result_windows_font_dir='none'
38864if test "${windows_font_dir}x" != 'x'; then
38865 result_windows_font_dir=${windows_font_dir}
38866fi
38867
cristyad38abe2012-12-23 23:03:21 +000038868{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038869ImageMagick is configured as follows. Please verify that this configuration
38870matches your expectations.
38871
38872Host system type: $host
38873Build system type: $build
38874
38875 Option Value
38876-------------------------------------------------------------------------------
38877Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38878Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038879Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038880GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38881Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38882High Dynamic Range Imagery
38883 --enable-hdri=$enable_hdri $enable_hdri
38884
38885Delegate Configuration:
38886BZLIB --with-bzlib=$with_bzlib $have_bzlib
38887Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038888Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038889DJVU --with-djvu=$with_djvu $have_djvu
38890DPS --with-dps=$with_dps $have_dps
38891FFTW --with-fftw=$with_fftw $have_fftw
38892FlashPIX --with-fpx=$with_fpx $have_fpx
38893FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38894FreeType --with-freetype=$with_freetype $have_freetype
38895GhostPCL None $PCLDelegate ($PCLVersion)
38896GhostXPS None $XPSDelegate ($XPSVersion)
38897Ghostscript None $PSDelegate ($GSVersion)
38898Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38899Ghostscript lib --with-gslib=$with_gslib $have_gslib
38900Graphviz --with-gvc=$with_gvc $have_gvc
38901JBIG --with-jbig=$with_jbig $have_jbig
38902JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38903JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038904LCMS v1 --with-lcms=$with_lcms $have_lcms
38905LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000038906LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000038907LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038908LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038909LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038910Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38911OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038912PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038913PERL --with-perl=$with_perl $have_perl
38914PNG --with-png=$with_png $have_png
38915RSVG --with-rsvg=$with_rsvg $have_rsvg
38916TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038917WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038918Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038919WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038920X11 --with-x=$with_x $have_x
38921XML --with-xml=$with_xml $have_xml
38922ZLIB --with-zlib=$with_zlib $have_zlib
38923
38924X11 Configuration:
38925 X_CFLAGS = $X_CFLAGS
38926 X_PRE_LIBS = $X_PRE_LIBS
38927 X_LIBS = $X_LIBS
38928 X_EXTRA_LIBS = $X_EXTRA_LIBS
38929
38930Options used to compile and link:
38931 PREFIX = $PREFIX_DIR
38932 EXEC-PREFIX = $EXEC_PREFIX_DIR
38933 VERSION = $PACKAGE_VERSION
38934 CC = $CC
38935 CFLAGS = $CFLAGS
cristy03ae99f2014-04-28 16:34:55 +000038936 CPPFLAGS = $CPPFLAGS
38937 PCFLAGS = $PCFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038938 DEFS = $DEFS
38939 LDFLAGS = $LDFLAGS
cristy03ae99f2014-04-28 16:34:55 +000038940 LIBS = $LIBS
cristy3ed852e2009-09-05 21:47:34 +000038941 CXX = $CXX
38942 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038943 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038944 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038945" >&5
cristyad38abe2012-12-23 23:03:21 +000038946$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038947ImageMagick is configured as follows. Please verify that this configuration
38948matches your expectations.
38949
38950Host system type: $host
38951Build system type: $build
38952
38953 Option Value
38954-------------------------------------------------------------------------------
38955Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38956Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038957Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038958GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38959Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38960High Dynamic Range Imagery
38961 --enable-hdri=$enable_hdri $enable_hdri
38962
38963Delegate Configuration:
38964BZLIB --with-bzlib=$with_bzlib $have_bzlib
38965Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038966Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038967DJVU --with-djvu=$with_djvu $have_djvu
38968DPS --with-dps=$with_dps $have_dps
38969FFTW --with-fftw=$with_fftw $have_fftw
38970FlashPIX --with-fpx=$with_fpx $have_fpx
38971FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38972FreeType --with-freetype=$with_freetype $have_freetype
38973GhostPCL None $PCLDelegate ($PCLVersion)
38974GhostXPS None $XPSDelegate ($XPSVersion)
38975Ghostscript None $PSDelegate ($GSVersion)
38976Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38977Ghostscript lib --with-gslib=$with_gslib $have_gslib
38978Graphviz --with-gvc=$with_gvc $have_gvc
38979JBIG --with-jbig=$with_jbig $have_jbig
38980JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38981JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038982LCMS v1 --with-lcms=$with_lcms $have_lcms
38983LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000038984LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000038985LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038986LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038987LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038988Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38989OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038990PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038991PERL --with-perl=$with_perl $have_perl
38992PNG --with-png=$with_png $have_png
38993RSVG --with-rsvg=$with_rsvg $have_rsvg
38994TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038995WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038996Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038997WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038998X11 --with-x=$with_x $have_x
38999XML --with-xml=$with_xml $have_xml
39000ZLIB --with-zlib=$with_zlib $have_zlib
39001
39002X11 Configuration:
39003 X_CFLAGS = $X_CFLAGS
39004 X_PRE_LIBS = $X_PRE_LIBS
39005 X_LIBS = $X_LIBS
39006 X_EXTRA_LIBS = $X_EXTRA_LIBS
39007
39008Options used to compile and link:
39009 PREFIX = $PREFIX_DIR
39010 EXEC-PREFIX = $EXEC_PREFIX_DIR
39011 VERSION = $PACKAGE_VERSION
39012 CC = $CC
39013 CFLAGS = $CFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039014 CPPFLAGS = $CPPFLAGS
39015 PCFLAGS = $PCFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039016 DEFS = $DEFS
39017 LDFLAGS = $LDFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039018 LIBS = $LIBS
cristy3ed852e2009-09-05 21:47:34 +000039019 CXX = $CXX
39020 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039021 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039022 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000039023" >&6; }