blob: ebabb38a6cc423b13d6418f897d16a1024460b76 [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
cristy3ed852e2009-09-05 21:47:34 +0000742DOCUMENTATION_PATH
743FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000744FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000745CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000746CODER_DIRNAME
747MODULES_PATH
748MODULES_RELATIVE_PATH
749MODULES_DIRNAME
750MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000751LIB_BIN_DIR_PATH
752LIB_BIN_DIR_RELATIVE_PATH
753LIB_BIN_DIR
754LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000755LIBRARY_PATH
756EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000757INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000758INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000759PERLMAINCC
760XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000761XML_DELEGATE_FALSE
762XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000763xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000764WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000765WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766WMF_DELEGATE_FALSE
767WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000768WEBP_LIBS
769WEBP_DELEGATE_FALSE
770WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000771TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772TIFF_DELEGATE_FALSE
773TIFF_DELEGATE_TRUE
774CAIRO_DELEGATE_FALSE
775CAIRO_DELEGATE_TRUE
776RSVG_DELEGATE_FALSE
777RSVG_DELEGATE_TRUE
778CAIRO_SVG_LIBS
779CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000780RSVG_LIBS
781RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000782PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000783PNG_DELEGATE_FALSE
784PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000785PANGOCAIRO_DELEGATE_FALSE
786PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000787PANGO_DELEGATE_FALSE
788PANGO_DELEGATE_TRUE
789PANGO_LIBS
790PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000791OPENEXR_DELEGATE_FALSE
792OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000793OPENEXR_LIBS
794OPENEXR_CFLAGS
cristy854c9cf2013-08-10 21:03:06 +0000795MUPDF_LIBS
796MUPDF_DELEGATE_FALSE
797MUPDF_DELEGATE_TRUE
cristyfbb0ef02010-12-19 02:32:11 +0000798LZMA_DELEGATE_FALSE
799LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000800LZMA_LIBS
801LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000802LQR_DELEGATE_FALSE
803LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000804LQR_LIBS
805LQR_CFLAGS
806LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807LCMS_DELEGATE_FALSE
808LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810JP2_DELEGATE_FALSE
811JP2_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
cristy3ed852e2009-09-05 21:47:34 +0000954LN_S
cristy3ed852e2009-09-05 21:47:34 +0000955LD
cristy73bd4a52010-10-05 11:24:23 +0000956FGREP
957SED
958am__fastdepCXX_FALSE
959am__fastdepCXX_TRUE
960CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000961ac_ct_CXX
962CXXFLAGS
963CXX
cristya0b81c32010-01-22 02:54:33 +0000964EGREP
965GREP
966CPP
cristy73bd4a52010-10-05 11:24:23 +0000967am__fastdepCC_FALSE
968am__fastdepCC_TRUE
969CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000970am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000971AMDEPBACKSLASH
972AMDEP_FALSE
973AMDEP_TRUE
974am__quote
975am__include
976DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000977OBJEXT
978EXEEXT
979ac_ct_CC
980CPPFLAGS
981LDFLAGS
982CFLAGS
983CC
984DIRSEP
985MAGICK_FILTER_MODULE_PATH
986MAGICK_CONFIGURE_BUILD_PATH
987MAGICK_CONFIGURE_SRC_PATH
988MAGICK_CODER_MODULE_PATH
989MAN_DIR
990INFO_DIR
991PERSISTINCLUDE_DIR
992INCLUDE_DIR
993LIB_DIR
994LOCALSTATE_DIR
995SHAREDSTATE_DIR
996SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000997DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000998DATA_DIR
999LIBEXEC_DIR
1000SBIN_DIR
1001BIN_DIR
1002EXEC_PREFIX_DIR
1003PREFIX_DIR
1004CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001005MAGICKPP_LIB_VERSION_TEXT
1006MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001007MAGICK_LIB_VERSION_NUMBER
1008MAGICK_LIB_VERSION_TEXT
1009MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001010AM_BACKSLASH
1011AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001012AM_DEFAULT_V
1013AM_V
cristy73bd4a52010-10-05 11:24:23 +00001014am__untar
1015am__tar
1016AMTAR
1017am__leading_dot
1018SET_MAKE
1019AWK
1020mkdir_p
1021MKDIR_P
1022INSTALL_STRIP_PROGRAM
1023STRIP
1024install_sh
1025MAKEINFO
1026AUTOHEADER
1027AUTOMAKE
1028AUTOCONF
1029ACLOCAL
1030VERSION
1031PACKAGE
1032CYGPATH_W
1033am__isrc
1034INSTALL_DATA
1035INSTALL_SCRIPT
1036INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001037PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001038PACKAGE_RELEASE_DATE
1039PACKAGE_LIB_VERSION_NUMBER
1040PACKAGE_LIB_VERSION
1041PACKAGE_CHANGE_DATE
1042PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001043PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001044MAGICKPP_LIBRARY_VERSION_INFO
1045MAGICKPP_LIBRARY_CURRENT_MIN
1046MAGICKPP_LIBRARY_AGE
1047MAGICKPP_LIBRARY_REVISION
1048MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001049MAGICK_LIBRARY_VERSION_INFO
1050MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001051MAGICK_LIBRARY_AGE
1052MAGICK_LIBRARY_REVISION
1053MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001054MAGICK_SVN_REVISION
1055MAGICK_VERSION
1056MAGICK_PATCHLEVEL_VERSION
1057MAGICK_MICRO_VERSION
1058MAGICK_MINOR_VERSION
1059MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001060MAGICK_TARGET_OS
1061MAGICK_TARGET_VENDOR
1062MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001063target_os
1064target_vendor
1065target_cpu
1066target
1067host_os
1068host_vendor
1069host_cpu
1070host
1071build_os
1072build_vendor
1073build_cpu
1074build
1075CONFIGURE_ARGS
1076DISTCHECK_CONFIG_FLAGS
1077target_alias
1078host_alias
1079build_alias
1080LIBS
1081ECHO_T
1082ECHO_N
1083ECHO_C
1084DEFS
1085mandir
1086localedir
1087libdir
1088psdir
1089pdfdir
1090dvidir
1091htmldir
1092infodir
1093docdir
1094oldincludedir
1095includedir
1096localstatedir
1097sharedstatedir
1098sysconfdir
1099datadir
1100datarootdir
1101libexecdir
1102sbindir
1103bindir
1104program_transform_name
1105prefix
1106exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001107PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001108PACKAGE_BUGREPORT
1109PACKAGE_STRING
1110PACKAGE_VERSION
1111PACKAGE_TARNAME
1112PACKAGE_NAME
1113PATH_SEPARATOR
1114SHELL'
1115ac_subst_files=''
1116ac_user_opts='
1117enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001118enable_silent_rules
1119enable_dependency_tracking
1120with_gnu_ld
1121with_dmalloc
cristy9b86f202012-11-28 21:55:35 +00001122enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001123enable_bounds_checking
1124enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001125with_includearch_dir
1126with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001127with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001128with_threads
1129enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001130enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001131enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001132enable_shared
1133enable_static
1134with_pic
1135enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001136with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001137enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001138with_modules
1139enable_delegate_build
1140enable_deprecated
1141enable_installed
1142enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001143enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001144enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001145enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001146enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001147enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001148enable_ccmalloc
1149enable_efence
1150enable_prof
1151enable_gprof
1152enable_gcov
1153with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001154enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001155with_quantum_depth
1156with_cache
1157with_frozenpaths
1158with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001159with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001160with_perl
1161with_perl_options
1162with_umem
1163with_libstdc
1164with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001165with_x
cristy3ed852e2009-09-05 21:47:34 +00001166with_zlib
1167with_autotrace
1168with_dps
1169with_djvu
cristy430a7312010-01-21 20:44:04 +00001170with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001171with_fftw
1172with_fpx
1173with_fontconfig
1174with_freetype
1175with_gslib
1176with_fontpath
1177with_gs_font_dir
1178with_gvc
1179with_jbig
1180with_jpeg
1181with_jp2
1182with_lcms
cristy71203402010-06-18 13:12:03 +00001183with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001184with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001185with_lzma
cristy854c9cf2013-08-10 21:03:06 +00001186with_mupdf
cristy3ed852e2009-09-05 21:47:34 +00001187with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001188with_pango
cristy3ed852e2009-09-05 21:47:34 +00001189with_png
1190with_rsvg
1191with_tiff
cristyb1860752011-03-14 00:27:46 +00001192with_webp
cristy3ed852e2009-09-05 21:47:34 +00001193with_windows_font_dir
1194with_wmf
1195with_xml
1196'
1197 ac_precious_vars='build_alias
1198host_alias
1199target_alias
1200CC
1201CFLAGS
1202LDFLAGS
1203LIBS
1204CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001205CPP
cristy3ed852e2009-09-05 21:47:34 +00001206CXX
1207CXXFLAGS
1208CCC
cristy73bd4a52010-10-05 11:24:23 +00001209PKG_CONFIG
1210CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001211XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001212AUTOTRACE_CFLAGS
1213AUTOTRACE_LIBS
1214FONTCONFIG_CFLAGS
1215FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001216FREETYPE_CFLAGS
1217FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001218GVC_CFLAGS
1219GVC_LIBS
1220LQR_CFLAGS
1221LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001222LZMA_CFLAGS
1223LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001224OPENEXR_CFLAGS
1225OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001226PANGO_CFLAGS
1227PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001228RSVG_CFLAGS
1229RSVG_LIBS
1230CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001231CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001232
1233
1234# Initialize some variables set by options.
1235ac_init_help=
1236ac_init_version=false
1237ac_unrecognized_opts=
1238ac_unrecognized_sep=
1239# The variables have the same names as the options, with
1240# dashes changed to underlines.
1241cache_file=/dev/null
1242exec_prefix=NONE
1243no_create=
1244no_recursion=
1245prefix=NONE
1246program_prefix=NONE
1247program_suffix=NONE
1248program_transform_name=s,x,x,
1249silent=
1250site=
1251srcdir=
1252verbose=
1253x_includes=NONE
1254x_libraries=NONE
1255
1256# Installation directory options.
1257# These are left unexpanded so users can "make install exec_prefix=/foo"
1258# and all the variables that are supposed to be based on exec_prefix
1259# by default will actually change.
1260# Use braces instead of parens because sh, perl, etc. also accept them.
1261# (The list follows the same order as the GNU Coding Standards.)
1262bindir='${exec_prefix}/bin'
1263sbindir='${exec_prefix}/sbin'
1264libexecdir='${exec_prefix}/libexec'
1265datarootdir='${prefix}/share'
1266datadir='${datarootdir}'
1267sysconfdir='${prefix}/etc'
1268sharedstatedir='${prefix}/com'
1269localstatedir='${prefix}/var'
1270includedir='${prefix}/include'
1271oldincludedir='/usr/include'
1272docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1273infodir='${datarootdir}/info'
1274htmldir='${docdir}'
1275dvidir='${docdir}'
1276pdfdir='${docdir}'
1277psdir='${docdir}'
1278libdir='${exec_prefix}/lib'
1279localedir='${datarootdir}/locale'
1280mandir='${datarootdir}/man'
1281
1282ac_prev=
1283ac_dashdash=
1284for ac_option
1285do
1286 # If the previous option needs an argument, assign it.
1287 if test -n "$ac_prev"; then
1288 eval $ac_prev=\$ac_option
1289 ac_prev=
1290 continue
1291 fi
1292
1293 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001294 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1295 *=) ac_optarg= ;;
1296 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001297 esac
1298
1299 # Accept the important Cygnus configure options, so we can diagnose typos.
1300
1301 case $ac_dashdash$ac_option in
1302 --)
1303 ac_dashdash=yes ;;
1304
1305 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1306 ac_prev=bindir ;;
1307 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1308 bindir=$ac_optarg ;;
1309
1310 -build | --build | --buil | --bui | --bu)
1311 ac_prev=build_alias ;;
1312 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1313 build_alias=$ac_optarg ;;
1314
1315 -cache-file | --cache-file | --cache-fil | --cache-fi \
1316 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1317 ac_prev=cache_file ;;
1318 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1319 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1320 cache_file=$ac_optarg ;;
1321
1322 --config-cache | -C)
1323 cache_file=config.cache ;;
1324
1325 -datadir | --datadir | --datadi | --datad)
1326 ac_prev=datadir ;;
1327 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1328 datadir=$ac_optarg ;;
1329
1330 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1331 | --dataroo | --dataro | --datar)
1332 ac_prev=datarootdir ;;
1333 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1334 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1335 datarootdir=$ac_optarg ;;
1336
1337 -disable-* | --disable-*)
1338 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1339 # Reject names that are not valid shell variable names.
1340 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001341 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001342 ac_useropt_orig=$ac_useropt
1343 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1344 case $ac_user_opts in
1345 *"
1346"enable_$ac_useropt"
1347"*) ;;
1348 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1349 ac_unrecognized_sep=', ';;
1350 esac
1351 eval enable_$ac_useropt=no ;;
1352
1353 -docdir | --docdir | --docdi | --doc | --do)
1354 ac_prev=docdir ;;
1355 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1356 docdir=$ac_optarg ;;
1357
1358 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1359 ac_prev=dvidir ;;
1360 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1361 dvidir=$ac_optarg ;;
1362
1363 -enable-* | --enable-*)
1364 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1365 # Reject names that are not valid shell variable names.
1366 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001367 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001368 ac_useropt_orig=$ac_useropt
1369 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1370 case $ac_user_opts in
1371 *"
1372"enable_$ac_useropt"
1373"*) ;;
1374 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1375 ac_unrecognized_sep=', ';;
1376 esac
1377 eval enable_$ac_useropt=\$ac_optarg ;;
1378
1379 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1380 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1381 | --exec | --exe | --ex)
1382 ac_prev=exec_prefix ;;
1383 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1384 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1385 | --exec=* | --exe=* | --ex=*)
1386 exec_prefix=$ac_optarg ;;
1387
1388 -gas | --gas | --ga | --g)
1389 # Obsolete; use --with-gas.
1390 with_gas=yes ;;
1391
1392 -help | --help | --hel | --he | -h)
1393 ac_init_help=long ;;
1394 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1395 ac_init_help=recursive ;;
1396 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1397 ac_init_help=short ;;
1398
1399 -host | --host | --hos | --ho)
1400 ac_prev=host_alias ;;
1401 -host=* | --host=* | --hos=* | --ho=*)
1402 host_alias=$ac_optarg ;;
1403
1404 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1405 ac_prev=htmldir ;;
1406 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1407 | --ht=*)
1408 htmldir=$ac_optarg ;;
1409
1410 -includedir | --includedir | --includedi | --included | --include \
1411 | --includ | --inclu | --incl | --inc)
1412 ac_prev=includedir ;;
1413 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1414 | --includ=* | --inclu=* | --incl=* | --inc=*)
1415 includedir=$ac_optarg ;;
1416
1417 -infodir | --infodir | --infodi | --infod | --info | --inf)
1418 ac_prev=infodir ;;
1419 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1420 infodir=$ac_optarg ;;
1421
1422 -libdir | --libdir | --libdi | --libd)
1423 ac_prev=libdir ;;
1424 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1425 libdir=$ac_optarg ;;
1426
1427 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1428 | --libexe | --libex | --libe)
1429 ac_prev=libexecdir ;;
1430 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1431 | --libexe=* | --libex=* | --libe=*)
1432 libexecdir=$ac_optarg ;;
1433
1434 -localedir | --localedir | --localedi | --localed | --locale)
1435 ac_prev=localedir ;;
1436 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1437 localedir=$ac_optarg ;;
1438
1439 -localstatedir | --localstatedir | --localstatedi | --localstated \
1440 | --localstate | --localstat | --localsta | --localst | --locals)
1441 ac_prev=localstatedir ;;
1442 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1443 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1444 localstatedir=$ac_optarg ;;
1445
1446 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1447 ac_prev=mandir ;;
1448 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1449 mandir=$ac_optarg ;;
1450
1451 -nfp | --nfp | --nf)
1452 # Obsolete; use --without-fp.
1453 with_fp=no ;;
1454
1455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1456 | --no-cr | --no-c | -n)
1457 no_create=yes ;;
1458
1459 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1460 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1461 no_recursion=yes ;;
1462
1463 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1464 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1465 | --oldin | --oldi | --old | --ol | --o)
1466 ac_prev=oldincludedir ;;
1467 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1468 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1469 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1470 oldincludedir=$ac_optarg ;;
1471
1472 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1473 ac_prev=prefix ;;
1474 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1475 prefix=$ac_optarg ;;
1476
1477 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1478 | --program-pre | --program-pr | --program-p)
1479 ac_prev=program_prefix ;;
1480 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1481 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1482 program_prefix=$ac_optarg ;;
1483
1484 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1485 | --program-suf | --program-su | --program-s)
1486 ac_prev=program_suffix ;;
1487 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1488 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1489 program_suffix=$ac_optarg ;;
1490
1491 -program-transform-name | --program-transform-name \
1492 | --program-transform-nam | --program-transform-na \
1493 | --program-transform-n | --program-transform- \
1494 | --program-transform | --program-transfor \
1495 | --program-transfo | --program-transf \
1496 | --program-trans | --program-tran \
1497 | --progr-tra | --program-tr | --program-t)
1498 ac_prev=program_transform_name ;;
1499 -program-transform-name=* | --program-transform-name=* \
1500 | --program-transform-nam=* | --program-transform-na=* \
1501 | --program-transform-n=* | --program-transform-=* \
1502 | --program-transform=* | --program-transfor=* \
1503 | --program-transfo=* | --program-transf=* \
1504 | --program-trans=* | --program-tran=* \
1505 | --progr-tra=* | --program-tr=* | --program-t=*)
1506 program_transform_name=$ac_optarg ;;
1507
1508 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1509 ac_prev=pdfdir ;;
1510 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1511 pdfdir=$ac_optarg ;;
1512
1513 -psdir | --psdir | --psdi | --psd | --ps)
1514 ac_prev=psdir ;;
1515 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1516 psdir=$ac_optarg ;;
1517
1518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1519 | -silent | --silent | --silen | --sile | --sil)
1520 silent=yes ;;
1521
1522 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1523 ac_prev=sbindir ;;
1524 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1525 | --sbi=* | --sb=*)
1526 sbindir=$ac_optarg ;;
1527
1528 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1529 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1530 | --sharedst | --shareds | --shared | --share | --shar \
1531 | --sha | --sh)
1532 ac_prev=sharedstatedir ;;
1533 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1534 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1535 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1536 | --sha=* | --sh=*)
1537 sharedstatedir=$ac_optarg ;;
1538
1539 -site | --site | --sit)
1540 ac_prev=site ;;
1541 -site=* | --site=* | --sit=*)
1542 site=$ac_optarg ;;
1543
1544 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1545 ac_prev=srcdir ;;
1546 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1547 srcdir=$ac_optarg ;;
1548
1549 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1550 | --syscon | --sysco | --sysc | --sys | --sy)
1551 ac_prev=sysconfdir ;;
1552 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1553 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1554 sysconfdir=$ac_optarg ;;
1555
1556 -target | --target | --targe | --targ | --tar | --ta | --t)
1557 ac_prev=target_alias ;;
1558 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1559 target_alias=$ac_optarg ;;
1560
1561 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1562 verbose=yes ;;
1563
1564 -version | --version | --versio | --versi | --vers | -V)
1565 ac_init_version=: ;;
1566
1567 -with-* | --with-*)
1568 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1569 # Reject names that are not valid shell variable names.
1570 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001571 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001572 ac_useropt_orig=$ac_useropt
1573 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1574 case $ac_user_opts in
1575 *"
1576"with_$ac_useropt"
1577"*) ;;
1578 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1579 ac_unrecognized_sep=', ';;
1580 esac
1581 eval with_$ac_useropt=\$ac_optarg ;;
1582
1583 -without-* | --without-*)
1584 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1585 # Reject names that are not valid shell variable names.
1586 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001587 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001588 ac_useropt_orig=$ac_useropt
1589 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1590 case $ac_user_opts in
1591 *"
1592"with_$ac_useropt"
1593"*) ;;
1594 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1595 ac_unrecognized_sep=', ';;
1596 esac
1597 eval with_$ac_useropt=no ;;
1598
1599 --x)
1600 # Obsolete; use --with-x.
1601 with_x=yes ;;
1602
1603 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1604 | --x-incl | --x-inc | --x-in | --x-i)
1605 ac_prev=x_includes ;;
1606 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1607 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1608 x_includes=$ac_optarg ;;
1609
1610 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1611 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1612 ac_prev=x_libraries ;;
1613 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1614 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1615 x_libraries=$ac_optarg ;;
1616
cristy98dddb52010-11-04 00:30:15 +00001617 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1618Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001619 ;;
1620
1621 *=*)
1622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1623 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001624 case $ac_envvar in #(
1625 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001626 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001627 esac
cristy3ed852e2009-09-05 21:47:34 +00001628 eval $ac_envvar=\$ac_optarg
1629 export $ac_envvar ;;
1630
1631 *)
1632 # FIXME: should be removed in autoconf 3.0.
1633 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1635 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001636 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001637 ;;
1638
1639 esac
1640done
1641
1642if test -n "$ac_prev"; then
1643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001644 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001645fi
1646
1647if test -n "$ac_unrecognized_opts"; then
1648 case $enable_option_checking in
1649 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001650 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001651 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1652 esac
1653fi
1654
1655# Check all directory arguments for consistency.
1656for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1657 datadir sysconfdir sharedstatedir localstatedir includedir \
1658 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1659 libdir localedir mandir
1660do
1661 eval ac_val=\$$ac_var
1662 # Remove trailing slashes.
1663 case $ac_val in
1664 */ )
1665 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1666 eval $ac_var=\$ac_val;;
1667 esac
1668 # Be sure to have absolute directory names.
1669 case $ac_val in
1670 [\\/$]* | ?:[\\/]* ) continue;;
1671 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1672 esac
cristy98dddb52010-11-04 00:30:15 +00001673 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001674done
1675
1676# There might be people who depend on the old broken behavior: `$host'
1677# used to hold the argument of --host etc.
1678# FIXME: To remove some day.
1679build=$build_alias
1680host=$host_alias
1681target=$target_alias
1682
1683# FIXME: To remove some day.
1684if test "x$host_alias" != x; then
1685 if test "x$build_alias" = x; then
1686 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001687 elif test "x$build_alias" != "x$host_alias"; then
1688 cross_compiling=yes
1689 fi
1690fi
1691
1692ac_tool_prefix=
1693test -n "$host_alias" && ac_tool_prefix=$host_alias-
1694
1695test "$silent" = yes && exec 6>/dev/null
1696
1697
1698ac_pwd=`pwd` && test -n "$ac_pwd" &&
1699ac_ls_di=`ls -di .` &&
1700ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001701 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001702test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001703 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001704
1705
1706# Find the source files, if location was not specified.
1707if test -z "$srcdir"; then
1708 ac_srcdir_defaulted=yes
1709 # Try the directory containing this script, then the parent directory.
1710 ac_confdir=`$as_dirname -- "$as_myself" ||
1711$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1712 X"$as_myself" : 'X\(//\)[^/]' \| \
1713 X"$as_myself" : 'X\(//\)$' \| \
1714 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1715$as_echo X"$as_myself" |
1716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1717 s//\1/
1718 q
1719 }
1720 /^X\(\/\/\)[^/].*/{
1721 s//\1/
1722 q
1723 }
1724 /^X\(\/\/\)$/{
1725 s//\1/
1726 q
1727 }
1728 /^X\(\/\).*/{
1729 s//\1/
1730 q
1731 }
1732 s/.*/./; q'`
1733 srcdir=$ac_confdir
1734 if test ! -r "$srcdir/$ac_unique_file"; then
1735 srcdir=..
1736 fi
1737else
1738 ac_srcdir_defaulted=no
1739fi
1740if test ! -r "$srcdir/$ac_unique_file"; then
1741 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001742 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001743fi
1744ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1745ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001746 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001747 pwd)`
1748# When building in place, set srcdir=.
1749if test "$ac_abs_confdir" = "$ac_pwd"; then
1750 srcdir=.
1751fi
1752# Remove unnecessary trailing slashes from srcdir.
1753# Double slashes in file names in object file debugging info
1754# mess up M-x gdb in Emacs.
1755case $srcdir in
1756*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1757esac
1758for ac_var in $ac_precious_vars; do
1759 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1760 eval ac_env_${ac_var}_value=\$${ac_var}
1761 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1762 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1763done
1764
1765#
1766# Report the --help message.
1767#
1768if test "$ac_init_help" = "long"; then
1769 # Omit some internal or obsolete options to make the list less imposing.
1770 # This message is too long to be a string in the A/UX 3.1 sh.
1771 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001772\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001773
1774Usage: $0 [OPTION]... [VAR=VALUE]...
1775
1776To assign environment variables (e.g., CC, CFLAGS...), specify them as
1777VAR=VALUE. See below for descriptions of some of the useful variables.
1778
1779Defaults for the options are specified in brackets.
1780
1781Configuration:
1782 -h, --help display this help and exit
1783 --help=short display options specific to this package
1784 --help=recursive display the short help of all the included packages
1785 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001786 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001787 --cache-file=FILE cache test results in FILE [disabled]
1788 -C, --config-cache alias for \`--cache-file=config.cache'
1789 -n, --no-create do not create output files
1790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1791
1792Installation directories:
1793 --prefix=PREFIX install architecture-independent files in PREFIX
1794 [$ac_default_prefix]
1795 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1796 [PREFIX]
1797
1798By default, \`make install' will install all the files in
1799\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1800an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1801for instance \`--prefix=\$HOME'.
1802
1803For better control, use the options below.
1804
1805Fine tuning of the installation directories:
1806 --bindir=DIR user executables [EPREFIX/bin]
1807 --sbindir=DIR system admin executables [EPREFIX/sbin]
1808 --libexecdir=DIR program executables [EPREFIX/libexec]
1809 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1810 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1811 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1812 --libdir=DIR object code libraries [EPREFIX/lib]
1813 --includedir=DIR C header files [PREFIX/include]
1814 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1815 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1816 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1817 --infodir=DIR info documentation [DATAROOTDIR/info]
1818 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1819 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001820 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001821 --htmldir=DIR html documentation [DOCDIR]
1822 --dvidir=DIR dvi documentation [DOCDIR]
1823 --pdfdir=DIR pdf documentation [DOCDIR]
1824 --psdir=DIR ps documentation [DOCDIR]
1825_ACEOF
1826
1827 cat <<\_ACEOF
1828
cristy73bd4a52010-10-05 11:24:23 +00001829Program names:
1830 --program-prefix=PREFIX prepend PREFIX to installed program names
1831 --program-suffix=SUFFIX append SUFFIX to installed program names
1832 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1833
cristy3ed852e2009-09-05 21:47:34 +00001834X features:
1835 --x-includes=DIR X include files are in DIR
1836 --x-libraries=DIR X library files are in DIR
1837
1838System types:
1839 --build=BUILD configure for building on BUILD [guessed]
1840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1841 --target=TARGET configure for building compilers for TARGET [HOST]
1842_ACEOF
1843fi
1844
1845if test -n "$ac_init_help"; then
1846 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001847 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001848 esac
1849 cat <<\_ACEOF
1850
1851Optional Features:
1852 --disable-option-checking ignore unrecognized --enable/--with options
1853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001855 --enable-silent-rules less verbose build output (undo: "make V=1")
1856 --disable-silent-rules verbose build output (undo: "make V=0")
1857 --enable-dependency-tracking
1858 do not reject slow dependency extractors
1859 --disable-dependency-tracking
1860 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001861 --enable-ld-version-script
1862 enable linker version script (default is enabled
1863 when possible)
cristya3824692012-03-30 17:22:07 +00001864 --enable-bounds-checking
1865 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001866 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001867 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001868 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001869 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001870 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001871 --enable-shared[=PKGS] build shared libraries [default=yes]
1872 --enable-static[=PKGS] build static libraries [default=yes]
1873 --enable-fast-install[=PKGS]
1874 optimize for fast installation [default=yes]
1875 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001876 --enable-delegate-build look for delegate libraries in build directory
1877 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001878 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001879 --disable-installed Formally install ImageMagick under PREFIX
1880 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001881 --enable-zero-configuration
1882 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001883 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001884 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001885 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001886 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001887 --enable-maintainer-mode
1888 enable make rules and dependencies not useful (and
1889 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001890 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001891 --enable-ccmalloc enable 'ccmalloc' memory debug support
1892 --enable-efence enable 'efence' memory debug support
1893 --enable-prof enable 'prof' profiling support
1894 --enable-gprof enable 'gprof' profiling support
1895 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001896 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001897 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001898
1899Optional Packages:
1900 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1901 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001902 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001903 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy670aa3c2011-11-03 00:54:00 +00001904 --includearch-dir=DIR ARCH specific include directory
1905 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001906 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001907 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001908 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001909 both]
cristyda16f162011-02-19 23:52:17 +00001910 --with-sysroot=DIR Search for dependent libraries within DIR
1911 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001912 --with-modules enable building dynamically loadable modules
1913 --with-method-prefix=PREFIX
1914 prefix MagickCore API methods
1915 --with-quantum-depth=DEPTH
1916 number of bits in a pixel quantum (default 16)
1917 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1918 memory)
1919 --with-frozenpaths freeze delegate paths
1920 --without-magick-plus-plus
1921 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001922 --with-package-release-name=NAME
1923 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001924 --with-perl enable build/install of PerlMagick
1925 --with-perl-options=OPTIONS
1926 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001927 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001928 --with-umem enable umem memory allocation library support
1929 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1930 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001931 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001932 --without-zlib disable ZLIB support
1933 --with-autotrace enable autotrace support
1934 --without-dps disable Display Postscript support
1935 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001936 --with-dejavu-font-dir=DIR
1937 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001938 --without-fftw disable FFTW support
1939 --without-fpx disable FlashPIX support
1940 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001941 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001942 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001943 --with-fontpath=DIR prepend to default font search path
1944 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001945 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001946 --without-jbig disable JBIG support
1947 --without-jpeg disable JPEG support
1948 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001949 --without-lcms disable lcms (v1.1X) support
1950 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001951 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001952 --without-lzma disable LZMA support
cristy854c9cf2013-08-10 21:03:06 +00001953 --with-mupdf enable MUPDF support
cristy3ed852e2009-09-05 21:47:34 +00001954 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001955 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001956 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001957 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001958 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001959 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001960 --with-windows-font-dir=DIR
1961 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001962 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001963 --without-xml disable XML support
1964
1965Some influential environment variables:
1966 CC C compiler command
1967 CFLAGS C compiler flags
1968 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1969 nonstandard directory <lib dir>
1970 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001971 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001972 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001973 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001974 CXX C++ compiler command
1975 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001976 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001977 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001978 XMKMF Path to xmkmf, Makefile generator for X Window System
1979 AUTOTRACE_CFLAGS
1980 C compiler flags for AUTOTRACE, overriding pkg-config
1981 AUTOTRACE_LIBS
1982 linker flags for AUTOTRACE, overriding pkg-config
1983 FONTCONFIG_CFLAGS
1984 C compiler flags for FONTCONFIG, overriding pkg-config
1985 FONTCONFIG_LIBS
1986 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001987 FREETYPE_CFLAGS
1988 C compiler flags for FREETYPE, overriding pkg-config
1989 FREETYPE_LIBS
1990 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001991 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1992 GVC_LIBS linker flags for GVC, overriding pkg-config
1993 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1994 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001995 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1996 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001997 OPENEXR_CFLAGS
1998 C compiler flags for OPENEXR, overriding pkg-config
1999 OPENEXR_LIBS
2000 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002001 PANGO_CFLAGS
2002 C compiler flags for PANGO, overriding pkg-config
2003 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002004 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2005 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2006 CAIRO_SVG_CFLAGS
2007 C compiler flags for CAIRO_SVG, overriding pkg-config
2008 CAIRO_SVG_LIBS
2009 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002010
2011Use these variables to override the choices made by `configure' or to help
2012it to find libraries and programs with nonstandard names/locations.
2013
2014Report bugs to <http://www.imagemagick.org>.
2015_ACEOF
2016ac_status=$?
2017fi
2018
2019if test "$ac_init_help" = "recursive"; then
2020 # If there are subdirs, report their specific --help.
2021 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2022 test -d "$ac_dir" ||
2023 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2024 continue
2025 ac_builddir=.
2026
2027case "$ac_dir" in
2028.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2029*)
2030 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2031 # A ".." for each directory in $ac_dir_suffix.
2032 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2033 case $ac_top_builddir_sub in
2034 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2035 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2036 esac ;;
2037esac
2038ac_abs_top_builddir=$ac_pwd
2039ac_abs_builddir=$ac_pwd$ac_dir_suffix
2040# for backward compatibility:
2041ac_top_builddir=$ac_top_build_prefix
2042
2043case $srcdir in
2044 .) # We are building in place.
2045 ac_srcdir=.
2046 ac_top_srcdir=$ac_top_builddir_sub
2047 ac_abs_top_srcdir=$ac_pwd ;;
2048 [\\/]* | ?:[\\/]* ) # Absolute name.
2049 ac_srcdir=$srcdir$ac_dir_suffix;
2050 ac_top_srcdir=$srcdir
2051 ac_abs_top_srcdir=$srcdir ;;
2052 *) # Relative name.
2053 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2054 ac_top_srcdir=$ac_top_build_prefix$srcdir
2055 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2056esac
2057ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2058
2059 cd "$ac_dir" || { ac_status=$?; continue; }
2060 # Check for guested configure.
2061 if test -f "$ac_srcdir/configure.gnu"; then
2062 echo &&
2063 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2064 elif test -f "$ac_srcdir/configure"; then
2065 echo &&
2066 $SHELL "$ac_srcdir/configure" --help=recursive
2067 else
2068 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2069 fi || ac_status=$?
2070 cd "$ac_pwd" || { ac_status=$?; break; }
2071 done
2072fi
2073
2074test -n "$ac_init_help" && exit $ac_status
2075if $ac_init_version; then
2076 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002077ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002078generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002079
cristy14fefe52012-05-21 00:59:18 +00002080Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002081This configure script is free software; the Free Software Foundation
2082gives unlimited permission to copy, distribute and modify it.
2083_ACEOF
2084 exit
2085fi
cristy8b350f62009-11-15 23:12:43 +00002086
2087## ------------------------ ##
2088## Autoconf initialization. ##
2089## ------------------------ ##
2090
2091# ac_fn_c_try_compile LINENO
2092# --------------------------
2093# Try to compile conftest.$ac_ext, and return whether this succeeded.
2094ac_fn_c_try_compile ()
2095{
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 rm -f conftest.$ac_objext
2098 if { { ac_try="$ac_compile"
2099case "(($ac_try" in
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2102esac
2103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2104$as_echo "$ac_try_echo"; } >&5
2105 (eval "$ac_compile") 2>conftest.err
2106 ac_status=$?
2107 if test -s conftest.err; then
2108 grep -v '^ *+' conftest.err >conftest.er1
2109 cat conftest.er1 >&5
2110 mv -f conftest.er1 conftest.err
2111 fi
2112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2113 test $ac_status = 0; } && {
2114 test -z "$ac_c_werror_flag" ||
2115 test ! -s conftest.err
2116 } && test -s conftest.$ac_objext; then :
2117 ac_retval=0
2118else
2119 $as_echo "$as_me: failed program was:" >&5
2120sed 's/^/| /' conftest.$ac_ext >&5
2121
2122 ac_retval=1
2123fi
cristyda16f162011-02-19 23:52:17 +00002124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002125 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002126
2127} # ac_fn_c_try_compile
2128
cristy95646052009-11-28 23:05:30 +00002129# ac_fn_c_try_cpp LINENO
2130# ----------------------
2131# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2132ac_fn_c_try_cpp ()
2133{
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 if { { ac_try="$ac_cpp conftest.$ac_ext"
2136case "(($ac_try" in
2137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2138 *) ac_try_echo=$ac_try;;
2139esac
2140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141$as_echo "$ac_try_echo"; } >&5
2142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2143 ac_status=$?
2144 if test -s conftest.err; then
2145 grep -v '^ *+' conftest.err >conftest.er1
2146 cat conftest.er1 >&5
2147 mv -f conftest.er1 conftest.err
2148 fi
2149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002150 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2152 test ! -s conftest.err
2153 }; then :
2154 ac_retval=0
2155else
2156 $as_echo "$as_me: failed program was:" >&5
2157sed 's/^/| /' conftest.$ac_ext >&5
2158
2159 ac_retval=1
2160fi
cristyda16f162011-02-19 23:52:17 +00002161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002162 as_fn_set_status $ac_retval
2163
2164} # ac_fn_c_try_cpp
2165
cristy8b350f62009-11-15 23:12:43 +00002166# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2167# -------------------------------------------------------
2168# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2169# the include files in INCLUDES and setting the cache variable VAR
2170# accordingly.
2171ac_fn_c_check_header_mongrel ()
2172{
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002174 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002177if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002178 $as_echo_n "(cached) " >&6
2179fi
2180eval ac_res=\$$3
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182$as_echo "$ac_res" >&6; }
2183else
2184 # Is the header compilable?
2185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2186$as_echo_n "checking $2 usability... " >&6; }
2187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188/* end confdefs.h. */
2189$4
2190#include <$2>
2191_ACEOF
2192if ac_fn_c_try_compile "$LINENO"; then :
2193 ac_header_compiler=yes
2194else
2195 ac_header_compiler=no
2196fi
2197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2199$as_echo "$ac_header_compiler" >&6; }
2200
2201# Is the header present?
2202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2203$as_echo_n "checking $2 presence... " >&6; }
2204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205/* end confdefs.h. */
2206#include <$2>
2207_ACEOF
2208if ac_fn_c_try_cpp "$LINENO"; then :
2209 ac_header_preproc=yes
2210else
2211 ac_header_preproc=no
2212fi
cristyda16f162011-02-19 23:52:17 +00002213rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2215$as_echo "$ac_header_preproc" >&6; }
2216
2217# So? What about this header?
2218case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2219 yes:no: )
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2221$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2223$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2224 ;;
2225 no:yes:* )
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2227$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2229$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2231$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2233$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2235$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002236( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002237## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002238## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002239 ) | sed "s/^/$as_me: WARNING: /" >&2
2240 ;;
2241esac
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2243$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002244if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002245 $as_echo_n "(cached) " >&6
2246else
2247 eval "$3=\$ac_header_compiler"
2248fi
2249eval ac_res=\$$3
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251$as_echo "$ac_res" >&6; }
2252fi
cristyda16f162011-02-19 23:52:17 +00002253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002254
2255} # ac_fn_c_check_header_mongrel
2256
2257# ac_fn_c_try_run LINENO
2258# ----------------------
2259# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2260# that executables *can* be run.
2261ac_fn_c_try_run ()
2262{
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 if { { ac_try="$ac_link"
2265case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268esac
2269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270$as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_link") 2>&5
2272 ac_status=$?
2273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2274 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2275 { { case "(($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_try") 2>&5
2282 ac_status=$?
2283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284 test $ac_status = 0; }; }; then :
2285 ac_retval=0
2286else
2287 $as_echo "$as_me: program exited with status $ac_status" >&5
2288 $as_echo "$as_me: failed program was:" >&5
2289sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 ac_retval=$ac_status
2292fi
2293 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002295 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002296
2297} # ac_fn_c_try_run
2298
2299# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2300# -------------------------------------------------------
2301# Tests whether HEADER exists and can be compiled using the include files in
2302# INCLUDES, setting the cache variable VAR accordingly.
2303ac_fn_c_check_header_compile ()
2304{
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2307$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002308if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002309 $as_echo_n "(cached) " >&6
2310else
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312/* end confdefs.h. */
2313$4
2314#include <$2>
2315_ACEOF
2316if ac_fn_c_try_compile "$LINENO"; then :
2317 eval "$3=yes"
2318else
2319 eval "$3=no"
2320fi
2321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322fi
2323eval ac_res=\$$3
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002326 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002327
2328} # ac_fn_c_check_header_compile
2329
cristya0b81c32010-01-22 02:54:33 +00002330# ac_fn_cxx_try_compile LINENO
2331# ----------------------------
2332# Try to compile conftest.$ac_ext, and return whether this succeeded.
2333ac_fn_cxx_try_compile ()
2334{
2335 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2336 rm -f conftest.$ac_objext
2337 if { { ac_try="$ac_compile"
2338case "(($ac_try" in
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2341esac
2342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2343$as_echo "$ac_try_echo"; } >&5
2344 (eval "$ac_compile") 2>conftest.err
2345 ac_status=$?
2346 if test -s conftest.err; then
2347 grep -v '^ *+' conftest.err >conftest.er1
2348 cat conftest.er1 >&5
2349 mv -f conftest.er1 conftest.err
2350 fi
2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352 test $ac_status = 0; } && {
2353 test -z "$ac_cxx_werror_flag" ||
2354 test ! -s conftest.err
2355 } && test -s conftest.$ac_objext; then :
2356 ac_retval=0
2357else
2358 $as_echo "$as_me: failed program was:" >&5
2359sed 's/^/| /' conftest.$ac_ext >&5
2360
2361 ac_retval=1
2362fi
cristyda16f162011-02-19 23:52:17 +00002363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002364 as_fn_set_status $ac_retval
2365
2366} # ac_fn_cxx_try_compile
2367
cristyd95b7a52013-10-23 13:12:53 +00002368# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2369# --------------------------------------------
2370# Tries to find the compile-time value of EXPR in a program that includes
2371# INCLUDES, setting VAR accordingly. Returns whether the value could be
2372# computed
2373ac_fn_c_compute_int ()
2374{
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 if test "$cross_compiling" = yes; then
2377 # Depending upon the size, compute the lo and hi bounds.
2378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379/* end confdefs.h. */
2380$4
2381int
2382main ()
2383{
2384static int test_array [1 - 2 * !(($2) >= 0)];
2385test_array [0] = 0;
2386return test_array [0];
2387
2388 ;
2389 return 0;
2390}
2391_ACEOF
2392if ac_fn_c_try_compile "$LINENO"; then :
2393 ac_lo=0 ac_mid=0
2394 while :; do
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396/* end confdefs.h. */
2397$4
2398int
2399main ()
2400{
2401static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2402test_array [0] = 0;
2403return test_array [0];
2404
2405 ;
2406 return 0;
2407}
2408_ACEOF
2409if ac_fn_c_try_compile "$LINENO"; then :
2410 ac_hi=$ac_mid; break
2411else
2412 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2413 if test $ac_lo -le $ac_mid; then
2414 ac_lo= ac_hi=
2415 break
2416 fi
2417 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2418fi
2419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 done
2421else
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423/* end confdefs.h. */
2424$4
2425int
2426main ()
2427{
2428static int test_array [1 - 2 * !(($2) < 0)];
2429test_array [0] = 0;
2430return test_array [0];
2431
2432 ;
2433 return 0;
2434}
2435_ACEOF
2436if ac_fn_c_try_compile "$LINENO"; then :
2437 ac_hi=-1 ac_mid=-1
2438 while :; do
2439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440/* end confdefs.h. */
2441$4
2442int
2443main ()
2444{
2445static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2446test_array [0] = 0;
2447return test_array [0];
2448
2449 ;
2450 return 0;
2451}
2452_ACEOF
2453if ac_fn_c_try_compile "$LINENO"; then :
2454 ac_lo=$ac_mid; break
2455else
2456 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2457 if test $ac_mid -le $ac_hi; then
2458 ac_lo= ac_hi=
2459 break
2460 fi
2461 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2462fi
2463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464 done
2465else
2466 ac_lo= ac_hi=
2467fi
2468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469fi
2470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471# Binary search between lo and hi bounds.
2472while test "x$ac_lo" != "x$ac_hi"; do
2473 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475/* end confdefs.h. */
2476$4
2477int
2478main ()
2479{
2480static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2481test_array [0] = 0;
2482return test_array [0];
2483
2484 ;
2485 return 0;
2486}
2487_ACEOF
2488if ac_fn_c_try_compile "$LINENO"; then :
2489 ac_hi=$ac_mid
2490else
2491 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2492fi
2493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494done
2495case $ac_lo in #((
2496?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2497'') ac_retval=1 ;;
2498esac
2499 else
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501/* end confdefs.h. */
2502$4
2503static long int longval () { return $2; }
2504static unsigned long int ulongval () { return $2; }
2505#include <stdio.h>
2506#include <stdlib.h>
2507int
2508main ()
2509{
2510
2511 FILE *f = fopen ("conftest.val", "w");
2512 if (! f)
2513 return 1;
2514 if (($2) < 0)
2515 {
2516 long int i = longval ();
2517 if (i != ($2))
2518 return 1;
2519 fprintf (f, "%ld", i);
2520 }
2521 else
2522 {
2523 unsigned long int i = ulongval ();
2524 if (i != ($2))
2525 return 1;
2526 fprintf (f, "%lu", i);
2527 }
2528 /* Do not output a trailing newline, as this causes \r\n confusion
2529 on some platforms. */
2530 return ferror (f) || fclose (f) != 0;
2531
2532 ;
2533 return 0;
2534}
2535_ACEOF
2536if ac_fn_c_try_run "$LINENO"; then :
2537 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2538else
2539 ac_retval=1
2540fi
2541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2542 conftest.$ac_objext conftest.beam conftest.$ac_ext
2543rm -f conftest.val
2544
2545 fi
2546 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2547 as_fn_set_status $ac_retval
2548
2549} # ac_fn_c_compute_int
2550
cristy8b350f62009-11-15 23:12:43 +00002551# ac_fn_c_try_link LINENO
2552# -----------------------
2553# Try to link conftest.$ac_ext, and return whether this succeeded.
2554ac_fn_c_try_link ()
2555{
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 rm -f conftest.$ac_objext conftest$ac_exeext
2558 if { { ac_try="$ac_link"
2559case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2562esac
2563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2564$as_echo "$ac_try_echo"; } >&5
2565 (eval "$ac_link") 2>conftest.err
2566 ac_status=$?
2567 if test -s conftest.err; then
2568 grep -v '^ *+' conftest.err >conftest.er1
2569 cat conftest.er1 >&5
2570 mv -f conftest.er1 conftest.err
2571 fi
2572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2573 test $ac_status = 0; } && {
2574 test -z "$ac_c_werror_flag" ||
2575 test ! -s conftest.err
2576 } && test -s conftest$ac_exeext && {
2577 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002578 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002579 }; then :
2580 ac_retval=0
2581else
2582 $as_echo "$as_me: failed program was:" >&5
2583sed 's/^/| /' conftest.$ac_ext >&5
2584
2585 ac_retval=1
2586fi
2587 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2588 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2589 # interfere with the next link command; also delete a directory that is
2590 # left behind by Apple's compiler. We do this before executing the actions.
2591 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002593 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002594
2595} # ac_fn_c_try_link
2596
cristy73bd4a52010-10-05 11:24:23 +00002597# ac_fn_c_check_func LINENO FUNC VAR
2598# ----------------------------------
2599# Tests whether FUNC exists, setting the cache variable VAR accordingly
2600ac_fn_c_check_func ()
2601{
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2604$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002605if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002606 $as_echo_n "(cached) " >&6
2607else
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609/* end confdefs.h. */
2610/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2612#define $2 innocuous_$2
2613
2614/* System header to define __stub macros and hopefully few prototypes,
2615 which can conflict with char $2 (); below.
2616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2617 <limits.h> exists even on freestanding compilers. */
2618
2619#ifdef __STDC__
2620# include <limits.h>
2621#else
2622# include <assert.h>
2623#endif
2624
2625#undef $2
2626
2627/* Override any GCC internal prototype to avoid an error.
2628 Use char because int might match the return type of a GCC
2629 builtin and then its argument prototype would still apply. */
2630#ifdef __cplusplus
2631extern "C"
2632#endif
2633char $2 ();
2634/* The GNU C library defines this for functions which it implements
2635 to always fail with ENOSYS. Some functions are actually named
2636 something starting with __ and the normal name is an alias. */
2637#if defined __stub_$2 || defined __stub___$2
2638choke me
2639#endif
2640
2641int
2642main ()
2643{
2644return $2 ();
2645 ;
2646 return 0;
2647}
2648_ACEOF
2649if ac_fn_c_try_link "$LINENO"; then :
2650 eval "$3=yes"
2651else
2652 eval "$3=no"
2653fi
2654rm -f core conftest.err conftest.$ac_objext \
2655 conftest$ac_exeext conftest.$ac_ext
2656fi
2657eval ac_res=\$$3
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2659$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002661
2662} # ac_fn_c_check_func
2663
2664# ac_fn_cxx_try_cpp LINENO
2665# ------------------------
2666# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2667ac_fn_cxx_try_cpp ()
2668{
2669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670 if { { ac_try="$ac_cpp conftest.$ac_ext"
2671case "(($ac_try" in
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2674esac
2675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2676$as_echo "$ac_try_echo"; } >&5
2677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2678 ac_status=$?
2679 if test -s conftest.err; then
2680 grep -v '^ *+' conftest.err >conftest.er1
2681 cat conftest.er1 >&5
2682 mv -f conftest.er1 conftest.err
2683 fi
2684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002685 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002686 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2687 test ! -s conftest.err
2688 }; then :
2689 ac_retval=0
2690else
2691 $as_echo "$as_me: failed program was:" >&5
2692sed 's/^/| /' conftest.$ac_ext >&5
2693
2694 ac_retval=1
2695fi
cristyda16f162011-02-19 23:52:17 +00002696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002697 as_fn_set_status $ac_retval
2698
2699} # ac_fn_cxx_try_cpp
2700
2701# ac_fn_cxx_try_link LINENO
2702# -------------------------
2703# Try to link conftest.$ac_ext, and return whether this succeeded.
2704ac_fn_cxx_try_link ()
2705{
2706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707 rm -f conftest.$ac_objext conftest$ac_exeext
2708 if { { ac_try="$ac_link"
2709case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712esac
2713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2714$as_echo "$ac_try_echo"; } >&5
2715 (eval "$ac_link") 2>conftest.err
2716 ac_status=$?
2717 if test -s conftest.err; then
2718 grep -v '^ *+' conftest.err >conftest.er1
2719 cat conftest.er1 >&5
2720 mv -f conftest.er1 conftest.err
2721 fi
2722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2723 test $ac_status = 0; } && {
2724 test -z "$ac_cxx_werror_flag" ||
2725 test ! -s conftest.err
2726 } && test -s conftest$ac_exeext && {
2727 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002728 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002729 }; then :
2730 ac_retval=0
2731else
2732 $as_echo "$as_me: failed program was:" >&5
2733sed 's/^/| /' conftest.$ac_ext >&5
2734
2735 ac_retval=1
2736fi
2737 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2738 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2739 # interfere with the next link command; also delete a directory that is
2740 # left behind by Apple's compiler. We do this before executing the actions.
2741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002743 as_fn_set_status $ac_retval
2744
2745} # ac_fn_cxx_try_link
2746
cristy8b350f62009-11-15 23:12:43 +00002747# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2748# -------------------------------------------
2749# Tests whether TYPE exists after having included INCLUDES, setting cache
2750# variable VAR accordingly.
2751ac_fn_c_check_type ()
2752{
2753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2755$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002756if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002757 $as_echo_n "(cached) " >&6
2758else
2759 eval "$3=no"
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761/* end confdefs.h. */
2762$4
2763int
2764main ()
2765{
2766if (sizeof ($2))
2767 return 0;
2768 ;
2769 return 0;
2770}
2771_ACEOF
2772if ac_fn_c_try_compile "$LINENO"; then :
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774/* end confdefs.h. */
2775$4
2776int
2777main ()
2778{
2779if (sizeof (($2)))
2780 return 0;
2781 ;
2782 return 0;
2783}
2784_ACEOF
2785if ac_fn_c_try_compile "$LINENO"; then :
2786
2787else
2788 eval "$3=yes"
2789fi
2790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791fi
2792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2793fi
2794eval ac_res=\$$3
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2796$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002798
2799} # ac_fn_c_check_type
2800
cristy92703d82010-04-26 00:18:18 +00002801# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2802# ----------------------------------------------------
2803# Tries to find if the field MEMBER exists in type AGGR, after including
2804# INCLUDES, setting cache variable VAR accordingly.
2805ac_fn_c_check_member ()
2806{
2807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2809$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002810if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002811 $as_echo_n "(cached) " >&6
2812else
2813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2814/* end confdefs.h. */
2815$5
2816int
2817main ()
2818{
2819static $2 ac_aggr;
2820if (ac_aggr.$3)
2821return 0;
2822 ;
2823 return 0;
2824}
2825_ACEOF
2826if ac_fn_c_try_compile "$LINENO"; then :
2827 eval "$4=yes"
2828else
2829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2830/* end confdefs.h. */
2831$5
2832int
2833main ()
2834{
2835static $2 ac_aggr;
2836if (sizeof ac_aggr.$3)
2837return 0;
2838 ;
2839 return 0;
2840}
2841_ACEOF
2842if ac_fn_c_try_compile "$LINENO"; then :
2843 eval "$4=yes"
2844else
2845 eval "$4=no"
2846fi
2847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848fi
2849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850fi
2851eval ac_res=\$$4
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2853$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002855
2856} # ac_fn_c_check_member
2857
cristy5eef09f2012-10-16 12:08:28 +00002858# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2859# ---------------------------------------------
2860# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2861# accordingly.
2862ac_fn_c_check_decl ()
2863{
2864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2865 as_decl_name=`echo $2|sed 's/ *(.*//'`
2866 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2868$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2869if eval \${$3+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871else
2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2873/* end confdefs.h. */
2874$4
2875int
2876main ()
2877{
2878#ifndef $as_decl_name
2879#ifdef __cplusplus
2880 (void) $as_decl_use;
2881#else
2882 (void) $as_decl_name;
2883#endif
2884#endif
2885
2886 ;
2887 return 0;
2888}
2889_ACEOF
2890if ac_fn_c_try_compile "$LINENO"; then :
2891 eval "$3=yes"
2892else
2893 eval "$3=no"
2894fi
2895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896fi
2897eval ac_res=\$$3
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2899$as_echo "$ac_res" >&6; }
2900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2901
2902} # ac_fn_c_check_decl
2903
cristy501c8042011-05-26 17:46:28 +00002904# ac_fn_c_find_intX_t LINENO BITS VAR
2905# -----------------------------------
2906# Finds a signed integer type with width BITS, setting cache variable VAR
2907# accordingly.
2908ac_fn_c_find_intX_t ()
2909{
2910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2912$as_echo_n "checking for int$2_t... " >&6; }
2913if eval \${$3+:} false; then :
2914 $as_echo_n "(cached) " >&6
2915else
2916 eval "$3=no"
2917 # Order is important - never check a type that is potentially smaller
2918 # than half of the expected target width.
2919 for ac_type in int$2_t 'int' 'long int' \
2920 'long long int' 'short int' 'signed char'; do
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922/* end confdefs.h. */
2923$ac_includes_default
2924 enum { N = $2 / 2 - 1 };
2925int
2926main ()
2927{
2928static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002929test_array [0] = 0;
2930return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002931
2932 ;
2933 return 0;
2934}
2935_ACEOF
2936if ac_fn_c_try_compile "$LINENO"; then :
2937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938/* end confdefs.h. */
2939$ac_includes_default
2940 enum { N = $2 / 2 - 1 };
2941int
2942main ()
2943{
2944static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2945 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002946test_array [0] = 0;
2947return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002948
2949 ;
2950 return 0;
2951}
2952_ACEOF
2953if ac_fn_c_try_compile "$LINENO"; then :
2954
2955else
2956 case $ac_type in #(
2957 int$2_t) :
2958 eval "$3=yes" ;; #(
2959 *) :
2960 eval "$3=\$ac_type" ;;
2961esac
2962fi
2963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2964fi
2965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966 if eval test \"x\$"$3"\" = x"no"; then :
2967
2968else
2969 break
2970fi
2971 done
2972fi
2973eval ac_res=\$$3
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2975$as_echo "$ac_res" >&6; }
2976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2977
2978} # ac_fn_c_find_intX_t
2979
2980# ac_fn_c_find_uintX_t LINENO BITS VAR
2981# ------------------------------------
2982# Finds an unsigned integer type with width BITS, setting cache variable VAR
2983# accordingly.
2984ac_fn_c_find_uintX_t ()
2985{
2986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2988$as_echo_n "checking for uint$2_t... " >&6; }
2989if eval \${$3+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991else
2992 eval "$3=no"
2993 # Order is important - never check a type that is potentially smaller
2994 # than half of the expected target width.
2995 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2996 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998/* end confdefs.h. */
2999$ac_includes_default
3000int
3001main ()
3002{
3003static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003004test_array [0] = 0;
3005return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003006
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011if ac_fn_c_try_compile "$LINENO"; then :
3012 case $ac_type in #(
3013 uint$2_t) :
3014 eval "$3=yes" ;; #(
3015 *) :
3016 eval "$3=\$ac_type" ;;
3017esac
3018fi
3019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3020 if eval test \"x\$"$3"\" = x"no"; then :
3021
3022else
3023 break
3024fi
3025 done
3026fi
3027eval ac_res=\$$3
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3029$as_echo "$ac_res" >&6; }
3030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3031
3032} # ac_fn_c_find_uintX_t
3033
cristy8b350f62009-11-15 23:12:43 +00003034# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3035# ---------------------------------------------------------
3036# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3037# the include files in INCLUDES and setting the cache variable VAR
3038# accordingly.
3039ac_fn_cxx_check_header_mongrel ()
3040{
3041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003042 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3044$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003045if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003046 $as_echo_n "(cached) " >&6
3047fi
3048eval ac_res=\$$3
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3050$as_echo "$ac_res" >&6; }
3051else
3052 # Is the header compilable?
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3054$as_echo_n "checking $2 usability... " >&6; }
3055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056/* end confdefs.h. */
3057$4
3058#include <$2>
3059_ACEOF
3060if ac_fn_cxx_try_compile "$LINENO"; then :
3061 ac_header_compiler=yes
3062else
3063 ac_header_compiler=no
3064fi
3065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3067$as_echo "$ac_header_compiler" >&6; }
3068
3069# Is the header present?
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3071$as_echo_n "checking $2 presence... " >&6; }
3072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073/* end confdefs.h. */
3074#include <$2>
3075_ACEOF
3076if ac_fn_cxx_try_cpp "$LINENO"; then :
3077 ac_header_preproc=yes
3078else
3079 ac_header_preproc=no
3080fi
cristyda16f162011-02-19 23:52:17 +00003081rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3083$as_echo "$ac_header_preproc" >&6; }
3084
3085# So? What about this header?
3086case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3087 yes:no: )
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3089$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3091$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3092 ;;
3093 no:yes:* )
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3095$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3097$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3099$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3101$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3103$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003104( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003105## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003106## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003107 ) | sed "s/^/$as_me: WARNING: /" >&2
3108 ;;
3109esac
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3111$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003112if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003113 $as_echo_n "(cached) " >&6
3114else
3115 eval "$3=\$ac_header_compiler"
3116fi
3117eval ac_res=\$$3
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3119$as_echo "$ac_res" >&6; }
3120fi
cristyda16f162011-02-19 23:52:17 +00003121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003122
3123} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003124cat >config.log <<_ACEOF
3125This file contains any messages produced by compilers while
3126running configure, to aid debugging if configure makes a mistake.
3127
cristy29eb34e2011-10-16 00:46:08 +00003128It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003129generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003130
3131 $ $0 $@
3132
3133_ACEOF
3134exec 5>>config.log
3135{
3136cat <<_ASUNAME
3137## --------- ##
3138## Platform. ##
3139## --------- ##
3140
3141hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3142uname -m = `(uname -m) 2>/dev/null || echo unknown`
3143uname -r = `(uname -r) 2>/dev/null || echo unknown`
3144uname -s = `(uname -s) 2>/dev/null || echo unknown`
3145uname -v = `(uname -v) 2>/dev/null || echo unknown`
3146
3147/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3148/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3149
3150/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3151/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3152/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3153/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3154/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3155/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3156/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3157
3158_ASUNAME
3159
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003165 $as_echo "PATH: $as_dir"
3166 done
cristy3ed852e2009-09-05 21:47:34 +00003167IFS=$as_save_IFS
3168
3169} >&5
3170
3171cat >&5 <<_ACEOF
3172
3173
3174## ----------- ##
3175## Core tests. ##
3176## ----------- ##
3177
3178_ACEOF
3179
3180
3181# Keep a trace of the command line.
3182# Strip out --no-create and --no-recursion so they do not pile up.
3183# Strip out --silent because we don't want to record it for future runs.
3184# Also quote any args containing shell meta-characters.
3185# Make two passes to allow for proper duplicate-argument suppression.
3186ac_configure_args=
3187ac_configure_args0=
3188ac_configure_args1=
3189ac_must_keep_next=false
3190for ac_pass in 1 2
3191do
3192 for ac_arg
3193 do
3194 case $ac_arg in
3195 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3197 | -silent | --silent | --silen | --sile | --sil)
3198 continue ;;
3199 *\'*)
3200 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3201 esac
3202 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003203 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003204 2)
cristy8b350f62009-11-15 23:12:43 +00003205 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003206 if test $ac_must_keep_next = true; then
3207 ac_must_keep_next=false # Got value, back to normal.
3208 else
3209 case $ac_arg in
3210 *=* | --config-cache | -C | -disable-* | --disable-* \
3211 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3212 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3213 | -with-* | --with-* | -without-* | --without-* | --x)
3214 case "$ac_configure_args0 " in
3215 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3216 esac
3217 ;;
3218 -* ) ac_must_keep_next=true ;;
3219 esac
3220 fi
cristy8b350f62009-11-15 23:12:43 +00003221 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003222 ;;
3223 esac
3224 done
3225done
cristy8b350f62009-11-15 23:12:43 +00003226{ ac_configure_args0=; unset ac_configure_args0;}
3227{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003228
3229# When interrupted or exit'd, cleanup temporary files, and complete
3230# config.log. We remove comments because anyway the quotes in there
3231# would cause problems or look ugly.
3232# WARNING: Use '\'' to represent an apostrophe within the trap.
3233# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3234trap 'exit_status=$?
3235 # Save into config.log some information that might help in debugging.
3236 {
3237 echo
3238
cristy98dddb52010-11-04 00:30:15 +00003239 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003240## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003241## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003242 echo
3243 # The following way of writing the cache mishandles newlines in values,
3244(
3245 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3246 eval ac_val=\$$ac_var
3247 case $ac_val in #(
3248 *${as_nl}*)
3249 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003250 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003251$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3252 esac
3253 case $ac_var in #(
3254 _ | IFS | as_nl) ;; #(
3255 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003256 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003257 esac ;;
3258 esac
3259 done
3260 (set) 2>&1 |
3261 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3262 *${as_nl}ac_space=\ *)
3263 sed -n \
3264 "s/'\''/'\''\\\\'\'''\''/g;
3265 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3266 ;; #(
3267 *)
3268 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3269 ;;
3270 esac |
3271 sort
3272)
3273 echo
3274
cristy98dddb52010-11-04 00:30:15 +00003275 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003276## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003277## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003278 echo
3279 for ac_var in $ac_subst_vars
3280 do
3281 eval ac_val=\$$ac_var
3282 case $ac_val in
3283 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3284 esac
3285 $as_echo "$ac_var='\''$ac_val'\''"
3286 done | sort
3287 echo
3288
3289 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003290 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003291## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003292## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003293 echo
3294 for ac_var in $ac_subst_files
3295 do
3296 eval ac_val=\$$ac_var
3297 case $ac_val in
3298 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3299 esac
3300 $as_echo "$ac_var='\''$ac_val'\''"
3301 done | sort
3302 echo
3303 fi
3304
3305 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003306 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003307## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003308## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003309 echo
3310 cat confdefs.h
3311 echo
3312 fi
3313 test "$ac_signal" != 0 &&
3314 $as_echo "$as_me: caught signal $ac_signal"
3315 $as_echo "$as_me: exit $exit_status"
3316 } >&5
3317 rm -f core *.core core.conftest.* &&
3318 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3319 exit $exit_status
3320' 0
3321for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003322 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003323done
3324ac_signal=0
3325
3326# confdefs.h avoids OS command line length limits that DEFS can exceed.
3327rm -f -r conftest* confdefs.h
3328
cristy8b350f62009-11-15 23:12:43 +00003329$as_echo "/* confdefs.h */" > confdefs.h
3330
cristy3ed852e2009-09-05 21:47:34 +00003331# Predefined preprocessor variables.
3332
3333cat >>confdefs.h <<_ACEOF
3334#define PACKAGE_NAME "$PACKAGE_NAME"
3335_ACEOF
3336
cristy3ed852e2009-09-05 21:47:34 +00003337cat >>confdefs.h <<_ACEOF
3338#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3339_ACEOF
3340
cristy3ed852e2009-09-05 21:47:34 +00003341cat >>confdefs.h <<_ACEOF
3342#define PACKAGE_VERSION "$PACKAGE_VERSION"
3343_ACEOF
3344
cristy3ed852e2009-09-05 21:47:34 +00003345cat >>confdefs.h <<_ACEOF
3346#define PACKAGE_STRING "$PACKAGE_STRING"
3347_ACEOF
3348
cristy3ed852e2009-09-05 21:47:34 +00003349cat >>confdefs.h <<_ACEOF
3350#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3351_ACEOF
3352
cristy8b350f62009-11-15 23:12:43 +00003353cat >>confdefs.h <<_ACEOF
3354#define PACKAGE_URL "$PACKAGE_URL"
3355_ACEOF
3356
cristy3ed852e2009-09-05 21:47:34 +00003357
3358# Let the site file select an alternate cache file if it wants to.
3359# Prefer an explicitly selected file to automatically selected ones.
3360ac_site_file1=NONE
3361ac_site_file2=NONE
3362if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003363 # We do not want a PATH search for config.site.
3364 case $CONFIG_SITE in #((
3365 -*) ac_site_file1=./$CONFIG_SITE;;
3366 */*) ac_site_file1=$CONFIG_SITE;;
3367 *) ac_site_file1=./$CONFIG_SITE;;
3368 esac
cristy3ed852e2009-09-05 21:47:34 +00003369elif test "x$prefix" != xNONE; then
3370 ac_site_file1=$prefix/share/config.site
3371 ac_site_file2=$prefix/etc/config.site
3372else
3373 ac_site_file1=$ac_default_prefix/share/config.site
3374 ac_site_file2=$ac_default_prefix/etc/config.site
3375fi
3376for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3377do
3378 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003379 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003380 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003381$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3382 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003383 . "$ac_site_file" \
3384 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386as_fn_error $? "failed to load site script $ac_site_file
3387See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003388 fi
3389done
3390
3391if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003392 # Some versions of bash will fail to source /dev/null (special files
3393 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3394 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003395 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003396$as_echo "$as_me: loading cache $cache_file" >&6;}
3397 case $cache_file in
3398 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3399 *) . "./$cache_file";;
3400 esac
3401 fi
3402else
cristy8b350f62009-11-15 23:12:43 +00003403 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003404$as_echo "$as_me: creating cache $cache_file" >&6;}
3405 >$cache_file
3406fi
3407
cristycd4c5312009-11-22 01:19:08 +00003408as_fn_append ac_header_list " stdlib.h"
3409as_fn_append ac_header_list " unistd.h"
3410as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003411# Check that the precious variables saved in the cache have kept the same
3412# value.
3413ac_cache_corrupted=false
3414for ac_var in $ac_precious_vars; do
3415 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3416 eval ac_new_set=\$ac_env_${ac_var}_set
3417 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3418 eval ac_new_val=\$ac_env_${ac_var}_value
3419 case $ac_old_set,$ac_new_set in
3420 set,)
cristy8b350f62009-11-15 23:12:43 +00003421 { $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 +00003422$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3423 ac_cache_corrupted=: ;;
3424 ,set)
cristy8b350f62009-11-15 23:12:43 +00003425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003426$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3427 ac_cache_corrupted=: ;;
3428 ,);;
3429 *)
3430 if test "x$ac_old_val" != "x$ac_new_val"; then
3431 # differences in whitespace do not lead to failure.
3432 ac_old_val_w=`echo x $ac_old_val`
3433 ac_new_val_w=`echo x $ac_new_val`
3434 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003436$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3437 ac_cache_corrupted=:
3438 else
cristy8b350f62009-11-15 23:12:43 +00003439 { $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 +00003440$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3441 eval $ac_var=\$ac_old_val
3442 fi
cristy8b350f62009-11-15 23:12:43 +00003443 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003444$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003445 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003446$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3447 fi;;
3448 esac
3449 # Pass precious variables to config.status.
3450 if test "$ac_new_set" = set; then
3451 case $ac_new_val in
3452 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3453 *) ac_arg=$ac_var=$ac_new_val ;;
3454 esac
3455 case " $ac_configure_args " in
3456 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003457 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003458 esac
3459 fi
3460done
3461if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003465$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003466 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003467fi
cristy8b350f62009-11-15 23:12:43 +00003468## -------------------- ##
3469## Main body of script. ##
3470## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003471
3472ac_ext=c
3473ac_cpp='$CPP $CPPFLAGS'
3474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477
3478
3479
3480ac_aux_dir=
3481for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003482 if test -f "$ac_dir/install-sh"; then
3483 ac_aux_dir=$ac_dir
3484 ac_install_sh="$ac_aux_dir/install-sh -c"
3485 break
3486 elif test -f "$ac_dir/install.sh"; then
3487 ac_aux_dir=$ac_dir
3488 ac_install_sh="$ac_aux_dir/install.sh -c"
3489 break
3490 elif test -f "$ac_dir/shtool"; then
3491 ac_aux_dir=$ac_dir
3492 ac_install_sh="$ac_aux_dir/shtool install -c"
3493 break
3494 fi
cristy3ed852e2009-09-05 21:47:34 +00003495done
3496if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003497 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003498fi
3499
3500# These three variables are undocumented and unsupported,
3501# and are intended to be withdrawn in a future Autoconf release.
3502# They can cause serious problems if a builder's source tree is in a directory
3503# whose full name contains unusual characters.
3504ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3505ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3506ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3507
3508
3509
3510
3511ac_config_headers="$ac_config_headers config/config.h"
3512
cristy24fc1fe2010-10-23 21:13:01 +00003513
cristy01ff9f32012-12-01 18:15:29 +00003514ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003515
cristy8d0ff762013-03-10 20:33:28 +00003516ac_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 +00003517
3518
3519#
3520# Save initial user-tunable values
3521#
3522USER_LIBS=$LIBS
3523for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3524 eval isset=\${$var+set}
3525 if test "$isset" = 'set'; then
3526 eval val=$`echo $var`
3527 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3528 fi
3529done
3530
3531
3532CONFIGURE_ARGS="$0 ${ac_configure_args}"
3533
3534
3535# Source file containing package/library versioning information.
3536. ${srcdir}/version.sh
3537
cristy15a88782010-01-31 23:24:49 +00003538echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003539# Make sure we can run config.sub.
3540$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003541 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003542
cristy8b350f62009-11-15 23:12:43 +00003543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003544$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003545if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003546 $as_echo_n "(cached) " >&6
3547else
3548 ac_build_alias=$build_alias
3549test "x$ac_build_alias" = x &&
3550 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3551test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003552 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003553ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003554 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003555
3556fi
cristy8b350f62009-11-15 23:12:43 +00003557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003558$as_echo "$ac_cv_build" >&6; }
3559case $ac_cv_build in
3560*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003561*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003562esac
3563build=$ac_cv_build
3564ac_save_IFS=$IFS; IFS='-'
3565set x $ac_cv_build
3566shift
3567build_cpu=$1
3568build_vendor=$2
3569shift; shift
3570# Remember, the first character of IFS is used to create $*,
3571# except with old shells:
3572build_os=$*
3573IFS=$ac_save_IFS
3574case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3575
3576
cristy8b350f62009-11-15 23:12:43 +00003577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003578$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003579if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003580 $as_echo_n "(cached) " >&6
3581else
3582 if test "x$host_alias" = x; then
3583 ac_cv_host=$ac_cv_build
3584else
3585 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003586 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003587fi
3588
3589fi
cristy8b350f62009-11-15 23:12:43 +00003590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003591$as_echo "$ac_cv_host" >&6; }
3592case $ac_cv_host in
3593*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003594*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003595esac
3596host=$ac_cv_host
3597ac_save_IFS=$IFS; IFS='-'
3598set x $ac_cv_host
3599shift
3600host_cpu=$1
3601host_vendor=$2
3602shift; shift
3603# Remember, the first character of IFS is used to create $*,
3604# except with old shells:
3605host_os=$*
3606IFS=$ac_save_IFS
3607case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3608
3609
cristy8b350f62009-11-15 23:12:43 +00003610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003611$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003612if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003613 $as_echo_n "(cached) " >&6
3614else
3615 if test "x$target_alias" = x; then
3616 ac_cv_target=$ac_cv_host
3617else
3618 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003619 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003620fi
3621
3622fi
cristy8b350f62009-11-15 23:12:43 +00003623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003624$as_echo "$ac_cv_target" >&6; }
3625case $ac_cv_target in
3626*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003627*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003628esac
3629target=$ac_cv_target
3630ac_save_IFS=$IFS; IFS='-'
3631set x $ac_cv_target
3632shift
3633target_cpu=$1
3634target_vendor=$2
3635shift; shift
3636# Remember, the first character of IFS is used to create $*,
3637# except with old shells:
3638target_os=$*
3639IFS=$ac_save_IFS
3640case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3641
3642
3643# The aliases save the names the user supplied, while $host etc.
3644# will get canonicalized.
3645test -n "$target_alias" &&
3646 test "$program_prefix$program_suffix$program_transform_name" = \
3647 NONENONEs,x,x, &&
3648 program_prefix=${target_alias}-
3649
cristy837d6dc2010-02-27 01:16:57 +00003650
3651
3652
cristy8be34142012-06-17 14:07:18 +00003653
cristy19615b82011-04-13 20:02:01 +00003654MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003655
3656
cristy27d53d62012-07-29 23:30:07 +00003657cat >>confdefs.h <<_ACEOF
3658#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3659_ACEOF
3660
3661
cristy19615b82011-04-13 20:02:01 +00003662MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003663
3664
cristy27d53d62012-07-29 23:30:07 +00003665cat >>confdefs.h <<_ACEOF
3666#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3667_ACEOF
3668
3669
cristy19615b82011-04-13 20:02:01 +00003670MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003671
3672
cristy27d53d62012-07-29 23:30:07 +00003673cat >>confdefs.h <<_ACEOF
3674#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3675_ACEOF
3676
3677
cristy37442762013-02-10 21:07:23 +00003678
3679# Substitute versioning
3680MAGICK_MAJOR_VERSION=7
3681
3682MAGICK_MINOR_VERSION=0
3683
3684MAGICK_MICRO_VERSION=0
3685
3686MAGICK_PATCHLEVEL_VERSION=0
3687
3688MAGICK_VERSION=7.0.0-0
3689
cristya5bda012013-11-03 18:05:38 +00003690MAGICK_SVN_REVISION=13660:13662M
cristy37442762013-02-10 21:07:23 +00003691
3692
cristy3ed852e2009-09-05 21:47:34 +00003693# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003694MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3695
3696MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3697
cristy37442762013-02-10 21:07:23 +00003698
cristy5ed9c6e2013-07-14 21:20:31 +00003699MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3700
3701MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3702
3703
cristyd694ca32011-03-27 21:42:54 +00003704
cristy3ed852e2009-09-05 21:47:34 +00003705# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3707$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003708# Reject unsafe characters in $srcdir or the absolute working directory
3709# name. Accept space and tab only in the latter.
3710am_lf='
3711'
3712case `pwd` in
3713 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003714 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003715esac
3716case $srcdir in
3717 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003718 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003719esac
cristy3ed852e2009-09-05 21:47:34 +00003720
cristyc0890a62012-07-19 00:18:20 +00003721# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003722# arguments. Must try -L first in case configure is actually a
3723# symlink; some systems play weird games with the mod time of symlinks
3724# (eg FreeBSD returns the mod time of the symlink's containing
3725# directory).
3726if (
cristyc0890a62012-07-19 00:18:20 +00003727 am_has_slept=no
3728 for am_try in 1 2; do
3729 echo "timestamp, slept: $am_has_slept" > conftest.file
3730 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3731 if test "$*" = "X"; then
3732 # -L didn't work.
3733 set X `ls -t "$srcdir/configure" conftest.file`
3734 fi
3735 if test "$*" != "X $srcdir/configure conftest.file" \
3736 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003737
cristyc0890a62012-07-19 00:18:20 +00003738 # If neither matched, then we have a broken ls. This can happen
3739 # if, for instance, CONFIG_SHELL is bash and it inherits a
3740 # broken ls alias from the environment. This has actually
3741 # happened. Such a system could not be considered "sane".
3742 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3743 alias in your environment" "$LINENO" 5
3744 fi
3745 if test "$2" = conftest.file || test $am_try -eq 2; then
3746 break
3747 fi
3748 # Just in case.
3749 sleep 1
3750 am_has_slept=yes
3751 done
cristy73bd4a52010-10-05 11:24:23 +00003752 test "$2" = conftest.file
3753 )
3754then
3755 # Ok.
3756 :
3757else
cristy98dddb52010-11-04 00:30:15 +00003758 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003759Check your system clock" "$LINENO" 5
3760fi
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3762$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003763# If we didn't sleep, we still need to ensure time stamps of config.status and
3764# generated files are strictly newer.
3765am_sleep_pid=
3766if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3767 ( sleep 1 ) &
3768 am_sleep_pid=$!
3769fi
cristy73bd4a52010-10-05 11:24:23 +00003770
cristyc0890a62012-07-19 00:18:20 +00003771rm -f conftest.file
3772
3773
cristya5bda012013-11-03 18:05:38 +00003774am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003775
3776# Find a good install program. We prefer a C program (faster),
3777# so one script is as good as another. But avoid the broken or
3778# incompatible versions:
3779# SysV /etc/install, /usr/sbin/install
3780# SunOS /usr/etc/install
3781# IRIX /sbin/install
3782# AIX /bin/install
3783# AmigaOS /C/install, which installs bootblocks on floppy discs
3784# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3785# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3786# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3787# OS/2's system install, which has a completely different semantic
3788# ./install, which can be erroneously created by make from ./install.sh.
3789# Reject install programs that cannot install multiple files.
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3791$as_echo_n "checking for a BSD-compatible install... " >&6; }
3792if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003793if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003794 $as_echo_n "(cached) " >&6
3795else
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797for as_dir in $PATH
3798do
3799 IFS=$as_save_IFS
3800 test -z "$as_dir" && as_dir=.
3801 # Account for people who put trailing slashes in PATH elements.
3802case $as_dir/ in #((
3803 ./ | .// | /[cC]/* | \
3804 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3805 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3806 /usr/ucb/* ) ;;
3807 *)
3808 # OSF1 and SCO ODT 3.0 have their own names for install.
3809 # Don't use installbsd from OSF since it installs stuff as root
3810 # by default.
3811 for ac_prog in ginstall scoinst install; do
3812 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003813 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003814 if test $ac_prog = install &&
3815 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3816 # AIX install. It has an incompatible calling convention.
3817 :
3818 elif test $ac_prog = install &&
3819 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3820 # program-specific install script used by HP pwplus--don't use.
3821 :
3822 else
3823 rm -rf conftest.one conftest.two conftest.dir
3824 echo one > conftest.one
3825 echo two > conftest.two
3826 mkdir conftest.dir
3827 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3828 test -s conftest.one && test -s conftest.two &&
3829 test -s conftest.dir/conftest.one &&
3830 test -s conftest.dir/conftest.two
3831 then
3832 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3833 break 3
3834 fi
3835 fi
3836 fi
3837 done
3838 done
3839 ;;
3840esac
3841
3842 done
3843IFS=$as_save_IFS
3844
3845rm -rf conftest.one conftest.two conftest.dir
3846
3847fi
3848 if test "${ac_cv_path_install+set}" = set; then
3849 INSTALL=$ac_cv_path_install
3850 else
3851 # As a last resort, use the slow shell script. Don't cache a
3852 # value for INSTALL within a source directory, because that will
3853 # break other packages using the cache if that directory is
3854 # removed, or if the value is a relative name.
3855 INSTALL=$ac_install_sh
3856 fi
3857fi
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3859$as_echo "$INSTALL" >&6; }
3860
3861# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3862# It thinks the first close brace ends the variable substitution.
3863test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3864
3865test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3866
3867test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3868
3869test "$program_prefix" != NONE &&
3870 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3871# Use a double $ so make ignores it.
3872test "$program_suffix" != NONE &&
3873 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3874# Double any \ or $.
3875# By default was `s,x,x', remove it if useless.
3876ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3877program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3878
3879# expand $ac_aux_dir to an absolute path
3880am_aux_dir=`cd $ac_aux_dir && pwd`
3881
3882if test x"${MISSING+set}" != xset; then
3883 case $am_aux_dir in
3884 *\ * | *\ *)
3885 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3886 *)
3887 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3888 esac
3889fi
3890# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003891if eval "$MISSING --is-lightweight"; then
3892 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003893else
3894 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3896$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003897fi
3898
3899if test x"${install_sh}" != xset; then
3900 case $am_aux_dir in
3901 *\ * | *\ *)
3902 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3903 *)
3904 install_sh="\${SHELL} $am_aux_dir/install-sh"
3905 esac
3906fi
3907
cristyc0890a62012-07-19 00:18:20 +00003908# Installed binaries are usually stripped using 'strip' when the user
3909# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003910# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003911# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003912if test "$cross_compiling" != no; then
3913 if test -n "$ac_tool_prefix"; then
3914 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3915set dummy ${ac_tool_prefix}strip; ac_word=$2
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003918if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003919 $as_echo_n "(cached) " >&6
3920else
3921 if test -n "$STRIP"; then
3922 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3923else
3924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925for as_dir in $PATH
3926do
3927 IFS=$as_save_IFS
3928 test -z "$as_dir" && as_dir=.
3929 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003931 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 break 2
3934 fi
3935done
3936 done
3937IFS=$as_save_IFS
3938
3939fi
3940fi
3941STRIP=$ac_cv_prog_STRIP
3942if test -n "$STRIP"; then
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3944$as_echo "$STRIP" >&6; }
3945else
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947$as_echo "no" >&6; }
3948fi
3949
3950
3951fi
3952if test -z "$ac_cv_prog_STRIP"; then
3953 ac_ct_STRIP=$STRIP
3954 # Extract the first word of "strip", so it can be a program name with args.
3955set dummy strip; ac_word=$2
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003958if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003959 $as_echo_n "(cached) " >&6
3960else
3961 if test -n "$ac_ct_STRIP"; then
3962 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3963else
3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH
3966do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003971 ac_cv_prog_ac_ct_STRIP="strip"
3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 break 2
3974 fi
3975done
3976 done
3977IFS=$as_save_IFS
3978
3979fi
3980fi
3981ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3982if test -n "$ac_ct_STRIP"; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3984$as_echo "$ac_ct_STRIP" >&6; }
3985else
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987$as_echo "no" >&6; }
3988fi
3989
3990 if test "x$ac_ct_STRIP" = x; then
3991 STRIP=":"
3992 else
3993 case $cross_compiling:$ac_tool_warned in
3994yes:)
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3997ac_tool_warned=yes ;;
3998esac
3999 STRIP=$ac_ct_STRIP
4000 fi
4001else
4002 STRIP="$ac_cv_prog_STRIP"
4003fi
4004
4005fi
4006INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4007
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4009$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4010if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004011 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004012 $as_echo_n "(cached) " >&6
4013else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4016do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_prog in mkdir gmkdir; do
4020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004021 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004022 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4023 'mkdir (GNU coreutils) '* | \
4024 'mkdir (coreutils) '* | \
4025 'mkdir (fileutils) '4.1*)
4026 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4027 break 3;;
4028 esac
4029 done
4030 done
4031 done
4032IFS=$as_save_IFS
4033
4034fi
4035
4036 test -d ./--version && rmdir ./--version
4037 if test "${ac_cv_path_mkdir+set}" = set; then
4038 MKDIR_P="$ac_cv_path_mkdir -p"
4039 else
4040 # As a last resort, use the slow shell script. Don't cache a
4041 # value for MKDIR_P within a source directory, because that will
4042 # break other packages using the cache if that directory is
4043 # removed, or if the value is a relative name.
4044 MKDIR_P="$ac_install_sh -d"
4045 fi
4046fi
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4048$as_echo "$MKDIR_P" >&6; }
4049
cristy73bd4a52010-10-05 11:24:23 +00004050for ac_prog in gawk mawk nawk awk
4051do
4052 # Extract the first word of "$ac_prog", so it can be a program name with args.
4053set dummy $ac_prog; ac_word=$2
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4055$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004056if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004057 $as_echo_n "(cached) " >&6
4058else
4059 if test -n "$AWK"; then
4060 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4061else
4062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063for as_dir in $PATH
4064do
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004069 ac_cv_prog_AWK="$ac_prog"
4070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 break 2
4072 fi
4073done
4074 done
4075IFS=$as_save_IFS
4076
4077fi
4078fi
4079AWK=$ac_cv_prog_AWK
4080if test -n "$AWK"; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4082$as_echo "$AWK" >&6; }
4083else
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085$as_echo "no" >&6; }
4086fi
4087
4088
4089 test -n "$AWK" && break
4090done
4091
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4093$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4094set x ${MAKE-make}
4095ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004096if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004097 $as_echo_n "(cached) " >&6
4098else
4099 cat >conftest.make <<\_ACEOF
4100SHELL = /bin/sh
4101all:
4102 @echo '@@@%%%=$(MAKE)=@@@%%%'
4103_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004104# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004105case `${MAKE-make} -f conftest.make 2>/dev/null` in
4106 *@@@%%%=?*=@@@%%%*)
4107 eval ac_cv_prog_make_${ac_make}_set=yes;;
4108 *)
4109 eval ac_cv_prog_make_${ac_make}_set=no;;
4110esac
4111rm -f conftest.make
4112fi
4113if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4115$as_echo "yes" >&6; }
4116 SET_MAKE=
4117else
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119$as_echo "no" >&6; }
4120 SET_MAKE="MAKE=${MAKE-make}"
4121fi
4122
4123rm -rf .tst 2>/dev/null
4124mkdir .tst 2>/dev/null
4125if test -d .tst; then
4126 am__leading_dot=.
4127else
4128 am__leading_dot=_
4129fi
4130rmdir .tst 2>/dev/null
4131
cristya448bd22011-10-14 12:38:13 +00004132# Check whether --enable-silent-rules was given.
4133if test "${enable_silent_rules+set}" = set; then :
4134 enableval=$enable_silent_rules;
4135fi
4136
cristyc0890a62012-07-19 00:18:20 +00004137case $enable_silent_rules in # (((
4138 yes) AM_DEFAULT_VERBOSITY=0;;
4139 no) AM_DEFAULT_VERBOSITY=1;;
4140 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004141esac
cristyc3fb77b2012-02-06 01:49:41 +00004142am_make=${MAKE-make}
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4144$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4145if ${am_cv_make_support_nested_variables+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147else
4148 if $as_echo 'TRUE=$(BAR$(V))
4149BAR0=false
4150BAR1=true
4151V=1
4152am__doit:
4153 @$(TRUE)
4154.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4155 am_cv_make_support_nested_variables=yes
4156else
4157 am_cv_make_support_nested_variables=no
4158fi
4159fi
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4161$as_echo "$am_cv_make_support_nested_variables" >&6; }
4162if test $am_cv_make_support_nested_variables = yes; then
4163 AM_V='$(V)'
4164 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4165else
4166 AM_V=$AM_DEFAULT_VERBOSITY
4167 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4168fi
cristya448bd22011-10-14 12:38:13 +00004169AM_BACKSLASH='\'
4170
cristy73bd4a52010-10-05 11:24:23 +00004171if test "`cd $srcdir && pwd`" != "`pwd`"; then
4172 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4173 # is not polluted with repeated "-I."
4174 am__isrc=' -I$(srcdir)'
4175 # test to see if srcdir already configured
4176 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004177 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004178 fi
4179fi
4180
4181# test whether we have cygpath
4182if test -z "$CYGPATH_W"; then
4183 if (cygpath --version) >/dev/null 2>/dev/null; then
4184 CYGPATH_W='cygpath -w'
4185 else
4186 CYGPATH_W=echo
4187 fi
4188fi
4189
4190
4191# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004192 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004193 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004194
4195
cristya448bd22011-10-14 12:38:13 +00004196cat >>confdefs.h <<_ACEOF
4197#define PACKAGE "$PACKAGE"
4198_ACEOF
4199
4200
4201cat >>confdefs.h <<_ACEOF
4202#define VERSION "$VERSION"
4203_ACEOF
4204
cristy73bd4a52010-10-05 11:24:23 +00004205# Some tools Automake needs.
4206
4207ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4208
4209
4210AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4211
4212
4213AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4214
4215
4216AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4217
4218
4219MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4220
cristyc0890a62012-07-19 00:18:20 +00004221# For better backward compatibility. To be removed once Automake 1.9.x
4222# dies out for good. For more background, see:
4223# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4224# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4225mkdir_p='$(MKDIR_P)'
4226
cristy73bd4a52010-10-05 11:24:23 +00004227# We need awk for the "check" target. The system "awk" is bad on
4228# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004229# Always define AMTAR for backward compatibility. Yes, it's still used
4230# in the wild :-( We should find a proper way to deprecate it ...
4231AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004232
cristye69bdbe2013-05-03 21:40:44 +00004233
4234# We'll loop over all known methods to create a tar archive until one works.
4235_am_tools='gnutar pax cpio none'
4236
cristyc3fb77b2012-02-06 01:49:41 +00004237am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004238
4239
4240
4241
4242
cristy3ed852e2009-09-05 21:47:34 +00004243
cristya5bda012013-11-03 18:05:38 +00004244# POSIX will say in a future version that running "rm -f" with no argument
4245# is OK; and we want to be able to make that assumption in our Makefile
4246# recipes. So use an aggressive probe to check that the usage we want is
4247# actually supported "in the wild" to an acceptable degree.
4248# See automake bug#10828.
4249# To make any issue more visible, cause the running configure to be aborted
4250# by default if the 'rm' program in use doesn't match our expectations; the
4251# user can still override this though.
4252if rm -f && rm -fr && rm -rf; then : OK; else
4253 cat >&2 <<'END'
4254Oops!
4255
4256Your 'rm' program seems unable to run without file operands specified
4257on the command line, even when the '-f' option is present. This is contrary
4258to the behaviour of most rm programs out there, and not conforming with
4259the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4260
4261Please tell bug-automake@gnu.org about your system, including the value
4262of your $PATH and any error possibly output before this message. This
4263can help us improve future automake versions.
4264
4265END
4266 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4267 echo 'Configuration will proceed anyway, since you have set the' >&2
4268 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4269 echo >&2
4270 else
4271 cat >&2 <<'END'
4272Aborting the configuration process, to ensure you take notice of the issue.
4273
4274You can download and install GNU coreutils to get an 'rm' implementation
4275that behaves properly: <http://www.gnu.org/software/coreutils/>.
4276
4277If you want to complete the configuration process using your problematic
4278'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4279to "yes", and re-run configure.
4280
4281END
4282 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4283 fi
4284fi
cristye69bdbe2013-05-03 21:40:44 +00004285
cristy3ed852e2009-09-05 21:47:34 +00004286# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004287# Check whether --enable-silent-rules was given.
4288if test "${enable_silent_rules+set}" = set; then :
4289 enableval=$enable_silent_rules;
4290fi
4291
cristyc0890a62012-07-19 00:18:20 +00004292case $enable_silent_rules in # (((
4293 yes) AM_DEFAULT_VERBOSITY=0;;
4294 no) AM_DEFAULT_VERBOSITY=1;;
4295 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004296esac
cristyc3fb77b2012-02-06 01:49:41 +00004297am_make=${MAKE-make}
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4299$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4300if ${am_cv_make_support_nested_variables+:} false; then :
4301 $as_echo_n "(cached) " >&6
4302else
4303 if $as_echo 'TRUE=$(BAR$(V))
4304BAR0=false
4305BAR1=true
4306V=1
4307am__doit:
4308 @$(TRUE)
4309.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4310 am_cv_make_support_nested_variables=yes
4311else
4312 am_cv_make_support_nested_variables=no
4313fi
4314fi
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4316$as_echo "$am_cv_make_support_nested_variables" >&6; }
4317if test $am_cv_make_support_nested_variables = yes; then
4318 AM_V='$(V)'
4319 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4320else
4321 AM_V=$AM_DEFAULT_VERBOSITY
4322 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4323fi
cristy73bd4a52010-10-05 11:24:23 +00004324AM_BACKSLASH='\'
4325
cristy3ed852e2009-09-05 21:47:34 +00004326
cristy5ed9c6e2013-07-14 21:20:31 +00004327# versionning of library
cristy3ed852e2009-09-05 21:47:34 +00004328MAGICK_LIB_VERSION="0x"
4329if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4330 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4331fi
4332MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4333if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4334 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4335fi
4336MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4337if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4338 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4339fi
4340MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4341
4342
4343# Definition used to define MagickLibVersionText in version.h
4344MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4345
4346
4347# Definition used to define MagickLibVersionNumber in version.h
4348MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4349
4350
cristy5ed9c6e2013-07-14 21:20:31 +00004351MAGICKPP_LIB_VERSION="0x"
4352if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4353 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4354fi
4355MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4356if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4357 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4358fi
4359MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4360if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4361 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4362fi
4363MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4364
4365
4366# Definition used to define MagickLibVersionText in version.h
4367MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4368
4369
4370# Definition used to define MagickLibVersionNumber in version.h
4371MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4372
4373
4374
4375
cristy3ed852e2009-09-05 21:47:34 +00004376# Regenerate config.status if ChangeLog or version.sh is updated.
4377CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4378
4379
4380PERLMAINCC=$CC
4381
4382MAGICK_CFLAGS=''
4383MAGICK_CPPFLAGS=$CPPFLAGS_USER
4384MAGICK_PCFLAGS=$CPPFLAGS_USER
4385MAGICK_LDFLAGS=''
4386MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004387MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004388
4389#
4390# Evaluate shell variable equivalents to Makefile directory variables
4391#
4392if test "x$prefix" = xNONE; then
4393 prefix=$ac_default_prefix
4394fi
4395# Let make expand exec_prefix.
4396if test "x$exec_prefix" = xNONE; then
4397 exec_prefix='${prefix}'
4398fi
4399
4400#
4401eval "eval PREFIX_DIR=${prefix}"
4402
4403eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4404
4405eval "eval BIN_DIR=$bindir"
4406
4407eval "eval SBIN_DIR=$sbindir"
4408
4409eval "eval LIBEXEC_DIR=$libexecdir"
4410
4411eval "eval DATA_DIR=$datadir"
4412
cristy4e65ec22012-04-08 01:33:27 +00004413eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004414
cristy3ed852e2009-09-05 21:47:34 +00004415eval "eval SYSCONF_DIR=$sysconfdir"
4416
4417eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4418
4419eval "eval LOCALSTATE_DIR=$localstatedir"
4420
4421eval "eval LIB_DIR=$libdir"
4422
4423eval "eval INCLUDE_DIR=$includedir"
4424
4425eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4426
4427eval "eval INFO_DIR=$infodir"
4428
4429eval "eval MAN_DIR=$mandir"
4430
4431
4432# Get full paths to source and build directories
4433srcdirfull="`cd $srcdir && pwd`"
4434builddir="`pwd`"
4435
4436#
4437# Compute variables useful for running uninstalled software.
4438#
4439MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4440MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4441MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4442MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4443DIRSEP=':'
4444case "${build_os}" in
4445 mingw* )
4446 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4447 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4448 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4449 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4450 DIRSEP=';'
4451 ;;
4452esac
4453case "${host_os}" in
4454 mingw* )
4455 DIRSEP=';'
4456 ;;
4457esac
4458
4459
4460
4461
4462
4463
cristya0b81c32010-01-22 02:54:33 +00004464
4465#
4466# Enable OS features.
4467#
cristy73bd4a52010-10-05 11:24:23 +00004468DEPDIR="${am__leading_dot}deps"
4469
4470ac_config_commands="$ac_config_commands depfiles"
4471
4472
4473am_make=${MAKE-make}
4474cat > confinc << 'END'
4475am__doit:
4476 @echo this is the am__doit target
4477.PHONY: am__doit
4478END
4479# If we don't find an include directive, just comment out the code.
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4481$as_echo_n "checking for style of include used by $am_make... " >&6; }
4482am__include="#"
4483am__quote=
4484_am_result=none
4485# First try GNU make style include.
4486echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004487# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004488case `$am_make -s -f confmf 2> /dev/null` in #(
4489*the\ am__doit\ target*)
4490 am__include=include
4491 am__quote=
4492 _am_result=GNU
4493 ;;
4494esac
4495# Now try BSD make style include.
4496if test "$am__include" = "#"; then
4497 echo '.include "confinc"' > confmf
4498 case `$am_make -s -f confmf 2> /dev/null` in #(
4499 *the\ am__doit\ target*)
4500 am__include=.include
4501 am__quote="\""
4502 _am_result=BSD
4503 ;;
4504 esac
4505fi
4506
4507
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4509$as_echo "$_am_result" >&6; }
4510rm -f confinc confmf
4511
4512# Check whether --enable-dependency-tracking was given.
4513if test "${enable_dependency_tracking+set}" = set; then :
4514 enableval=$enable_dependency_tracking;
4515fi
4516
4517if test "x$enable_dependency_tracking" != xno; then
4518 am_depcomp="$ac_aux_dir/depcomp"
4519 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004520 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004521fi
4522 if test "x$enable_dependency_tracking" != xno; then
4523 AMDEP_TRUE=
4524 AMDEP_FALSE='#'
4525else
4526 AMDEP_TRUE='#'
4527 AMDEP_FALSE=
4528fi
4529
4530
cristy3ed852e2009-09-05 21:47:34 +00004531ac_ext=c
4532ac_cpp='$CPP $CPPFLAGS'
4533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536if test -n "$ac_tool_prefix"; then
4537 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4538set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004540$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004541if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004542 $as_echo_n "(cached) " >&6
4543else
4544 if test -n "$CC"; then
4545 ac_cv_prog_CC="$CC" # Let the user override the test.
4546else
4547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548for as_dir in $PATH
4549do
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004552 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004554 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004556 break 2
4557 fi
4558done
cristy8b350f62009-11-15 23:12:43 +00004559 done
cristy3ed852e2009-09-05 21:47:34 +00004560IFS=$as_save_IFS
4561
4562fi
4563fi
4564CC=$ac_cv_prog_CC
4565if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004567$as_echo "$CC" >&6; }
4568else
cristy8b350f62009-11-15 23:12:43 +00004569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004570$as_echo "no" >&6; }
4571fi
4572
4573
4574fi
4575if test -z "$ac_cv_prog_CC"; then
4576 ac_ct_CC=$CC
4577 # Extract the first word of "gcc", so it can be a program name with args.
4578set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004580$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004581if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004582 $as_echo_n "(cached) " >&6
4583else
4584 if test -n "$ac_ct_CC"; then
4585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4586else
4587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588for as_dir in $PATH
4589do
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004592 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004594 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004596 break 2
4597 fi
4598done
cristy8b350f62009-11-15 23:12:43 +00004599 done
cristy3ed852e2009-09-05 21:47:34 +00004600IFS=$as_save_IFS
4601
4602fi
4603fi
4604ac_ct_CC=$ac_cv_prog_ac_ct_CC
4605if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004607$as_echo "$ac_ct_CC" >&6; }
4608else
cristy8b350f62009-11-15 23:12:43 +00004609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004610$as_echo "no" >&6; }
4611fi
4612
4613 if test "x$ac_ct_CC" = x; then
4614 CC=""
4615 else
4616 case $cross_compiling:$ac_tool_warned in
4617yes:)
cristy8b350f62009-11-15 23:12:43 +00004618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4620ac_tool_warned=yes ;;
4621esac
4622 CC=$ac_ct_CC
4623 fi
4624else
4625 CC="$ac_cv_prog_CC"
4626fi
4627
4628if test -z "$CC"; then
4629 if test -n "$ac_tool_prefix"; then
4630 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4631set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004633$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004634if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004635 $as_echo_n "(cached) " >&6
4636else
4637 if test -n "$CC"; then
4638 ac_cv_prog_CC="$CC" # Let the user override the test.
4639else
4640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641for as_dir in $PATH
4642do
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004645 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004647 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004649 break 2
4650 fi
4651done
cristy8b350f62009-11-15 23:12:43 +00004652 done
cristy3ed852e2009-09-05 21:47:34 +00004653IFS=$as_save_IFS
4654
4655fi
4656fi
4657CC=$ac_cv_prog_CC
4658if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004660$as_echo "$CC" >&6; }
4661else
cristy8b350f62009-11-15 23:12:43 +00004662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004663$as_echo "no" >&6; }
4664fi
4665
4666
4667 fi
4668fi
4669if test -z "$CC"; then
4670 # Extract the first word of "cc", so it can be a program name with args.
4671set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004673$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004674if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004675 $as_echo_n "(cached) " >&6
4676else
4677 if test -n "$CC"; then
4678 ac_cv_prog_CC="$CC" # Let the user override the test.
4679else
4680 ac_prog_rejected=no
4681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682for as_dir in $PATH
4683do
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004686 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004688 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4689 ac_prog_rejected=yes
4690 continue
4691 fi
4692 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004694 break 2
4695 fi
4696done
cristy8b350f62009-11-15 23:12:43 +00004697 done
cristy3ed852e2009-09-05 21:47:34 +00004698IFS=$as_save_IFS
4699
4700if test $ac_prog_rejected = yes; then
4701 # We found a bogon in the path, so make sure we never use it.
4702 set dummy $ac_cv_prog_CC
4703 shift
4704 if test $# != 0; then
4705 # We chose a different compiler from the bogus one.
4706 # However, it has the same basename, so the bogon will be chosen
4707 # first if we set CC to just the basename; use the full file name.
4708 shift
4709 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4710 fi
4711fi
4712fi
4713fi
4714CC=$ac_cv_prog_CC
4715if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004717$as_echo "$CC" >&6; }
4718else
cristy8b350f62009-11-15 23:12:43 +00004719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004720$as_echo "no" >&6; }
4721fi
4722
4723
4724fi
4725if test -z "$CC"; then
4726 if test -n "$ac_tool_prefix"; then
4727 for ac_prog in cl.exe
4728 do
4729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4730set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004732$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004733if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004734 $as_echo_n "(cached) " >&6
4735else
4736 if test -n "$CC"; then
4737 ac_cv_prog_CC="$CC" # Let the user override the test.
4738else
4739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740for as_dir in $PATH
4741do
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004746 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004748 break 2
4749 fi
4750done
cristy8b350f62009-11-15 23:12:43 +00004751 done
cristy3ed852e2009-09-05 21:47:34 +00004752IFS=$as_save_IFS
4753
4754fi
4755fi
4756CC=$ac_cv_prog_CC
4757if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004759$as_echo "$CC" >&6; }
4760else
cristy8b350f62009-11-15 23:12:43 +00004761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004762$as_echo "no" >&6; }
4763fi
4764
4765
4766 test -n "$CC" && break
4767 done
4768fi
4769if test -z "$CC"; then
4770 ac_ct_CC=$CC
4771 for ac_prog in cl.exe
4772do
4773 # Extract the first word of "$ac_prog", so it can be a program name with args.
4774set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004776$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004777if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004778 $as_echo_n "(cached) " >&6
4779else
4780 if test -n "$ac_ct_CC"; then
4781 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4782else
4783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784for as_dir in $PATH
4785do
4786 IFS=$as_save_IFS
4787 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004788 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004790 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004792 break 2
4793 fi
4794done
cristy8b350f62009-11-15 23:12:43 +00004795 done
cristy3ed852e2009-09-05 21:47:34 +00004796IFS=$as_save_IFS
4797
4798fi
4799fi
4800ac_ct_CC=$ac_cv_prog_ac_ct_CC
4801if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004803$as_echo "$ac_ct_CC" >&6; }
4804else
cristy8b350f62009-11-15 23:12:43 +00004805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004806$as_echo "no" >&6; }
4807fi
4808
4809
4810 test -n "$ac_ct_CC" && break
4811done
4812
4813 if test "x$ac_ct_CC" = x; then
4814 CC=""
4815 else
4816 case $cross_compiling:$ac_tool_warned in
4817yes:)
cristy8b350f62009-11-15 23:12:43 +00004818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4820ac_tool_warned=yes ;;
4821esac
4822 CC=$ac_ct_CC
4823 fi
4824fi
4825
4826fi
4827
4828
cristy8b350f62009-11-15 23:12:43 +00004829test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004831as_fn_error $? "no acceptable C compiler found in \$PATH
4832See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004833
4834# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004835$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004836set X $ac_compile
4837ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004838for ac_option in --version -v -V -qversion; do
4839 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004840case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843esac
cristy8b350f62009-11-15 23:12:43 +00004844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4845$as_echo "$ac_try_echo"; } >&5
4846 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004847 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004848 if test -s conftest.err; then
4849 sed '10a\
4850... rest of stderr output deleted ...
4851 10q' conftest.err >conftest.er1
4852 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004853 fi
cristycd4c5312009-11-22 01:19:08 +00004854 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4856 test $ac_status = 0; }
4857done
cristy3ed852e2009-09-05 21:47:34 +00004858
cristy8b350f62009-11-15 23:12:43 +00004859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004860/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004861
cristy3ed852e2009-09-05 21:47:34 +00004862int
4863main ()
4864{
4865
4866 ;
4867 return 0;
4868}
4869_ACEOF
4870ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004871ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004872# Try to create an executable without -o first, disregard a.out.
4873# It will help us diagnose broken compilers, and finding out an intuition
4874# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4876$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004877ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4878
4879# The possible output files:
4880ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4881
4882ac_rmfiles=
4883for ac_file in $ac_files
4884do
4885 case $ac_file in
4886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4887 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4888 esac
4889done
4890rm -f $ac_rmfiles
4891
cristy8b350f62009-11-15 23:12:43 +00004892if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004893case "(($ac_try" in
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4896esac
cristy8b350f62009-11-15 23:12:43 +00004897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4898$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004899 (eval "$ac_link_default") 2>&5
4900 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4902 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004903 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4904# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4905# in a Makefile. We should not override ac_cv_exeext if it was cached,
4906# so that the user can short-circuit this test for compilers unknown to
4907# Autoconf.
4908for ac_file in $ac_files ''
4909do
4910 test -f "$ac_file" || continue
4911 case $ac_file in
4912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4913 ;;
4914 [ab].out )
4915 # We found the default executable, but exeext='' is most
4916 # certainly right.
4917 break;;
4918 *.* )
cristy8b350f62009-11-15 23:12:43 +00004919 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004920 then :; else
4921 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4922 fi
4923 # We set ac_cv_exeext here because the later test for it is not
4924 # safe: cross compilers may not add the suffix if given an `-o'
4925 # argument, so we may need to know it at that point already.
4926 # Even if this section looks crufty: it has the advantage of
4927 # actually working.
4928 break;;
4929 * )
4930 break;;
4931 esac
4932done
4933test "$ac_cv_exeext" = no && ac_cv_exeext=
4934
4935else
4936 ac_file=''
4937fi
cristy8b350f62009-11-15 23:12:43 +00004938if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940$as_echo "no" >&6; }
4941$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004942sed 's/^/| /' conftest.$ac_ext >&5
4943
cristy8b350f62009-11-15 23:12:43 +00004944{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004946as_fn_error 77 "C compiler cannot create executables
4947See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004948else
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4950$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004951fi
cristycd4c5312009-11-22 01:19:08 +00004952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4953$as_echo_n "checking for C compiler default output file name... " >&6; }
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4955$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004956ac_exeext=$ac_cv_exeext
4957
cristycd4c5312009-11-22 01:19:08 +00004958rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004959ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004961$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004962if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004963case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966esac
cristy8b350f62009-11-15 23:12:43 +00004967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4968$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004969 (eval "$ac_link") 2>&5
4970 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4972 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004973 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4974# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4975# work properly (i.e., refer to `conftest.exe'), while it won't with
4976# `rm'.
4977for ac_file in conftest.exe conftest conftest.*; do
4978 test -f "$ac_file" || continue
4979 case $ac_file in
4980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4981 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4982 break;;
4983 * ) break;;
4984 esac
4985done
4986else
cristy8b350f62009-11-15 23:12:43 +00004987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004989as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4990See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004991fi
cristycd4c5312009-11-22 01:19:08 +00004992rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004994$as_echo "$ac_cv_exeext" >&6; }
4995
4996rm -f conftest.$ac_ext
4997EXEEXT=$ac_cv_exeext
4998ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000/* end confdefs.h. */
5001#include <stdio.h>
5002int
5003main ()
5004{
5005FILE *f = fopen ("conftest.out", "w");
5006 return ferror (f) || fclose (f) != 0;
5007
5008 ;
5009 return 0;
5010}
5011_ACEOF
5012ac_clean_files="$ac_clean_files conftest.out"
5013# Check that the compiler produces executables we can run. If not, either
5014# the compiler is broken, or we cross compile.
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5016$as_echo_n "checking whether we are cross compiling... " >&6; }
5017if test "$cross_compiling" != yes; then
5018 { { ac_try="$ac_link"
5019case "(($ac_try" in
5020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5022esac
5023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5024$as_echo "$ac_try_echo"; } >&5
5025 (eval "$ac_link") 2>&5
5026 ac_status=$?
5027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5028 test $ac_status = 0; }
5029 if { ac_try='./conftest$ac_cv_exeext'
5030 { { case "(($ac_try" in
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5033esac
5034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5035$as_echo "$ac_try_echo"; } >&5
5036 (eval "$ac_try") 2>&5
5037 ac_status=$?
5038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5039 test $ac_status = 0; }; }; then
5040 cross_compiling=no
5041 else
5042 if test "$cross_compiling" = maybe; then
5043 cross_compiling=yes
5044 else
5045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005047as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005048If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005049See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005050 fi
5051 fi
5052fi
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5054$as_echo "$cross_compiling" >&6; }
5055
5056rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5057ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005059$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005060if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005061 $as_echo_n "(cached) " >&6
5062else
cristy8b350f62009-11-15 23:12:43 +00005063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005064/* end confdefs.h. */
5065
5066int
5067main ()
5068{
5069
5070 ;
5071 return 0;
5072}
5073_ACEOF
5074rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005075if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005076case "(($ac_try" in
5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 *) ac_try_echo=$ac_try;;
5079esac
cristy8b350f62009-11-15 23:12:43 +00005080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5081$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005082 (eval "$ac_compile") 2>&5
5083 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5085 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005086 for ac_file in conftest.o conftest.obj conftest.*; do
5087 test -f "$ac_file" || continue;
5088 case $ac_file in
5089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5090 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5091 break;;
5092 esac
5093done
5094else
5095 $as_echo "$as_me: failed program was:" >&5
5096sed 's/^/| /' conftest.$ac_ext >&5
5097
cristy8b350f62009-11-15 23:12:43 +00005098{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005100as_fn_error $? "cannot compute suffix of object files: cannot compile
5101See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005102fi
cristy3ed852e2009-09-05 21:47:34 +00005103rm -f conftest.$ac_cv_objext conftest.$ac_ext
5104fi
cristy8b350f62009-11-15 23:12:43 +00005105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005106$as_echo "$ac_cv_objext" >&6; }
5107OBJEXT=$ac_cv_objext
5108ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005110$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005111if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005112 $as_echo_n "(cached) " >&6
5113else
cristy8b350f62009-11-15 23:12:43 +00005114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005115/* end confdefs.h. */
5116
5117int
5118main ()
5119{
5120#ifndef __GNUC__
5121 choke me
5122#endif
5123
5124 ;
5125 return 0;
5126}
5127_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005128if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005129 ac_compiler_gnu=yes
5130else
cristy8b350f62009-11-15 23:12:43 +00005131 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005132fi
cristy3ed852e2009-09-05 21:47:34 +00005133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134ac_cv_c_compiler_gnu=$ac_compiler_gnu
5135
5136fi
cristy8b350f62009-11-15 23:12:43 +00005137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005138$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5139if test $ac_compiler_gnu = yes; then
5140 GCC=yes
5141else
5142 GCC=
5143fi
5144ac_test_CFLAGS=${CFLAGS+set}
5145ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005147$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005148if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005149 $as_echo_n "(cached) " >&6
5150else
5151 ac_save_c_werror_flag=$ac_c_werror_flag
5152 ac_c_werror_flag=yes
5153 ac_cv_prog_cc_g=no
5154 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005156/* end confdefs.h. */
5157
5158int
5159main ()
5160{
5161
5162 ;
5163 return 0;
5164}
5165_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005166if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005167 ac_cv_prog_cc_g=yes
5168else
cristy8b350f62009-11-15 23:12:43 +00005169 CFLAGS=""
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005171/* end confdefs.h. */
5172
5173int
5174main ()
5175{
5176
5177 ;
5178 return 0;
5179}
5180_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005181if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005182
cristy8b350f62009-11-15 23:12:43 +00005183else
5184 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005185 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005187/* end confdefs.h. */
5188
5189int
5190main ()
5191{
5192
5193 ;
5194 return 0;
5195}
5196_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005197if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005198 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005199fi
cristy3ed852e2009-09-05 21:47:34 +00005200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5201fi
cristy3ed852e2009-09-05 21:47:34 +00005202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203fi
cristy3ed852e2009-09-05 21:47:34 +00005204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205 ac_c_werror_flag=$ac_save_c_werror_flag
5206fi
cristy8b350f62009-11-15 23:12:43 +00005207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005208$as_echo "$ac_cv_prog_cc_g" >&6; }
5209if test "$ac_test_CFLAGS" = set; then
5210 CFLAGS=$ac_save_CFLAGS
5211elif test $ac_cv_prog_cc_g = yes; then
5212 if test "$GCC" = yes; then
5213 CFLAGS="-g -O2"
5214 else
5215 CFLAGS="-g"
5216 fi
5217else
5218 if test "$GCC" = yes; then
5219 CFLAGS="-O2"
5220 else
5221 CFLAGS=
5222 fi
5223fi
cristy8b350f62009-11-15 23:12:43 +00005224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005225$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005226if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005227 $as_echo_n "(cached) " >&6
5228else
5229 ac_cv_prog_cc_c89=no
5230ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005232/* end confdefs.h. */
5233#include <stdarg.h>
5234#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005235struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005236/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5237struct buf { int x; };
5238FILE * (*rcsopen) (struct buf *, struct stat *, int);
5239static char *e (p, i)
5240 char **p;
5241 int i;
5242{
5243 return p[i];
5244}
5245static char *f (char * (*g) (char **, int), char **p, ...)
5246{
5247 char *s;
5248 va_list v;
5249 va_start (v,p);
5250 s = g (p, va_arg (v,int));
5251 va_end (v);
5252 return s;
5253}
5254
5255/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5256 function prototypes and stuff, but not '\xHH' hex character constants.
5257 These don't provoke an error unfortunately, instead are silently treated
5258 as 'x'. The following induces an error, until -std is added to get
5259 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5260 array size at least. It's necessary to write '\x00'==0 to get something
5261 that's true only with -std. */
5262int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5263
5264/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5265 inside strings and character constants. */
5266#define FOO(x) 'x'
5267int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5268
5269int test (int i, double x);
5270struct s1 {int (*f) (int a);};
5271struct s2 {int (*f) (double a);};
5272int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5273int argc;
5274char **argv;
5275int
5276main ()
5277{
5278return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5279 ;
5280 return 0;
5281}
5282_ACEOF
5283for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5284 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5285do
5286 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005287 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005288 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005289fi
cristy3ed852e2009-09-05 21:47:34 +00005290rm -f core conftest.err conftest.$ac_objext
5291 test "x$ac_cv_prog_cc_c89" != "xno" && break
5292done
5293rm -f conftest.$ac_ext
5294CC=$ac_save_CC
5295
5296fi
5297# AC_CACHE_VAL
5298case "x$ac_cv_prog_cc_c89" in
5299 x)
cristy8b350f62009-11-15 23:12:43 +00005300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005301$as_echo "none needed" >&6; } ;;
5302 xno)
cristy8b350f62009-11-15 23:12:43 +00005303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005304$as_echo "unsupported" >&6; } ;;
5305 *)
5306 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005308$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5309esac
cristy8b350f62009-11-15 23:12:43 +00005310if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005311
cristy8b350f62009-11-15 23:12:43 +00005312fi
cristy3ed852e2009-09-05 21:47:34 +00005313
5314ac_ext=c
5315ac_cpp='$CPP $CPPFLAGS'
5316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5318ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005319
cristya5bda012013-11-03 18:05:38 +00005320ac_ext=c
5321ac_cpp='$CPP $CPPFLAGS'
5322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5324ac_compiler_gnu=$ac_cv_c_compiler_gnu
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5326$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5327if ${am_cv_prog_cc_c_o+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329else
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331/* end confdefs.h. */
5332
5333int
5334main ()
5335{
5336
5337 ;
5338 return 0;
5339}
5340_ACEOF
5341 # Make sure it works both with $CC and with simple cc.
5342 # Following AC_PROG_CC_C_O, we do the test twice because some
5343 # compilers refuse to overwrite an existing .o file with -o,
5344 # though they will create one.
5345 am_cv_prog_cc_c_o=yes
5346 for am_i in 1 2; do
5347 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5348 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } \
5352 && test -f conftest2.$ac_objext; then
5353 : OK
5354 else
5355 am_cv_prog_cc_c_o=no
5356 break
5357 fi
5358 done
5359 rm -f core conftest*
5360 unset am_i
5361fi
5362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5363$as_echo "$am_cv_prog_cc_c_o" >&6; }
5364if test "$am_cv_prog_cc_c_o" != yes; then
5365 # Losing compiler, so override with the script.
5366 # FIXME: It is wrong to rewrite CC.
5367 # But if we don't then we get into trouble of one sort or another.
5368 # A longer-term fix would be to have automake use am__CC in this case,
5369 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5370 CC="$am_aux_dir/compile $CC"
5371fi
5372ac_ext=c
5373ac_cpp='$CPP $CPPFLAGS'
5374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5376ac_compiler_gnu=$ac_cv_c_compiler_gnu
5377
5378
cristy73bd4a52010-10-05 11:24:23 +00005379depcc="$CC" am_compiler_list=
5380
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5382$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005383if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005384 $as_echo_n "(cached) " >&6
5385else
5386 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5387 # We make a subdir and do the tests there. Otherwise we can end up
5388 # making bogus files that we don't know about and never remove. For
5389 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005390 # making a dummy file named 'D' -- because '-MD' means "put the output
5391 # in D".
cristy7247bba2012-02-05 16:37:27 +00005392 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005393 mkdir conftest.dir
5394 # Copy depcomp to subdir because otherwise we won't find it if we're
5395 # using a relative directory.
5396 cp "$am_depcomp" conftest.dir
5397 cd conftest.dir
5398 # We will build objects and dependencies in a subdirectory because
5399 # it helps to detect inapplicable dependency modes. For instance
5400 # both Tru64's cc and ICC support -MD to output dependencies as a
5401 # side effect of compilation, but ICC will put the dependencies in
5402 # the current directory while Tru64 will put them in the object
5403 # directory.
5404 mkdir sub
5405
5406 am_cv_CC_dependencies_compiler_type=none
5407 if test "$am_compiler_list" = ""; then
5408 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5409 fi
5410 am__universal=false
5411 case " $depcc " in #(
5412 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5413 esac
5414
5415 for depmode in $am_compiler_list; do
5416 # Setup a source with many dependencies, because some compilers
5417 # like to wrap large dependency lists on column 80 (with \), and
5418 # we should not choose a depcomp mode which is confused by this.
5419 #
5420 # We need to recreate these files for each test, as the compiler may
5421 # overwrite some of them when testing with obscure command lines.
5422 # This happens at least with the AIX C compiler.
5423 : > sub/conftest.c
5424 for i in 1 2 3 4 5 6; do
5425 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005426 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5427 # Solaris 10 /bin/sh.
5428 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005429 done
5430 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5431
cristyc0890a62012-07-19 00:18:20 +00005432 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005433 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005434 # handle '-M -o', and we need to detect this. Also, some Intel
5435 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005436 am__obj=sub/conftest.${OBJEXT-o}
5437 am__minus_obj="-o $am__obj"
5438 case $depmode in
5439 gcc)
5440 # This depmode causes a compiler race in universal mode.
5441 test "$am__universal" = false || continue
5442 ;;
5443 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005444 # After this tag, mechanisms are not by side-effect, so they'll
5445 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005446 if test "x$enable_dependency_tracking" = xyes; then
5447 continue
5448 else
5449 break
5450 fi
5451 ;;
cristy7247bba2012-02-05 16:37:27 +00005452 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005453 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005454 # not run yet. These depmodes are late enough in the game, and
5455 # so weak that their functioning should not be impacted.
5456 am__obj=conftest.${OBJEXT-o}
5457 am__minus_obj=
5458 ;;
5459 none) break ;;
5460 esac
5461 if depmode=$depmode \
5462 source=sub/conftest.c object=$am__obj \
5463 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5464 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5465 >/dev/null 2>conftest.err &&
5466 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5467 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5468 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5469 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5470 # icc doesn't choke on unknown options, it will just issue warnings
5471 # or remarks (even with -Werror). So we grep stderr for any message
5472 # that says an option was ignored or not supported.
5473 # When given -MP, icc 7.0 and 7.1 complain thusly:
5474 # icc: Command line warning: ignoring option '-M'; no argument required
5475 # The diagnosis changed in icc 8.0:
5476 # icc: Command line remark: option '-MP' not supported
5477 if (grep 'ignoring option' conftest.err ||
5478 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5479 am_cv_CC_dependencies_compiler_type=$depmode
5480 break
5481 fi
5482 fi
5483 done
5484
5485 cd ..
5486 rm -rf conftest.dir
5487else
5488 am_cv_CC_dependencies_compiler_type=none
5489fi
5490
5491fi
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5493$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5494CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5495
5496 if
5497 test "x$enable_dependency_tracking" != xno \
5498 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5499 am__fastdepCC_TRUE=
5500 am__fastdepCC_FALSE='#'
5501else
5502 am__fastdepCC_TRUE='#'
5503 am__fastdepCC_FALSE=
5504fi
5505
5506
cristy3ed852e2009-09-05 21:47:34 +00005507
cristya0b81c32010-01-22 02:54:33 +00005508ac_ext=c
5509ac_cpp='$CPP $CPPFLAGS'
5510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5512ac_compiler_gnu=$ac_cv_c_compiler_gnu
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5514$as_echo_n "checking how to run the C preprocessor... " >&6; }
5515# On Suns, sometimes $CPP names a directory.
5516if test -n "$CPP" && test -d "$CPP"; then
5517 CPP=
5518fi
5519if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005520 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005521 $as_echo_n "(cached) " >&6
5522else
5523 # Double quotes because CPP needs to be expanded
5524 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5525 do
5526 ac_preproc_ok=false
5527for ac_c_preproc_warn_flag in '' yes
5528do
5529 # Use a header file that comes with gcc, so configuring glibc
5530 # with a fresh cross-compiler works.
5531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5532 # <limits.h> exists even on freestanding compilers.
5533 # On the NeXT, cc -E runs the code through the compiler's parser,
5534 # not just through cpp. "Syntax error" is here to catch this case.
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536/* end confdefs.h. */
5537#ifdef __STDC__
5538# include <limits.h>
5539#else
5540# include <assert.h>
5541#endif
5542 Syntax error
5543_ACEOF
5544if ac_fn_c_try_cpp "$LINENO"; then :
5545
5546else
5547 # Broken: fails on valid input.
5548continue
5549fi
cristyda16f162011-02-19 23:52:17 +00005550rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005551
5552 # OK, works on sane cases. Now check whether nonexistent headers
5553 # can be detected and how.
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555/* end confdefs.h. */
5556#include <ac_nonexistent.h>
5557_ACEOF
5558if ac_fn_c_try_cpp "$LINENO"; then :
5559 # Broken: success on invalid input.
5560continue
5561else
5562 # Passes both tests.
5563ac_preproc_ok=:
5564break
5565fi
cristyda16f162011-02-19 23:52:17 +00005566rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005567
5568done
5569# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005570rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005571if $ac_preproc_ok; then :
5572 break
5573fi
5574
5575 done
5576 ac_cv_prog_CPP=$CPP
5577
5578fi
5579 CPP=$ac_cv_prog_CPP
5580else
5581 ac_cv_prog_CPP=$CPP
5582fi
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5584$as_echo "$CPP" >&6; }
5585ac_preproc_ok=false
5586for ac_c_preproc_warn_flag in '' yes
5587do
5588 # Use a header file that comes with gcc, so configuring glibc
5589 # with a fresh cross-compiler works.
5590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5591 # <limits.h> exists even on freestanding compilers.
5592 # On the NeXT, cc -E runs the code through the compiler's parser,
5593 # not just through cpp. "Syntax error" is here to catch this case.
5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595/* end confdefs.h. */
5596#ifdef __STDC__
5597# include <limits.h>
5598#else
5599# include <assert.h>
5600#endif
5601 Syntax error
5602_ACEOF
5603if ac_fn_c_try_cpp "$LINENO"; then :
5604
5605else
5606 # Broken: fails on valid input.
5607continue
5608fi
cristyda16f162011-02-19 23:52:17 +00005609rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005610
5611 # OK, works on sane cases. Now check whether nonexistent headers
5612 # can be detected and how.
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614/* end confdefs.h. */
5615#include <ac_nonexistent.h>
5616_ACEOF
5617if ac_fn_c_try_cpp "$LINENO"; then :
5618 # Broken: success on invalid input.
5619continue
5620else
5621 # Passes both tests.
5622ac_preproc_ok=:
5623break
5624fi
cristyda16f162011-02-19 23:52:17 +00005625rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005626
5627done
5628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005629rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005630if $ac_preproc_ok; then :
5631
5632else
5633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005635as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5636See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005637fi
5638
5639ac_ext=c
5640ac_cpp='$CPP $CPPFLAGS'
5641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5643ac_compiler_gnu=$ac_cv_c_compiler_gnu
5644
5645
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5647$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005648if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005649 $as_echo_n "(cached) " >&6
5650else
5651 if test -z "$GREP"; then
5652 ac_path_GREP_found=false
5653 # Loop through the user's path and test for each of PROGNAME-LIST
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5656do
5657 IFS=$as_save_IFS
5658 test -z "$as_dir" && as_dir=.
5659 for ac_prog in grep ggrep; do
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005662 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005663# Check for GNU ac_path_GREP and select it if it is found.
5664 # Check for GNU $ac_path_GREP
5665case `"$ac_path_GREP" --version 2>&1` in
5666*GNU*)
5667 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5668*)
5669 ac_count=0
5670 $as_echo_n 0123456789 >"conftest.in"
5671 while :
5672 do
5673 cat "conftest.in" "conftest.in" >"conftest.tmp"
5674 mv "conftest.tmp" "conftest.in"
5675 cp "conftest.in" "conftest.nl"
5676 $as_echo 'GREP' >> "conftest.nl"
5677 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5679 as_fn_arith $ac_count + 1 && ac_count=$as_val
5680 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5681 # Best one so far, save it but keep looking for a better one
5682 ac_cv_path_GREP="$ac_path_GREP"
5683 ac_path_GREP_max=$ac_count
5684 fi
5685 # 10*(2^10) chars as input seems more than enough
5686 test $ac_count -gt 10 && break
5687 done
5688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5689esac
5690
5691 $ac_path_GREP_found && break 3
5692 done
5693 done
5694 done
5695IFS=$as_save_IFS
5696 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005697 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005698 fi
5699else
5700 ac_cv_path_GREP=$GREP
5701fi
5702
5703fi
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5705$as_echo "$ac_cv_path_GREP" >&6; }
5706 GREP="$ac_cv_path_GREP"
5707
5708
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5710$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005711if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005712 $as_echo_n "(cached) " >&6
5713else
5714 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5715 then ac_cv_path_EGREP="$GREP -E"
5716 else
5717 if test -z "$EGREP"; then
5718 ac_path_EGREP_found=false
5719 # Loop through the user's path and test for each of PROGNAME-LIST
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5722do
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_prog in egrep; do
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005728 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005729# Check for GNU ac_path_EGREP and select it if it is found.
5730 # Check for GNU $ac_path_EGREP
5731case `"$ac_path_EGREP" --version 2>&1` in
5732*GNU*)
5733 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5734*)
5735 ac_count=0
5736 $as_echo_n 0123456789 >"conftest.in"
5737 while :
5738 do
5739 cat "conftest.in" "conftest.in" >"conftest.tmp"
5740 mv "conftest.tmp" "conftest.in"
5741 cp "conftest.in" "conftest.nl"
5742 $as_echo 'EGREP' >> "conftest.nl"
5743 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5744 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5745 as_fn_arith $ac_count + 1 && ac_count=$as_val
5746 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5747 # Best one so far, save it but keep looking for a better one
5748 ac_cv_path_EGREP="$ac_path_EGREP"
5749 ac_path_EGREP_max=$ac_count
5750 fi
5751 # 10*(2^10) chars as input seems more than enough
5752 test $ac_count -gt 10 && break
5753 done
5754 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5755esac
5756
5757 $ac_path_EGREP_found && break 3
5758 done
5759 done
5760 done
5761IFS=$as_save_IFS
5762 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005763 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005764 fi
5765else
5766 ac_cv_path_EGREP=$EGREP
5767fi
5768
5769 fi
5770fi
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5772$as_echo "$ac_cv_path_EGREP" >&6; }
5773 EGREP="$ac_cv_path_EGREP"
5774
5775
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5777$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005778if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005779 $as_echo_n "(cached) " >&6
5780else
5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782/* end confdefs.h. */
5783#include <stdlib.h>
5784#include <stdarg.h>
5785#include <string.h>
5786#include <float.h>
5787
5788int
5789main ()
5790{
5791
5792 ;
5793 return 0;
5794}
5795_ACEOF
5796if ac_fn_c_try_compile "$LINENO"; then :
5797 ac_cv_header_stdc=yes
5798else
5799 ac_cv_header_stdc=no
5800fi
5801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5802
5803if test $ac_cv_header_stdc = yes; then
5804 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806/* end confdefs.h. */
5807#include <string.h>
5808
5809_ACEOF
5810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5811 $EGREP "memchr" >/dev/null 2>&1; then :
5812
5813else
5814 ac_cv_header_stdc=no
5815fi
5816rm -f conftest*
5817
5818fi
5819
5820if test $ac_cv_header_stdc = yes; then
5821 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823/* end confdefs.h. */
5824#include <stdlib.h>
5825
5826_ACEOF
5827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5828 $EGREP "free" >/dev/null 2>&1; then :
5829
5830else
5831 ac_cv_header_stdc=no
5832fi
5833rm -f conftest*
5834
5835fi
5836
5837if test $ac_cv_header_stdc = yes; then
5838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5839 if test "$cross_compiling" = yes; then :
5840 :
5841else
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843/* end confdefs.h. */
5844#include <ctype.h>
5845#include <stdlib.h>
5846#if ((' ' & 0x0FF) == 0x020)
5847# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5848# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5849#else
5850# define ISLOWER(c) \
5851 (('a' <= (c) && (c) <= 'i') \
5852 || ('j' <= (c) && (c) <= 'r') \
5853 || ('s' <= (c) && (c) <= 'z'))
5854# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5855#endif
5856
5857#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5858int
5859main ()
5860{
5861 int i;
5862 for (i = 0; i < 256; i++)
5863 if (XOR (islower (i), ISLOWER (i))
5864 || toupper (i) != TOUPPER (i))
5865 return 2;
5866 return 0;
5867}
5868_ACEOF
5869if ac_fn_c_try_run "$LINENO"; then :
5870
5871else
5872 ac_cv_header_stdc=no
5873fi
5874rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5875 conftest.$ac_objext conftest.beam conftest.$ac_ext
5876fi
5877
5878fi
5879fi
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5881$as_echo "$ac_cv_header_stdc" >&6; }
5882if test $ac_cv_header_stdc = yes; then
5883
5884$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5885
5886fi
5887
5888# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5889for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5890 inttypes.h stdint.h unistd.h
5891do :
5892 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5893ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5894"
cristy98dddb52010-11-04 00:30:15 +00005895if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005896 cat >>confdefs.h <<_ACEOF
5897#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5898_ACEOF
5899
5900fi
5901
5902done
5903
5904
5905
5906 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 +00005907if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005908 MINIX=yes
5909else
5910 MINIX=
5911fi
5912
5913
5914 if test "$MINIX" = yes; then
5915
5916$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5917
5918
5919$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5920
5921
5922$as_echo "#define _MINIX 1" >>confdefs.h
5923
5924 fi
5925
5926
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5928$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005929if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005930 $as_echo_n "(cached) " >&6
5931else
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933/* end confdefs.h. */
5934
cristy14fefe52012-05-21 00:59:18 +00005935# define __EXTENSIONS__ 1
5936 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005937int
5938main ()
5939{
5940
5941 ;
5942 return 0;
5943}
5944_ACEOF
5945if ac_fn_c_try_compile "$LINENO"; then :
5946 ac_cv_safe_to_define___extensions__=yes
5947else
5948 ac_cv_safe_to_define___extensions__=no
5949fi
5950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951fi
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5953$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5954 test $ac_cv_safe_to_define___extensions__ = yes &&
5955 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5956
5957 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5958
5959 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5960
5961 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5962
5963 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5964
5965
5966
5967# Check for programs
5968ac_ext=c
5969ac_cpp='$CPP $CPPFLAGS'
5970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5972ac_compiler_gnu=$ac_cv_c_compiler_gnu
5973if test -n "$ac_tool_prefix"; then
5974 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5975set dummy ${ac_tool_prefix}gcc; ac_word=$2
5976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005978if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005979 $as_echo_n "(cached) " >&6
5980else
5981 if test -n "$CC"; then
5982 ac_cv_prog_CC="$CC" # Let the user override the test.
5983else
5984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985for as_dir in $PATH
5986do
5987 IFS=$as_save_IFS
5988 test -z "$as_dir" && as_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005991 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 break 2
5994 fi
5995done
5996 done
5997IFS=$as_save_IFS
5998
5999fi
6000fi
6001CC=$ac_cv_prog_CC
6002if test -n "$CC"; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6004$as_echo "$CC" >&6; }
6005else
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007$as_echo "no" >&6; }
6008fi
6009
6010
6011fi
6012if test -z "$ac_cv_prog_CC"; then
6013 ac_ct_CC=$CC
6014 # Extract the first word of "gcc", so it can be a program name with args.
6015set dummy gcc; ac_word=$2
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006018if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006019 $as_echo_n "(cached) " >&6
6020else
6021 if test -n "$ac_ct_CC"; then
6022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6023else
6024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025for as_dir in $PATH
6026do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006031 ac_cv_prog_ac_ct_CC="gcc"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6034 fi
6035done
6036 done
6037IFS=$as_save_IFS
6038
6039fi
6040fi
6041ac_ct_CC=$ac_cv_prog_ac_ct_CC
6042if test -n "$ac_ct_CC"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6044$as_echo "$ac_ct_CC" >&6; }
6045else
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047$as_echo "no" >&6; }
6048fi
6049
6050 if test "x$ac_ct_CC" = x; then
6051 CC=""
6052 else
6053 case $cross_compiling:$ac_tool_warned in
6054yes:)
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6057ac_tool_warned=yes ;;
6058esac
6059 CC=$ac_ct_CC
6060 fi
6061else
6062 CC="$ac_cv_prog_CC"
6063fi
6064
6065if test -z "$CC"; then
6066 if test -n "$ac_tool_prefix"; then
6067 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6068set dummy ${ac_tool_prefix}cc; ac_word=$2
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006071if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006072 $as_echo_n "(cached) " >&6
6073else
6074 if test -n "$CC"; then
6075 ac_cv_prog_CC="$CC" # Let the user override the test.
6076else
6077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080 IFS=$as_save_IFS
6081 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006084 ac_cv_prog_CC="${ac_tool_prefix}cc"
6085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6086 break 2
6087 fi
6088done
6089 done
6090IFS=$as_save_IFS
6091
6092fi
6093fi
6094CC=$ac_cv_prog_CC
6095if test -n "$CC"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6097$as_echo "$CC" >&6; }
6098else
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100$as_echo "no" >&6; }
6101fi
6102
6103
6104 fi
6105fi
6106if test -z "$CC"; then
6107 # Extract the first word of "cc", so it can be a program name with args.
6108set dummy cc; ac_word=$2
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006111if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006112 $as_echo_n "(cached) " >&6
6113else
6114 if test -n "$CC"; then
6115 ac_cv_prog_CC="$CC" # Let the user override the test.
6116else
6117 ac_prog_rejected=no
6118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006125 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6126 ac_prog_rejected=yes
6127 continue
6128 fi
6129 ac_cv_prog_CC="cc"
6130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 break 2
6132 fi
6133done
6134 done
6135IFS=$as_save_IFS
6136
6137if test $ac_prog_rejected = yes; then
6138 # We found a bogon in the path, so make sure we never use it.
6139 set dummy $ac_cv_prog_CC
6140 shift
6141 if test $# != 0; then
6142 # We chose a different compiler from the bogus one.
6143 # However, it has the same basename, so the bogon will be chosen
6144 # first if we set CC to just the basename; use the full file name.
6145 shift
6146 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6147 fi
6148fi
6149fi
6150fi
6151CC=$ac_cv_prog_CC
6152if test -n "$CC"; then
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6154$as_echo "$CC" >&6; }
6155else
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157$as_echo "no" >&6; }
6158fi
6159
6160
6161fi
6162if test -z "$CC"; then
6163 if test -n "$ac_tool_prefix"; then
6164 for ac_prog in cl.exe
6165 do
6166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6167set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006170if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006171 $as_echo_n "(cached) " >&6
6172else
6173 if test -n "$CC"; then
6174 ac_cv_prog_CC="$CC" # Let the user override the test.
6175else
6176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177for as_dir in $PATH
6178do
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006183 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 break 2
6186 fi
6187done
6188 done
6189IFS=$as_save_IFS
6190
6191fi
6192fi
6193CC=$ac_cv_prog_CC
6194if test -n "$CC"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6196$as_echo "$CC" >&6; }
6197else
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199$as_echo "no" >&6; }
6200fi
6201
6202
6203 test -n "$CC" && break
6204 done
6205fi
6206if test -z "$CC"; then
6207 ac_ct_CC=$CC
6208 for ac_prog in cl.exe
6209do
6210 # Extract the first word of "$ac_prog", so it can be a program name with args.
6211set dummy $ac_prog; ac_word=$2
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006214if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006215 $as_echo_n "(cached) " >&6
6216else
6217 if test -n "$ac_ct_CC"; then
6218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6219else
6220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221for as_dir in $PATH
6222do
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006227 ac_cv_prog_ac_ct_CC="$ac_prog"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6230 fi
6231done
6232 done
6233IFS=$as_save_IFS
6234
6235fi
6236fi
6237ac_ct_CC=$ac_cv_prog_ac_ct_CC
6238if test -n "$ac_ct_CC"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6240$as_echo "$ac_ct_CC" >&6; }
6241else
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243$as_echo "no" >&6; }
6244fi
6245
6246
6247 test -n "$ac_ct_CC" && break
6248done
6249
6250 if test "x$ac_ct_CC" = x; then
6251 CC=""
6252 else
6253 case $cross_compiling:$ac_tool_warned in
6254yes:)
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6257ac_tool_warned=yes ;;
6258esac
6259 CC=$ac_ct_CC
6260 fi
6261fi
6262
6263fi
6264
6265
6266test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006268as_fn_error $? "no acceptable C compiler found in \$PATH
6269See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006270
6271# Provide some information about the compiler.
6272$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6273set X $ac_compile
6274ac_compiler=$2
6275for ac_option in --version -v -V -qversion; do
6276 { { ac_try="$ac_compiler $ac_option >&5"
6277case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280esac
6281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6282$as_echo "$ac_try_echo"; } >&5
6283 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6284 ac_status=$?
6285 if test -s conftest.err; then
6286 sed '10a\
6287... rest of stderr output deleted ...
6288 10q' conftest.err >conftest.er1
6289 cat conftest.er1 >&5
6290 fi
6291 rm -f conftest.er1 conftest.err
6292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6293 test $ac_status = 0; }
6294done
6295
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6297$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006298if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006299 $as_echo_n "(cached) " >&6
6300else
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302/* end confdefs.h. */
6303
6304int
6305main ()
6306{
6307#ifndef __GNUC__
6308 choke me
6309#endif
6310
6311 ;
6312 return 0;
6313}
6314_ACEOF
6315if ac_fn_c_try_compile "$LINENO"; then :
6316 ac_compiler_gnu=yes
6317else
6318 ac_compiler_gnu=no
6319fi
6320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321ac_cv_c_compiler_gnu=$ac_compiler_gnu
6322
6323fi
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6325$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6326if test $ac_compiler_gnu = yes; then
6327 GCC=yes
6328else
6329 GCC=
6330fi
6331ac_test_CFLAGS=${CFLAGS+set}
6332ac_save_CFLAGS=$CFLAGS
6333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6334$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006335if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006336 $as_echo_n "(cached) " >&6
6337else
6338 ac_save_c_werror_flag=$ac_c_werror_flag
6339 ac_c_werror_flag=yes
6340 ac_cv_prog_cc_g=no
6341 CFLAGS="-g"
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343/* end confdefs.h. */
6344
6345int
6346main ()
6347{
6348
6349 ;
6350 return 0;
6351}
6352_ACEOF
6353if ac_fn_c_try_compile "$LINENO"; then :
6354 ac_cv_prog_cc_g=yes
6355else
6356 CFLAGS=""
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358/* end confdefs.h. */
6359
6360int
6361main ()
6362{
6363
6364 ;
6365 return 0;
6366}
6367_ACEOF
6368if ac_fn_c_try_compile "$LINENO"; then :
6369
6370else
6371 ac_c_werror_flag=$ac_save_c_werror_flag
6372 CFLAGS="-g"
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374/* end confdefs.h. */
6375
6376int
6377main ()
6378{
6379
6380 ;
6381 return 0;
6382}
6383_ACEOF
6384if ac_fn_c_try_compile "$LINENO"; then :
6385 ac_cv_prog_cc_g=yes
6386fi
6387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388fi
6389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390fi
6391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392 ac_c_werror_flag=$ac_save_c_werror_flag
6393fi
6394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6395$as_echo "$ac_cv_prog_cc_g" >&6; }
6396if test "$ac_test_CFLAGS" = set; then
6397 CFLAGS=$ac_save_CFLAGS
6398elif test $ac_cv_prog_cc_g = yes; then
6399 if test "$GCC" = yes; then
6400 CFLAGS="-g -O2"
6401 else
6402 CFLAGS="-g"
6403 fi
6404else
6405 if test "$GCC" = yes; then
6406 CFLAGS="-O2"
6407 else
6408 CFLAGS=
6409 fi
6410fi
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6412$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006413if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006414 $as_echo_n "(cached) " >&6
6415else
6416 ac_cv_prog_cc_c89=no
6417ac_save_CC=$CC
6418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419/* end confdefs.h. */
6420#include <stdarg.h>
6421#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006422struct stat;
cristya0b81c32010-01-22 02:54:33 +00006423/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6424struct buf { int x; };
6425FILE * (*rcsopen) (struct buf *, struct stat *, int);
6426static char *e (p, i)
6427 char **p;
6428 int i;
6429{
6430 return p[i];
6431}
6432static char *f (char * (*g) (char **, int), char **p, ...)
6433{
6434 char *s;
6435 va_list v;
6436 va_start (v,p);
6437 s = g (p, va_arg (v,int));
6438 va_end (v);
6439 return s;
6440}
6441
6442/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6443 function prototypes and stuff, but not '\xHH' hex character constants.
6444 These don't provoke an error unfortunately, instead are silently treated
6445 as 'x'. The following induces an error, until -std is added to get
6446 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6447 array size at least. It's necessary to write '\x00'==0 to get something
6448 that's true only with -std. */
6449int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6450
6451/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6452 inside strings and character constants. */
6453#define FOO(x) 'x'
6454int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6455
6456int test (int i, double x);
6457struct s1 {int (*f) (int a);};
6458struct s2 {int (*f) (double a);};
6459int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6460int argc;
6461char **argv;
6462int
6463main ()
6464{
6465return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6466 ;
6467 return 0;
6468}
6469_ACEOF
6470for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6471 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6472do
6473 CC="$ac_save_CC $ac_arg"
6474 if ac_fn_c_try_compile "$LINENO"; then :
6475 ac_cv_prog_cc_c89=$ac_arg
6476fi
6477rm -f core conftest.err conftest.$ac_objext
6478 test "x$ac_cv_prog_cc_c89" != "xno" && break
6479done
6480rm -f conftest.$ac_ext
6481CC=$ac_save_CC
6482
6483fi
6484# AC_CACHE_VAL
6485case "x$ac_cv_prog_cc_c89" in
6486 x)
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6488$as_echo "none needed" >&6; } ;;
6489 xno)
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6491$as_echo "unsupported" >&6; } ;;
6492 *)
6493 CC="$CC $ac_cv_prog_cc_c89"
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6495$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6496esac
6497if test "x$ac_cv_prog_cc_c89" != xno; then :
6498
6499fi
6500
6501ac_ext=c
6502ac_cpp='$CPP $CPPFLAGS'
6503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6505ac_compiler_gnu=$ac_cv_c_compiler_gnu
6506
cristya5bda012013-11-03 18:05:38 +00006507ac_ext=c
6508ac_cpp='$CPP $CPPFLAGS'
6509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6511ac_compiler_gnu=$ac_cv_c_compiler_gnu
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6513$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6514if ${am_cv_prog_cc_c_o+:} false; then :
6515 $as_echo_n "(cached) " >&6
6516else
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518/* end confdefs.h. */
6519
6520int
6521main ()
6522{
6523
6524 ;
6525 return 0;
6526}
6527_ACEOF
6528 # Make sure it works both with $CC and with simple cc.
6529 # Following AC_PROG_CC_C_O, we do the test twice because some
6530 # compilers refuse to overwrite an existing .o file with -o,
6531 # though they will create one.
6532 am_cv_prog_cc_c_o=yes
6533 for am_i in 1 2; do
6534 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6535 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6536 ac_status=$?
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } \
6539 && test -f conftest2.$ac_objext; then
6540 : OK
6541 else
6542 am_cv_prog_cc_c_o=no
6543 break
6544 fi
6545 done
6546 rm -f core conftest*
6547 unset am_i
6548fi
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6550$as_echo "$am_cv_prog_cc_c_o" >&6; }
6551if test "$am_cv_prog_cc_c_o" != yes; then
6552 # Losing compiler, so override with the script.
6553 # FIXME: It is wrong to rewrite CC.
6554 # But if we don't then we get into trouble of one sort or another.
6555 # A longer-term fix would be to have automake use am__CC in this case,
6556 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6557 CC="$am_aux_dir/compile $CC"
6558fi
6559ac_ext=c
6560ac_cpp='$CPP $CPPFLAGS'
6561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563ac_compiler_gnu=$ac_cv_c_compiler_gnu
6564
6565
cristy73bd4a52010-10-05 11:24:23 +00006566depcc="$CC" am_compiler_list=
6567
6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6569$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006570if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006571 $as_echo_n "(cached) " >&6
6572else
6573 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6574 # We make a subdir and do the tests there. Otherwise we can end up
6575 # making bogus files that we don't know about and never remove. For
6576 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006577 # making a dummy file named 'D' -- because '-MD' means "put the output
6578 # in D".
cristy7247bba2012-02-05 16:37:27 +00006579 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006580 mkdir conftest.dir
6581 # Copy depcomp to subdir because otherwise we won't find it if we're
6582 # using a relative directory.
6583 cp "$am_depcomp" conftest.dir
6584 cd conftest.dir
6585 # We will build objects and dependencies in a subdirectory because
6586 # it helps to detect inapplicable dependency modes. For instance
6587 # both Tru64's cc and ICC support -MD to output dependencies as a
6588 # side effect of compilation, but ICC will put the dependencies in
6589 # the current directory while Tru64 will put them in the object
6590 # directory.
6591 mkdir sub
6592
6593 am_cv_CC_dependencies_compiler_type=none
6594 if test "$am_compiler_list" = ""; then
6595 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6596 fi
6597 am__universal=false
6598 case " $depcc " in #(
6599 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6600 esac
6601
6602 for depmode in $am_compiler_list; do
6603 # Setup a source with many dependencies, because some compilers
6604 # like to wrap large dependency lists on column 80 (with \), and
6605 # we should not choose a depcomp mode which is confused by this.
6606 #
6607 # We need to recreate these files for each test, as the compiler may
6608 # overwrite some of them when testing with obscure command lines.
6609 # This happens at least with the AIX C compiler.
6610 : > sub/conftest.c
6611 for i in 1 2 3 4 5 6; do
6612 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006613 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6614 # Solaris 10 /bin/sh.
6615 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006616 done
6617 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6618
cristyc0890a62012-07-19 00:18:20 +00006619 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006620 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006621 # handle '-M -o', and we need to detect this. Also, some Intel
6622 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006623 am__obj=sub/conftest.${OBJEXT-o}
6624 am__minus_obj="-o $am__obj"
6625 case $depmode in
6626 gcc)
6627 # This depmode causes a compiler race in universal mode.
6628 test "$am__universal" = false || continue
6629 ;;
6630 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006631 # After this tag, mechanisms are not by side-effect, so they'll
6632 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006633 if test "x$enable_dependency_tracking" = xyes; then
6634 continue
6635 else
6636 break
6637 fi
6638 ;;
cristy7247bba2012-02-05 16:37:27 +00006639 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006640 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006641 # not run yet. These depmodes are late enough in the game, and
6642 # so weak that their functioning should not be impacted.
6643 am__obj=conftest.${OBJEXT-o}
6644 am__minus_obj=
6645 ;;
6646 none) break ;;
6647 esac
6648 if depmode=$depmode \
6649 source=sub/conftest.c object=$am__obj \
6650 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6651 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6652 >/dev/null 2>conftest.err &&
6653 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6654 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6655 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6656 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6657 # icc doesn't choke on unknown options, it will just issue warnings
6658 # or remarks (even with -Werror). So we grep stderr for any message
6659 # that says an option was ignored or not supported.
6660 # When given -MP, icc 7.0 and 7.1 complain thusly:
6661 # icc: Command line warning: ignoring option '-M'; no argument required
6662 # The diagnosis changed in icc 8.0:
6663 # icc: Command line remark: option '-MP' not supported
6664 if (grep 'ignoring option' conftest.err ||
6665 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6666 am_cv_CC_dependencies_compiler_type=$depmode
6667 break
6668 fi
6669 fi
6670 done
6671
6672 cd ..
6673 rm -rf conftest.dir
6674else
6675 am_cv_CC_dependencies_compiler_type=none
6676fi
6677
6678fi
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6680$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6681CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6682
6683 if
6684 test "x$enable_dependency_tracking" != xno \
6685 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6686 am__fastdepCC_TRUE=
6687 am__fastdepCC_FALSE='#'
6688else
6689 am__fastdepCC_TRUE='#'
6690 am__fastdepCC_FALSE=
6691fi
6692
6693
cristy95646052009-11-28 23:05:30 +00006694ac_ext=cpp
6695ac_cpp='$CXXCPP $CPPFLAGS'
6696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6699if test -z "$CXX"; then
6700 if test -n "$CCC"; then
6701 CXX=$CCC
6702 else
6703 if test -n "$ac_tool_prefix"; then
6704 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6705 do
6706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6707set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006710if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006711 $as_echo_n "(cached) " >&6
6712else
6713 if test -n "$CXX"; then
6714 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6715else
6716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006723 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 break 2
6726 fi
6727done
6728 done
6729IFS=$as_save_IFS
6730
6731fi
6732fi
6733CXX=$ac_cv_prog_CXX
6734if test -n "$CXX"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6736$as_echo "$CXX" >&6; }
6737else
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739$as_echo "no" >&6; }
6740fi
6741
6742
6743 test -n "$CXX" && break
6744 done
6745fi
6746if test -z "$CXX"; then
6747 ac_ct_CXX=$CXX
6748 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6749do
6750 # Extract the first word of "$ac_prog", so it can be a program name with args.
6751set dummy $ac_prog; ac_word=$2
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006754if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006755 $as_echo_n "(cached) " >&6
6756else
6757 if test -n "$ac_ct_CXX"; then
6758 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6759else
6760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006767 ac_cv_prog_ac_ct_CXX="$ac_prog"
6768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 break 2
6770 fi
6771done
6772 done
6773IFS=$as_save_IFS
6774
6775fi
6776fi
6777ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6778if test -n "$ac_ct_CXX"; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6780$as_echo "$ac_ct_CXX" >&6; }
6781else
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783$as_echo "no" >&6; }
6784fi
6785
6786
6787 test -n "$ac_ct_CXX" && break
6788done
6789
6790 if test "x$ac_ct_CXX" = x; then
6791 CXX="g++"
6792 else
6793 case $cross_compiling:$ac_tool_warned in
6794yes:)
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797ac_tool_warned=yes ;;
6798esac
6799 CXX=$ac_ct_CXX
6800 fi
6801fi
6802
6803 fi
6804fi
6805# Provide some information about the compiler.
6806$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6807set X $ac_compile
6808ac_compiler=$2
6809for ac_option in --version -v -V -qversion; do
6810 { { ac_try="$ac_compiler $ac_option >&5"
6811case "(($ac_try" in
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6814esac
6815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6816$as_echo "$ac_try_echo"; } >&5
6817 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6818 ac_status=$?
6819 if test -s conftest.err; then
6820 sed '10a\
6821... rest of stderr output deleted ...
6822 10q' conftest.err >conftest.er1
6823 cat conftest.er1 >&5
6824 fi
6825 rm -f conftest.er1 conftest.err
6826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6827 test $ac_status = 0; }
6828done
6829
6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6831$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006832if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006833 $as_echo_n "(cached) " >&6
6834else
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836/* end confdefs.h. */
6837
6838int
6839main ()
6840{
6841#ifndef __GNUC__
6842 choke me
6843#endif
6844
6845 ;
6846 return 0;
6847}
6848_ACEOF
6849if ac_fn_cxx_try_compile "$LINENO"; then :
6850 ac_compiler_gnu=yes
6851else
6852 ac_compiler_gnu=no
6853fi
6854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6856
6857fi
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6859$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6860if test $ac_compiler_gnu = yes; then
6861 GXX=yes
6862else
6863 GXX=
6864fi
6865ac_test_CXXFLAGS=${CXXFLAGS+set}
6866ac_save_CXXFLAGS=$CXXFLAGS
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6868$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006869if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006870 $as_echo_n "(cached) " >&6
6871else
6872 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6873 ac_cxx_werror_flag=yes
6874 ac_cv_prog_cxx_g=no
6875 CXXFLAGS="-g"
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877/* end confdefs.h. */
6878
6879int
6880main ()
6881{
6882
6883 ;
6884 return 0;
6885}
6886_ACEOF
6887if ac_fn_cxx_try_compile "$LINENO"; then :
6888 ac_cv_prog_cxx_g=yes
6889else
6890 CXXFLAGS=""
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892/* end confdefs.h. */
6893
6894int
6895main ()
6896{
6897
6898 ;
6899 return 0;
6900}
6901_ACEOF
6902if ac_fn_cxx_try_compile "$LINENO"; then :
6903
6904else
6905 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6906 CXXFLAGS="-g"
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908/* end confdefs.h. */
6909
6910int
6911main ()
6912{
6913
6914 ;
6915 return 0;
6916}
6917_ACEOF
6918if ac_fn_cxx_try_compile "$LINENO"; then :
6919 ac_cv_prog_cxx_g=yes
6920fi
6921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922fi
6923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924fi
6925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6926 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6927fi
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6929$as_echo "$ac_cv_prog_cxx_g" >&6; }
6930if test "$ac_test_CXXFLAGS" = set; then
6931 CXXFLAGS=$ac_save_CXXFLAGS
6932elif test $ac_cv_prog_cxx_g = yes; then
6933 if test "$GXX" = yes; then
6934 CXXFLAGS="-g -O2"
6935 else
6936 CXXFLAGS="-g"
6937 fi
6938else
6939 if test "$GXX" = yes; then
6940 CXXFLAGS="-O2"
6941 else
6942 CXXFLAGS=
6943 fi
6944fi
6945ac_ext=c
6946ac_cpp='$CPP $CPPFLAGS'
6947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6949ac_compiler_gnu=$ac_cv_c_compiler_gnu
6950
cristy73bd4a52010-10-05 11:24:23 +00006951depcc="$CXX" am_compiler_list=
6952
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6954$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006955if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006956 $as_echo_n "(cached) " >&6
6957else
6958 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6959 # We make a subdir and do the tests there. Otherwise we can end up
6960 # making bogus files that we don't know about and never remove. For
6961 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006962 # making a dummy file named 'D' -- because '-MD' means "put the output
6963 # in D".
cristy7247bba2012-02-05 16:37:27 +00006964 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006965 mkdir conftest.dir
6966 # Copy depcomp to subdir because otherwise we won't find it if we're
6967 # using a relative directory.
6968 cp "$am_depcomp" conftest.dir
6969 cd conftest.dir
6970 # We will build objects and dependencies in a subdirectory because
6971 # it helps to detect inapplicable dependency modes. For instance
6972 # both Tru64's cc and ICC support -MD to output dependencies as a
6973 # side effect of compilation, but ICC will put the dependencies in
6974 # the current directory while Tru64 will put them in the object
6975 # directory.
6976 mkdir sub
6977
6978 am_cv_CXX_dependencies_compiler_type=none
6979 if test "$am_compiler_list" = ""; then
6980 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6981 fi
6982 am__universal=false
6983 case " $depcc " in #(
6984 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6985 esac
6986
6987 for depmode in $am_compiler_list; do
6988 # Setup a source with many dependencies, because some compilers
6989 # like to wrap large dependency lists on column 80 (with \), and
6990 # we should not choose a depcomp mode which is confused by this.
6991 #
6992 # We need to recreate these files for each test, as the compiler may
6993 # overwrite some of them when testing with obscure command lines.
6994 # This happens at least with the AIX C compiler.
6995 : > sub/conftest.c
6996 for i in 1 2 3 4 5 6; do
6997 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006998 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6999 # Solaris 10 /bin/sh.
7000 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007001 done
7002 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7003
cristyc0890a62012-07-19 00:18:20 +00007004 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007005 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007006 # handle '-M -o', and we need to detect this. Also, some Intel
7007 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007008 am__obj=sub/conftest.${OBJEXT-o}
7009 am__minus_obj="-o $am__obj"
7010 case $depmode in
7011 gcc)
7012 # This depmode causes a compiler race in universal mode.
7013 test "$am__universal" = false || continue
7014 ;;
7015 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007016 # After this tag, mechanisms are not by side-effect, so they'll
7017 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007018 if test "x$enable_dependency_tracking" = xyes; then
7019 continue
7020 else
7021 break
7022 fi
7023 ;;
cristy7247bba2012-02-05 16:37:27 +00007024 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007025 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007026 # not run yet. These depmodes are late enough in the game, and
7027 # so weak that their functioning should not be impacted.
7028 am__obj=conftest.${OBJEXT-o}
7029 am__minus_obj=
7030 ;;
7031 none) break ;;
7032 esac
7033 if depmode=$depmode \
7034 source=sub/conftest.c object=$am__obj \
7035 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7036 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7037 >/dev/null 2>conftest.err &&
7038 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7039 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7040 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7041 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7042 # icc doesn't choke on unknown options, it will just issue warnings
7043 # or remarks (even with -Werror). So we grep stderr for any message
7044 # that says an option was ignored or not supported.
7045 # When given -MP, icc 7.0 and 7.1 complain thusly:
7046 # icc: Command line warning: ignoring option '-M'; no argument required
7047 # The diagnosis changed in icc 8.0:
7048 # icc: Command line remark: option '-MP' not supported
7049 if (grep 'ignoring option' conftest.err ||
7050 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7051 am_cv_CXX_dependencies_compiler_type=$depmode
7052 break
7053 fi
7054 fi
7055 done
7056
7057 cd ..
7058 rm -rf conftest.dir
7059else
7060 am_cv_CXX_dependencies_compiler_type=none
7061fi
7062
7063fi
7064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7065$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7066CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7067
7068 if
7069 test "x$enable_dependency_tracking" != xno \
7070 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7071 am__fastdepCXX_TRUE=
7072 am__fastdepCXX_FALSE='#'
7073else
7074 am__fastdepCXX_TRUE='#'
7075 am__fastdepCXX_FALSE=
7076fi
7077
7078
cristy8b350f62009-11-15 23:12:43 +00007079 case $ac_cv_prog_cc_stdc in #(
7080 no) :
7081 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7082 *) :
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007084$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007085if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007086 $as_echo_n "(cached) " >&6
7087else
7088 ac_cv_prog_cc_c99=no
7089ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007091/* end confdefs.h. */
7092#include <stdarg.h>
7093#include <stdbool.h>
7094#include <stdlib.h>
7095#include <wchar.h>
7096#include <stdio.h>
7097
7098// Check varargs macros. These examples are taken from C99 6.10.3.5.
7099#define debug(...) fprintf (stderr, __VA_ARGS__)
7100#define showlist(...) puts (#__VA_ARGS__)
7101#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7102static void
7103test_varargs_macros (void)
7104{
7105 int x = 1234;
7106 int y = 5678;
7107 debug ("Flag");
7108 debug ("X = %d\n", x);
7109 showlist (The first, second, and third items.);
7110 report (x>y, "x is %d but y is %d", x, y);
7111}
7112
7113// Check long long types.
7114#define BIG64 18446744073709551615ull
7115#define BIG32 4294967295ul
7116#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7117#if !BIG_OK
7118 your preprocessor is broken;
7119#endif
7120#if BIG_OK
7121#else
7122 your preprocessor is broken;
7123#endif
7124static long long int bignum = -9223372036854775807LL;
7125static unsigned long long int ubignum = BIG64;
7126
7127struct incomplete_array
7128{
7129 int datasize;
7130 double data[];
7131};
7132
7133struct named_init {
7134 int number;
7135 const wchar_t *name;
7136 double average;
7137};
7138
7139typedef const char *ccp;
7140
7141static inline int
7142test_restrict (ccp restrict text)
7143{
7144 // See if C++-style comments work.
7145 // Iterate through items via the restricted pointer.
7146 // Also check for declarations in for loops.
7147 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7148 continue;
7149 return 0;
7150}
7151
7152// Check varargs and va_copy.
7153static void
7154test_varargs (const char *format, ...)
7155{
7156 va_list args;
7157 va_start (args, format);
7158 va_list args_copy;
7159 va_copy (args_copy, args);
7160
7161 const char *str;
7162 int number;
7163 float fnumber;
7164
7165 while (*format)
7166 {
7167 switch (*format++)
7168 {
7169 case 's': // string
7170 str = va_arg (args_copy, const char *);
7171 break;
7172 case 'd': // int
7173 number = va_arg (args_copy, int);
7174 break;
7175 case 'f': // float
7176 fnumber = va_arg (args_copy, double);
7177 break;
7178 default:
7179 break;
7180 }
7181 }
7182 va_end (args_copy);
7183 va_end (args);
7184}
7185
7186int
7187main ()
7188{
7189
7190 // Check bool.
7191 _Bool success = false;
7192
7193 // Check restrict.
7194 if (test_restrict ("String literal") == 0)
7195 success = true;
7196 char *restrict newvar = "Another string";
7197
7198 // Check varargs.
7199 test_varargs ("s, d' f .", "string", 65, 34.234);
7200 test_varargs_macros ();
7201
7202 // Check flexible array members.
7203 struct incomplete_array *ia =
7204 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7205 ia->datasize = 10;
7206 for (int i = 0; i < ia->datasize; ++i)
7207 ia->data[i] = i * 1.234;
7208
7209 // Check named initializers.
7210 struct named_init ni = {
7211 .number = 34,
7212 .name = L"Test wide string",
7213 .average = 543.34343,
7214 };
7215
7216 ni.number = 58;
7217
7218 int dynamic_array[ni.number];
7219 dynamic_array[ni.number - 1] = 543;
7220
7221 // work around unused variable warnings
7222 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7223 || dynamic_array[ni.number - 1] != 543);
7224
7225 ;
7226 return 0;
7227}
7228_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007229for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007230do
7231 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007232 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007233 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007234fi
cristy3ed852e2009-09-05 21:47:34 +00007235rm -f core conftest.err conftest.$ac_objext
7236 test "x$ac_cv_prog_cc_c99" != "xno" && break
7237done
7238rm -f conftest.$ac_ext
7239CC=$ac_save_CC
7240
7241fi
7242# AC_CACHE_VAL
7243case "x$ac_cv_prog_cc_c99" in
7244 x)
cristy8b350f62009-11-15 23:12:43 +00007245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007246$as_echo "none needed" >&6; } ;;
7247 xno)
cristy8b350f62009-11-15 23:12:43 +00007248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007249$as_echo "unsupported" >&6; } ;;
7250 *)
7251 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007253$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7254esac
cristy8b350f62009-11-15 23:12:43 +00007255if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007256 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7257else
cristy8b350f62009-11-15 23:12:43 +00007258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007259$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007260if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007261 $as_echo_n "(cached) " >&6
7262else
7263 ac_cv_prog_cc_c89=no
7264ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007266/* end confdefs.h. */
7267#include <stdarg.h>
7268#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007269struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007270/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7271struct buf { int x; };
7272FILE * (*rcsopen) (struct buf *, struct stat *, int);
7273static char *e (p, i)
7274 char **p;
7275 int i;
7276{
7277 return p[i];
7278}
7279static char *f (char * (*g) (char **, int), char **p, ...)
7280{
7281 char *s;
7282 va_list v;
7283 va_start (v,p);
7284 s = g (p, va_arg (v,int));
7285 va_end (v);
7286 return s;
7287}
7288
7289/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7290 function prototypes and stuff, but not '\xHH' hex character constants.
7291 These don't provoke an error unfortunately, instead are silently treated
7292 as 'x'. The following induces an error, until -std is added to get
7293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7294 array size at least. It's necessary to write '\x00'==0 to get something
7295 that's true only with -std. */
7296int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7297
7298/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7299 inside strings and character constants. */
7300#define FOO(x) 'x'
7301int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7302
7303int test (int i, double x);
7304struct s1 {int (*f) (int a);};
7305struct s2 {int (*f) (double a);};
7306int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7307int argc;
7308char **argv;
7309int
7310main ()
7311{
7312return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7313 ;
7314 return 0;
7315}
7316_ACEOF
7317for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7319do
7320 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007321 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007322 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007323fi
cristy3ed852e2009-09-05 21:47:34 +00007324rm -f core conftest.err conftest.$ac_objext
7325 test "x$ac_cv_prog_cc_c89" != "xno" && break
7326done
7327rm -f conftest.$ac_ext
7328CC=$ac_save_CC
7329
7330fi
7331# AC_CACHE_VAL
7332case "x$ac_cv_prog_cc_c89" in
7333 x)
cristy8b350f62009-11-15 23:12:43 +00007334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007335$as_echo "none needed" >&6; } ;;
7336 xno)
cristy8b350f62009-11-15 23:12:43 +00007337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007338$as_echo "unsupported" >&6; } ;;
7339 *)
7340 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007342$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7343esac
cristy8b350f62009-11-15 23:12:43 +00007344if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007345 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7346else
7347 ac_cv_prog_cc_stdc=no
7348fi
7349
cristy3ed852e2009-09-05 21:47:34 +00007350fi
cristy3ed852e2009-09-05 21:47:34 +00007351 ;;
7352esac
cristy8b350f62009-11-15 23:12:43 +00007353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007354$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007355 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007356 $as_echo_n "(cached) " >&6
7357fi
7358
cristy8b350f62009-11-15 23:12:43 +00007359 case $ac_cv_prog_cc_stdc in #(
7360 no) :
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7362$as_echo "unsupported" >&6; } ;; #(
7363 '') :
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7365$as_echo "none needed" >&6; } ;; #(
7366 *) :
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007368$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7369esac
7370
cristy3ed852e2009-09-05 21:47:34 +00007371ac_ext=c
7372ac_cpp='$CPP $CPPFLAGS'
7373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7375ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007377$as_echo_n "checking how to run the C preprocessor... " >&6; }
7378# On Suns, sometimes $CPP names a directory.
7379if test -n "$CPP" && test -d "$CPP"; then
7380 CPP=
7381fi
7382if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007383 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007384 $as_echo_n "(cached) " >&6
7385else
7386 # Double quotes because CPP needs to be expanded
7387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7388 do
7389 ac_preproc_ok=false
7390for ac_c_preproc_warn_flag in '' yes
7391do
7392 # Use a header file that comes with gcc, so configuring glibc
7393 # with a fresh cross-compiler works.
7394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7395 # <limits.h> exists even on freestanding compilers.
7396 # On the NeXT, cc -E runs the code through the compiler's parser,
7397 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007399/* end confdefs.h. */
7400#ifdef __STDC__
7401# include <limits.h>
7402#else
7403# include <assert.h>
7404#endif
7405 Syntax error
7406_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007407if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007408
cristy8b350f62009-11-15 23:12:43 +00007409else
cristy3ed852e2009-09-05 21:47:34 +00007410 # Broken: fails on valid input.
7411continue
7412fi
cristyda16f162011-02-19 23:52:17 +00007413rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007414
7415 # OK, works on sane cases. Now check whether nonexistent headers
7416 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007418/* end confdefs.h. */
7419#include <ac_nonexistent.h>
7420_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007421if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007422 # Broken: success on invalid input.
7423continue
7424else
cristy3ed852e2009-09-05 21:47:34 +00007425 # Passes both tests.
7426ac_preproc_ok=:
7427break
7428fi
cristyda16f162011-02-19 23:52:17 +00007429rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007430
7431done
7432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007433rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007434if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007435 break
7436fi
7437
7438 done
7439 ac_cv_prog_CPP=$CPP
7440
7441fi
7442 CPP=$ac_cv_prog_CPP
7443else
7444 ac_cv_prog_CPP=$CPP
7445fi
cristy8b350f62009-11-15 23:12:43 +00007446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007447$as_echo "$CPP" >&6; }
7448ac_preproc_ok=false
7449for ac_c_preproc_warn_flag in '' yes
7450do
7451 # Use a header file that comes with gcc, so configuring glibc
7452 # with a fresh cross-compiler works.
7453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7454 # <limits.h> exists even on freestanding compilers.
7455 # On the NeXT, cc -E runs the code through the compiler's parser,
7456 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007458/* end confdefs.h. */
7459#ifdef __STDC__
7460# include <limits.h>
7461#else
7462# include <assert.h>
7463#endif
7464 Syntax error
7465_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007466if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007467
cristy8b350f62009-11-15 23:12:43 +00007468else
cristy3ed852e2009-09-05 21:47:34 +00007469 # Broken: fails on valid input.
7470continue
7471fi
cristyda16f162011-02-19 23:52:17 +00007472rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007473
7474 # OK, works on sane cases. Now check whether nonexistent headers
7475 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007477/* end confdefs.h. */
7478#include <ac_nonexistent.h>
7479_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007480if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007481 # Broken: success on invalid input.
7482continue
7483else
cristy3ed852e2009-09-05 21:47:34 +00007484 # Passes both tests.
7485ac_preproc_ok=:
7486break
7487fi
cristyda16f162011-02-19 23:52:17 +00007488rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007489
7490done
7491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007492rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007493if $ac_preproc_ok; then :
7494
cristy3ed852e2009-09-05 21:47:34 +00007495else
cristy8b350f62009-11-15 23:12:43 +00007496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007498as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7499See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007500fi
7501
7502ac_ext=c
7503ac_cpp='$CPP $CPPFLAGS'
7504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7506ac_compiler_gnu=$ac_cv_c_compiler_gnu
7507
cristy73bd4a52010-10-05 11:24:23 +00007508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7509$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007510if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007511 $as_echo_n "(cached) " >&6
7512else
7513 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7514 for ac_i in 1 2 3 4 5 6 7; do
7515 ac_script="$ac_script$as_nl$ac_script"
7516 done
7517 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7518 { ac_script=; unset ac_script;}
7519 if test -z "$SED"; then
7520 ac_path_SED_found=false
7521 # Loop through the user's path and test for each of PROGNAME-LIST
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_prog in sed gsed; do
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007530 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007531# Check for GNU ac_path_SED and select it if it is found.
7532 # Check for GNU $ac_path_SED
7533case `"$ac_path_SED" --version 2>&1` in
7534*GNU*)
7535 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7536*)
7537 ac_count=0
7538 $as_echo_n 0123456789 >"conftest.in"
7539 while :
7540 do
7541 cat "conftest.in" "conftest.in" >"conftest.tmp"
7542 mv "conftest.tmp" "conftest.in"
7543 cp "conftest.in" "conftest.nl"
7544 $as_echo '' >> "conftest.nl"
7545 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7546 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7547 as_fn_arith $ac_count + 1 && ac_count=$as_val
7548 if test $ac_count -gt ${ac_path_SED_max-0}; then
7549 # Best one so far, save it but keep looking for a better one
7550 ac_cv_path_SED="$ac_path_SED"
7551 ac_path_SED_max=$ac_count
7552 fi
7553 # 10*(2^10) chars as input seems more than enough
7554 test $ac_count -gt 10 && break
7555 done
7556 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7557esac
7558
7559 $ac_path_SED_found && break 3
7560 done
7561 done
7562 done
7563IFS=$as_save_IFS
7564 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007565 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007566 fi
7567else
7568 ac_cv_path_SED=$SED
7569fi
7570
7571fi
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7573$as_echo "$ac_cv_path_SED" >&6; }
7574 SED="$ac_cv_path_SED"
7575 rm -f conftest.sed
7576
7577test -z "$SED" && SED=sed
7578Xsed="$SED -e 1s/^X//"
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7591$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007592if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007593 $as_echo_n "(cached) " >&6
7594else
7595 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7596 then ac_cv_path_FGREP="$GREP -F"
7597 else
7598 if test -z "$FGREP"; then
7599 ac_path_FGREP_found=false
7600 # Loop through the user's path and test for each of PROGNAME-LIST
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7603do
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_prog in fgrep; do
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007609 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007610# Check for GNU ac_path_FGREP and select it if it is found.
7611 # Check for GNU $ac_path_FGREP
7612case `"$ac_path_FGREP" --version 2>&1` in
7613*GNU*)
7614 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7615*)
7616 ac_count=0
7617 $as_echo_n 0123456789 >"conftest.in"
7618 while :
7619 do
7620 cat "conftest.in" "conftest.in" >"conftest.tmp"
7621 mv "conftest.tmp" "conftest.in"
7622 cp "conftest.in" "conftest.nl"
7623 $as_echo 'FGREP' >> "conftest.nl"
7624 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7625 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7626 as_fn_arith $ac_count + 1 && ac_count=$as_val
7627 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7628 # Best one so far, save it but keep looking for a better one
7629 ac_cv_path_FGREP="$ac_path_FGREP"
7630 ac_path_FGREP_max=$ac_count
7631 fi
7632 # 10*(2^10) chars as input seems more than enough
7633 test $ac_count -gt 10 && break
7634 done
7635 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7636esac
7637
7638 $ac_path_FGREP_found && break 3
7639 done
7640 done
7641 done
7642IFS=$as_save_IFS
7643 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007644 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007645 fi
7646else
7647 ac_cv_path_FGREP=$FGREP
7648fi
7649
7650 fi
7651fi
7652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7653$as_echo "$ac_cv_path_FGREP" >&6; }
7654 FGREP="$ac_cv_path_FGREP"
7655
7656
7657test -z "$GREP" && GREP=grep
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
cristy0c60a692010-11-04 01:09:47 +00007675ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7676ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7677ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7678
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7680$as_echo_n "checking how to print strings... " >&6; }
7681# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007682if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007683 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7684 ECHO='print -r --'
7685elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7686 ECHO='printf %s\n'
7687else
7688 # Use this function as a fallback that always works.
7689 func_fallback_echo ()
7690 {
7691 eval 'cat <<_LTECHO_EOF
7692$1
7693_LTECHO_EOF'
7694 }
7695 ECHO='func_fallback_echo'
7696fi
7697
7698# func_echo_all arg...
7699# Invoke $ECHO with all args, space-separated.
7700func_echo_all ()
7701{
7702 $ECHO ""
7703}
7704
7705case "$ECHO" in
7706 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7707$as_echo "printf" >&6; } ;;
7708 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7709$as_echo "print -r" >&6; } ;;
7710 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7711$as_echo "cat" >&6; } ;;
7712esac
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
cristy73bd4a52010-10-05 11:24:23 +00007727
7728
7729# Check whether --with-gnu-ld was given.
7730if test "${with_gnu_ld+set}" = set; then :
7731 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7732else
7733 with_gnu_ld=no
7734fi
7735
7736ac_prog=ld
7737if test "$GCC" = yes; then
7738 # Check if gcc -print-prog-name=ld gives a path.
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7740$as_echo_n "checking for ld used by $CC... " >&6; }
7741 case $host in
7742 *-*-mingw*)
7743 # gcc leaves a trailing carriage return which upsets mingw
7744 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7745 *)
7746 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7747 esac
7748 case $ac_prog in
7749 # Accept absolute paths.
7750 [\\/]* | ?:[\\/]*)
7751 re_direlt='/[^/][^/]*/\.\./'
7752 # Canonicalize the pathname of ld
7753 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7754 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7755 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7756 done
7757 test -z "$LD" && LD="$ac_prog"
7758 ;;
7759 "")
7760 # If it fails, then pretend we aren't using GCC.
7761 ac_prog=ld
7762 ;;
7763 *)
7764 # If it is relative, then search for the first ld in PATH.
7765 with_gnu_ld=unknown
7766 ;;
7767 esac
7768elif test "$with_gnu_ld" = yes; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7770$as_echo_n "checking for GNU ld... " >&6; }
7771else
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7773$as_echo_n "checking for non-GNU ld... " >&6; }
7774fi
cristyda16f162011-02-19 23:52:17 +00007775if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007776 $as_echo_n "(cached) " >&6
7777else
7778 if test -z "$LD"; then
7779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7780 for ac_dir in $PATH; do
7781 IFS="$lt_save_ifs"
7782 test -z "$ac_dir" && ac_dir=.
7783 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7784 lt_cv_path_LD="$ac_dir/$ac_prog"
7785 # Check to see if the program is GNU ld. I'd rather use --version,
7786 # but apparently some variants of GNU ld only accept -v.
7787 # Break only if it was the GNU/non-GNU ld that we prefer.
7788 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7789 *GNU* | *'with BFD'*)
7790 test "$with_gnu_ld" != no && break
7791 ;;
7792 *)
7793 test "$with_gnu_ld" != yes && break
7794 ;;
7795 esac
7796 fi
7797 done
7798 IFS="$lt_save_ifs"
7799else
7800 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7801fi
7802fi
7803
7804LD="$lt_cv_path_LD"
7805if test -n "$LD"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7807$as_echo "$LD" >&6; }
7808else
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810$as_echo "no" >&6; }
7811fi
cristy98dddb52010-11-04 00:30:15 +00007812test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7814$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007815if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007816 $as_echo_n "(cached) " >&6
7817else
7818 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7819case `$LD -v 2>&1 </dev/null` in
7820*GNU* | *'with BFD'*)
7821 lt_cv_prog_gnu_ld=yes
7822 ;;
7823*)
7824 lt_cv_prog_gnu_ld=no
7825 ;;
7826esac
7827fi
7828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7829$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7830with_gnu_ld=$lt_cv_prog_gnu_ld
7831
7832
7833
7834
7835
7836
7837
7838
7839
cristy3ed852e2009-09-05 21:47:34 +00007840
cristy837d6dc2010-02-27 01:16:57 +00007841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7842$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007843if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007844 $as_echo_n "(cached) " >&6
7845else
7846 ac_cv_prog_cc_c99=no
7847ac_save_CC=$CC
7848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849/* end confdefs.h. */
7850#include <stdarg.h>
7851#include <stdbool.h>
7852#include <stdlib.h>
7853#include <wchar.h>
7854#include <stdio.h>
7855
7856// Check varargs macros. These examples are taken from C99 6.10.3.5.
7857#define debug(...) fprintf (stderr, __VA_ARGS__)
7858#define showlist(...) puts (#__VA_ARGS__)
7859#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7860static void
7861test_varargs_macros (void)
7862{
7863 int x = 1234;
7864 int y = 5678;
7865 debug ("Flag");
7866 debug ("X = %d\n", x);
7867 showlist (The first, second, and third items.);
7868 report (x>y, "x is %d but y is %d", x, y);
7869}
7870
7871// Check long long types.
7872#define BIG64 18446744073709551615ull
7873#define BIG32 4294967295ul
7874#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7875#if !BIG_OK
7876 your preprocessor is broken;
7877#endif
7878#if BIG_OK
7879#else
7880 your preprocessor is broken;
7881#endif
7882static long long int bignum = -9223372036854775807LL;
7883static unsigned long long int ubignum = BIG64;
7884
7885struct incomplete_array
7886{
7887 int datasize;
7888 double data[];
7889};
7890
7891struct named_init {
7892 int number;
7893 const wchar_t *name;
7894 double average;
7895};
7896
7897typedef const char *ccp;
7898
7899static inline int
7900test_restrict (ccp restrict text)
7901{
7902 // See if C++-style comments work.
7903 // Iterate through items via the restricted pointer.
7904 // Also check for declarations in for loops.
7905 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7906 continue;
7907 return 0;
7908}
7909
7910// Check varargs and va_copy.
7911static void
7912test_varargs (const char *format, ...)
7913{
7914 va_list args;
7915 va_start (args, format);
7916 va_list args_copy;
7917 va_copy (args_copy, args);
7918
7919 const char *str;
7920 int number;
7921 float fnumber;
7922
7923 while (*format)
7924 {
7925 switch (*format++)
7926 {
7927 case 's': // string
7928 str = va_arg (args_copy, const char *);
7929 break;
7930 case 'd': // int
7931 number = va_arg (args_copy, int);
7932 break;
7933 case 'f': // float
7934 fnumber = va_arg (args_copy, double);
7935 break;
7936 default:
7937 break;
7938 }
7939 }
7940 va_end (args_copy);
7941 va_end (args);
7942}
7943
7944int
7945main ()
7946{
7947
7948 // Check bool.
7949 _Bool success = false;
7950
7951 // Check restrict.
7952 if (test_restrict ("String literal") == 0)
7953 success = true;
7954 char *restrict newvar = "Another string";
7955
7956 // Check varargs.
7957 test_varargs ("s, d' f .", "string", 65, 34.234);
7958 test_varargs_macros ();
7959
7960 // Check flexible array members.
7961 struct incomplete_array *ia =
7962 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7963 ia->datasize = 10;
7964 for (int i = 0; i < ia->datasize; ++i)
7965 ia->data[i] = i * 1.234;
7966
7967 // Check named initializers.
7968 struct named_init ni = {
7969 .number = 34,
7970 .name = L"Test wide string",
7971 .average = 543.34343,
7972 };
7973
7974 ni.number = 58;
7975
7976 int dynamic_array[ni.number];
7977 dynamic_array[ni.number - 1] = 543;
7978
7979 // work around unused variable warnings
7980 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7981 || dynamic_array[ni.number - 1] != 543);
7982
7983 ;
7984 return 0;
7985}
7986_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007987for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007988do
7989 CC="$ac_save_CC $ac_arg"
7990 if ac_fn_c_try_compile "$LINENO"; then :
7991 ac_cv_prog_cc_c99=$ac_arg
7992fi
7993rm -f core conftest.err conftest.$ac_objext
7994 test "x$ac_cv_prog_cc_c99" != "xno" && break
7995done
7996rm -f conftest.$ac_ext
7997CC=$ac_save_CC
7998
7999fi
8000# AC_CACHE_VAL
8001case "x$ac_cv_prog_cc_c99" in
8002 x)
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8004$as_echo "none needed" >&6; } ;;
8005 xno)
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8007$as_echo "unsupported" >&6; } ;;
8008 *)
8009 CC="$CC $ac_cv_prog_cc_c99"
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8011$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8012esac
8013if test "x$ac_cv_prog_cc_c99" != xno; then :
8014
8015fi
8016
8017
cristy73bd4a52010-10-05 11:24:23 +00008018
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8020$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008021if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008022 $as_echo_n "(cached) " >&6
8023else
8024 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00008025 ac_ext=c
8026ac_cpp='$CPP $CPPFLAGS'
8027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8029ac_compiler_gnu=$ac_cv_c_compiler_gnu
8030
8031 ac_save_CFLAGS="$CFLAGS"
8032for 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" #
8033do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035/* end confdefs.h. */
8036
8037int
8038main ()
8039{
cristy24fc1fe2010-10-23 21:13:01 +00008040
cristy73bd4a52010-10-05 11:24:23 +00008041 ;
8042 return 0;
8043}
8044_ACEOF
8045if ac_fn_c_try_compile "$LINENO"; then :
8046 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8047fi
8048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8049done
8050 CFLAGS="$ac_save_CFLAGS"
8051 ac_ext=c
8052ac_cpp='$CPP $CPPFLAGS'
8053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8055ac_compiler_gnu=$ac_cv_c_compiler_gnu
8056
8057
8058fi
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8060$as_echo "$ac_cv_cflags_warn_all" >&6; }
8061case ".$ac_cv_cflags_warn_all" in
8062 .ok|.ok,*) ;;
8063 .|.no|.no,*)
8064 ;;
8065 *)
8066 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8067 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8068 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8069 ac_status=$?
8070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8071 test $ac_status = 0; }
8072 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8073 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8074 ac_status=$?
8075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8076 test $ac_status = 0; }
8077 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8078 fi
8079 ;;
nicolas6237c462010-10-05 06:11:49 +00008080esac
cristy3ed852e2009-09-05 21:47:34 +00008081
cristya0b81c32010-01-22 02:54:33 +00008082
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8084$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8085set x ${MAKE-make}
8086ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008087if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008088 $as_echo_n "(cached) " >&6
8089else
8090 cat >conftest.make <<\_ACEOF
8091SHELL = /bin/sh
8092all:
8093 @echo '@@@%%%=$(MAKE)=@@@%%%'
8094_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008095# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008096case `${MAKE-make} -f conftest.make 2>/dev/null` in
8097 *@@@%%%=?*=@@@%%%*)
8098 eval ac_cv_prog_make_${ac_make}_set=yes;;
8099 *)
8100 eval ac_cv_prog_make_${ac_make}_set=no;;
8101esac
8102rm -f conftest.make
8103fi
8104if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8106$as_echo "yes" >&6; }
8107 SET_MAKE=
8108else
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110$as_echo "no" >&6; }
8111 SET_MAKE="MAKE=${MAKE-make}"
8112fi
8113
cristy8b350f62009-11-15 23:12:43 +00008114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008115$as_echo_n "checking whether ln -s works... " >&6; }
8116LN_S=$as_ln_s
8117if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008119$as_echo "yes" >&6; }
8120else
cristy8b350f62009-11-15 23:12:43 +00008121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008122$as_echo "no, using $LN_S" >&6; }
8123fi
8124
cristy8d0ff762013-03-10 20:33:28 +00008125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8126$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8127if ${ac_cv_path_SED+:} false; then :
8128 $as_echo_n "(cached) " >&6
8129else
8130 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8131 for ac_i in 1 2 3 4 5 6 7; do
8132 ac_script="$ac_script$as_nl$ac_script"
8133 done
8134 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8135 { ac_script=; unset ac_script;}
8136 if test -z "$SED"; then
8137 ac_path_SED_found=false
8138 # Loop through the user's path and test for each of PROGNAME-LIST
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140for as_dir in $PATH
8141do
8142 IFS=$as_save_IFS
8143 test -z "$as_dir" && as_dir=.
8144 for ac_prog in sed gsed; do
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8147 as_fn_executable_p "$ac_path_SED" || continue
8148# Check for GNU ac_path_SED and select it if it is found.
8149 # Check for GNU $ac_path_SED
8150case `"$ac_path_SED" --version 2>&1` in
8151*GNU*)
8152 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8153*)
8154 ac_count=0
8155 $as_echo_n 0123456789 >"conftest.in"
8156 while :
8157 do
8158 cat "conftest.in" "conftest.in" >"conftest.tmp"
8159 mv "conftest.tmp" "conftest.in"
8160 cp "conftest.in" "conftest.nl"
8161 $as_echo '' >> "conftest.nl"
8162 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8164 as_fn_arith $ac_count + 1 && ac_count=$as_val
8165 if test $ac_count -gt ${ac_path_SED_max-0}; then
8166 # Best one so far, save it but keep looking for a better one
8167 ac_cv_path_SED="$ac_path_SED"
8168 ac_path_SED_max=$ac_count
8169 fi
8170 # 10*(2^10) chars as input seems more than enough
8171 test $ac_count -gt 10 && break
8172 done
8173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8174esac
8175
8176 $ac_path_SED_found && break 3
8177 done
8178 done
8179 done
8180IFS=$as_save_IFS
8181 if test -z "$ac_cv_path_SED"; then
8182 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8183 fi
8184else
8185 ac_cv_path_SED=$SED
8186fi
8187
8188fi
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8190$as_echo "$ac_cv_path_SED" >&6; }
8191 SED="$ac_cv_path_SED"
8192 rm -f conftest.sed
8193
cristybc556452012-08-17 19:44:03 +00008194for ac_prog in gawk mawk nawk awk
8195do
8196 # Extract the first word of "$ac_prog", so it can be a program name with args.
8197set dummy $ac_prog; ac_word=$2
8198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199$as_echo_n "checking for $ac_word... " >&6; }
8200if ${ac_cv_prog_AWK+:} false; then :
8201 $as_echo_n "(cached) " >&6
8202else
8203 if test -n "$AWK"; then
8204 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8205else
8206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207for as_dir in $PATH
8208do
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8213 ac_cv_prog_AWK="$ac_prog"
8214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 break 2
8216 fi
8217done
8218 done
8219IFS=$as_save_IFS
8220
8221fi
8222fi
8223AWK=$ac_cv_prog_AWK
8224if test -n "$AWK"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8226$as_echo "$AWK" >&6; }
8227else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229$as_echo "no" >&6; }
8230fi
8231
8232
8233 test -n "$AWK" && break
8234done
8235
cristy73bd4a52010-10-05 11:24:23 +00008236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8237$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8238
8239# Check whether --with-dmalloc was given.
8240if test "${with_dmalloc+set}" = set; then :
8241 withval=$with_dmalloc; if test "$withval" = yes; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8243$as_echo "yes" >&6; }
8244
8245$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8246
8247 LIBS="$LIBS -ldmalloc"
8248 LDFLAGS="$LDFLAGS -g"
8249else
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251$as_echo "no" >&6; }
8252fi
8253else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255$as_echo "no" >&6; }
8256fi
8257
8258
8259
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8261$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008262if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008263 $as_echo_n "(cached) " >&6
8264else
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266/* end confdefs.h. */
8267#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008268 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008269 static void
8270 foo(void) {
8271 exit(1);
8272 }
8273
8274int
8275main ()
8276{
8277
8278 ;
8279 return 0;
8280}
8281_ACEOF
8282if ac_fn_c_try_compile "$LINENO"; then :
8283 ax_cv___attribute__=yes
8284else
8285 ax_cv___attribute__=no
8286
8287fi
8288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289
8290fi
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8292$as_echo "$ax_cv___attribute__" >&6; }
8293 if test "$ax_cv___attribute__" = "yes"; then
8294
8295$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8296
8297 fi
8298
8299
8300
8301if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8302 if test -n "$ac_tool_prefix"; then
8303 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8304set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008307if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008308 $as_echo_n "(cached) " >&6
8309else
8310 case $PKG_CONFIG in
8311 [\\/]* | ?:[\\/]*)
8312 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8313 ;;
8314 *)
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316for as_dir in $PATH
8317do
8318 IFS=$as_save_IFS
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008322 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 break 2
8325 fi
8326done
8327 done
8328IFS=$as_save_IFS
8329
8330 ;;
8331esac
8332fi
8333PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8334if test -n "$PKG_CONFIG"; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8336$as_echo "$PKG_CONFIG" >&6; }
8337else
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339$as_echo "no" >&6; }
8340fi
8341
8342
8343fi
8344if test -z "$ac_cv_path_PKG_CONFIG"; then
8345 ac_pt_PKG_CONFIG=$PKG_CONFIG
8346 # Extract the first word of "pkg-config", so it can be a program name with args.
8347set dummy pkg-config; ac_word=$2
8348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8349$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008350if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008351 $as_echo_n "(cached) " >&6
8352else
8353 case $ac_pt_PKG_CONFIG in
8354 [\\/]* | ?:[\\/]*)
8355 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8356 ;;
8357 *)
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359for as_dir in $PATH
8360do
8361 IFS=$as_save_IFS
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008365 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 break 2
8368 fi
8369done
8370 done
8371IFS=$as_save_IFS
8372
8373 ;;
8374esac
8375fi
8376ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8377if test -n "$ac_pt_PKG_CONFIG"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8379$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8380else
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382$as_echo "no" >&6; }
8383fi
8384
8385 if test "x$ac_pt_PKG_CONFIG" = x; then
8386 PKG_CONFIG=""
8387 else
8388 case $cross_compiling:$ac_tool_warned in
8389yes:)
8390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8392ac_tool_warned=yes ;;
8393esac
8394 PKG_CONFIG=$ac_pt_PKG_CONFIG
8395 fi
8396else
8397 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8398fi
8399
8400fi
8401if test -n "$PKG_CONFIG"; then
8402 _pkg_min_version=0.9.0
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8404$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8405 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8407$as_echo "yes" >&6; }
8408 else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410$as_echo "no" >&6; }
8411 PKG_CONFIG=""
8412 fi
8413
8414fi
cristy3ed852e2009-09-05 21:47:34 +00008415
cristyd95b7a52013-10-23 13:12:53 +00008416# Test for 64-bit build.
8417# The cast to long int works around a bug in the HP C Compiler
8418# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8419# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8420# This bug is HP SR number 8606223364.
8421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8422$as_echo_n "checking size of size_t... " >&6; }
8423if ${ac_cv_sizeof_size_t+:} false; then :
8424 $as_echo_n "(cached) " >&6
8425else
8426 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
8427
8428else
8429 if test "$ac_cv_type_size_t" = yes; then
8430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8432as_fn_error 77 "cannot compute sizeof (size_t)
8433See \`config.log' for more details" "$LINENO" 5; }
8434 else
8435 ac_cv_sizeof_size_t=0
8436 fi
8437fi
8438
8439fi
8440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8441$as_echo "$ac_cv_sizeof_size_t" >&6; }
8442
8443
8444
8445cat >>confdefs.h <<_ACEOF
8446#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8447_ACEOF
8448
8449
8450
8451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8452$as_echo_n "checking for C compiler vendor... " >&6; }
8453if ${ax_cv_c_compiler_vendor+:} false; then :
8454 $as_echo_n "(cached) " >&6
8455else
8456 # note: don't check for gcc first since some other compilers define __GNUC__
8457 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8458 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8459 pathscale: __PATHCC__,__PATHSCALE__
8460 clang: __clang__
8461 gnu: __GNUC__
8462 sun: __SUNPRO_C,__SUNPRO_CC
8463 hp: __HP_cc,__HP_aCC
8464 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8465 borland: __BORLANDC__,__TURBOC__
8466 comeau: __COMO__
8467 cray: _CRAYC
8468 kai: __KCC
8469 lcc: __LCC__
8470 sgi: __sgi,sgi
8471 microsoft: _MSC_VER
8472 metrowerks: __MWERKS__
8473 watcom: __WATCOMC__
8474 portland: __PGI
8475 unknown: UNKNOWN"
8476 for ventest in $vendors; do
8477 case $ventest in
8478 *:) vendor=$ventest; continue ;;
8479 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8480 esac
8481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482/* end confdefs.h. */
8483
8484int
8485main ()
8486{
8487
8488 #if !($vencpp)
8489 thisisanerror;
8490 #endif
8491
8492 ;
8493 return 0;
8494}
8495_ACEOF
8496if ac_fn_c_try_compile "$LINENO"; then :
8497 break
8498fi
8499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 done
8501 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8502
8503fi
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8505$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8506
cristyd95b7a52013-10-23 13:12:53 +00008507# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
8508# compiler.
8509if test "$ax_cv_c_compiler_vendor" != "sun"; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8511$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8512if ${ac_cv_cflags_warn_all+:} false; then :
8513 $as_echo_n "(cached) " >&6
8514else
8515 ac_cv_cflags_warn_all="no, unknown"
8516 ac_ext=c
8517ac_cpp='$CPP $CPPFLAGS'
8518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8520ac_compiler_gnu=$ac_cv_c_compiler_gnu
8521
8522 ac_save_CFLAGS="$CFLAGS"
8523for 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" #
8524do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526/* end confdefs.h. */
8527
8528int
8529main ()
8530{
8531
8532 ;
8533 return 0;
8534}
8535_ACEOF
8536if ac_fn_c_try_compile "$LINENO"; then :
8537 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8538fi
8539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540done
8541 CFLAGS="$ac_save_CFLAGS"
8542 ac_ext=c
8543ac_cpp='$CPP $CPPFLAGS'
8544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8546ac_compiler_gnu=$ac_cv_c_compiler_gnu
8547
8548
8549fi
8550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8551$as_echo "$ac_cv_cflags_warn_all" >&6; }
8552case ".$ac_cv_cflags_warn_all" in
8553 .ok|.ok,*) ;;
8554 .|.no|.no,*)
8555 ;;
8556 *)
8557 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8558 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8559 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8560 ac_status=$?
8561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8562 test $ac_status = 0; }
8563 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8564 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8565 ac_status=$?
8566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8567 test $ac_status = 0; }
8568 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8569 fi
8570 ;;
8571esac
8572
8573fi
8574
8575if test "x$GCC" = "xyes"; then
8576 CFLAGS="$CFLAGS -fexceptions"
8577 touch local.exp
8578else
8579 cat > local.exp <<EOF
8580set CC_FOR_TARGET "$CC"
8581EOF
8582fi
8583
cristy9b86f202012-11-28 21:55:35 +00008584# Check for linker script support
8585
8586 # Check whether --enable-ld-version-script was given.
8587if test "${enable_ld_version_script+set}" = set; then :
8588 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8589fi
8590
8591 if test -z "$have_ld_version_script"; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8593$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8594 save_LDFLAGS="$LDFLAGS"
8595 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8596 cat > conftest.map <<EOF
8597foo
8598EOF
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600/* end confdefs.h. */
8601
8602int
8603main ()
8604{
8605
8606 ;
8607 return 0;
8608}
8609_ACEOF
8610if ac_fn_c_try_link "$LINENO"; then :
8611 accepts_syntax_errors=yes
8612else
8613 accepts_syntax_errors=no
8614fi
8615rm -f core conftest.err conftest.$ac_objext \
8616 conftest$ac_exeext conftest.$ac_ext
8617 if test "$accepts_syntax_errors" = no; then
8618 cat > conftest.map <<EOF
8619VERS_1 {
8620 global: sym;
8621};
8622
8623VERS_2 {
8624 global: sym;
8625} VERS_1;
8626EOF
8627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8628/* end confdefs.h. */
8629
8630int
8631main ()
8632{
8633
8634 ;
8635 return 0;
8636}
8637_ACEOF
8638if ac_fn_c_try_link "$LINENO"; then :
8639 have_ld_version_script=yes
8640else
8641 have_ld_version_script=no
8642fi
8643rm -f core conftest.err conftest.$ac_objext \
8644 conftest$ac_exeext conftest.$ac_ext
8645 else
8646 have_ld_version_script=no
8647 fi
8648 rm -f conftest.map
8649 LDFLAGS="$save_LDFLAGS"
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8651$as_echo "$have_ld_version_script" >&6; }
8652 fi
8653 if test "$have_ld_version_script" = "yes"; then
8654 HAVE_LD_VERSION_SCRIPT_TRUE=
8655 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8656else
8657 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8658 HAVE_LD_VERSION_SCRIPT_FALSE=
8659fi
8660
8661
8662
cristy3ed852e2009-09-05 21:47:34 +00008663#
cristy3ed852e2009-09-05 21:47:34 +00008664# Enable run-time checking.
8665#
8666# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008667if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008668 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8669else
8670 enable_bounds_checking='no'
8671fi
8672
8673
8674if test "$enable_bounds_checking" = yes; then
8675
cristy8b350f62009-11-15 23:12:43 +00008676$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008677
8678fi
8679
8680#
8681# Tests for Windows
8682#
8683
8684
8685
8686GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008687native_win32_build='no'
8688cygwin_build='no'
8689case "${host_os}" in
8690 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008691 cygwin_build='yes'
8692 GDI32_LIBS='-lgdi32'
8693 ;;
8694 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008695 native_win32_build='yes'
8696 GDI32_LIBS='-lgdi32'
8697 ;;
8698esac
8699if test "${GDI32_LIBS}x" != 'x'; then
8700
cristy8b350f62009-11-15 23:12:43 +00008701$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008702
8703fi
8704
cristy73bd4a52010-10-05 11:24:23 +00008705 if test "${GDI32_LIBS}x" != 'x' ; then
8706 WINGDI32_DELEGATE_TRUE=
8707 WINGDI32_DELEGATE_FALSE='#'
8708else
8709 WINGDI32_DELEGATE_TRUE='#'
8710 WINGDI32_DELEGATE_FALSE=
8711fi
8712
8713 if test "${native_win32_build}" = 'yes' ; then
8714 WIN32_NATIVE_BUILD_TRUE=
8715 WIN32_NATIVE_BUILD_FALSE='#'
8716else
8717 WIN32_NATIVE_BUILD_TRUE='#'
8718 WIN32_NATIVE_BUILD_FALSE=
8719fi
8720
8721 if test "${cygwin_build}" = 'yes' ; then
8722 CYGWIN_BUILD_TRUE=
8723 CYGWIN_BUILD_FALSE='#'
8724else
8725 CYGWIN_BUILD_TRUE='#'
8726 CYGWIN_BUILD_FALSE=
8727fi
8728
8729 if test "x${CC}" = 'xcl.exe' ; then
8730 USING_CL_TRUE=
8731 USING_CL_FALSE='#'
8732else
8733 USING_CL_TRUE='#'
8734 USING_CL_FALSE=
8735fi
8736
cristy3ed852e2009-09-05 21:47:34 +00008737
8738WinPathScript="${srcdirfull}/winpath.sh"
8739
8740
8741#
8742# Compiler flags tweaks
8743#
8744if test "${GCC}" != "yes"; then
8745 case "${host}" in
8746 *-*-hpux* )
8747 # aCC: HP ANSI C++ B3910B A.03.34
8748 CFLAGS="${CFLAGS} -Wp,-H30000"
8749 if test -n "${CXXFLAGS}"; then
8750 CXXFLAGS='-AA'
8751 else
8752 CXXFLAGS="${CXXFLAGS} -AA"
8753 fi
8754 ;;
8755 *-dec-osf5.* )
8756 # Compaq alphaev68-dec-osf5.1 compiler
8757 if test -n "${CXXFLAGS}"; then
8758 CXXFLAGS='-std strict_ansi -noimplicit_include'
8759 else
8760 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8761 fi
8762 esac
8763fi
8764
8765# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008767$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008768if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008769 $as_echo_n "(cached) " >&6
8770else
8771
8772im_cv_ld_lazyload='none'
8773case "${host}" in
8774 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8775 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8776 im_cv_ld_lazyload='-Wl,-zlazyload'
8777 fi
8778 ;;
8779esac
8780
8781fi
cristy8b350f62009-11-15 23:12:43 +00008782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008783$as_echo "$im_cv_ld_lazyload" >&6; }
8784if test "${im_cv_ld_lazyload}" != 'none' ; then
8785 if test -z "${LDFLAGS}" ; then
8786 LDFLAGS="${im_cv_ld_lazyload}"
8787 else
8788 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8789 fi
8790fi
8791
8792case "$host" in
cristyc37574e2013-02-16 01:04:55 +00008793 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00008794 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00008795 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008796if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008797 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8798else
8799 build_osxuniversal=no
8800fi
8801
8802
cristyc37574e2013-02-16 01:04:55 +00008803 if test "${build_osxuniversal}" != no ; then
8804 if test "$enable_dependency_tracking" != no ; then
8805 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008806Please re-run configure with these options:
8807 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008808 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00008809 fi
8810 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8811 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8812 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00008813 fi
8814 ;;
8815esac
8816
cristy0151ae12011-10-28 16:32:29 +00008817#
8818# ARCH specific include directory
8819#
8820
cristy670aa3c2011-11-03 00:54:00 +00008821# Check whether --with-includearch-dir was given.
8822if test "${with_includearch_dir+set}" = set; then :
8823 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008824else
cristy670aa3c2011-11-03 00:54:00 +00008825 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008826fi
8827
8828
cristyd286fd72013-02-24 19:25:33 +00008829eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008830
cristy0151ae12011-10-28 16:32:29 +00008831
8832#
8833# ARCH specific configuration directory
8834#
8835
cristy670aa3c2011-11-03 00:54:00 +00008836# Check whether --with-sharearch-dir was given.
8837if test "${with_sharearch_dir+set}" = set; then :
8838 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008839else
cristy408ebcd2011-11-14 01:36:57 +00008840 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008841fi
8842
8843
cristy670aa3c2011-11-03 00:54:00 +00008844eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008845
cristy0151ae12011-10-28 16:32:29 +00008846
cristy2ec87cc2013-02-18 17:46:50 +00008847# Path to the pkgconfig folder
8848
8849# Check whether --with-pkgconfigdir was given.
8850if test "${with_pkgconfigdir+set}" = set; then :
8851 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
8852else
8853 pkgconfigdir='${libdir}/pkgconfig'
8854fi
8855
8856
8857
cristy0151ae12011-10-28 16:32:29 +00008858#
cristy3ed852e2009-09-05 21:47:34 +00008859# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00008860#
8861# Find Posix threads library
8862#
cristy3ed852e2009-09-05 21:47:34 +00008863
8864# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008865if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008866 withval=$with_threads; with_threads=$withval
8867else
8868 with_threads='yes'
8869fi
8870
8871
cristy1ae5c992013-07-30 14:55:07 +00008872THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008873have_threads=no
8874if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008875
8876
cristy73bd4a52010-10-05 11:24:23 +00008877ac_ext=c
8878ac_cpp='$CPP $CPPFLAGS'
8879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8881ac_compiler_gnu=$ac_cv_c_compiler_gnu
8882
8883ax_pthread_ok=no
8884
8885# We used to check for pthread.h first, but this fails if pthread.h
8886# requires special compiler flags (e.g. on True64 or Sequent).
8887# It gets checked for in the link test anyway.
8888
8889# First of all, check if the user has set any of the PTHREAD_LIBS,
8890# etcetera environment variables, and if threads linking works using
8891# them:
8892if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8893 save_CFLAGS="$CFLAGS"
8894 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8895 save_LIBS="$LIBS"
8896 LIBS="$PTHREAD_LIBS $LIBS"
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8898$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900/* end confdefs.h. */
8901
8902/* Override any GCC internal prototype to avoid an error.
8903 Use char because int might match the return type of a GCC
8904 builtin and then its argument prototype would still apply. */
8905#ifdef __cplusplus
8906extern "C"
8907#endif
8908char pthread_join ();
8909int
8910main ()
8911{
8912return pthread_join ();
8913 ;
8914 return 0;
8915}
8916_ACEOF
8917if ac_fn_c_try_link "$LINENO"; then :
8918 ax_pthread_ok=yes
8919fi
8920rm -f core conftest.err conftest.$ac_objext \
8921 conftest$ac_exeext conftest.$ac_ext
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8923$as_echo "$ax_pthread_ok" >&6; }
8924 if test x"$ax_pthread_ok" = xno; then
8925 PTHREAD_LIBS=""
8926 PTHREAD_CFLAGS=""
8927 fi
8928 LIBS="$save_LIBS"
8929 CFLAGS="$save_CFLAGS"
8930fi
8931
8932# We must check for the threads library under a number of different
8933# names; the ordering is very important because some systems
8934# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8935# libraries is broken (non-POSIX).
8936
8937# Create a list of thread flags to try. Items starting with a "-" are
8938# C compiler flags, and other items are library names, except for "none"
8939# which indicates that we try without any flags at all, and "pthread-config"
8940# which is a program returning the flags for the Pth emulation library.
8941
cristy2ec87cc2013-02-18 17:46:50 +00008942ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008943
8944# The ordering *is* (sometimes) important. Some notes on the
8945# individual items follow:
8946
8947# pthreads: AIX (must check this before -lpthread)
8948# none: in case threads are in libc; should be tried before -Kthread and
8949# other compiler flags to prevent continual compiler warnings
8950# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8951# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8952# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8953# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8954# -pthreads: Solaris/gcc
8955# -mthreads: Mingw32/gcc, Lynx/gcc
8956# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8957# doesn't hurt to check since this sometimes defines pthreads too;
8958# also defines -D_REENTRANT)
8959# ... -mt is also the pthreads flag for HP/aCC
8960# pthread: Linux, etcetera
8961# --thread-safe: KAI C++
8962# pthread-config: use pthread-config program (for GNU Pth library)
8963
cristy2ec87cc2013-02-18 17:46:50 +00008964case ${host_os} in
8965 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00008966
8967 # On Solaris (at least, for some versions), libc contains stubbed
8968 # (non-functional) versions of the pthreads routines, so link-based
8969 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8970 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8971 # a function called by this macro, so we could check for that, but
8972 # who knows whether they'll stub that too in a future libc.) So,
8973 # we'll just look for -pthreads and -lpthread first:
8974
8975 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8976 ;;
8977
cristy2ec87cc2013-02-18 17:46:50 +00008978 darwin*)
cristya316db12011-10-24 00:49:45 +00008979 ax_pthread_flags="-pthread $ax_pthread_flags"
8980 ;;
cristy73bd4a52010-10-05 11:24:23 +00008981esac
8982
8983if test x"$ax_pthread_ok" = xno; then
8984for flag in $ax_pthread_flags; do
8985
8986 case $flag in
8987 none)
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8989$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8990 ;;
8991
8992 -*)
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8994$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8995 PTHREAD_CFLAGS="$flag"
8996 ;;
8997
cristya316db12011-10-24 00:49:45 +00008998 pthread-config)
8999 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009000set dummy pthread-config; ac_word=$2
9001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9002$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009003if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009004 $as_echo_n "(cached) " >&6
9005else
9006 if test -n "$ax_pthread_config"; then
9007 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9008else
9009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010for as_dir in $PATH
9011do
9012 IFS=$as_save_IFS
9013 test -z "$as_dir" && as_dir=.
9014 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009016 ac_cv_prog_ax_pthread_config="yes"
9017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9018 break 2
9019 fi
9020done
9021 done
9022IFS=$as_save_IFS
9023
9024 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9025fi
9026fi
9027ax_pthread_config=$ac_cv_prog_ax_pthread_config
9028if test -n "$ax_pthread_config"; then
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9030$as_echo "$ax_pthread_config" >&6; }
9031else
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033$as_echo "no" >&6; }
9034fi
9035
9036
cristya316db12011-10-24 00:49:45 +00009037 if test x"$ax_pthread_config" = xno; then continue; fi
9038 PTHREAD_CFLAGS="`pthread-config --cflags`"
9039 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9040 ;;
cristy73bd4a52010-10-05 11:24:23 +00009041
9042 *)
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9044$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9045 PTHREAD_LIBS="-l$flag"
9046 ;;
9047 esac
9048
9049 save_LIBS="$LIBS"
9050 save_CFLAGS="$CFLAGS"
9051 LIBS="$PTHREAD_LIBS $LIBS"
9052 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9053
9054 # Check for various functions. We must include pthread.h,
9055 # since some functions may be macros. (On the Sequent, we
9056 # need a special flag -Kthread to make this header compile.)
9057 # We check for pthread_join because it is in -lpthread on IRIX
9058 # while pthread_create is in libc. We check for pthread_attr_init
9059 # due to DEC craziness with -lpthreads. We check for
9060 # pthread_cleanup_push because it is one of the few pthread
9061 # functions on Solaris that doesn't have a non-functional libc stub.
9062 # We try pthread_create on general principles.
9063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064/* end confdefs.h. */
9065#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009066 static void routine(void *a) { a = 0; }
9067 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009068int
9069main ()
9070{
9071pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009072 pthread_create(&th, 0, start_routine, 0);
9073 pthread_join(th, 0);
9074 pthread_attr_init(&attr);
9075 pthread_cleanup_push(routine, 0);
9076 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009077 ;
9078 return 0;
9079}
9080_ACEOF
9081if ac_fn_c_try_link "$LINENO"; then :
9082 ax_pthread_ok=yes
9083fi
9084rm -f core conftest.err conftest.$ac_objext \
9085 conftest$ac_exeext conftest.$ac_ext
9086
9087 LIBS="$save_LIBS"
9088 CFLAGS="$save_CFLAGS"
9089
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9091$as_echo "$ax_pthread_ok" >&6; }
9092 if test "x$ax_pthread_ok" = xyes; then
9093 break;
9094 fi
9095
9096 PTHREAD_LIBS=""
9097 PTHREAD_CFLAGS=""
9098done
9099fi
9100
9101# Various other checks:
9102if test "x$ax_pthread_ok" = xyes; then
9103 save_LIBS="$LIBS"
9104 LIBS="$PTHREAD_LIBS $LIBS"
9105 save_CFLAGS="$CFLAGS"
9106 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9107
9108 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009110$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009111 attr_name=unknown
9112 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009114/* end confdefs.h. */
9115#include <pthread.h>
9116int
9117main ()
9118{
cristya316db12011-10-24 00:49:45 +00009119int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009120 ;
9121 return 0;
9122}
9123_ACEOF
9124if ac_fn_c_try_link "$LINENO"; then :
9125 attr_name=$attr; break
9126fi
9127rm -f core conftest.err conftest.$ac_objext \
9128 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009129 done
cristy73bd4a52010-10-05 11:24:23 +00009130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9131$as_echo "$attr_name" >&6; }
9132 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9133
9134cat >>confdefs.h <<_ACEOF
9135#define PTHREAD_CREATE_JOINABLE $attr_name
9136_ACEOF
9137
9138 fi
9139
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9141$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9142 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009143 case ${host_os} in
9144 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9145 osf* | hpux*) flag="-D_REENTRANT";;
9146 solaris*)
9147 if test "$GCC" = "yes"; then
9148 flag="-D_REENTRANT"
9149 else
9150 flag="-mt -D_REENTRANT"
9151 fi
9152 ;;
cristy73bd4a52010-10-05 11:24:23 +00009153 esac
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9155$as_echo "${flag}" >&6; }
9156 if test "x$flag" != xno; then
9157 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9158 fi
9159
cristya316db12011-10-24 00:49:45 +00009160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9161$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9162if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9163 $as_echo_n "(cached) " >&6
9164else
9165
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167/* end confdefs.h. */
9168
9169 #include <pthread.h>
9170int
9171main ()
9172{
9173int i = PTHREAD_PRIO_INHERIT;
9174 ;
9175 return 0;
9176}
9177_ACEOF
9178if ac_fn_c_try_link "$LINENO"; then :
9179 ax_cv_PTHREAD_PRIO_INHERIT=yes
9180else
9181 ax_cv_PTHREAD_PRIO_INHERIT=no
9182fi
9183rm -f core conftest.err conftest.$ac_objext \
9184 conftest$ac_exeext conftest.$ac_ext
9185
9186fi
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9188$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9189 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9190
9191$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9192
9193fi
9194
cristy73bd4a52010-10-05 11:24:23 +00009195 LIBS="$save_LIBS"
9196 CFLAGS="$save_CFLAGS"
9197
cristy23493c42013-04-11 16:04:59 +00009198 # More AIX lossage: compile with *_r variant
9199 if test "x$GCC" != xyes; then
9200 case $host_os in
9201 aix*)
9202 case "x/$CC" in #(
9203 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9204 #handle absolute path differently from PATH based program lookup
9205 case "x$CC" in #(
9206 x/*) :
9207 if as_fn_executable_p ${CC}_r; then :
9208 PTHREAD_CC="${CC}_r"
9209fi ;; #(
9210 *) :
9211 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009212do
9213 # Extract the first word of "$ac_prog", so it can be a program name with args.
9214set dummy $ac_prog; ac_word=$2
9215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9216$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009217if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009218 $as_echo_n "(cached) " >&6
9219else
9220 if test -n "$PTHREAD_CC"; then
9221 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9222else
9223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9224for as_dir in $PATH
9225do
9226 IFS=$as_save_IFS
9227 test -z "$as_dir" && as_dir=.
9228 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009230 ac_cv_prog_PTHREAD_CC="$ac_prog"
9231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9232 break 2
9233 fi
9234done
9235 done
9236IFS=$as_save_IFS
9237
9238fi
9239fi
9240PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9241if test -n "$PTHREAD_CC"; then
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9243$as_echo "$PTHREAD_CC" >&6; }
9244else
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9246$as_echo "no" >&6; }
9247fi
9248
9249
9250 test -n "$PTHREAD_CC" && break
9251done
cristy23493c42013-04-11 16:04:59 +00009252test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9253 ;;
9254esac ;; #(
9255 *) :
9256 ;;
9257esac
9258 ;;
9259 esac
cristya316db12011-10-24 00:49:45 +00009260 fi
cristy73bd4a52010-10-05 11:24:23 +00009261fi
9262
cristy23493c42013-04-11 16:04:59 +00009263test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9264
cristy73bd4a52010-10-05 11:24:23 +00009265
9266
9267
9268
9269# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9270if test x"$ax_pthread_ok" = xyes; then
9271
9272$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9273
9274 :
9275else
9276 ax_pthread_ok=no
9277
9278fi
9279ac_ext=c
9280ac_cpp='$CPP $CPPFLAGS'
9281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9283ac_compiler_gnu=$ac_cv_c_compiler_gnu
9284
9285
cristy7acf8fb2010-09-23 19:58:53 +00009286 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009287 have_threads=yes
9288 DEF_THREAD="$PTHREAD_CFLAGS"
9289 CFLAGS="$CFLAGS $DEF_THREAD"
9290 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009291 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009292 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009293 { $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 +00009294$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9295 CC="$PTHREAD_CC"
9296 fi
cristy55bf91c2010-09-24 00:29:41 +00009297
9298$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9299
cristy3ed852e2009-09-05 21:47:34 +00009300 fi
9301fi
cristy1ae5c992013-07-30 14:55:07 +00009302LIBS="$LIBS $THREAD_LIBS"
9303
cristy3ed852e2009-09-05 21:47:34 +00009304
9305# Enable support for OpenMP
9306if test "$have_threads" != 'yes'; then
9307 ac_cv_prog_c_openmp=unsupported
9308fi
9309
9310 OPENMP_CFLAGS=
9311 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009312if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009313 enableval=$enable_openmp;
9314fi
9315
9316 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009318$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009319if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009320 $as_echo_n "(cached) " >&6
9321else
cristy8b350f62009-11-15 23:12:43 +00009322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009324
9325#ifndef _OPENMP
9326 choke me
9327#endif
9328#include <omp.h>
9329int main () { return omp_get_num_threads (); }
9330
9331_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009332if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009333 ac_cv_prog_c_openmp='none needed'
9334else
cristy8b350f62009-11-15 23:12:43 +00009335 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009336 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9337 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009338 ac_save_CFLAGS=$CFLAGS
9339 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009342
9343#ifndef _OPENMP
9344 choke me
9345#endif
9346#include <omp.h>
9347int main () { return omp_get_num_threads (); }
9348
9349_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009350if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009351 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009352fi
cristy8b350f62009-11-15 23:12:43 +00009353rm -f core conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009355 CFLAGS=$ac_save_CFLAGS
9356 if test "$ac_cv_prog_c_openmp" != unsupported; then
9357 break
9358 fi
9359 done
9360fi
cristy8b350f62009-11-15 23:12:43 +00009361rm -f core conftest.err conftest.$ac_objext \
9362 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009363fi
cristy8b350f62009-11-15 23:12:43 +00009364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009365$as_echo "$ac_cv_prog_c_openmp" >&6; }
9366 case $ac_cv_prog_c_openmp in #(
9367 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009368 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009369 *)
cristy8b350f62009-11-15 23:12:43 +00009370 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009371 esac
9372 fi
9373
9374
9375CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9376MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9377
cristy391f1ce2010-09-09 17:23:28 +00009378if test "$enable_openmp" != no; then
9379 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9380 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9381 fi
9382fi
cristy3ed852e2009-09-05 21:47:34 +00009383
cristy736173a2009-09-20 21:18:22 +00009384# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009385
9386
cristy73bd4a52010-10-05 11:24:23 +00009387ac_ext=c
9388ac_cpp='$CPP $CPPFLAGS'
9389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9391ac_compiler_gnu=$ac_cv_c_compiler_gnu
9392
9393ax_pthread_ok=no
9394
9395# We used to check for pthread.h first, but this fails if pthread.h
9396# requires special compiler flags (e.g. on True64 or Sequent).
9397# It gets checked for in the link test anyway.
9398
9399# First of all, check if the user has set any of the PTHREAD_LIBS,
9400# etcetera environment variables, and if threads linking works using
9401# them:
9402if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9403 save_CFLAGS="$CFLAGS"
9404 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9405 save_LIBS="$LIBS"
9406 LIBS="$PTHREAD_LIBS $LIBS"
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9408$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410/* end confdefs.h. */
9411
9412/* Override any GCC internal prototype to avoid an error.
9413 Use char because int might match the return type of a GCC
9414 builtin and then its argument prototype would still apply. */
9415#ifdef __cplusplus
9416extern "C"
9417#endif
9418char pthread_join ();
9419int
9420main ()
9421{
9422return pthread_join ();
9423 ;
9424 return 0;
9425}
9426_ACEOF
9427if ac_fn_c_try_link "$LINENO"; then :
9428 ax_pthread_ok=yes
9429fi
9430rm -f core conftest.err conftest.$ac_objext \
9431 conftest$ac_exeext conftest.$ac_ext
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9433$as_echo "$ax_pthread_ok" >&6; }
9434 if test x"$ax_pthread_ok" = xno; then
9435 PTHREAD_LIBS=""
9436 PTHREAD_CFLAGS=""
9437 fi
9438 LIBS="$save_LIBS"
9439 CFLAGS="$save_CFLAGS"
9440fi
9441
9442# We must check for the threads library under a number of different
9443# names; the ordering is very important because some systems
9444# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9445# libraries is broken (non-POSIX).
9446
9447# Create a list of thread flags to try. Items starting with a "-" are
9448# C compiler flags, and other items are library names, except for "none"
9449# which indicates that we try without any flags at all, and "pthread-config"
9450# which is a program returning the flags for the Pth emulation library.
9451
cristy2ec87cc2013-02-18 17:46:50 +00009452ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009453
9454# The ordering *is* (sometimes) important. Some notes on the
9455# individual items follow:
9456
9457# pthreads: AIX (must check this before -lpthread)
9458# none: in case threads are in libc; should be tried before -Kthread and
9459# other compiler flags to prevent continual compiler warnings
9460# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9461# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9462# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9463# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9464# -pthreads: Solaris/gcc
9465# -mthreads: Mingw32/gcc, Lynx/gcc
9466# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9467# doesn't hurt to check since this sometimes defines pthreads too;
9468# also defines -D_REENTRANT)
9469# ... -mt is also the pthreads flag for HP/aCC
9470# pthread: Linux, etcetera
9471# --thread-safe: KAI C++
9472# pthread-config: use pthread-config program (for GNU Pth library)
9473
cristy2ec87cc2013-02-18 17:46:50 +00009474case ${host_os} in
9475 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009476
9477 # On Solaris (at least, for some versions), libc contains stubbed
9478 # (non-functional) versions of the pthreads routines, so link-based
9479 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9480 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9481 # a function called by this macro, so we could check for that, but
9482 # who knows whether they'll stub that too in a future libc.) So,
9483 # we'll just look for -pthreads and -lpthread first:
9484
9485 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9486 ;;
9487
cristy2ec87cc2013-02-18 17:46:50 +00009488 darwin*)
cristya316db12011-10-24 00:49:45 +00009489 ax_pthread_flags="-pthread $ax_pthread_flags"
9490 ;;
cristy73bd4a52010-10-05 11:24:23 +00009491esac
9492
9493if test x"$ax_pthread_ok" = xno; then
9494for flag in $ax_pthread_flags; do
9495
9496 case $flag in
9497 none)
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9499$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9500 ;;
9501
9502 -*)
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9504$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9505 PTHREAD_CFLAGS="$flag"
9506 ;;
9507
cristya316db12011-10-24 00:49:45 +00009508 pthread-config)
9509 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009510set dummy pthread-config; ac_word=$2
9511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9512$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009513if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009514 $as_echo_n "(cached) " >&6
9515else
9516 if test -n "$ax_pthread_config"; then
9517 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9518else
9519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520for as_dir in $PATH
9521do
9522 IFS=$as_save_IFS
9523 test -z "$as_dir" && as_dir=.
9524 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009526 ac_cv_prog_ax_pthread_config="yes"
9527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9528 break 2
9529 fi
9530done
9531 done
9532IFS=$as_save_IFS
9533
9534 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9535fi
9536fi
9537ax_pthread_config=$ac_cv_prog_ax_pthread_config
9538if test -n "$ax_pthread_config"; then
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9540$as_echo "$ax_pthread_config" >&6; }
9541else
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9543$as_echo "no" >&6; }
9544fi
9545
9546
cristya316db12011-10-24 00:49:45 +00009547 if test x"$ax_pthread_config" = xno; then continue; fi
9548 PTHREAD_CFLAGS="`pthread-config --cflags`"
9549 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9550 ;;
cristy73bd4a52010-10-05 11:24:23 +00009551
9552 *)
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9554$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9555 PTHREAD_LIBS="-l$flag"
9556 ;;
9557 esac
9558
9559 save_LIBS="$LIBS"
9560 save_CFLAGS="$CFLAGS"
9561 LIBS="$PTHREAD_LIBS $LIBS"
9562 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9563
9564 # Check for various functions. We must include pthread.h,
9565 # since some functions may be macros. (On the Sequent, we
9566 # need a special flag -Kthread to make this header compile.)
9567 # We check for pthread_join because it is in -lpthread on IRIX
9568 # while pthread_create is in libc. We check for pthread_attr_init
9569 # due to DEC craziness with -lpthreads. We check for
9570 # pthread_cleanup_push because it is one of the few pthread
9571 # functions on Solaris that doesn't have a non-functional libc stub.
9572 # We try pthread_create on general principles.
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574/* end confdefs.h. */
9575#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009576 static void routine(void *a) { a = 0; }
9577 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009578int
9579main ()
9580{
9581pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009582 pthread_create(&th, 0, start_routine, 0);
9583 pthread_join(th, 0);
9584 pthread_attr_init(&attr);
9585 pthread_cleanup_push(routine, 0);
9586 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009587 ;
9588 return 0;
9589}
9590_ACEOF
9591if ac_fn_c_try_link "$LINENO"; then :
9592 ax_pthread_ok=yes
9593fi
9594rm -f core conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9596
9597 LIBS="$save_LIBS"
9598 CFLAGS="$save_CFLAGS"
9599
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9601$as_echo "$ax_pthread_ok" >&6; }
9602 if test "x$ax_pthread_ok" = xyes; then
9603 break;
9604 fi
9605
9606 PTHREAD_LIBS=""
9607 PTHREAD_CFLAGS=""
9608done
9609fi
9610
9611# Various other checks:
9612if test "x$ax_pthread_ok" = xyes; then
9613 save_LIBS="$LIBS"
9614 LIBS="$PTHREAD_LIBS $LIBS"
9615 save_CFLAGS="$CFLAGS"
9616 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9617
9618 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009620$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009621 attr_name=unknown
9622 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009624/* end confdefs.h. */
9625#include <pthread.h>
9626int
9627main ()
9628{
cristya316db12011-10-24 00:49:45 +00009629int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009630 ;
9631 return 0;
9632}
9633_ACEOF
9634if ac_fn_c_try_link "$LINENO"; then :
9635 attr_name=$attr; break
9636fi
9637rm -f core conftest.err conftest.$ac_objext \
9638 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009639 done
cristy73bd4a52010-10-05 11:24:23 +00009640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9641$as_echo "$attr_name" >&6; }
9642 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9643
9644cat >>confdefs.h <<_ACEOF
9645#define PTHREAD_CREATE_JOINABLE $attr_name
9646_ACEOF
9647
9648 fi
9649
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9651$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9652 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009653 case ${host_os} in
9654 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9655 osf* | hpux*) flag="-D_REENTRANT";;
9656 solaris*)
9657 if test "$GCC" = "yes"; then
9658 flag="-D_REENTRANT"
9659 else
9660 flag="-mt -D_REENTRANT"
9661 fi
9662 ;;
cristy73bd4a52010-10-05 11:24:23 +00009663 esac
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9665$as_echo "${flag}" >&6; }
9666 if test "x$flag" != xno; then
9667 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9668 fi
9669
cristya316db12011-10-24 00:49:45 +00009670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9671$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9672if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9673 $as_echo_n "(cached) " >&6
9674else
9675
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677/* end confdefs.h. */
9678
9679 #include <pthread.h>
9680int
9681main ()
9682{
9683int i = PTHREAD_PRIO_INHERIT;
9684 ;
9685 return 0;
9686}
9687_ACEOF
9688if ac_fn_c_try_link "$LINENO"; then :
9689 ax_cv_PTHREAD_PRIO_INHERIT=yes
9690else
9691 ax_cv_PTHREAD_PRIO_INHERIT=no
9692fi
9693rm -f core conftest.err conftest.$ac_objext \
9694 conftest$ac_exeext conftest.$ac_ext
9695
9696fi
9697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9698$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9699 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9700
9701$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9702
9703fi
9704
cristy73bd4a52010-10-05 11:24:23 +00009705 LIBS="$save_LIBS"
9706 CFLAGS="$save_CFLAGS"
9707
cristy23493c42013-04-11 16:04:59 +00009708 # More AIX lossage: compile with *_r variant
9709 if test "x$GCC" != xyes; then
9710 case $host_os in
9711 aix*)
9712 case "x/$CC" in #(
9713 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9714 #handle absolute path differently from PATH based program lookup
9715 case "x$CC" in #(
9716 x/*) :
9717 if as_fn_executable_p ${CC}_r; then :
9718 PTHREAD_CC="${CC}_r"
9719fi ;; #(
9720 *) :
9721 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009722do
9723 # Extract the first word of "$ac_prog", so it can be a program name with args.
9724set dummy $ac_prog; ac_word=$2
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9726$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009727if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009728 $as_echo_n "(cached) " >&6
9729else
9730 if test -n "$PTHREAD_CC"; then
9731 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9732else
9733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9734for as_dir in $PATH
9735do
9736 IFS=$as_save_IFS
9737 test -z "$as_dir" && as_dir=.
9738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009740 ac_cv_prog_PTHREAD_CC="$ac_prog"
9741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9742 break 2
9743 fi
9744done
9745 done
9746IFS=$as_save_IFS
9747
9748fi
9749fi
9750PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9751if test -n "$PTHREAD_CC"; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9753$as_echo "$PTHREAD_CC" >&6; }
9754else
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756$as_echo "no" >&6; }
9757fi
9758
9759
9760 test -n "$PTHREAD_CC" && break
9761done
cristy23493c42013-04-11 16:04:59 +00009762test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9763 ;;
9764esac ;; #(
9765 *) :
9766 ;;
9767esac
9768 ;;
9769 esac
cristya316db12011-10-24 00:49:45 +00009770 fi
cristy73bd4a52010-10-05 11:24:23 +00009771fi
9772
cristy23493c42013-04-11 16:04:59 +00009773test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9774
cristy73bd4a52010-10-05 11:24:23 +00009775
9776
9777
9778
9779# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9780if test x"$ax_pthread_ok" = xyes; then
9781
9782$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9783
9784 :
9785else
9786 ax_pthread_ok=no
9787
9788fi
9789ac_ext=c
9790ac_cpp='$CPP $CPPFLAGS'
9791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9793ac_compiler_gnu=$ac_cv_c_compiler_gnu
9794
9795
9796
9797# Check whether --enable-opencl was given.
9798if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009799 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009800else
cristy48794642012-09-02 15:19:08 +00009801 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009802fi
9803
9804
cristy48794642012-09-02 15:19:08 +00009805if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009806 ac_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
cristy75314cc2012-09-15 23:08:29 +00009812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9813$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9814if ${ax_cv_c_compiler_ms+:} false; then :
9815 $as_echo_n "(cached) " >&6
9816else
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818/* end confdefs.h. */
9819
9820int
9821main ()
9822{
9823#ifndef _MSC_VER
9824 choke me
9825#endif
9826
9827 ;
9828 return 0;
9829}
9830_ACEOF
9831if ac_fn_c_try_compile "$LINENO"; then :
9832 ax_compiler_ms=yes
9833else
9834 ax_compiler_ms=no
9835fi
9836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9837ax_cv_c_compiler_ms=$ax_compiler_ms
9838
9839fi
9840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9841$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009842 if test X$ax_compiler_ms = Xno; then :
9843 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9844fi
9845
9846 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +00009847 ax_save_CL_CFLAGS=$CL_CFLAGS
9848
9849 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +00009850 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9851 for ac_header in CL/cl.h OpenCL/cl.h
9852do :
9853 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9854ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009855if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009856 cat >>confdefs.h <<_ACEOF
9857#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9858_ACEOF
cristyfdc7d122013-08-17 20:46:45 +00009859 found_opencl_header='yes'
9860 break;
9861else
9862 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +00009863fi
9864
9865done
9866
cristyfdc7d122013-08-17 20:46:45 +00009867
9868 if test X$found_opencl_header = Xno; then :
9869 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
9870 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
9871 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
9872 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
9873 for ac_header in CL/cl.h OpenCL/cl.h
9874do :
9875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9876ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9877if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9878 cat >>confdefs.h <<_ACEOF
9879#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9880_ACEOF
9881 found_opencl_header='yes'
9882 break;
9883else
9884 found_opencl_header='no'
9885fi
9886
9887done
9888
9889
9890fi
9891
9892 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +00009893
9894 for ac_header in windows.h
9895do :
9896 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009897if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009898 cat >>confdefs.h <<_ACEOF
9899#define HAVE_WINDOWS_H 1
9900_ACEOF
9901
9902fi
9903
9904done
9905
9906
9907
9908
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9910$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009911if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009912 $as_echo_n "(cached) " >&6
9913else
9914 ax_cv_check_cl_libcl=no
9915 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +00009916 x86_64) ax_check_cl_libdir=lib64
9917 ax_check_cl_amd_libdir=x86_64
9918 ;;
9919 *) ax_check_cl_libdir=lib
9920 ax_check_cl_amd_libdir=x86
9921 ;;
cristy73bd4a52010-10-05 11:24:23 +00009922 esac
9923 ax_save_CPPFLAGS=$CPPFLAGS
9924 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9925 ax_save_LIBS=$LIBS
9926 LIBS=""
9927 ax_check_libs="-lOpenCL -lCL -lclparser"
9928 for ax_lib in $ax_check_libs; do
9929 if test X$ax_compiler_ms = Xyes; then :
9930 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9931else
9932 ax_try_lib=$ax_lib
9933fi
9934 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936/* end confdefs.h. */
9937
9938 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9939 # include <windows.h>
9940 # endif
9941 # ifdef HAVE_CL_CL_H
9942 # include <CL/cl.h>
9943 # elif defined(HAVE_OPENCL_CL_H)
9944 # include <OpenCL/cl.h>
9945 # else
9946 # error no CL.h
9947 # endif
9948int
9949main ()
9950{
9951clCreateContextFromType(0,0,0,0,0)
9952 ;
9953 return 0;
9954}
9955_ACEOF
9956if ac_fn_c_try_link "$LINENO"; then :
9957 ax_cv_check_cl_libcl=$ax_try_lib; break
9958else
9959 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"
9960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961/* end confdefs.h. */
9962
9963 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9964 # include <windows.h>
9965 # endif
9966 # ifdef HAVE_CL_CL_H
9967 # include <CL/cl.h>
9968 # elif defined(HAVE_OPENCL_CL_H)
9969 # include <OpenCL/cl.h>
9970 # else
9971 # error no CL.h
9972 # endif
9973int
9974main ()
9975{
9976clCreateContextFromType(0,0,0,0,0)
9977 ;
9978 return 0;
9979}
9980_ACEOF
9981if ac_fn_c_try_link "$LINENO"; then :
9982 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9983else
cristy78c5a0c2010-12-04 20:00:59 +00009984 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 +00009985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986/* end confdefs.h. */
9987
9988 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9989 # include <windows.h>
9990 # endif
9991 # ifdef HAVE_CL_CL_H
9992 # include <CL/cl.h>
9993 # elif defined(HAVE_OPENCL_CL_H)
9994 # include <OpenCL/cl.h>
9995 # else
9996 # error no CL.h
9997 # endif
9998int
9999main ()
10000{
10001clCreateContextFromType(0,0,0,0,0)
10002 ;
10003 return 0;
10004}
10005_ACEOF
10006if ac_fn_c_try_link "$LINENO"; then :
10007 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010008else
10009 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"
10010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10011/* end confdefs.h. */
10012
10013 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10014 # include <windows.h>
10015 # endif
10016 # ifdef HAVE_CL_CL_H
10017 # include <CL/cl.h>
10018 # elif defined(HAVE_OPENCL_CL_H)
10019 # include <OpenCL/cl.h>
10020 # else
10021 # error no CL.h
10022 # endif
10023int
10024main ()
10025{
10026clCreateContextFromType(0,0,0,0,0)
10027 ;
10028 return 0;
10029}
10030_ACEOF
10031if ac_fn_c_try_link "$LINENO"; then :
10032 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10033
10034fi
10035rm -f core conftest.err conftest.$ac_objext \
10036 conftest$ac_exeext conftest.$ac_ext
10037
10038
cristy73bd4a52010-10-05 11:24:23 +000010039fi
10040rm -f core conftest.err conftest.$ac_objext \
10041 conftest$ac_exeext conftest.$ac_ext
10042fi
10043rm -f core conftest.err conftest.$ac_objext \
10044 conftest$ac_exeext conftest.$ac_ext
10045fi
10046rm -f core conftest.err conftest.$ac_objext \
10047 conftest$ac_exeext conftest.$ac_ext
10048 done
10049
cristyc3f8b8e2011-12-22 14:55:16 +000010050 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010051 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053/* end confdefs.h. */
10054
10055 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10056 # include <windows.h>
10057 # endif
10058 # ifdef HAVE_CL_CL_H
10059 # include <CL/cl.h>
10060 # elif defined(HAVE_OPENCL_CL_H)
10061 # include <OpenCL/cl.h>
10062 # else
10063 # error no CL.h
10064 # endif
10065int
10066main ()
10067{
10068clCreateContextFromType(0,0,0,0,0)
10069 ;
10070 return 0;
10071}
10072_ACEOF
10073if ac_fn_c_try_link "$LINENO"; then :
10074 ax_cv_check_cl_libcl=$LIBS
10075fi
10076rm -f core conftest.err conftest.$ac_objext \
10077 conftest$ac_exeext conftest.$ac_ext
10078fi
10079
10080 LIBS=$ax_save_LIBS
10081 CPPFLAGS=$ax_save_CPPFLAGS
10082fi
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10084$as_echo "$ax_cv_check_cl_libcl" >&6; }
10085
10086 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10087 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10088else
10089 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10090$as_echo "#define _OPENCL 1" >>confdefs.h
10091
10092fi
10093 ac_ext=c
10094ac_cpp='$CPP $CPPFLAGS'
10095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10097ac_compiler_gnu=$ac_cv_c_compiler_gnu
10098
10099fi
10100
10101
10102
10103
cristyc7083c12009-10-14 03:16:55 +000010104CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010105CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010106LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010107
cristy391f1ce2010-09-09 17:23:28 +000010108if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010109 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010110 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10111 fi
cristyfd9dcd42010-08-08 18:07:02 +000010112fi
cristy2e8b51d2009-10-17 18:26:15 +000010113
cristy3ed852e2009-09-05 21:47:34 +000010114########
10115#
10116# Check for large file support
10117#
10118########
10119# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010120if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010121 enableval=$enable_largefile;
10122fi
10123
10124if test "$enable_largefile" != no; then
10125
cristy8b350f62009-11-15 23:12:43 +000010126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010127$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010128if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010129 $as_echo_n "(cached) " >&6
10130else
10131 ac_cv_sys_largefile_CC=no
10132 if test "$GCC" != yes; then
10133 ac_save_CC=$CC
10134 while :; do
10135 # IRIX 6.2 and later do not support large files by default,
10136 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010138/* end confdefs.h. */
10139#include <sys/types.h>
10140 /* Check that off_t can represent 2**63 - 1 correctly.
10141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10142 since some C++ compilers masquerading as C compilers
10143 incorrectly reject 9223372036854775807. */
10144#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10146 && LARGE_OFF_T % 2147483647 == 1)
10147 ? 1 : -1];
10148int
10149main ()
10150{
10151
10152 ;
10153 return 0;
10154}
10155_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010156 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010157 break
cristy3ed852e2009-09-05 21:47:34 +000010158fi
cristy3ed852e2009-09-05 21:47:34 +000010159rm -f core conftest.err conftest.$ac_objext
10160 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010161 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010162 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010163fi
cristy3ed852e2009-09-05 21:47:34 +000010164rm -f core conftest.err conftest.$ac_objext
10165 break
10166 done
10167 CC=$ac_save_CC
10168 rm -f conftest.$ac_ext
10169 fi
10170fi
cristy8b350f62009-11-15 23:12:43 +000010171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010172$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10173 if test "$ac_cv_sys_largefile_CC" != no; then
10174 CC=$CC$ac_cv_sys_largefile_CC
10175 fi
10176
cristy8b350f62009-11-15 23:12:43 +000010177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010178$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010179if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010180 $as_echo_n "(cached) " >&6
10181else
10182 while :; do
cristy8b350f62009-11-15 23:12:43 +000010183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010184/* end confdefs.h. */
10185#include <sys/types.h>
10186 /* Check that off_t can represent 2**63 - 1 correctly.
10187 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10188 since some C++ compilers masquerading as C compilers
10189 incorrectly reject 9223372036854775807. */
10190#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10191 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10192 && LARGE_OFF_T % 2147483647 == 1)
10193 ? 1 : -1];
10194int
10195main ()
10196{
10197
10198 ;
10199 return 0;
10200}
10201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010202if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010203 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010204fi
cristy3ed852e2009-09-05 21:47:34 +000010205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010207/* end confdefs.h. */
10208#define _FILE_OFFSET_BITS 64
10209#include <sys/types.h>
10210 /* Check that off_t can represent 2**63 - 1 correctly.
10211 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10212 since some C++ compilers masquerading as C compilers
10213 incorrectly reject 9223372036854775807. */
10214#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10215 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10216 && LARGE_OFF_T % 2147483647 == 1)
10217 ? 1 : -1];
10218int
10219main ()
10220{
10221
10222 ;
10223 return 0;
10224}
10225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010226if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010227 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010228fi
cristy3ed852e2009-09-05 21:47:34 +000010229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230 ac_cv_sys_file_offset_bits=unknown
10231 break
10232done
10233fi
cristy8b350f62009-11-15 23:12:43 +000010234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010235$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10236case $ac_cv_sys_file_offset_bits in #(
10237 no | unknown) ;;
10238 *)
10239cat >>confdefs.h <<_ACEOF
10240#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10241_ACEOF
10242;;
10243esac
10244rm -rf conftest*
10245 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010247$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010248if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010249 $as_echo_n "(cached) " >&6
10250else
10251 while :; do
cristy8b350f62009-11-15 23:12:43 +000010252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010253/* end confdefs.h. */
10254#include <sys/types.h>
10255 /* Check that off_t can represent 2**63 - 1 correctly.
10256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10257 since some C++ compilers masquerading as C compilers
10258 incorrectly reject 9223372036854775807. */
10259#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10261 && LARGE_OFF_T % 2147483647 == 1)
10262 ? 1 : -1];
10263int
10264main ()
10265{
10266
10267 ;
10268 return 0;
10269}
10270_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010271if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010272 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010273fi
cristy3ed852e2009-09-05 21:47:34 +000010274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010276/* end confdefs.h. */
10277#define _LARGE_FILES 1
10278#include <sys/types.h>
10279 /* Check that off_t can represent 2**63 - 1 correctly.
10280 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10281 since some C++ compilers masquerading as C compilers
10282 incorrectly reject 9223372036854775807. */
10283#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10284 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10285 && LARGE_OFF_T % 2147483647 == 1)
10286 ? 1 : -1];
10287int
10288main ()
10289{
10290
10291 ;
10292 return 0;
10293}
10294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010295if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010296 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010297fi
cristy3ed852e2009-09-05 21:47:34 +000010298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10299 ac_cv_sys_large_files=unknown
10300 break
10301done
10302fi
cristy8b350f62009-11-15 23:12:43 +000010303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010304$as_echo "$ac_cv_sys_large_files" >&6; }
10305case $ac_cv_sys_large_files in #(
10306 no | unknown) ;;
10307 *)
10308cat >>confdefs.h <<_ACEOF
10309#define _LARGE_FILES $ac_cv_sys_large_files
10310_ACEOF
10311;;
10312esac
10313rm -rf conftest*
10314 fi
cristy14fefe52012-05-21 00:59:18 +000010315
10316
cristy3ed852e2009-09-05 21:47:34 +000010317fi
10318
cristy8b350f62009-11-15 23:12:43 +000010319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010320$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010321if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010322 $as_echo_n "(cached) " >&6
10323else
10324 while :; do
cristy8b350f62009-11-15 23:12:43 +000010325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010326/* end confdefs.h. */
10327#include <sys/types.h> /* for off_t */
10328 #include <stdio.h>
10329int
10330main ()
10331{
10332int (*fp) (FILE *, off_t, int) = fseeko;
10333 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10334 ;
10335 return 0;
10336}
10337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010338if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010339 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010340fi
cristy8b350f62009-11-15 23:12:43 +000010341rm -f core conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010344/* end confdefs.h. */
10345#define _LARGEFILE_SOURCE 1
10346#include <sys/types.h> /* for off_t */
10347 #include <stdio.h>
10348int
10349main ()
10350{
10351int (*fp) (FILE *, off_t, int) = fseeko;
10352 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10353 ;
10354 return 0;
10355}
10356_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010357if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010358 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010359fi
cristy8b350f62009-11-15 23:12:43 +000010360rm -f core conftest.err conftest.$ac_objext \
10361 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010362 ac_cv_sys_largefile_source=unknown
10363 break
10364done
10365fi
cristy8b350f62009-11-15 23:12:43 +000010366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010367$as_echo "$ac_cv_sys_largefile_source" >&6; }
10368case $ac_cv_sys_largefile_source in #(
10369 no | unknown) ;;
10370 *)
10371cat >>confdefs.h <<_ACEOF
10372#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10373_ACEOF
10374;;
10375esac
10376rm -rf conftest*
10377
10378# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10379# in glibc 2.1.3, but that breaks too many other things.
10380# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10381if test $ac_cv_sys_largefile_source != unknown; then
10382
cristy8b350f62009-11-15 23:12:43 +000010383$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010384
10385fi
10386
10387LFS_CPPFLAGS=''
10388if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010389 case $ac_cv_sys_file_offset_bits in
10390 no)
10391 # nothing to do here as the host supports LFS fine
10392 ;;
10393 unknown)
cristy8b350f62009-11-15 23:12:43 +000010394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010395$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010396 if test "$cross_compiling" = yes; then :
10397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010399as_fn_error $? "cannot run test program while cross compiling
10400See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010401else
cristy8b350f62009-11-15 23:12:43 +000010402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010404#include <unistd.h>
10405 main () {
10406 exit(!(sizeof(off_t) == 8));
10407 }
cristyda16f162011-02-19 23:52:17 +000010408int
10409main ()
10410{
10411
10412 ;
10413 return 0;
10414}
cristy3ed852e2009-09-05 21:47:34 +000010415_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010416if ac_fn_c_try_run "$LINENO"; then :
10417 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010418
cristyad38abe2012-12-23 23:03:21 +000010419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10420$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010421else
cristyad38abe2012-12-23 23:03:21 +000010422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10423$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010424fi
cristy8b350f62009-11-15 23:12:43 +000010425rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10426 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010427fi
10428
cristyc1e0cc12011-09-21 16:41:16 +000010429 ;;
10430 *)
10431 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10432 ;;
10433 esac
cristy3ed852e2009-09-05 21:47:34 +000010434 if test "$ac_cv_sys_large_files" != 'no'; then
10435 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10436 fi
10437 if test "$ac_cv_sys_largefile_source" != 'no'; then
10438 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10439 fi
10440fi
10441
10442
cristy3ed852e2009-09-05 21:47:34 +000010443# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010444enable_dlopen=yes
10445
10446
10447
10448case `pwd` in
10449 *\ * | *\ *)
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10451$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10452esac
10453
10454
10455
cristy99bd5232011-12-07 14:38:20 +000010456macro_version='2.4.2'
10457macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471ltmain="$ac_aux_dir/ltmain.sh"
10472
cristy0c60a692010-11-04 01:09:47 +000010473# Backslashify metacharacters that are still active within
10474# double-quoted strings.
10475sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10476
10477# Same as above, but do not quote variable references.
10478double_quote_subst='s/\(["`\\]\)/\\\1/g'
10479
10480# Sed substitution to delay expansion of an escaped shell variable in a
10481# double_quote_subst'ed string.
10482delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10483
10484# Sed substitution to delay expansion of an escaped single quote.
10485delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10486
10487# Sed substitution to avoid accidental globbing in evaled expressions
10488no_glob_subst='s/\*/\\\*/g'
10489
cristy73bd4a52010-10-05 11:24:23 +000010490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10491$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010492if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010493 $as_echo_n "(cached) " >&6
10494else
10495 if test -n "$NM"; then
10496 # Let the user override the test.
10497 lt_cv_path_NM="$NM"
10498else
10499 lt_nm_to_check="${ac_tool_prefix}nm"
10500 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10501 lt_nm_to_check="$lt_nm_to_check nm"
10502 fi
10503 for lt_tmp_nm in $lt_nm_to_check; do
10504 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10505 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10506 IFS="$lt_save_ifs"
10507 test -z "$ac_dir" && ac_dir=.
10508 tmp_nm="$ac_dir/$lt_tmp_nm"
10509 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10510 # Check to see if the nm accepts a BSD-compat flag.
10511 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10512 # nm: unknown option "B" ignored
10513 # Tru64's nm complains that /dev/null is an invalid object file
10514 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10515 */dev/null* | *'Invalid file or object type'*)
10516 lt_cv_path_NM="$tmp_nm -B"
10517 break
10518 ;;
10519 *)
10520 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10521 */dev/null*)
10522 lt_cv_path_NM="$tmp_nm -p"
10523 break
10524 ;;
10525 *)
10526 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10527 continue # so that we can try to find one that supports BSD flags
10528 ;;
10529 esac
10530 ;;
10531 esac
10532 fi
10533 done
10534 IFS="$lt_save_ifs"
10535 done
10536 : ${lt_cv_path_NM=no}
10537fi
10538fi
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10540$as_echo "$lt_cv_path_NM" >&6; }
10541if test "$lt_cv_path_NM" != "no"; then
10542 NM="$lt_cv_path_NM"
10543else
10544 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010545 if test -n "$DUMPBIN"; then :
10546 # Let the user override the test.
10547 else
10548 if test -n "$ac_tool_prefix"; then
10549 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010550 do
10551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10552set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10554$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010555if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010556 $as_echo_n "(cached) " >&6
10557else
10558 if test -n "$DUMPBIN"; then
10559 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10560else
10561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562for as_dir in $PATH
10563do
10564 IFS=$as_save_IFS
10565 test -z "$as_dir" && as_dir=.
10566 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010568 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10570 break 2
10571 fi
10572done
10573 done
10574IFS=$as_save_IFS
10575
10576fi
10577fi
10578DUMPBIN=$ac_cv_prog_DUMPBIN
10579if test -n "$DUMPBIN"; then
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10581$as_echo "$DUMPBIN" >&6; }
10582else
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584$as_echo "no" >&6; }
10585fi
10586
10587
10588 test -n "$DUMPBIN" && break
10589 done
10590fi
10591if test -z "$DUMPBIN"; then
10592 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010593 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010594do
10595 # Extract the first word of "$ac_prog", so it can be a program name with args.
10596set dummy $ac_prog; ac_word=$2
10597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10598$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010599if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010600 $as_echo_n "(cached) " >&6
10601else
10602 if test -n "$ac_ct_DUMPBIN"; then
10603 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10604else
10605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606for as_dir in $PATH
10607do
10608 IFS=$as_save_IFS
10609 test -z "$as_dir" && as_dir=.
10610 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010612 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10614 break 2
10615 fi
10616done
10617 done
10618IFS=$as_save_IFS
10619
10620fi
10621fi
10622ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10623if test -n "$ac_ct_DUMPBIN"; then
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10625$as_echo "$ac_ct_DUMPBIN" >&6; }
10626else
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628$as_echo "no" >&6; }
10629fi
10630
10631
10632 test -n "$ac_ct_DUMPBIN" && break
10633done
10634
10635 if test "x$ac_ct_DUMPBIN" = x; then
10636 DUMPBIN=":"
10637 else
10638 case $cross_compiling:$ac_tool_warned in
10639yes:)
10640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10642ac_tool_warned=yes ;;
10643esac
10644 DUMPBIN=$ac_ct_DUMPBIN
10645 fi
10646fi
10647
cristy0c60a692010-11-04 01:09:47 +000010648 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10649 *COFF*)
10650 DUMPBIN="$DUMPBIN -symbols"
10651 ;;
10652 *)
10653 DUMPBIN=:
10654 ;;
10655 esac
10656 fi
cristy73bd4a52010-10-05 11:24:23 +000010657
10658 if test "$DUMPBIN" != ":"; then
10659 NM="$DUMPBIN"
10660 fi
10661fi
10662test -z "$NM" && NM=nm
10663
10664
10665
10666
10667
10668
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10670$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010671if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010672 $as_echo_n "(cached) " >&6
10673else
10674 lt_cv_nm_interface="BSD nm"
10675 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010676 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010677 (eval "$ac_compile" 2>conftest.err)
10678 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010679 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010680 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10681 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010682 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010683 cat conftest.out >&5
10684 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10685 lt_cv_nm_interface="MS dumpbin"
10686 fi
10687 rm -f conftest*
10688fi
10689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10690$as_echo "$lt_cv_nm_interface" >&6; }
10691
10692# find the maximum length of command line arguments
10693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10694$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010695if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010696 $as_echo_n "(cached) " >&6
10697else
10698 i=0
10699 teststring="ABCD"
10700
10701 case $build_os in
10702 msdosdjgpp*)
10703 # On DJGPP, this test can blow up pretty badly due to problems in libc
10704 # (any single argument exceeding 2000 bytes causes a buffer overrun
10705 # during glob expansion). Even if it were fixed, the result of this
10706 # check would be larger than it should be.
10707 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10708 ;;
10709
10710 gnu*)
10711 # Under GNU Hurd, this test is not required because there is
10712 # no limit to the length of command line arguments.
10713 # Libtool will interpret -1 as no limit whatsoever
10714 lt_cv_sys_max_cmd_len=-1;
10715 ;;
10716
10717 cygwin* | mingw* | cegcc*)
10718 # On Win9x/ME, this test blows up -- it succeeds, but takes
10719 # about 5 minutes as the teststring grows exponentially.
10720 # Worse, since 9x/ME are not pre-emptively multitasking,
10721 # you end up with a "frozen" computer, even though with patience
10722 # the test eventually succeeds (with a max line length of 256k).
10723 # Instead, let's just punt: use the minimum linelength reported by
10724 # all of the supported platforms: 8192 (on NT/2K/XP).
10725 lt_cv_sys_max_cmd_len=8192;
10726 ;;
10727
cristy0c60a692010-11-04 01:09:47 +000010728 mint*)
10729 # On MiNT this can take a long time and run out of memory.
10730 lt_cv_sys_max_cmd_len=8192;
10731 ;;
10732
cristy73bd4a52010-10-05 11:24:23 +000010733 amigaos*)
10734 # On AmigaOS with pdksh, this test takes hours, literally.
10735 # So we just punt and use a minimum line length of 8192.
10736 lt_cv_sys_max_cmd_len=8192;
10737 ;;
10738
10739 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10740 # This has been around since 386BSD, at least. Likely further.
10741 if test -x /sbin/sysctl; then
10742 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10743 elif test -x /usr/sbin/sysctl; then
10744 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10745 else
10746 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10747 fi
10748 # And add a safety zone
10749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10751 ;;
10752
10753 interix*)
10754 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10755 lt_cv_sys_max_cmd_len=196608
10756 ;;
10757
cristy99bd5232011-12-07 14:38:20 +000010758 os2*)
10759 # The test takes a long time on OS/2.
10760 lt_cv_sys_max_cmd_len=8192
10761 ;;
10762
cristy73bd4a52010-10-05 11:24:23 +000010763 osf*)
10764 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10765 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10766 # nice to cause kernel panics so lets avoid the loop below.
10767 # First set a reasonable default.
10768 lt_cv_sys_max_cmd_len=16384
10769 #
10770 if test -x /sbin/sysconfig; then
10771 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10772 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10773 esac
10774 fi
10775 ;;
10776 sco3.2v5*)
10777 lt_cv_sys_max_cmd_len=102400
10778 ;;
10779 sysv5* | sco5v6* | sysv4.2uw2*)
10780 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10781 if test -n "$kargmax"; then
10782 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10783 else
10784 lt_cv_sys_max_cmd_len=32768
10785 fi
10786 ;;
10787 *)
10788 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10789 if test -n "$lt_cv_sys_max_cmd_len"; then
10790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10792 else
10793 # Make teststring a little bigger before we do anything with it.
10794 # a 1K string should be a reasonable start.
10795 for i in 1 2 3 4 5 6 7 8 ; do
10796 teststring=$teststring$teststring
10797 done
10798 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10799 # If test is not a shell built-in, we'll probably end up computing a
10800 # maximum length that is only half of the actual maximum length, but
10801 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010802 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010803 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010804 test $i != 17 # 1/2 MB should be enough
10805 do
10806 i=`expr $i + 1`
10807 teststring=$teststring$teststring
10808 done
10809 # Only check the string length outside the loop.
10810 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10811 teststring=
10812 # Add a significant safety factor because C++ compilers can tack on
10813 # massive amounts of additional arguments before passing them to the
10814 # linker. It appears as though 1/2 is a usable value.
10815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10816 fi
10817 ;;
10818 esac
10819
10820fi
10821
10822if test -n $lt_cv_sys_max_cmd_len ; then
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10824$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10825else
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10827$as_echo "none" >&6; }
10828fi
10829max_cmd_len=$lt_cv_sys_max_cmd_len
10830
10831
10832
10833
10834
10835
10836: ${CP="cp -f"}
10837: ${MV="mv -f"}
10838: ${RM="rm -f"}
10839
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10841$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10842# Try some XSI features
10843xsi_shell=no
10844( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010845 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10846 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010847 && eval 'test $(( 1 + 1 )) -eq 2 \
10848 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10849 && xsi_shell=yes
10850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10851$as_echo "$xsi_shell" >&6; }
10852
10853
10854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10855$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10856lt_shell_append=no
10857( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10858 >/dev/null 2>&1 \
10859 && lt_shell_append=yes
10860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10861$as_echo "$lt_shell_append" >&6; }
10862
10863
10864if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10865 lt_unset=unset
10866else
10867 lt_unset=false
10868fi
10869
10870
10871
10872
10873
10874# test EBCDIC or ASCII
10875case `echo X|tr X '\101'` in
10876 A) # ASCII based system
10877 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10878 lt_SP2NL='tr \040 \012'
10879 lt_NL2SP='tr \015\012 \040\040'
10880 ;;
10881 *) # EBCDIC based system
10882 lt_SP2NL='tr \100 \n'
10883 lt_NL2SP='tr \r\n \100\100'
10884 ;;
10885esac
10886
10887
10888
10889
10890
10891
10892
10893
10894
cristyda16f162011-02-19 23:52:17 +000010895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10896$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10897if ${lt_cv_to_host_file_cmd+:} false; then :
10898 $as_echo_n "(cached) " >&6
10899else
10900 case $host in
10901 *-*-mingw* )
10902 case $build in
10903 *-*-mingw* ) # actually msys
10904 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10905 ;;
10906 *-*-cygwin* )
10907 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10908 ;;
10909 * ) # otherwise, assume *nix
10910 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10911 ;;
10912 esac
10913 ;;
10914 *-*-cygwin* )
10915 case $build in
10916 *-*-mingw* ) # actually msys
10917 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10918 ;;
10919 *-*-cygwin* )
10920 lt_cv_to_host_file_cmd=func_convert_file_noop
10921 ;;
10922 * ) # otherwise, assume *nix
10923 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10924 ;;
10925 esac
10926 ;;
10927 * ) # unhandled hosts (and "normal" native builds)
10928 lt_cv_to_host_file_cmd=func_convert_file_noop
10929 ;;
10930esac
10931
10932fi
10933
10934to_host_file_cmd=$lt_cv_to_host_file_cmd
10935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10936$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10937
10938
10939
10940
10941
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10943$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10944if ${lt_cv_to_tool_file_cmd+:} false; then :
10945 $as_echo_n "(cached) " >&6
10946else
10947 #assume ordinary cross tools, or native build.
10948lt_cv_to_tool_file_cmd=func_convert_file_noop
10949case $host in
10950 *-*-mingw* )
10951 case $build in
10952 *-*-mingw* ) # actually msys
10953 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10954 ;;
10955 esac
10956 ;;
10957esac
10958
10959fi
10960
10961to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10963$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10964
10965
10966
10967
10968
cristy73bd4a52010-10-05 11:24:23 +000010969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10970$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010971if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010972 $as_echo_n "(cached) " >&6
10973else
10974 lt_cv_ld_reload_flag='-r'
10975fi
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10977$as_echo "$lt_cv_ld_reload_flag" >&6; }
10978reload_flag=$lt_cv_ld_reload_flag
10979case $reload_flag in
10980"" | " "*) ;;
10981*) reload_flag=" $reload_flag" ;;
10982esac
10983reload_cmds='$LD$reload_flag -o $output$reload_objs'
10984case $host_os in
cristyda16f162011-02-19 23:52:17 +000010985 cygwin* | mingw* | pw32* | cegcc*)
10986 if test "$GCC" != yes; then
10987 reload_cmds=false
10988 fi
10989 ;;
cristy73bd4a52010-10-05 11:24:23 +000010990 darwin*)
10991 if test "$GCC" = yes; then
10992 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10993 else
10994 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10995 fi
10996 ;;
10997esac
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007if test -n "$ac_tool_prefix"; then
11008 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11009set dummy ${ac_tool_prefix}objdump; ac_word=$2
11010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11011$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011012if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011013 $as_echo_n "(cached) " >&6
11014else
11015 if test -n "$OBJDUMP"; then
11016 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11017else
11018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019for as_dir in $PATH
11020do
11021 IFS=$as_save_IFS
11022 test -z "$as_dir" && as_dir=.
11023 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011025 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11027 break 2
11028 fi
11029done
11030 done
11031IFS=$as_save_IFS
11032
11033fi
11034fi
11035OBJDUMP=$ac_cv_prog_OBJDUMP
11036if test -n "$OBJDUMP"; then
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11038$as_echo "$OBJDUMP" >&6; }
11039else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041$as_echo "no" >&6; }
11042fi
11043
11044
11045fi
11046if test -z "$ac_cv_prog_OBJDUMP"; then
11047 ac_ct_OBJDUMP=$OBJDUMP
11048 # Extract the first word of "objdump", so it can be a program name with args.
11049set dummy objdump; ac_word=$2
11050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11051$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011052if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011053 $as_echo_n "(cached) " >&6
11054else
11055 if test -n "$ac_ct_OBJDUMP"; then
11056 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11057else
11058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11059for as_dir in $PATH
11060do
11061 IFS=$as_save_IFS
11062 test -z "$as_dir" && as_dir=.
11063 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011065 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11067 break 2
11068 fi
11069done
11070 done
11071IFS=$as_save_IFS
11072
11073fi
11074fi
11075ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11076if test -n "$ac_ct_OBJDUMP"; then
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11078$as_echo "$ac_ct_OBJDUMP" >&6; }
11079else
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081$as_echo "no" >&6; }
11082fi
11083
11084 if test "x$ac_ct_OBJDUMP" = x; then
11085 OBJDUMP="false"
11086 else
11087 case $cross_compiling:$ac_tool_warned in
11088yes:)
11089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11091ac_tool_warned=yes ;;
11092esac
11093 OBJDUMP=$ac_ct_OBJDUMP
11094 fi
11095else
11096 OBJDUMP="$ac_cv_prog_OBJDUMP"
11097fi
11098
11099test -z "$OBJDUMP" && OBJDUMP=objdump
11100
11101
11102
11103
11104
11105
11106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11107$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011108if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011109 $as_echo_n "(cached) " >&6
11110else
11111 lt_cv_file_magic_cmd='$MAGIC_CMD'
11112lt_cv_file_magic_test_file=
11113lt_cv_deplibs_check_method='unknown'
11114# Need to set the preceding variable on all platforms that support
11115# interlibrary dependencies.
11116# 'none' -- dependencies not supported.
11117# `unknown' -- same as none, but documents that we really don't know.
11118# 'pass_all' -- all dependencies passed with no checks.
11119# 'test_compile' -- check by making test program.
11120# 'file_magic [[regex]]' -- check by looking for files in library path
11121# which responds to the $file_magic_cmd with a given extended regex.
11122# If you have `file' or equivalent on your system and you're not sure
11123# whether `pass_all' will *always* work, you probably want this one.
11124
11125case $host_os in
11126aix[4-9]*)
11127 lt_cv_deplibs_check_method=pass_all
11128 ;;
11129
11130beos*)
11131 lt_cv_deplibs_check_method=pass_all
11132 ;;
11133
11134bsdi[45]*)
11135 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11136 lt_cv_file_magic_cmd='/usr/bin/file -L'
11137 lt_cv_file_magic_test_file=/shlib/libc.so
11138 ;;
11139
11140cygwin*)
11141 # func_win32_libid is a shell function defined in ltmain.sh
11142 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11143 lt_cv_file_magic_cmd='func_win32_libid'
11144 ;;
11145
11146mingw* | pw32*)
11147 # Base MSYS/MinGW do not provide the 'file' command needed by
11148 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11149 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011150 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11151 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011152 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11153 lt_cv_file_magic_cmd='func_win32_libid'
11154 else
cristy0c60a692010-11-04 01:09:47 +000011155 # Keep this pattern in sync with the one in func_win32_libid.
11156 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 +000011157 lt_cv_file_magic_cmd='$OBJDUMP -f'
11158 fi
11159 ;;
11160
cristy0c60a692010-11-04 01:09:47 +000011161cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011162 # use the weaker test based on 'objdump'. See mingw*.
11163 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11164 lt_cv_file_magic_cmd='$OBJDUMP -f'
11165 ;;
11166
11167darwin* | rhapsody*)
11168 lt_cv_deplibs_check_method=pass_all
11169 ;;
11170
11171freebsd* | dragonfly*)
11172 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11173 case $host_cpu in
11174 i*86 )
11175 # Not sure whether the presence of OpenBSD here was a mistake.
11176 # Let's accept both of them until this is cleared up.
11177 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11178 lt_cv_file_magic_cmd=/usr/bin/file
11179 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11180 ;;
11181 esac
11182 else
11183 lt_cv_deplibs_check_method=pass_all
11184 fi
11185 ;;
11186
11187gnu*)
11188 lt_cv_deplibs_check_method=pass_all
11189 ;;
11190
cristy0c60a692010-11-04 01:09:47 +000011191haiku*)
11192 lt_cv_deplibs_check_method=pass_all
11193 ;;
11194
cristy73bd4a52010-10-05 11:24:23 +000011195hpux10.20* | hpux11*)
11196 lt_cv_file_magic_cmd=/usr/bin/file
11197 case $host_cpu in
11198 ia64*)
11199 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11200 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11201 ;;
11202 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011203 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 +000011204 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11205 ;;
11206 *)
cristy0c60a692010-11-04 01:09:47 +000011207 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 +000011208 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11209 ;;
11210 esac
11211 ;;
11212
11213interix[3-9]*)
11214 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11216 ;;
11217
11218irix5* | irix6* | nonstopux*)
11219 case $LD in
11220 *-32|*"-32 ") libmagic=32-bit;;
11221 *-n32|*"-n32 ") libmagic=N32;;
11222 *-64|*"-64 ") libmagic=64-bit;;
11223 *) libmagic=never-match;;
11224 esac
11225 lt_cv_deplibs_check_method=pass_all
11226 ;;
11227
cristy99bd5232011-12-07 14:38:20 +000011228# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011229linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011230 lt_cv_deplibs_check_method=pass_all
11231 ;;
11232
11233netbsd*)
11234 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11236 else
11237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11238 fi
11239 ;;
11240
11241newos6*)
11242 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11243 lt_cv_file_magic_cmd=/usr/bin/file
11244 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11245 ;;
11246
11247*nto* | *qnx*)
11248 lt_cv_deplibs_check_method=pass_all
11249 ;;
11250
11251openbsd*)
11252 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11254 else
11255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11256 fi
11257 ;;
11258
11259osf3* | osf4* | osf5*)
11260 lt_cv_deplibs_check_method=pass_all
11261 ;;
11262
11263rdos*)
11264 lt_cv_deplibs_check_method=pass_all
11265 ;;
11266
11267solaris*)
11268 lt_cv_deplibs_check_method=pass_all
11269 ;;
11270
11271sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11272 lt_cv_deplibs_check_method=pass_all
11273 ;;
11274
11275sysv4 | sysv4.3*)
11276 case $host_vendor in
11277 motorola)
11278 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]'
11279 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11280 ;;
11281 ncr)
11282 lt_cv_deplibs_check_method=pass_all
11283 ;;
11284 sequent)
11285 lt_cv_file_magic_cmd='/bin/file'
11286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11287 ;;
11288 sni)
11289 lt_cv_file_magic_cmd='/bin/file'
11290 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11291 lt_cv_file_magic_test_file=/lib/libc.so
11292 ;;
11293 siemens)
11294 lt_cv_deplibs_check_method=pass_all
11295 ;;
11296 pc)
11297 lt_cv_deplibs_check_method=pass_all
11298 ;;
11299 esac
11300 ;;
11301
11302tpf*)
11303 lt_cv_deplibs_check_method=pass_all
11304 ;;
11305esac
11306
11307fi
11308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11309$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011310
11311file_magic_glob=
11312want_nocaseglob=no
11313if test "$build" = "$host"; then
11314 case $host_os in
11315 mingw* | pw32*)
11316 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11317 want_nocaseglob=yes
11318 else
11319 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11320 fi
11321 ;;
11322 esac
11323fi
11324
cristy73bd4a52010-10-05 11:24:23 +000011325file_magic_cmd=$lt_cv_file_magic_cmd
11326deplibs_check_method=$lt_cv_deplibs_check_method
11327test -z "$deplibs_check_method" && deplibs_check_method=unknown
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
cristyda16f162011-02-19 23:52:17 +000011340
11341
11342
11343
11344
11345
11346
11347
11348
11349
cristy73bd4a52010-10-05 11:24:23 +000011350if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011351 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11352set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11354$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011355if ${ac_cv_prog_DLLTOOL+:} false; then :
11356 $as_echo_n "(cached) " >&6
11357else
11358 if test -n "$DLLTOOL"; then
11359 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11360else
11361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362for as_dir in $PATH
11363do
11364 IFS=$as_save_IFS
11365 test -z "$as_dir" && as_dir=.
11366 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011368 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11370 break 2
11371 fi
11372done
11373 done
11374IFS=$as_save_IFS
11375
11376fi
11377fi
11378DLLTOOL=$ac_cv_prog_DLLTOOL
11379if test -n "$DLLTOOL"; then
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11381$as_echo "$DLLTOOL" >&6; }
11382else
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384$as_echo "no" >&6; }
11385fi
11386
11387
11388fi
11389if test -z "$ac_cv_prog_DLLTOOL"; then
11390 ac_ct_DLLTOOL=$DLLTOOL
11391 # Extract the first word of "dlltool", so it can be a program name with args.
11392set dummy dlltool; ac_word=$2
11393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11394$as_echo_n "checking for $ac_word... " >&6; }
11395if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11396 $as_echo_n "(cached) " >&6
11397else
11398 if test -n "$ac_ct_DLLTOOL"; then
11399 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11400else
11401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402for as_dir in $PATH
11403do
11404 IFS=$as_save_IFS
11405 test -z "$as_dir" && as_dir=.
11406 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011408 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11410 break 2
11411 fi
11412done
11413 done
11414IFS=$as_save_IFS
11415
11416fi
11417fi
11418ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11419if test -n "$ac_ct_DLLTOOL"; then
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11421$as_echo "$ac_ct_DLLTOOL" >&6; }
11422else
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424$as_echo "no" >&6; }
11425fi
11426
11427 if test "x$ac_ct_DLLTOOL" = x; then
11428 DLLTOOL="false"
11429 else
11430 case $cross_compiling:$ac_tool_warned in
11431yes:)
11432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11434ac_tool_warned=yes ;;
11435esac
11436 DLLTOOL=$ac_ct_DLLTOOL
11437 fi
11438else
11439 DLLTOOL="$ac_cv_prog_DLLTOOL"
11440fi
11441
11442test -z "$DLLTOOL" && DLLTOOL=dlltool
11443
11444
11445
11446
11447
11448
11449
11450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11451$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11452if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11453 $as_echo_n "(cached) " >&6
11454else
11455 lt_cv_sharedlib_from_linklib_cmd='unknown'
11456
11457case $host_os in
11458cygwin* | mingw* | pw32* | cegcc*)
11459 # two different shell functions defined in ltmain.sh
11460 # decide which to use based on capabilities of $DLLTOOL
11461 case `$DLLTOOL --help 2>&1` in
11462 *--identify-strict*)
11463 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11464 ;;
11465 *)
11466 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11467 ;;
11468 esac
11469 ;;
11470*)
11471 # fallback: assume linklib IS sharedlib
11472 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11473 ;;
11474esac
11475
11476fi
11477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11478$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11479sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11480test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11481
11482
11483
11484
11485
11486
11487
11488if test -n "$ac_tool_prefix"; then
11489 for ac_prog in ar
11490 do
11491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11492set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11494$as_echo_n "checking for $ac_word... " >&6; }
11495if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011496 $as_echo_n "(cached) " >&6
11497else
11498 if test -n "$AR"; then
11499 ac_cv_prog_AR="$AR" # Let the user override the test.
11500else
11501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502for as_dir in $PATH
11503do
11504 IFS=$as_save_IFS
11505 test -z "$as_dir" && as_dir=.
11506 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011508 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11510 break 2
11511 fi
11512done
11513 done
11514IFS=$as_save_IFS
11515
11516fi
11517fi
11518AR=$ac_cv_prog_AR
11519if test -n "$AR"; then
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11521$as_echo "$AR" >&6; }
11522else
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524$as_echo "no" >&6; }
11525fi
11526
11527
cristyda16f162011-02-19 23:52:17 +000011528 test -n "$AR" && break
11529 done
cristy73bd4a52010-10-05 11:24:23 +000011530fi
cristyda16f162011-02-19 23:52:17 +000011531if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011532 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011533 for ac_prog in ar
11534do
11535 # Extract the first word of "$ac_prog", so it can be a program name with args.
11536set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11538$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011539if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011540 $as_echo_n "(cached) " >&6
11541else
11542 if test -n "$ac_ct_AR"; then
11543 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11544else
11545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546for as_dir in $PATH
11547do
11548 IFS=$as_save_IFS
11549 test -z "$as_dir" && as_dir=.
11550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011552 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11554 break 2
11555 fi
11556done
11557 done
11558IFS=$as_save_IFS
11559
11560fi
11561fi
11562ac_ct_AR=$ac_cv_prog_ac_ct_AR
11563if test -n "$ac_ct_AR"; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11565$as_echo "$ac_ct_AR" >&6; }
11566else
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568$as_echo "no" >&6; }
11569fi
11570
cristyda16f162011-02-19 23:52:17 +000011571
11572 test -n "$ac_ct_AR" && break
11573done
11574
cristy73bd4a52010-10-05 11:24:23 +000011575 if test "x$ac_ct_AR" = x; then
11576 AR="false"
11577 else
11578 case $cross_compiling:$ac_tool_warned in
11579yes:)
11580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11582ac_tool_warned=yes ;;
11583esac
11584 AR=$ac_ct_AR
11585 fi
cristy73bd4a52010-10-05 11:24:23 +000011586fi
11587
cristyda16f162011-02-19 23:52:17 +000011588: ${AR=ar}
11589: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
cristyda16f162011-02-19 23:52:17 +000011601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11602$as_echo_n "checking for archiver @FILE support... " >&6; }
11603if ${lt_cv_ar_at_file+:} false; then :
11604 $as_echo_n "(cached) " >&6
11605else
11606 lt_cv_ar_at_file=no
11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608/* end confdefs.h. */
11609
11610int
11611main ()
11612{
11613
11614 ;
11615 return 0;
11616}
11617_ACEOF
11618if ac_fn_c_try_compile "$LINENO"; then :
11619 echo conftest.$ac_objext > conftest.lst
11620 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11622 (eval $lt_ar_try) 2>&5
11623 ac_status=$?
11624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11625 test $ac_status = 0; }
11626 if test "$ac_status" -eq 0; then
11627 # Ensure the archiver fails upon bogus file names.
11628 rm -f conftest.$ac_objext libconftest.a
11629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11630 (eval $lt_ar_try) 2>&5
11631 ac_status=$?
11632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11633 test $ac_status = 0; }
11634 if test "$ac_status" -ne 0; then
11635 lt_cv_ar_at_file=@
11636 fi
11637 fi
11638 rm -f conftest.* libconftest.a
11639
11640fi
11641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11642
11643fi
11644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11645$as_echo "$lt_cv_ar_at_file" >&6; }
11646
11647if test "x$lt_cv_ar_at_file" = xno; then
11648 archiver_list_spec=
11649else
11650 archiver_list_spec=$lt_cv_ar_at_file
11651fi
11652
11653
11654
11655
11656
11657
11658
cristy73bd4a52010-10-05 11:24:23 +000011659if test -n "$ac_tool_prefix"; then
11660 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11661set dummy ${ac_tool_prefix}strip; ac_word=$2
11662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11663$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011664if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011665 $as_echo_n "(cached) " >&6
11666else
11667 if test -n "$STRIP"; then
11668 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11669else
11670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671for as_dir in $PATH
11672do
11673 IFS=$as_save_IFS
11674 test -z "$as_dir" && as_dir=.
11675 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011677 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11679 break 2
11680 fi
11681done
11682 done
11683IFS=$as_save_IFS
11684
11685fi
11686fi
11687STRIP=$ac_cv_prog_STRIP
11688if test -n "$STRIP"; then
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11690$as_echo "$STRIP" >&6; }
11691else
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11693$as_echo "no" >&6; }
11694fi
11695
11696
11697fi
11698if test -z "$ac_cv_prog_STRIP"; then
11699 ac_ct_STRIP=$STRIP
11700 # Extract the first word of "strip", so it can be a program name with args.
11701set dummy strip; ac_word=$2
11702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11703$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011704if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011705 $as_echo_n "(cached) " >&6
11706else
11707 if test -n "$ac_ct_STRIP"; then
11708 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11709else
11710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11711for as_dir in $PATH
11712do
11713 IFS=$as_save_IFS
11714 test -z "$as_dir" && as_dir=.
11715 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011717 ac_cv_prog_ac_ct_STRIP="strip"
11718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11719 break 2
11720 fi
11721done
11722 done
11723IFS=$as_save_IFS
11724
11725fi
11726fi
11727ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11728if test -n "$ac_ct_STRIP"; then
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11730$as_echo "$ac_ct_STRIP" >&6; }
11731else
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733$as_echo "no" >&6; }
11734fi
11735
11736 if test "x$ac_ct_STRIP" = x; then
11737 STRIP=":"
11738 else
11739 case $cross_compiling:$ac_tool_warned in
11740yes:)
11741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11743ac_tool_warned=yes ;;
11744esac
11745 STRIP=$ac_ct_STRIP
11746 fi
11747else
11748 STRIP="$ac_cv_prog_STRIP"
11749fi
11750
11751test -z "$STRIP" && STRIP=:
11752
11753
11754
11755
11756
11757
11758if test -n "$ac_tool_prefix"; then
11759 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11760set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11762$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011763if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011764 $as_echo_n "(cached) " >&6
11765else
11766 if test -n "$RANLIB"; then
11767 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11768else
11769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770for as_dir in $PATH
11771do
11772 IFS=$as_save_IFS
11773 test -z "$as_dir" && as_dir=.
11774 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011776 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11778 break 2
11779 fi
11780done
11781 done
11782IFS=$as_save_IFS
11783
11784fi
11785fi
11786RANLIB=$ac_cv_prog_RANLIB
11787if test -n "$RANLIB"; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11789$as_echo "$RANLIB" >&6; }
11790else
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792$as_echo "no" >&6; }
11793fi
11794
11795
11796fi
11797if test -z "$ac_cv_prog_RANLIB"; then
11798 ac_ct_RANLIB=$RANLIB
11799 # Extract the first word of "ranlib", so it can be a program name with args.
11800set dummy ranlib; ac_word=$2
11801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11802$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011803if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011804 $as_echo_n "(cached) " >&6
11805else
11806 if test -n "$ac_ct_RANLIB"; then
11807 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11808else
11809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11810for as_dir in $PATH
11811do
11812 IFS=$as_save_IFS
11813 test -z "$as_dir" && as_dir=.
11814 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011816 ac_cv_prog_ac_ct_RANLIB="ranlib"
11817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11818 break 2
11819 fi
11820done
11821 done
11822IFS=$as_save_IFS
11823
11824fi
11825fi
11826ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11827if test -n "$ac_ct_RANLIB"; then
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11829$as_echo "$ac_ct_RANLIB" >&6; }
11830else
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11832$as_echo "no" >&6; }
11833fi
11834
11835 if test "x$ac_ct_RANLIB" = x; then
11836 RANLIB=":"
11837 else
11838 case $cross_compiling:$ac_tool_warned in
11839yes:)
11840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11842ac_tool_warned=yes ;;
11843esac
11844 RANLIB=$ac_ct_RANLIB
11845 fi
11846else
11847 RANLIB="$ac_cv_prog_RANLIB"
11848fi
11849
11850test -z "$RANLIB" && RANLIB=:
11851
11852
11853
11854
11855
11856
11857# Determine commands to create old-style static archives.
11858old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11859old_postinstall_cmds='chmod 644 $oldlib'
11860old_postuninstall_cmds=
11861
11862if test -n "$RANLIB"; then
11863 case $host_os in
11864 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011865 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011866 ;;
11867 *)
cristy99bd5232011-12-07 14:38:20 +000011868 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011869 ;;
11870 esac
cristy99bd5232011-12-07 14:38:20 +000011871 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011872fi
11873
cristy0c60a692010-11-04 01:09:47 +000011874case $host_os in
11875 darwin*)
11876 lock_old_archive_extraction=yes ;;
11877 *)
11878 lock_old_archive_extraction=no ;;
11879esac
11880
11881
11882
11883
11884
11885
cristy73bd4a52010-10-05 11:24:23 +000011886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919# If no C compiler was specified, use CC.
11920LTCC=${LTCC-"$CC"}
11921
11922# If no C compiler flags were specified, use CFLAGS.
11923LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11924
11925# Allow CC to be a program name with arguments.
11926compiler=$CC
11927
11928
11929# Check for command to grab the raw symbol name followed by C symbol from nm.
11930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11931$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011932if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011933 $as_echo_n "(cached) " >&6
11934else
11935
11936# These are sane defaults that work on at least a few old systems.
11937# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11938
11939# Character class describing NM global symbol codes.
11940symcode='[BCDEGRST]'
11941
11942# Regexp to match symbols that can be accessed directly from C.
11943sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11944
11945# Define system-specific variables.
11946case $host_os in
11947aix*)
11948 symcode='[BCDT]'
11949 ;;
11950cygwin* | mingw* | pw32* | cegcc*)
11951 symcode='[ABCDGISTW]'
11952 ;;
11953hpux*)
11954 if test "$host_cpu" = ia64; then
11955 symcode='[ABCDEGRST]'
11956 fi
11957 ;;
11958irix* | nonstopux*)
11959 symcode='[BCDEGRST]'
11960 ;;
11961osf*)
11962 symcode='[BCDEGQRST]'
11963 ;;
11964solaris*)
11965 symcode='[BDRT]'
11966 ;;
11967sco3.2v5*)
11968 symcode='[DT]'
11969 ;;
11970sysv4.2uw2*)
11971 symcode='[DT]'
11972 ;;
11973sysv5* | sco5v6* | unixware* | OpenUNIX*)
11974 symcode='[ABDT]'
11975 ;;
11976sysv4)
11977 symcode='[DFNSTU]'
11978 ;;
11979esac
11980
11981# If we're using GNU nm, then use its standard symbol codes.
11982case `$NM -V 2>&1` in
11983*GNU* | *'with BFD'*)
11984 symcode='[ABCDGIRSTW]' ;;
11985esac
11986
11987# Transform an extracted symbol line into a proper C declaration.
11988# Some systems (esp. on ia64) link data and code symbols differently,
11989# so use this general approach.
11990lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11991
11992# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011993lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11994lt_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 +000011995
11996# Handle CRLF in mingw tool chain
11997opt_cr=
11998case $build_os in
11999mingw*)
12000 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12001 ;;
12002esac
12003
12004# Try without a prefix underscore, then with it.
12005for ac_symprfx in "" "_"; do
12006
12007 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12008 symxfrm="\\1 $ac_symprfx\\2 \\2"
12009
12010 # Write the raw and C identifiers.
12011 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12012 # Fake it for dumpbin and say T for any non-static function
12013 # and D for any global variable.
12014 # Also find C++ and __fastcall symbols from MSVC++,
12015 # which start with @ or ?.
12016 lt_cv_sys_global_symbol_pipe="$AWK '"\
12017" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012018" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012019" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12020" \$ 0!~/External *\|/{next};"\
12021" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12022" {if(hide[section]) next};"\
12023" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12024" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12025" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12026" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12027" ' prfx=^$ac_symprfx"
12028 else
12029 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12030 fi
cristyda16f162011-02-19 23:52:17 +000012031 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012032
12033 # Check to see that the pipe works correctly.
12034 pipe_works=no
12035
12036 rm -f conftest*
12037 cat > conftest.$ac_ext <<_LT_EOF
12038#ifdef __cplusplus
12039extern "C" {
12040#endif
12041char nm_test_var;
12042void nm_test_func(void);
12043void nm_test_func(void){}
12044#ifdef __cplusplus
12045}
12046#endif
12047int main(){nm_test_var='a';nm_test_func();return(0);}
12048_LT_EOF
12049
12050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12051 (eval $ac_compile) 2>&5
12052 ac_status=$?
12053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12054 test $ac_status = 0; }; then
12055 # Now try to grab the symbols.
12056 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12058 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012059 ac_status=$?
12060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12061 test $ac_status = 0; } && test -s "$nlist"; then
12062 # Try sorting and uniquifying the output.
12063 if sort "$nlist" | uniq > "$nlist"T; then
12064 mv -f "$nlist"T "$nlist"
12065 else
12066 rm -f "$nlist"T
12067 fi
12068
12069 # Make sure that we snagged all the symbols we need.
12070 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12071 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12072 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012073/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12074#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12075/* DATA imports from DLLs on WIN32 con't be const, because runtime
12076 relocations are performed -- see ld's documentation on pseudo-relocs. */
12077# define LT_DLSYM_CONST
12078#elif defined(__osf__)
12079/* This system does not cope well with relocations in const data. */
12080# define LT_DLSYM_CONST
12081#else
12082# define LT_DLSYM_CONST const
12083#endif
12084
cristy73bd4a52010-10-05 11:24:23 +000012085#ifdef __cplusplus
12086extern "C" {
12087#endif
12088
12089_LT_EOF
12090 # Now generate the symbol file.
12091 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12092
12093 cat <<_LT_EOF >> conftest.$ac_ext
12094
12095/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012096LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012097 const char *name;
12098 void *address;
12099}
12100lt__PROGRAM__LTX_preloaded_symbols[] =
12101{
12102 { "@PROGRAM@", (void *) 0 },
12103_LT_EOF
12104 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12105 cat <<\_LT_EOF >> conftest.$ac_ext
12106 {0, (void *) 0}
12107};
12108
12109/* This works around a problem in FreeBSD linker */
12110#ifdef FREEBSD_WORKAROUND
12111static const void *lt_preloaded_setup() {
12112 return lt__PROGRAM__LTX_preloaded_symbols;
12113}
12114#endif
12115
12116#ifdef __cplusplus
12117}
12118#endif
12119_LT_EOF
12120 # Now try linking the two files.
12121 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012122 lt_globsym_save_LIBS=$LIBS
12123 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012124 LIBS="conftstm.$ac_objext"
12125 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12127 (eval $ac_link) 2>&5
12128 ac_status=$?
12129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12130 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12131 pipe_works=yes
12132 fi
cristyda16f162011-02-19 23:52:17 +000012133 LIBS=$lt_globsym_save_LIBS
12134 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012135 else
12136 echo "cannot find nm_test_func in $nlist" >&5
12137 fi
12138 else
12139 echo "cannot find nm_test_var in $nlist" >&5
12140 fi
12141 else
12142 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12143 fi
12144 else
12145 echo "$progname: failed program was:" >&5
12146 cat conftest.$ac_ext >&5
12147 fi
12148 rm -rf conftest* conftst*
12149
12150 # Do not use the global_symbol_pipe unless it works.
12151 if test "$pipe_works" = yes; then
12152 break
12153 else
12154 lt_cv_sys_global_symbol_pipe=
12155 fi
12156done
12157
12158fi
12159
12160if test -z "$lt_cv_sys_global_symbol_pipe"; then
12161 lt_cv_sys_global_symbol_to_cdecl=
12162fi
12163if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12165$as_echo "failed" >&6; }
12166else
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12168$as_echo "ok" >&6; }
12169fi
12170
cristyda16f162011-02-19 23:52:17 +000012171# Response file support.
12172if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12173 nm_file_list_spec='@'
12174elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12175 nm_file_list_spec='@'
12176fi
cristy73bd4a52010-10-05 11:24:23 +000012177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
cristyda16f162011-02-19 23:52:17 +000012198
12199
12200
12201
12202
12203
12204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12205$as_echo_n "checking for sysroot... " >&6; }
12206
12207# Check whether --with-sysroot was given.
12208if test "${with_sysroot+set}" = set; then :
12209 withval=$with_sysroot;
12210else
12211 with_sysroot=no
12212fi
12213
12214
12215lt_sysroot=
12216case ${with_sysroot} in #(
12217 yes)
12218 if test "$GCC" = yes; then
12219 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12220 fi
12221 ;; #(
12222 /*)
12223 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12224 ;; #(
12225 no|'')
12226 ;; #(
12227 *)
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12229$as_echo "${with_sysroot}" >&6; }
12230 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12231 ;;
12232esac
12233
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12235$as_echo "${lt_sysroot:-no}" >&6; }
12236
12237
12238
12239
12240
cristy73bd4a52010-10-05 11:24:23 +000012241# Check whether --enable-libtool-lock was given.
12242if test "${enable_libtool_lock+set}" = set; then :
12243 enableval=$enable_libtool_lock;
12244fi
12245
12246test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12247
12248# Some flags need to be propagated to the compiler or linker for good
12249# libtool support.
12250case $host in
12251ia64-*-hpux*)
12252 # Find out which ABI we are using.
12253 echo 'int i;' > conftest.$ac_ext
12254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12255 (eval $ac_compile) 2>&5
12256 ac_status=$?
12257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12258 test $ac_status = 0; }; then
12259 case `/usr/bin/file conftest.$ac_objext` in
12260 *ELF-32*)
12261 HPUX_IA64_MODE="32"
12262 ;;
12263 *ELF-64*)
12264 HPUX_IA64_MODE="64"
12265 ;;
12266 esac
12267 fi
12268 rm -rf conftest*
12269 ;;
12270*-*-irix6*)
12271 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012272 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12274 (eval $ac_compile) 2>&5
12275 ac_status=$?
12276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12277 test $ac_status = 0; }; then
12278 if test "$lt_cv_prog_gnu_ld" = yes; then
12279 case `/usr/bin/file conftest.$ac_objext` in
12280 *32-bit*)
12281 LD="${LD-ld} -melf32bsmip"
12282 ;;
12283 *N32*)
12284 LD="${LD-ld} -melf32bmipn32"
12285 ;;
12286 *64-bit*)
12287 LD="${LD-ld} -melf64bmip"
12288 ;;
12289 esac
12290 else
12291 case `/usr/bin/file conftest.$ac_objext` in
12292 *32-bit*)
12293 LD="${LD-ld} -32"
12294 ;;
12295 *N32*)
12296 LD="${LD-ld} -n32"
12297 ;;
12298 *64-bit*)
12299 LD="${LD-ld} -64"
12300 ;;
12301 esac
12302 fi
12303 fi
12304 rm -rf conftest*
12305 ;;
12306
cristyd95b7a52013-10-23 13:12:53 +000012307x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000012308s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12309 # Find out which ABI we are using.
12310 echo 'int i;' > conftest.$ac_ext
12311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12312 (eval $ac_compile) 2>&5
12313 ac_status=$?
12314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12315 test $ac_status = 0; }; then
12316 case `/usr/bin/file conftest.o` in
12317 *32-bit*)
12318 case $host in
12319 x86_64-*kfreebsd*-gnu)
12320 LD="${LD-ld} -m elf_i386_fbsd"
12321 ;;
12322 x86_64-*linux*)
12323 LD="${LD-ld} -m elf_i386"
12324 ;;
cristya5bda012013-11-03 18:05:38 +000012325 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000012326 LD="${LD-ld} -m elf32lppclinux"
12327 ;;
cristya5bda012013-11-03 18:05:38 +000012328 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012329 LD="${LD-ld} -m elf32ppclinux"
12330 ;;
12331 s390x-*linux*)
12332 LD="${LD-ld} -m elf_s390"
12333 ;;
12334 sparc64-*linux*)
12335 LD="${LD-ld} -m elf32_sparc"
12336 ;;
12337 esac
12338 ;;
12339 *64-bit*)
12340 case $host in
12341 x86_64-*kfreebsd*-gnu)
12342 LD="${LD-ld} -m elf_x86_64_fbsd"
12343 ;;
12344 x86_64-*linux*)
12345 LD="${LD-ld} -m elf_x86_64"
12346 ;;
cristyd95b7a52013-10-23 13:12:53 +000012347 powerpcle-*linux*)
12348 LD="${LD-ld} -m elf64lppc"
12349 ;;
12350 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012351 LD="${LD-ld} -m elf64ppc"
12352 ;;
12353 s390*-*linux*|s390*-*tpf*)
12354 LD="${LD-ld} -m elf64_s390"
12355 ;;
12356 sparc*-*linux*)
12357 LD="${LD-ld} -m elf64_sparc"
12358 ;;
12359 esac
12360 ;;
12361 esac
12362 fi
12363 rm -rf conftest*
12364 ;;
12365
12366*-*-sco3.2v5*)
12367 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12368 SAVE_CFLAGS="$CFLAGS"
12369 CFLAGS="$CFLAGS -belf"
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12371$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012372if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012373 $as_echo_n "(cached) " >&6
12374else
12375 ac_ext=c
12376ac_cpp='$CPP $CPPFLAGS'
12377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12379ac_compiler_gnu=$ac_cv_c_compiler_gnu
12380
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382/* end confdefs.h. */
12383
12384int
12385main ()
12386{
12387
12388 ;
12389 return 0;
12390}
12391_ACEOF
12392if ac_fn_c_try_link "$LINENO"; then :
12393 lt_cv_cc_needs_belf=yes
12394else
12395 lt_cv_cc_needs_belf=no
12396fi
12397rm -f core conftest.err conftest.$ac_objext \
12398 conftest$ac_exeext conftest.$ac_ext
12399 ac_ext=c
12400ac_cpp='$CPP $CPPFLAGS'
12401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12403ac_compiler_gnu=$ac_cv_c_compiler_gnu
12404
12405fi
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12407$as_echo "$lt_cv_cc_needs_belf" >&6; }
12408 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12409 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12410 CFLAGS="$SAVE_CFLAGS"
12411 fi
12412 ;;
cristy99bd5232011-12-07 14:38:20 +000012413*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012414 # Find out which ABI we are using.
12415 echo 'int i;' > conftest.$ac_ext
12416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12417 (eval $ac_compile) 2>&5
12418 ac_status=$?
12419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12420 test $ac_status = 0; }; then
12421 case `/usr/bin/file conftest.o` in
12422 *64-bit*)
12423 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012424 yes*)
12425 case $host in
12426 i?86-*-solaris*)
12427 LD="${LD-ld} -m elf_x86_64"
12428 ;;
12429 sparc*-*-solaris*)
12430 LD="${LD-ld} -m elf64_sparc"
12431 ;;
12432 esac
12433 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12434 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12435 LD="${LD-ld}_sol2"
12436 fi
12437 ;;
cristy73bd4a52010-10-05 11:24:23 +000012438 *)
12439 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12440 LD="${LD-ld} -64"
12441 fi
12442 ;;
12443 esac
12444 ;;
12445 esac
12446 fi
12447 rm -rf conftest*
12448 ;;
12449esac
12450
12451need_locks="$enable_libtool_lock"
12452
cristyda16f162011-02-19 23:52:17 +000012453if test -n "$ac_tool_prefix"; then
12454 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12455set dummy ${ac_tool_prefix}mt; ac_word=$2
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12457$as_echo_n "checking for $ac_word... " >&6; }
12458if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12459 $as_echo_n "(cached) " >&6
12460else
12461 if test -n "$MANIFEST_TOOL"; then
12462 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12463else
12464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12465for as_dir in $PATH
12466do
12467 IFS=$as_save_IFS
12468 test -z "$as_dir" && as_dir=.
12469 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012471 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12473 break 2
12474 fi
12475done
12476 done
12477IFS=$as_save_IFS
12478
12479fi
12480fi
12481MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12482if test -n "$MANIFEST_TOOL"; then
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12484$as_echo "$MANIFEST_TOOL" >&6; }
12485else
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487$as_echo "no" >&6; }
12488fi
12489
12490
12491fi
12492if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12493 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12494 # Extract the first word of "mt", so it can be a program name with args.
12495set dummy mt; ac_word=$2
12496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497$as_echo_n "checking for $ac_word... " >&6; }
12498if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12499 $as_echo_n "(cached) " >&6
12500else
12501 if test -n "$ac_ct_MANIFEST_TOOL"; then
12502 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12503else
12504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505for as_dir in $PATH
12506do
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012511 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 break 2
12514 fi
12515done
12516 done
12517IFS=$as_save_IFS
12518
12519fi
12520fi
12521ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12522if test -n "$ac_ct_MANIFEST_TOOL"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12524$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12525else
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527$as_echo "no" >&6; }
12528fi
12529
12530 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12531 MANIFEST_TOOL=":"
12532 else
12533 case $cross_compiling:$ac_tool_warned in
12534yes:)
12535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12537ac_tool_warned=yes ;;
12538esac
12539 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12540 fi
12541else
12542 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12543fi
12544
12545test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12547$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12548if ${lt_cv_path_mainfest_tool+:} false; then :
12549 $as_echo_n "(cached) " >&6
12550else
12551 lt_cv_path_mainfest_tool=no
12552 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12553 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12554 cat conftest.err >&5
12555 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12556 lt_cv_path_mainfest_tool=yes
12557 fi
12558 rm -f conftest*
12559fi
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12561$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12562if test "x$lt_cv_path_mainfest_tool" != xyes; then
12563 MANIFEST_TOOL=:
12564fi
12565
12566
12567
12568
12569
cristy73bd4a52010-10-05 11:24:23 +000012570
12571 case $host_os in
12572 rhapsody* | darwin*)
12573 if test -n "$ac_tool_prefix"; then
12574 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12575set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012578if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012579 $as_echo_n "(cached) " >&6
12580else
12581 if test -n "$DSYMUTIL"; then
12582 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12583else
12584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585for as_dir in $PATH
12586do
12587 IFS=$as_save_IFS
12588 test -z "$as_dir" && as_dir=.
12589 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012591 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12593 break 2
12594 fi
12595done
12596 done
12597IFS=$as_save_IFS
12598
12599fi
12600fi
12601DSYMUTIL=$ac_cv_prog_DSYMUTIL
12602if test -n "$DSYMUTIL"; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12604$as_echo "$DSYMUTIL" >&6; }
12605else
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607$as_echo "no" >&6; }
12608fi
12609
12610
12611fi
12612if test -z "$ac_cv_prog_DSYMUTIL"; then
12613 ac_ct_DSYMUTIL=$DSYMUTIL
12614 # Extract the first word of "dsymutil", so it can be a program name with args.
12615set dummy dsymutil; ac_word=$2
12616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12617$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012618if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012619 $as_echo_n "(cached) " >&6
12620else
12621 if test -n "$ac_ct_DSYMUTIL"; then
12622 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12623else
12624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625for as_dir in $PATH
12626do
12627 IFS=$as_save_IFS
12628 test -z "$as_dir" && as_dir=.
12629 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012631 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12633 break 2
12634 fi
12635done
12636 done
12637IFS=$as_save_IFS
12638
12639fi
12640fi
12641ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12642if test -n "$ac_ct_DSYMUTIL"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12644$as_echo "$ac_ct_DSYMUTIL" >&6; }
12645else
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647$as_echo "no" >&6; }
12648fi
12649
12650 if test "x$ac_ct_DSYMUTIL" = x; then
12651 DSYMUTIL=":"
12652 else
12653 case $cross_compiling:$ac_tool_warned in
12654yes:)
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12657ac_tool_warned=yes ;;
12658esac
12659 DSYMUTIL=$ac_ct_DSYMUTIL
12660 fi
12661else
12662 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12663fi
12664
12665 if test -n "$ac_tool_prefix"; then
12666 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12667set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12669$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012670if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012671 $as_echo_n "(cached) " >&6
12672else
12673 if test -n "$NMEDIT"; then
12674 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12675else
12676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12677for as_dir in $PATH
12678do
12679 IFS=$as_save_IFS
12680 test -z "$as_dir" && as_dir=.
12681 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012683 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12685 break 2
12686 fi
12687done
12688 done
12689IFS=$as_save_IFS
12690
12691fi
12692fi
12693NMEDIT=$ac_cv_prog_NMEDIT
12694if test -n "$NMEDIT"; then
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12696$as_echo "$NMEDIT" >&6; }
12697else
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12699$as_echo "no" >&6; }
12700fi
12701
12702
12703fi
12704if test -z "$ac_cv_prog_NMEDIT"; then
12705 ac_ct_NMEDIT=$NMEDIT
12706 # Extract the first word of "nmedit", so it can be a program name with args.
12707set dummy nmedit; ac_word=$2
12708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12709$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012710if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012711 $as_echo_n "(cached) " >&6
12712else
12713 if test -n "$ac_ct_NMEDIT"; then
12714 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12715else
12716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717for as_dir in $PATH
12718do
12719 IFS=$as_save_IFS
12720 test -z "$as_dir" && as_dir=.
12721 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012723 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12725 break 2
12726 fi
12727done
12728 done
12729IFS=$as_save_IFS
12730
12731fi
12732fi
12733ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12734if test -n "$ac_ct_NMEDIT"; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12736$as_echo "$ac_ct_NMEDIT" >&6; }
12737else
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739$as_echo "no" >&6; }
12740fi
12741
12742 if test "x$ac_ct_NMEDIT" = x; then
12743 NMEDIT=":"
12744 else
12745 case $cross_compiling:$ac_tool_warned in
12746yes:)
12747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12749ac_tool_warned=yes ;;
12750esac
12751 NMEDIT=$ac_ct_NMEDIT
12752 fi
12753else
12754 NMEDIT="$ac_cv_prog_NMEDIT"
12755fi
12756
12757 if test -n "$ac_tool_prefix"; then
12758 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12759set dummy ${ac_tool_prefix}lipo; ac_word=$2
12760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12761$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012762if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012763 $as_echo_n "(cached) " >&6
12764else
12765 if test -n "$LIPO"; then
12766 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12767else
12768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12769for as_dir in $PATH
12770do
12771 IFS=$as_save_IFS
12772 test -z "$as_dir" && as_dir=.
12773 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012775 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12777 break 2
12778 fi
12779done
12780 done
12781IFS=$as_save_IFS
12782
12783fi
12784fi
12785LIPO=$ac_cv_prog_LIPO
12786if test -n "$LIPO"; then
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12788$as_echo "$LIPO" >&6; }
12789else
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791$as_echo "no" >&6; }
12792fi
12793
12794
12795fi
12796if test -z "$ac_cv_prog_LIPO"; then
12797 ac_ct_LIPO=$LIPO
12798 # Extract the first word of "lipo", so it can be a program name with args.
12799set dummy lipo; ac_word=$2
12800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12801$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012802if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012803 $as_echo_n "(cached) " >&6
12804else
12805 if test -n "$ac_ct_LIPO"; then
12806 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12807else
12808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12809for as_dir in $PATH
12810do
12811 IFS=$as_save_IFS
12812 test -z "$as_dir" && as_dir=.
12813 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012815 ac_cv_prog_ac_ct_LIPO="lipo"
12816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12817 break 2
12818 fi
12819done
12820 done
12821IFS=$as_save_IFS
12822
12823fi
12824fi
12825ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12826if test -n "$ac_ct_LIPO"; then
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12828$as_echo "$ac_ct_LIPO" >&6; }
12829else
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831$as_echo "no" >&6; }
12832fi
12833
12834 if test "x$ac_ct_LIPO" = x; then
12835 LIPO=":"
12836 else
12837 case $cross_compiling:$ac_tool_warned in
12838yes:)
12839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12841ac_tool_warned=yes ;;
12842esac
12843 LIPO=$ac_ct_LIPO
12844 fi
12845else
12846 LIPO="$ac_cv_prog_LIPO"
12847fi
12848
12849 if test -n "$ac_tool_prefix"; then
12850 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12851set dummy ${ac_tool_prefix}otool; ac_word=$2
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012854if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012855 $as_echo_n "(cached) " >&6
12856else
12857 if test -n "$OTOOL"; then
12858 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12859else
12860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861for as_dir in $PATH
12862do
12863 IFS=$as_save_IFS
12864 test -z "$as_dir" && as_dir=.
12865 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012867 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12869 break 2
12870 fi
12871done
12872 done
12873IFS=$as_save_IFS
12874
12875fi
12876fi
12877OTOOL=$ac_cv_prog_OTOOL
12878if test -n "$OTOOL"; then
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12880$as_echo "$OTOOL" >&6; }
12881else
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883$as_echo "no" >&6; }
12884fi
12885
12886
12887fi
12888if test -z "$ac_cv_prog_OTOOL"; then
12889 ac_ct_OTOOL=$OTOOL
12890 # Extract the first word of "otool", so it can be a program name with args.
12891set dummy otool; ac_word=$2
12892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12893$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012894if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012895 $as_echo_n "(cached) " >&6
12896else
12897 if test -n "$ac_ct_OTOOL"; then
12898 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12899else
12900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901for as_dir in $PATH
12902do
12903 IFS=$as_save_IFS
12904 test -z "$as_dir" && as_dir=.
12905 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012907 ac_cv_prog_ac_ct_OTOOL="otool"
12908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12909 break 2
12910 fi
12911done
12912 done
12913IFS=$as_save_IFS
12914
12915fi
12916fi
12917ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12918if test -n "$ac_ct_OTOOL"; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12920$as_echo "$ac_ct_OTOOL" >&6; }
12921else
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923$as_echo "no" >&6; }
12924fi
12925
12926 if test "x$ac_ct_OTOOL" = x; then
12927 OTOOL=":"
12928 else
12929 case $cross_compiling:$ac_tool_warned in
12930yes:)
12931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12933ac_tool_warned=yes ;;
12934esac
12935 OTOOL=$ac_ct_OTOOL
12936 fi
12937else
12938 OTOOL="$ac_cv_prog_OTOOL"
12939fi
12940
12941 if test -n "$ac_tool_prefix"; then
12942 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12943set dummy ${ac_tool_prefix}otool64; ac_word=$2
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12945$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012946if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012947 $as_echo_n "(cached) " >&6
12948else
12949 if test -n "$OTOOL64"; then
12950 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12951else
12952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953for as_dir in $PATH
12954do
12955 IFS=$as_save_IFS
12956 test -z "$as_dir" && as_dir=.
12957 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012959 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12961 break 2
12962 fi
12963done
12964 done
12965IFS=$as_save_IFS
12966
12967fi
12968fi
12969OTOOL64=$ac_cv_prog_OTOOL64
12970if test -n "$OTOOL64"; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12972$as_echo "$OTOOL64" >&6; }
12973else
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975$as_echo "no" >&6; }
12976fi
12977
12978
12979fi
12980if test -z "$ac_cv_prog_OTOOL64"; then
12981 ac_ct_OTOOL64=$OTOOL64
12982 # Extract the first word of "otool64", so it can be a program name with args.
12983set dummy otool64; ac_word=$2
12984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12985$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012986if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012987 $as_echo_n "(cached) " >&6
12988else
12989 if test -n "$ac_ct_OTOOL64"; then
12990 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12991else
12992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993for as_dir in $PATH
12994do
12995 IFS=$as_save_IFS
12996 test -z "$as_dir" && as_dir=.
12997 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012999 ac_cv_prog_ac_ct_OTOOL64="otool64"
13000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13001 break 2
13002 fi
13003done
13004 done
13005IFS=$as_save_IFS
13006
13007fi
13008fi
13009ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13010if test -n "$ac_ct_OTOOL64"; then
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13012$as_echo "$ac_ct_OTOOL64" >&6; }
13013else
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13015$as_echo "no" >&6; }
13016fi
13017
13018 if test "x$ac_ct_OTOOL64" = x; then
13019 OTOOL64=":"
13020 else
13021 case $cross_compiling:$ac_tool_warned in
13022yes:)
13023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13025ac_tool_warned=yes ;;
13026esac
13027 OTOOL64=$ac_ct_OTOOL64
13028 fi
13029else
13030 OTOOL64="$ac_cv_prog_OTOOL64"
13031fi
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13060$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013061if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013062 $as_echo_n "(cached) " >&6
13063else
13064 lt_cv_apple_cc_single_mod=no
13065 if test -z "${LT_MULTI_MODULE}"; then
13066 # By default we will add the -single_module flag. You can override
13067 # by either setting the environment variable LT_MULTI_MODULE
13068 # non-empty at configure time, or by adding -multi_module to the
13069 # link flags.
13070 rm -rf libconftest.dylib*
13071 echo "int foo(void){return 1;}" > conftest.c
13072 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13073-dynamiclib -Wl,-single_module conftest.c" >&5
13074 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13075 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13076 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013077 # If there is a non-empty error log, and "single_module"
13078 # appears in it, assume the flag caused a linker warning
13079 if test -s conftest.err && $GREP single_module conftest.err; then
13080 cat conftest.err >&5
13081 # Otherwise, if the output was created with a 0 exit code from
13082 # the compiler, it worked.
13083 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013084 lt_cv_apple_cc_single_mod=yes
13085 else
13086 cat conftest.err >&5
13087 fi
13088 rm -rf libconftest.dylib*
13089 rm -f conftest.*
13090 fi
13091fi
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13093$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013094
cristy73bd4a52010-10-05 11:24:23 +000013095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13096$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013097if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013098 $as_echo_n "(cached) " >&6
13099else
13100 lt_cv_ld_exported_symbols_list=no
13101 save_LDFLAGS=$LDFLAGS
13102 echo "_main" > conftest.sym
13103 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105/* end confdefs.h. */
13106
13107int
13108main ()
13109{
13110
13111 ;
13112 return 0;
13113}
13114_ACEOF
13115if ac_fn_c_try_link "$LINENO"; then :
13116 lt_cv_ld_exported_symbols_list=yes
13117else
13118 lt_cv_ld_exported_symbols_list=no
13119fi
13120rm -f core conftest.err conftest.$ac_objext \
13121 conftest$ac_exeext conftest.$ac_ext
13122 LDFLAGS="$save_LDFLAGS"
13123
13124fi
13125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13126$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013127
cristy0c60a692010-11-04 01:09:47 +000013128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13129$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013130if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013131 $as_echo_n "(cached) " >&6
13132else
13133 lt_cv_ld_force_load=no
13134 cat > conftest.c << _LT_EOF
13135int forced_loaded() { return 2;}
13136_LT_EOF
13137 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13138 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13139 echo "$AR cru libconftest.a conftest.o" >&5
13140 $AR cru libconftest.a conftest.o 2>&5
13141 echo "$RANLIB libconftest.a" >&5
13142 $RANLIB libconftest.a 2>&5
13143 cat > conftest.c << _LT_EOF
13144int main() { return 0;}
13145_LT_EOF
13146 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13147 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13148 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013149 if test -s conftest.err && $GREP force_load conftest.err; then
13150 cat conftest.err >&5
13151 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013152 lt_cv_ld_force_load=yes
13153 else
13154 cat conftest.err >&5
13155 fi
13156 rm -f conftest.err libconftest.a conftest conftest.c
13157 rm -rf conftest.dSYM
13158
13159fi
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13161$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013162 case $host_os in
13163 rhapsody* | darwin1.[012])
13164 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13165 darwin1.*)
13166 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13167 darwin*) # darwin 5.x on
13168 # if running on 10.5 or later, the deployment target defaults
13169 # to the OS version, if on x86, and 10.4, the deployment
13170 # target defaults to 10.4. Don't you love it?
13171 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13172 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13173 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13174 10.[012]*)
13175 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13176 10.*)
13177 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13178 esac
13179 ;;
13180 esac
13181 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13182 _lt_dar_single_mod='$single_module'
13183 fi
13184 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13185 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13186 else
13187 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13188 fi
cristy0c60a692010-11-04 01:09:47 +000013189 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013190 _lt_dsymutil='~$DSYMUTIL $lib || :'
13191 else
13192 _lt_dsymutil=
13193 fi
13194 ;;
13195 esac
13196
13197for ac_header in dlfcn.h
13198do :
13199 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13200"
cristyda16f162011-02-19 23:52:17 +000013201if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013202 cat >>confdefs.h <<_ACEOF
13203#define HAVE_DLFCN_H 1
13204_ACEOF
13205
13206fi
13207
13208done
13209
13210
13211
cristy73bd4a52010-10-05 11:24:23 +000013212
cristyda16f162011-02-19 23:52:17 +000013213func_stripname_cnf ()
13214{
13215 case ${2} in
13216 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13217 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13218 esac
13219} # func_stripname_cnf
13220
13221
13222
cristy73bd4a52010-10-05 11:24:23 +000013223
13224
13225# Set options
13226enable_win32_dll=yes
13227
13228case $host in
cristy0c60a692010-11-04 01:09:47 +000013229*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013230 if test -n "$ac_tool_prefix"; then
13231 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13232set dummy ${ac_tool_prefix}as; ac_word=$2
13233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013235if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013236 $as_echo_n "(cached) " >&6
13237else
13238 if test -n "$AS"; then
13239 ac_cv_prog_AS="$AS" # Let the user override the test.
13240else
13241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242for as_dir in $PATH
13243do
13244 IFS=$as_save_IFS
13245 test -z "$as_dir" && as_dir=.
13246 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013248 ac_cv_prog_AS="${ac_tool_prefix}as"
13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13250 break 2
13251 fi
13252done
13253 done
13254IFS=$as_save_IFS
13255
13256fi
13257fi
13258AS=$ac_cv_prog_AS
13259if test -n "$AS"; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13261$as_echo "$AS" >&6; }
13262else
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264$as_echo "no" >&6; }
13265fi
13266
13267
13268fi
13269if test -z "$ac_cv_prog_AS"; then
13270 ac_ct_AS=$AS
13271 # Extract the first word of "as", so it can be a program name with args.
13272set dummy as; ac_word=$2
13273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13274$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013275if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013276 $as_echo_n "(cached) " >&6
13277else
13278 if test -n "$ac_ct_AS"; then
13279 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13280else
13281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282for as_dir in $PATH
13283do
13284 IFS=$as_save_IFS
13285 test -z "$as_dir" && as_dir=.
13286 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013288 ac_cv_prog_ac_ct_AS="as"
13289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13290 break 2
13291 fi
13292done
13293 done
13294IFS=$as_save_IFS
13295
13296fi
13297fi
13298ac_ct_AS=$ac_cv_prog_ac_ct_AS
13299if test -n "$ac_ct_AS"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13301$as_echo "$ac_ct_AS" >&6; }
13302else
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304$as_echo "no" >&6; }
13305fi
13306
13307 if test "x$ac_ct_AS" = x; then
13308 AS="false"
13309 else
13310 case $cross_compiling:$ac_tool_warned in
13311yes:)
13312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13314ac_tool_warned=yes ;;
13315esac
13316 AS=$ac_ct_AS
13317 fi
13318else
13319 AS="$ac_cv_prog_AS"
13320fi
13321
13322 if test -n "$ac_tool_prefix"; then
13323 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13324set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13326$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013327if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013328 $as_echo_n "(cached) " >&6
13329else
13330 if test -n "$DLLTOOL"; then
13331 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13332else
13333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334for as_dir in $PATH
13335do
13336 IFS=$as_save_IFS
13337 test -z "$as_dir" && as_dir=.
13338 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013340 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13342 break 2
13343 fi
13344done
13345 done
13346IFS=$as_save_IFS
13347
13348fi
13349fi
13350DLLTOOL=$ac_cv_prog_DLLTOOL
13351if test -n "$DLLTOOL"; then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13353$as_echo "$DLLTOOL" >&6; }
13354else
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356$as_echo "no" >&6; }
13357fi
13358
13359
13360fi
13361if test -z "$ac_cv_prog_DLLTOOL"; then
13362 ac_ct_DLLTOOL=$DLLTOOL
13363 # Extract the first word of "dlltool", so it can be a program name with args.
13364set dummy dlltool; ac_word=$2
13365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13366$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013367if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013368 $as_echo_n "(cached) " >&6
13369else
13370 if test -n "$ac_ct_DLLTOOL"; then
13371 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13372else
13373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374for as_dir in $PATH
13375do
13376 IFS=$as_save_IFS
13377 test -z "$as_dir" && as_dir=.
13378 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013380 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13382 break 2
13383 fi
13384done
13385 done
13386IFS=$as_save_IFS
13387
13388fi
13389fi
13390ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13391if test -n "$ac_ct_DLLTOOL"; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13393$as_echo "$ac_ct_DLLTOOL" >&6; }
13394else
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396$as_echo "no" >&6; }
13397fi
13398
13399 if test "x$ac_ct_DLLTOOL" = x; then
13400 DLLTOOL="false"
13401 else
13402 case $cross_compiling:$ac_tool_warned in
13403yes:)
13404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13406ac_tool_warned=yes ;;
13407esac
13408 DLLTOOL=$ac_ct_DLLTOOL
13409 fi
13410else
13411 DLLTOOL="$ac_cv_prog_DLLTOOL"
13412fi
13413
13414 if test -n "$ac_tool_prefix"; then
13415 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13416set dummy ${ac_tool_prefix}objdump; ac_word=$2
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13418$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013419if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013420 $as_echo_n "(cached) " >&6
13421else
13422 if test -n "$OBJDUMP"; then
13423 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13424else
13425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426for as_dir in $PATH
13427do
13428 IFS=$as_save_IFS
13429 test -z "$as_dir" && as_dir=.
13430 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013432 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13434 break 2
13435 fi
13436done
13437 done
13438IFS=$as_save_IFS
13439
13440fi
13441fi
13442OBJDUMP=$ac_cv_prog_OBJDUMP
13443if test -n "$OBJDUMP"; then
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13445$as_echo "$OBJDUMP" >&6; }
13446else
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448$as_echo "no" >&6; }
13449fi
13450
13451
13452fi
13453if test -z "$ac_cv_prog_OBJDUMP"; then
13454 ac_ct_OBJDUMP=$OBJDUMP
13455 # Extract the first word of "objdump", so it can be a program name with args.
13456set dummy objdump; ac_word=$2
13457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13458$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013459if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013460 $as_echo_n "(cached) " >&6
13461else
13462 if test -n "$ac_ct_OBJDUMP"; then
13463 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13464else
13465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13466for as_dir in $PATH
13467do
13468 IFS=$as_save_IFS
13469 test -z "$as_dir" && as_dir=.
13470 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013472 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13474 break 2
13475 fi
13476done
13477 done
13478IFS=$as_save_IFS
13479
13480fi
13481fi
13482ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13483if test -n "$ac_ct_OBJDUMP"; then
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13485$as_echo "$ac_ct_OBJDUMP" >&6; }
13486else
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13488$as_echo "no" >&6; }
13489fi
13490
13491 if test "x$ac_ct_OBJDUMP" = x; then
13492 OBJDUMP="false"
13493 else
13494 case $cross_compiling:$ac_tool_warned in
13495yes:)
13496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13498ac_tool_warned=yes ;;
13499esac
13500 OBJDUMP=$ac_ct_OBJDUMP
13501 fi
13502else
13503 OBJDUMP="$ac_cv_prog_OBJDUMP"
13504fi
13505
13506 ;;
13507esac
13508
13509test -z "$AS" && AS=as
13510
13511
13512
13513
13514
13515test -z "$DLLTOOL" && DLLTOOL=dlltool
13516
13517
13518
13519
13520
13521test -z "$OBJDUMP" && OBJDUMP=objdump
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531 # Check whether --enable-shared was given.
13532if test "${enable_shared+set}" = set; then :
13533 enableval=$enable_shared; p=${PACKAGE-default}
13534 case $enableval in
13535 yes) enable_shared=yes ;;
13536 no) enable_shared=no ;;
13537 *)
13538 enable_shared=no
13539 # Look at the argument we got. We use all the common list separators.
13540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13541 for pkg in $enableval; do
13542 IFS="$lt_save_ifs"
13543 if test "X$pkg" = "X$p"; then
13544 enable_shared=yes
13545 fi
13546 done
13547 IFS="$lt_save_ifs"
13548 ;;
13549 esac
13550else
13551 enable_shared=yes
13552fi
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562 # Check whether --enable-static was given.
13563if test "${enable_static+set}" = set; then :
13564 enableval=$enable_static; p=${PACKAGE-default}
13565 case $enableval in
13566 yes) enable_static=yes ;;
13567 no) enable_static=no ;;
13568 *)
13569 enable_static=no
13570 # Look at the argument we got. We use all the common list separators.
13571 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13572 for pkg in $enableval; do
13573 IFS="$lt_save_ifs"
13574 if test "X$pkg" = "X$p"; then
13575 enable_static=yes
13576 fi
13577 done
13578 IFS="$lt_save_ifs"
13579 ;;
13580 esac
13581else
13582 enable_static=yes
13583fi
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594# Check whether --with-pic was given.
13595if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013596 withval=$with_pic; lt_p=${PACKAGE-default}
13597 case $withval in
13598 yes|no) pic_mode=$withval ;;
13599 *)
13600 pic_mode=default
13601 # Look at the argument we got. We use all the common list separators.
13602 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13603 for lt_pkg in $withval; do
13604 IFS="$lt_save_ifs"
13605 if test "X$lt_pkg" = "X$lt_p"; then
13606 pic_mode=yes
13607 fi
13608 done
13609 IFS="$lt_save_ifs"
13610 ;;
13611 esac
cristy73bd4a52010-10-05 11:24:23 +000013612else
13613 pic_mode=default
13614fi
13615
13616
13617test -z "$pic_mode" && pic_mode=default
13618
13619
13620
13621
13622
13623
13624
13625 # Check whether --enable-fast-install was given.
13626if test "${enable_fast_install+set}" = set; then :
13627 enableval=$enable_fast_install; p=${PACKAGE-default}
13628 case $enableval in
13629 yes) enable_fast_install=yes ;;
13630 no) enable_fast_install=no ;;
13631 *)
13632 enable_fast_install=no
13633 # Look at the argument we got. We use all the common list separators.
13634 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13635 for pkg in $enableval; do
13636 IFS="$lt_save_ifs"
13637 if test "X$pkg" = "X$p"; then
13638 enable_fast_install=yes
13639 fi
13640 done
13641 IFS="$lt_save_ifs"
13642 ;;
13643 esac
13644else
13645 enable_fast_install=yes
13646fi
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658# This can be used to rebuild libtool when needed
13659LIBTOOL_DEPS="$ltmain"
13660
13661# Always use our own libtool.
13662LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
cristy0c60a692010-11-04 01:09:47 +000013688
cristy99bd5232011-12-07 14:38:20 +000013689
13690
13691
13692
cristy73bd4a52010-10-05 11:24:23 +000013693test -z "$LN_S" && LN_S="ln -s"
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708if test -n "${ZSH_VERSION+set}" ; then
13709 setopt NO_GLOB_SUBST
13710fi
13711
13712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13713$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013714if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013715 $as_echo_n "(cached) " >&6
13716else
13717 rm -f .libs 2>/dev/null
13718mkdir .libs 2>/dev/null
13719if test -d .libs; then
13720 lt_cv_objdir=.libs
13721else
13722 # MS-DOS does not allow filenames that begin with a dot.
13723 lt_cv_objdir=_libs
13724fi
13725rmdir .libs 2>/dev/null
13726fi
13727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13728$as_echo "$lt_cv_objdir" >&6; }
13729objdir=$lt_cv_objdir
13730
13731
13732
13733
13734
13735cat >>confdefs.h <<_ACEOF
13736#define LT_OBJDIR "$lt_cv_objdir/"
13737_ACEOF
13738
13739
13740
13741
cristy73bd4a52010-10-05 11:24:23 +000013742case $host_os in
13743aix3*)
13744 # AIX sometimes has problems with the GCC collect2 program. For some
13745 # reason, if we set the COLLECT_NAMES environment variable, the problems
13746 # vanish in a puff of smoke.
13747 if test "X${COLLECT_NAMES+set}" != Xset; then
13748 COLLECT_NAMES=
13749 export COLLECT_NAMES
13750 fi
13751 ;;
13752esac
13753
cristy73bd4a52010-10-05 11:24:23 +000013754# Global variables:
13755ofile=libtool
13756can_build_shared=yes
13757
13758# All known linkers require a `.a' archive for static linking (except MSVC,
13759# which needs '.lib').
13760libext=a
13761
13762with_gnu_ld="$lt_cv_prog_gnu_ld"
13763
13764old_CC="$CC"
13765old_CFLAGS="$CFLAGS"
13766
13767# Set sane defaults for various variables
13768test -z "$CC" && CC=cc
13769test -z "$LTCC" && LTCC=$CC
13770test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13771test -z "$LD" && LD=ld
13772test -z "$ac_objext" && ac_objext=o
13773
13774for cc_temp in $compiler""; do
13775 case $cc_temp in
13776 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13777 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13778 \-*) ;;
13779 *) break;;
13780 esac
13781done
cristy0c60a692010-11-04 01:09:47 +000013782cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013783
13784
13785# Only perform the check for file, if the check method requires it
13786test -z "$MAGIC_CMD" && MAGIC_CMD=file
13787case $deplibs_check_method in
13788file_magic*)
13789 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13791$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013792if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013793 $as_echo_n "(cached) " >&6
13794else
13795 case $MAGIC_CMD in
13796[\\/*] | ?:[\\/]*)
13797 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13798 ;;
13799*)
13800 lt_save_MAGIC_CMD="$MAGIC_CMD"
13801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13802 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13803 for ac_dir in $ac_dummy; do
13804 IFS="$lt_save_ifs"
13805 test -z "$ac_dir" && ac_dir=.
13806 if test -f $ac_dir/${ac_tool_prefix}file; then
13807 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13808 if test -n "$file_magic_test_file"; then
13809 case $deplibs_check_method in
13810 "file_magic "*)
13811 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13813 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13814 $EGREP "$file_magic_regex" > /dev/null; then
13815 :
13816 else
13817 cat <<_LT_EOF 1>&2
13818
13819*** Warning: the command libtool uses to detect shared libraries,
13820*** $file_magic_cmd, produces output that libtool cannot recognize.
13821*** The result is that libtool may fail to recognize shared libraries
13822*** as such. This will affect the creation of libtool libraries that
13823*** depend on shared libraries, but programs linked with such libtool
13824*** libraries will work regardless of this problem. Nevertheless, you
13825*** may want to report the problem to your system manager and/or to
13826*** bug-libtool@gnu.org
13827
13828_LT_EOF
13829 fi ;;
13830 esac
13831 fi
13832 break
13833 fi
13834 done
13835 IFS="$lt_save_ifs"
13836 MAGIC_CMD="$lt_save_MAGIC_CMD"
13837 ;;
13838esac
13839fi
13840
13841MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13842if test -n "$MAGIC_CMD"; then
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13844$as_echo "$MAGIC_CMD" >&6; }
13845else
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847$as_echo "no" >&6; }
13848fi
13849
13850
13851
13852
13853
13854if test -z "$lt_cv_path_MAGIC_CMD"; then
13855 if test -n "$ac_tool_prefix"; then
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13857$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013858if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013859 $as_echo_n "(cached) " >&6
13860else
13861 case $MAGIC_CMD in
13862[\\/*] | ?:[\\/]*)
13863 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13864 ;;
13865*)
13866 lt_save_MAGIC_CMD="$MAGIC_CMD"
13867 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13868 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13869 for ac_dir in $ac_dummy; do
13870 IFS="$lt_save_ifs"
13871 test -z "$ac_dir" && ac_dir=.
13872 if test -f $ac_dir/file; then
13873 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13874 if test -n "$file_magic_test_file"; then
13875 case $deplibs_check_method in
13876 "file_magic "*)
13877 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13878 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13879 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13880 $EGREP "$file_magic_regex" > /dev/null; then
13881 :
13882 else
13883 cat <<_LT_EOF 1>&2
13884
13885*** Warning: the command libtool uses to detect shared libraries,
13886*** $file_magic_cmd, produces output that libtool cannot recognize.
13887*** The result is that libtool may fail to recognize shared libraries
13888*** as such. This will affect the creation of libtool libraries that
13889*** depend on shared libraries, but programs linked with such libtool
13890*** libraries will work regardless of this problem. Nevertheless, you
13891*** may want to report the problem to your system manager and/or to
13892*** bug-libtool@gnu.org
13893
13894_LT_EOF
13895 fi ;;
13896 esac
13897 fi
13898 break
13899 fi
13900 done
13901 IFS="$lt_save_ifs"
13902 MAGIC_CMD="$lt_save_MAGIC_CMD"
13903 ;;
13904esac
13905fi
13906
13907MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13908if test -n "$MAGIC_CMD"; then
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13910$as_echo "$MAGIC_CMD" >&6; }
13911else
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13913$as_echo "no" >&6; }
13914fi
13915
13916
13917 else
13918 MAGIC_CMD=:
13919 fi
13920fi
13921
13922 fi
13923 ;;
13924esac
13925
13926# Use C for the default configuration in the libtool script
13927
13928lt_save_CC="$CC"
13929ac_ext=c
13930ac_cpp='$CPP $CPPFLAGS'
13931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13933ac_compiler_gnu=$ac_cv_c_compiler_gnu
13934
13935
13936# Source file extension for C test sources.
13937ac_ext=c
13938
13939# Object file extension for compiled C test sources.
13940objext=o
13941objext=$objext
13942
13943# Code to be used in simple compile tests
13944lt_simple_compile_test_code="int some_variable = 0;"
13945
13946# Code to be used in simple link tests
13947lt_simple_link_test_code='int main(){return(0);}'
13948
13949
13950
13951
13952
13953
13954
13955# If no C compiler was specified, use CC.
13956LTCC=${LTCC-"$CC"}
13957
13958# If no C compiler flags were specified, use CFLAGS.
13959LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13960
13961# Allow CC to be a program name with arguments.
13962compiler=$CC
13963
13964# Save the default compiler, since it gets overwritten when the other
13965# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13966compiler_DEFAULT=$CC
13967
13968# save warnings/boilerplate of simple test code
13969ac_outfile=conftest.$ac_objext
13970echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13971eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13972_lt_compiler_boilerplate=`cat conftest.err`
13973$RM conftest*
13974
13975ac_outfile=conftest.$ac_objext
13976echo "$lt_simple_link_test_code" >conftest.$ac_ext
13977eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13978_lt_linker_boilerplate=`cat conftest.err`
13979$RM -r conftest*
13980
13981
13982## CAVEAT EMPTOR:
13983## There is no encapsulation within the following macros, do not change
13984## the running order or otherwise move them around unless you know exactly
13985## what you are doing...
13986if test -n "$compiler"; then
13987
13988lt_prog_compiler_no_builtin_flag=
13989
13990if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013991 case $cc_basename in
13992 nvcc*)
13993 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13994 *)
13995 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13996 esac
cristy73bd4a52010-10-05 11:24:23 +000013997
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13999$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014000if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014001 $as_echo_n "(cached) " >&6
14002else
14003 lt_cv_prog_compiler_rtti_exceptions=no
14004 ac_outfile=conftest.$ac_objext
14005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14006 lt_compiler_flag="-fno-rtti -fno-exceptions"
14007 # Insert the option either (1) after the last *FLAGS variable, or
14008 # (2) before a word containing "conftest.", or (3) at the end.
14009 # Note that $ac_compile itself does not contain backslashes and begins
14010 # with a dollar sign (not a hyphen), so the echo should work correctly.
14011 # The option is referenced via a variable to avoid confusing sed.
14012 lt_compile=`echo "$ac_compile" | $SED \
14013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14015 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014016 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014017 (eval "$lt_compile" 2>conftest.err)
14018 ac_status=$?
14019 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014021 if (exit $ac_status) && test -s "$ac_outfile"; then
14022 # The compiler can only warn and ignore the option if not recognized
14023 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014024 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14026 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14027 lt_cv_prog_compiler_rtti_exceptions=yes
14028 fi
14029 fi
14030 $RM conftest*
14031
14032fi
14033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14034$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14035
14036if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14037 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14038else
14039 :
14040fi
14041
14042fi
14043
14044
14045
14046
14047
14048
14049 lt_prog_compiler_wl=
14050lt_prog_compiler_pic=
14051lt_prog_compiler_static=
14052
cristy73bd4a52010-10-05 11:24:23 +000014053
14054 if test "$GCC" = yes; then
14055 lt_prog_compiler_wl='-Wl,'
14056 lt_prog_compiler_static='-static'
14057
14058 case $host_os in
14059 aix*)
14060 # All AIX code is PIC.
14061 if test "$host_cpu" = ia64; then
14062 # AIX 5 now supports IA64 processor
14063 lt_prog_compiler_static='-Bstatic'
14064 fi
14065 ;;
14066
14067 amigaos*)
14068 case $host_cpu in
14069 powerpc)
14070 # see comment about AmigaOS4 .so support
14071 lt_prog_compiler_pic='-fPIC'
14072 ;;
14073 m68k)
14074 # FIXME: we need at least 68020 code to build shared libraries, but
14075 # adding the `-m68020' flag to GCC prevents building anything better,
14076 # like `-m68040'.
14077 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14078 ;;
14079 esac
14080 ;;
14081
14082 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14083 # PIC is the default for these OSes.
14084 ;;
14085
14086 mingw* | cygwin* | pw32* | os2* | cegcc*)
14087 # This hack is so that the source file can tell whether it is being
14088 # built for inclusion in a dll (and should export symbols for example).
14089 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14090 # (--disable-auto-import) libraries
14091 lt_prog_compiler_pic='-DDLL_EXPORT'
14092 ;;
14093
14094 darwin* | rhapsody*)
14095 # PIC is the default on this platform
14096 # Common symbols not allowed in MH_DYLIB files
14097 lt_prog_compiler_pic='-fno-common'
14098 ;;
14099
cristy0c60a692010-11-04 01:09:47 +000014100 haiku*)
14101 # PIC is the default for Haiku.
14102 # The "-static" flag exists, but is broken.
14103 lt_prog_compiler_static=
14104 ;;
14105
cristy73bd4a52010-10-05 11:24:23 +000014106 hpux*)
14107 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14108 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14109 # sets the default TLS model and affects inlining.
14110 case $host_cpu in
14111 hppa*64*)
14112 # +Z the default
14113 ;;
14114 *)
14115 lt_prog_compiler_pic='-fPIC'
14116 ;;
14117 esac
14118 ;;
14119
14120 interix[3-9]*)
14121 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14122 # Instead, we relocate shared libraries at runtime.
14123 ;;
14124
14125 msdosdjgpp*)
14126 # Just because we use GCC doesn't mean we suddenly get shared libraries
14127 # on systems that don't support them.
14128 lt_prog_compiler_can_build_shared=no
14129 enable_shared=no
14130 ;;
14131
14132 *nto* | *qnx*)
14133 # QNX uses GNU C++, but need to define -shared option too, otherwise
14134 # it will coredump.
14135 lt_prog_compiler_pic='-fPIC -shared'
14136 ;;
14137
14138 sysv4*MP*)
14139 if test -d /usr/nec; then
14140 lt_prog_compiler_pic=-Kconform_pic
14141 fi
14142 ;;
14143
14144 *)
14145 lt_prog_compiler_pic='-fPIC'
14146 ;;
14147 esac
cristy0c60a692010-11-04 01:09:47 +000014148
14149 case $cc_basename in
14150 nvcc*) # Cuda Compiler Driver 2.2
14151 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014152 if test -n "$lt_prog_compiler_pic"; then
14153 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14154 fi
cristy0c60a692010-11-04 01:09:47 +000014155 ;;
14156 esac
cristy73bd4a52010-10-05 11:24:23 +000014157 else
14158 # PORTME Check for flag to pass linker flags through the system compiler.
14159 case $host_os in
14160 aix*)
14161 lt_prog_compiler_wl='-Wl,'
14162 if test "$host_cpu" = ia64; then
14163 # AIX 5 now supports IA64 processor
14164 lt_prog_compiler_static='-Bstatic'
14165 else
14166 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14167 fi
14168 ;;
14169
14170 mingw* | cygwin* | pw32* | os2* | cegcc*)
14171 # This hack is so that the source file can tell whether it is being
14172 # built for inclusion in a dll (and should export symbols for example).
14173 lt_prog_compiler_pic='-DDLL_EXPORT'
14174 ;;
14175
14176 hpux9* | hpux10* | hpux11*)
14177 lt_prog_compiler_wl='-Wl,'
14178 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14179 # not for PA HP-UX.
14180 case $host_cpu in
14181 hppa*64*|ia64*)
14182 # +Z the default
14183 ;;
14184 *)
14185 lt_prog_compiler_pic='+Z'
14186 ;;
14187 esac
14188 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14189 lt_prog_compiler_static='${wl}-a ${wl}archive'
14190 ;;
14191
14192 irix5* | irix6* | nonstopux*)
14193 lt_prog_compiler_wl='-Wl,'
14194 # PIC (with -KPIC) is the default.
14195 lt_prog_compiler_static='-non_shared'
14196 ;;
14197
cristy0c60a692010-11-04 01:09:47 +000014198 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014199 case $cc_basename in
14200 # old Intel for x86_64 which still supported -KPIC.
14201 ecc*)
14202 lt_prog_compiler_wl='-Wl,'
14203 lt_prog_compiler_pic='-KPIC'
14204 lt_prog_compiler_static='-static'
14205 ;;
14206 # icc used to be incompatible with GCC.
14207 # ICC 10 doesn't accept -KPIC any more.
14208 icc* | ifort*)
14209 lt_prog_compiler_wl='-Wl,'
14210 lt_prog_compiler_pic='-fPIC'
14211 lt_prog_compiler_static='-static'
14212 ;;
14213 # Lahey Fortran 8.1.
14214 lf95*)
14215 lt_prog_compiler_wl='-Wl,'
14216 lt_prog_compiler_pic='--shared'
14217 lt_prog_compiler_static='--static'
14218 ;;
cristyda16f162011-02-19 23:52:17 +000014219 nagfor*)
14220 # NAG Fortran compiler
14221 lt_prog_compiler_wl='-Wl,-Wl,,'
14222 lt_prog_compiler_pic='-PIC'
14223 lt_prog_compiler_static='-Bstatic'
14224 ;;
cristy0c60a692010-11-04 01:09:47 +000014225 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014226 # Portland Group compilers (*not* the Pentium gcc compiler,
14227 # which looks to be a dead project)
14228 lt_prog_compiler_wl='-Wl,'
14229 lt_prog_compiler_pic='-fpic'
14230 lt_prog_compiler_static='-Bstatic'
14231 ;;
14232 ccc*)
14233 lt_prog_compiler_wl='-Wl,'
14234 # All Alpha code is PIC.
14235 lt_prog_compiler_static='-non_shared'
14236 ;;
cristy0c60a692010-11-04 01:09:47 +000014237 xl* | bgxl* | bgf* | mpixl*)
14238 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014239 lt_prog_compiler_wl='-Wl,'
14240 lt_prog_compiler_pic='-qpic'
14241 lt_prog_compiler_static='-qstaticlink'
14242 ;;
14243 *)
14244 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014245 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014246 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14247 lt_prog_compiler_pic='-KPIC'
14248 lt_prog_compiler_static='-Bstatic'
14249 lt_prog_compiler_wl=''
14250 ;;
cristy99bd5232011-12-07 14:38:20 +000014251 *Sun\ F* | *Sun*Fortran*)
14252 lt_prog_compiler_pic='-KPIC'
14253 lt_prog_compiler_static='-Bstatic'
14254 lt_prog_compiler_wl='-Qoption ld '
14255 ;;
cristy73bd4a52010-10-05 11:24:23 +000014256 *Sun\ C*)
14257 # Sun C 5.9
14258 lt_prog_compiler_pic='-KPIC'
14259 lt_prog_compiler_static='-Bstatic'
14260 lt_prog_compiler_wl='-Wl,'
14261 ;;
cristy99bd5232011-12-07 14:38:20 +000014262 *Intel*\ [CF]*Compiler*)
14263 lt_prog_compiler_wl='-Wl,'
14264 lt_prog_compiler_pic='-fPIC'
14265 lt_prog_compiler_static='-static'
14266 ;;
14267 *Portland\ Group*)
14268 lt_prog_compiler_wl='-Wl,'
14269 lt_prog_compiler_pic='-fpic'
14270 lt_prog_compiler_static='-Bstatic'
14271 ;;
cristy73bd4a52010-10-05 11:24:23 +000014272 esac
14273 ;;
14274 esac
14275 ;;
14276
14277 newsos6)
14278 lt_prog_compiler_pic='-KPIC'
14279 lt_prog_compiler_static='-Bstatic'
14280 ;;
14281
14282 *nto* | *qnx*)
14283 # QNX uses GNU C++, but need to define -shared option too, otherwise
14284 # it will coredump.
14285 lt_prog_compiler_pic='-fPIC -shared'
14286 ;;
14287
14288 osf3* | osf4* | osf5*)
14289 lt_prog_compiler_wl='-Wl,'
14290 # All OSF/1 code is PIC.
14291 lt_prog_compiler_static='-non_shared'
14292 ;;
14293
14294 rdos*)
14295 lt_prog_compiler_static='-non_shared'
14296 ;;
14297
14298 solaris*)
14299 lt_prog_compiler_pic='-KPIC'
14300 lt_prog_compiler_static='-Bstatic'
14301 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014302 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014303 lt_prog_compiler_wl='-Qoption ld ';;
14304 *)
14305 lt_prog_compiler_wl='-Wl,';;
14306 esac
14307 ;;
14308
14309 sunos4*)
14310 lt_prog_compiler_wl='-Qoption ld '
14311 lt_prog_compiler_pic='-PIC'
14312 lt_prog_compiler_static='-Bstatic'
14313 ;;
14314
14315 sysv4 | sysv4.2uw2* | sysv4.3*)
14316 lt_prog_compiler_wl='-Wl,'
14317 lt_prog_compiler_pic='-KPIC'
14318 lt_prog_compiler_static='-Bstatic'
14319 ;;
14320
14321 sysv4*MP*)
14322 if test -d /usr/nec ;then
14323 lt_prog_compiler_pic='-Kconform_pic'
14324 lt_prog_compiler_static='-Bstatic'
14325 fi
14326 ;;
14327
14328 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14329 lt_prog_compiler_wl='-Wl,'
14330 lt_prog_compiler_pic='-KPIC'
14331 lt_prog_compiler_static='-Bstatic'
14332 ;;
14333
14334 unicos*)
14335 lt_prog_compiler_wl='-Wl,'
14336 lt_prog_compiler_can_build_shared=no
14337 ;;
14338
14339 uts4*)
14340 lt_prog_compiler_pic='-pic'
14341 lt_prog_compiler_static='-Bstatic'
14342 ;;
14343
14344 *)
14345 lt_prog_compiler_can_build_shared=no
14346 ;;
14347 esac
14348 fi
14349
14350case $host_os in
14351 # For platforms which do not support PIC, -DPIC is meaningless:
14352 *djgpp*)
14353 lt_prog_compiler_pic=
14354 ;;
14355 *)
14356 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14357 ;;
14358esac
cristy73bd4a52010-10-05 11:24:23 +000014359
cristyda16f162011-02-19 23:52:17 +000014360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14361$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14362if ${lt_cv_prog_compiler_pic+:} false; then :
14363 $as_echo_n "(cached) " >&6
14364else
14365 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14366fi
14367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14368$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14369lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014370
14371#
14372# Check to make sure the PIC flag actually works.
14373#
14374if test -n "$lt_prog_compiler_pic"; then
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14376$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014377if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014378 $as_echo_n "(cached) " >&6
14379else
14380 lt_cv_prog_compiler_pic_works=no
14381 ac_outfile=conftest.$ac_objext
14382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14383 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14384 # Insert the option either (1) after the last *FLAGS variable, or
14385 # (2) before a word containing "conftest.", or (3) at the end.
14386 # Note that $ac_compile itself does not contain backslashes and begins
14387 # with a dollar sign (not a hyphen), so the echo should work correctly.
14388 # The option is referenced via a variable to avoid confusing sed.
14389 lt_compile=`echo "$ac_compile" | $SED \
14390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14392 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014393 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014394 (eval "$lt_compile" 2>conftest.err)
14395 ac_status=$?
14396 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014398 if (exit $ac_status) && test -s "$ac_outfile"; then
14399 # The compiler can only warn and ignore the option if not recognized
14400 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014401 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014402 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14403 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14404 lt_cv_prog_compiler_pic_works=yes
14405 fi
14406 fi
14407 $RM conftest*
14408
14409fi
14410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14411$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14412
14413if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14414 case $lt_prog_compiler_pic in
14415 "" | " "*) ;;
14416 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14417 esac
14418else
14419 lt_prog_compiler_pic=
14420 lt_prog_compiler_can_build_shared=no
14421fi
14422
14423fi
14424
14425
14426
14427
14428
14429
cristyda16f162011-02-19 23:52:17 +000014430
14431
14432
14433
14434
cristy73bd4a52010-10-05 11:24:23 +000014435#
14436# Check to make sure the static flag actually works.
14437#
14438wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14440$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014441if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014442 $as_echo_n "(cached) " >&6
14443else
14444 lt_cv_prog_compiler_static_works=no
14445 save_LDFLAGS="$LDFLAGS"
14446 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14447 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14448 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14449 # The linker can only warn and ignore the option if not recognized
14450 # So say no if there are warnings
14451 if test -s conftest.err; then
14452 # Append any errors to the config.log.
14453 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014454 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14456 if diff conftest.exp conftest.er2 >/dev/null; then
14457 lt_cv_prog_compiler_static_works=yes
14458 fi
14459 else
14460 lt_cv_prog_compiler_static_works=yes
14461 fi
14462 fi
14463 $RM -r conftest*
14464 LDFLAGS="$save_LDFLAGS"
14465
14466fi
14467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14468$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14469
14470if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14471 :
14472else
14473 lt_prog_compiler_static=
14474fi
14475
14476
14477
14478
14479
14480
14481
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14483$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014484if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014485 $as_echo_n "(cached) " >&6
14486else
14487 lt_cv_prog_compiler_c_o=no
14488 $RM -r conftest 2>/dev/null
14489 mkdir conftest
14490 cd conftest
14491 mkdir out
14492 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14493
14494 lt_compiler_flag="-o out/conftest2.$ac_objext"
14495 # Insert the option either (1) after the last *FLAGS variable, or
14496 # (2) before a word containing "conftest.", or (3) at the end.
14497 # Note that $ac_compile itself does not contain backslashes and begins
14498 # with a dollar sign (not a hyphen), so the echo should work correctly.
14499 lt_compile=`echo "$ac_compile" | $SED \
14500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14502 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014503 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014504 (eval "$lt_compile" 2>out/conftest.err)
14505 ac_status=$?
14506 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014508 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14509 then
14510 # The compiler can only warn and ignore the option if not recognized
14511 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014512 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014513 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14514 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14515 lt_cv_prog_compiler_c_o=yes
14516 fi
14517 fi
14518 chmod u+w . 2>&5
14519 $RM conftest*
14520 # SGI C++ compiler will create directory out/ii_files/ for
14521 # template instantiation
14522 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14523 $RM out/* && rmdir out
14524 cd ..
14525 $RM -r conftest
14526 $RM conftest*
14527
14528fi
14529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14530$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14531
14532
14533
14534
14535
14536
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14538$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014539if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014540 $as_echo_n "(cached) " >&6
14541else
14542 lt_cv_prog_compiler_c_o=no
14543 $RM -r conftest 2>/dev/null
14544 mkdir conftest
14545 cd conftest
14546 mkdir out
14547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14548
14549 lt_compiler_flag="-o out/conftest2.$ac_objext"
14550 # Insert the option either (1) after the last *FLAGS variable, or
14551 # (2) before a word containing "conftest.", or (3) at the end.
14552 # Note that $ac_compile itself does not contain backslashes and begins
14553 # with a dollar sign (not a hyphen), so the echo should work correctly.
14554 lt_compile=`echo "$ac_compile" | $SED \
14555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14557 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014558 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014559 (eval "$lt_compile" 2>out/conftest.err)
14560 ac_status=$?
14561 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014563 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14564 then
14565 # The compiler can only warn and ignore the option if not recognized
14566 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014567 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014568 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14569 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14570 lt_cv_prog_compiler_c_o=yes
14571 fi
14572 fi
14573 chmod u+w . 2>&5
14574 $RM conftest*
14575 # SGI C++ compiler will create directory out/ii_files/ for
14576 # template instantiation
14577 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14578 $RM out/* && rmdir out
14579 cd ..
14580 $RM -r conftest
14581 $RM conftest*
14582
14583fi
14584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14585$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14586
14587
14588
14589
14590hard_links="nottested"
14591if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14592 # do not overwrite the value of need_locks provided by the user
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14594$as_echo_n "checking if we can lock with hard links... " >&6; }
14595 hard_links=yes
14596 $RM conftest*
14597 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14598 touch conftest.a
14599 ln conftest.a conftest.b 2>&5 || hard_links=no
14600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14602$as_echo "$hard_links" >&6; }
14603 if test "$hard_links" = no; then
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14605$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14606 need_locks=warn
14607 fi
14608else
14609 need_locks=no
14610fi
14611
14612
14613
14614
14615
14616
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14618$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14619
14620 runpath_var=
14621 allow_undefined_flag=
14622 always_export_symbols=no
14623 archive_cmds=
14624 archive_expsym_cmds=
14625 compiler_needs_object=no
14626 enable_shared_with_static_runtimes=no
14627 export_dynamic_flag_spec=
14628 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14629 hardcode_automatic=no
14630 hardcode_direct=no
14631 hardcode_direct_absolute=no
14632 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014633 hardcode_libdir_separator=
14634 hardcode_minus_L=no
14635 hardcode_shlibpath_var=unsupported
14636 inherit_rpath=no
14637 link_all_deplibs=unknown
14638 module_cmds=
14639 module_expsym_cmds=
14640 old_archive_from_new_cmds=
14641 old_archive_from_expsyms_cmds=
14642 thread_safe_flag_spec=
14643 whole_archive_flag_spec=
14644 # include_expsyms should be a list of space-separated symbols to be *always*
14645 # included in the symbol list
14646 include_expsyms=
14647 # exclude_expsyms can be an extended regexp of symbols to exclude
14648 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14649 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14650 # as well as any symbol that contains `d'.
14651 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14652 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14653 # platforms (ab)use it in PIC code, but their linkers get confused if
14654 # the symbol is explicitly referenced. Since portable code cannot
14655 # rely on this symbol name, it's probably fine to never include it in
14656 # preloaded symbol tables.
14657 # Exclude shared library initialization/finalization symbols.
14658 extract_expsyms_cmds=
14659
14660 case $host_os in
14661 cygwin* | mingw* | pw32* | cegcc*)
14662 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14663 # When not using gcc, we currently assume that we are using
14664 # Microsoft Visual C++.
14665 if test "$GCC" != yes; then
14666 with_gnu_ld=no
14667 fi
14668 ;;
14669 interix*)
14670 # we just hope/assume this is gcc and not c89 (= MSVC++)
14671 with_gnu_ld=yes
14672 ;;
14673 openbsd*)
14674 with_gnu_ld=no
14675 ;;
14676 esac
14677
14678 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014679
14680 # On some targets, GNU ld is compatible enough with the native linker
14681 # that we're better off using the native interface for both.
14682 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014683 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014684 case $host_os in
14685 aix*)
14686 # The AIX port of GNU ld has always aspired to compatibility
14687 # with the native linker. However, as the warning in the GNU ld
14688 # block says, versions before 2.19.5* couldn't really create working
14689 # shared libraries, regardless of the interface used.
14690 case `$LD -v 2>&1` in
14691 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14692 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14693 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14694 *)
14695 lt_use_gnu_ld_interface=yes
14696 ;;
14697 esac
14698 ;;
14699 *)
14700 lt_use_gnu_ld_interface=yes
14701 ;;
14702 esac
14703 fi
14704
14705 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014706 # If archive_cmds runs LD, not CC, wlarc should be empty
14707 wlarc='${wl}'
14708
14709 # Set some defaults for GNU ld with shared library support. These
14710 # are reset later if shared libraries are not supported. Putting them
14711 # here allows them to be overridden if necessary.
14712 runpath_var=LD_RUN_PATH
14713 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14714 export_dynamic_flag_spec='${wl}--export-dynamic'
14715 # ancient GNU ld didn't support --whole-archive et. al.
14716 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14717 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14718 else
14719 whole_archive_flag_spec=
14720 fi
14721 supports_anon_versioning=no
14722 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014723 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014724 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14725 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14726 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14727 *\ 2.11.*) ;; # other 2.11 versions
14728 *) supports_anon_versioning=yes ;;
14729 esac
14730
14731 # See if GNU ld supports shared libraries.
14732 case $host_os in
14733 aix[3-9]*)
14734 # On AIX/PPC, the GNU linker is very broken
14735 if test "$host_cpu" != ia64; then
14736 ld_shlibs=no
14737 cat <<_LT_EOF 1>&2
14738
cristy0c60a692010-11-04 01:09:47 +000014739*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014740*** to be unable to reliably create shared libraries on AIX.
14741*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014742*** really care for shared libraries, you may want to install binutils
14743*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14744*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014745
14746_LT_EOF
14747 fi
14748 ;;
14749
14750 amigaos*)
14751 case $host_cpu in
14752 powerpc)
14753 # see comment about AmigaOS4 .so support
14754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14755 archive_expsym_cmds=''
14756 ;;
14757 m68k)
14758 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)'
14759 hardcode_libdir_flag_spec='-L$libdir'
14760 hardcode_minus_L=yes
14761 ;;
14762 esac
14763 ;;
14764
14765 beos*)
14766 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14767 allow_undefined_flag=unsupported
14768 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14769 # support --undefined. This deserves some investigation. FIXME
14770 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14771 else
14772 ld_shlibs=no
14773 fi
14774 ;;
14775
14776 cygwin* | mingw* | pw32* | cegcc*)
14777 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14778 # as there is no search path for DLLs.
14779 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014780 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014781 allow_undefined_flag=unsupported
14782 always_export_symbols=no
14783 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014784 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'
14785 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 +000014786
14787 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14789 # If the export-symbols file already is a .def file (1st line
14790 # is EXPORTS), use it as is; otherwise, prepend...
14791 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14792 cp $export_symbols $output_objdir/$soname.def;
14793 else
14794 echo EXPORTS > $output_objdir/$soname.def;
14795 cat $export_symbols >> $output_objdir/$soname.def;
14796 fi~
14797 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14798 else
14799 ld_shlibs=no
14800 fi
14801 ;;
14802
cristy0c60a692010-11-04 01:09:47 +000014803 haiku*)
14804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14805 link_all_deplibs=yes
14806 ;;
14807
cristy73bd4a52010-10-05 11:24:23 +000014808 interix[3-9]*)
14809 hardcode_direct=no
14810 hardcode_shlibpath_var=no
14811 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14812 export_dynamic_flag_spec='${wl}-E'
14813 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14814 # Instead, shared libraries are loaded at an image base (0x10000000 by
14815 # default) and relocated if they conflict, which is a slow very memory
14816 # consuming and fragmenting process. To avoid this, we pick a random,
14817 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14818 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14819 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14820 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'
14821 ;;
14822
cristy0c60a692010-11-04 01:09:47 +000014823 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014824 tmp_diet=no
14825 if test "$host_os" = linux-dietlibc; then
14826 case $cc_basename in
14827 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14828 esac
14829 fi
14830 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14831 && test "$tmp_diet" = no
14832 then
cristyda16f162011-02-19 23:52:17 +000014833 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014834 tmp_sharedflag='-shared'
14835 case $cc_basename,$host_cpu in
14836 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014837 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 +000014838 tmp_addflag=' $pic_flag'
14839 ;;
cristy0c60a692010-11-04 01:09:47 +000014840 pgf77* | pgf90* | pgf95* | pgfortran*)
14841 # Portland Group f77 and f90 compilers
14842 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 +000014843 tmp_addflag=' $pic_flag -Mnomain' ;;
14844 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14845 tmp_addflag=' -i_dynamic' ;;
14846 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14847 tmp_addflag=' -i_dynamic -nofor_main' ;;
14848 ifc* | ifort*) # Intel Fortran compiler
14849 tmp_addflag=' -nofor_main' ;;
14850 lf95*) # Lahey Fortran 8.1
14851 whole_archive_flag_spec=
14852 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014853 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014854 tmp_sharedflag='-qmkshrobj'
14855 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014856 nvcc*) # Cuda Compiler Driver 2.2
14857 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'
14858 compiler_needs_object=yes
14859 ;;
cristy73bd4a52010-10-05 11:24:23 +000014860 esac
14861 case `$CC -V 2>&1 | sed 5q` in
14862 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014863 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 +000014864 compiler_needs_object=yes
14865 tmp_sharedflag='-G' ;;
14866 *Sun\ F*) # Sun Fortran 8.3
14867 tmp_sharedflag='-G' ;;
14868 esac
14869 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14870
14871 if test "x$supports_anon_versioning" = xyes; then
14872 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14873 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14874 echo "local: *; };" >> $output_objdir/$libname.ver~
14875 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14876 fi
14877
14878 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014879 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014880 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14881 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014883 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014884 if test "x$supports_anon_versioning" = xyes; then
14885 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14886 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14887 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014888 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014889 fi
14890 ;;
14891 esac
14892 else
14893 ld_shlibs=no
14894 fi
14895 ;;
14896
14897 netbsd*)
14898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14899 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14900 wlarc=
14901 else
cristyda16f162011-02-19 23:52:17 +000014902 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14903 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 +000014904 fi
14905 ;;
14906
14907 solaris*)
14908 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14909 ld_shlibs=no
14910 cat <<_LT_EOF 1>&2
14911
14912*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14913*** create shared libraries on Solaris systems. Therefore, libtool
14914*** is disabling shared libraries support. We urge you to upgrade GNU
14915*** binutils to release 2.9.1 or newer. Another option is to modify
14916*** your PATH or compiler configuration so that the native linker is
14917*** used, and then restart.
14918
14919_LT_EOF
14920 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014921 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14922 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 +000014923 else
14924 ld_shlibs=no
14925 fi
14926 ;;
14927
14928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14929 case `$LD -v 2>&1` in
14930 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14931 ld_shlibs=no
14932 cat <<_LT_EOF 1>&2
14933
14934*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14935*** reliably create shared libraries on SCO systems. Therefore, libtool
14936*** is disabling shared libraries support. We urge you to upgrade GNU
14937*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14938*** your PATH or compiler configuration so that the native linker is
14939*** used, and then restart.
14940
14941_LT_EOF
14942 ;;
14943 *)
14944 # For security reasons, it is highly recommended that you always
14945 # use absolute paths for naming shared libraries, and exclude the
14946 # DT_RUNPATH tag from executables and libraries. But doing so
14947 # requires that you compile everything twice, which is a pain.
14948 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14951 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14952 else
14953 ld_shlibs=no
14954 fi
14955 ;;
14956 esac
14957 ;;
14958
14959 sunos4*)
14960 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14961 wlarc=
14962 hardcode_direct=yes
14963 hardcode_shlibpath_var=no
14964 ;;
14965
14966 *)
14967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014968 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14969 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 +000014970 else
14971 ld_shlibs=no
14972 fi
14973 ;;
14974 esac
14975
14976 if test "$ld_shlibs" = no; then
14977 runpath_var=
14978 hardcode_libdir_flag_spec=
14979 export_dynamic_flag_spec=
14980 whole_archive_flag_spec=
14981 fi
14982 else
14983 # PORTME fill in a description of your system's linker (not GNU ld)
14984 case $host_os in
14985 aix3*)
14986 allow_undefined_flag=unsupported
14987 always_export_symbols=yes
14988 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'
14989 # Note: this linker hardcodes the directories in LIBPATH if there
14990 # are no directories specified by -L.
14991 hardcode_minus_L=yes
14992 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14993 # Neither direct hardcoding nor static linking is supported with a
14994 # broken collect2.
14995 hardcode_direct=unsupported
14996 fi
14997 ;;
14998
14999 aix[4-9]*)
15000 if test "$host_cpu" = ia64; then
15001 # On IA64, the linker does run time linking by default, so we don't
15002 # have to do anything special.
15003 aix_use_runtimelinking=no
15004 exp_sym_flag='-Bexport'
15005 no_entry_flag=""
15006 else
15007 # If we're using GNU nm, then we don't want the "-C" option.
15008 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015009 # Also, AIX nm treats weak defined symbols like other global
15010 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015011 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015012 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 +000015013 else
15014 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'
15015 fi
15016 aix_use_runtimelinking=no
15017
15018 # Test if we are trying to use run time linking or normal
15019 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15020 # need to do runtime linking.
15021 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15022 for ld_flag in $LDFLAGS; do
15023 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15024 aix_use_runtimelinking=yes
15025 break
15026 fi
15027 done
15028 ;;
15029 esac
15030
15031 exp_sym_flag='-bexport'
15032 no_entry_flag='-bnoentry'
15033 fi
15034
15035 # When large executables or shared objects are built, AIX ld can
15036 # have problems creating the table of contents. If linking a library
15037 # or program results in "error TOC overflow" add -mminimal-toc to
15038 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15039 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15040
15041 archive_cmds=''
15042 hardcode_direct=yes
15043 hardcode_direct_absolute=yes
15044 hardcode_libdir_separator=':'
15045 link_all_deplibs=yes
15046 file_list_spec='${wl}-f,'
15047
15048 if test "$GCC" = yes; then
15049 case $host_os in aix4.[012]|aix4.[012].*)
15050 # We only want to do this on AIX 4.2 and lower, the check
15051 # below for broken collect2 doesn't work under 4.3+
15052 collect2name=`${CC} -print-prog-name=collect2`
15053 if test -f "$collect2name" &&
15054 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15055 then
15056 # We have reworked collect2
15057 :
15058 else
15059 # We have old collect2
15060 hardcode_direct=unsupported
15061 # It fails to find uninstalled libraries when the uninstalled
15062 # path is not listed in the libpath. Setting hardcode_minus_L
15063 # to unsupported forces relinking
15064 hardcode_minus_L=yes
15065 hardcode_libdir_flag_spec='-L$libdir'
15066 hardcode_libdir_separator=
15067 fi
15068 ;;
15069 esac
15070 shared_flag='-shared'
15071 if test "$aix_use_runtimelinking" = yes; then
15072 shared_flag="$shared_flag "'${wl}-G'
15073 fi
15074 else
15075 # not using gcc
15076 if test "$host_cpu" = ia64; then
15077 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15078 # chokes on -Wl,-G. The following line is correct:
15079 shared_flag='-G'
15080 else
15081 if test "$aix_use_runtimelinking" = yes; then
15082 shared_flag='${wl}-G'
15083 else
15084 shared_flag='${wl}-bM:SRE'
15085 fi
15086 fi
15087 fi
15088
15089 export_dynamic_flag_spec='${wl}-bexpall'
15090 # It seems that -bexpall does not export symbols beginning with
15091 # underscore (_), so it is better to generate a list of symbols to export.
15092 always_export_symbols=yes
15093 if test "$aix_use_runtimelinking" = yes; then
15094 # Warning - without using the other runtime loading flags (-brtl),
15095 # -berok will link without error, but may produce a broken library.
15096 allow_undefined_flag='-berok'
15097 # Determine the default libpath from the value encoded in an
15098 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015099 if test "${lt_cv_aix_libpath+set}" = set; then
15100 aix_libpath=$lt_cv_aix_libpath
15101else
15102 if ${lt_cv_aix_libpath_+:} false; then :
15103 $as_echo_n "(cached) " >&6
15104else
15105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015106/* end confdefs.h. */
15107
15108int
15109main ()
15110{
15111
15112 ;
15113 return 0;
15114}
15115_ACEOF
15116if ac_fn_c_try_link "$LINENO"; then :
15117
cristyda16f162011-02-19 23:52:17 +000015118 lt_aix_libpath_sed='
15119 /Import File Strings/,/^$/ {
15120 /^0/ {
15121 s/^0 *\([^ ]*\) *$/\1/
15122 p
15123 }
15124 }'
15125 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15126 # Check for a 64-bit object if we didn't find anything.
15127 if test -z "$lt_cv_aix_libpath_"; then
15128 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15129 fi
cristy73bd4a52010-10-05 11:24:23 +000015130fi
15131rm -f core conftest.err conftest.$ac_objext \
15132 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015133 if test -z "$lt_cv_aix_libpath_"; then
15134 lt_cv_aix_libpath_="/usr/lib:/lib"
15135 fi
15136
15137fi
15138
15139 aix_libpath=$lt_cv_aix_libpath_
15140fi
cristy73bd4a52010-10-05 11:24:23 +000015141
15142 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015143 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 +000015144 else
15145 if test "$host_cpu" = ia64; then
15146 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15147 allow_undefined_flag="-z nodefs"
15148 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"
15149 else
15150 # Determine the default libpath from the value encoded in an
15151 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015152 if test "${lt_cv_aix_libpath+set}" = set; then
15153 aix_libpath=$lt_cv_aix_libpath
15154else
15155 if ${lt_cv_aix_libpath_+:} false; then :
15156 $as_echo_n "(cached) " >&6
15157else
15158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015159/* end confdefs.h. */
15160
15161int
15162main ()
15163{
15164
15165 ;
15166 return 0;
15167}
15168_ACEOF
15169if ac_fn_c_try_link "$LINENO"; then :
15170
cristyda16f162011-02-19 23:52:17 +000015171 lt_aix_libpath_sed='
15172 /Import File Strings/,/^$/ {
15173 /^0/ {
15174 s/^0 *\([^ ]*\) *$/\1/
15175 p
15176 }
15177 }'
15178 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15179 # Check for a 64-bit object if we didn't find anything.
15180 if test -z "$lt_cv_aix_libpath_"; then
15181 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15182 fi
cristy73bd4a52010-10-05 11:24:23 +000015183fi
15184rm -f core conftest.err conftest.$ac_objext \
15185 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015186 if test -z "$lt_cv_aix_libpath_"; then
15187 lt_cv_aix_libpath_="/usr/lib:/lib"
15188 fi
15189
15190fi
15191
15192 aix_libpath=$lt_cv_aix_libpath_
15193fi
cristy73bd4a52010-10-05 11:24:23 +000015194
15195 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15196 # Warning - without using the other run time loading flags,
15197 # -berok will link without error, but may produce a broken library.
15198 no_undefined_flag=' ${wl}-bernotok'
15199 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015200 if test "$with_gnu_ld" = yes; then
15201 # We only use this code for GNU lds that support --whole-archive.
15202 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15203 else
15204 # Exported symbols can be pulled into shared objects from archives
15205 whole_archive_flag_spec='$convenience'
15206 fi
cristy73bd4a52010-10-05 11:24:23 +000015207 archive_cmds_need_lc=yes
15208 # This is similar to how AIX traditionally builds its shared libraries.
15209 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'
15210 fi
15211 fi
15212 ;;
15213
15214 amigaos*)
15215 case $host_cpu in
15216 powerpc)
15217 # see comment about AmigaOS4 .so support
15218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15219 archive_expsym_cmds=''
15220 ;;
15221 m68k)
15222 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)'
15223 hardcode_libdir_flag_spec='-L$libdir'
15224 hardcode_minus_L=yes
15225 ;;
15226 esac
15227 ;;
15228
15229 bsdi[45]*)
15230 export_dynamic_flag_spec=-rdynamic
15231 ;;
15232
15233 cygwin* | mingw* | pw32* | cegcc*)
15234 # When not using gcc, we currently assume that we are using
15235 # Microsoft Visual C++.
15236 # hardcode_libdir_flag_spec is actually meaningless, as there is
15237 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015238 case $cc_basename in
15239 cl*)
15240 # Native MSVC
15241 hardcode_libdir_flag_spec=' '
15242 allow_undefined_flag=unsupported
15243 always_export_symbols=yes
15244 file_list_spec='@'
15245 # Tell ltmain to make .lib files, not .a files.
15246 libext=lib
15247 # Tell ltmain to make .dll files, not .so files.
15248 shrext_cmds=".dll"
15249 # FIXME: Setting linknames here is a bad hack.
15250 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15251 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15252 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15253 else
15254 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15255 fi~
15256 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15257 linknames='
15258 # The linker will not automatically build a static lib if we build a DLL.
15259 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15260 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015261 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015262 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15263 # Don't use ranlib
15264 old_postinstall_cmds='chmod 644 $oldlib'
15265 postlink_cmds='lt_outputfile="@OUTPUT@"~
15266 lt_tool_outputfile="@TOOL_OUTPUT@"~
15267 case $lt_outputfile in
15268 *.exe|*.EXE) ;;
15269 *)
15270 lt_outputfile="$lt_outputfile.exe"
15271 lt_tool_outputfile="$lt_tool_outputfile.exe"
15272 ;;
15273 esac~
15274 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15275 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15276 $RM "$lt_outputfile.manifest";
15277 fi'
15278 ;;
15279 *)
15280 # Assume MSVC wrapper
15281 hardcode_libdir_flag_spec=' '
15282 allow_undefined_flag=unsupported
15283 # Tell ltmain to make .lib files, not .a files.
15284 libext=lib
15285 # Tell ltmain to make .dll files, not .so files.
15286 shrext_cmds=".dll"
15287 # FIXME: Setting linknames here is a bad hack.
15288 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15289 # The linker will automatically build a .lib file if we build a DLL.
15290 old_archive_from_new_cmds='true'
15291 # FIXME: Should let the user specify the lib program.
15292 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15293 enable_shared_with_static_runtimes=yes
15294 ;;
15295 esac
cristy73bd4a52010-10-05 11:24:23 +000015296 ;;
15297
15298 darwin* | rhapsody*)
15299
15300
15301 archive_cmds_need_lc=no
15302 hardcode_direct=no
15303 hardcode_automatic=yes
15304 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015305 if test "$lt_cv_ld_force_load" = "yes"; then
15306 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 +000015307
cristy0c60a692010-11-04 01:09:47 +000015308 else
15309 whole_archive_flag_spec=''
15310 fi
cristy73bd4a52010-10-05 11:24:23 +000015311 link_all_deplibs=yes
15312 allow_undefined_flag="$_lt_dar_allow_undefined"
15313 case $cc_basename in
15314 ifort*) _lt_dar_can_shared=yes ;;
15315 *) _lt_dar_can_shared=$GCC ;;
15316 esac
15317 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015318 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015319 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15320 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15321 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}"
15322 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}"
15323
15324 else
15325 ld_shlibs=no
15326 fi
15327
15328 ;;
15329
15330 dgux*)
15331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15332 hardcode_libdir_flag_spec='-L$libdir'
15333 hardcode_shlibpath_var=no
15334 ;;
15335
cristy73bd4a52010-10-05 11:24:23 +000015336 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15337 # support. Future versions do this automatically, but an explicit c++rt0.o
15338 # does not break anything, and helps significantly (at the cost of a little
15339 # extra space).
15340 freebsd2.2*)
15341 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15342 hardcode_libdir_flag_spec='-R$libdir'
15343 hardcode_direct=yes
15344 hardcode_shlibpath_var=no
15345 ;;
15346
15347 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015348 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15350 hardcode_direct=yes
15351 hardcode_minus_L=yes
15352 hardcode_shlibpath_var=no
15353 ;;
15354
15355 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15356 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015357 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015358 hardcode_libdir_flag_spec='-R$libdir'
15359 hardcode_direct=yes
15360 hardcode_shlibpath_var=no
15361 ;;
15362
15363 hpux9*)
15364 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015365 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 +000015366 else
15367 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'
15368 fi
15369 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15370 hardcode_libdir_separator=:
15371 hardcode_direct=yes
15372
15373 # hardcode_minus_L: Not really in the search PATH,
15374 # but as the default location of the library.
15375 hardcode_minus_L=yes
15376 export_dynamic_flag_spec='${wl}-E'
15377 ;;
15378
15379 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015380 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015381 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 +000015382 else
15383 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15384 fi
15385 if test "$with_gnu_ld" = no; then
15386 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015387 hardcode_libdir_separator=:
15388 hardcode_direct=yes
15389 hardcode_direct_absolute=yes
15390 export_dynamic_flag_spec='${wl}-E'
15391 # hardcode_minus_L: Not really in the search PATH,
15392 # but as the default location of the library.
15393 hardcode_minus_L=yes
15394 fi
15395 ;;
15396
15397 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015398 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015399 case $host_cpu in
15400 hppa*64*)
15401 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15402 ;;
15403 ia64*)
cristyda16f162011-02-19 23:52:17 +000015404 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015405 ;;
15406 *)
cristyda16f162011-02-19 23:52:17 +000015407 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 +000015408 ;;
15409 esac
15410 else
15411 case $host_cpu in
15412 hppa*64*)
15413 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15414 ;;
15415 ia64*)
15416 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15417 ;;
15418 *)
cristy0c60a692010-11-04 01:09:47 +000015419
15420 # Older versions of the 11.00 compiler do not understand -b yet
15421 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15423$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015424if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015425 $as_echo_n "(cached) " >&6
15426else
15427 lt_cv_prog_compiler__b=no
15428 save_LDFLAGS="$LDFLAGS"
15429 LDFLAGS="$LDFLAGS -b"
15430 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15431 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15432 # The linker can only warn and ignore the option if not recognized
15433 # So say no if there are warnings
15434 if test -s conftest.err; then
15435 # Append any errors to the config.log.
15436 cat conftest.err 1>&5
15437 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15439 if diff conftest.exp conftest.er2 >/dev/null; then
15440 lt_cv_prog_compiler__b=yes
15441 fi
15442 else
15443 lt_cv_prog_compiler__b=yes
15444 fi
15445 fi
15446 $RM -r conftest*
15447 LDFLAGS="$save_LDFLAGS"
15448
15449fi
15450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15451$as_echo "$lt_cv_prog_compiler__b" >&6; }
15452
15453if test x"$lt_cv_prog_compiler__b" = xyes; then
15454 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15455else
15456 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15457fi
15458
cristy73bd4a52010-10-05 11:24:23 +000015459 ;;
15460 esac
15461 fi
15462 if test "$with_gnu_ld" = no; then
15463 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15464 hardcode_libdir_separator=:
15465
15466 case $host_cpu in
15467 hppa*64*|ia64*)
15468 hardcode_direct=no
15469 hardcode_shlibpath_var=no
15470 ;;
15471 *)
15472 hardcode_direct=yes
15473 hardcode_direct_absolute=yes
15474 export_dynamic_flag_spec='${wl}-E'
15475
15476 # hardcode_minus_L: Not really in the search PATH,
15477 # but as the default location of the library.
15478 hardcode_minus_L=yes
15479 ;;
15480 esac
15481 fi
15482 ;;
15483
15484 irix5* | irix6* | nonstopux*)
15485 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015486 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 +000015487 # Try to use the -exported_symbol ld option, if it does not
15488 # work, assume that -exports_file does not work either and
15489 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015490 # This should be the same for all languages, so no per-tag cache variable.
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15492$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15493if ${lt_cv_irix_exported_symbol+:} false; then :
15494 $as_echo_n "(cached) " >&6
15495else
15496 save_LDFLAGS="$LDFLAGS"
15497 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015499/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015500int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015501_ACEOF
15502if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015503 lt_cv_irix_exported_symbol=yes
15504else
15505 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015506fi
15507rm -f core conftest.err conftest.$ac_objext \
15508 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015509 LDFLAGS="$save_LDFLAGS"
15510fi
15511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15512$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15513 if test "$lt_cv_irix_exported_symbol" = yes; then
15514 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'
15515 fi
cristy73bd4a52010-10-05 11:24:23 +000015516 else
cristy0c60a692010-11-04 01:09:47 +000015517 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'
15518 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 +000015519 fi
15520 archive_cmds_need_lc='no'
15521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15522 hardcode_libdir_separator=:
15523 inherit_rpath=yes
15524 link_all_deplibs=yes
15525 ;;
15526
15527 netbsd*)
15528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15529 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15530 else
15531 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15532 fi
15533 hardcode_libdir_flag_spec='-R$libdir'
15534 hardcode_direct=yes
15535 hardcode_shlibpath_var=no
15536 ;;
15537
15538 newsos6)
15539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15540 hardcode_direct=yes
15541 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15542 hardcode_libdir_separator=:
15543 hardcode_shlibpath_var=no
15544 ;;
15545
15546 *nto* | *qnx*)
15547 ;;
15548
15549 openbsd*)
15550 if test -f /usr/libexec/ld.so; then
15551 hardcode_direct=yes
15552 hardcode_shlibpath_var=no
15553 hardcode_direct_absolute=yes
15554 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15556 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15557 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15558 export_dynamic_flag_spec='${wl}-E'
15559 else
15560 case $host_os in
15561 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15563 hardcode_libdir_flag_spec='-R$libdir'
15564 ;;
15565 *)
15566 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15567 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15568 ;;
15569 esac
15570 fi
15571 else
15572 ld_shlibs=no
15573 fi
15574 ;;
15575
15576 os2*)
15577 hardcode_libdir_flag_spec='-L$libdir'
15578 hardcode_minus_L=yes
15579 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015580 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 +000015581 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15582 ;;
15583
15584 osf3*)
15585 if test "$GCC" = yes; then
15586 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015587 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 +000015588 else
15589 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015590 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 +000015591 fi
15592 archive_cmds_need_lc='no'
15593 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15594 hardcode_libdir_separator=:
15595 ;;
15596
15597 osf4* | osf5*) # as osf3* with the addition of -msym flag
15598 if test "$GCC" = yes; then
15599 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015600 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 +000015601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15602 else
15603 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015604 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 +000015605 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 +000015606 $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 +000015607
15608 # Both c and cxx compiler support -rpath directly
15609 hardcode_libdir_flag_spec='-rpath $libdir'
15610 fi
15611 archive_cmds_need_lc='no'
15612 hardcode_libdir_separator=:
15613 ;;
15614
15615 solaris*)
15616 no_undefined_flag=' -z defs'
15617 if test "$GCC" = yes; then
15618 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015619 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 +000015620 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 +000015621 $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 +000015622 else
15623 case `$CC -V 2>&1` in
15624 *"Compilers 5.0"*)
15625 wlarc=''
15626 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15627 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15628 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15629 ;;
15630 *)
15631 wlarc='${wl}'
15632 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15633 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15634 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15635 ;;
15636 esac
15637 fi
15638 hardcode_libdir_flag_spec='-R$libdir'
15639 hardcode_shlibpath_var=no
15640 case $host_os in
15641 solaris2.[0-5] | solaris2.[0-5].*) ;;
15642 *)
15643 # The compiler driver will combine and reorder linker options,
15644 # but understands `-z linker_flag'. GCC discards it without `$wl',
15645 # but is careful enough not to reorder.
15646 # Supported since Solaris 2.6 (maybe 2.5.1?)
15647 if test "$GCC" = yes; then
15648 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15649 else
15650 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15651 fi
15652 ;;
15653 esac
15654 link_all_deplibs=yes
15655 ;;
15656
15657 sunos4*)
15658 if test "x$host_vendor" = xsequent; then
15659 # Use $CC to link under sequent, because it throws in some extra .o
15660 # files that make .init and .fini sections work.
15661 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15662 else
15663 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15664 fi
15665 hardcode_libdir_flag_spec='-L$libdir'
15666 hardcode_direct=yes
15667 hardcode_minus_L=yes
15668 hardcode_shlibpath_var=no
15669 ;;
15670
15671 sysv4)
15672 case $host_vendor in
15673 sni)
15674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15675 hardcode_direct=yes # is this really true???
15676 ;;
15677 siemens)
15678 ## LD is ld it makes a PLAMLIB
15679 ## CC just makes a GrossModule.
15680 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15681 reload_cmds='$CC -r -o $output$reload_objs'
15682 hardcode_direct=no
15683 ;;
15684 motorola)
15685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15686 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15687 ;;
15688 esac
15689 runpath_var='LD_RUN_PATH'
15690 hardcode_shlibpath_var=no
15691 ;;
15692
15693 sysv4.3*)
15694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15695 hardcode_shlibpath_var=no
15696 export_dynamic_flag_spec='-Bexport'
15697 ;;
15698
15699 sysv4*MP*)
15700 if test -d /usr/nec; then
15701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15702 hardcode_shlibpath_var=no
15703 runpath_var=LD_RUN_PATH
15704 hardcode_runpath_var=yes
15705 ld_shlibs=yes
15706 fi
15707 ;;
15708
15709 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15710 no_undefined_flag='${wl}-z,text'
15711 archive_cmds_need_lc=no
15712 hardcode_shlibpath_var=no
15713 runpath_var='LD_RUN_PATH'
15714
15715 if test "$GCC" = yes; then
15716 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15717 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15718 else
15719 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15720 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15721 fi
15722 ;;
15723
15724 sysv5* | sco3.2v5* | sco5v6*)
15725 # Note: We can NOT use -z defs as we might desire, because we do not
15726 # link with -lc, and that would cause any symbols used from libc to
15727 # always be unresolved, which means just about no library would
15728 # ever link correctly. If we're not using GNU ld we use -z text
15729 # though, which does catch some bad symbols but isn't as heavy-handed
15730 # as -z defs.
15731 no_undefined_flag='${wl}-z,text'
15732 allow_undefined_flag='${wl}-z,nodefs'
15733 archive_cmds_need_lc=no
15734 hardcode_shlibpath_var=no
15735 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15736 hardcode_libdir_separator=':'
15737 link_all_deplibs=yes
15738 export_dynamic_flag_spec='${wl}-Bexport'
15739 runpath_var='LD_RUN_PATH'
15740
15741 if test "$GCC" = yes; then
15742 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15743 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15744 else
15745 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15746 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15747 fi
15748 ;;
15749
15750 uts4*)
15751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15752 hardcode_libdir_flag_spec='-L$libdir'
15753 hardcode_shlibpath_var=no
15754 ;;
15755
15756 *)
15757 ld_shlibs=no
15758 ;;
15759 esac
15760
15761 if test x$host_vendor = xsni; then
15762 case $host in
15763 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15764 export_dynamic_flag_spec='${wl}-Blargedynsym'
15765 ;;
15766 esac
15767 fi
15768 fi
15769
15770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15771$as_echo "$ld_shlibs" >&6; }
15772test "$ld_shlibs" = no && can_build_shared=no
15773
15774with_gnu_ld=$with_gnu_ld
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790#
15791# Do we need to explicitly link libc?
15792#
15793case "x$archive_cmds_need_lc" in
15794x|xyes)
15795 # Assume -lc should be added
15796 archive_cmds_need_lc=yes
15797
15798 if test "$enable_shared" = yes && test "$GCC" = yes; then
15799 case $archive_cmds in
15800 *'~'*)
15801 # FIXME: we may have to deal with multi-command sequences.
15802 ;;
15803 '$CC '*)
15804 # Test whether the compiler implicitly links with -lc since on some
15805 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15806 # to ld, don't add -lc before -lgcc.
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15808$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015809if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015810 $as_echo_n "(cached) " >&6
15811else
15812 $RM conftest*
15813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015814
cristy0c60a692010-11-04 01:09:47 +000015815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015816 (eval $ac_compile) 2>&5
15817 ac_status=$?
15818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15819 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015820 soname=conftest
15821 lib=conftest
15822 libobjs=conftest.$ac_objext
15823 deplibs=
15824 wl=$lt_prog_compiler_wl
15825 pic_flag=$lt_prog_compiler_pic
15826 compiler_flags=-v
15827 linker_flags=-v
15828 verstring=
15829 output_objdir=.
15830 libname=conftest
15831 lt_save_allow_undefined_flag=$allow_undefined_flag
15832 allow_undefined_flag=
15833 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 +000015834 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15835 ac_status=$?
15836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15837 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015838 then
15839 lt_cv_archive_cmds_need_lc=no
15840 else
15841 lt_cv_archive_cmds_need_lc=yes
15842 fi
15843 allow_undefined_flag=$lt_save_allow_undefined_flag
15844 else
15845 cat conftest.err 1>&5
15846 fi
15847 $RM conftest*
15848
15849fi
15850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15851$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15852 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015853 ;;
15854 esac
15855 fi
15856 ;;
15857esac
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
cristy73bd4a52010-10-05 11:24:23 +000016010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16011$as_echo_n "checking dynamic linker characteristics... " >&6; }
16012
16013if test "$GCC" = yes; then
16014 case $host_os in
16015 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16016 *) lt_awk_arg="/^libraries:/" ;;
16017 esac
cristy0c60a692010-11-04 01:09:47 +000016018 case $host_os in
16019 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16020 *) lt_sed_strip_eq="s,=/,/,g" ;;
16021 esac
16022 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16023 case $lt_search_path_spec in
16024 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016025 # if the path contains ";" then we assume it to be the separator
16026 # otherwise default to the standard path separator (i.e. ":") - it is
16027 # assumed that no part of a normal pathname contains ";" but that should
16028 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016029 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16030 ;;
16031 *)
16032 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16033 ;;
16034 esac
cristy73bd4a52010-10-05 11:24:23 +000016035 # Ok, now we have the path, separated by spaces, we can step through it
16036 # and add multilib dir if necessary.
16037 lt_tmp_lt_search_path_spec=
16038 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16039 for lt_sys_path in $lt_search_path_spec; do
16040 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16041 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16042 else
16043 test -d "$lt_sys_path" && \
16044 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16045 fi
16046 done
cristy0c60a692010-11-04 01:09:47 +000016047 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016048BEGIN {RS=" "; FS="/|\n";} {
16049 lt_foo="";
16050 lt_count=0;
16051 for (lt_i = NF; lt_i > 0; lt_i--) {
16052 if ($lt_i != "" && $lt_i != ".") {
16053 if ($lt_i == "..") {
16054 lt_count++;
16055 } else {
16056 if (lt_count == 0) {
16057 lt_foo="/" $lt_i lt_foo;
16058 } else {
16059 lt_count--;
16060 }
16061 }
16062 }
16063 }
16064 if (lt_foo != "") { lt_freq[lt_foo]++; }
16065 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16066}'`
cristy0c60a692010-11-04 01:09:47 +000016067 # AWK program above erroneously prepends '/' to C:/dos/paths
16068 # for these hosts.
16069 case $host_os in
16070 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16071 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16072 esac
16073 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016074else
16075 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16076fi
16077library_names_spec=
16078libname_spec='lib$name'
16079soname_spec=
16080shrext_cmds=".so"
16081postinstall_cmds=
16082postuninstall_cmds=
16083finish_cmds=
16084finish_eval=
16085shlibpath_var=
16086shlibpath_overrides_runpath=unknown
16087version_type=none
16088dynamic_linker="$host_os ld.so"
16089sys_lib_dlsearch_path_spec="/lib /usr/lib"
16090need_lib_prefix=unknown
16091hardcode_into_libs=no
16092
16093# when you set need_version to no, make sure it does not cause -set_version
16094# flags to be left without arguments
16095need_version=unknown
16096
16097case $host_os in
16098aix3*)
cristy99bd5232011-12-07 14:38:20 +000016099 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16101 shlibpath_var=LIBPATH
16102
16103 # AIX 3 has no versioning support, so we append a major version to the name.
16104 soname_spec='${libname}${release}${shared_ext}$major'
16105 ;;
16106
16107aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016108 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016109 need_lib_prefix=no
16110 need_version=no
16111 hardcode_into_libs=yes
16112 if test "$host_cpu" = ia64; then
16113 # AIX 5 supports IA64
16114 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16115 shlibpath_var=LD_LIBRARY_PATH
16116 else
16117 # With GCC up to 2.95.x, collect2 would create an import file
16118 # for dependence libraries. The import file would start with
16119 # the line `#! .'. This would cause the generated library to
16120 # depend on `.', always an invalid library. This was fixed in
16121 # development snapshots of GCC prior to 3.0.
16122 case $host_os in
16123 aix4 | aix4.[01] | aix4.[01].*)
16124 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16125 echo ' yes '
16126 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16127 :
16128 else
16129 can_build_shared=no
16130 fi
16131 ;;
16132 esac
16133 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16134 # soname into executable. Probably we can add versioning support to
16135 # collect2, so additional links can be useful in future.
16136 if test "$aix_use_runtimelinking" = yes; then
16137 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16138 # instead of lib<name>.a to let people know that these are not
16139 # typical AIX shared libraries.
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141 else
16142 # We preserve .a as extension for shared libraries through AIX4.2
16143 # and later when we are not doing run time linking.
16144 library_names_spec='${libname}${release}.a $libname.a'
16145 soname_spec='${libname}${release}${shared_ext}$major'
16146 fi
16147 shlibpath_var=LIBPATH
16148 fi
16149 ;;
16150
16151amigaos*)
16152 case $host_cpu in
16153 powerpc)
16154 # Since July 2007 AmigaOS4 officially supports .so libraries.
16155 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157 ;;
16158 m68k)
16159 library_names_spec='$libname.ixlibrary $libname.a'
16160 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016161 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 +000016162 ;;
16163 esac
16164 ;;
16165
16166beos*)
16167 library_names_spec='${libname}${shared_ext}'
16168 dynamic_linker="$host_os ld.so"
16169 shlibpath_var=LIBRARY_PATH
16170 ;;
16171
16172bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016173 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016174 need_version=no
16175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16176 soname_spec='${libname}${release}${shared_ext}$major'
16177 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16178 shlibpath_var=LD_LIBRARY_PATH
16179 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16180 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16181 # the default ld.so.conf also contains /usr/contrib/lib and
16182 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16183 # libtool to hard-code these into programs
16184 ;;
16185
16186cygwin* | mingw* | pw32* | cegcc*)
16187 version_type=windows
16188 shrext_cmds=".dll"
16189 need_version=no
16190 need_lib_prefix=no
16191
cristyda16f162011-02-19 23:52:17 +000016192 case $GCC,$cc_basename in
16193 yes,*)
16194 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016195 library_names_spec='$libname.dll.a'
16196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16197 postinstall_cmds='base_file=`basename \${file}`~
16198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16199 dldir=$destdir/`dirname \$dlpath`~
16200 test -d \$dldir || mkdir -p \$dldir~
16201 $install_prog $dir/$dlname \$dldir/$dlname~
16202 chmod a+x \$dldir/$dlname~
16203 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16204 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16205 fi'
16206 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16207 dlpath=$dir/\$dldll~
16208 $RM \$dlpath'
16209 shlibpath_overrides_runpath=yes
16210
16211 case $host_os in
16212 cygwin*)
16213 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16214 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016215
16216 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016217 ;;
16218 mingw* | cegcc*)
16219 # MinGW DLLs use traditional 'lib' prefix
16220 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016221 ;;
16222 pw32*)
16223 # pw32 DLLs use 'pw' prefix rather than 'lib'
16224 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16225 ;;
16226 esac
cristyda16f162011-02-19 23:52:17 +000016227 dynamic_linker='Win32 ld.exe'
16228 ;;
16229
16230 *,cl*)
16231 # Native MSVC
16232 libname_spec='$name'
16233 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16234 library_names_spec='${libname}.dll.lib'
16235
16236 case $build_os in
16237 mingw*)
16238 sys_lib_search_path_spec=
16239 lt_save_ifs=$IFS
16240 IFS=';'
16241 for lt_path in $LIB
16242 do
16243 IFS=$lt_save_ifs
16244 # Let DOS variable expansion print the short 8.3 style file name.
16245 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16246 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16247 done
16248 IFS=$lt_save_ifs
16249 # Convert to MSYS style.
16250 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16251 ;;
16252 cygwin*)
16253 # Convert to unix form, then to dos form, then back to unix form
16254 # but this time dos style (no spaces!) so that the unix form looks
16255 # like /cygdrive/c/PROGRA~1:/cygdr...
16256 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16257 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16258 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16259 ;;
16260 *)
16261 sys_lib_search_path_spec="$LIB"
16262 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16263 # It is most probably a Windows format PATH.
16264 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16265 else
16266 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16267 fi
16268 # FIXME: find the short name or the path components, as spaces are
16269 # common. (e.g. "Program Files" -> "PROGRA~1")
16270 ;;
16271 esac
16272
16273 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16274 postinstall_cmds='base_file=`basename \${file}`~
16275 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16276 dldir=$destdir/`dirname \$dlpath`~
16277 test -d \$dldir || mkdir -p \$dldir~
16278 $install_prog $dir/$dlname \$dldir/$dlname'
16279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16280 dlpath=$dir/\$dldll~
16281 $RM \$dlpath'
16282 shlibpath_overrides_runpath=yes
16283 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016284 ;;
16285
16286 *)
cristyda16f162011-02-19 23:52:17 +000016287 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016288 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016289 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016290 ;;
16291 esac
cristy73bd4a52010-10-05 11:24:23 +000016292 # FIXME: first we should search . and the directory the executable is in
16293 shlibpath_var=PATH
16294 ;;
16295
16296darwin* | rhapsody*)
16297 dynamic_linker="$host_os dyld"
16298 version_type=darwin
16299 need_lib_prefix=no
16300 need_version=no
16301 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16302 soname_spec='${libname}${release}${major}$shared_ext'
16303 shlibpath_overrides_runpath=yes
16304 shlibpath_var=DYLD_LIBRARY_PATH
16305 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16306
16307 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16308 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16309 ;;
16310
16311dgux*)
cristy99bd5232011-12-07 14:38:20 +000016312 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016313 need_lib_prefix=no
16314 need_version=no
16315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16316 soname_spec='${libname}${release}${shared_ext}$major'
16317 shlibpath_var=LD_LIBRARY_PATH
16318 ;;
16319
cristy73bd4a52010-10-05 11:24:23 +000016320freebsd* | dragonfly*)
16321 # DragonFly does not have aout. When/if they implement a new
16322 # versioning mechanism, adjust this.
16323 if test -x /usr/bin/objformat; then
16324 objformat=`/usr/bin/objformat`
16325 else
16326 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016327 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016328 *) objformat=elf ;;
16329 esac
16330 fi
16331 version_type=freebsd-$objformat
16332 case $version_type in
16333 freebsd-elf*)
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16335 need_version=no
16336 need_lib_prefix=no
16337 ;;
16338 freebsd-*)
16339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16340 need_version=yes
16341 ;;
16342 esac
16343 shlibpath_var=LD_LIBRARY_PATH
16344 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016345 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016346 shlibpath_overrides_runpath=yes
16347 ;;
16348 freebsd3.[01]* | freebsdelf3.[01]*)
16349 shlibpath_overrides_runpath=yes
16350 hardcode_into_libs=yes
16351 ;;
16352 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16353 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16354 shlibpath_overrides_runpath=no
16355 hardcode_into_libs=yes
16356 ;;
16357 *) # from 4.6 on, and DragonFly
16358 shlibpath_overrides_runpath=yes
16359 hardcode_into_libs=yes
16360 ;;
16361 esac
16362 ;;
16363
16364gnu*)
cristy99bd5232011-12-07 14:38:20 +000016365 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016366 need_lib_prefix=no
16367 need_version=no
16368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16369 soname_spec='${libname}${release}${shared_ext}$major'
16370 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016371 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016372 hardcode_into_libs=yes
16373 ;;
16374
cristy0c60a692010-11-04 01:09:47 +000016375haiku*)
cristy99bd5232011-12-07 14:38:20 +000016376 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016377 need_lib_prefix=no
16378 need_version=no
16379 dynamic_linker="$host_os runtime_loader"
16380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16381 soname_spec='${libname}${release}${shared_ext}$major'
16382 shlibpath_var=LIBRARY_PATH
16383 shlibpath_overrides_runpath=yes
16384 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16385 hardcode_into_libs=yes
16386 ;;
16387
cristy73bd4a52010-10-05 11:24:23 +000016388hpux9* | hpux10* | hpux11*)
16389 # Give a soname corresponding to the major version so that dld.sl refuses to
16390 # link against other versions.
16391 version_type=sunos
16392 need_lib_prefix=no
16393 need_version=no
16394 case $host_cpu in
16395 ia64*)
16396 shrext_cmds='.so'
16397 hardcode_into_libs=yes
16398 dynamic_linker="$host_os dld.so"
16399 shlibpath_var=LD_LIBRARY_PATH
16400 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16402 soname_spec='${libname}${release}${shared_ext}$major'
16403 if test "X$HPUX_IA64_MODE" = X32; then
16404 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16405 else
16406 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16407 fi
16408 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16409 ;;
16410 hppa*64*)
16411 shrext_cmds='.sl'
16412 hardcode_into_libs=yes
16413 dynamic_linker="$host_os dld.sl"
16414 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16415 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417 soname_spec='${libname}${release}${shared_ext}$major'
16418 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16419 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16420 ;;
16421 *)
16422 shrext_cmds='.sl'
16423 dynamic_linker="$host_os dld.sl"
16424 shlibpath_var=SHLIB_PATH
16425 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16427 soname_spec='${libname}${release}${shared_ext}$major'
16428 ;;
16429 esac
cristy0c60a692010-11-04 01:09:47 +000016430 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016431 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016432 # or fails outright, so override atomically:
16433 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016434 ;;
16435
16436interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016437 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016438 need_lib_prefix=no
16439 need_version=no
16440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16441 soname_spec='${libname}${release}${shared_ext}$major'
16442 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16443 shlibpath_var=LD_LIBRARY_PATH
16444 shlibpath_overrides_runpath=no
16445 hardcode_into_libs=yes
16446 ;;
16447
16448irix5* | irix6* | nonstopux*)
16449 case $host_os in
16450 nonstopux*) version_type=nonstopux ;;
16451 *)
16452 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016453 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016454 else
16455 version_type=irix
16456 fi ;;
16457 esac
16458 need_lib_prefix=no
16459 need_version=no
16460 soname_spec='${libname}${release}${shared_ext}$major'
16461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16462 case $host_os in
16463 irix5* | nonstopux*)
16464 libsuff= shlibsuff=
16465 ;;
16466 *)
16467 case $LD in # libtool.m4 will add one of these switches to LD
16468 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16469 libsuff= shlibsuff= libmagic=32-bit;;
16470 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16471 libsuff=32 shlibsuff=N32 libmagic=N32;;
16472 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16473 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16474 *) libsuff= shlibsuff= libmagic=never-match;;
16475 esac
16476 ;;
16477 esac
16478 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16479 shlibpath_overrides_runpath=no
16480 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16481 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16482 hardcode_into_libs=yes
16483 ;;
16484
16485# No shared lib support for Linux oldld, aout, or coff.
16486linux*oldld* | linux*aout* | linux*coff*)
16487 dynamic_linker=no
16488 ;;
16489
cristy99bd5232011-12-07 14:38:20 +000016490# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016491linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016492 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016493 need_lib_prefix=no
16494 need_version=no
16495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16496 soname_spec='${libname}${release}${shared_ext}$major'
16497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16498 shlibpath_var=LD_LIBRARY_PATH
16499 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016500
cristy73bd4a52010-10-05 11:24:23 +000016501 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016502 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016503 $as_echo_n "(cached) " >&6
16504else
16505 lt_cv_shlibpath_overrides_runpath=no
16506 save_LDFLAGS=$LDFLAGS
16507 save_libdir=$libdir
16508 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16509 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016511/* end confdefs.h. */
16512
16513int
16514main ()
16515{
16516
16517 ;
16518 return 0;
16519}
16520_ACEOF
16521if ac_fn_c_try_link "$LINENO"; then :
16522 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016523 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016524fi
16525fi
16526rm -f core conftest.err conftest.$ac_objext \
16527 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016528 LDFLAGS=$save_LDFLAGS
16529 libdir=$save_libdir
16530
16531fi
16532
16533 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016534
16535 # This implies no fast_install, which is unacceptable.
16536 # Some rework will be needed to allow for fast_install
16537 # before this can be enabled.
16538 hardcode_into_libs=yes
16539
16540 # Add ABI-specific directories to the system library path.
16541 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16542
16543 # Append ld.so.conf contents to the search path
16544 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016545 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 +000016546 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016547
cristy73bd4a52010-10-05 11:24:23 +000016548 fi
16549
16550 # We used to test for /lib/ld.so.1 and disable shared libraries on
16551 # powerpc, because MkLinux only supported shared libraries with the
16552 # GNU dynamic linker. Since this was broken with cross compilers,
16553 # most powerpc-linux boxes support dynamic linking these days and
16554 # people can always --disable-shared, the test was removed, and we
16555 # assume the GNU/Linux dynamic linker is in use.
16556 dynamic_linker='GNU/Linux ld.so'
16557 ;;
16558
16559netbsd*)
16560 version_type=sunos
16561 need_lib_prefix=no
16562 need_version=no
16563 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16565 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16566 dynamic_linker='NetBSD (a.out) ld.so'
16567 else
16568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16569 soname_spec='${libname}${release}${shared_ext}$major'
16570 dynamic_linker='NetBSD ld.elf_so'
16571 fi
16572 shlibpath_var=LD_LIBRARY_PATH
16573 shlibpath_overrides_runpath=yes
16574 hardcode_into_libs=yes
16575 ;;
16576
16577newsos6)
cristy99bd5232011-12-07 14:38:20 +000016578 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16580 shlibpath_var=LD_LIBRARY_PATH
16581 shlibpath_overrides_runpath=yes
16582 ;;
16583
16584*nto* | *qnx*)
16585 version_type=qnx
16586 need_lib_prefix=no
16587 need_version=no
16588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16589 soname_spec='${libname}${release}${shared_ext}$major'
16590 shlibpath_var=LD_LIBRARY_PATH
16591 shlibpath_overrides_runpath=no
16592 hardcode_into_libs=yes
16593 dynamic_linker='ldqnx.so'
16594 ;;
16595
16596openbsd*)
16597 version_type=sunos
16598 sys_lib_dlsearch_path_spec="/usr/lib"
16599 need_lib_prefix=no
16600 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16601 case $host_os in
16602 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16603 *) need_version=no ;;
16604 esac
16605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16607 shlibpath_var=LD_LIBRARY_PATH
16608 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16609 case $host_os in
16610 openbsd2.[89] | openbsd2.[89].*)
16611 shlibpath_overrides_runpath=no
16612 ;;
16613 *)
16614 shlibpath_overrides_runpath=yes
16615 ;;
16616 esac
16617 else
16618 shlibpath_overrides_runpath=yes
16619 fi
16620 ;;
16621
16622os2*)
16623 libname_spec='$name'
16624 shrext_cmds=".dll"
16625 need_lib_prefix=no
16626 library_names_spec='$libname${shared_ext} $libname.a'
16627 dynamic_linker='OS/2 ld.exe'
16628 shlibpath_var=LIBPATH
16629 ;;
16630
16631osf3* | osf4* | osf5*)
16632 version_type=osf
16633 need_lib_prefix=no
16634 need_version=no
16635 soname_spec='${libname}${release}${shared_ext}$major'
16636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16637 shlibpath_var=LD_LIBRARY_PATH
16638 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16639 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16640 ;;
16641
16642rdos*)
16643 dynamic_linker=no
16644 ;;
16645
16646solaris*)
cristy99bd5232011-12-07 14:38:20 +000016647 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016648 need_lib_prefix=no
16649 need_version=no
16650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16651 soname_spec='${libname}${release}${shared_ext}$major'
16652 shlibpath_var=LD_LIBRARY_PATH
16653 shlibpath_overrides_runpath=yes
16654 hardcode_into_libs=yes
16655 # ldd complains unless libraries are executable
16656 postinstall_cmds='chmod +x $lib'
16657 ;;
16658
16659sunos4*)
16660 version_type=sunos
16661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16662 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16663 shlibpath_var=LD_LIBRARY_PATH
16664 shlibpath_overrides_runpath=yes
16665 if test "$with_gnu_ld" = yes; then
16666 need_lib_prefix=no
16667 fi
16668 need_version=yes
16669 ;;
16670
16671sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016672 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16674 soname_spec='${libname}${release}${shared_ext}$major'
16675 shlibpath_var=LD_LIBRARY_PATH
16676 case $host_vendor in
16677 sni)
16678 shlibpath_overrides_runpath=no
16679 need_lib_prefix=no
16680 runpath_var=LD_RUN_PATH
16681 ;;
16682 siemens)
16683 need_lib_prefix=no
16684 ;;
16685 motorola)
16686 need_lib_prefix=no
16687 need_version=no
16688 shlibpath_overrides_runpath=no
16689 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16690 ;;
16691 esac
16692 ;;
16693
16694sysv4*MP*)
16695 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016696 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016697 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16698 soname_spec='$libname${shared_ext}.$major'
16699 shlibpath_var=LD_LIBRARY_PATH
16700 fi
16701 ;;
16702
16703sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16704 version_type=freebsd-elf
16705 need_lib_prefix=no
16706 need_version=no
16707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16708 soname_spec='${libname}${release}${shared_ext}$major'
16709 shlibpath_var=LD_LIBRARY_PATH
16710 shlibpath_overrides_runpath=yes
16711 hardcode_into_libs=yes
16712 if test "$with_gnu_ld" = yes; then
16713 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16714 else
16715 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16716 case $host_os in
16717 sco3.2v5*)
16718 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16719 ;;
16720 esac
16721 fi
16722 sys_lib_dlsearch_path_spec='/usr/lib'
16723 ;;
16724
16725tpf*)
16726 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016727 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016728 need_lib_prefix=no
16729 need_version=no
16730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16731 shlibpath_var=LD_LIBRARY_PATH
16732 shlibpath_overrides_runpath=no
16733 hardcode_into_libs=yes
16734 ;;
16735
16736uts4*)
cristy99bd5232011-12-07 14:38:20 +000016737 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16739 soname_spec='${libname}${release}${shared_ext}$major'
16740 shlibpath_var=LD_LIBRARY_PATH
16741 ;;
16742
16743*)
16744 dynamic_linker=no
16745 ;;
16746esac
16747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16748$as_echo "$dynamic_linker" >&6; }
16749test "$dynamic_linker" = no && can_build_shared=no
16750
16751variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16752if test "$GCC" = yes; then
16753 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16754fi
16755
16756if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16757 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16758fi
16759if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16760 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16761fi
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
cristy0c60a692010-11-04 01:09:47 +000016849
16850
16851
16852
16853
cristy73bd4a52010-10-05 11:24:23 +000016854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16855$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16856hardcode_action=
16857if test -n "$hardcode_libdir_flag_spec" ||
16858 test -n "$runpath_var" ||
16859 test "X$hardcode_automatic" = "Xyes" ; then
16860
16861 # We can hardcode non-existent directories.
16862 if test "$hardcode_direct" != no &&
16863 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16864 # have to relink, otherwise we might link with an installed library
16865 # when we should be linking with a yet-to-be-installed one
16866 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16867 test "$hardcode_minus_L" != no; then
16868 # Linking always hardcodes the temporary library directory.
16869 hardcode_action=relink
16870 else
16871 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16872 hardcode_action=immediate
16873 fi
16874else
16875 # We cannot hardcode anything, or else we can only hardcode existing
16876 # directories.
16877 hardcode_action=unsupported
16878fi
16879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16880$as_echo "$hardcode_action" >&6; }
16881
16882if test "$hardcode_action" = relink ||
16883 test "$inherit_rpath" = yes; then
16884 # Fast installation is not supported
16885 enable_fast_install=no
16886elif test "$shlibpath_overrides_runpath" = yes ||
16887 test "$enable_shared" = no; then
16888 # Fast installation is not necessary
16889 enable_fast_install=needless
16890fi
16891
16892
16893
16894
16895
16896
16897 if test "x$enable_dlopen" != xyes; then
16898 enable_dlopen=unknown
16899 enable_dlopen_self=unknown
16900 enable_dlopen_self_static=unknown
16901else
16902 lt_cv_dlopen=no
16903 lt_cv_dlopen_libs=
16904
16905 case $host_os in
16906 beos*)
16907 lt_cv_dlopen="load_add_on"
16908 lt_cv_dlopen_libs=
16909 lt_cv_dlopen_self=yes
16910 ;;
16911
16912 mingw* | pw32* | cegcc*)
16913 lt_cv_dlopen="LoadLibrary"
16914 lt_cv_dlopen_libs=
16915 ;;
16916
16917 cygwin*)
16918 lt_cv_dlopen="dlopen"
16919 lt_cv_dlopen_libs=
16920 ;;
16921
16922 darwin*)
16923 # if libdl is installed we need to link against it
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16925$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016926if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016927 $as_echo_n "(cached) " >&6
16928else
16929 ac_check_lib_save_LIBS=$LIBS
16930LIBS="-ldl $LIBS"
16931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16932/* end confdefs.h. */
16933
16934/* Override any GCC internal prototype to avoid an error.
16935 Use char because int might match the return type of a GCC
16936 builtin and then its argument prototype would still apply. */
16937#ifdef __cplusplus
16938extern "C"
16939#endif
16940char dlopen ();
16941int
16942main ()
16943{
16944return dlopen ();
16945 ;
16946 return 0;
16947}
16948_ACEOF
16949if ac_fn_c_try_link "$LINENO"; then :
16950 ac_cv_lib_dl_dlopen=yes
16951else
16952 ac_cv_lib_dl_dlopen=no
16953fi
16954rm -f core conftest.err conftest.$ac_objext \
16955 conftest$ac_exeext conftest.$ac_ext
16956LIBS=$ac_check_lib_save_LIBS
16957fi
16958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16959$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016960if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016961 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16962else
16963
16964 lt_cv_dlopen="dyld"
16965 lt_cv_dlopen_libs=
16966 lt_cv_dlopen_self=yes
16967
16968fi
16969
16970 ;;
16971
16972 *)
16973 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016974if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016975 lt_cv_dlopen="shl_load"
16976else
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16978$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016979if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016980 $as_echo_n "(cached) " >&6
16981else
16982 ac_check_lib_save_LIBS=$LIBS
16983LIBS="-ldld $LIBS"
16984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16985/* end confdefs.h. */
16986
16987/* Override any GCC internal prototype to avoid an error.
16988 Use char because int might match the return type of a GCC
16989 builtin and then its argument prototype would still apply. */
16990#ifdef __cplusplus
16991extern "C"
16992#endif
16993char shl_load ();
16994int
16995main ()
16996{
16997return shl_load ();
16998 ;
16999 return 0;
17000}
17001_ACEOF
17002if ac_fn_c_try_link "$LINENO"; then :
17003 ac_cv_lib_dld_shl_load=yes
17004else
17005 ac_cv_lib_dld_shl_load=no
17006fi
17007rm -f core conftest.err conftest.$ac_objext \
17008 conftest$ac_exeext conftest.$ac_ext
17009LIBS=$ac_check_lib_save_LIBS
17010fi
17011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17012$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017013if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017014 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17015else
17016 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017017if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017018 lt_cv_dlopen="dlopen"
17019else
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17021$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017022if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017023 $as_echo_n "(cached) " >&6
17024else
17025 ac_check_lib_save_LIBS=$LIBS
17026LIBS="-ldl $LIBS"
17027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17028/* end confdefs.h. */
17029
17030/* Override any GCC internal prototype to avoid an error.
17031 Use char because int might match the return type of a GCC
17032 builtin and then its argument prototype would still apply. */
17033#ifdef __cplusplus
17034extern "C"
17035#endif
17036char dlopen ();
17037int
17038main ()
17039{
17040return dlopen ();
17041 ;
17042 return 0;
17043}
17044_ACEOF
17045if ac_fn_c_try_link "$LINENO"; then :
17046 ac_cv_lib_dl_dlopen=yes
17047else
17048 ac_cv_lib_dl_dlopen=no
17049fi
17050rm -f core conftest.err conftest.$ac_objext \
17051 conftest$ac_exeext conftest.$ac_ext
17052LIBS=$ac_check_lib_save_LIBS
17053fi
17054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17055$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017056if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017057 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17058else
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17060$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017061if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017062 $as_echo_n "(cached) " >&6
17063else
17064 ac_check_lib_save_LIBS=$LIBS
17065LIBS="-lsvld $LIBS"
17066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17067/* end confdefs.h. */
17068
17069/* Override any GCC internal prototype to avoid an error.
17070 Use char because int might match the return type of a GCC
17071 builtin and then its argument prototype would still apply. */
17072#ifdef __cplusplus
17073extern "C"
17074#endif
17075char dlopen ();
17076int
17077main ()
17078{
17079return dlopen ();
17080 ;
17081 return 0;
17082}
17083_ACEOF
17084if ac_fn_c_try_link "$LINENO"; then :
17085 ac_cv_lib_svld_dlopen=yes
17086else
17087 ac_cv_lib_svld_dlopen=no
17088fi
17089rm -f core conftest.err conftest.$ac_objext \
17090 conftest$ac_exeext conftest.$ac_ext
17091LIBS=$ac_check_lib_save_LIBS
17092fi
17093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17094$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017095if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017096 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17097else
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17099$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017100if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017101 $as_echo_n "(cached) " >&6
17102else
17103 ac_check_lib_save_LIBS=$LIBS
17104LIBS="-ldld $LIBS"
17105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17106/* end confdefs.h. */
17107
17108/* Override any GCC internal prototype to avoid an error.
17109 Use char because int might match the return type of a GCC
17110 builtin and then its argument prototype would still apply. */
17111#ifdef __cplusplus
17112extern "C"
17113#endif
17114char dld_link ();
17115int
17116main ()
17117{
17118return dld_link ();
17119 ;
17120 return 0;
17121}
17122_ACEOF
17123if ac_fn_c_try_link "$LINENO"; then :
17124 ac_cv_lib_dld_dld_link=yes
17125else
17126 ac_cv_lib_dld_dld_link=no
17127fi
17128rm -f core conftest.err conftest.$ac_objext \
17129 conftest$ac_exeext conftest.$ac_ext
17130LIBS=$ac_check_lib_save_LIBS
17131fi
17132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17133$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017134if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017135 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17136fi
17137
17138
17139fi
17140
17141
17142fi
17143
17144
17145fi
17146
17147
17148fi
17149
17150
17151fi
17152
17153 ;;
17154 esac
17155
17156 if test "x$lt_cv_dlopen" != xno; then
17157 enable_dlopen=yes
17158 else
17159 enable_dlopen=no
17160 fi
17161
17162 case $lt_cv_dlopen in
17163 dlopen)
17164 save_CPPFLAGS="$CPPFLAGS"
17165 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17166
17167 save_LDFLAGS="$LDFLAGS"
17168 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17169
17170 save_LIBS="$LIBS"
17171 LIBS="$lt_cv_dlopen_libs $LIBS"
17172
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17174$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017175if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017176 $as_echo_n "(cached) " >&6
17177else
17178 if test "$cross_compiling" = yes; then :
17179 lt_cv_dlopen_self=cross
17180else
17181 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17182 lt_status=$lt_dlunknown
17183 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017184#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017185#include "confdefs.h"
17186
17187#if HAVE_DLFCN_H
17188#include <dlfcn.h>
17189#endif
17190
17191#include <stdio.h>
17192
17193#ifdef RTLD_GLOBAL
17194# define LT_DLGLOBAL RTLD_GLOBAL
17195#else
17196# ifdef DL_GLOBAL
17197# define LT_DLGLOBAL DL_GLOBAL
17198# else
17199# define LT_DLGLOBAL 0
17200# endif
17201#endif
17202
17203/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17204 find out it does not work in some platform. */
17205#ifndef LT_DLLAZY_OR_NOW
17206# ifdef RTLD_LAZY
17207# define LT_DLLAZY_OR_NOW RTLD_LAZY
17208# else
17209# ifdef DL_LAZY
17210# define LT_DLLAZY_OR_NOW DL_LAZY
17211# else
17212# ifdef RTLD_NOW
17213# define LT_DLLAZY_OR_NOW RTLD_NOW
17214# else
17215# ifdef DL_NOW
17216# define LT_DLLAZY_OR_NOW DL_NOW
17217# else
17218# define LT_DLLAZY_OR_NOW 0
17219# endif
17220# endif
17221# endif
17222# endif
17223#endif
17224
cristy0c60a692010-11-04 01:09:47 +000017225/* When -fvisbility=hidden is used, assume the code has been annotated
17226 correspondingly for the symbols needed. */
17227#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017228int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017229#endif
17230
cristyda16f162011-02-19 23:52:17 +000017231int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017232int main ()
17233{
17234 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17235 int status = $lt_dlunknown;
17236
17237 if (self)
17238 {
17239 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017240 else
17241 {
17242 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17243 else puts (dlerror ());
17244 }
cristy73bd4a52010-10-05 11:24:23 +000017245 /* dlclose (self); */
17246 }
17247 else
17248 puts (dlerror ());
17249
17250 return status;
17251}
17252_LT_EOF
17253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17254 (eval $ac_link) 2>&5
17255 ac_status=$?
17256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17257 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17258 (./conftest; exit; ) >&5 2>/dev/null
17259 lt_status=$?
17260 case x$lt_status in
17261 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17262 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17263 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17264 esac
17265 else :
17266 # compilation failed
17267 lt_cv_dlopen_self=no
17268 fi
17269fi
17270rm -fr conftest*
17271
17272
17273fi
17274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17275$as_echo "$lt_cv_dlopen_self" >&6; }
17276
17277 if test "x$lt_cv_dlopen_self" = xyes; then
17278 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17280$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017281if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017282 $as_echo_n "(cached) " >&6
17283else
17284 if test "$cross_compiling" = yes; then :
17285 lt_cv_dlopen_self_static=cross
17286else
17287 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17288 lt_status=$lt_dlunknown
17289 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017290#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017291#include "confdefs.h"
17292
17293#if HAVE_DLFCN_H
17294#include <dlfcn.h>
17295#endif
17296
17297#include <stdio.h>
17298
17299#ifdef RTLD_GLOBAL
17300# define LT_DLGLOBAL RTLD_GLOBAL
17301#else
17302# ifdef DL_GLOBAL
17303# define LT_DLGLOBAL DL_GLOBAL
17304# else
17305# define LT_DLGLOBAL 0
17306# endif
17307#endif
17308
17309/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17310 find out it does not work in some platform. */
17311#ifndef LT_DLLAZY_OR_NOW
17312# ifdef RTLD_LAZY
17313# define LT_DLLAZY_OR_NOW RTLD_LAZY
17314# else
17315# ifdef DL_LAZY
17316# define LT_DLLAZY_OR_NOW DL_LAZY
17317# else
17318# ifdef RTLD_NOW
17319# define LT_DLLAZY_OR_NOW RTLD_NOW
17320# else
17321# ifdef DL_NOW
17322# define LT_DLLAZY_OR_NOW DL_NOW
17323# else
17324# define LT_DLLAZY_OR_NOW 0
17325# endif
17326# endif
17327# endif
17328# endif
17329#endif
17330
cristy0c60a692010-11-04 01:09:47 +000017331/* When -fvisbility=hidden is used, assume the code has been annotated
17332 correspondingly for the symbols needed. */
17333#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017334int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017335#endif
17336
cristyda16f162011-02-19 23:52:17 +000017337int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017338int main ()
17339{
17340 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17341 int status = $lt_dlunknown;
17342
17343 if (self)
17344 {
17345 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017346 else
17347 {
17348 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17349 else puts (dlerror ());
17350 }
cristy73bd4a52010-10-05 11:24:23 +000017351 /* dlclose (self); */
17352 }
17353 else
17354 puts (dlerror ());
17355
17356 return status;
17357}
17358_LT_EOF
17359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17360 (eval $ac_link) 2>&5
17361 ac_status=$?
17362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17363 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17364 (./conftest; exit; ) >&5 2>/dev/null
17365 lt_status=$?
17366 case x$lt_status in
17367 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17368 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17369 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17370 esac
17371 else :
17372 # compilation failed
17373 lt_cv_dlopen_self_static=no
17374 fi
17375fi
17376rm -fr conftest*
17377
17378
17379fi
17380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17381$as_echo "$lt_cv_dlopen_self_static" >&6; }
17382 fi
17383
17384 CPPFLAGS="$save_CPPFLAGS"
17385 LDFLAGS="$save_LDFLAGS"
17386 LIBS="$save_LIBS"
17387 ;;
17388 esac
17389
17390 case $lt_cv_dlopen_self in
17391 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17392 *) enable_dlopen_self=unknown ;;
17393 esac
17394
17395 case $lt_cv_dlopen_self_static in
17396 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17397 *) enable_dlopen_self_static=unknown ;;
17398 esac
17399fi
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417striplib=
17418old_striplib=
17419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17420$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17421if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17422 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17423 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17425$as_echo "yes" >&6; }
17426else
17427# FIXME - insert some real tests, host_os isn't really good enough
17428 case $host_os in
17429 darwin*)
17430 if test -n "$STRIP" ; then
17431 striplib="$STRIP -x"
17432 old_striplib="$STRIP -S"
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17434$as_echo "yes" >&6; }
17435 else
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17437$as_echo "no" >&6; }
17438 fi
17439 ;;
17440 *)
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17442$as_echo "no" >&6; }
17443 ;;
17444 esac
17445fi
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458 # Report which library types will actually be built
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17460$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17462$as_echo "$can_build_shared" >&6; }
17463
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17465$as_echo_n "checking whether to build shared libraries... " >&6; }
17466 test "$can_build_shared" = "no" && enable_shared=no
17467
17468 # On AIX, shared libraries and static libraries use the same namespace, and
17469 # are all built from PIC.
17470 case $host_os in
17471 aix3*)
17472 test "$enable_shared" = yes && enable_static=no
17473 if test -n "$RANLIB"; then
17474 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17475 postinstall_cmds='$RANLIB $lib'
17476 fi
17477 ;;
17478
17479 aix[4-9]*)
17480 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17481 test "$enable_shared" = yes && enable_static=no
17482 fi
17483 ;;
17484 esac
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17486$as_echo "$enable_shared" >&6; }
17487
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17489$as_echo_n "checking whether to build static libraries... " >&6; }
17490 # Make sure either enable_shared or enable_static is yes.
17491 test "$enable_shared" = yes || enable_static=yes
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17493$as_echo "$enable_static" >&6; }
17494
17495
17496
17497
17498fi
17499ac_ext=c
17500ac_cpp='$CPP $CPPFLAGS'
17501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17503ac_compiler_gnu=$ac_cv_c_compiler_gnu
17504
17505CC="$lt_save_CC"
17506
cristy0c60a692010-11-04 01:09:47 +000017507 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17508 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17509 (test "X$CXX" != "Xg++"))) ; then
17510 ac_ext=cpp
17511ac_cpp='$CXXCPP $CPPFLAGS'
17512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17516$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17517if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017518 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017519 $as_echo_n "(cached) " >&6
17520else
17521 # Double quotes because CXXCPP needs to be expanded
17522 for CXXCPP in "$CXX -E" "/lib/cpp"
17523 do
17524 ac_preproc_ok=false
17525for ac_cxx_preproc_warn_flag in '' yes
17526do
17527 # Use a header file that comes with gcc, so configuring glibc
17528 # with a fresh cross-compiler works.
17529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17530 # <limits.h> exists even on freestanding compilers.
17531 # On the NeXT, cc -E runs the code through the compiler's parser,
17532 # not just through cpp. "Syntax error" is here to catch this case.
17533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17534/* end confdefs.h. */
17535#ifdef __STDC__
17536# include <limits.h>
17537#else
17538# include <assert.h>
17539#endif
17540 Syntax error
17541_ACEOF
17542if ac_fn_cxx_try_cpp "$LINENO"; then :
17543
17544else
17545 # Broken: fails on valid input.
17546continue
17547fi
cristyda16f162011-02-19 23:52:17 +000017548rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017549
17550 # OK, works on sane cases. Now check whether nonexistent headers
17551 # can be detected and how.
17552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17553/* end confdefs.h. */
17554#include <ac_nonexistent.h>
17555_ACEOF
17556if ac_fn_cxx_try_cpp "$LINENO"; then :
17557 # Broken: success on invalid input.
17558continue
17559else
17560 # Passes both tests.
17561ac_preproc_ok=:
17562break
17563fi
cristyda16f162011-02-19 23:52:17 +000017564rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017565
17566done
17567# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017568rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017569if $ac_preproc_ok; then :
17570 break
17571fi
17572
17573 done
17574 ac_cv_prog_CXXCPP=$CXXCPP
17575
17576fi
17577 CXXCPP=$ac_cv_prog_CXXCPP
17578else
17579 ac_cv_prog_CXXCPP=$CXXCPP
17580fi
17581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17582$as_echo "$CXXCPP" >&6; }
17583ac_preproc_ok=false
17584for ac_cxx_preproc_warn_flag in '' yes
17585do
17586 # Use a header file that comes with gcc, so configuring glibc
17587 # with a fresh cross-compiler works.
17588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17589 # <limits.h> exists even on freestanding compilers.
17590 # On the NeXT, cc -E runs the code through the compiler's parser,
17591 # not just through cpp. "Syntax error" is here to catch this case.
17592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17593/* end confdefs.h. */
17594#ifdef __STDC__
17595# include <limits.h>
17596#else
17597# include <assert.h>
17598#endif
17599 Syntax error
17600_ACEOF
17601if ac_fn_cxx_try_cpp "$LINENO"; then :
17602
17603else
17604 # Broken: fails on valid input.
17605continue
17606fi
cristyda16f162011-02-19 23:52:17 +000017607rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017608
17609 # OK, works on sane cases. Now check whether nonexistent headers
17610 # can be detected and how.
17611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612/* end confdefs.h. */
17613#include <ac_nonexistent.h>
17614_ACEOF
17615if ac_fn_cxx_try_cpp "$LINENO"; then :
17616 # Broken: success on invalid input.
17617continue
17618else
17619 # Passes both tests.
17620ac_preproc_ok=:
17621break
17622fi
cristyda16f162011-02-19 23:52:17 +000017623rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017624
17625done
17626# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017627rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017628if $ac_preproc_ok; then :
17629
17630else
17631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17633as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17634See \`config.log' for more details" "$LINENO" 5; }
17635fi
17636
17637ac_ext=c
17638ac_cpp='$CPP $CPPFLAGS'
17639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17641ac_compiler_gnu=$ac_cv_c_compiler_gnu
17642
17643else
17644 _lt_caught_CXX_error=yes
17645fi
cristy73bd4a52010-10-05 11:24:23 +000017646
17647ac_ext=cpp
17648ac_cpp='$CXXCPP $CPPFLAGS'
17649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17652
17653archive_cmds_need_lc_CXX=no
17654allow_undefined_flag_CXX=
17655always_export_symbols_CXX=no
17656archive_expsym_cmds_CXX=
17657compiler_needs_object_CXX=no
17658export_dynamic_flag_spec_CXX=
17659hardcode_direct_CXX=no
17660hardcode_direct_absolute_CXX=no
17661hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017662hardcode_libdir_separator_CXX=
17663hardcode_minus_L_CXX=no
17664hardcode_shlibpath_var_CXX=unsupported
17665hardcode_automatic_CXX=no
17666inherit_rpath_CXX=no
17667module_cmds_CXX=
17668module_expsym_cmds_CXX=
17669link_all_deplibs_CXX=unknown
17670old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017671reload_flag_CXX=$reload_flag
17672reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017673no_undefined_flag_CXX=
17674whole_archive_flag_spec_CXX=
17675enable_shared_with_static_runtimes_CXX=no
17676
17677# Source file extension for C++ test sources.
17678ac_ext=cpp
17679
17680# Object file extension for compiled C++ test sources.
17681objext=o
17682objext_CXX=$objext
17683
17684# No sense in running all these tests if we already determined that
17685# the CXX compiler isn't working. Some variables (like enable_shared)
17686# are currently assumed to apply to all compilers on this platform,
17687# and will be corrupted by setting them based on a non-working compiler.
17688if test "$_lt_caught_CXX_error" != yes; then
17689 # Code to be used in simple compile tests
17690 lt_simple_compile_test_code="int some_variable = 0;"
17691
17692 # Code to be used in simple link tests
17693 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17694
17695 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17696
17697
17698
17699
17700
17701
17702# If no C compiler was specified, use CC.
17703LTCC=${LTCC-"$CC"}
17704
17705# If no C compiler flags were specified, use CFLAGS.
17706LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17707
17708# Allow CC to be a program name with arguments.
17709compiler=$CC
17710
17711
17712 # save warnings/boilerplate of simple test code
17713 ac_outfile=conftest.$ac_objext
17714echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17715eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17716_lt_compiler_boilerplate=`cat conftest.err`
17717$RM conftest*
17718
17719 ac_outfile=conftest.$ac_objext
17720echo "$lt_simple_link_test_code" >conftest.$ac_ext
17721eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17722_lt_linker_boilerplate=`cat conftest.err`
17723$RM -r conftest*
17724
17725
17726 # Allow CC to be a program name with arguments.
17727 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017728 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017729 lt_save_LD=$LD
17730 lt_save_GCC=$GCC
17731 GCC=$GXX
17732 lt_save_with_gnu_ld=$with_gnu_ld
17733 lt_save_path_LD=$lt_cv_path_LD
17734 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17735 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17736 else
17737 $as_unset lt_cv_prog_gnu_ld
17738 fi
17739 if test -n "${lt_cv_path_LDCXX+set}"; then
17740 lt_cv_path_LD=$lt_cv_path_LDCXX
17741 else
17742 $as_unset lt_cv_path_LD
17743 fi
17744 test -z "${LDCXX+set}" || LD=$LDCXX
17745 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017746 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017747 compiler=$CC
17748 compiler_CXX=$CC
17749 for cc_temp in $compiler""; do
17750 case $cc_temp in
17751 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17752 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17753 \-*) ;;
17754 *) break;;
17755 esac
17756done
cristy0c60a692010-11-04 01:09:47 +000017757cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017758
17759
17760 if test -n "$compiler"; then
17761 # We don't want -fno-exception when compiling C++ code, so set the
17762 # no_builtin_flag separately
17763 if test "$GXX" = yes; then
17764 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17765 else
17766 lt_prog_compiler_no_builtin_flag_CXX=
17767 fi
17768
17769 if test "$GXX" = yes; then
17770 # Set up default GNU C++ configuration
17771
17772
17773
17774# Check whether --with-gnu-ld was given.
17775if test "${with_gnu_ld+set}" = set; then :
17776 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17777else
17778 with_gnu_ld=no
17779fi
17780
17781ac_prog=ld
17782if test "$GCC" = yes; then
17783 # Check if gcc -print-prog-name=ld gives a path.
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17785$as_echo_n "checking for ld used by $CC... " >&6; }
17786 case $host in
17787 *-*-mingw*)
17788 # gcc leaves a trailing carriage return which upsets mingw
17789 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17790 *)
17791 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17792 esac
17793 case $ac_prog in
17794 # Accept absolute paths.
17795 [\\/]* | ?:[\\/]*)
17796 re_direlt='/[^/][^/]*/\.\./'
17797 # Canonicalize the pathname of ld
17798 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17799 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17800 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17801 done
17802 test -z "$LD" && LD="$ac_prog"
17803 ;;
17804 "")
17805 # If it fails, then pretend we aren't using GCC.
17806 ac_prog=ld
17807 ;;
17808 *)
17809 # If it is relative, then search for the first ld in PATH.
17810 with_gnu_ld=unknown
17811 ;;
17812 esac
17813elif test "$with_gnu_ld" = yes; then
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17815$as_echo_n "checking for GNU ld... " >&6; }
17816else
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17818$as_echo_n "checking for non-GNU ld... " >&6; }
17819fi
cristyda16f162011-02-19 23:52:17 +000017820if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017821 $as_echo_n "(cached) " >&6
17822else
17823 if test -z "$LD"; then
17824 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17825 for ac_dir in $PATH; do
17826 IFS="$lt_save_ifs"
17827 test -z "$ac_dir" && ac_dir=.
17828 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17829 lt_cv_path_LD="$ac_dir/$ac_prog"
17830 # Check to see if the program is GNU ld. I'd rather use --version,
17831 # but apparently some variants of GNU ld only accept -v.
17832 # Break only if it was the GNU/non-GNU ld that we prefer.
17833 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17834 *GNU* | *'with BFD'*)
17835 test "$with_gnu_ld" != no && break
17836 ;;
17837 *)
17838 test "$with_gnu_ld" != yes && break
17839 ;;
17840 esac
17841 fi
17842 done
17843 IFS="$lt_save_ifs"
17844else
17845 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17846fi
17847fi
17848
17849LD="$lt_cv_path_LD"
17850if test -n "$LD"; then
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17852$as_echo "$LD" >&6; }
17853else
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17855$as_echo "no" >&6; }
17856fi
cristy98dddb52010-11-04 00:30:15 +000017857test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17859$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017860if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017861 $as_echo_n "(cached) " >&6
17862else
17863 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17864case `$LD -v 2>&1 </dev/null` in
17865*GNU* | *'with BFD'*)
17866 lt_cv_prog_gnu_ld=yes
17867 ;;
17868*)
17869 lt_cv_prog_gnu_ld=no
17870 ;;
17871esac
17872fi
17873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17874$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17875with_gnu_ld=$lt_cv_prog_gnu_ld
17876
17877
17878
17879
17880
17881
17882
17883 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17884 # archiving commands below assume that GNU ld is being used.
17885 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017886 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17887 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 +000017888
17889 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17890 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17891
17892 # If archive_cmds runs LD, not CC, wlarc should be empty
17893 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17894 # investigate it a little bit more. (MM)
17895 wlarc='${wl}'
17896
17897 # ancient GNU ld didn't support --whole-archive et. al.
17898 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17899 $GREP 'no-whole-archive' > /dev/null; then
17900 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17901 else
17902 whole_archive_flag_spec_CXX=
17903 fi
17904 else
17905 with_gnu_ld=no
17906 wlarc=
17907
17908 # A generic and very simple default shared library creation
17909 # command for GNU C++ for the case where it uses the native
17910 # linker, instead of GNU ld. If possible, this setting should
17911 # overridden to take advantage of the native linker features on
17912 # the platform it is being used on.
17913 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17914 fi
17915
17916 # Commands to make compiler produce verbose output that lists
17917 # what "hidden" libraries, object files and flags are used when
17918 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017919 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017920
17921 else
17922 GXX=no
17923 with_gnu_ld=no
17924 wlarc=
17925 fi
17926
17927 # PORTME: fill in a description of your system's C++ link characteristics
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17929$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17930 ld_shlibs_CXX=yes
17931 case $host_os in
17932 aix3*)
17933 # FIXME: insert proper C++ library support
17934 ld_shlibs_CXX=no
17935 ;;
17936 aix[4-9]*)
17937 if test "$host_cpu" = ia64; then
17938 # On IA64, the linker does run time linking by default, so we don't
17939 # have to do anything special.
17940 aix_use_runtimelinking=no
17941 exp_sym_flag='-Bexport'
17942 no_entry_flag=""
17943 else
17944 aix_use_runtimelinking=no
17945
17946 # Test if we are trying to use run time linking or normal
17947 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17948 # need to do runtime linking.
17949 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17950 for ld_flag in $LDFLAGS; do
17951 case $ld_flag in
17952 *-brtl*)
17953 aix_use_runtimelinking=yes
17954 break
17955 ;;
17956 esac
17957 done
17958 ;;
17959 esac
17960
17961 exp_sym_flag='-bexport'
17962 no_entry_flag='-bnoentry'
17963 fi
17964
17965 # When large executables or shared objects are built, AIX ld can
17966 # have problems creating the table of contents. If linking a library
17967 # or program results in "error TOC overflow" add -mminimal-toc to
17968 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17969 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17970
17971 archive_cmds_CXX=''
17972 hardcode_direct_CXX=yes
17973 hardcode_direct_absolute_CXX=yes
17974 hardcode_libdir_separator_CXX=':'
17975 link_all_deplibs_CXX=yes
17976 file_list_spec_CXX='${wl}-f,'
17977
17978 if test "$GXX" = yes; then
17979 case $host_os in aix4.[012]|aix4.[012].*)
17980 # We only want to do this on AIX 4.2 and lower, the check
17981 # below for broken collect2 doesn't work under 4.3+
17982 collect2name=`${CC} -print-prog-name=collect2`
17983 if test -f "$collect2name" &&
17984 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17985 then
17986 # We have reworked collect2
17987 :
17988 else
17989 # We have old collect2
17990 hardcode_direct_CXX=unsupported
17991 # It fails to find uninstalled libraries when the uninstalled
17992 # path is not listed in the libpath. Setting hardcode_minus_L
17993 # to unsupported forces relinking
17994 hardcode_minus_L_CXX=yes
17995 hardcode_libdir_flag_spec_CXX='-L$libdir'
17996 hardcode_libdir_separator_CXX=
17997 fi
17998 esac
17999 shared_flag='-shared'
18000 if test "$aix_use_runtimelinking" = yes; then
18001 shared_flag="$shared_flag "'${wl}-G'
18002 fi
18003 else
18004 # not using gcc
18005 if test "$host_cpu" = ia64; then
18006 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18007 # chokes on -Wl,-G. The following line is correct:
18008 shared_flag='-G'
18009 else
18010 if test "$aix_use_runtimelinking" = yes; then
18011 shared_flag='${wl}-G'
18012 else
18013 shared_flag='${wl}-bM:SRE'
18014 fi
18015 fi
18016 fi
18017
18018 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18019 # It seems that -bexpall does not export symbols beginning with
18020 # underscore (_), so it is better to generate a list of symbols to
18021 # export.
18022 always_export_symbols_CXX=yes
18023 if test "$aix_use_runtimelinking" = yes; then
18024 # Warning - without using the other runtime loading flags (-brtl),
18025 # -berok will link without error, but may produce a broken library.
18026 allow_undefined_flag_CXX='-berok'
18027 # Determine the default libpath from the value encoded in an empty
18028 # executable.
cristyda16f162011-02-19 23:52:17 +000018029 if test "${lt_cv_aix_libpath+set}" = set; then
18030 aix_libpath=$lt_cv_aix_libpath
18031else
18032 if ${lt_cv_aix_libpath__CXX+:} false; then :
18033 $as_echo_n "(cached) " >&6
18034else
18035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018036/* end confdefs.h. */
18037
18038int
18039main ()
18040{
18041
18042 ;
18043 return 0;
18044}
18045_ACEOF
18046if ac_fn_cxx_try_link "$LINENO"; then :
18047
cristyda16f162011-02-19 23:52:17 +000018048 lt_aix_libpath_sed='
18049 /Import File Strings/,/^$/ {
18050 /^0/ {
18051 s/^0 *\([^ ]*\) *$/\1/
18052 p
18053 }
18054 }'
18055 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18056 # Check for a 64-bit object if we didn't find anything.
18057 if test -z "$lt_cv_aix_libpath__CXX"; then
18058 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18059 fi
cristy73bd4a52010-10-05 11:24:23 +000018060fi
18061rm -f core conftest.err conftest.$ac_objext \
18062 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018063 if test -z "$lt_cv_aix_libpath__CXX"; then
18064 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18065 fi
18066
18067fi
18068
18069 aix_libpath=$lt_cv_aix_libpath__CXX
18070fi
cristy73bd4a52010-10-05 11:24:23 +000018071
18072 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18073
cristy0c60a692010-11-04 01:09:47 +000018074 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 +000018075 else
18076 if test "$host_cpu" = ia64; then
18077 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18078 allow_undefined_flag_CXX="-z nodefs"
18079 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"
18080 else
18081 # Determine the default libpath from the value encoded in an
18082 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018083 if test "${lt_cv_aix_libpath+set}" = set; then
18084 aix_libpath=$lt_cv_aix_libpath
18085else
18086 if ${lt_cv_aix_libpath__CXX+:} false; then :
18087 $as_echo_n "(cached) " >&6
18088else
18089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018090/* end confdefs.h. */
18091
18092int
18093main ()
18094{
18095
18096 ;
18097 return 0;
18098}
18099_ACEOF
18100if ac_fn_cxx_try_link "$LINENO"; then :
18101
cristyda16f162011-02-19 23:52:17 +000018102 lt_aix_libpath_sed='
18103 /Import File Strings/,/^$/ {
18104 /^0/ {
18105 s/^0 *\([^ ]*\) *$/\1/
18106 p
18107 }
18108 }'
18109 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18110 # Check for a 64-bit object if we didn't find anything.
18111 if test -z "$lt_cv_aix_libpath__CXX"; then
18112 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18113 fi
cristy73bd4a52010-10-05 11:24:23 +000018114fi
18115rm -f core conftest.err conftest.$ac_objext \
18116 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018117 if test -z "$lt_cv_aix_libpath__CXX"; then
18118 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18119 fi
18120
18121fi
18122
18123 aix_libpath=$lt_cv_aix_libpath__CXX
18124fi
cristy73bd4a52010-10-05 11:24:23 +000018125
18126 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18127 # Warning - without using the other run time loading flags,
18128 # -berok will link without error, but may produce a broken library.
18129 no_undefined_flag_CXX=' ${wl}-bernotok'
18130 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018131 if test "$with_gnu_ld" = yes; then
18132 # We only use this code for GNU lds that support --whole-archive.
18133 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18134 else
18135 # Exported symbols can be pulled into shared objects from archives
18136 whole_archive_flag_spec_CXX='$convenience'
18137 fi
cristy73bd4a52010-10-05 11:24:23 +000018138 archive_cmds_need_lc_CXX=yes
18139 # This is similar to how AIX traditionally builds its shared
18140 # libraries.
18141 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'
18142 fi
18143 fi
18144 ;;
18145
18146 beos*)
18147 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18148 allow_undefined_flag_CXX=unsupported
18149 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18150 # support --undefined. This deserves some investigation. FIXME
18151 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18152 else
18153 ld_shlibs_CXX=no
18154 fi
18155 ;;
18156
18157 chorus*)
18158 case $cc_basename in
18159 *)
18160 # FIXME: insert proper C++ library support
18161 ld_shlibs_CXX=no
18162 ;;
18163 esac
18164 ;;
18165
18166 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018167 case $GXX,$cc_basename in
18168 ,cl* | no,cl*)
18169 # Native MSVC
18170 # hardcode_libdir_flag_spec is actually meaningless, as there is
18171 # no search path for DLLs.
18172 hardcode_libdir_flag_spec_CXX=' '
18173 allow_undefined_flag_CXX=unsupported
18174 always_export_symbols_CXX=yes
18175 file_list_spec_CXX='@'
18176 # Tell ltmain to make .lib files, not .a files.
18177 libext=lib
18178 # Tell ltmain to make .dll files, not .so files.
18179 shrext_cmds=".dll"
18180 # FIXME: Setting linknames here is a bad hack.
18181 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18182 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18183 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18184 else
18185 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18186 fi~
18187 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18188 linknames='
18189 # The linker will not automatically build a static lib if we build a DLL.
18190 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18191 enable_shared_with_static_runtimes_CXX=yes
18192 # Don't use ranlib
18193 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18194 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18195 lt_tool_outputfile="@TOOL_OUTPUT@"~
18196 case $lt_outputfile in
18197 *.exe|*.EXE) ;;
18198 *)
18199 lt_outputfile="$lt_outputfile.exe"
18200 lt_tool_outputfile="$lt_tool_outputfile.exe"
18201 ;;
18202 esac~
18203 func_to_tool_file "$lt_outputfile"~
18204 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18205 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18206 $RM "$lt_outputfile.manifest";
18207 fi'
18208 ;;
18209 *)
18210 # g++
18211 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18212 # as there is no search path for DLLs.
18213 hardcode_libdir_flag_spec_CXX='-L$libdir'
18214 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18215 allow_undefined_flag_CXX=unsupported
18216 always_export_symbols_CXX=no
18217 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018218
cristyda16f162011-02-19 23:52:17 +000018219 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18220 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'
18221 # If the export-symbols file already is a .def file (1st line
18222 # is EXPORTS), use it as is; otherwise, prepend...
18223 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18224 cp $export_symbols $output_objdir/$soname.def;
18225 else
18226 echo EXPORTS > $output_objdir/$soname.def;
18227 cat $export_symbols >> $output_objdir/$soname.def;
18228 fi~
18229 $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'
18230 else
18231 ld_shlibs_CXX=no
18232 fi
18233 ;;
18234 esac
18235 ;;
cristy73bd4a52010-10-05 11:24:23 +000018236 darwin* | rhapsody*)
18237
18238
18239 archive_cmds_need_lc_CXX=no
18240 hardcode_direct_CXX=no
18241 hardcode_automatic_CXX=yes
18242 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018243 if test "$lt_cv_ld_force_load" = "yes"; then
18244 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 +000018245
cristy0c60a692010-11-04 01:09:47 +000018246 else
18247 whole_archive_flag_spec_CXX=''
18248 fi
cristy73bd4a52010-10-05 11:24:23 +000018249 link_all_deplibs_CXX=yes
18250 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18251 case $cc_basename in
18252 ifort*) _lt_dar_can_shared=yes ;;
18253 *) _lt_dar_can_shared=$GCC ;;
18254 esac
18255 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018256 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018257 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}"
18258 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18259 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}"
18260 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}"
18261 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18262 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}"
18263 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}"
18264 fi
18265
18266 else
18267 ld_shlibs_CXX=no
18268 fi
18269
18270 ;;
18271
18272 dgux*)
18273 case $cc_basename in
18274 ec++*)
18275 # FIXME: insert proper C++ library support
18276 ld_shlibs_CXX=no
18277 ;;
18278 ghcx*)
18279 # Green Hills C++ Compiler
18280 # FIXME: insert proper C++ library support
18281 ld_shlibs_CXX=no
18282 ;;
18283 *)
18284 # FIXME: insert proper C++ library support
18285 ld_shlibs_CXX=no
18286 ;;
18287 esac
18288 ;;
18289
cristy99bd5232011-12-07 14:38:20 +000018290 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018291 # C++ shared libraries reported to be fairly broken before
18292 # switch to ELF
18293 ld_shlibs_CXX=no
18294 ;;
18295
18296 freebsd-elf*)
18297 archive_cmds_need_lc_CXX=no
18298 ;;
18299
18300 freebsd* | dragonfly*)
18301 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18302 # conventions
18303 ld_shlibs_CXX=yes
18304 ;;
18305
18306 gnu*)
18307 ;;
18308
cristy0c60a692010-11-04 01:09:47 +000018309 haiku*)
18310 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18311 link_all_deplibs_CXX=yes
18312 ;;
18313
cristy73bd4a52010-10-05 11:24:23 +000018314 hpux9*)
18315 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18316 hardcode_libdir_separator_CXX=:
18317 export_dynamic_flag_spec_CXX='${wl}-E'
18318 hardcode_direct_CXX=yes
18319 hardcode_minus_L_CXX=yes # Not in the search PATH,
18320 # but as the default
18321 # location of the library.
18322
18323 case $cc_basename in
18324 CC*)
18325 # FIXME: insert proper C++ library support
18326 ld_shlibs_CXX=no
18327 ;;
18328 aCC*)
18329 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'
18330 # Commands to make compiler produce verbose output that lists
18331 # what "hidden" libraries, object files and flags are used when
18332 # linking a shared library.
18333 #
18334 # There doesn't appear to be a way to prevent this compiler from
18335 # explicitly linking system object files so we need to strip them
18336 # from the output so that they don't get included in the library
18337 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018338 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 +000018339 ;;
18340 *)
18341 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018342 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 +000018343 else
18344 # FIXME: insert proper C++ library support
18345 ld_shlibs_CXX=no
18346 fi
18347 ;;
18348 esac
18349 ;;
18350
18351 hpux10*|hpux11*)
18352 if test $with_gnu_ld = no; then
18353 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18354 hardcode_libdir_separator_CXX=:
18355
18356 case $host_cpu in
18357 hppa*64*|ia64*)
18358 ;;
18359 *)
18360 export_dynamic_flag_spec_CXX='${wl}-E'
18361 ;;
18362 esac
18363 fi
18364 case $host_cpu in
18365 hppa*64*|ia64*)
18366 hardcode_direct_CXX=no
18367 hardcode_shlibpath_var_CXX=no
18368 ;;
18369 *)
18370 hardcode_direct_CXX=yes
18371 hardcode_direct_absolute_CXX=yes
18372 hardcode_minus_L_CXX=yes # Not in the search PATH,
18373 # but as the default
18374 # location of the library.
18375 ;;
18376 esac
18377
18378 case $cc_basename in
18379 CC*)
18380 # FIXME: insert proper C++ library support
18381 ld_shlibs_CXX=no
18382 ;;
18383 aCC*)
18384 case $host_cpu in
18385 hppa*64*)
18386 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18387 ;;
18388 ia64*)
18389 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18390 ;;
18391 *)
18392 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18393 ;;
18394 esac
18395 # Commands to make compiler produce verbose output that lists
18396 # what "hidden" libraries, object files and flags are used when
18397 # linking a shared library.
18398 #
18399 # There doesn't appear to be a way to prevent this compiler from
18400 # explicitly linking system object files so we need to strip them
18401 # from the output so that they don't get included in the library
18402 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018403 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 +000018404 ;;
18405 *)
18406 if test "$GXX" = yes; then
18407 if test $with_gnu_ld = no; then
18408 case $host_cpu in
18409 hppa*64*)
18410 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18411 ;;
18412 ia64*)
cristyda16f162011-02-19 23:52:17 +000018413 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 +000018414 ;;
18415 *)
cristyda16f162011-02-19 23:52:17 +000018416 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 +000018417 ;;
18418 esac
18419 fi
18420 else
18421 # FIXME: insert proper C++ library support
18422 ld_shlibs_CXX=no
18423 fi
18424 ;;
18425 esac
18426 ;;
18427
18428 interix[3-9]*)
18429 hardcode_direct_CXX=no
18430 hardcode_shlibpath_var_CXX=no
18431 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18432 export_dynamic_flag_spec_CXX='${wl}-E'
18433 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18434 # Instead, shared libraries are loaded at an image base (0x10000000 by
18435 # default) and relocated if they conflict, which is a slow very memory
18436 # consuming and fragmenting process. To avoid this, we pick a random,
18437 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18438 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18439 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'
18440 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'
18441 ;;
18442 irix5* | irix6*)
18443 case $cc_basename in
18444 CC*)
18445 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018446 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 +000018447
18448 # Archives containing C++ object files must be created using
18449 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18450 # necessary to make sure instantiated templates are included
18451 # in the archive.
18452 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18453 ;;
18454 *)
18455 if test "$GXX" = yes; then
18456 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018457 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 +000018458 else
cristyda16f162011-02-19 23:52:17 +000018459 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 +000018460 fi
18461 fi
18462 link_all_deplibs_CXX=yes
18463 ;;
18464 esac
18465 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18466 hardcode_libdir_separator_CXX=:
18467 inherit_rpath_CXX=yes
18468 ;;
18469
cristy0c60a692010-11-04 01:09:47 +000018470 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018471 case $cc_basename in
18472 KCC*)
18473 # Kuck and Associates, Inc. (KAI) C++ Compiler
18474
18475 # KCC will only create a shared library if the output file
18476 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18477 # to its proper name (with version) after linking.
18478 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'
18479 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'
18480 # Commands to make compiler produce verbose output that lists
18481 # what "hidden" libraries, object files and flags are used when
18482 # linking a shared library.
18483 #
18484 # There doesn't appear to be a way to prevent this compiler from
18485 # explicitly linking system object files so we need to strip them
18486 # from the output so that they don't get included in the library
18487 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018488 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 +000018489
18490 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18491 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18492
18493 # Archives containing C++ object files must be created using
18494 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18495 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18496 ;;
18497 icpc* | ecpc* )
18498 # Intel C++
18499 with_gnu_ld=yes
18500 # version 8.0 and above of icpc choke on multiply defined symbols
18501 # if we add $predep_objects and $postdep_objects, however 7.1 and
18502 # earlier do not add the objects themselves.
18503 case `$CC -V 2>&1` in
18504 *"Version 7."*)
18505 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18506 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'
18507 ;;
18508 *) # Version 8.0 or newer
18509 tmp_idyn=
18510 case $host_cpu in
18511 ia64*) tmp_idyn=' -i_dynamic';;
18512 esac
18513 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18514 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'
18515 ;;
18516 esac
18517 archive_cmds_need_lc_CXX=no
18518 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18519 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18520 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18521 ;;
18522 pgCC* | pgcpp*)
18523 # Portland Group C++ compiler
18524 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018525 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018526 prelink_cmds_CXX='tpldir=Template.dir~
18527 rm -rf $tpldir~
18528 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018529 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018530 old_archive_cmds_CXX='tpldir=Template.dir~
18531 rm -rf $tpldir~
18532 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018533 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018534 $RANLIB $oldlib'
18535 archive_cmds_CXX='tpldir=Template.dir~
18536 rm -rf $tpldir~
18537 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018538 $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 +000018539 archive_expsym_cmds_CXX='tpldir=Template.dir~
18540 rm -rf $tpldir~
18541 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018542 $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 +000018543 ;;
cristy0c60a692010-11-04 01:09:47 +000018544 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018545 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18546 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'
18547 ;;
18548 esac
18549
18550 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18551 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018552 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 +000018553 ;;
18554 cxx*)
18555 # Compaq C++
18556 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18557 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'
18558
18559 runpath_var=LD_RUN_PATH
18560 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18561 hardcode_libdir_separator_CXX=:
18562
18563 # Commands to make compiler produce verbose output that lists
18564 # what "hidden" libraries, object files and flags are used when
18565 # linking a shared library.
18566 #
18567 # There doesn't appear to be a way to prevent this compiler from
18568 # explicitly linking system object files so we need to strip them
18569 # from the output so that they don't get included in the library
18570 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018571 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 +000018572 ;;
cristy0c60a692010-11-04 01:09:47 +000018573 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018574 # IBM XL 8.0 on PPC, with GNU ld
18575 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18576 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18577 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18578 if test "x$supports_anon_versioning" = xyes; then
18579 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18580 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18581 echo "local: *; };" >> $output_objdir/$libname.ver~
18582 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18583 fi
18584 ;;
18585 *)
18586 case `$CC -V 2>&1 | sed 5q` in
18587 *Sun\ C*)
18588 # Sun C++ 5.9
18589 no_undefined_flag_CXX=' -zdefs'
18590 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18591 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'
18592 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018593 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 +000018594 compiler_needs_object_CXX=yes
18595
18596 # Not sure whether something based on
18597 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18598 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018599 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018600
18601 # Archives containing C++ object files must be created using
18602 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18603 # necessary to make sure instantiated templates are included
18604 # in the archive.
18605 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18606 ;;
18607 esac
18608 ;;
18609 esac
18610 ;;
18611
18612 lynxos*)
18613 # FIXME: insert proper C++ library support
18614 ld_shlibs_CXX=no
18615 ;;
18616
18617 m88k*)
18618 # FIXME: insert proper C++ library support
18619 ld_shlibs_CXX=no
18620 ;;
18621
18622 mvs*)
18623 case $cc_basename in
18624 cxx*)
18625 # FIXME: insert proper C++ library support
18626 ld_shlibs_CXX=no
18627 ;;
18628 *)
18629 # FIXME: insert proper C++ library support
18630 ld_shlibs_CXX=no
18631 ;;
18632 esac
18633 ;;
18634
18635 netbsd*)
18636 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18637 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18638 wlarc=
18639 hardcode_libdir_flag_spec_CXX='-R$libdir'
18640 hardcode_direct_CXX=yes
18641 hardcode_shlibpath_var_CXX=no
18642 fi
18643 # Workaround some broken pre-1.5 toolchains
18644 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18645 ;;
18646
18647 *nto* | *qnx*)
18648 ld_shlibs_CXX=yes
18649 ;;
18650
18651 openbsd2*)
18652 # C++ shared libraries are fairly broken
18653 ld_shlibs_CXX=no
18654 ;;
18655
18656 openbsd*)
18657 if test -f /usr/libexec/ld.so; then
18658 hardcode_direct_CXX=yes
18659 hardcode_shlibpath_var_CXX=no
18660 hardcode_direct_absolute_CXX=yes
18661 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18662 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18663 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18664 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18665 export_dynamic_flag_spec_CXX='${wl}-E'
18666 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18667 fi
cristy0c60a692010-11-04 01:09:47 +000018668 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018669 else
18670 ld_shlibs_CXX=no
18671 fi
18672 ;;
18673
18674 osf3* | osf4* | osf5*)
18675 case $cc_basename in
18676 KCC*)
18677 # Kuck and Associates, Inc. (KAI) C++ Compiler
18678
18679 # KCC will only create a shared library if the output file
18680 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18681 # to its proper name (with version) after linking.
18682 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'
18683
18684 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18685 hardcode_libdir_separator_CXX=:
18686
18687 # Archives containing C++ object files must be created using
18688 # the KAI C++ compiler.
18689 case $host in
18690 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18691 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18692 esac
18693 ;;
18694 RCC*)
18695 # Rational C++ 2.4.1
18696 # FIXME: insert proper C++ library support
18697 ld_shlibs_CXX=no
18698 ;;
18699 cxx*)
18700 case $host in
18701 osf3*)
18702 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018703 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 +000018704 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18705 ;;
18706 *)
18707 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018708 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 +000018709 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18710 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018711 $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 +000018712 $RM $lib.exp'
18713 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18714 ;;
18715 esac
18716
18717 hardcode_libdir_separator_CXX=:
18718
18719 # Commands to make compiler produce verbose output that lists
18720 # what "hidden" libraries, object files and flags are used when
18721 # linking a shared library.
18722 #
18723 # There doesn't appear to be a way to prevent this compiler from
18724 # explicitly linking system object files so we need to strip them
18725 # from the output so that they don't get included in the library
18726 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018727 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 +000018728 ;;
18729 *)
18730 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18731 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18732 case $host in
18733 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018734 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 +000018735 ;;
18736 *)
cristyda16f162011-02-19 23:52:17 +000018737 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 +000018738 ;;
18739 esac
18740
18741 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18742 hardcode_libdir_separator_CXX=:
18743
18744 # Commands to make compiler produce verbose output that lists
18745 # what "hidden" libraries, object files and flags are used when
18746 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018747 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018748
18749 else
18750 # FIXME: insert proper C++ library support
18751 ld_shlibs_CXX=no
18752 fi
18753 ;;
18754 esac
18755 ;;
18756
18757 psos*)
18758 # FIXME: insert proper C++ library support
18759 ld_shlibs_CXX=no
18760 ;;
18761
18762 sunos4*)
18763 case $cc_basename in
18764 CC*)
18765 # Sun C++ 4.x
18766 # FIXME: insert proper C++ library support
18767 ld_shlibs_CXX=no
18768 ;;
18769 lcc*)
18770 # Lucid
18771 # FIXME: insert proper C++ library support
18772 ld_shlibs_CXX=no
18773 ;;
18774 *)
18775 # FIXME: insert proper C++ library support
18776 ld_shlibs_CXX=no
18777 ;;
18778 esac
18779 ;;
18780
18781 solaris*)
18782 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018783 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018784 # Sun C++ 4.2, 5.x and Centerline C++
18785 archive_cmds_need_lc_CXX=yes
18786 no_undefined_flag_CXX=' -zdefs'
18787 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18788 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18789 $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'
18790
18791 hardcode_libdir_flag_spec_CXX='-R$libdir'
18792 hardcode_shlibpath_var_CXX=no
18793 case $host_os in
18794 solaris2.[0-5] | solaris2.[0-5].*) ;;
18795 *)
18796 # The compiler driver will combine and reorder linker options,
18797 # but understands `-z linker_flag'.
18798 # Supported since Solaris 2.6 (maybe 2.5.1?)
18799 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18800 ;;
18801 esac
18802 link_all_deplibs_CXX=yes
18803
cristy0c60a692010-11-04 01:09:47 +000018804 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018805
18806 # Archives containing C++ object files must be created using
18807 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18808 # necessary to make sure instantiated templates are included
18809 # in the archive.
18810 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18811 ;;
18812 gcx*)
18813 # Green Hills C++ Compiler
18814 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18815
18816 # The C++ compiler must be used to create the archive.
18817 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18818 ;;
18819 *)
18820 # GNU C++ compiler with Solaris linker
18821 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18822 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18823 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018824 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 +000018825 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 +000018826 $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 +000018827
18828 # Commands to make compiler produce verbose output that lists
18829 # what "hidden" libraries, object files and flags are used when
18830 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018831 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018832 else
18833 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18834 # platform.
18835 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18836 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18837 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18838
18839 # Commands to make compiler produce verbose output that lists
18840 # what "hidden" libraries, object files and flags are used when
18841 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018842 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018843 fi
18844
18845 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18846 case $host_os in
18847 solaris2.[0-5] | solaris2.[0-5].*) ;;
18848 *)
18849 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18850 ;;
18851 esac
18852 fi
18853 ;;
18854 esac
18855 ;;
18856
18857 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18858 no_undefined_flag_CXX='${wl}-z,text'
18859 archive_cmds_need_lc_CXX=no
18860 hardcode_shlibpath_var_CXX=no
18861 runpath_var='LD_RUN_PATH'
18862
18863 case $cc_basename in
18864 CC*)
18865 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18866 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18867 ;;
18868 *)
18869 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18870 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18871 ;;
18872 esac
18873 ;;
18874
18875 sysv5* | sco3.2v5* | sco5v6*)
18876 # Note: We can NOT use -z defs as we might desire, because we do not
18877 # link with -lc, and that would cause any symbols used from libc to
18878 # always be unresolved, which means just about no library would
18879 # ever link correctly. If we're not using GNU ld we use -z text
18880 # though, which does catch some bad symbols but isn't as heavy-handed
18881 # as -z defs.
18882 no_undefined_flag_CXX='${wl}-z,text'
18883 allow_undefined_flag_CXX='${wl}-z,nodefs'
18884 archive_cmds_need_lc_CXX=no
18885 hardcode_shlibpath_var_CXX=no
18886 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18887 hardcode_libdir_separator_CXX=':'
18888 link_all_deplibs_CXX=yes
18889 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18890 runpath_var='LD_RUN_PATH'
18891
18892 case $cc_basename in
18893 CC*)
18894 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18895 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 +000018896 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18897 '"$old_archive_cmds_CXX"
18898 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18899 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018900 ;;
18901 *)
18902 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18903 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18904 ;;
18905 esac
18906 ;;
18907
18908 tandem*)
18909 case $cc_basename in
18910 NCC*)
18911 # NonStop-UX NCC 3.20
18912 # FIXME: insert proper C++ library support
18913 ld_shlibs_CXX=no
18914 ;;
18915 *)
18916 # FIXME: insert proper C++ library support
18917 ld_shlibs_CXX=no
18918 ;;
18919 esac
18920 ;;
18921
18922 vxworks*)
18923 # FIXME: insert proper C++ library support
18924 ld_shlibs_CXX=no
18925 ;;
18926
18927 *)
18928 # FIXME: insert proper C++ library support
18929 ld_shlibs_CXX=no
18930 ;;
18931 esac
18932
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18934$as_echo "$ld_shlibs_CXX" >&6; }
18935 test "$ld_shlibs_CXX" = no && can_build_shared=no
18936
18937 GCC_CXX="$GXX"
18938 LD_CXX="$LD"
18939
18940 ## CAVEAT EMPTOR:
18941 ## There is no encapsulation within the following macros, do not change
18942 ## the running order or otherwise move them around unless you know exactly
18943 ## what you are doing...
18944 # Dependencies to place before and after the object being linked:
18945predep_objects_CXX=
18946postdep_objects_CXX=
18947predeps_CXX=
18948postdeps_CXX=
18949compiler_lib_search_path_CXX=
18950
18951cat > conftest.$ac_ext <<_LT_EOF
18952class Foo
18953{
18954public:
18955 Foo (void) { a = 0; }
18956private:
18957 int a;
18958};
18959_LT_EOF
18960
cristyda16f162011-02-19 23:52:17 +000018961
18962_lt_libdeps_save_CFLAGS=$CFLAGS
18963case "$CC $CFLAGS " in #(
18964*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18965*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018966*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018967esac
18968
cristy73bd4a52010-10-05 11:24:23 +000018969if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18970 (eval $ac_compile) 2>&5
18971 ac_status=$?
18972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18973 test $ac_status = 0; }; then
18974 # Parse the compiler output and extract the necessary
18975 # objects, libraries and library flags.
18976
18977 # Sentinel used to keep track of whether or not we are before
18978 # the conftest object file.
18979 pre_test_object_deps_done=no
18980
18981 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018982 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018983
18984 -L* | -R* | -l*)
18985 # Some compilers place space between "-{L,R}" and the path.
18986 # Remove the space.
18987 if test $p = "-L" ||
18988 test $p = "-R"; then
18989 prev=$p
18990 continue
cristy73bd4a52010-10-05 11:24:23 +000018991 fi
18992
cristyda16f162011-02-19 23:52:17 +000018993 # Expand the sysroot to ease extracting the directories later.
18994 if test -z "$prev"; then
18995 case $p in
18996 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18997 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18998 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18999 esac
19000 fi
19001 case $p in
19002 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19003 esac
cristy73bd4a52010-10-05 11:24:23 +000019004 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019005 case ${prev} in
19006 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019007 # Internal compiler library paths should come after those
19008 # provided the user. The postdeps already come after the
19009 # user supplied libs so there is no need to process them.
19010 if test -z "$compiler_lib_search_path_CXX"; then
19011 compiler_lib_search_path_CXX="${prev}${p}"
19012 else
19013 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19014 fi
19015 ;;
19016 # The "-l" case would never come before the object being
19017 # linked, so don't bother handling this case.
19018 esac
19019 else
19020 if test -z "$postdeps_CXX"; then
19021 postdeps_CXX="${prev}${p}"
19022 else
19023 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19024 fi
19025 fi
cristyda16f162011-02-19 23:52:17 +000019026 prev=
cristy73bd4a52010-10-05 11:24:23 +000019027 ;;
19028
cristyda16f162011-02-19 23:52:17 +000019029 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019030 *.$objext)
19031 # This assumes that the test object file only shows up
19032 # once in the compiler output.
19033 if test "$p" = "conftest.$objext"; then
19034 pre_test_object_deps_done=yes
19035 continue
19036 fi
19037
19038 if test "$pre_test_object_deps_done" = no; then
19039 if test -z "$predep_objects_CXX"; then
19040 predep_objects_CXX="$p"
19041 else
19042 predep_objects_CXX="$predep_objects_CXX $p"
19043 fi
19044 else
19045 if test -z "$postdep_objects_CXX"; then
19046 postdep_objects_CXX="$p"
19047 else
19048 postdep_objects_CXX="$postdep_objects_CXX $p"
19049 fi
19050 fi
19051 ;;
19052
19053 *) ;; # Ignore the rest.
19054
19055 esac
19056 done
19057
19058 # Clean up.
19059 rm -f a.out a.exe
19060else
19061 echo "libtool.m4: error: problem compiling CXX test program"
19062fi
19063
19064$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019065CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019066
19067# PORTME: override above test on systems where it is broken
19068case $host_os in
19069interix[3-9]*)
19070 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19071 # hack all around it, let's just trust "g++" to DTRT.
19072 predep_objects_CXX=
19073 postdep_objects_CXX=
19074 postdeps_CXX=
19075 ;;
19076
19077linux*)
19078 case `$CC -V 2>&1 | sed 5q` in
19079 *Sun\ C*)
19080 # Sun C++ 5.9
19081
19082 # The more standards-conforming stlport4 library is
19083 # incompatible with the Cstd library. Avoid specifying
19084 # it if it's in CXXFLAGS. Ignore libCrun as
19085 # -library=stlport4 depends on it.
19086 case " $CXX $CXXFLAGS " in
19087 *" -library=stlport4 "*)
19088 solaris_use_stlport4=yes
19089 ;;
19090 esac
19091
19092 if test "$solaris_use_stlport4" != yes; then
19093 postdeps_CXX='-library=Cstd -library=Crun'
19094 fi
19095 ;;
19096 esac
19097 ;;
19098
19099solaris*)
19100 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019101 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019102 # The more standards-conforming stlport4 library is
19103 # incompatible with the Cstd library. Avoid specifying
19104 # it if it's in CXXFLAGS. Ignore libCrun as
19105 # -library=stlport4 depends on it.
19106 case " $CXX $CXXFLAGS " in
19107 *" -library=stlport4 "*)
19108 solaris_use_stlport4=yes
19109 ;;
19110 esac
19111
19112 # Adding this requires a known-good setup of shared libraries for
19113 # Sun compiler versions before 5.6, else PIC objects from an old
19114 # archive will be linked into the output, leading to subtle bugs.
19115 if test "$solaris_use_stlport4" != yes; then
19116 postdeps_CXX='-library=Cstd -library=Crun'
19117 fi
19118 ;;
19119 esac
19120 ;;
19121esac
19122
19123
19124case " $postdeps_CXX " in
19125*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19126esac
19127 compiler_lib_search_dirs_CXX=
19128if test -n "${compiler_lib_search_path_CXX}"; then
19129 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19130fi
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162 lt_prog_compiler_wl_CXX=
19163lt_prog_compiler_pic_CXX=
19164lt_prog_compiler_static_CXX=
19165
cristy73bd4a52010-10-05 11:24:23 +000019166
19167 # C++ specific cases for pic, static, wl, etc.
19168 if test "$GXX" = yes; then
19169 lt_prog_compiler_wl_CXX='-Wl,'
19170 lt_prog_compiler_static_CXX='-static'
19171
19172 case $host_os in
19173 aix*)
19174 # All AIX code is PIC.
19175 if test "$host_cpu" = ia64; then
19176 # AIX 5 now supports IA64 processor
19177 lt_prog_compiler_static_CXX='-Bstatic'
19178 fi
19179 ;;
19180
19181 amigaos*)
19182 case $host_cpu in
19183 powerpc)
19184 # see comment about AmigaOS4 .so support
19185 lt_prog_compiler_pic_CXX='-fPIC'
19186 ;;
19187 m68k)
19188 # FIXME: we need at least 68020 code to build shared libraries, but
19189 # adding the `-m68020' flag to GCC prevents building anything better,
19190 # like `-m68040'.
19191 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19192 ;;
19193 esac
19194 ;;
19195
19196 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19197 # PIC is the default for these OSes.
19198 ;;
19199 mingw* | cygwin* | os2* | pw32* | cegcc*)
19200 # This hack is so that the source file can tell whether it is being
19201 # built for inclusion in a dll (and should export symbols for example).
19202 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19203 # (--disable-auto-import) libraries
19204 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19205 ;;
19206 darwin* | rhapsody*)
19207 # PIC is the default on this platform
19208 # Common symbols not allowed in MH_DYLIB files
19209 lt_prog_compiler_pic_CXX='-fno-common'
19210 ;;
19211 *djgpp*)
19212 # DJGPP does not support shared libraries at all
19213 lt_prog_compiler_pic_CXX=
19214 ;;
cristy0c60a692010-11-04 01:09:47 +000019215 haiku*)
19216 # PIC is the default for Haiku.
19217 # The "-static" flag exists, but is broken.
19218 lt_prog_compiler_static_CXX=
19219 ;;
cristy73bd4a52010-10-05 11:24:23 +000019220 interix[3-9]*)
19221 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19222 # Instead, we relocate shared libraries at runtime.
19223 ;;
19224 sysv4*MP*)
19225 if test -d /usr/nec; then
19226 lt_prog_compiler_pic_CXX=-Kconform_pic
19227 fi
19228 ;;
19229 hpux*)
19230 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19231 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19232 # sets the default TLS model and affects inlining.
19233 case $host_cpu in
19234 hppa*64*)
19235 ;;
19236 *)
19237 lt_prog_compiler_pic_CXX='-fPIC'
19238 ;;
19239 esac
19240 ;;
19241 *qnx* | *nto*)
19242 # QNX uses GNU C++, but need to define -shared option too, otherwise
19243 # it will coredump.
19244 lt_prog_compiler_pic_CXX='-fPIC -shared'
19245 ;;
19246 *)
19247 lt_prog_compiler_pic_CXX='-fPIC'
19248 ;;
19249 esac
19250 else
19251 case $host_os in
19252 aix[4-9]*)
19253 # All AIX code is PIC.
19254 if test "$host_cpu" = ia64; then
19255 # AIX 5 now supports IA64 processor
19256 lt_prog_compiler_static_CXX='-Bstatic'
19257 else
19258 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19259 fi
19260 ;;
19261 chorus*)
19262 case $cc_basename in
19263 cxch68*)
19264 # Green Hills C++ Compiler
19265 # _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"
19266 ;;
19267 esac
19268 ;;
cristyda16f162011-02-19 23:52:17 +000019269 mingw* | cygwin* | os2* | pw32* | cegcc*)
19270 # This hack is so that the source file can tell whether it is being
19271 # built for inclusion in a dll (and should export symbols for example).
19272 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19273 ;;
cristy73bd4a52010-10-05 11:24:23 +000019274 dgux*)
19275 case $cc_basename in
19276 ec++*)
19277 lt_prog_compiler_pic_CXX='-KPIC'
19278 ;;
19279 ghcx*)
19280 # Green Hills C++ Compiler
19281 lt_prog_compiler_pic_CXX='-pic'
19282 ;;
19283 *)
19284 ;;
19285 esac
19286 ;;
19287 freebsd* | dragonfly*)
19288 # FreeBSD uses GNU C++
19289 ;;
19290 hpux9* | hpux10* | hpux11*)
19291 case $cc_basename in
19292 CC*)
19293 lt_prog_compiler_wl_CXX='-Wl,'
19294 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19295 if test "$host_cpu" != ia64; then
19296 lt_prog_compiler_pic_CXX='+Z'
19297 fi
19298 ;;
19299 aCC*)
19300 lt_prog_compiler_wl_CXX='-Wl,'
19301 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19302 case $host_cpu in
19303 hppa*64*|ia64*)
19304 # +Z the default
19305 ;;
19306 *)
19307 lt_prog_compiler_pic_CXX='+Z'
19308 ;;
19309 esac
19310 ;;
19311 *)
19312 ;;
19313 esac
19314 ;;
19315 interix*)
19316 # This is c89, which is MS Visual C++ (no shared libs)
19317 # Anyone wants to do a port?
19318 ;;
19319 irix5* | irix6* | nonstopux*)
19320 case $cc_basename in
19321 CC*)
19322 lt_prog_compiler_wl_CXX='-Wl,'
19323 lt_prog_compiler_static_CXX='-non_shared'
19324 # CC pic flag -KPIC is the default.
19325 ;;
19326 *)
19327 ;;
19328 esac
19329 ;;
cristy0c60a692010-11-04 01:09:47 +000019330 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019331 case $cc_basename in
19332 KCC*)
19333 # KAI C++ Compiler
19334 lt_prog_compiler_wl_CXX='--backend -Wl,'
19335 lt_prog_compiler_pic_CXX='-fPIC'
19336 ;;
19337 ecpc* )
19338 # old Intel C++ for x86_64 which still supported -KPIC.
19339 lt_prog_compiler_wl_CXX='-Wl,'
19340 lt_prog_compiler_pic_CXX='-KPIC'
19341 lt_prog_compiler_static_CXX='-static'
19342 ;;
19343 icpc* )
19344 # Intel C++, used to be incompatible with GCC.
19345 # ICC 10 doesn't accept -KPIC any more.
19346 lt_prog_compiler_wl_CXX='-Wl,'
19347 lt_prog_compiler_pic_CXX='-fPIC'
19348 lt_prog_compiler_static_CXX='-static'
19349 ;;
19350 pgCC* | pgcpp*)
19351 # Portland Group C++ compiler
19352 lt_prog_compiler_wl_CXX='-Wl,'
19353 lt_prog_compiler_pic_CXX='-fpic'
19354 lt_prog_compiler_static_CXX='-Bstatic'
19355 ;;
19356 cxx*)
19357 # Compaq C++
19358 # Make sure the PIC flag is empty. It appears that all Alpha
19359 # Linux and Compaq Tru64 Unix objects are PIC.
19360 lt_prog_compiler_pic_CXX=
19361 lt_prog_compiler_static_CXX='-non_shared'
19362 ;;
cristy0c60a692010-11-04 01:09:47 +000019363 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19364 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019365 lt_prog_compiler_wl_CXX='-Wl,'
19366 lt_prog_compiler_pic_CXX='-qpic'
19367 lt_prog_compiler_static_CXX='-qstaticlink'
19368 ;;
19369 *)
19370 case `$CC -V 2>&1 | sed 5q` in
19371 *Sun\ C*)
19372 # Sun C++ 5.9
19373 lt_prog_compiler_pic_CXX='-KPIC'
19374 lt_prog_compiler_static_CXX='-Bstatic'
19375 lt_prog_compiler_wl_CXX='-Qoption ld '
19376 ;;
19377 esac
19378 ;;
19379 esac
19380 ;;
19381 lynxos*)
19382 ;;
19383 m88k*)
19384 ;;
19385 mvs*)
19386 case $cc_basename in
19387 cxx*)
19388 lt_prog_compiler_pic_CXX='-W c,exportall'
19389 ;;
19390 *)
19391 ;;
19392 esac
19393 ;;
19394 netbsd*)
19395 ;;
19396 *qnx* | *nto*)
19397 # QNX uses GNU C++, but need to define -shared option too, otherwise
19398 # it will coredump.
19399 lt_prog_compiler_pic_CXX='-fPIC -shared'
19400 ;;
19401 osf3* | osf4* | osf5*)
19402 case $cc_basename in
19403 KCC*)
19404 lt_prog_compiler_wl_CXX='--backend -Wl,'
19405 ;;
19406 RCC*)
19407 # Rational C++ 2.4.1
19408 lt_prog_compiler_pic_CXX='-pic'
19409 ;;
19410 cxx*)
19411 # Digital/Compaq C++
19412 lt_prog_compiler_wl_CXX='-Wl,'
19413 # Make sure the PIC flag is empty. It appears that all Alpha
19414 # Linux and Compaq Tru64 Unix objects are PIC.
19415 lt_prog_compiler_pic_CXX=
19416 lt_prog_compiler_static_CXX='-non_shared'
19417 ;;
19418 *)
19419 ;;
19420 esac
19421 ;;
19422 psos*)
19423 ;;
19424 solaris*)
19425 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019426 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019427 # Sun C++ 4.2, 5.x and Centerline C++
19428 lt_prog_compiler_pic_CXX='-KPIC'
19429 lt_prog_compiler_static_CXX='-Bstatic'
19430 lt_prog_compiler_wl_CXX='-Qoption ld '
19431 ;;
19432 gcx*)
19433 # Green Hills C++ Compiler
19434 lt_prog_compiler_pic_CXX='-PIC'
19435 ;;
19436 *)
19437 ;;
19438 esac
19439 ;;
19440 sunos4*)
19441 case $cc_basename in
19442 CC*)
19443 # Sun C++ 4.x
19444 lt_prog_compiler_pic_CXX='-pic'
19445 lt_prog_compiler_static_CXX='-Bstatic'
19446 ;;
19447 lcc*)
19448 # Lucid
19449 lt_prog_compiler_pic_CXX='-pic'
19450 ;;
19451 *)
19452 ;;
19453 esac
19454 ;;
19455 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19456 case $cc_basename in
19457 CC*)
19458 lt_prog_compiler_wl_CXX='-Wl,'
19459 lt_prog_compiler_pic_CXX='-KPIC'
19460 lt_prog_compiler_static_CXX='-Bstatic'
19461 ;;
19462 esac
19463 ;;
19464 tandem*)
19465 case $cc_basename in
19466 NCC*)
19467 # NonStop-UX NCC 3.20
19468 lt_prog_compiler_pic_CXX='-KPIC'
19469 ;;
19470 *)
19471 ;;
19472 esac
19473 ;;
19474 vxworks*)
19475 ;;
19476 *)
19477 lt_prog_compiler_can_build_shared_CXX=no
19478 ;;
19479 esac
19480 fi
19481
19482case $host_os in
19483 # For platforms which do not support PIC, -DPIC is meaningless:
19484 *djgpp*)
19485 lt_prog_compiler_pic_CXX=
19486 ;;
19487 *)
19488 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19489 ;;
19490esac
cristy73bd4a52010-10-05 11:24:23 +000019491
cristyda16f162011-02-19 23:52:17 +000019492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19493$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19494if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19495 $as_echo_n "(cached) " >&6
19496else
19497 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19498fi
19499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19500$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19501lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019502
19503#
19504# Check to make sure the PIC flag actually works.
19505#
19506if test -n "$lt_prog_compiler_pic_CXX"; then
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19508$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019509if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019510 $as_echo_n "(cached) " >&6
19511else
19512 lt_cv_prog_compiler_pic_works_CXX=no
19513 ac_outfile=conftest.$ac_objext
19514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19515 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19516 # Insert the option either (1) after the last *FLAGS variable, or
19517 # (2) before a word containing "conftest.", or (3) at the end.
19518 # Note that $ac_compile itself does not contain backslashes and begins
19519 # with a dollar sign (not a hyphen), so the echo should work correctly.
19520 # The option is referenced via a variable to avoid confusing sed.
19521 lt_compile=`echo "$ac_compile" | $SED \
19522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19524 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019526 (eval "$lt_compile" 2>conftest.err)
19527 ac_status=$?
19528 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019530 if (exit $ac_status) && test -s "$ac_outfile"; then
19531 # The compiler can only warn and ignore the option if not recognized
19532 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019533 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19535 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19536 lt_cv_prog_compiler_pic_works_CXX=yes
19537 fi
19538 fi
19539 $RM conftest*
19540
19541fi
19542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19543$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19544
19545if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19546 case $lt_prog_compiler_pic_CXX in
19547 "" | " "*) ;;
19548 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19549 esac
19550else
19551 lt_prog_compiler_pic_CXX=
19552 lt_prog_compiler_can_build_shared_CXX=no
19553fi
19554
19555fi
19556
19557
19558
cristyda16f162011-02-19 23:52:17 +000019559
19560
cristy73bd4a52010-10-05 11:24:23 +000019561#
19562# Check to make sure the static flag actually works.
19563#
19564wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19566$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019567if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019568 $as_echo_n "(cached) " >&6
19569else
19570 lt_cv_prog_compiler_static_works_CXX=no
19571 save_LDFLAGS="$LDFLAGS"
19572 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19573 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19574 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19575 # The linker can only warn and ignore the option if not recognized
19576 # So say no if there are warnings
19577 if test -s conftest.err; then
19578 # Append any errors to the config.log.
19579 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019580 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19582 if diff conftest.exp conftest.er2 >/dev/null; then
19583 lt_cv_prog_compiler_static_works_CXX=yes
19584 fi
19585 else
19586 lt_cv_prog_compiler_static_works_CXX=yes
19587 fi
19588 fi
19589 $RM -r conftest*
19590 LDFLAGS="$save_LDFLAGS"
19591
19592fi
19593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19594$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19595
19596if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19597 :
19598else
19599 lt_prog_compiler_static_CXX=
19600fi
19601
19602
19603
19604
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19606$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019607if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019608 $as_echo_n "(cached) " >&6
19609else
19610 lt_cv_prog_compiler_c_o_CXX=no
19611 $RM -r conftest 2>/dev/null
19612 mkdir conftest
19613 cd conftest
19614 mkdir out
19615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19616
19617 lt_compiler_flag="-o out/conftest2.$ac_objext"
19618 # Insert the option either (1) after the last *FLAGS variable, or
19619 # (2) before a word containing "conftest.", or (3) at the end.
19620 # Note that $ac_compile itself does not contain backslashes and begins
19621 # with a dollar sign (not a hyphen), so the echo should work correctly.
19622 lt_compile=`echo "$ac_compile" | $SED \
19623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19625 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019626 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019627 (eval "$lt_compile" 2>out/conftest.err)
19628 ac_status=$?
19629 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019631 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19632 then
19633 # The compiler can only warn and ignore the option if not recognized
19634 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019635 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019636 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19637 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19638 lt_cv_prog_compiler_c_o_CXX=yes
19639 fi
19640 fi
19641 chmod u+w . 2>&5
19642 $RM conftest*
19643 # SGI C++ compiler will create directory out/ii_files/ for
19644 # template instantiation
19645 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19646 $RM out/* && rmdir out
19647 cd ..
19648 $RM -r conftest
19649 $RM conftest*
19650
19651fi
19652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19653$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19654
19655
19656
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19658$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019659if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019660 $as_echo_n "(cached) " >&6
19661else
19662 lt_cv_prog_compiler_c_o_CXX=no
19663 $RM -r conftest 2>/dev/null
19664 mkdir conftest
19665 cd conftest
19666 mkdir out
19667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19668
19669 lt_compiler_flag="-o out/conftest2.$ac_objext"
19670 # Insert the option either (1) after the last *FLAGS variable, or
19671 # (2) before a word containing "conftest.", or (3) at the end.
19672 # Note that $ac_compile itself does not contain backslashes and begins
19673 # with a dollar sign (not a hyphen), so the echo should work correctly.
19674 lt_compile=`echo "$ac_compile" | $SED \
19675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19677 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019678 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019679 (eval "$lt_compile" 2>out/conftest.err)
19680 ac_status=$?
19681 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019683 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19684 then
19685 # The compiler can only warn and ignore the option if not recognized
19686 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019687 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019688 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19689 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19690 lt_cv_prog_compiler_c_o_CXX=yes
19691 fi
19692 fi
19693 chmod u+w . 2>&5
19694 $RM conftest*
19695 # SGI C++ compiler will create directory out/ii_files/ for
19696 # template instantiation
19697 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19698 $RM out/* && rmdir out
19699 cd ..
19700 $RM -r conftest
19701 $RM conftest*
19702
19703fi
19704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19705$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19706
19707
19708
19709
19710hard_links="nottested"
19711if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19712 # do not overwrite the value of need_locks provided by the user
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19714$as_echo_n "checking if we can lock with hard links... " >&6; }
19715 hard_links=yes
19716 $RM conftest*
19717 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19718 touch conftest.a
19719 ln conftest.a conftest.b 2>&5 || hard_links=no
19720 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19722$as_echo "$hard_links" >&6; }
19723 if test "$hard_links" = no; then
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19725$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19726 need_locks=warn
19727 fi
19728else
19729 need_locks=no
19730fi
19731
19732
19733
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19735$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19736
19737 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019738 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019739 case $host_os in
19740 aix[4-9]*)
19741 # If we're using GNU nm, then we don't want the "-C" option.
19742 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019743 # Also, AIX nm treats weak defined symbols like other global defined
19744 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019745 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019746 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 +000019747 else
19748 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'
19749 fi
19750 ;;
19751 pw32*)
19752 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019753 ;;
cristy73bd4a52010-10-05 11:24:23 +000019754 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019755 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019756 cl*)
19757 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19758 ;;
cristyda16f162011-02-19 23:52:17 +000019759 *)
19760 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'
19761 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19762 ;;
19763 esac
19764 ;;
cristy73bd4a52010-10-05 11:24:23 +000019765 *)
19766 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019767 ;;
cristy73bd4a52010-10-05 11:24:23 +000019768 esac
cristy73bd4a52010-10-05 11:24:23 +000019769
19770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19771$as_echo "$ld_shlibs_CXX" >&6; }
19772test "$ld_shlibs_CXX" = no && can_build_shared=no
19773
19774with_gnu_ld_CXX=$with_gnu_ld
19775
19776
19777
19778
19779
19780
19781#
19782# Do we need to explicitly link libc?
19783#
19784case "x$archive_cmds_need_lc_CXX" in
19785x|xyes)
19786 # Assume -lc should be added
19787 archive_cmds_need_lc_CXX=yes
19788
19789 if test "$enable_shared" = yes && test "$GCC" = yes; then
19790 case $archive_cmds_CXX in
19791 *'~'*)
19792 # FIXME: we may have to deal with multi-command sequences.
19793 ;;
19794 '$CC '*)
19795 # Test whether the compiler implicitly links with -lc since on some
19796 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19797 # to ld, don't add -lc before -lgcc.
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19799$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019800if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019801 $as_echo_n "(cached) " >&6
19802else
19803 $RM conftest*
19804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019805
cristy0c60a692010-11-04 01:09:47 +000019806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019807 (eval $ac_compile) 2>&5
19808 ac_status=$?
19809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19810 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019811 soname=conftest
19812 lib=conftest
19813 libobjs=conftest.$ac_objext
19814 deplibs=
19815 wl=$lt_prog_compiler_wl_CXX
19816 pic_flag=$lt_prog_compiler_pic_CXX
19817 compiler_flags=-v
19818 linker_flags=-v
19819 verstring=
19820 output_objdir=.
19821 libname=conftest
19822 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19823 allow_undefined_flag_CXX=
19824 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 +000019825 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19826 ac_status=$?
19827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19828 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019829 then
19830 lt_cv_archive_cmds_need_lc_CXX=no
19831 else
19832 lt_cv_archive_cmds_need_lc_CXX=yes
19833 fi
19834 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19835 else
19836 cat conftest.err 1>&5
19837 fi
19838 $RM conftest*
19839
19840fi
19841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19842$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19843 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019844 ;;
19845 esac
19846 fi
19847 ;;
19848esac
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
cristy73bd4a52010-10-05 11:24:23 +000019911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19912$as_echo_n "checking dynamic linker characteristics... " >&6; }
19913
19914library_names_spec=
19915libname_spec='lib$name'
19916soname_spec=
19917shrext_cmds=".so"
19918postinstall_cmds=
19919postuninstall_cmds=
19920finish_cmds=
19921finish_eval=
19922shlibpath_var=
19923shlibpath_overrides_runpath=unknown
19924version_type=none
19925dynamic_linker="$host_os ld.so"
19926sys_lib_dlsearch_path_spec="/lib /usr/lib"
19927need_lib_prefix=unknown
19928hardcode_into_libs=no
19929
19930# when you set need_version to no, make sure it does not cause -set_version
19931# flags to be left without arguments
19932need_version=unknown
19933
19934case $host_os in
19935aix3*)
cristy99bd5232011-12-07 14:38:20 +000019936 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019937 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19938 shlibpath_var=LIBPATH
19939
19940 # AIX 3 has no versioning support, so we append a major version to the name.
19941 soname_spec='${libname}${release}${shared_ext}$major'
19942 ;;
19943
19944aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019945 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019946 need_lib_prefix=no
19947 need_version=no
19948 hardcode_into_libs=yes
19949 if test "$host_cpu" = ia64; then
19950 # AIX 5 supports IA64
19951 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19952 shlibpath_var=LD_LIBRARY_PATH
19953 else
19954 # With GCC up to 2.95.x, collect2 would create an import file
19955 # for dependence libraries. The import file would start with
19956 # the line `#! .'. This would cause the generated library to
19957 # depend on `.', always an invalid library. This was fixed in
19958 # development snapshots of GCC prior to 3.0.
19959 case $host_os in
19960 aix4 | aix4.[01] | aix4.[01].*)
19961 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19962 echo ' yes '
19963 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19964 :
19965 else
19966 can_build_shared=no
19967 fi
19968 ;;
19969 esac
19970 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19971 # soname into executable. Probably we can add versioning support to
19972 # collect2, so additional links can be useful in future.
19973 if test "$aix_use_runtimelinking" = yes; then
19974 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19975 # instead of lib<name>.a to let people know that these are not
19976 # typical AIX shared libraries.
19977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19978 else
19979 # We preserve .a as extension for shared libraries through AIX4.2
19980 # and later when we are not doing run time linking.
19981 library_names_spec='${libname}${release}.a $libname.a'
19982 soname_spec='${libname}${release}${shared_ext}$major'
19983 fi
19984 shlibpath_var=LIBPATH
19985 fi
19986 ;;
19987
19988amigaos*)
19989 case $host_cpu in
19990 powerpc)
19991 # Since July 2007 AmigaOS4 officially supports .so libraries.
19992 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19994 ;;
19995 m68k)
19996 library_names_spec='$libname.ixlibrary $libname.a'
19997 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019998 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 +000019999 ;;
20000 esac
20001 ;;
20002
20003beos*)
20004 library_names_spec='${libname}${shared_ext}'
20005 dynamic_linker="$host_os ld.so"
20006 shlibpath_var=LIBRARY_PATH
20007 ;;
20008
20009bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020010 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020011 need_version=no
20012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20013 soname_spec='${libname}${release}${shared_ext}$major'
20014 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20015 shlibpath_var=LD_LIBRARY_PATH
20016 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20017 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20018 # the default ld.so.conf also contains /usr/contrib/lib and
20019 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20020 # libtool to hard-code these into programs
20021 ;;
20022
20023cygwin* | mingw* | pw32* | cegcc*)
20024 version_type=windows
20025 shrext_cmds=".dll"
20026 need_version=no
20027 need_lib_prefix=no
20028
cristyda16f162011-02-19 23:52:17 +000020029 case $GCC,$cc_basename in
20030 yes,*)
20031 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020032 library_names_spec='$libname.dll.a'
20033 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20034 postinstall_cmds='base_file=`basename \${file}`~
20035 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20036 dldir=$destdir/`dirname \$dlpath`~
20037 test -d \$dldir || mkdir -p \$dldir~
20038 $install_prog $dir/$dlname \$dldir/$dlname~
20039 chmod a+x \$dldir/$dlname~
20040 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20041 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20042 fi'
20043 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20044 dlpath=$dir/\$dldll~
20045 $RM \$dlpath'
20046 shlibpath_overrides_runpath=yes
20047
20048 case $host_os in
20049 cygwin*)
20050 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20051 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020052
cristy73bd4a52010-10-05 11:24:23 +000020053 ;;
20054 mingw* | cegcc*)
20055 # MinGW DLLs use traditional 'lib' prefix
20056 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020057 ;;
20058 pw32*)
20059 # pw32 DLLs use 'pw' prefix rather than 'lib'
20060 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20061 ;;
20062 esac
cristyda16f162011-02-19 23:52:17 +000020063 dynamic_linker='Win32 ld.exe'
20064 ;;
20065
20066 *,cl*)
20067 # Native MSVC
20068 libname_spec='$name'
20069 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20070 library_names_spec='${libname}.dll.lib'
20071
20072 case $build_os in
20073 mingw*)
20074 sys_lib_search_path_spec=
20075 lt_save_ifs=$IFS
20076 IFS=';'
20077 for lt_path in $LIB
20078 do
20079 IFS=$lt_save_ifs
20080 # Let DOS variable expansion print the short 8.3 style file name.
20081 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20082 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20083 done
20084 IFS=$lt_save_ifs
20085 # Convert to MSYS style.
20086 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20087 ;;
20088 cygwin*)
20089 # Convert to unix form, then to dos form, then back to unix form
20090 # but this time dos style (no spaces!) so that the unix form looks
20091 # like /cygdrive/c/PROGRA~1:/cygdr...
20092 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20093 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20094 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20095 ;;
20096 *)
20097 sys_lib_search_path_spec="$LIB"
20098 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20099 # It is most probably a Windows format PATH.
20100 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20101 else
20102 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20103 fi
20104 # FIXME: find the short name or the path components, as spaces are
20105 # common. (e.g. "Program Files" -> "PROGRA~1")
20106 ;;
20107 esac
20108
20109 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20110 postinstall_cmds='base_file=`basename \${file}`~
20111 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20112 dldir=$destdir/`dirname \$dlpath`~
20113 test -d \$dldir || mkdir -p \$dldir~
20114 $install_prog $dir/$dlname \$dldir/$dlname'
20115 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20116 dlpath=$dir/\$dldll~
20117 $RM \$dlpath'
20118 shlibpath_overrides_runpath=yes
20119 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020120 ;;
20121
20122 *)
cristyda16f162011-02-19 23:52:17 +000020123 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020124 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020125 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020126 ;;
20127 esac
cristy73bd4a52010-10-05 11:24:23 +000020128 # FIXME: first we should search . and the directory the executable is in
20129 shlibpath_var=PATH
20130 ;;
20131
20132darwin* | rhapsody*)
20133 dynamic_linker="$host_os dyld"
20134 version_type=darwin
20135 need_lib_prefix=no
20136 need_version=no
20137 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20138 soname_spec='${libname}${release}${major}$shared_ext'
20139 shlibpath_overrides_runpath=yes
20140 shlibpath_var=DYLD_LIBRARY_PATH
20141 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20142
20143 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20144 ;;
20145
20146dgux*)
cristy99bd5232011-12-07 14:38:20 +000020147 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020148 need_lib_prefix=no
20149 need_version=no
20150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20151 soname_spec='${libname}${release}${shared_ext}$major'
20152 shlibpath_var=LD_LIBRARY_PATH
20153 ;;
20154
cristy73bd4a52010-10-05 11:24:23 +000020155freebsd* | dragonfly*)
20156 # DragonFly does not have aout. When/if they implement a new
20157 # versioning mechanism, adjust this.
20158 if test -x /usr/bin/objformat; then
20159 objformat=`/usr/bin/objformat`
20160 else
20161 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020162 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020163 *) objformat=elf ;;
20164 esac
20165 fi
20166 version_type=freebsd-$objformat
20167 case $version_type in
20168 freebsd-elf*)
20169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20170 need_version=no
20171 need_lib_prefix=no
20172 ;;
20173 freebsd-*)
20174 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20175 need_version=yes
20176 ;;
20177 esac
20178 shlibpath_var=LD_LIBRARY_PATH
20179 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020180 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020181 shlibpath_overrides_runpath=yes
20182 ;;
20183 freebsd3.[01]* | freebsdelf3.[01]*)
20184 shlibpath_overrides_runpath=yes
20185 hardcode_into_libs=yes
20186 ;;
20187 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20188 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20189 shlibpath_overrides_runpath=no
20190 hardcode_into_libs=yes
20191 ;;
20192 *) # from 4.6 on, and DragonFly
20193 shlibpath_overrides_runpath=yes
20194 hardcode_into_libs=yes
20195 ;;
20196 esac
20197 ;;
20198
20199gnu*)
cristy99bd5232011-12-07 14:38:20 +000020200 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020201 need_lib_prefix=no
20202 need_version=no
20203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20204 soname_spec='${libname}${release}${shared_ext}$major'
20205 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020206 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020207 hardcode_into_libs=yes
20208 ;;
20209
cristy0c60a692010-11-04 01:09:47 +000020210haiku*)
cristy99bd5232011-12-07 14:38:20 +000020211 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020212 need_lib_prefix=no
20213 need_version=no
20214 dynamic_linker="$host_os runtime_loader"
20215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20216 soname_spec='${libname}${release}${shared_ext}$major'
20217 shlibpath_var=LIBRARY_PATH
20218 shlibpath_overrides_runpath=yes
20219 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20220 hardcode_into_libs=yes
20221 ;;
20222
cristy73bd4a52010-10-05 11:24:23 +000020223hpux9* | hpux10* | hpux11*)
20224 # Give a soname corresponding to the major version so that dld.sl refuses to
20225 # link against other versions.
20226 version_type=sunos
20227 need_lib_prefix=no
20228 need_version=no
20229 case $host_cpu in
20230 ia64*)
20231 shrext_cmds='.so'
20232 hardcode_into_libs=yes
20233 dynamic_linker="$host_os dld.so"
20234 shlibpath_var=LD_LIBRARY_PATH
20235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20237 soname_spec='${libname}${release}${shared_ext}$major'
20238 if test "X$HPUX_IA64_MODE" = X32; then
20239 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20240 else
20241 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20242 fi
20243 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20244 ;;
20245 hppa*64*)
20246 shrext_cmds='.sl'
20247 hardcode_into_libs=yes
20248 dynamic_linker="$host_os dld.sl"
20249 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20250 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252 soname_spec='${libname}${release}${shared_ext}$major'
20253 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20254 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20255 ;;
20256 *)
20257 shrext_cmds='.sl'
20258 dynamic_linker="$host_os dld.sl"
20259 shlibpath_var=SHLIB_PATH
20260 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262 soname_spec='${libname}${release}${shared_ext}$major'
20263 ;;
20264 esac
cristy0c60a692010-11-04 01:09:47 +000020265 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020266 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020267 # or fails outright, so override atomically:
20268 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020269 ;;
20270
20271interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020272 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020273 need_lib_prefix=no
20274 need_version=no
20275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20276 soname_spec='${libname}${release}${shared_ext}$major'
20277 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20278 shlibpath_var=LD_LIBRARY_PATH
20279 shlibpath_overrides_runpath=no
20280 hardcode_into_libs=yes
20281 ;;
20282
20283irix5* | irix6* | nonstopux*)
20284 case $host_os in
20285 nonstopux*) version_type=nonstopux ;;
20286 *)
20287 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020288 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020289 else
20290 version_type=irix
20291 fi ;;
20292 esac
20293 need_lib_prefix=no
20294 need_version=no
20295 soname_spec='${libname}${release}${shared_ext}$major'
20296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20297 case $host_os in
20298 irix5* | nonstopux*)
20299 libsuff= shlibsuff=
20300 ;;
20301 *)
20302 case $LD in # libtool.m4 will add one of these switches to LD
20303 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20304 libsuff= shlibsuff= libmagic=32-bit;;
20305 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20306 libsuff=32 shlibsuff=N32 libmagic=N32;;
20307 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20308 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20309 *) libsuff= shlibsuff= libmagic=never-match;;
20310 esac
20311 ;;
20312 esac
20313 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20314 shlibpath_overrides_runpath=no
20315 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20316 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20317 hardcode_into_libs=yes
20318 ;;
20319
20320# No shared lib support for Linux oldld, aout, or coff.
20321linux*oldld* | linux*aout* | linux*coff*)
20322 dynamic_linker=no
20323 ;;
20324
cristy99bd5232011-12-07 14:38:20 +000020325# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020326linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020327 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020328 need_lib_prefix=no
20329 need_version=no
20330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20331 soname_spec='${libname}${release}${shared_ext}$major'
20332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20333 shlibpath_var=LD_LIBRARY_PATH
20334 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020335
cristy73bd4a52010-10-05 11:24:23 +000020336 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020337 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020338 $as_echo_n "(cached) " >&6
20339else
20340 lt_cv_shlibpath_overrides_runpath=no
20341 save_LDFLAGS=$LDFLAGS
20342 save_libdir=$libdir
20343 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20344 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020346/* end confdefs.h. */
20347
20348int
20349main ()
20350{
20351
20352 ;
20353 return 0;
20354}
20355_ACEOF
20356if ac_fn_cxx_try_link "$LINENO"; then :
20357 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020358 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020359fi
20360fi
20361rm -f core conftest.err conftest.$ac_objext \
20362 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020363 LDFLAGS=$save_LDFLAGS
20364 libdir=$save_libdir
20365
20366fi
20367
20368 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020369
20370 # This implies no fast_install, which is unacceptable.
20371 # Some rework will be needed to allow for fast_install
20372 # before this can be enabled.
20373 hardcode_into_libs=yes
20374
20375 # Add ABI-specific directories to the system library path.
20376 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20377
20378 # Append ld.so.conf contents to the search path
20379 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020380 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 +000020381 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020382
cristy73bd4a52010-10-05 11:24:23 +000020383 fi
20384
20385 # We used to test for /lib/ld.so.1 and disable shared libraries on
20386 # powerpc, because MkLinux only supported shared libraries with the
20387 # GNU dynamic linker. Since this was broken with cross compilers,
20388 # most powerpc-linux boxes support dynamic linking these days and
20389 # people can always --disable-shared, the test was removed, and we
20390 # assume the GNU/Linux dynamic linker is in use.
20391 dynamic_linker='GNU/Linux ld.so'
20392 ;;
20393
20394netbsd*)
20395 version_type=sunos
20396 need_lib_prefix=no
20397 need_version=no
20398 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20401 dynamic_linker='NetBSD (a.out) ld.so'
20402 else
20403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20404 soname_spec='${libname}${release}${shared_ext}$major'
20405 dynamic_linker='NetBSD ld.elf_so'
20406 fi
20407 shlibpath_var=LD_LIBRARY_PATH
20408 shlibpath_overrides_runpath=yes
20409 hardcode_into_libs=yes
20410 ;;
20411
20412newsos6)
cristy99bd5232011-12-07 14:38:20 +000020413 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20415 shlibpath_var=LD_LIBRARY_PATH
20416 shlibpath_overrides_runpath=yes
20417 ;;
20418
20419*nto* | *qnx*)
20420 version_type=qnx
20421 need_lib_prefix=no
20422 need_version=no
20423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20424 soname_spec='${libname}${release}${shared_ext}$major'
20425 shlibpath_var=LD_LIBRARY_PATH
20426 shlibpath_overrides_runpath=no
20427 hardcode_into_libs=yes
20428 dynamic_linker='ldqnx.so'
20429 ;;
20430
20431openbsd*)
20432 version_type=sunos
20433 sys_lib_dlsearch_path_spec="/usr/lib"
20434 need_lib_prefix=no
20435 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20436 case $host_os in
20437 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20438 *) need_version=no ;;
20439 esac
20440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20442 shlibpath_var=LD_LIBRARY_PATH
20443 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20444 case $host_os in
20445 openbsd2.[89] | openbsd2.[89].*)
20446 shlibpath_overrides_runpath=no
20447 ;;
20448 *)
20449 shlibpath_overrides_runpath=yes
20450 ;;
20451 esac
20452 else
20453 shlibpath_overrides_runpath=yes
20454 fi
20455 ;;
20456
20457os2*)
20458 libname_spec='$name'
20459 shrext_cmds=".dll"
20460 need_lib_prefix=no
20461 library_names_spec='$libname${shared_ext} $libname.a'
20462 dynamic_linker='OS/2 ld.exe'
20463 shlibpath_var=LIBPATH
20464 ;;
20465
20466osf3* | osf4* | osf5*)
20467 version_type=osf
20468 need_lib_prefix=no
20469 need_version=no
20470 soname_spec='${libname}${release}${shared_ext}$major'
20471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20472 shlibpath_var=LD_LIBRARY_PATH
20473 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20474 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20475 ;;
20476
20477rdos*)
20478 dynamic_linker=no
20479 ;;
20480
20481solaris*)
cristy99bd5232011-12-07 14:38:20 +000020482 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020483 need_lib_prefix=no
20484 need_version=no
20485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20486 soname_spec='${libname}${release}${shared_ext}$major'
20487 shlibpath_var=LD_LIBRARY_PATH
20488 shlibpath_overrides_runpath=yes
20489 hardcode_into_libs=yes
20490 # ldd complains unless libraries are executable
20491 postinstall_cmds='chmod +x $lib'
20492 ;;
20493
20494sunos4*)
20495 version_type=sunos
20496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20497 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20498 shlibpath_var=LD_LIBRARY_PATH
20499 shlibpath_overrides_runpath=yes
20500 if test "$with_gnu_ld" = yes; then
20501 need_lib_prefix=no
20502 fi
20503 need_version=yes
20504 ;;
20505
20506sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020507 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20509 soname_spec='${libname}${release}${shared_ext}$major'
20510 shlibpath_var=LD_LIBRARY_PATH
20511 case $host_vendor in
20512 sni)
20513 shlibpath_overrides_runpath=no
20514 need_lib_prefix=no
20515 runpath_var=LD_RUN_PATH
20516 ;;
20517 siemens)
20518 need_lib_prefix=no
20519 ;;
20520 motorola)
20521 need_lib_prefix=no
20522 need_version=no
20523 shlibpath_overrides_runpath=no
20524 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20525 ;;
20526 esac
20527 ;;
20528
20529sysv4*MP*)
20530 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020531 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020532 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20533 soname_spec='$libname${shared_ext}.$major'
20534 shlibpath_var=LD_LIBRARY_PATH
20535 fi
20536 ;;
20537
20538sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20539 version_type=freebsd-elf
20540 need_lib_prefix=no
20541 need_version=no
20542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20543 soname_spec='${libname}${release}${shared_ext}$major'
20544 shlibpath_var=LD_LIBRARY_PATH
20545 shlibpath_overrides_runpath=yes
20546 hardcode_into_libs=yes
20547 if test "$with_gnu_ld" = yes; then
20548 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20549 else
20550 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20551 case $host_os in
20552 sco3.2v5*)
20553 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20554 ;;
20555 esac
20556 fi
20557 sys_lib_dlsearch_path_spec='/usr/lib'
20558 ;;
20559
20560tpf*)
20561 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020562 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020563 need_lib_prefix=no
20564 need_version=no
20565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20566 shlibpath_var=LD_LIBRARY_PATH
20567 shlibpath_overrides_runpath=no
20568 hardcode_into_libs=yes
20569 ;;
20570
20571uts4*)
cristy99bd5232011-12-07 14:38:20 +000020572 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20574 soname_spec='${libname}${release}${shared_ext}$major'
20575 shlibpath_var=LD_LIBRARY_PATH
20576 ;;
20577
20578*)
20579 dynamic_linker=no
20580 ;;
20581esac
20582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20583$as_echo "$dynamic_linker" >&6; }
20584test "$dynamic_linker" = no && can_build_shared=no
20585
20586variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20587if test "$GCC" = yes; then
20588 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20589fi
20590
20591if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20592 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20593fi
20594if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20595 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20596fi
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
cristy0c60a692010-11-04 01:09:47 +000020633
20634
cristy73bd4a52010-10-05 11:24:23 +000020635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20636$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20637hardcode_action_CXX=
20638if test -n "$hardcode_libdir_flag_spec_CXX" ||
20639 test -n "$runpath_var_CXX" ||
20640 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20641
20642 # We can hardcode non-existent directories.
20643 if test "$hardcode_direct_CXX" != no &&
20644 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20645 # have to relink, otherwise we might link with an installed library
20646 # when we should be linking with a yet-to-be-installed one
20647 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20648 test "$hardcode_minus_L_CXX" != no; then
20649 # Linking always hardcodes the temporary library directory.
20650 hardcode_action_CXX=relink
20651 else
20652 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20653 hardcode_action_CXX=immediate
20654 fi
20655else
20656 # We cannot hardcode anything, or else we can only hardcode existing
20657 # directories.
20658 hardcode_action_CXX=unsupported
20659fi
20660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20661$as_echo "$hardcode_action_CXX" >&6; }
20662
20663if test "$hardcode_action_CXX" = relink ||
20664 test "$inherit_rpath_CXX" = yes; then
20665 # Fast installation is not supported
20666 enable_fast_install=no
20667elif test "$shlibpath_overrides_runpath" = yes ||
20668 test "$enable_shared" = no; then
20669 # Fast installation is not necessary
20670 enable_fast_install=needless
20671fi
20672
20673
20674
20675
20676
20677
20678
20679 fi # test -n "$compiler"
20680
20681 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020682 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020683 LDCXX=$LD
20684 LD=$lt_save_LD
20685 GCC=$lt_save_GCC
20686 with_gnu_ld=$lt_save_with_gnu_ld
20687 lt_cv_path_LDCXX=$lt_cv_path_LD
20688 lt_cv_path_LD=$lt_save_path_LD
20689 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20690 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20691fi # test "$_lt_caught_CXX_error" != yes
20692
20693ac_ext=c
20694ac_cpp='$CPP $CPPFLAGS'
20695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20697ac_compiler_gnu=$ac_cv_c_compiler_gnu
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
cristy99bd5232011-12-07 14:38:20 +000020711
20712
cristy73bd4a52010-10-05 11:24:23 +000020713 ac_config_commands="$ac_config_commands libtool"
20714
20715
20716
20717
20718# Only expand once:
20719
20720
20721
cristy3ed852e2009-09-05 21:47:34 +000020722
20723
cristy3ed852e2009-09-05 21:47:34 +000020724# Check to see if building shared libraries
20725libtool_build_shared_libs='no'
20726if test "$enable_shared" = 'yes'; then
20727 libtool_build_shared_libs='yes'
20728fi
20729
20730# Check to see if building static libraries
20731libtool_build_static_libs='no'
20732if test "$enable_static" = 'yes'; then
20733 libtool_build_static_libs='yes'
20734fi
20735
cristy73bd4a52010-10-05 11:24:23 +000020736 if test "${libtool_build_shared_libs}" = 'yes'; then
20737 WITH_SHARED_LIBS_TRUE=
20738 WITH_SHARED_LIBS_FALSE='#'
20739else
20740 WITH_SHARED_LIBS_TRUE='#'
20741 WITH_SHARED_LIBS_FALSE=
20742fi
20743
cristy3ed852e2009-09-05 21:47:34 +000020744#
20745# Enable support for building loadable modules
20746#
cristyaf4cbf32012-10-16 23:47:41 +000020747build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020748
20749# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020750if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020751 withval=$with_modules; with_modules=$withval
20752else
cristy5a1cefd2010-01-06 20:42:35 +000020753 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020754fi
20755
20756
20757# Only allow building loadable modules if we are building shared libraries
20758if test "$with_modules" != 'no' ; then
20759 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020760 { $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 +000020761$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020762 build_modules='no'
20763 else
20764 build_modules='yes'
20765 fi
cristy3ed852e2009-09-05 21:47:34 +000020766fi
cristyc6722092012-10-14 00:19:31 +000020767if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020768
cristy8b350f62009-11-15 23:12:43 +000020769$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020770
cristyfa161182012-12-19 15:45:28 +000020771 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020772fi
cristyc6722092012-10-14 00:19:31 +000020773 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020774 WITH_MODULES_TRUE=
20775 WITH_MODULES_FALSE='#'
20776else
20777 WITH_MODULES_TRUE='#'
20778 WITH_MODULES_FALSE=
20779fi
20780
cristy3ed852e2009-09-05 21:47:34 +000020781
cristy3ed852e2009-09-05 21:47:34 +000020782# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020783# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020784# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020785if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020786 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20787else
20788 enable_delegate_build='no'
20789fi
20790
20791
20792# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020793if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020794 enableval=$enable_deprecated; enable_deprecated=$enableval
20795else
20796 enable_deprecated='no'
20797fi
20798
20799
20800if test "$enable_deprecated" = 'yes'; then
20801
cristy8b350f62009-11-15 23:12:43 +000020802$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020803
20804else
20805 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20806fi
20807
20808# Build a version of ImageMagick which operates uninstalled.
20809# Used to build distributions located via MAGICK_HOME / executable path
20810# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020811if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020812 enableval=$enable_installed; enable_installed=$enableval
20813else
20814 enable_installed='yes'
20815fi
20816
20817
20818if test "$enable_installed" = 'yes'; then
20819
cristy8b350f62009-11-15 23:12:43 +000020820$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020821
20822else
20823 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20824fi
20825
20826# Permit enciphering and deciphering image pixels.
20827# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020828if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020829 enableval=$enable_cipher; enable_cipher=$enableval
20830else
20831 enable_cipher='yes'
20832fi
20833
20834
20835if test "$enable_cipher" = 'yes'; then
20836
cristy8b350f62009-11-15 23:12:43 +000020837$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020838
20839fi
20840
cristy6e3607c2011-09-13 13:59:17 +000020841# Build a zero-configuration version of ImageMagick.
20842# Check whether --enable-zero-configuration was given.
20843if test "${enable_zero_configuration+set}" = set; then :
20844 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020845else
cristy6e3607c2011-09-13 13:59:17 +000020846 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020847fi
20848
20849
cristy6e3607c2011-09-13 13:59:17 +000020850if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020851
cristy6e3607c2011-09-13 13:59:17 +000020852$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020853
cristy81af5702011-09-13 14:20:58 +000020854 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020855fi
20856
20857# Build a high dynamic range version of ImageMagick.
20858# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020859if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020860 enableval=$enable_hdri; enable_hdri=$enableval
20861else
cristy191c0b72012-08-12 16:29:52 +000020862 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000020863fi
20864
20865
20866MAGICK_HDRI=""
20867if test "$enable_hdri" = 'yes'; then
20868 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000020869 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000020870 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000020871else
20872 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000020873fi
20874
cristye52f12f2012-12-31 15:32:36 +000020875cat >>confdefs.h <<_ACEOF
20876#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
20877_ACEOF
20878
20879MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
20880CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000020881CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000020882
cristy3ed852e2009-09-05 21:47:34 +000020883# Build a version of ImageMagick with assert statements.
20884# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020885if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020886 enableval=$enable_assert; enable_assert=$enableval
20887else
20888 enable_assert='yes'
20889fi
20890
20891
20892if test "$enable_assert" = 'no'; then
20893
cristy8b350f62009-11-15 23:12:43 +000020894$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020895
20896fi
20897
cristya448bd22011-10-14 12:38:13 +000020898# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000020899
20900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20901$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20902 # Check whether --enable-maintainer-mode was given.
20903if test "${enable_maintainer_mode+set}" = set; then :
20904 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20905else
20906 USE_MAINTAINER_MODE=no
20907fi
20908
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20910$as_echo "$USE_MAINTAINER_MODE" >&6; }
20911 if test $USE_MAINTAINER_MODE = yes; then
20912 MAINTAINER_MODE_TRUE=
20913 MAINTAINER_MODE_FALSE='#'
20914else
20915 MAINTAINER_MODE_TRUE='#'
20916 MAINTAINER_MODE_FALSE=
20917fi
20918
20919 MAINT=$MAINTAINER_MODE_TRUE
20920
20921
cristy3ed852e2009-09-05 21:47:34 +000020922
cristy944e51f2013-04-16 18:45:02 +000020923# Enable hugepages support
20924# Check whether --enable-hugepages was given.
20925if test "${enable_hugepages+set}" = set; then :
20926 enableval=$enable_hugepages; enable_hugepages=$enableval
20927else
20928 enable_hugepages='no'
20929fi
20930
20931
cristy3ed852e2009-09-05 21:47:34 +000020932# Enable ccmalloc memory debugging support
20933# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020934if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020935 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20936else
20937 enable_ccmalloc='no'
20938fi
20939
20940
20941# Enable Electric Fence memory debugging support
20942# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020943if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020944 enableval=$enable_efence; enable_efence=$enableval
20945else
20946 enable_efence='no'
20947fi
20948
20949
20950# Enable prof-based profiling support
20951# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020952if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020953 enableval=$enable_prof; enable_prof=$enableval
20954else
20955 enable_prof='no'
20956fi
20957
20958
20959# Enable gprof-based profiling support
20960# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020961if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020962 enableval=$enable_gprof; enable_gprof=$enableval
20963else
20964 enable_gprof='no'
20965fi
20966
20967
20968# Enable gcov-based profiling support
20969# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020970if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020971 enableval=$enable_gcov; enable_gcov=$enableval
20972else
20973 enable_gcov='no'
20974fi
20975
20976
20977enable_profiling='no'
20978if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20979 enable_profiling='yes'
20980 if test "$libtool_build_shared_libs" = 'yes'; then
20981 echo "Warning: Can not profile code using shared libraries"
20982 fi
20983fi
20984
20985# Magick API method prefix
20986
20987# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020988if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000020989 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000020990else
cristyfc3d0222012-02-07 15:05:57 +000020991 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000020992fi
20993
20994
cristyfc3d0222012-02-07 15:05:57 +000020995if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000020996
20997cat >>confdefs.h <<_ACEOF
20998#define NAMESPACE_PREFIX $with_method_prefix
20999_ACEOF
21000
cristyfc3d0222012-02-07 15:05:57 +000021001 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021002fi
21003
cristy71d8c202012-03-20 17:05:01 +000021004# Enable legacy support (default no)
21005# Check whether --enable-legacy-support was given.
21006if test "${enable_legacy_support+set}" = set; then :
21007 enableval=$enable_legacy_support; with_legacy_support=$enableval
21008else
21009 with_legacy_support='no'
21010fi
21011
21012 if test "$with_legacy_support" != 'no'; then
21013 LEGACY_SUPPORT_TRUE=
21014 LEGACY_SUPPORT_FALSE='#'
21015else
21016 LEGACY_SUPPORT_TRUE='#'
21017 LEGACY_SUPPORT_FALSE=
21018fi
21019
21020
cristy3ed852e2009-09-05 21:47:34 +000021021# Number of bits in a Quantum
21022
21023# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021024if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021025 withval=$with_quantum_depth; with_quantum_depth=$withval
21026else
21027 with_quantum_depth=16
21028fi
21029
21030
21031if test "$with_quantum_depth" != '8'; then
21032 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21033fi
21034
21035case "${with_quantum_depth}" in
21036 8 ) ;;
21037 16 ) ;;
21038 32 ) ;;
21039 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021040 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021041esac
21042QUANTUM_DEPTH="$with_quantum_depth"
21043
21044cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021045#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021046_ACEOF
21047
cristya371edf2013-02-06 13:42:17 +000021048MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021049CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021050CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021051
cristy01ff9f32012-12-01 18:15:29 +000021052# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021053MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021054if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021055 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021056fi
cristy01ff9f32012-12-01 18:15:29 +000021057
21058
cristy3ed852e2009-09-05 21:47:34 +000021059# Set pixel cache threshold
21060
21061# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021062if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021063 withval=$with_cache; with_cache=$withval
21064else
21065 with_cache=''
21066fi
21067
21068
21069if test "$with_cache" != ''; then
21070
21071cat >>confdefs.h <<_ACEOF
21072#define PixelCacheThreshold $with_cache
21073_ACEOF
21074
21075 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21076fi
21077
21078# Disable/Enable support for full delegate paths
21079
21080# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021081if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021082 withval=$with_frozenpaths; with_frozenpaths=$withval
21083else
21084 with_frozenpaths='no'
21085fi
21086
21087
21088# Enable build/install of Magick++
21089
21090# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021091if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021092 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21093else
21094 with_magick_plus_plus='yes'
21095fi
21096
21097
cristy3a75f062012-09-08 23:29:40 +000021098# Encode the this name into the shared library.
21099
21100# Check whether --with-package-release-name was given.
21101if test "${with_package_release_name+set}" = set; then :
21102 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21103fi
21104
21105
21106
cristy3ed852e2009-09-05 21:47:34 +000021107# Disable build/install of PerlMagick.
21108
21109# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021110if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021111 withval=$with_perl; with_perl=$withval
21112else
cristyb5f4e2f2010-04-25 00:49:11 +000021113 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021114fi
21115
21116
21117# Options to pass when configuring PerlMagick
21118
21119# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021120if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021121 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021122fi
21123
21124
cristy3ed852e2009-09-05 21:47:34 +000021125
21126# Enable umem, object-caching memory allocation library.
21127
21128# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021129if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021130 withval=$with_umem; with_umem=$withval
21131else
21132 with_umem='no'
21133fi
21134
21135if test "$with_umem" != 'yes' ; then
21136 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21137fi
21138
21139#
21140# Specify path to shared libstdc++ if not in normal location
21141#
21142
21143# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021144if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021145 withval=$with_libstdc; with_libstdc=$withval
21146else
21147 with_libstdc=''
21148fi
21149
21150
21151if test "$with_libstdc" != ''; then
21152 if test -d "$with_libstdc"; then
21153 LIBSTDCLDFLAGS="-L$with_libstdc"
21154 fi
21155fi
21156
21157
21158# Does gcc required -traditional?
21159if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021161$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021162if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021163 $as_echo_n "(cached) " >&6
21164else
21165 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021167/* end confdefs.h. */
21168#include <sgtty.h>
21169Autoconf TIOCGETP
21170_ACEOF
21171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021172 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021173 ac_cv_prog_gcc_traditional=yes
21174else
21175 ac_cv_prog_gcc_traditional=no
21176fi
21177rm -f conftest*
21178
21179
21180 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021182/* end confdefs.h. */
21183#include <termio.h>
21184Autoconf TCGETA
21185_ACEOF
21186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021187 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021188 ac_cv_prog_gcc_traditional=yes
21189fi
21190rm -f conftest*
21191
21192 fi
21193fi
cristy8b350f62009-11-15 23:12:43 +000021194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021195$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21196 if test $ac_cv_prog_gcc_traditional = yes; then
21197 CC="$CC -traditional"
21198 fi
21199fi
21200
21201
21202########
21203#
21204# Set defines required to build DLLs and modules using MinGW
21205#
21206########
21207# These options are set for multi-thread DLL module build
21208# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21209# module: _DLL
21210# executable/Magick++: _DLL _MAGICKMOD_
21211MODULE_EXTRA_CPPFLAGS=''
21212LIBRARY_EXTRA_CPPFLAGS=''
21213if test "${native_win32_build}" = 'yes'; then
21214 if test "${libtool_build_shared_libs}" = 'yes'; then
21215 CPPFLAGS="$CPPFLAGS -D_DLL"
21216 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21217 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21218 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021219 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021220 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21221 else
21222 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21223 fi
21224 else
21225 CPPFLAGS="$CPPFLAGS -D_LIB"
21226 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21227 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21228 fi
21229 if test "$with_threads" = 'yes'; then
21230 CPPFLAGS="$CPPFLAGS -D_MT"
21231 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21232 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21233 fi
21234fi
21235
21236
21237
21238# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021240$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021241if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021242 $as_echo_n "(cached) " >&6
21243else
cristy8b350f62009-11-15 23:12:43 +000021244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021245/* end confdefs.h. */
21246#include <stdlib.h>
21247#include <stdarg.h>
21248#include <string.h>
21249#include <float.h>
21250
21251int
21252main ()
21253{
21254
21255 ;
21256 return 0;
21257}
21258_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021259if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021260 ac_cv_header_stdc=yes
21261else
cristy8b350f62009-11-15 23:12:43 +000021262 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021263fi
cristy3ed852e2009-09-05 21:47:34 +000021264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21265
21266if test $ac_cv_header_stdc = yes; then
21267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021269/* end confdefs.h. */
21270#include <string.h>
21271
21272_ACEOF
21273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021274 $EGREP "memchr" >/dev/null 2>&1; then :
21275
cristy3ed852e2009-09-05 21:47:34 +000021276else
21277 ac_cv_header_stdc=no
21278fi
21279rm -f conftest*
21280
21281fi
21282
21283if test $ac_cv_header_stdc = yes; then
21284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021286/* end confdefs.h. */
21287#include <stdlib.h>
21288
21289_ACEOF
21290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021291 $EGREP "free" >/dev/null 2>&1; then :
21292
cristy3ed852e2009-09-05 21:47:34 +000021293else
21294 ac_cv_header_stdc=no
21295fi
21296rm -f conftest*
21297
21298fi
21299
21300if test $ac_cv_header_stdc = yes; then
21301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021302 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021303 :
21304else
cristy8b350f62009-11-15 23:12:43 +000021305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021306/* end confdefs.h. */
21307#include <ctype.h>
21308#include <stdlib.h>
21309#if ((' ' & 0x0FF) == 0x020)
21310# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21311# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21312#else
21313# define ISLOWER(c) \
21314 (('a' <= (c) && (c) <= 'i') \
21315 || ('j' <= (c) && (c) <= 'r') \
21316 || ('s' <= (c) && (c) <= 'z'))
21317# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21318#endif
21319
21320#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21321int
21322main ()
21323{
21324 int i;
21325 for (i = 0; i < 256; i++)
21326 if (XOR (islower (i), ISLOWER (i))
21327 || toupper (i) != TOUPPER (i))
21328 return 2;
21329 return 0;
21330}
21331_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021332if ac_fn_c_try_run "$LINENO"; then :
21333
cristy3ed852e2009-09-05 21:47:34 +000021334else
cristy8b350f62009-11-15 23:12:43 +000021335 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021336fi
cristy8b350f62009-11-15 23:12:43 +000021337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21338 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021339fi
21340
cristy3ed852e2009-09-05 21:47:34 +000021341fi
21342fi
cristy8b350f62009-11-15 23:12:43 +000021343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021344$as_echo "$ac_cv_header_stdc" >&6; }
21345if test $ac_cv_header_stdc = yes; then
21346
cristy8b350f62009-11-15 23:12:43 +000021347$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021348
21349fi
21350
21351if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021352 { $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 +000021353 header files. Compilation cannot proceed. Please install the ANSI C
21354 headers and rerun this script." >&5
21355$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21356 header files. Compilation cannot proceed. Please install the ANSI C
21357 headers and rerun this script." >&2;};
21358fi
cristya0b81c32010-01-22 02:54:33 +000021359
21360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21361$as_echo_n "checking whether to enable assertions... " >&6; }
21362 # Check whether --enable-assert was given.
21363if test "${enable_assert+set}" = set; then :
21364 enableval=$enable_assert; ac_enable_assert=$enableval
21365 if test "x$enableval" = xno; then :
21366
21367$as_echo "#define NDEBUG 1" >>confdefs.h
21368
21369elif test "x$enableval" != xyes; then :
21370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21371$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21372 ac_enable_assert=yes
21373fi
21374else
21375 ac_enable_assert=yes
21376fi
21377
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21379$as_echo "$ac_enable_assert" >&6; }
21380
cristy3ed852e2009-09-05 21:47:34 +000021381ac_header_dirent=no
21382for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21383 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021385$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021386if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021387 $as_echo_n "(cached) " >&6
21388else
cristy8b350f62009-11-15 23:12:43 +000021389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021390/* end confdefs.h. */
21391#include <sys/types.h>
21392#include <$ac_hdr>
21393
21394int
21395main ()
21396{
21397if ((DIR *) 0)
21398return 0;
21399 ;
21400 return 0;
21401}
21402_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021403if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021404 eval "$as_ac_Header=yes"
21405else
cristy8b350f62009-11-15 23:12:43 +000021406 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021407fi
cristy3ed852e2009-09-05 21:47:34 +000021408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21409fi
cristy8b350f62009-11-15 23:12:43 +000021410eval ac_res=\$$as_ac_Header
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021412$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021413if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021414 cat >>confdefs.h <<_ACEOF
21415#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21416_ACEOF
21417
21418ac_header_dirent=$ac_hdr; break
21419fi
21420
21421done
21422# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21423if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021425$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021426if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021427 $as_echo_n "(cached) " >&6
21428else
21429 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021431/* end confdefs.h. */
21432
21433/* Override any GCC internal prototype to avoid an error.
21434 Use char because int might match the return type of a GCC
21435 builtin and then its argument prototype would still apply. */
21436#ifdef __cplusplus
21437extern "C"
21438#endif
21439char opendir ();
21440int
21441main ()
21442{
21443return opendir ();
21444 ;
21445 return 0;
21446}
21447_ACEOF
21448for ac_lib in '' dir; do
21449 if test -z "$ac_lib"; then
21450 ac_res="none required"
21451 else
21452 ac_res=-l$ac_lib
21453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21454 fi
cristy8b350f62009-11-15 23:12:43 +000021455 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021456 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021457fi
cristy8b350f62009-11-15 23:12:43 +000021458rm -f core conftest.err conftest.$ac_objext \
21459 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021460 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021461 break
21462fi
21463done
cristyda16f162011-02-19 23:52:17 +000021464if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021465
cristy3ed852e2009-09-05 21:47:34 +000021466else
21467 ac_cv_search_opendir=no
21468fi
21469rm conftest.$ac_ext
21470LIBS=$ac_func_search_save_LIBS
21471fi
cristy8b350f62009-11-15 23:12:43 +000021472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021473$as_echo "$ac_cv_search_opendir" >&6; }
21474ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021475if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21477
21478fi
21479
21480else
cristy8b350f62009-11-15 23:12:43 +000021481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021482$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021483if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021484 $as_echo_n "(cached) " >&6
21485else
21486 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021488/* end confdefs.h. */
21489
21490/* Override any GCC internal prototype to avoid an error.
21491 Use char because int might match the return type of a GCC
21492 builtin and then its argument prototype would still apply. */
21493#ifdef __cplusplus
21494extern "C"
21495#endif
21496char opendir ();
21497int
21498main ()
21499{
21500return opendir ();
21501 ;
21502 return 0;
21503}
21504_ACEOF
21505for ac_lib in '' x; do
21506 if test -z "$ac_lib"; then
21507 ac_res="none required"
21508 else
21509 ac_res=-l$ac_lib
21510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21511 fi
cristy8b350f62009-11-15 23:12:43 +000021512 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021513 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021514fi
cristy8b350f62009-11-15 23:12:43 +000021515rm -f core conftest.err conftest.$ac_objext \
21516 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021517 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021518 break
21519fi
21520done
cristyda16f162011-02-19 23:52:17 +000021521if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021522
cristy3ed852e2009-09-05 21:47:34 +000021523else
21524 ac_cv_search_opendir=no
21525fi
21526rm conftest.$ac_ext
21527LIBS=$ac_func_search_save_LIBS
21528fi
cristy8b350f62009-11-15 23:12:43 +000021529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021530$as_echo "$ac_cv_search_opendir" >&6; }
21531ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021532if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21534
21535fi
21536
21537fi
21538
21539
21540# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021541for 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 +000021542do :
21543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21544ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021545if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021546 cat >>confdefs.h <<_ACEOF
21547#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21548_ACEOF
21549
21550fi
21551
21552done
21553
21554
21555########
21556#
21557# Checks for typedefs, structures, and compiler characteristics.
21558#
21559########
21560
cristy8b350f62009-11-15 23:12:43 +000021561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021562$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021563if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021564 $as_echo_n "(cached) " >&6
21565else
cristy8b350f62009-11-15 23:12:43 +000021566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021567/* end confdefs.h. */
21568
cristy14fefe52012-05-21 00:59:18 +000021569 #include <stdbool.h>
21570 #ifndef bool
21571 "error: bool is not defined"
21572 #endif
21573 #ifndef false
21574 "error: false is not defined"
21575 #endif
21576 #if false
21577 "error: false is not 0"
21578 #endif
21579 #ifndef true
21580 "error: true is not defined"
21581 #endif
21582 #if true != 1
21583 "error: true is not 1"
21584 #endif
21585 #ifndef __bool_true_false_are_defined
21586 "error: __bool_true_false_are_defined is not defined"
21587 #endif
cristy3ed852e2009-09-05 21:47:34 +000021588
cristy14fefe52012-05-21 00:59:18 +000021589 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021590
cristy14fefe52012-05-21 00:59:18 +000021591 char a[true == 1 ? 1 : -1];
21592 char b[false == 0 ? 1 : -1];
21593 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21594 char d[(bool) 0.5 == true ? 1 : -1];
21595 /* See body of main program for 'e'. */
21596 char f[(_Bool) 0.0 == false ? 1 : -1];
21597 char g[true];
21598 char h[sizeof (_Bool)];
21599 char i[sizeof s.t];
21600 enum { j = false, k = true, l = false * true, m = true * 256 };
21601 /* The following fails for
21602 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21603 _Bool n[m];
21604 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21605 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21606 /* Catch a bug in an HP-UX C compiler. See
21607 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21608 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21609 */
21610 _Bool q = true;
21611 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021612
21613int
21614main ()
21615{
21616
cristy14fefe52012-05-21 00:59:18 +000021617 bool e = &s;
21618 *pq |= q;
21619 *pq |= ! q;
21620 /* Refer to every declared value, to avoid compiler optimizations. */
21621 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21622 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021623
21624 ;
21625 return 0;
21626}
21627_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021628if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021629 ac_cv_header_stdbool_h=yes
21630else
cristy8b350f62009-11-15 23:12:43 +000021631 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021632fi
cristy3ed852e2009-09-05 21:47:34 +000021633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21634fi
cristy8b350f62009-11-15 23:12:43 +000021635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021636$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021637 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021638if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021639
21640cat >>confdefs.h <<_ACEOF
21641#define HAVE__BOOL 1
21642_ACEOF
21643
21644
21645fi
21646
cristy14fefe52012-05-21 00:59:18 +000021647
cristy3ed852e2009-09-05 21:47:34 +000021648if test $ac_cv_header_stdbool_h = yes; then
21649
cristy8b350f62009-11-15 23:12:43 +000021650$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021651
21652fi
21653
cristy8b350f62009-11-15 23:12:43 +000021654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021655$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021656if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021657 $as_echo_n "(cached) " >&6
21658else
cristy8b350f62009-11-15 23:12:43 +000021659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021660/* end confdefs.h. */
21661
21662int
21663main ()
21664{
21665
21666volatile int x;
21667int * volatile y = (int *) 0;
21668return !x && !y;
21669 ;
21670 return 0;
21671}
21672_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021673if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021674 ac_cv_c_volatile=yes
21675else
cristy8b350f62009-11-15 23:12:43 +000021676 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021677fi
cristy3ed852e2009-09-05 21:47:34 +000021678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21679fi
cristy8b350f62009-11-15 23:12:43 +000021680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021681$as_echo "$ac_cv_c_volatile" >&6; }
21682if test $ac_cv_c_volatile = no; then
21683
cristy8b350f62009-11-15 23:12:43 +000021684$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021685
21686fi
21687
cristy8b350f62009-11-15 23:12:43 +000021688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021689$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021690if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021691 $as_echo_n "(cached) " >&6
21692else
cristy8b350f62009-11-15 23:12:43 +000021693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021694/* end confdefs.h. */
21695#define x(y) #y
21696
21697char *s = x(teststring);
21698_ACEOF
21699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021700 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021701 ac_cv_c_stringize=no
21702else
21703 ac_cv_c_stringize=yes
21704fi
21705rm -f conftest*
21706
21707fi
cristy8b350f62009-11-15 23:12:43 +000021708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021709$as_echo "$ac_cv_c_stringize" >&6; }
21710if test $ac_cv_c_stringize = yes; then
21711
cristy8b350f62009-11-15 23:12:43 +000021712$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021713
21714fi
21715
cristy8b350f62009-11-15 23:12:43 +000021716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021717$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021718if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021719 $as_echo_n "(cached) " >&6
21720else
cristy8b350f62009-11-15 23:12:43 +000021721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021722/* end confdefs.h. */
21723#include <sys/types.h>
21724#include <sys/stat.h>
21725
21726#if defined S_ISBLK && defined S_IFDIR
21727extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21728#endif
21729
21730#if defined S_ISBLK && defined S_IFCHR
21731extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21732#endif
21733
21734#if defined S_ISLNK && defined S_IFREG
21735extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21736#endif
21737
21738#if defined S_ISSOCK && defined S_IFREG
21739extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21740#endif
21741
21742_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021743if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021744 ac_cv_header_stat_broken=no
21745else
cristy8b350f62009-11-15 23:12:43 +000021746 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021747fi
cristy3ed852e2009-09-05 21:47:34 +000021748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21749fi
cristy8b350f62009-11-15 23:12:43 +000021750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021751$as_echo "$ac_cv_header_stat_broken" >&6; }
21752if test $ac_cv_header_stat_broken = yes; then
21753
cristy8b350f62009-11-15 23:12:43 +000021754$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021755
21756fi
21757
cristy8b350f62009-11-15 23:12:43 +000021758{ $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 +000021759$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021760if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021761 $as_echo_n "(cached) " >&6
21762else
cristy8b350f62009-11-15 23:12:43 +000021763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021764/* end confdefs.h. */
21765#include <sys/types.h>
21766#include <sys/time.h>
21767#include <time.h>
21768
21769int
21770main ()
21771{
21772if ((struct tm *) 0)
21773return 0;
21774 ;
21775 return 0;
21776}
21777_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021778if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021779 ac_cv_header_time=yes
21780else
cristy8b350f62009-11-15 23:12:43 +000021781 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021782fi
cristy3ed852e2009-09-05 21:47:34 +000021783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21784fi
cristy8b350f62009-11-15 23:12:43 +000021785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021786$as_echo "$ac_cv_header_time" >&6; }
21787if test $ac_cv_header_time = yes; then
21788
cristy8b350f62009-11-15 23:12:43 +000021789$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021790
21791fi
21792
cristy8b350f62009-11-15 23:12:43 +000021793{ $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 +000021794$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021795if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021796 $as_echo_n "(cached) " >&6
21797else
cristy8b350f62009-11-15 23:12:43 +000021798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021799/* end confdefs.h. */
21800#include <sys/types.h>
21801#include <time.h>
21802
21803int
21804main ()
21805{
21806struct tm tm;
21807 int *p = &tm.tm_sec;
21808 return !p;
21809 ;
21810 return 0;
21811}
21812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021813if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021814 ac_cv_struct_tm=time.h
21815else
cristy8b350f62009-11-15 23:12:43 +000021816 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021817fi
cristy3ed852e2009-09-05 21:47:34 +000021818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21819fi
cristy8b350f62009-11-15 23:12:43 +000021820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021821$as_echo "$ac_cv_struct_tm" >&6; }
21822if test $ac_cv_struct_tm = sys/time.h; then
21823
cristy8b350f62009-11-15 23:12:43 +000021824$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021825
21826fi
21827
cristy92703d82010-04-26 00:18:18 +000021828ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21829#include <$ac_cv_struct_tm>
21830
21831"
cristyda16f162011-02-19 23:52:17 +000021832if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021833
21834cat >>confdefs.h <<_ACEOF
21835#define HAVE_STRUCT_TM_TM_ZONE 1
21836_ACEOF
21837
21838
21839fi
21840
21841if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21842
21843$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21844
21845else
21846 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21847"
cristyda16f162011-02-19 23:52:17 +000021848if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021849 ac_have_decl=1
21850else
21851 ac_have_decl=0
21852fi
21853
21854cat >>confdefs.h <<_ACEOF
21855#define HAVE_DECL_TZNAME $ac_have_decl
21856_ACEOF
21857
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21859$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021860if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021861 $as_echo_n "(cached) " >&6
21862else
21863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21864/* end confdefs.h. */
21865#include <time.h>
21866#if !HAVE_DECL_TZNAME
21867extern char *tzname[];
21868#endif
21869
21870int
21871main ()
21872{
21873return tzname[0][0];
21874 ;
21875 return 0;
21876}
21877_ACEOF
21878if ac_fn_c_try_link "$LINENO"; then :
21879 ac_cv_var_tzname=yes
21880else
21881 ac_cv_var_tzname=no
21882fi
21883rm -f core conftest.err conftest.$ac_objext \
21884 conftest$ac_exeext conftest.$ac_ext
21885fi
21886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21887$as_echo "$ac_cv_var_tzname" >&6; }
21888 if test $ac_cv_var_tzname = yes; then
21889
21890$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21891
21892 fi
21893fi
21894
cristy8b350f62009-11-15 23:12:43 +000021895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021896$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021897if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021898 $as_echo_n "(cached) " >&6
21899else
21900 echo '#! /bin/cat
21901exit 69
21902' >conftest
21903chmod u+x conftest
21904(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21905if test $? -ne 69; then
21906 ac_cv_sys_interpreter=yes
21907else
21908 ac_cv_sys_interpreter=no
21909fi
21910rm -f conftest
21911fi
cristy8b350f62009-11-15 23:12:43 +000021912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021913$as_echo "$ac_cv_sys_interpreter" >&6; }
21914interpval=$ac_cv_sys_interpreter
21915
21916
cristye80f9cb2013-01-09 01:09:31 +000021917#
21918# Checks for language qualifiers and semantics.
21919#
21920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21921$as_echo_n "checking whether char is unsigned... " >&6; }
21922if ${ac_cv_c_char_unsigned+:} false; then :
21923 $as_echo_n "(cached) " >&6
21924else
21925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21926/* end confdefs.h. */
21927$ac_includes_default
21928int
21929main ()
21930{
21931static int test_array [1 - 2 * !(((char) -1) < 0)];
21932test_array [0] = 0;
21933return test_array [0];
21934
21935 ;
21936 return 0;
21937}
21938_ACEOF
21939if ac_fn_c_try_compile "$LINENO"; then :
21940 ac_cv_c_char_unsigned=no
21941else
21942 ac_cv_c_char_unsigned=yes
21943fi
21944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21945fi
21946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21947$as_echo "$ac_cv_c_char_unsigned" >&6; }
21948if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21949 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21950
21951fi
21952
21953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21954$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21955if ${ac_cv_c_const+:} false; then :
21956 $as_echo_n "(cached) " >&6
21957else
21958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21959/* end confdefs.h. */
21960
21961int
21962main ()
21963{
21964
21965#ifndef __cplusplus
21966 /* Ultrix mips cc rejects this sort of thing. */
21967 typedef int charset[2];
21968 const charset cs = { 0, 0 };
21969 /* SunOS 4.1.1 cc rejects this. */
21970 char const *const *pcpcc;
21971 char **ppc;
21972 /* NEC SVR4.0.2 mips cc rejects this. */
21973 struct point {int x, y;};
21974 static struct point const zero = {0,0};
21975 /* AIX XL C 1.02.0.0 rejects this.
21976 It does not let you subtract one const X* pointer from another in
21977 an arm of an if-expression whose if-part is not a constant
21978 expression */
21979 const char *g = "string";
21980 pcpcc = &g + (g ? g-g : 0);
21981 /* HPUX 7.0 cc rejects these. */
21982 ++pcpcc;
21983 ppc = (char**) pcpcc;
21984 pcpcc = (char const *const *) ppc;
21985 { /* SCO 3.2v4 cc rejects this sort of thing. */
21986 char tx;
21987 char *t = &tx;
21988 char const *s = 0 ? (char *) 0 : (char const *) 0;
21989
21990 *t++ = 0;
21991 if (s) return 0;
21992 }
21993 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21994 int x[] = {25, 17};
21995 const int *foo = &x[0];
21996 ++foo;
21997 }
21998 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21999 typedef const int *iptr;
22000 iptr p = 0;
22001 ++p;
22002 }
22003 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22004 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22005 struct s { int j; const int *ap[3]; } bx;
22006 struct s *b = &bx; b->j = 5;
22007 }
22008 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22009 const int foo = 10;
22010 if (!foo) return 0;
22011 }
22012 return !cs[0] && !zero.x;
22013#endif
22014
22015 ;
22016 return 0;
22017}
22018_ACEOF
22019if ac_fn_c_try_compile "$LINENO"; then :
22020 ac_cv_c_const=yes
22021else
22022 ac_cv_c_const=no
22023fi
22024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22025fi
22026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22027$as_echo "$ac_cv_c_const" >&6; }
22028if test $ac_cv_c_const = no; then
22029
22030$as_echo "#define const /**/" >>confdefs.h
22031
22032fi
22033
cristy8b350f62009-11-15 23:12:43 +000022034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022035$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022036if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022037 $as_echo_n "(cached) " >&6
22038else
22039 ac_cv_c_inline=no
22040for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022042/* end confdefs.h. */
22043#ifndef __cplusplus
22044typedef int foo_t;
22045static $ac_kw foo_t static_foo () {return 0; }
22046$ac_kw foo_t foo () {return 0; }
22047#endif
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_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022052fi
cristy3ed852e2009-09-05 21:47:34 +000022053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22054 test "$ac_cv_c_inline" != no && break
22055done
22056
22057fi
cristy8b350f62009-11-15 23:12:43 +000022058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022059$as_echo "$ac_cv_c_inline" >&6; }
22060
cristy3ed852e2009-09-05 21:47:34 +000022061case $ac_cv_c_inline in
22062 inline | yes) ;;
22063 *)
22064 case $ac_cv_c_inline in
22065 no) ac_val=;;
22066 *) ac_val=$ac_cv_c_inline;;
22067 esac
22068 cat >>confdefs.h <<_ACEOF
22069#ifndef __cplusplus
22070#define inline $ac_val
22071#endif
22072_ACEOF
22073 ;;
22074esac
22075
cristy8b350f62009-11-15 23:12:43 +000022076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022077$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022078if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022079 $as_echo_n "(cached) " >&6
22080else
22081 ac_cv_c_restrict=no
22082 # The order here caters to the fact that C++ does not require restrict.
22083 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022085/* end confdefs.h. */
22086typedef int * int_ptr;
22087 int foo (int_ptr $ac_kw ip) {
22088 return ip[0];
22089 }
22090int
22091main ()
22092{
22093int s[1];
22094 int * $ac_kw t = s;
22095 t[0] = 0;
22096 return foo(t)
22097 ;
22098 return 0;
22099}
22100_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022101if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022102 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022103fi
cristy3ed852e2009-09-05 21:47:34 +000022104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22105 test "$ac_cv_c_restrict" != no && break
22106 done
22107
22108fi
cristy8b350f62009-11-15 23:12:43 +000022109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022110$as_echo "$ac_cv_c_restrict" >&6; }
22111
cristy3ed852e2009-09-05 21:47:34 +000022112 case $ac_cv_c_restrict in
22113 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022114 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022115 ;;
22116 *) cat >>confdefs.h <<_ACEOF
22117#define restrict $ac_cv_c_restrict
22118_ACEOF
22119 ;;
22120 esac
22121
cristye80f9cb2013-01-09 01:09:31 +000022122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22123$as_echo_n "checking for working volatile... " >&6; }
22124if ${ac_cv_c_volatile+:} false; then :
22125 $as_echo_n "(cached) " >&6
22126else
22127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22128/* end confdefs.h. */
22129
22130int
22131main ()
22132{
22133
22134volatile int x;
22135int * volatile y = (int *) 0;
22136return !x && !y;
22137 ;
22138 return 0;
22139}
22140_ACEOF
22141if ac_fn_c_try_compile "$LINENO"; then :
22142 ac_cv_c_volatile=yes
22143else
22144 ac_cv_c_volatile=no
22145fi
22146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22147fi
22148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22149$as_echo "$ac_cv_c_volatile" >&6; }
22150if test $ac_cv_c_volatile = no; then
22151
22152$as_echo "#define volatile /**/" >>confdefs.h
22153
22154fi
22155
cristy3ed852e2009-09-05 21:47:34 +000022156
22157# If words are stored with the most significant byte first (like
22158# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022160$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022161if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022162 $as_echo_n "(cached) " >&6
22163else
22164 ac_cv_c_bigendian=unknown
22165 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022167/* end confdefs.h. */
22168#ifndef __APPLE_CC__
22169 not a universal capable compiler
22170 #endif
22171 typedef int dummy;
22172
22173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022174if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022175
22176 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022177 # there are at least two -arch flags with different values.
22178 ac_arch=
22179 ac_prev=
22180 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22181 if test -n "$ac_prev"; then
22182 case $ac_word in
22183 i?86 | x86_64 | ppc | ppc64)
22184 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22185 ac_arch=$ac_word
22186 else
22187 ac_cv_c_bigendian=universal
22188 break
22189 fi
22190 ;;
22191 esac
22192 ac_prev=
22193 elif test "x$ac_word" = "x-arch"; then
22194 ac_prev=arch
22195 fi
22196 done
cristy3ed852e2009-09-05 21:47:34 +000022197fi
cristy3ed852e2009-09-05 21:47:34 +000022198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22199 if test $ac_cv_c_bigendian = unknown; then
22200 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022202/* end confdefs.h. */
22203#include <sys/types.h>
22204 #include <sys/param.h>
22205
22206int
22207main ()
22208{
22209#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22210 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22211 && LITTLE_ENDIAN)
22212 bogus endian macros
22213 #endif
22214
22215 ;
22216 return 0;
22217}
22218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022219if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022220 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022222/* end confdefs.h. */
22223#include <sys/types.h>
22224 #include <sys/param.h>
22225
22226int
22227main ()
22228{
22229#if BYTE_ORDER != BIG_ENDIAN
22230 not big endian
22231 #endif
22232
22233 ;
22234 return 0;
22235}
22236_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022237if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022238 ac_cv_c_bigendian=yes
22239else
cristy8b350f62009-11-15 23:12:43 +000022240 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022241fi
cristy3ed852e2009-09-05 21:47:34 +000022242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022243fi
cristy3ed852e2009-09-05 21:47:34 +000022244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22245 fi
22246 if test $ac_cv_c_bigendian = unknown; then
22247 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022249/* end confdefs.h. */
22250#include <limits.h>
22251
22252int
22253main ()
22254{
22255#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22256 bogus endian macros
22257 #endif
22258
22259 ;
22260 return 0;
22261}
22262_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022263if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022264 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022266/* end confdefs.h. */
22267#include <limits.h>
22268
22269int
22270main ()
22271{
22272#ifndef _BIG_ENDIAN
22273 not big endian
22274 #endif
22275
22276 ;
22277 return 0;
22278}
22279_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022280if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022281 ac_cv_c_bigendian=yes
22282else
cristy8b350f62009-11-15 23:12:43 +000022283 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022284fi
cristy3ed852e2009-09-05 21:47:34 +000022285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022286fi
cristy3ed852e2009-09-05 21:47:34 +000022287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22288 fi
22289 if test $ac_cv_c_bigendian = unknown; then
22290 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022291 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022292 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022294/* end confdefs.h. */
22295short int ascii_mm[] =
22296 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22297 short int ascii_ii[] =
22298 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22299 int use_ascii (int i) {
22300 return ascii_mm[i] + ascii_ii[i];
22301 }
22302 short int ebcdic_ii[] =
22303 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22304 short int ebcdic_mm[] =
22305 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22306 int use_ebcdic (int i) {
22307 return ebcdic_mm[i] + ebcdic_ii[i];
22308 }
22309 extern int foo;
22310
22311int
22312main ()
22313{
22314return use_ascii (foo) == use_ebcdic (foo);
22315 ;
22316 return 0;
22317}
22318_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022319if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022320 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22321 ac_cv_c_bigendian=yes
22322 fi
22323 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22324 if test "$ac_cv_c_bigendian" = unknown; then
22325 ac_cv_c_bigendian=no
22326 else
22327 # finding both strings is unlikely to happen, but who knows?
22328 ac_cv_c_bigendian=unknown
22329 fi
22330 fi
cristy3ed852e2009-09-05 21:47:34 +000022331fi
cristy3ed852e2009-09-05 21:47:34 +000022332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22333else
cristy8b350f62009-11-15 23:12:43 +000022334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022335/* end confdefs.h. */
22336$ac_includes_default
22337int
22338main ()
22339{
22340
22341 /* Are we little or big endian? From Harbison&Steele. */
22342 union
22343 {
22344 long int l;
22345 char c[sizeof (long int)];
22346 } u;
22347 u.l = 1;
22348 return u.c[sizeof (long int) - 1] == 1;
22349
22350 ;
22351 return 0;
22352}
22353_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022354if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022355 ac_cv_c_bigendian=no
22356else
cristy8b350f62009-11-15 23:12:43 +000022357 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022358fi
cristy8b350f62009-11-15 23:12:43 +000022359rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22360 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022361fi
22362
cristy3ed852e2009-09-05 21:47:34 +000022363 fi
22364fi
cristy8b350f62009-11-15 23:12:43 +000022365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022366$as_echo "$ac_cv_c_bigendian" >&6; }
22367 case $ac_cv_c_bigendian in #(
22368 yes)
cristy8b350f62009-11-15 23:12:43 +000022369 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022370;; #(
22371 no)
22372 ;; #(
22373 universal)
22374
cristy8b350f62009-11-15 23:12:43 +000022375$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022376
22377 ;; #(
22378 *)
cristy98dddb52010-11-04 00:30:15 +000022379 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022380 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022381 esac
22382
22383
cristy501c8042011-05-26 17:46:28 +000022384# Define to a suitable type, if standard headers do not define it.
22385ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22386case $ac_cv_c_int8_t in #(
22387 no|yes) ;; #(
22388 *)
cristy3ed852e2009-09-05 21:47:34 +000022389
22390cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022391#define int8_t $ac_cv_c_int8_t
22392_ACEOF
22393;;
22394esac
22395
22396ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22397case $ac_cv_c_int16_t in #(
22398 no|yes) ;; #(
22399 *)
22400
22401cat >>confdefs.h <<_ACEOF
22402#define int16_t $ac_cv_c_int16_t
22403_ACEOF
22404;;
22405esac
22406
22407ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22408case $ac_cv_c_int32_t in #(
22409 no|yes) ;; #(
22410 *)
22411
22412cat >>confdefs.h <<_ACEOF
22413#define int32_t $ac_cv_c_int32_t
22414_ACEOF
22415;;
22416esac
22417
22418ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22419case $ac_cv_c_int64_t in #(
22420 no|yes) ;; #(
22421 *)
22422
22423cat >>confdefs.h <<_ACEOF
22424#define int64_t $ac_cv_c_int64_t
22425_ACEOF
22426;;
22427esac
22428
22429
cristy045228a2013-06-23 11:00:16 +000022430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22431$as_echo_n "checking for unsigned long long int... " >&6; }
22432if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022433 $as_echo_n "(cached) " >&6
22434else
cristy045228a2013-06-23 11:00:16 +000022435 ac_cv_type_unsigned_long_long_int=yes
22436 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022438/* end confdefs.h. */
22439
22440 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022441 implementations with broken preprocessors. Perhaps this can
22442 be revisited in 2012. In the meantime, code should not expect
22443 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022444 /* Test literals. */
22445 long long int ll = 9223372036854775807ll;
22446 long long int nll = -9223372036854775807LL;
22447 unsigned long long int ull = 18446744073709551615ULL;
22448 /* Test constant expressions. */
22449 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022450 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022451 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022452 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022453 int i = 63;
22454int
22455main ()
22456{
22457/* Test availability of runtime routines for shift and division. */
22458 long long int llmax = 9223372036854775807ll;
22459 unsigned long long int ullmax = 18446744073709551615ull;
22460 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022461 | (llmax / ll) | (llmax % ll)
22462 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22463 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022464 ;
22465 return 0;
22466}
22467
22468_ACEOF
22469if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022470
22471else
22472 ac_cv_type_unsigned_long_long_int=no
22473fi
22474rm -f core conftest.err conftest.$ac_objext \
22475 conftest$ac_exeext conftest.$ac_ext
22476 fi
22477fi
22478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22479$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22480 if test $ac_cv_type_unsigned_long_long_int = yes; then
22481
22482$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22483
22484 fi
22485
22486
22487
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22489$as_echo_n "checking for long long int... " >&6; }
22490if ${ac_cv_type_long_long_int+:} false; then :
22491 $as_echo_n "(cached) " >&6
22492else
cristy501c8042011-05-26 17:46:28 +000022493 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022494 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022495 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22496 if test $ac_cv_type_long_long_int = yes; then
22497 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022498 :
cristy501c8042011-05-26 17:46:28 +000022499else
22500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22501/* end confdefs.h. */
22502#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022503 #ifndef LLONG_MAX
22504 # define HALF \
22505 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22506 # define LLONG_MAX (HALF - 1 + HALF)
22507 #endif
cristy501c8042011-05-26 17:46:28 +000022508int
22509main ()
22510{
22511long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022512 int i;
22513 for (i = 0; ; i++)
22514 {
22515 long long int m = n << i;
22516 if (m >> i != n)
22517 return 1;
22518 if (LLONG_MAX / 2 < m)
22519 break;
22520 }
22521 return 0;
cristy501c8042011-05-26 17:46:28 +000022522 ;
22523 return 0;
22524}
22525_ACEOF
22526if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022527
cristy501c8042011-05-26 17:46:28 +000022528else
22529 ac_cv_type_long_long_int=no
22530fi
22531rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22532 conftest.$ac_objext conftest.beam conftest.$ac_ext
22533fi
22534
cristy5ed9c6e2013-07-14 21:20:31 +000022535 fi
cristy045228a2013-06-23 11:00:16 +000022536 fi
cristy501c8042011-05-26 17:46:28 +000022537fi
22538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22539$as_echo "$ac_cv_type_long_long_int" >&6; }
22540 if test $ac_cv_type_long_long_int = yes; then
22541
22542$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22543
22544 fi
22545
22546
22547
22548 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22549if test "x$ac_cv_type_intmax_t" = xyes; then :
22550
22551$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22552
22553else
22554 test $ac_cv_type_long_long_int = yes \
22555 && ac_type='long long int' \
22556 || ac_type='long int'
22557
22558cat >>confdefs.h <<_ACEOF
22559#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022560_ACEOF
22561
22562fi
22563
22564
cristy501c8042011-05-26 17:46:28 +000022565
22566 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22567if test "x$ac_cv_type_intptr_t" = xyes; then :
22568
22569$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022570
cristy3ed852e2009-09-05 21:47:34 +000022571else
cristy501c8042011-05-26 17:46:28 +000022572 for ac_type in 'int' 'long int' 'long long int'; do
22573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22574/* end confdefs.h. */
22575$ac_includes_default
22576int
22577main ()
22578{
22579static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022580test_array [0] = 0;
22581return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022582
22583 ;
22584 return 0;
22585}
22586_ACEOF
22587if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022588
22589cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022590#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022591_ACEOF
22592
cristy501c8042011-05-26 17:46:28 +000022593 ac_type=
22594fi
22595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22596 test -z "$ac_type" && break
22597 done
cristy3ed852e2009-09-05 21:47:34 +000022598fi
22599
22600
cristy3ed852e2009-09-05 21:47:34 +000022601
cristy501c8042011-05-26 17:46:28 +000022602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22603$as_echo_n "checking for long double... " >&6; }
22604if ${ac_cv_type_long_double+:} false; then :
22605 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022606else
cristy501c8042011-05-26 17:46:28 +000022607 if test "$GCC" = yes; then
22608 ac_cv_type_long_double=yes
22609 else
22610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22611/* end confdefs.h. */
22612/* The Stardent Vistra knows sizeof (long double), but does
22613 not support it. */
22614 long double foo = 0.0L;
22615int
22616main ()
22617{
22618static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22619 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022620test_array [0] = 0;
22621return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022622
cristy501c8042011-05-26 17:46:28 +000022623 ;
22624 return 0;
22625}
cristy3ed852e2009-09-05 21:47:34 +000022626_ACEOF
cristy501c8042011-05-26 17:46:28 +000022627if ac_fn_c_try_compile "$LINENO"; then :
22628 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022629else
cristy501c8042011-05-26 17:46:28 +000022630 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022631fi
cristy501c8042011-05-26 17:46:28 +000022632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22633 fi
cristy3ed852e2009-09-05 21:47:34 +000022634fi
cristy501c8042011-05-26 17:46:28 +000022635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22636$as_echo "$ac_cv_type_long_double" >&6; }
22637 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022638
cristy501c8042011-05-26 17:46:28 +000022639$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022640
cristy501c8042011-05-26 17:46:28 +000022641 fi
22642
cristy3ed852e2009-09-05 21:47:34 +000022643
cristy8b350f62009-11-15 23:12:43 +000022644 { $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 +000022645$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022646if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022647 $as_echo_n "(cached) " >&6
22648else
cristy8b350f62009-11-15 23:12:43 +000022649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022650/* end confdefs.h. */
22651#include <float.h>
22652 long double const a[] =
22653 {
22654 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22655 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22656 };
22657 long double
22658 f (long double x)
22659 {
22660 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22661 + (x ? f (x) : 'c'));
22662 }
22663
22664int
22665main ()
22666{
22667static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22668 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22669 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22670 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22671 && (int) LDBL_EPSILON == 0
22672 )];
cristy14fefe52012-05-21 00:59:18 +000022673test_array [0] = 0;
22674return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022675
22676 ;
22677 return 0;
22678}
22679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022680if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022681 ac_cv_type_long_double_wider=yes
22682else
cristy8b350f62009-11-15 23:12:43 +000022683 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022684fi
cristy3ed852e2009-09-05 21:47:34 +000022685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22686fi
cristy8b350f62009-11-15 23:12:43 +000022687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022688$as_echo "$ac_cv_type_long_double_wider" >&6; }
22689 if test $ac_cv_type_long_double_wider = yes; then
22690
cristy8b350f62009-11-15 23:12:43 +000022691$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022692
22693 fi
22694
22695
cristy045228a2013-06-23 11:00:16 +000022696
cristy501c8042011-05-26 17:46:28 +000022697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22698$as_echo_n "checking for long long int... " >&6; }
22699if ${ac_cv_type_long_long_int+:} false; then :
22700 $as_echo_n "(cached) " >&6
22701else
cristy501c8042011-05-26 17:46:28 +000022702 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022703 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022704 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22705 if test $ac_cv_type_long_long_int = yes; then
22706 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022707 :
cristy501c8042011-05-26 17:46:28 +000022708else
22709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22710/* end confdefs.h. */
22711#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022712 #ifndef LLONG_MAX
22713 # define HALF \
22714 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22715 # define LLONG_MAX (HALF - 1 + HALF)
22716 #endif
cristy501c8042011-05-26 17:46:28 +000022717int
22718main ()
22719{
22720long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022721 int i;
22722 for (i = 0; ; i++)
22723 {
22724 long long int m = n << i;
22725 if (m >> i != n)
22726 return 1;
22727 if (LLONG_MAX / 2 < m)
22728 break;
22729 }
22730 return 0;
cristy501c8042011-05-26 17:46:28 +000022731 ;
22732 return 0;
22733}
22734_ACEOF
22735if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022736
cristy501c8042011-05-26 17:46:28 +000022737else
22738 ac_cv_type_long_long_int=no
22739fi
22740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22741 conftest.$ac_objext conftest.beam conftest.$ac_ext
22742fi
22743
cristy5ed9c6e2013-07-14 21:20:31 +000022744 fi
cristy045228a2013-06-23 11:00:16 +000022745 fi
cristy501c8042011-05-26 17:46:28 +000022746fi
22747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22748$as_echo "$ac_cv_type_long_long_int" >&6; }
22749 if test $ac_cv_type_long_long_int = yes; then
22750
22751$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22752
22753 fi
22754
22755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22756$as_echo_n "checking for mbstate_t... " >&6; }
22757if ${ac_cv_type_mbstate_t+:} false; then :
22758 $as_echo_n "(cached) " >&6
22759else
22760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22761/* end confdefs.h. */
22762$ac_includes_default
22763# include <wchar.h>
22764int
22765main ()
22766{
22767mbstate_t x; return sizeof x;
22768 ;
22769 return 0;
22770}
22771_ACEOF
22772if ac_fn_c_try_compile "$LINENO"; then :
22773 ac_cv_type_mbstate_t=yes
22774else
22775 ac_cv_type_mbstate_t=no
22776fi
22777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22778fi
22779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22780$as_echo "$ac_cv_type_mbstate_t" >&6; }
22781 if test $ac_cv_type_mbstate_t = yes; then
22782
22783$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22784
22785 else
22786
22787$as_echo "#define mbstate_t int" >>confdefs.h
22788
22789 fi
22790ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22791if test "x$ac_cv_type_mode_t" = xyes; then :
22792
22793else
22794
22795cat >>confdefs.h <<_ACEOF
22796#define mode_t int
22797_ACEOF
22798
22799fi
22800
22801ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22802if test "x$ac_cv_type_off_t" = xyes; then :
22803
22804else
22805
22806cat >>confdefs.h <<_ACEOF
22807#define off_t long int
22808_ACEOF
22809
22810fi
22811
22812ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22813if test "x$ac_cv_type_pid_t" = xyes; then :
22814
22815else
22816
22817cat >>confdefs.h <<_ACEOF
22818#define pid_t int
22819_ACEOF
22820
22821fi
22822
22823ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22824if test "x$ac_cv_type_size_t" = xyes; then :
22825
22826else
22827
22828cat >>confdefs.h <<_ACEOF
22829#define size_t unsigned int
22830_ACEOF
22831
22832fi
22833
22834ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22835if test "x$ac_cv_type_ssize_t" = xyes; then :
22836
22837else
22838
22839cat >>confdefs.h <<_ACEOF
22840#define ssize_t int
22841_ACEOF
22842
22843fi
22844
22845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22846$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22847if ${ac_cv_type_uid_t+:} false; then :
22848 $as_echo_n "(cached) " >&6
22849else
22850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22851/* end confdefs.h. */
22852#include <sys/types.h>
22853
22854_ACEOF
22855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22856 $EGREP "uid_t" >/dev/null 2>&1; then :
22857 ac_cv_type_uid_t=yes
22858else
22859 ac_cv_type_uid_t=no
22860fi
22861rm -f conftest*
22862
22863fi
22864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22865$as_echo "$ac_cv_type_uid_t" >&6; }
22866if test $ac_cv_type_uid_t = no; then
22867
22868$as_echo "#define uid_t int" >>confdefs.h
22869
22870
22871$as_echo "#define gid_t int" >>confdefs.h
22872
22873fi
22874
22875ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22876case $ac_cv_c_uint8_t in #(
22877 no|yes) ;; #(
22878 *)
22879
22880$as_echo "#define _UINT8_T 1" >>confdefs.h
22881
22882
22883cat >>confdefs.h <<_ACEOF
22884#define uint8_t $ac_cv_c_uint8_t
22885_ACEOF
22886;;
22887 esac
22888
22889ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22890case $ac_cv_c_uint16_t in #(
22891 no|yes) ;; #(
22892 *)
22893
22894
22895cat >>confdefs.h <<_ACEOF
22896#define uint16_t $ac_cv_c_uint16_t
22897_ACEOF
22898;;
22899 esac
22900
22901ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22902case $ac_cv_c_uint32_t in #(
22903 no|yes) ;; #(
22904 *)
22905
22906$as_echo "#define _UINT32_T 1" >>confdefs.h
22907
22908
22909cat >>confdefs.h <<_ACEOF
22910#define uint32_t $ac_cv_c_uint32_t
22911_ACEOF
22912;;
22913 esac
22914
22915ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22916case $ac_cv_c_uint64_t in #(
22917 no|yes) ;; #(
22918 *)
22919
22920$as_echo "#define _UINT64_T 1" >>confdefs.h
22921
22922
22923cat >>confdefs.h <<_ACEOF
22924#define uint64_t $ac_cv_c_uint64_t
22925_ACEOF
22926;;
22927 esac
22928
22929
cristy501c8042011-05-26 17:46:28 +000022930
22931 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22932if test "x$ac_cv_type_uintmax_t" = xyes; then :
22933
22934$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22935
22936else
22937 test $ac_cv_type_unsigned_long_long_int = yes \
22938 && ac_type='unsigned long long int' \
22939 || ac_type='unsigned long int'
22940
22941cat >>confdefs.h <<_ACEOF
22942#define uintmax_t $ac_type
22943_ACEOF
22944
22945fi
22946
22947
22948
22949 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
22950if test "x$ac_cv_type_uintptr_t" = xyes; then :
22951
22952$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
22953
22954else
22955 for ac_type in 'unsigned int' 'unsigned long int' \
22956 'unsigned long long int'; do
22957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22958/* end confdefs.h. */
22959$ac_includes_default
22960int
22961main ()
22962{
22963static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022964test_array [0] = 0;
22965return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022966
22967 ;
22968 return 0;
22969}
22970_ACEOF
22971if ac_fn_c_try_compile "$LINENO"; then :
22972
22973cat >>confdefs.h <<_ACEOF
22974#define uintptr_t $ac_type
22975_ACEOF
22976
22977 ac_type=
22978fi
22979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22980 test -z "$ac_type" && break
22981 done
22982fi
22983
22984
22985
22986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22987$as_echo_n "checking for unsigned long long int... " >&6; }
22988if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22989 $as_echo_n "(cached) " >&6
22990else
cristy045228a2013-06-23 11:00:16 +000022991 ac_cv_type_unsigned_long_long_int=yes
22992 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022994/* end confdefs.h. */
22995
22996 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022997 implementations with broken preprocessors. Perhaps this can
22998 be revisited in 2012. In the meantime, code should not expect
22999 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023000 /* Test literals. */
23001 long long int ll = 9223372036854775807ll;
23002 long long int nll = -9223372036854775807LL;
23003 unsigned long long int ull = 18446744073709551615ULL;
23004 /* Test constant expressions. */
23005 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023006 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023007 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023008 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023009 int i = 63;
23010int
23011main ()
23012{
23013/* Test availability of runtime routines for shift and division. */
23014 long long int llmax = 9223372036854775807ll;
23015 unsigned long long int ullmax = 18446744073709551615ull;
23016 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023017 | (llmax / ll) | (llmax % ll)
23018 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23019 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023020 ;
23021 return 0;
23022}
23023
23024_ACEOF
23025if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023026
cristy501c8042011-05-26 17:46:28 +000023027else
23028 ac_cv_type_unsigned_long_long_int=no
23029fi
23030rm -f core conftest.err conftest.$ac_objext \
23031 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023032 fi
cristy501c8042011-05-26 17:46:28 +000023033fi
23034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23035$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23036 if test $ac_cv_type_unsigned_long_long_int = yes; then
23037
23038$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23039
23040 fi
23041
23042
cristyfec31822013-05-23 12:32:12 +000023043# Float_t and double_t are intended to be the the most efficient type.
23044ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23045"
23046if test "x$ac_cv_type_float_t" = xyes; then :
23047
23048cat >>confdefs.h <<_ACEOF
23049#define HAVE_FLOAT_T 1
23050_ACEOF
23051
23052
23053fi
23054
23055ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23056"
23057if test "x$ac_cv_type_double_t" = xyes; then :
23058
23059cat >>confdefs.h <<_ACEOF
23060#define HAVE_DOUBLE_T 1
23061_ACEOF
23062
23063
23064fi
23065
23066# The cast to long int works around a bug in the HP C Compiler
23067# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23068# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23069# This bug is HP SR number 8606223364.
23070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23071$as_echo_n "checking size of float_t... " >&6; }
23072if ${ac_cv_sizeof_float_t+:} false; then :
23073 $as_echo_n "(cached) " >&6
23074else
23075 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23076"; then :
23077
23078else
23079 if test "$ac_cv_type_float_t" = yes; then
23080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23082as_fn_error 77 "cannot compute sizeof (float_t)
23083See \`config.log' for more details" "$LINENO" 5; }
23084 else
23085 ac_cv_sizeof_float_t=0
23086 fi
23087fi
23088
23089fi
23090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23091$as_echo "$ac_cv_sizeof_float_t" >&6; }
23092
23093
23094
23095cat >>confdefs.h <<_ACEOF
23096#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23097_ACEOF
23098
23099
23100# The cast to long int works around a bug in the HP C Compiler
23101# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23102# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23103# This bug is HP SR number 8606223364.
23104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23105$as_echo_n "checking size of double_t... " >&6; }
23106if ${ac_cv_sizeof_double_t+:} false; then :
23107 $as_echo_n "(cached) " >&6
23108else
23109 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23110"; then :
23111
23112else
23113 if test "$ac_cv_type_double_t" = yes; then
23114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23116as_fn_error 77 "cannot compute sizeof (double_t)
23117See \`config.log' for more details" "$LINENO" 5; }
23118 else
23119 ac_cv_sizeof_double_t=0
23120 fi
23121fi
23122
23123fi
23124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23125$as_echo "$ac_cv_sizeof_double_t" >&6; }
23126
23127
23128
23129cat >>confdefs.h <<_ACEOF
23130#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23131_ACEOF
23132
23133
23134
cristy9b86f202012-11-28 21:55:35 +000023135# Get size of float, double and long double for comparaison.
23136# The cast to long int works around a bug in the HP C Compiler
23137# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23138# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23139# This bug is HP SR number 8606223364.
23140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23141$as_echo_n "checking size of float... " >&6; }
23142if ${ac_cv_sizeof_float+:} false; then :
23143 $as_echo_n "(cached) " >&6
23144else
23145 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23146
23147else
23148 if test "$ac_cv_type_float" = yes; then
23149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23151as_fn_error 77 "cannot compute sizeof (float)
23152See \`config.log' for more details" "$LINENO" 5; }
23153 else
23154 ac_cv_sizeof_float=0
23155 fi
23156fi
23157
23158fi
23159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23160$as_echo "$ac_cv_sizeof_float" >&6; }
23161
23162
23163
23164cat >>confdefs.h <<_ACEOF
23165#define SIZEOF_FLOAT $ac_cv_sizeof_float
23166_ACEOF
23167
23168
23169# The cast to long int works around a bug in the HP C Compiler
23170# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23171# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23172# This bug is HP SR number 8606223364.
23173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23174$as_echo_n "checking size of double... " >&6; }
23175if ${ac_cv_sizeof_double+:} false; then :
23176 $as_echo_n "(cached) " >&6
23177else
23178 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23179
23180else
23181 if test "$ac_cv_type_double" = yes; then
23182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23184as_fn_error 77 "cannot compute sizeof (double)
23185See \`config.log' for more details" "$LINENO" 5; }
23186 else
23187 ac_cv_sizeof_double=0
23188 fi
23189fi
23190
23191fi
23192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23193$as_echo "$ac_cv_sizeof_double" >&6; }
23194
23195
23196
23197cat >>confdefs.h <<_ACEOF
23198#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23199_ACEOF
23200
23201
cristyfec31822013-05-23 12:32:12 +000023202# The cast to long int works around a bug in the HP C Compiler
23203# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23204# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23205# This bug is HP SR number 8606223364.
23206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23207$as_echo_n "checking size of long double... " >&6; }
23208if ${ac_cv_sizeof_long_double+:} false; then :
23209 $as_echo_n "(cached) " >&6
23210else
23211 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23212
23213else
23214 if test "$ac_cv_type_long_double" = yes; then
23215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23217as_fn_error 77 "cannot compute sizeof (long double)
23218See \`config.log' for more details" "$LINENO" 5; }
23219 else
23220 ac_cv_sizeof_long_double=0
23221 fi
23222fi
23223
23224fi
23225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23226$as_echo "$ac_cv_sizeof_long_double" >&6; }
23227
23228
23229
23230cat >>confdefs.h <<_ACEOF
23231#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23232_ACEOF
23233
23234
cristyf0cf9a22012-10-24 12:05:01 +000023235
cristy3ed852e2009-09-05 21:47:34 +000023236# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23237# The cast to long int works around a bug in the HP C Compiler
23238# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23239# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23240# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023242$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023243if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023244 $as_echo_n "(cached) " >&6
23245else
cristy8b350f62009-11-15 23:12:43 +000023246 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 +000023247
cristy3ed852e2009-09-05 21:47:34 +000023248else
cristy8b350f62009-11-15 23:12:43 +000023249 if test "$ac_cv_type_signed_short" = yes; then
23250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023252as_fn_error 77 "cannot compute sizeof (signed short)
23253See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023254 else
23255 ac_cv_sizeof_signed_short=0
23256 fi
23257fi
cristy8b350f62009-11-15 23:12:43 +000023258
cristy3ed852e2009-09-05 21:47:34 +000023259fi
cristy8b350f62009-11-15 23:12:43 +000023260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023261$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23262
23263
23264
23265cat >>confdefs.h <<_ACEOF
23266#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23267_ACEOF
23268
23269
23270
23271# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23272# The cast to long int works around a bug in the HP C Compiler
23273# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23274# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23275# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023277$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023278if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023279 $as_echo_n "(cached) " >&6
23280else
cristy8b350f62009-11-15 23:12:43 +000023281 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 +000023282
cristy3ed852e2009-09-05 21:47:34 +000023283else
cristy8b350f62009-11-15 23:12:43 +000023284 if test "$ac_cv_type_unsigned_short" = yes; then
23285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023287as_fn_error 77 "cannot compute sizeof (unsigned short)
23288See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023289 else
23290 ac_cv_sizeof_unsigned_short=0
23291 fi
23292fi
cristy8b350f62009-11-15 23:12:43 +000023293
cristy3ed852e2009-09-05 21:47:34 +000023294fi
cristy8b350f62009-11-15 23:12:43 +000023295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023296$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23297
23298
23299
23300cat >>confdefs.h <<_ACEOF
23301#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23302_ACEOF
23303
23304
23305
23306# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23307# The cast to long int works around a bug in the HP C Compiler
23308# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23309# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23310# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023312$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023313if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023314 $as_echo_n "(cached) " >&6
23315else
cristy8b350f62009-11-15 23:12:43 +000023316 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 +000023317
cristy3ed852e2009-09-05 21:47:34 +000023318else
cristy8b350f62009-11-15 23:12:43 +000023319 if test "$ac_cv_type_signed_int" = yes; then
23320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023322as_fn_error 77 "cannot compute sizeof (signed int)
23323See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023324 else
23325 ac_cv_sizeof_signed_int=0
23326 fi
23327fi
cristy8b350f62009-11-15 23:12:43 +000023328
cristy3ed852e2009-09-05 21:47:34 +000023329fi
cristy8b350f62009-11-15 23:12:43 +000023330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023331$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23332
23333
23334
23335cat >>confdefs.h <<_ACEOF
23336#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23337_ACEOF
23338
23339
23340
23341# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23342# The cast to long int works around a bug in the HP C Compiler
23343# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23344# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23345# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023347$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023348if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023349 $as_echo_n "(cached) " >&6
23350else
cristy8b350f62009-11-15 23:12:43 +000023351 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 +000023352
cristy3ed852e2009-09-05 21:47:34 +000023353else
cristy8b350f62009-11-15 23:12:43 +000023354 if test "$ac_cv_type_unsigned_int" = yes; then
23355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023356$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023357as_fn_error 77 "cannot compute sizeof (unsigned int)
23358See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023359 else
23360 ac_cv_sizeof_unsigned_int=0
23361 fi
23362fi
cristy8b350f62009-11-15 23:12:43 +000023363
cristy3ed852e2009-09-05 21:47:34 +000023364fi
cristy8b350f62009-11-15 23:12:43 +000023365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023366$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23367
23368
23369
23370cat >>confdefs.h <<_ACEOF
23371#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23372_ACEOF
23373
23374
23375
23376# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23377# The cast to long int works around a bug in the HP C Compiler
23378# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23379# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23380# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023382$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023383if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023384 $as_echo_n "(cached) " >&6
23385else
cristy8b350f62009-11-15 23:12:43 +000023386 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 +000023387
cristy3ed852e2009-09-05 21:47:34 +000023388else
cristy8b350f62009-11-15 23:12:43 +000023389 if test "$ac_cv_type_signed_long" = yes; then
23390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023392as_fn_error 77 "cannot compute sizeof (signed long)
23393See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023394 else
23395 ac_cv_sizeof_signed_long=0
23396 fi
23397fi
cristy8b350f62009-11-15 23:12:43 +000023398
cristy3ed852e2009-09-05 21:47:34 +000023399fi
cristy8b350f62009-11-15 23:12:43 +000023400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023401$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23402
23403
23404
23405cat >>confdefs.h <<_ACEOF
23406#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23407_ACEOF
23408
23409
23410
23411# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23412# The cast to long int works around a bug in the HP C Compiler
23413# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23414# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23415# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023417$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023418if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023419 $as_echo_n "(cached) " >&6
23420else
cristy8b350f62009-11-15 23:12:43 +000023421 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 +000023422
cristy3ed852e2009-09-05 21:47:34 +000023423else
cristy8b350f62009-11-15 23:12:43 +000023424 if test "$ac_cv_type_unsigned_long" = yes; then
23425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023427as_fn_error 77 "cannot compute sizeof (unsigned long)
23428See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023429 else
23430 ac_cv_sizeof_unsigned_long=0
23431 fi
23432fi
cristy8b350f62009-11-15 23:12:43 +000023433
cristy3ed852e2009-09-05 21:47:34 +000023434fi
cristy8b350f62009-11-15 23:12:43 +000023435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023436$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23437
23438
23439
23440cat >>confdefs.h <<_ACEOF
23441#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23442_ACEOF
23443
23444
23445
23446# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23447# 'signed long long' is not supported then the value defined is zero.
23448# The cast to long int works around a bug in the HP C Compiler
23449# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23450# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23451# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023453$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023454if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023455 $as_echo_n "(cached) " >&6
23456else
cristy8b350f62009-11-15 23:12:43 +000023457 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 +000023458
cristy3ed852e2009-09-05 21:47:34 +000023459else
cristy8b350f62009-11-15 23:12:43 +000023460 if test "$ac_cv_type_signed_long_long" = yes; then
23461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023463as_fn_error 77 "cannot compute sizeof (signed long long)
23464See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023465 else
23466 ac_cv_sizeof_signed_long_long=0
23467 fi
23468fi
cristy8b350f62009-11-15 23:12:43 +000023469
cristy3ed852e2009-09-05 21:47:34 +000023470fi
cristy8b350f62009-11-15 23:12:43 +000023471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023472$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23473
23474
23475
23476cat >>confdefs.h <<_ACEOF
23477#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23478_ACEOF
23479
23480
23481
23482# Obtain size of a 'unsigned long long' and define as
23483# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23484# supported then the value defined is zero.
23485# The cast to long int works around a bug in the HP C Compiler
23486# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23487# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23488# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023490$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023491if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023492 $as_echo_n "(cached) " >&6
23493else
cristy8b350f62009-11-15 23:12:43 +000023494 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 +000023495
cristy3ed852e2009-09-05 21:47:34 +000023496else
cristy8b350f62009-11-15 23:12:43 +000023497 if test "$ac_cv_type_unsigned_long_long" = yes; then
23498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023500as_fn_error 77 "cannot compute sizeof (unsigned long long)
23501See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023502 else
23503 ac_cv_sizeof_unsigned_long_long=0
23504 fi
23505fi
cristy8b350f62009-11-15 23:12:43 +000023506
cristy3ed852e2009-09-05 21:47:34 +000023507fi
cristy8b350f62009-11-15 23:12:43 +000023508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023509$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23510
23511
23512
23513cat >>confdefs.h <<_ACEOF
23514#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23515_ACEOF
23516
23517
23518
cristyfec31822013-05-23 12:32:12 +000023519# Obtain size of off_t and define as SIZEOF_OFF_T
23520# The cast to long int works around a bug in the HP C Compiler
23521# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23522# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23523# This bug is HP SR number 8606223364.
23524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23525$as_echo_n "checking size of off_t... " >&6; }
23526if ${ac_cv_sizeof_off_t+:} false; then :
23527 $as_echo_n "(cached) " >&6
23528else
23529 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23530
23531else
23532 if test "$ac_cv_type_off_t" = yes; then
23533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23535as_fn_error 77 "cannot compute sizeof (off_t)
23536See \`config.log' for more details" "$LINENO" 5; }
23537 else
23538 ac_cv_sizeof_off_t=0
23539 fi
23540fi
23541
23542fi
23543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23544$as_echo "$ac_cv_sizeof_off_t" >&6; }
23545
23546
23547
23548cat >>confdefs.h <<_ACEOF
23549#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23550_ACEOF
23551
23552
23553
23554# Obtain size of size_t and define as SIZEOF_SIZE_T
23555# The cast to long int works around a bug in the HP C Compiler
23556# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23557# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23558# This bug is HP SR number 8606223364.
23559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23560$as_echo_n "checking size of size_t... " >&6; }
23561if ${ac_cv_sizeof_size_t+:} false; then :
23562 $as_echo_n "(cached) " >&6
23563else
23564 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23565
23566else
23567 if test "$ac_cv_type_size_t" = yes; then
23568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23570as_fn_error 77 "cannot compute sizeof (size_t)
23571See \`config.log' for more details" "$LINENO" 5; }
23572 else
23573 ac_cv_sizeof_size_t=0
23574 fi
23575fi
23576
23577fi
23578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23579$as_echo "$ac_cv_sizeof_size_t" >&6; }
23580
23581
23582
23583cat >>confdefs.h <<_ACEOF
23584#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23585_ACEOF
23586
23587
23588
23589# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23590# The cast to long int works around a bug in the HP C Compiler
23591# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23592# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23593# This bug is HP SR number 8606223364.
23594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23595$as_echo_n "checking size of ssize_t... " >&6; }
23596if ${ac_cv_sizeof_ssize_t+:} false; then :
23597 $as_echo_n "(cached) " >&6
23598else
23599 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23600
23601else
23602 if test "$ac_cv_type_ssize_t" = yes; then
23603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23605as_fn_error 77 "cannot compute sizeof (ssize_t)
23606See \`config.log' for more details" "$LINENO" 5; }
23607 else
23608 ac_cv_sizeof_ssize_t=0
23609 fi
23610fi
23611
23612fi
23613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23614$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23615
23616
23617
23618cat >>confdefs.h <<_ACEOF
23619#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23620_ACEOF
23621
23622
23623
cristy3ed852e2009-09-05 21:47:34 +000023624# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23625# The cast to long int works around a bug in the HP C Compiler
23626# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23627# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23628# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023630$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023631if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023632 $as_echo_n "(cached) " >&6
23633else
cristy8b350f62009-11-15 23:12:43 +000023634 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 +000023635
cristy3ed852e2009-09-05 21:47:34 +000023636else
cristy8b350f62009-11-15 23:12:43 +000023637 if test "$ac_cv_type_unsigned_intp" = yes; then
23638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023640as_fn_error 77 "cannot compute sizeof (unsigned int*)
23641See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023642 else
23643 ac_cv_sizeof_unsigned_intp=0
23644 fi
23645fi
cristy8b350f62009-11-15 23:12:43 +000023646
cristy3ed852e2009-09-05 21:47:34 +000023647fi
cristy8b350f62009-11-15 23:12:43 +000023648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023649$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23650
23651
23652
23653cat >>confdefs.h <<_ACEOF
23654#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23655_ACEOF
23656
23657
23658
23659#
23660# Compute sized types for current CPU and compiler options.
23661#
23662
cristy8b350f62009-11-15 23:12:43 +000023663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023664$as_echo_n "checking for signed 8-bit type... " >&6; }
23665INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23667$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023668
23669
cristy8b350f62009-11-15 23:12:43 +000023670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023671$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23672UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23674$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023675
23676
cristy8b350f62009-11-15 23:12:43 +000023677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023678$as_echo_n "checking for signed 16-bit type... " >&6; }
23679INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23681$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023682
23683
cristy8b350f62009-11-15 23:12:43 +000023684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023685$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23686UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23688$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023689
23690
cristy8b350f62009-11-15 23:12:43 +000023691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023692$as_echo_n "checking for signed 32-bit type... " >&6; }
23693INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023694INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023695if test $ac_cv_sizeof_signed_int -eq 4; then
23696 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023697 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023698elif test $ac_cv_sizeof_signed_long -eq 4; then
23699 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023700 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023701fi
cristyad38abe2012-12-23 23:03:21 +000023702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23703$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023704
23705
cristy6d5e20f2011-04-25 13:48:54 +000023706
cristy8b350f62009-11-15 23:12:43 +000023707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023708$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23709UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023710UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023711if test $ac_cv_sizeof_unsigned_int -eq 4; then
23712 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023713 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023714elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23715 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023716 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023717fi
cristyad38abe2012-12-23 23:03:21 +000023718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23719$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023720
23721
cristy6d5e20f2011-04-25 13:48:54 +000023722
cristy8b350f62009-11-15 23:12:43 +000023723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023724$as_echo_n "checking for signed 64-bit type... " >&6; }
23725INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023726INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023727if test $ac_cv_sizeof_signed_long -eq 8; then
23728 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023729 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023730elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23731 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023732 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023733fi
cristy3a99dcf2011-12-17 01:29:40 +000023734case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023735 mingw* )
23736 INT64_F='"I64"'
23737 ;;
23738esac
cristyad38abe2012-12-23 23:03:21 +000023739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23740$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023741
23742
cristy6d5e20f2011-04-25 13:48:54 +000023743
cristy8b350f62009-11-15 23:12:43 +000023744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023745$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23746UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023747UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023748if test $ac_cv_sizeof_unsigned_long -eq 8; then
23749 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023750 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023751elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23752 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023753 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023754fi
cristy3a99dcf2011-12-17 01:29:40 +000023755case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023756 mingw* )
23757 UINT64_F='"I64"'
23758 ;;
23759esac
cristyad38abe2012-12-23 23:03:21 +000023760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23761$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023762
23763
cristy6d5e20f2011-04-25 13:48:54 +000023764
cristy8b350f62009-11-15 23:12:43 +000023765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023766$as_echo_n "checking for unsigned maximum type... " >&6; }
23767UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023768UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023769if test "$UINT64_T" != 'none'; then
23770 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023771 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023772elif test "$UINT32_T" != 'none'; then
23773 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023774 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023775fi
cristyad38abe2012-12-23 23:03:21 +000023776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23777$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023778
23779
cristy6d5e20f2011-04-25 13:48:54 +000023780
cristy8b350f62009-11-15 23:12:43 +000023781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023782$as_echo_n "checking for pointer difference type... " >&6; }
23783UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023784UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023785if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23786 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023787 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023788elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23789 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023790 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023791fi
cristyad38abe2012-12-23 23:03:21 +000023792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23793$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023794
23795
cristy6d5e20f2011-04-25 13:48:54 +000023796
cristy8b350f62009-11-15 23:12:43 +000023797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023798$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023800/* end confdefs.h. */
23801
23802int
23803main ()
23804{
23805{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23806 ;
23807 return 0;
23808}
23809_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023810if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23812$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023813else
cristyad38abe2012-12-23 23:03:21 +000023814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23815$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023817$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023819/* end confdefs.h. */
23820
23821int
23822main ()
23823{
23824{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23825 ;
23826 return 0;
23827}
23828_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023829if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23831$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023832
cristy8b350f62009-11-15 23:12:43 +000023833$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023834
23835else
cristyad38abe2012-12-23 23:03:21 +000023836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23837$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023838
cristy8b350f62009-11-15 23:12:43 +000023839$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023840
23841fi
cristy3ed852e2009-09-05 21:47:34 +000023842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23843fi
cristy3ed852e2009-09-05 21:47:34 +000023844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23845
23846########
23847#
23848# Check for functions
23849#
23850########
cristy8b350f62009-11-15 23:12:43 +000023851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023852$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023853if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023854 $as_echo_n "(cached) " >&6
23855else
cristy8b350f62009-11-15 23:12:43 +000023856 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023857 ac_cv_func_closedir_void=yes
23858else
cristy8b350f62009-11-15 23:12:43 +000023859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023860/* end confdefs.h. */
23861$ac_includes_default
23862#include <$ac_header_dirent>
23863#ifndef __cplusplus
23864int closedir ();
23865#endif
23866
23867int
23868main ()
23869{
23870return closedir (opendir (".")) != 0;
23871 ;
23872 return 0;
23873}
23874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023875if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023876 ac_cv_func_closedir_void=no
23877else
cristy8b350f62009-11-15 23:12:43 +000023878 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023879fi
cristy8b350f62009-11-15 23:12:43 +000023880rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23881 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023882fi
23883
cristy3ed852e2009-09-05 21:47:34 +000023884fi
cristy8b350f62009-11-15 23:12:43 +000023885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023886$as_echo "$ac_cv_func_closedir_void" >&6; }
23887if test $ac_cv_func_closedir_void = yes; then
23888
cristy8b350f62009-11-15 23:12:43 +000023889$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023890
23891fi
23892
cristycd4c5312009-11-22 01:19:08 +000023893
23894
23895
23896 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023897do :
23898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023899ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23900"
cristy98dddb52010-11-04 00:30:15 +000023901if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023902 cat >>confdefs.h <<_ACEOF
23903#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23904_ACEOF
23905
23906fi
23907
23908done
23909
cristycd4c5312009-11-22 01:19:08 +000023910
23911
23912
23913
23914
23915
23916
cristy3ed852e2009-09-05 21:47:34 +000023917for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023918do :
23919 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023920if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023921 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023922#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023923_ACEOF
23924
23925fi
23926done
23927
cristy8b350f62009-11-15 23:12:43 +000023928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023929$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023930if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023931 $as_echo_n "(cached) " >&6
23932else
cristy8b350f62009-11-15 23:12:43 +000023933 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023934 ac_cv_func_mmap_fixed_mapped=no
23935else
cristy8b350f62009-11-15 23:12:43 +000023936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023937/* end confdefs.h. */
23938$ac_includes_default
23939/* malloc might have been renamed as rpl_malloc. */
23940#undef malloc
23941
23942/* Thanks to Mike Haertel and Jim Avera for this test.
23943 Here is a matrix of mmap possibilities:
23944 mmap private not fixed
23945 mmap private fixed at somewhere currently unmapped
23946 mmap private fixed at somewhere already mapped
23947 mmap shared not fixed
23948 mmap shared fixed at somewhere currently unmapped
23949 mmap shared fixed at somewhere already mapped
23950 For private mappings, we should verify that changes cannot be read()
23951 back from the file, nor mmap's back from the file at a different
23952 address. (There have been systems where private was not correctly
23953 implemented like the infamous i386 svr4.0, and systems where the
23954 VM page cache was not coherent with the file system buffer cache
23955 like early versions of FreeBSD and possibly contemporary NetBSD.)
23956 For shared mappings, we should conversely verify that changes get
23957 propagated back to all the places they're supposed to be.
23958
23959 Grep wants private fixed already mapped.
23960 The main things grep needs to know about mmap are:
23961 * does it exist and is it safe to write into the mmap'd area
23962 * how to use it (BSD variants) */
23963
23964#include <fcntl.h>
23965#include <sys/mman.h>
23966
23967#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23968char *malloc ();
23969#endif
23970
23971/* This mess was copied from the GNU getpagesize.h. */
23972#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000023973# ifdef _SC_PAGESIZE
23974# define getpagesize() sysconf(_SC_PAGESIZE)
23975# else /* no _SC_PAGESIZE */
23976# ifdef HAVE_SYS_PARAM_H
23977# include <sys/param.h>
23978# ifdef EXEC_PAGESIZE
23979# define getpagesize() EXEC_PAGESIZE
23980# else /* no EXEC_PAGESIZE */
23981# ifdef NBPG
23982# define getpagesize() NBPG * CLSIZE
23983# ifndef CLSIZE
23984# define CLSIZE 1
23985# endif /* no CLSIZE */
23986# else /* no NBPG */
23987# ifdef NBPC
23988# define getpagesize() NBPC
23989# else /* no NBPC */
23990# ifdef PAGESIZE
23991# define getpagesize() PAGESIZE
23992# endif /* PAGESIZE */
23993# endif /* no NBPC */
23994# endif /* no NBPG */
23995# endif /* no EXEC_PAGESIZE */
23996# else /* no HAVE_SYS_PARAM_H */
23997# define getpagesize() 8192 /* punt totally */
23998# endif /* no HAVE_SYS_PARAM_H */
23999# endif /* no _SC_PAGESIZE */
24000
24001#endif /* no HAVE_GETPAGESIZE */
24002
24003int
24004main ()
24005{
24006 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024007 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024008 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024009 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024010
24011 pagesize = getpagesize ();
24012
24013 /* First, make a file with some known garbage in it. */
24014 data = (char *) malloc (pagesize);
24015 if (!data)
24016 return 1;
24017 for (i = 0; i < pagesize; ++i)
24018 *(data + i) = rand ();
24019 umask (0);
24020 fd = creat ("conftest.mmap", 0600);
24021 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024022 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024023 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024024 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024025 close (fd);
24026
cristycd4c5312009-11-22 01:19:08 +000024027 /* Next, check that the tail of a page is zero-filled. File must have
24028 non-zero length, otherwise we risk SIGBUS for entire page. */
24029 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24030 if (fd2 < 0)
24031 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024032 cdata2 = "";
24033 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024034 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024035 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024036 if (data2 == MAP_FAILED)
24037 return 6;
24038 for (i = 0; i < pagesize; ++i)
24039 if (*(data2 + i))
24040 return 7;
24041 close (fd2);
24042 if (munmap (data2, pagesize))
24043 return 8;
24044
cristy3ed852e2009-09-05 21:47:34 +000024045 /* Next, try to mmap the file at a fixed address which already has
24046 something else allocated at it. If we can, also make sure that
24047 we see the same garbage. */
24048 fd = open ("conftest.mmap", O_RDWR);
24049 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024050 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024051 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24052 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024053 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024054 for (i = 0; i < pagesize; ++i)
24055 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024056 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024057
24058 /* Finally, make sure that changes to the mapped area do not
24059 percolate back to the file as seen by read(). (This is a bug on
24060 some variants of i386 svr4.0.) */
24061 for (i = 0; i < pagesize; ++i)
24062 *(data2 + i) = *(data2 + i) + 1;
24063 data3 = (char *) malloc (pagesize);
24064 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024065 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024066 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024067 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024068 for (i = 0; i < pagesize; ++i)
24069 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024070 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024071 close (fd);
24072 return 0;
24073}
24074_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024075if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024076 ac_cv_func_mmap_fixed_mapped=yes
24077else
cristy8b350f62009-11-15 23:12:43 +000024078 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024079fi
cristy8b350f62009-11-15 23:12:43 +000024080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24081 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024082fi
24083
cristy3ed852e2009-09-05 21:47:34 +000024084fi
cristy8b350f62009-11-15 23:12:43 +000024085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024086$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24087if test $ac_cv_func_mmap_fixed_mapped = yes; then
24088
cristy8b350f62009-11-15 23:12:43 +000024089$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024090
24091fi
cristycd4c5312009-11-22 01:19:08 +000024092rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024093
cristy3ed852e2009-09-05 21:47:34 +000024094for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024095do :
24096 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024097if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024098 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024099#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024100_ACEOF
24101
24102fi
24103
24104done
24105
cristy3ed852e2009-09-05 21:47:34 +000024106for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024107do :
24108 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24109ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024110if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024111 cat >>confdefs.h <<_ACEOF
24112#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24113_ACEOF
24114
24115fi
24116done
24117
24118if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024120$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024121if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024122 $as_echo_n "(cached) " >&6
24123else
cristy8b350f62009-11-15 23:12:43 +000024124 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024125 ac_cv_func_fork_works=cross
24126else
cristy8b350f62009-11-15 23:12:43 +000024127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024128/* end confdefs.h. */
24129$ac_includes_default
24130int
24131main ()
24132{
24133
24134 /* By Ruediger Kuhlmann. */
24135 return fork () < 0;
24136
24137 ;
24138 return 0;
24139}
24140_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024141if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024142 ac_cv_func_fork_works=yes
24143else
cristy8b350f62009-11-15 23:12:43 +000024144 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024145fi
cristy8b350f62009-11-15 23:12:43 +000024146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24147 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024148fi
24149
cristy3ed852e2009-09-05 21:47:34 +000024150fi
cristy8b350f62009-11-15 23:12:43 +000024151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024152$as_echo "$ac_cv_func_fork_works" >&6; }
24153
24154else
24155 ac_cv_func_fork_works=$ac_cv_func_fork
24156fi
24157if test "x$ac_cv_func_fork_works" = xcross; then
24158 case $host in
24159 *-*-amigaos* | *-*-msdosdjgpp*)
24160 # Override, as these systems have only a dummy fork() stub
24161 ac_cv_func_fork_works=no
24162 ;;
24163 *)
24164 ac_cv_func_fork_works=yes
24165 ;;
24166 esac
cristy8b350f62009-11-15 23:12:43 +000024167 { $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 +000024168$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24169fi
24170ac_cv_func_vfork_works=$ac_cv_func_vfork
24171if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024173$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024174if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024175 $as_echo_n "(cached) " >&6
24176else
cristy8b350f62009-11-15 23:12:43 +000024177 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024178 ac_cv_func_vfork_works=cross
24179else
cristy8b350f62009-11-15 23:12:43 +000024180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024181/* end confdefs.h. */
24182/* Thanks to Paul Eggert for this test. */
24183$ac_includes_default
24184#include <sys/wait.h>
24185#ifdef HAVE_VFORK_H
24186# include <vfork.h>
24187#endif
24188/* On some sparc systems, changes by the child to local and incoming
24189 argument registers are propagated back to the parent. The compiler
24190 is told about this with #include <vfork.h>, but some compilers
24191 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24192 static variable whose address is put into a register that is
24193 clobbered by the vfork. */
24194static void
24195#ifdef __cplusplus
24196sparc_address_test (int arg)
24197# else
24198sparc_address_test (arg) int arg;
24199#endif
24200{
24201 static pid_t child;
24202 if (!child) {
24203 child = vfork ();
24204 if (child < 0) {
24205 perror ("vfork");
24206 _exit(2);
24207 }
24208 if (!child) {
24209 arg = getpid();
24210 write(-1, "", 0);
24211 _exit (arg);
24212 }
24213 }
24214}
24215
24216int
24217main ()
24218{
24219 pid_t parent = getpid ();
24220 pid_t child;
24221
24222 sparc_address_test (0);
24223
24224 child = vfork ();
24225
24226 if (child == 0) {
24227 /* Here is another test for sparc vfork register problems. This
24228 test uses lots of local variables, at least as many local
24229 variables as main has allocated so far including compiler
24230 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24231 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24232 reuse the register of parent for one of the local variables,
24233 since it will think that parent can't possibly be used any more
24234 in this routine. Assigning to the local variable will thus
24235 munge parent in the parent process. */
24236 pid_t
24237 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24238 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24239 /* Convince the compiler that p..p7 are live; otherwise, it might
24240 use the same hardware register for all 8 local variables. */
24241 if (p != p1 || p != p2 || p != p3 || p != p4
24242 || p != p5 || p != p6 || p != p7)
24243 _exit(1);
24244
24245 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24246 from child file descriptors. If the child closes a descriptor
24247 before it execs or exits, this munges the parent's descriptor
24248 as well. Test for this by closing stdout in the child. */
24249 _exit(close(fileno(stdout)) != 0);
24250 } else {
24251 int status;
24252 struct stat st;
24253
24254 while (wait(&status) != child)
24255 ;
24256 return (
24257 /* Was there some problem with vforking? */
24258 child < 0
24259
24260 /* Did the child fail? (This shouldn't happen.) */
24261 || status
24262
24263 /* Did the vfork/compiler bug occur? */
24264 || parent != getpid()
24265
24266 /* Did the file descriptor bug occur? */
24267 || fstat(fileno(stdout), &st) != 0
24268 );
24269 }
24270}
24271_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024272if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024273 ac_cv_func_vfork_works=yes
24274else
cristy8b350f62009-11-15 23:12:43 +000024275 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024276fi
cristy8b350f62009-11-15 23:12:43 +000024277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24278 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024279fi
24280
cristy3ed852e2009-09-05 21:47:34 +000024281fi
cristy8b350f62009-11-15 23:12:43 +000024282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024283$as_echo "$ac_cv_func_vfork_works" >&6; }
24284
24285fi;
24286if test "x$ac_cv_func_fork_works" = xcross; then
24287 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024288 { $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 +000024289$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24290fi
24291
24292if test "x$ac_cv_func_vfork_works" = xyes; then
24293
cristy8b350f62009-11-15 23:12:43 +000024294$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024295
24296else
24297
cristy8b350f62009-11-15 23:12:43 +000024298$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024299
24300fi
24301if test "x$ac_cv_func_fork_works" = xyes; then
24302
cristy8b350f62009-11-15 23:12:43 +000024303$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024304
24305fi
24306
cristy8b350f62009-11-15 23:12:43 +000024307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024308$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024309if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024310 $as_echo_n "(cached) " >&6
24311else
cristy8b350f62009-11-15 23:12:43 +000024312 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024313 ac_cv_func_memcmp_working=no
24314else
cristy8b350f62009-11-15 23:12:43 +000024315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024316/* end confdefs.h. */
24317$ac_includes_default
24318int
24319main ()
24320{
24321
24322 /* Some versions of memcmp are not 8-bit clean. */
24323 char c0 = '\100', c1 = '\200', c2 = '\201';
24324 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24325 return 1;
24326
24327 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24328 or more and with at least one buffer not starting on a 4-byte boundary.
24329 William Lewis provided this test program. */
24330 {
24331 char foo[21];
24332 char bar[21];
24333 int i;
24334 for (i = 0; i < 4; i++)
24335 {
24336 char *a = foo + i;
24337 char *b = bar + i;
24338 strcpy (a, "--------01111111");
24339 strcpy (b, "--------10000000");
24340 if (memcmp (a, b, 16) >= 0)
24341 return 1;
24342 }
24343 return 0;
24344 }
24345
24346 ;
24347 return 0;
24348}
24349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024350if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024351 ac_cv_func_memcmp_working=yes
24352else
cristy8b350f62009-11-15 23:12:43 +000024353 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024354fi
cristy8b350f62009-11-15 23:12:43 +000024355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24356 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024357fi
24358
cristy3ed852e2009-09-05 21:47:34 +000024359fi
cristy8b350f62009-11-15 23:12:43 +000024360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024361$as_echo "$ac_cv_func_memcmp_working" >&6; }
24362test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24363 *" memcmp.$ac_objext "* ) ;;
24364 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24365 ;;
24366esac
24367
24368
cristy3ed852e2009-09-05 21:47:34 +000024369for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024370do :
24371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24372ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024373if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024374 cat >>confdefs.h <<_ACEOF
24375#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24376_ACEOF
24377
24378fi
24379
24380done
24381
cristy8b350f62009-11-15 23:12:43 +000024382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024383$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024384if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024385 $as_echo_n "(cached) " >&6
24386else
24387 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24388 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24389 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024391/* end confdefs.h. */
24392$ac_includes_default
24393#ifdef HAVE_SYS_SELECT_H
24394# include <sys/select.h>
24395#endif
24396#ifdef HAVE_SYS_SOCKET_H
24397# include <sys/socket.h>
24398#endif
24399
24400int
24401main ()
24402{
24403extern int select ($ac_arg1,
24404 $ac_arg234, $ac_arg234, $ac_arg234,
24405 $ac_arg5);
24406 ;
24407 return 0;
24408}
24409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024410if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024411 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024412fi
cristy3ed852e2009-09-05 21:47:34 +000024413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24414 done
24415 done
24416done
24417# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024418: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024419
24420fi
cristy8b350f62009-11-15 23:12:43 +000024421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024422$as_echo "$ac_cv_func_select_args" >&6; }
24423ac_save_IFS=$IFS; IFS=','
24424set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24425IFS=$ac_save_IFS
24426shift
24427
24428cat >>confdefs.h <<_ACEOF
24429#define SELECT_TYPE_ARG1 $1
24430_ACEOF
24431
24432
24433cat >>confdefs.h <<_ACEOF
24434#define SELECT_TYPE_ARG234 ($2)
24435_ACEOF
24436
24437
24438cat >>confdefs.h <<_ACEOF
24439#define SELECT_TYPE_ARG5 ($3)
24440_ACEOF
24441
24442rm -f conftest*
24443
cristyda16f162011-02-19 23:52:17 +000024444if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024445 $as_echo_n "(cached) " >&6
24446else
24447 ac_cv_func_setvbuf_reversed=no
24448fi
24449
24450
cristy8b350f62009-11-15 23:12:43 +000024451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024452$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024453if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024454 $as_echo_n "(cached) " >&6
24455else
cristy8b350f62009-11-15 23:12:43 +000024456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024457/* end confdefs.h. */
24458#include <sys/types.h>
24459#include <signal.h>
24460
24461int
24462main ()
24463{
24464return *(signal (0, 0)) (0) == 1;
24465 ;
24466 return 0;
24467}
24468_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024469if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024470 ac_cv_type_signal=int
24471else
cristy8b350f62009-11-15 23:12:43 +000024472 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024473fi
cristy3ed852e2009-09-05 21:47:34 +000024474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24475fi
cristy8b350f62009-11-15 23:12:43 +000024476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024477$as_echo "$ac_cv_type_signal" >&6; }
24478
24479cat >>confdefs.h <<_ACEOF
24480#define RETSIGTYPE $ac_cv_type_signal
24481_ACEOF
24482
24483
cristy8b350f62009-11-15 23:12:43 +000024484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024485$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024486if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024487 $as_echo_n "(cached) " >&6
24488else
cristy8b350f62009-11-15 23:12:43 +000024489 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024490 ac_cv_func_strtod=no
24491else
cristy8b350f62009-11-15 23:12:43 +000024492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024493/* end confdefs.h. */
24494
24495$ac_includes_default
24496#ifndef strtod
24497double strtod ();
24498#endif
24499int
24500main()
24501{
24502 {
24503 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24504 char *string = " +69";
24505 char *term;
24506 double value;
24507 value = strtod (string, &term);
24508 if (value != 69 || term != (string + 4))
24509 return 1;
24510 }
24511
24512 {
24513 /* Under Solaris 2.4, strtod returns the wrong value for the
24514 terminating character under some conditions. */
24515 char *string = "NaN";
24516 char *term;
24517 strtod (string, &term);
24518 if (term != string && *(term - 1) == 0)
24519 return 1;
24520 }
24521 return 0;
24522}
24523
24524_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024525if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024526 ac_cv_func_strtod=yes
24527else
cristy8b350f62009-11-15 23:12:43 +000024528 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024529fi
cristy8b350f62009-11-15 23:12:43 +000024530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24531 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024532fi
24533
cristy3ed852e2009-09-05 21:47:34 +000024534fi
cristy8b350f62009-11-15 23:12:43 +000024535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024536$as_echo "$ac_cv_func_strtod" >&6; }
24537if test $ac_cv_func_strtod = no; then
24538 case " $LIBOBJS " in
24539 *" strtod.$ac_objext "* ) ;;
24540 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24541 ;;
24542esac
24543
cristy8b350f62009-11-15 23:12:43 +000024544ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024545if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024546
cristy3ed852e2009-09-05 21:47:34 +000024547fi
24548
cristy3ed852e2009-09-05 21:47:34 +000024549if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024551$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024552if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024553 $as_echo_n "(cached) " >&6
24554else
24555 ac_check_lib_save_LIBS=$LIBS
24556LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024558/* end confdefs.h. */
24559
24560/* Override any GCC internal prototype to avoid an error.
24561 Use char because int might match the return type of a GCC
24562 builtin and then its argument prototype would still apply. */
24563#ifdef __cplusplus
24564extern "C"
24565#endif
24566char pow ();
24567int
24568main ()
24569{
24570return pow ();
24571 ;
24572 return 0;
24573}
24574_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024575if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024576 ac_cv_lib_m_pow=yes
24577else
cristy8b350f62009-11-15 23:12:43 +000024578 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024579fi
cristy8b350f62009-11-15 23:12:43 +000024580rm -f core conftest.err conftest.$ac_objext \
24581 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024582LIBS=$ac_check_lib_save_LIBS
24583fi
cristy8b350f62009-11-15 23:12:43 +000024584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024585$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024586if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024587 POW_LIB=-lm
24588else
cristy8b350f62009-11-15 23:12:43 +000024589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024590$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24591fi
24592
24593fi
24594
24595fi
24596
cristy7d4a1d62011-10-13 15:54:12 +000024597ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24598if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24599 ac_have_decl=1
24600else
24601 ac_have_decl=0
24602fi
24603
24604cat >>confdefs.h <<_ACEOF
24605#define HAVE_DECL_STRERROR_R $ac_have_decl
24606_ACEOF
24607
24608for ac_func in strerror_r
24609do :
24610 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24611if test "x$ac_cv_func_strerror_r" = xyes; then :
24612 cat >>confdefs.h <<_ACEOF
24613#define HAVE_STRERROR_R 1
24614_ACEOF
24615
24616fi
24617done
24618
24619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24620$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24621if ${ac_cv_func_strerror_r_char_p+:} false; then :
24622 $as_echo_n "(cached) " >&6
24623else
24624
24625 ac_cv_func_strerror_r_char_p=no
24626 if test $ac_cv_have_decl_strerror_r = yes; then
24627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24628/* end confdefs.h. */
24629$ac_includes_default
24630int
24631main ()
24632{
24633
24634 char buf[100];
24635 char x = *strerror_r (0, buf, sizeof buf);
24636 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024637 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024638
24639 ;
24640 return 0;
24641}
24642_ACEOF
24643if ac_fn_c_try_compile "$LINENO"; then :
24644 ac_cv_func_strerror_r_char_p=yes
24645fi
24646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24647 else
24648 # strerror_r is not declared. Choose between
24649 # systems that have relatively inaccessible declarations for the
24650 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24651 # former has a strerror_r that returns char*, while the latter
24652 # has a strerror_r that returns `int'.
24653 # This test should segfault on the DEC system.
24654 if test "$cross_compiling" = yes; then :
24655 :
24656else
24657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24658/* end confdefs.h. */
24659$ac_includes_default
24660 extern char *strerror_r ();
24661int
24662main ()
24663{
24664char buf[100];
24665 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024666 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024667 ;
24668 return 0;
24669}
24670_ACEOF
24671if ac_fn_c_try_run "$LINENO"; then :
24672 ac_cv_func_strerror_r_char_p=yes
24673fi
24674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24675 conftest.$ac_objext conftest.beam conftest.$ac_ext
24676fi
24677
24678 fi
24679
24680fi
24681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24682$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24683if test $ac_cv_func_strerror_r_char_p = yes; then
24684
24685$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24686
24687fi
24688
cristy3ed852e2009-09-05 21:47:34 +000024689for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024690do :
24691 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024692if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024693 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024694#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024695_ACEOF
24696
cristy8b350f62009-11-15 23:12:43 +000024697ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024698if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024699
cristy8b350f62009-11-15 23:12:43 +000024700$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024701
24702fi
24703
24704fi
24705done
24706
24707
24708
cristy161b9262010-03-20 19:34:32 +000024709#
24710# Find math library
24711#
24712MATH_LIBS=''
24713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24714$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024715if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024716 $as_echo_n "(cached) " >&6
24717else
24718 ac_check_lib_save_LIBS=$LIBS
24719LIBS="-lm $LIBS"
24720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24721/* end confdefs.h. */
24722
24723/* Override any GCC internal prototype to avoid an error.
24724 Use char because int might match the return type of a GCC
24725 builtin and then its argument prototype would still apply. */
24726#ifdef __cplusplus
24727extern "C"
24728#endif
24729char sqrt ();
24730int
24731main ()
24732{
24733return sqrt ();
24734 ;
24735 return 0;
24736}
24737_ACEOF
24738if ac_fn_c_try_link "$LINENO"; then :
24739 ac_cv_lib_m_sqrt=yes
24740else
24741 ac_cv_lib_m_sqrt=no
24742fi
24743rm -f core conftest.err conftest.$ac_objext \
24744 conftest$ac_exeext conftest.$ac_ext
24745LIBS=$ac_check_lib_save_LIBS
24746fi
24747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24748$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024749if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024750 MATH_LIBS="-lm"
24751fi
24752
24753LIBS="$MATH_LIBS $LIBS"
24754
24755
cristy85572162013-01-04 19:19:32 +000024756#
24757# Find socket library
24758#
cristy8a5d7f42013-01-06 15:24:33 +000024759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
24760$as_echo_n "checking for library containing gethostbyname... " >&6; }
24761if ${ac_cv_search_gethostbyname+:} false; then :
24762 $as_echo_n "(cached) " >&6
24763else
24764 ac_func_search_save_LIBS=$LIBS
24765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24766/* end confdefs.h. */
24767
24768/* Override any GCC internal prototype to avoid an error.
24769 Use char because int might match the return type of a GCC
24770 builtin and then its argument prototype would still apply. */
24771#ifdef __cplusplus
24772extern "C"
24773#endif
24774char gethostbyname ();
24775int
24776main ()
24777{
24778return gethostbyname ();
24779 ;
24780 return 0;
24781}
24782_ACEOF
24783for ac_lib in '' resolv nsl; do
24784 if test -z "$ac_lib"; then
24785 ac_res="none required"
24786 else
24787 ac_res=-l$ac_lib
24788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24789 fi
24790 if ac_fn_c_try_link "$LINENO"; then :
24791 ac_cv_search_gethostbyname=$ac_res
24792fi
24793rm -f core conftest.err conftest.$ac_objext \
24794 conftest$ac_exeext
24795 if ${ac_cv_search_gethostbyname+:} false; then :
24796 break
24797fi
24798done
24799if ${ac_cv_search_gethostbyname+:} false; then :
24800
24801else
24802 ac_cv_search_gethostbyname=no
24803fi
24804rm conftest.$ac_ext
24805LIBS=$ac_func_search_save_LIBS
24806fi
24807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
24808$as_echo "$ac_cv_search_gethostbyname" >&6; }
24809ac_res=$ac_cv_search_gethostbyname
24810if test "$ac_res" != no; then :
24811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24812
24813fi
24814
cristy85572162013-01-04 19:19:32 +000024815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
24816$as_echo_n "checking for library containing socket... " >&6; }
24817if ${ac_cv_search_socket+:} false; then :
24818 $as_echo_n "(cached) " >&6
24819else
24820 ac_func_search_save_LIBS=$LIBS
24821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24822/* end confdefs.h. */
24823
24824/* Override any GCC internal prototype to avoid an error.
24825 Use char because int might match the return type of a GCC
24826 builtin and then its argument prototype would still apply. */
24827#ifdef __cplusplus
24828extern "C"
24829#endif
24830char socket ();
24831int
24832main ()
24833{
24834return socket ();
24835 ;
24836 return 0;
24837}
24838_ACEOF
24839for ac_lib in '' socket; do
24840 if test -z "$ac_lib"; then
24841 ac_res="none required"
24842 else
24843 ac_res=-l$ac_lib
24844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24845 fi
24846 if ac_fn_c_try_link "$LINENO"; then :
24847 ac_cv_search_socket=$ac_res
24848fi
24849rm -f core conftest.err conftest.$ac_objext \
24850 conftest$ac_exeext
24851 if ${ac_cv_search_socket+:} false; then :
24852 break
24853fi
24854done
24855if ${ac_cv_search_socket+:} false; then :
24856
24857else
24858 ac_cv_search_socket=no
24859fi
24860rm conftest.$ac_ext
24861LIBS=$ac_func_search_save_LIBS
24862fi
24863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
24864$as_echo "$ac_cv_search_socket" >&6; }
24865ac_res=$ac_cv_search_socket
24866if test "$ac_res" != no; then :
24867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24868
cristy85572162013-01-04 19:19:32 +000024869
cristy8a5d7f42013-01-06 15:24:33 +000024870$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000024871
cristy03f187e2013-01-24 00:22:19 +000024872 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000024873
24874fi
24875
24876
24877for 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 +000024878do :
24879 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24880ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024881if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024882 cat >>confdefs.h <<_ACEOF
24883#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24884_ACEOF
24885
24886fi
24887done
24888
24889
cristye43a45e2009-09-28 14:49:00 +000024890#
24891# Check for clock_gettime().
24892#
cristy8b350f62009-11-15 23:12:43 +000024893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024894$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024895if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024896 $as_echo_n "(cached) " >&6
24897else
24898 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024900/* end confdefs.h. */
24901
24902/* Override any GCC internal prototype to avoid an error.
24903 Use char because int might match the return type of a GCC
24904 builtin and then its argument prototype would still apply. */
24905#ifdef __cplusplus
24906extern "C"
24907#endif
24908char clock_gettime ();
24909int
24910main ()
24911{
24912return clock_gettime ();
24913 ;
24914 return 0;
24915}
24916_ACEOF
24917for ac_lib in '' rt; do
24918 if test -z "$ac_lib"; then
24919 ac_res="none required"
24920 else
24921 ac_res=-l$ac_lib
24922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24923 fi
cristy8b350f62009-11-15 23:12:43 +000024924 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024925 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024926fi
cristy8b350f62009-11-15 23:12:43 +000024927rm -f core conftest.err conftest.$ac_objext \
24928 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024929 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024930 break
24931fi
24932done
cristyda16f162011-02-19 23:52:17 +000024933if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024934
cristye43a45e2009-09-28 14:49:00 +000024935else
24936 ac_cv_search_clock_gettime=no
24937fi
24938rm conftest.$ac_ext
24939LIBS=$ac_func_search_save_LIBS
24940fi
cristy8b350f62009-11-15 23:12:43 +000024941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024942$as_echo "$ac_cv_search_clock_gettime" >&6; }
24943ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024944if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24946
24947
cristy8b350f62009-11-15 23:12:43 +000024948$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024949
cristy8b350f62009-11-15 23:12:43 +000024950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024951$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024953/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024954
24955 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024956int
24957main ()
24958{
24959clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024960 ;
24961 return 0;
24962}
24963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024964if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024965
cristyad38abe2012-12-23 23:03:21 +000024966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24967$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000024968
cristy8b350f62009-11-15 23:12:43 +000024969$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024970
24971
24972else
cristyad38abe2012-12-23 23:03:21 +000024973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24974$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000024975
24976fi
cristye43a45e2009-09-28 14:49:00 +000024977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24978
24979else
24980
cristy8b350f62009-11-15 23:12:43 +000024981 for ac_func in gettimeofday ftime
24982do :
24983 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24984ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024985if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024986 cat >>confdefs.h <<_ACEOF
24987#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24988_ACEOF
24989 break
24990fi
24991done
24992
24993
24994
24995fi
24996
24997
cristy3ed852e2009-09-05 21:47:34 +000024998########
24999#
25000# Check for function prototypes
25001#
25002########
25003
cristy8b350f62009-11-15 23:12:43 +000025004ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025005#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025006"
cristyda16f162011-02-19 23:52:17 +000025007if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025008 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025009else
cristy8b350f62009-11-15 23:12:43 +000025010 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025011fi
25012
cristy3ed852e2009-09-05 21:47:34 +000025013cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025014#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025015_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025016ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025017#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025018"
cristyda16f162011-02-19 23:52:17 +000025019if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025020 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025021else
cristy8b350f62009-11-15 23:12:43 +000025022 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025023fi
25024
cristy3ed852e2009-09-05 21:47:34 +000025025cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025026#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025027_ACEOF
25028
25029
cristy8b350f62009-11-15 23:12:43 +000025030ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025031#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025032"
cristyda16f162011-02-19 23:52:17 +000025033if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025034 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025035else
cristy8b350f62009-11-15 23:12:43 +000025036 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025037fi
25038
cristy3ed852e2009-09-05 21:47:34 +000025039cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025040#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025041_ACEOF
25042
25043
cristy8b350f62009-11-15 23:12:43 +000025044ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025045#include <stdio.h>
25046#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025047"
cristyda16f162011-02-19 23:52:17 +000025048if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025049 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025050else
cristy8b350f62009-11-15 23:12:43 +000025051 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025052fi
25053
cristy3ed852e2009-09-05 21:47:34 +000025054cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025055#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025056_ACEOF
25057
25058
cristy3ed852e2009-09-05 21:47:34 +000025059########
25060#
25061# C++ Support Tests (For Magick++)
25062#
25063########
25064have_magick_plus_plus='no'
25065if test "$with_magick_plus_plus" = 'yes'; then
25066 OLIBS="$LIBS"
25067 LIBS=''
25068 ac_ext=cpp
25069ac_cpp='$CXXCPP $CPPFLAGS'
25070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25073
25074
25075 # Full set of headers used...
25076 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25077 # functional iomanip iosfwd iostream iterator list string strstream utility
25078 ac_ext=cpp
25079ac_cpp='$CXXCPP $CPPFLAGS'
25080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25083
25084 ac_ext=cpp
25085ac_cpp='$CXXCPP $CPPFLAGS'
25086ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25087ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25088ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25089if test -z "$CXX"; then
25090 if test -n "$CCC"; then
25091 CXX=$CCC
25092 else
25093 if test -n "$ac_tool_prefix"; then
25094 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25095 do
25096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25097set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025099$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025100if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025101 $as_echo_n "(cached) " >&6
25102else
25103 if test -n "$CXX"; then
25104 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25105else
25106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25107for as_dir in $PATH
25108do
25109 IFS=$as_save_IFS
25110 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025111 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025113 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025115 break 2
25116 fi
25117done
cristy8b350f62009-11-15 23:12:43 +000025118 done
cristy3ed852e2009-09-05 21:47:34 +000025119IFS=$as_save_IFS
25120
25121fi
25122fi
25123CXX=$ac_cv_prog_CXX
25124if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025126$as_echo "$CXX" >&6; }
25127else
cristy8b350f62009-11-15 23:12:43 +000025128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025129$as_echo "no" >&6; }
25130fi
25131
25132
25133 test -n "$CXX" && break
25134 done
25135fi
25136if test -z "$CXX"; then
25137 ac_ct_CXX=$CXX
25138 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25139do
25140 # Extract the first word of "$ac_prog", so it can be a program name with args.
25141set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025143$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025144if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025145 $as_echo_n "(cached) " >&6
25146else
25147 if test -n "$ac_ct_CXX"; then
25148 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25149else
25150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25151for as_dir in $PATH
25152do
25153 IFS=$as_save_IFS
25154 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025155 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025157 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025159 break 2
25160 fi
25161done
cristy8b350f62009-11-15 23:12:43 +000025162 done
cristy3ed852e2009-09-05 21:47:34 +000025163IFS=$as_save_IFS
25164
25165fi
25166fi
25167ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25168if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025170$as_echo "$ac_ct_CXX" >&6; }
25171else
cristy8b350f62009-11-15 23:12:43 +000025172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025173$as_echo "no" >&6; }
25174fi
25175
25176
25177 test -n "$ac_ct_CXX" && break
25178done
25179
25180 if test "x$ac_ct_CXX" = x; then
25181 CXX="g++"
25182 else
25183 case $cross_compiling:$ac_tool_warned in
25184yes:)
cristy8b350f62009-11-15 23:12:43 +000025185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25187ac_tool_warned=yes ;;
25188esac
25189 CXX=$ac_ct_CXX
25190 fi
25191fi
25192
25193 fi
25194fi
25195# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025196$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025197set X $ac_compile
25198ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025199for ac_option in --version -v -V -qversion; do
25200 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025201case "(($ac_try" in
25202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25203 *) ac_try_echo=$ac_try;;
25204esac
cristy8b350f62009-11-15 23:12:43 +000025205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25206$as_echo "$ac_try_echo"; } >&5
25207 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025208 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025209 if test -s conftest.err; then
25210 sed '10a\
25211... rest of stderr output deleted ...
25212 10q' conftest.err >conftest.er1
25213 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025214 fi
cristycd4c5312009-11-22 01:19:08 +000025215 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25217 test $ac_status = 0; }
25218done
cristy3ed852e2009-09-05 21:47:34 +000025219
cristy8b350f62009-11-15 23:12:43 +000025220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025221$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025222if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025223 $as_echo_n "(cached) " >&6
25224else
cristy8b350f62009-11-15 23:12:43 +000025225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025226/* end confdefs.h. */
25227
25228int
25229main ()
25230{
25231#ifndef __GNUC__
25232 choke me
25233#endif
25234
25235 ;
25236 return 0;
25237}
25238_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025239if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025240 ac_compiler_gnu=yes
25241else
cristy8b350f62009-11-15 23:12:43 +000025242 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025243fi
cristy3ed852e2009-09-05 21:47:34 +000025244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25245ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25246
25247fi
cristy8b350f62009-11-15 23:12:43 +000025248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025249$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25250if test $ac_compiler_gnu = yes; then
25251 GXX=yes
25252else
25253 GXX=
25254fi
25255ac_test_CXXFLAGS=${CXXFLAGS+set}
25256ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025258$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025259if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025260 $as_echo_n "(cached) " >&6
25261else
25262 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25263 ac_cxx_werror_flag=yes
25264 ac_cv_prog_cxx_g=no
25265 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025267/* end confdefs.h. */
25268
25269int
25270main ()
25271{
25272
25273 ;
25274 return 0;
25275}
25276_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025277if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025278 ac_cv_prog_cxx_g=yes
25279else
cristy8b350f62009-11-15 23:12:43 +000025280 CXXFLAGS=""
25281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025282/* end confdefs.h. */
25283
25284int
25285main ()
25286{
25287
25288 ;
25289 return 0;
25290}
25291_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025292if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025293
cristy8b350f62009-11-15 23:12:43 +000025294else
25295 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025296 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025298/* end confdefs.h. */
25299
25300int
25301main ()
25302{
25303
25304 ;
25305 return 0;
25306}
25307_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025308if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025309 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025310fi
cristy3ed852e2009-09-05 21:47:34 +000025311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25312fi
cristy3ed852e2009-09-05 21:47:34 +000025313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25314fi
cristy3ed852e2009-09-05 21:47:34 +000025315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25316 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25317fi
cristy8b350f62009-11-15 23:12:43 +000025318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025319$as_echo "$ac_cv_prog_cxx_g" >&6; }
25320if test "$ac_test_CXXFLAGS" = set; then
25321 CXXFLAGS=$ac_save_CXXFLAGS
25322elif test $ac_cv_prog_cxx_g = yes; then
25323 if test "$GXX" = yes; then
25324 CXXFLAGS="-g -O2"
25325 else
25326 CXXFLAGS="-g"
25327 fi
25328else
25329 if test "$GXX" = yes; then
25330 CXXFLAGS="-O2"
25331 else
25332 CXXFLAGS=
25333 fi
25334fi
25335ac_ext=cpp
25336ac_cpp='$CXXCPP $CPPFLAGS'
25337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25340
cristy73bd4a52010-10-05 11:24:23 +000025341depcc="$CXX" am_compiler_list=
25342
25343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25344$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025345if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025346 $as_echo_n "(cached) " >&6
25347else
25348 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25349 # We make a subdir and do the tests there. Otherwise we can end up
25350 # making bogus files that we don't know about and never remove. For
25351 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025352 # making a dummy file named 'D' -- because '-MD' means "put the output
25353 # in D".
cristy7247bba2012-02-05 16:37:27 +000025354 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025355 mkdir conftest.dir
25356 # Copy depcomp to subdir because otherwise we won't find it if we're
25357 # using a relative directory.
25358 cp "$am_depcomp" conftest.dir
25359 cd conftest.dir
25360 # We will build objects and dependencies in a subdirectory because
25361 # it helps to detect inapplicable dependency modes. For instance
25362 # both Tru64's cc and ICC support -MD to output dependencies as a
25363 # side effect of compilation, but ICC will put the dependencies in
25364 # the current directory while Tru64 will put them in the object
25365 # directory.
25366 mkdir sub
25367
25368 am_cv_CXX_dependencies_compiler_type=none
25369 if test "$am_compiler_list" = ""; then
25370 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25371 fi
25372 am__universal=false
25373 case " $depcc " in #(
25374 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25375 esac
25376
25377 for depmode in $am_compiler_list; do
25378 # Setup a source with many dependencies, because some compilers
25379 # like to wrap large dependency lists on column 80 (with \), and
25380 # we should not choose a depcomp mode which is confused by this.
25381 #
25382 # We need to recreate these files for each test, as the compiler may
25383 # overwrite some of them when testing with obscure command lines.
25384 # This happens at least with the AIX C compiler.
25385 : > sub/conftest.c
25386 for i in 1 2 3 4 5 6; do
25387 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025388 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25389 # Solaris 10 /bin/sh.
25390 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025391 done
25392 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25393
cristyc0890a62012-07-19 00:18:20 +000025394 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025395 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025396 # handle '-M -o', and we need to detect this. Also, some Intel
25397 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025398 am__obj=sub/conftest.${OBJEXT-o}
25399 am__minus_obj="-o $am__obj"
25400 case $depmode in
25401 gcc)
25402 # This depmode causes a compiler race in universal mode.
25403 test "$am__universal" = false || continue
25404 ;;
25405 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025406 # After this tag, mechanisms are not by side-effect, so they'll
25407 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025408 if test "x$enable_dependency_tracking" = xyes; then
25409 continue
25410 else
25411 break
25412 fi
25413 ;;
cristy7247bba2012-02-05 16:37:27 +000025414 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025415 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025416 # not run yet. These depmodes are late enough in the game, and
25417 # so weak that their functioning should not be impacted.
25418 am__obj=conftest.${OBJEXT-o}
25419 am__minus_obj=
25420 ;;
25421 none) break ;;
25422 esac
25423 if depmode=$depmode \
25424 source=sub/conftest.c object=$am__obj \
25425 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25426 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25427 >/dev/null 2>conftest.err &&
25428 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25429 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25430 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25431 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25432 # icc doesn't choke on unknown options, it will just issue warnings
25433 # or remarks (even with -Werror). So we grep stderr for any message
25434 # that says an option was ignored or not supported.
25435 # When given -MP, icc 7.0 and 7.1 complain thusly:
25436 # icc: Command line warning: ignoring option '-M'; no argument required
25437 # The diagnosis changed in icc 8.0:
25438 # icc: Command line remark: option '-MP' not supported
25439 if (grep 'ignoring option' conftest.err ||
25440 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25441 am_cv_CXX_dependencies_compiler_type=$depmode
25442 break
25443 fi
25444 fi
25445 done
25446
25447 cd ..
25448 rm -rf conftest.dir
25449else
25450 am_cv_CXX_dependencies_compiler_type=none
25451fi
25452
25453fi
25454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25455$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25456CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25457
25458 if
25459 test "x$enable_dependency_tracking" != xno \
25460 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25461 am__fastdepCXX_TRUE=
25462 am__fastdepCXX_FALSE='#'
25463else
25464 am__fastdepCXX_TRUE='#'
25465 am__fastdepCXX_FALSE=
25466fi
25467
25468
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25470$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025471if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025472 $as_echo_n "(cached) " >&6
25473else
25474
25475 ac_ext=cpp
25476ac_cpp='$CXXCPP $CPPFLAGS'
25477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25480
25481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25482/* end confdefs.h. */
25483
25484int f(int x){return 1;}
25485int f(char x){return 1;}
25486int f(bool x){return 1;}
25487
25488int
25489main ()
25490{
25491bool b = true; return f(b);
25492 ;
25493 return 0;
25494}
25495_ACEOF
25496if ac_fn_cxx_try_compile "$LINENO"; then :
25497 ax_cv_cxx_bool=yes
25498else
25499 ax_cv_cxx_bool=no
25500fi
25501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25502 ac_ext=cpp
25503ac_cpp='$CXXCPP $CPPFLAGS'
25504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25507
25508
25509fi
25510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25511$as_echo "$ax_cv_cxx_bool" >&6; }
25512if test "$ax_cv_cxx_bool" = yes; then
25513
25514$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25515
25516fi
25517
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25519$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025520if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025521 $as_echo_n "(cached) " >&6
25522else
25523
25524 ac_ext=cpp
25525ac_cpp='$CXXCPP $CPPFLAGS'
25526ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25527ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25528ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25529
25530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25531/* end confdefs.h. */
25532namespace Outer { namespace Inner { int i = 0; }}
25533int
25534main ()
25535{
25536using namespace Outer::Inner; return i;
25537 ;
25538 return 0;
25539}
25540_ACEOF
25541if ac_fn_cxx_try_compile "$LINENO"; then :
25542 ax_cv_cxx_namespaces=yes
25543else
25544 ax_cv_cxx_namespaces=no
25545fi
25546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25547 ac_ext=cpp
25548ac_cpp='$CXXCPP $CPPFLAGS'
25549ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25550ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25551ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25552
25553
25554fi
25555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25556$as_echo "$ax_cv_cxx_namespaces" >&6; }
25557if test "$ax_cv_cxx_namespaces" = yes; then
25558
25559$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25560
25561fi
25562
25563
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25565$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025566if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025567 $as_echo_n "(cached) " >&6
25568else
25569
25570 ac_ext=cpp
25571ac_cpp='$CXXCPP $CPPFLAGS'
25572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25575
25576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25577/* end confdefs.h. */
25578#include <iostream>
25579 std::istream& is = std::cin;
25580int
25581main ()
25582{
25583
25584 ;
25585 return 0;
25586}
25587_ACEOF
25588if ac_fn_cxx_try_compile "$LINENO"; then :
25589 ax_cv_cxx_have_std_namespace=yes
25590else
25591 ax_cv_cxx_have_std_namespace=no
25592fi
25593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25594 ac_ext=cpp
25595ac_cpp='$CXXCPP $CPPFLAGS'
25596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25599
25600
25601fi
25602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25603$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25604 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25605
25606$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25607
25608 fi
25609
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25611$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025612if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025613 $as_echo_n "(cached) " >&6
25614else
25615
25616
25617 ac_ext=cpp
25618ac_cpp='$CXXCPP $CPPFLAGS'
25619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25622
25623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25624/* end confdefs.h. */
25625#include <iostream>
25626#include <map>
25627#include <iomanip>
25628#include <cmath>
25629#ifdef HAVE_NAMESPACES
25630using namespace std;
25631#endif
25632int
25633main ()
25634{
25635return 0;
25636 ;
25637 return 0;
25638}
25639_ACEOF
25640if ac_fn_cxx_try_compile "$LINENO"; then :
25641 ac_cv_cxx_have_std_libs=yes
25642else
25643 ac_cv_cxx_have_std_libs=no
25644fi
25645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25646 ac_ext=cpp
25647ac_cpp='$CXXCPP $CPPFLAGS'
25648ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25649ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25650ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25651
25652
25653fi
25654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25655$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25656if test "$ac_cv_cxx_have_std_libs" = yes; then
25657
25658$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25659
25660fi
25661
cristy3ed852e2009-09-05 21:47:34 +000025662
25663 OPENMP_CXXFLAGS=
25664 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025665if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025666 enableval=$enable_openmp;
25667fi
25668
25669 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25671$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025672if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025673 $as_echo_n "(cached) " >&6
25674else
cristy8b350f62009-11-15 23:12:43 +000025675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25676/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025677
25678#ifndef _OPENMP
25679 choke me
25680#endif
25681#include <omp.h>
25682int main () { return omp_get_num_threads (); }
25683
25684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025685if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025686 ac_cv_prog_cxx_openmp='none needed'
25687else
cristy8b350f62009-11-15 23:12:43 +000025688 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025689 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25690 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025691 ac_save_CXXFLAGS=$CXXFLAGS
25692 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25694/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025695
25696#ifndef _OPENMP
25697 choke me
25698#endif
25699#include <omp.h>
25700int main () { return omp_get_num_threads (); }
25701
25702_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025703if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025704 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025705fi
cristy8b350f62009-11-15 23:12:43 +000025706rm -f core conftest.err conftest.$ac_objext \
25707 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025708 CXXFLAGS=$ac_save_CXXFLAGS
25709 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25710 break
25711 fi
25712 done
25713fi
cristy8b350f62009-11-15 23:12:43 +000025714rm -f core conftest.err conftest.$ac_objext \
25715 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025716fi
cristy8b350f62009-11-15 23:12:43 +000025717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025718$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25719 case $ac_cv_prog_cxx_openmp in #(
25720 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025721 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025722 *)
cristy8b350f62009-11-15 23:12:43 +000025723 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025724 esac
25725 fi
25726
25727
25728 ac_ext=c
25729ac_cpp='$CPP $CPPFLAGS'
25730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25732ac_compiler_gnu=$ac_cv_c_compiler_gnu
25733
25734
cristy8b350f62009-11-15 23:12:43 +000025735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025736$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25737 if \
cristy964cb7f2010-04-25 23:18:00 +000025738 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025739 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025740 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025741 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025742 have_magick_plus_plus='yes'
25743 else
25744 have_magick_plus_plus='no (failed tests)'
25745 fi
cristyad38abe2012-12-23 23:03:21 +000025746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
25747$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025748 LIBS="$OLIBS"
25749fi
cristy73bd4a52010-10-05 11:24:23 +000025750 if test "$have_magick_plus_plus" = 'yes'; then
25751 WITH_MAGICK_PLUS_PLUS_TRUE=
25752 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25753else
25754 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25755 WITH_MAGICK_PLUS_PLUS_FALSE=
25756fi
25757
cristy3ed852e2009-09-05 21:47:34 +000025758
25759# Only check for delegate libraries in subdirectories if requested.
25760if test "$enable_delegate_build" != 'no'; then
25761 # Check for delegate sub-directories and add -I & -L options as required.
25762 # This presumes that delegates are installed as detailed in the ImageMagick
25763 # README. If delegates are installed in a standard location where the
25764 # compiler will automatically find them then these options should not be
25765 # required.
25766
25767 #
25768 # Most delegates have includes in the same directory as the library, but not all...
25769 #
25770 # Includes
cristyfdc7d122013-08-17 20:46:45 +000025771 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick mupdf png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025772 if test -d "$builddir/$dir"; then
25773 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25774 else
25775 if test -d "$srcdirfull/$dir"; then
25776 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25777 fi
25778 fi
25779 done
25780
25781 # Libraries
cristyfdc7d122013-08-17 20:46:45 +000025782 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick mupdf png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025783 if test -d "$builddir/$dir/.libs"; then
25784 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25785 else
25786 if test -d "$srcdirfull/$dir/.libs"; then
25787 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25788 fi
25789 fi
25790 if test -d "$builddir/$dir"; then
25791 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25792 else
25793 if test -d "$srcdirfull/$dir"; then
25794 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25795 fi
25796 fi
25797 done
25798fi
25799
25800# Assume that delegate headers reside under same directory as ImageMagick
25801# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000025802MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000025803
25804#
25805# Find the X11 RGB database
25806#
cristy8b350f62009-11-15 23:12:43 +000025807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025808$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025809if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025810 $as_echo_n "(cached) " >&6
25811else
25812 # Look for the header file in a standard set of common directories.
25813# Check X11 before X11Rn because it is often a symlink to the current release.
25814 for ac_dir in \
25815 /lib/usr/lib/X11 \
25816 /usr/X11/lib \
25817 /usr/X11R4/lib \
25818 /usr/X11R5/lib \
25819 /usr/X11R6/lib \
25820 /usr/X11R7/lib \
25821 /usr/X386/lib \
25822 /usr/XFree86/lib/X11 \
25823 /usr/athena/lib \
25824 /usr/lib \
25825 /usr/lib/X11 \
25826 /usr/lib/X11R4 \
25827 /usr/lib/X11R5 \
25828 /usr/lib/X11R6 \
25829 /usr/lib/X11R7 \
25830 /usr/local/X11/lib \
25831 /usr/local/X11R4/lib \
25832 /usr/local/X11R5/lib \
25833 /usr/local/X11R6/lib \
25834 /usr/local/lib \
25835 /usr/local/lib/X11 \
25836 /usr/local/lib/X11R4 \
25837 /usr/local/lib/X11R5 \
25838 /usr/local/lib/X11R6 \
25839 /usr/local/lib/X11R7 \
25840 /usr/local/x11r5/lib \
25841 /usr/lpp/Xamples/lib \
25842 /usr/openwin/lib \
25843 /usr/openwin/share/lib \
25844 /usr/unsupported/lib \
25845 /usr/x386/lib \
25846 ; do
25847 if test -f "$ac_dir/X11/rgb.txt"; then
25848 im_cv_x_configure="$ac_dir/X11/"
25849 break
25850 elif test -f "$ac_dir/rgb.txt"; then
25851 im_cv_x_configure="$ac_dir/"
25852 break
25853 fi
25854
25855 done
25856fi
cristy8b350f62009-11-15 23:12:43 +000025857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025858$as_echo "$im_cv_x_configure" >&6; }
25859X11_CONFIGURE_PATH="$im_cv_x_configure"
25860case "${build_os}" in
25861 mingw* )
25862 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25863 ;;
25864esac
25865
25866cat >>confdefs.h <<_ACEOF
25867#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25868_ACEOF
25869
25870
25871#
25872# Find OpenMP library
25873#
25874GOMP_LIBS=''
25875if test "$enable_openmp" != 'no'; then
25876 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000025877 # Open64 (passes for GCC but uses different OpenMP implementation)
25878 if test "x$GOMP_LIBS" = x ; then
25879 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
25881$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
25882if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
25883 $as_echo_n "(cached) " >&6
25884else
25885 ac_check_lib_save_LIBS=$LIBS
25886LIBS="-lopenmp $LIBS"
25887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25888/* end confdefs.h. */
25889
25890/* Override any GCC internal prototype to avoid an error.
25891 Use char because int might match the return type of a GCC
25892 builtin and then its argument prototype would still apply. */
25893#ifdef __cplusplus
25894extern "C"
25895#endif
25896char omp_get_num_procs ();
25897int
25898main ()
25899{
25900return omp_get_num_procs ();
25901 ;
25902 return 0;
25903}
25904_ACEOF
25905if ac_fn_c_try_link "$LINENO"; then :
25906 ac_cv_lib_openmp_omp_get_num_procs=yes
25907else
25908 ac_cv_lib_openmp_omp_get_num_procs=no
25909fi
25910rm -f core conftest.err conftest.$ac_objext \
25911 conftest$ac_exeext conftest.$ac_ext
25912LIBS=$ac_check_lib_save_LIBS
25913fi
25914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
25915$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
25916if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
25917 GOMP_LIBS="-lopenmp"
25918fi
25919
25920 fi
25921 fi
25922 # GCC
25923 if test "x$GOMP_LIBS" = x ; then
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025925$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025926if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025927 $as_echo_n "(cached) " >&6
25928else
25929 ac_check_lib_save_LIBS=$LIBS
25930LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025932/* end confdefs.h. */
25933
25934/* Override any GCC internal prototype to avoid an error.
25935 Use char because int might match the return type of a GCC
25936 builtin and then its argument prototype would still apply. */
25937#ifdef __cplusplus
25938extern "C"
25939#endif
25940char GOMP_parallel_start ();
25941int
25942main ()
25943{
25944return GOMP_parallel_start ();
25945 ;
25946 return 0;
25947}
25948_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025949if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025950 ac_cv_lib_gomp_GOMP_parallel_start=yes
25951else
cristy8b350f62009-11-15 23:12:43 +000025952 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025953fi
cristy8b350f62009-11-15 23:12:43 +000025954rm -f core conftest.err conftest.$ac_objext \
25955 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025956LIBS=$ac_check_lib_save_LIBS
25957fi
cristy8b350f62009-11-15 23:12:43 +000025958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025959$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025960if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025961 GOMP_LIBS="-lgomp"
25962fi
cristy18307f12011-12-30 01:20:16 +000025963
25964 fi
cristy3ed852e2009-09-05 21:47:34 +000025965 else
cristy18307f12011-12-30 01:20:16 +000025966 # Sun CC
25967 if test "x$GOMP_LIBS" = x ; then
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025969$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025970if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025971 $as_echo_n "(cached) " >&6
25972else
25973 ac_check_lib_save_LIBS=$LIBS
25974LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025976/* end confdefs.h. */
25977
25978/* Override any GCC internal prototype to avoid an error.
25979 Use char because int might match the return type of a GCC
25980 builtin and then its argument prototype would still apply. */
25981#ifdef __cplusplus
25982extern "C"
25983#endif
25984char sunw_mp_register_warn ();
25985int
25986main ()
25987{
25988return sunw_mp_register_warn ();
25989 ;
25990 return 0;
25991}
25992_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025993if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025994 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25995else
cristy8b350f62009-11-15 23:12:43 +000025996 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025997fi
cristy8b350f62009-11-15 23:12:43 +000025998rm -f core conftest.err conftest.$ac_objext \
25999 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026000LIBS=$ac_check_lib_save_LIBS
26001fi
cristy8b350f62009-11-15 23:12:43 +000026002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026003$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026004if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026005 GOMP_LIBS="-lmtsk"
26006fi
cristy18307f12011-12-30 01:20:16 +000026007
26008 fi
26009 # AIX xlc
26010 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026012$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026013if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026014 $as_echo_n "(cached) " >&6
26015else
26016 ac_check_lib_save_LIBS=$LIBS
26017LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026019/* end confdefs.h. */
26020
26021/* Override any GCC internal prototype to avoid an error.
26022 Use char because int might match the return type of a GCC
26023 builtin and then its argument prototype would still apply. */
26024#ifdef __cplusplus
26025extern "C"
26026#endif
26027char _xlsmpFlush ();
26028int
26029main ()
26030{
26031return _xlsmpFlush ();
26032 ;
26033 return 0;
26034}
26035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026036if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026037 ac_cv_lib_xlsmp__xlsmpFlush=yes
26038else
cristy8b350f62009-11-15 23:12:43 +000026039 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026040fi
cristy8b350f62009-11-15 23:12:43 +000026041rm -f core conftest.err conftest.$ac_objext \
26042 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026043LIBS=$ac_check_lib_save_LIBS
26044fi
cristy8b350f62009-11-15 23:12:43 +000026045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026046$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026047if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026048 GOMP_LIBS="-lxlsmp"
26049fi
cristy18307f12011-12-30 01:20:16 +000026050
26051 fi
26052 # SGI IRIX 6.5 MIPSpro C/C++
26053 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026055$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026056if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026057 $as_echo_n "(cached) " >&6
26058else
26059 ac_check_lib_save_LIBS=$LIBS
26060LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026062/* end confdefs.h. */
26063
26064/* Override any GCC internal prototype to avoid an error.
26065 Use char because int might match the return type of a GCC
26066 builtin and then its argument prototype would still apply. */
26067#ifdef __cplusplus
26068extern "C"
26069#endif
26070char mp_destroy ();
26071int
26072main ()
26073{
26074return mp_destroy ();
26075 ;
26076 return 0;
26077}
26078_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026079if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026080 ac_cv_lib_mp_mp_destroy=yes
26081else
cristy8b350f62009-11-15 23:12:43 +000026082 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026083fi
cristy8b350f62009-11-15 23:12:43 +000026084rm -f core conftest.err conftest.$ac_objext \
26085 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026086LIBS=$ac_check_lib_save_LIBS
26087fi
cristy8b350f62009-11-15 23:12:43 +000026088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026089$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026090if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026091 GOMP_LIBS="-lmp"
26092fi
cristy18307f12011-12-30 01:20:16 +000026093
26094 fi
cristy3ed852e2009-09-05 21:47:34 +000026095 fi
26096 LIBS="$GOMP_LIBS $LIBS"
26097fi
26098
26099
cristy3ed852e2009-09-05 21:47:34 +000026100
26101
26102#
26103# Check for umem.
26104#
26105have_umem='no'
26106UMEM_LIBS=''
26107if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026109$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26111$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026112 failed=0
26113 passed=0
cristy8b350f62009-11-15 23:12:43 +000026114 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026115if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026116 passed=`expr $passed + 1`
26117else
26118 failed=`expr $failed + 1`
26119fi
26120
26121
cristy8b350f62009-11-15 23:12:43 +000026122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026123$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026124if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026125 $as_echo_n "(cached) " >&6
26126else
26127 ac_check_lib_save_LIBS=$LIBS
26128LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026130/* end confdefs.h. */
26131
26132/* Override any GCC internal prototype to avoid an error.
26133 Use char because int might match the return type of a GCC
26134 builtin and then its argument prototype would still apply. */
26135#ifdef __cplusplus
26136extern "C"
26137#endif
26138char umem_alloc ();
26139int
26140main ()
26141{
26142return umem_alloc ();
26143 ;
26144 return 0;
26145}
26146_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026147if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026148 ac_cv_lib_umem_umem_alloc=yes
26149else
cristy8b350f62009-11-15 23:12:43 +000026150 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026151fi
cristy8b350f62009-11-15 23:12:43 +000026152rm -f core conftest.err conftest.$ac_objext \
26153 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026154LIBS=$ac_check_lib_save_LIBS
26155fi
cristy8b350f62009-11-15 23:12:43 +000026156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026157$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026158if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026159 passed=`expr $passed + 1`
26160else
26161 failed=`expr $failed + 1`
26162fi
26163
cristy8b350f62009-11-15 23:12:43 +000026164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026165$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026166if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026167 $as_echo_n "(cached) " >&6
26168else
26169 ac_check_lib_save_LIBS=$LIBS
26170LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026172/* end confdefs.h. */
26173
26174/* Override any GCC internal prototype to avoid an error.
26175 Use char because int might match the return type of a GCC
26176 builtin and then its argument prototype would still apply. */
26177#ifdef __cplusplus
26178extern "C"
26179#endif
26180char umem_free ();
26181int
26182main ()
26183{
26184return umem_free ();
26185 ;
26186 return 0;
26187}
26188_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026189if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026190 ac_cv_lib_umem_umem_free=yes
26191else
cristy8b350f62009-11-15 23:12:43 +000026192 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026193fi
cristy8b350f62009-11-15 23:12:43 +000026194rm -f core conftest.err conftest.$ac_objext \
26195 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026196LIBS=$ac_check_lib_save_LIBS
26197fi
cristy8b350f62009-11-15 23:12:43 +000026198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026199$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026200if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026201 passed=`expr $passed + 1`
26202else
26203 failed=`expr $failed + 1`
26204fi
26205
cristy8b350f62009-11-15 23:12:43 +000026206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026207$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26208 if test $passed -gt 0; then
26209 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26211$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026212 have_umem='no (failed tests)'
26213 else
26214 UMEM_LIBS='-lumem'
26215 LIBS="$UMEM_LIBS $LIBS"
26216
cristy8b350f62009-11-15 23:12:43 +000026217$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026218
cristyad38abe2012-12-23 23:03:21 +000026219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26220$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026221 have_umem='yes'
26222 fi
26223 else
cristyad38abe2012-12-23 23:03:21 +000026224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26225$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026226 fi
26227fi
cristy73bd4a52010-10-05 11:24:23 +000026228 if test "$have_umem" = 'yes'; then
26229 HasUMEM_TRUE=
26230 HasUMEM_FALSE='#'
26231else
26232 HasUMEM_TRUE='#'
26233 HasUMEM_FALSE=
26234fi
26235
cristy3ed852e2009-09-05 21:47:34 +000026236
26237
26238#
26239# Add support for ccmalloc memory debugging library if requested
26240#
26241have_ccmalloc='no'
26242CCMALLOC_LIBS=''
26243if test "$enable_ccmalloc" = 'yes'; then
26244 # Extract the first word of "ccmalloc", so it can be a program name with args.
26245set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026247$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026248if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026249 $as_echo_n "(cached) " >&6
26250else
26251 case $CCMALLOCDelegate in
26252 [\\/]* | ?:[\\/]*)
26253 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26254 ;;
26255 *)
26256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26257for as_dir in $PATH
26258do
26259 IFS=$as_save_IFS
26260 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026261 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026263 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026265 break 2
26266 fi
26267done
cristy8b350f62009-11-15 23:12:43 +000026268 done
cristy3ed852e2009-09-05 21:47:34 +000026269IFS=$as_save_IFS
26270
26271 ;;
26272esac
26273fi
26274CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26275if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026277$as_echo "$CCMALLOCDelegate" >&6; }
26278else
cristy8b350f62009-11-15 23:12:43 +000026279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026280$as_echo "no" >&6; }
26281fi
26282
26283
26284 if test -n "$CCMALLOCDelegate"; then
26285 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26286 OLIBS="$LIBS"
26287 # Assume that gcc is used with ccmalloc.
26288 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026290$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026291if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026292 $as_echo_n "(cached) " >&6
26293else
26294 ac_check_lib_save_LIBS=$LIBS
26295LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026297/* end confdefs.h. */
26298
26299/* Override any GCC internal prototype to avoid an error.
26300 Use char because int might match the return type of a GCC
26301 builtin and then its argument prototype would still apply. */
26302#ifdef __cplusplus
26303extern "C"
26304#endif
26305char ccmalloc_malloc ();
26306int
26307main ()
26308{
26309return ccmalloc_malloc ();
26310 ;
26311 return 0;
26312}
26313_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026314if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026315 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26316else
cristy8b350f62009-11-15 23:12:43 +000026317 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026318fi
cristy8b350f62009-11-15 23:12:43 +000026319rm -f core conftest.err conftest.$ac_objext \
26320 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026321LIBS=$ac_check_lib_save_LIBS
26322fi
cristy8b350f62009-11-15 23:12:43 +000026323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026324$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026325if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026326 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26327fi
26328
26329 if test -n "$CCMALLOC_LIBS"; then
26330 LIBS="$OLIBS"
26331 LIBS="$LIBS $CCMALLOC_LIBS"
26332 have_ccmalloc='yes'
26333 else
26334 LIBS="$OLIBS"
26335 fi
26336 fi
26337fi
26338
26339#
cristy944e51f2013-04-16 18:45:02 +000026340# Add support for 'huge pages' if requested
26341#
26342if test "x$enable_hugepages" != "xno"; then :
26343
26344
26345$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26346
26347
26348fi
26349
26350#
cristy3ed852e2009-09-05 21:47:34 +000026351# Add support for efence memory debugging library if requested
26352#
26353if test "$enable_efence" = 'yes'; then
26354 EFENCE_LIBS='-lefence'
26355 LIBS="$EFENCE_LIBS $LIBS"
26356fi
26357
cristy3ed852e2009-09-05 21:47:34 +000026358
26359#
26360# Check for BZLIB
26361#
26362
26363
26364# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026365if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026366 withval=$with_bzlib; with_bzlib=$withval
26367else
26368 with_bzlib='yes'
26369fi
26370
26371
26372if test "$with_bzlib" != 'yes'; then
26373 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26374fi
26375
26376have_bzlib='no'
26377if test "$with_bzlib" != 'no'; then
26378 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26380$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026382$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26384$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026385 failed=0
26386 passed=0
26387 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026388 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026389if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026390 passed=`expr $passed + 1`
26391else
26392 failed=`expr $failed + 1`
26393fi
26394
26395
cristy8b350f62009-11-15 23:12:43 +000026396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026397$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026398if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026399 $as_echo_n "(cached) " >&6
26400else
26401 ac_check_lib_save_LIBS=$LIBS
26402LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026404/* end confdefs.h. */
26405
26406/* Override any GCC internal prototype to avoid an error.
26407 Use char because int might match the return type of a GCC
26408 builtin and then its argument prototype would still apply. */
26409#ifdef __cplusplus
26410extern "C"
26411#endif
26412char BZ2_bzDecompress ();
26413int
26414main ()
26415{
26416return BZ2_bzDecompress ();
26417 ;
26418 return 0;
26419}
26420_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026421if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026422 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26423else
cristy8b350f62009-11-15 23:12:43 +000026424 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026425fi
cristy8b350f62009-11-15 23:12:43 +000026426rm -f core conftest.err conftest.$ac_objext \
26427 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026428LIBS=$ac_check_lib_save_LIBS
26429fi
cristy8b350f62009-11-15 23:12:43 +000026430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026431$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026432if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026433 found_libbz=`expr $found_libbz + 1`
26434fi
26435
26436 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026438$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026439if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026440 $as_echo_n "(cached) " >&6
26441else
26442 ac_check_lib_save_LIBS=$LIBS
26443LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026445/* end confdefs.h. */
26446
26447/* Override any GCC internal prototype to avoid an error.
26448 Use char because int might match the return type of a GCC
26449 builtin and then its argument prototype would still apply. */
26450#ifdef __cplusplus
26451extern "C"
26452#endif
26453char _imp__BZ2_decompress ();
26454int
26455main ()
26456{
26457return _imp__BZ2_decompress ();
26458 ;
26459 return 0;
26460}
26461_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026462if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026463 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26464else
cristy8b350f62009-11-15 23:12:43 +000026465 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026466fi
cristy8b350f62009-11-15 23:12:43 +000026467rm -f core conftest.err conftest.$ac_objext \
26468 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026469LIBS=$ac_check_lib_save_LIBS
26470fi
cristy8b350f62009-11-15 23:12:43 +000026471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026472$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026473if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026474 found_libbz=`expr $found_libbz + 1`
26475fi
26476
26477 fi
26478 if test $found_libbz -gt 0; then
26479 passed=`expr $passed + 1`
26480 else
26481 failed=`expr $failed + 1`
26482 fi
cristy8b350f62009-11-15 23:12:43 +000026483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026484$as_echo_n "checking if BZLIB package is complete... " >&6; }
26485 if test $passed -gt 0; then
26486 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26488$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026489 have_bzlib='no (failed tests)'
26490 else
26491 BZLIB_LIBS='-lbz2'
26492 LIBS="$BZLIB_LIBS $LIBS"
26493
cristy8b350f62009-11-15 23:12:43 +000026494$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026495
cristyad38abe2012-12-23 23:03:21 +000026496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26497$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026498 have_bzlib='yes'
26499 fi
26500 else
cristyad38abe2012-12-23 23:03:21 +000026501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26502$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026503 fi
26504fi
cristy73bd4a52010-10-05 11:24:23 +000026505 if test "$have_bzlib" = 'yes'; then
26506 BZLIB_DELEGATE_TRUE=
26507 BZLIB_DELEGATE_FALSE='#'
26508else
26509 BZLIB_DELEGATE_TRUE='#'
26510 BZLIB_DELEGATE_FALSE=
26511fi
26512
cristy3ed852e2009-09-05 21:47:34 +000026513
26514
26515#
26516# Find the X11 include and library directories.
26517#
26518IPC_LIBS=''
26519X11_LIBS=''
26520XEXT_LIBS=''
26521XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026523$as_echo_n "checking for X... " >&6; }
26524
26525
26526# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026527if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026528 withval=$with_x;
26529fi
26530
26531# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26532if test "x$with_x" = xno; then
26533 # The user explicitly disabled X.
26534 have_x=disabled
26535else
26536 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026537 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026538 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026539 $as_echo_n "(cached) " >&6
26540else
26541 # One or both of the vars are not set, and there is no cached value.
26542ac_x_includes=no ac_x_libraries=no
26543rm -f -r conftest.dir
26544if mkdir conftest.dir; then
26545 cd conftest.dir
26546 cat >Imakefile <<'_ACEOF'
26547incroot:
26548 @echo incroot='${INCROOT}'
26549usrlibdir:
26550 @echo usrlibdir='${USRLIBDIR}'
26551libdir:
26552 @echo libdir='${LIBDIR}'
26553_ACEOF
26554 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026555 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026556 for ac_var in incroot usrlibdir libdir; do
26557 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26558 done
26559 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26560 for ac_extension in a so sl dylib la dll; do
26561 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26562 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26563 ac_im_usrlibdir=$ac_im_libdir; break
26564 fi
26565 done
26566 # Screen out bogus values from the imake configuration. They are
26567 # bogus both because they are the default anyway, and because
26568 # using them would break gcc on systems where it needs fixed includes.
26569 case $ac_im_incroot in
26570 /usr/include) ac_x_includes= ;;
26571 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26572 esac
26573 case $ac_im_usrlibdir in
26574 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26575 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26576 esac
26577 fi
26578 cd ..
26579 rm -f -r conftest.dir
26580fi
26581
26582# Standard set of common directories for X headers.
26583# Check X11 before X11Rn because it is often a symlink to the current release.
26584ac_x_header_dirs='
26585/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026586/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026587/usr/X11R6/include
26588/usr/X11R5/include
26589/usr/X11R4/include
26590
26591/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026592/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026593/usr/include/X11R6
26594/usr/include/X11R5
26595/usr/include/X11R4
26596
26597/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026598/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026599/usr/local/X11R6/include
26600/usr/local/X11R5/include
26601/usr/local/X11R4/include
26602
26603/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026604/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026605/usr/local/include/X11R6
26606/usr/local/include/X11R5
26607/usr/local/include/X11R4
26608
26609/usr/X386/include
26610/usr/x386/include
26611/usr/XFree86/include/X11
26612
26613/usr/include
26614/usr/local/include
26615/usr/unsupported/include
26616/usr/athena/include
26617/usr/local/x11r5/include
26618/usr/lpp/Xamples/include
26619
26620/usr/openwin/include
26621/usr/openwin/share/include'
26622
26623if test "$ac_x_includes" = no; then
26624 # Guess where to find include files, by looking for Xlib.h.
26625 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026627/* end confdefs.h. */
26628#include <X11/Xlib.h>
26629_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026630if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026631 # We can compile using X headers with no special include directory.
26632ac_x_includes=
26633else
cristyc7083c12009-10-14 03:16:55 +000026634 for ac_dir in $ac_x_header_dirs; do
26635 if test -r "$ac_dir/X11/Xlib.h"; then
26636 ac_x_includes=$ac_dir
26637 break
26638 fi
26639done
26640fi
cristyda16f162011-02-19 23:52:17 +000026641rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026642fi # $ac_x_includes = no
26643
26644if test "$ac_x_libraries" = no; then
26645 # Check for the libraries.
26646 # See if we find them without any special options.
26647 # Don't add to $LIBS permanently.
26648 ac_save_LIBS=$LIBS
26649 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026651/* end confdefs.h. */
26652#include <X11/Xlib.h>
26653int
26654main ()
26655{
26656XrmInitialize ()
26657 ;
26658 return 0;
26659}
26660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026661if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026662 LIBS=$ac_save_LIBS
26663# We can link X programs with no special library path.
26664ac_x_libraries=
26665else
cristy8b350f62009-11-15 23:12:43 +000026666 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026667for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26668do
26669 # Don't even attempt the hair of trying to link an X program!
26670 for ac_extension in a so sl dylib la dll; do
26671 if test -r "$ac_dir/libX11.$ac_extension"; then
26672 ac_x_libraries=$ac_dir
26673 break 2
26674 fi
26675 done
26676done
26677fi
cristy8b350f62009-11-15 23:12:43 +000026678rm -f core conftest.err conftest.$ac_objext \
26679 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026680fi # $ac_x_libraries = no
26681
26682case $ac_x_includes,$ac_x_libraries in #(
26683 no,* | *,no | *\'*)
26684 # Didn't find X, or a directory has "'" in its name.
26685 ac_cv_have_x="have_x=no";; #(
26686 *)
26687 # Record where we found X for the cache.
26688 ac_cv_have_x="have_x=yes\
26689 ac_x_includes='$ac_x_includes'\
26690 ac_x_libraries='$ac_x_libraries'"
26691esac
26692fi
26693;; #(
26694 *) have_x=yes;;
26695 esac
26696 eval "$ac_cv_have_x"
26697fi # $with_x != no
26698
26699if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026701$as_echo "$have_x" >&6; }
26702 no_x=yes
26703else
26704 # If each of the values was on the command line, it overrides each guess.
26705 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26706 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26707 # Update the cache value to reflect the command line values.
26708 ac_cv_have_x="have_x=yes\
26709 ac_x_includes='$x_includes'\
26710 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026712$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26713fi
26714
cristy3ed852e2009-09-05 21:47:34 +000026715if test "$no_x" = yes; then
26716 # Not all programs may use this symbol, but it does not hurt to define it.
26717
cristy8b350f62009-11-15 23:12:43 +000026718$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026719
26720 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26721else
26722 if test -n "$x_includes"; then
26723 X_CFLAGS="$X_CFLAGS -I$x_includes"
26724 fi
26725
26726 # It would also be nice to do this for all -L options, not just this one.
26727 if test -n "$x_libraries"; then
26728 X_LIBS="$X_LIBS -L$x_libraries"
26729 # For Solaris; some versions of Sun CC require a space after -R and
26730 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026732$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26733 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26734 ac_xsave_c_werror_flag=$ac_c_werror_flag
26735 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026737/* end confdefs.h. */
26738
26739int
26740main ()
26741{
26742
26743 ;
26744 return 0;
26745}
26746_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026747if ac_fn_c_try_link "$LINENO"; then :
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026749$as_echo "no" >&6; }
26750 X_LIBS="$X_LIBS -R$x_libraries"
26751else
cristy8b350f62009-11-15 23:12:43 +000026752 LIBS="$ac_xsave_LIBS -R $x_libraries"
26753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026754/* end confdefs.h. */
26755
26756int
26757main ()
26758{
26759
26760 ;
26761 return 0;
26762}
26763_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026764if ac_fn_c_try_link "$LINENO"; then :
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026766$as_echo "yes" >&6; }
26767 X_LIBS="$X_LIBS -R $x_libraries"
26768else
cristy8b350f62009-11-15 23:12:43 +000026769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026770$as_echo "neither works" >&6; }
26771fi
cristy8b350f62009-11-15 23:12:43 +000026772rm -f core conftest.err conftest.$ac_objext \
26773 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026774fi
cristy8b350f62009-11-15 23:12:43 +000026775rm -f core conftest.err conftest.$ac_objext \
26776 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026777 ac_c_werror_flag=$ac_xsave_c_werror_flag
26778 LIBS=$ac_xsave_LIBS
26779 fi
26780
26781 # Check for system-dependent libraries X programs must link with.
26782 # Do this before checking for the system-independent R6 libraries
26783 # (-lICE), since we may need -lsocket or whatever for X linking.
26784
26785 if test "$ISC" = yes; then
26786 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26787 else
26788 # Martyn Johnson says this is needed for Ultrix, if the X
26789 # libraries were built with DECnet support. And Karl Berry says
26790 # the Alpha needs dnet_stub (dnet does not exist).
26791 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026793/* end confdefs.h. */
26794
26795/* Override any GCC internal prototype to avoid an error.
26796 Use char because int might match the return type of a GCC
26797 builtin and then its argument prototype would still apply. */
26798#ifdef __cplusplus
26799extern "C"
26800#endif
26801char XOpenDisplay ();
26802int
26803main ()
26804{
26805return XOpenDisplay ();
26806 ;
26807 return 0;
26808}
26809_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026810if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026811
cristy8b350f62009-11-15 23:12:43 +000026812else
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026814$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026815if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026816 $as_echo_n "(cached) " >&6
26817else
26818 ac_check_lib_save_LIBS=$LIBS
26819LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026821/* end confdefs.h. */
26822
26823/* Override any GCC internal prototype to avoid an error.
26824 Use char because int might match the return type of a GCC
26825 builtin and then its argument prototype would still apply. */
26826#ifdef __cplusplus
26827extern "C"
26828#endif
26829char dnet_ntoa ();
26830int
26831main ()
26832{
26833return dnet_ntoa ();
26834 ;
26835 return 0;
26836}
26837_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026838if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026839 ac_cv_lib_dnet_dnet_ntoa=yes
26840else
cristy8b350f62009-11-15 23:12:43 +000026841 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026842fi
cristy8b350f62009-11-15 23:12:43 +000026843rm -f core conftest.err conftest.$ac_objext \
26844 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026845LIBS=$ac_check_lib_save_LIBS
26846fi
cristy8b350f62009-11-15 23:12:43 +000026847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026848$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026849if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026850 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26851fi
26852
26853 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026855$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026856if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026857 $as_echo_n "(cached) " >&6
26858else
26859 ac_check_lib_save_LIBS=$LIBS
26860LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026862/* end confdefs.h. */
26863
26864/* Override any GCC internal prototype to avoid an error.
26865 Use char because int might match the return type of a GCC
26866 builtin and then its argument prototype would still apply. */
26867#ifdef __cplusplus
26868extern "C"
26869#endif
26870char dnet_ntoa ();
26871int
26872main ()
26873{
26874return dnet_ntoa ();
26875 ;
26876 return 0;
26877}
26878_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026879if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026880 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26881else
cristy8b350f62009-11-15 23:12:43 +000026882 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026883fi
cristy8b350f62009-11-15 23:12:43 +000026884rm -f core conftest.err conftest.$ac_objext \
26885 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026886LIBS=$ac_check_lib_save_LIBS
26887fi
cristy8b350f62009-11-15 23:12:43 +000026888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026889$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026890if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026891 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26892fi
26893
26894 fi
26895fi
cristy8b350f62009-11-15 23:12:43 +000026896rm -f core conftest.err conftest.$ac_objext \
26897 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026898 LIBS="$ac_xsave_LIBS"
26899
26900 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26901 # to get the SysV transport functions.
26902 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26903 # needs -lnsl.
26904 # The nsl library prevents programs from opening the X display
26905 # on Irix 5.2, according to T.E. Dickey.
26906 # The functions gethostbyname, getservbyname, and inet_addr are
26907 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026908 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026909if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026910
cristy3ed852e2009-09-05 21:47:34 +000026911fi
26912
cristy3ed852e2009-09-05 21:47:34 +000026913 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026915$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026916if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026917 $as_echo_n "(cached) " >&6
26918else
26919 ac_check_lib_save_LIBS=$LIBS
26920LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026922/* end confdefs.h. */
26923
26924/* Override any GCC internal prototype to avoid an error.
26925 Use char because int might match the return type of a GCC
26926 builtin and then its argument prototype would still apply. */
26927#ifdef __cplusplus
26928extern "C"
26929#endif
26930char gethostbyname ();
26931int
26932main ()
26933{
26934return gethostbyname ();
26935 ;
26936 return 0;
26937}
26938_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026939if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026940 ac_cv_lib_nsl_gethostbyname=yes
26941else
cristy8b350f62009-11-15 23:12:43 +000026942 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026943fi
cristy8b350f62009-11-15 23:12:43 +000026944rm -f core conftest.err conftest.$ac_objext \
26945 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026946LIBS=$ac_check_lib_save_LIBS
26947fi
cristy8b350f62009-11-15 23:12:43 +000026948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026949$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026950if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026951 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26952fi
26953
26954 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026956$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026957if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026958 $as_echo_n "(cached) " >&6
26959else
26960 ac_check_lib_save_LIBS=$LIBS
26961LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026963/* end confdefs.h. */
26964
26965/* Override any GCC internal prototype to avoid an error.
26966 Use char because int might match the return type of a GCC
26967 builtin and then its argument prototype would still apply. */
26968#ifdef __cplusplus
26969extern "C"
26970#endif
26971char gethostbyname ();
26972int
26973main ()
26974{
26975return gethostbyname ();
26976 ;
26977 return 0;
26978}
26979_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026980if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026981 ac_cv_lib_bsd_gethostbyname=yes
26982else
cristy8b350f62009-11-15 23:12:43 +000026983 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026984fi
cristy8b350f62009-11-15 23:12:43 +000026985rm -f core conftest.err conftest.$ac_objext \
26986 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026987LIBS=$ac_check_lib_save_LIBS
26988fi
cristy8b350f62009-11-15 23:12:43 +000026989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026990$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026991if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026992 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26993fi
26994
26995 fi
26996 fi
26997
26998 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26999 # socket/setsockopt and other routines are undefined under SCO ODT
27000 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27001 # on later versions), says Simon Leinen: it contains gethostby*
27002 # variants that don't use the name server (or something). -lsocket
27003 # must be given before -lnsl if both are needed. We assume that
27004 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027005 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027006if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027007
cristy3ed852e2009-09-05 21:47:34 +000027008fi
27009
cristy3ed852e2009-09-05 21:47:34 +000027010 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027012$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027013if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027014 $as_echo_n "(cached) " >&6
27015else
27016 ac_check_lib_save_LIBS=$LIBS
27017LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027019/* end confdefs.h. */
27020
27021/* Override any GCC internal prototype to avoid an error.
27022 Use char because int might match the return type of a GCC
27023 builtin and then its argument prototype would still apply. */
27024#ifdef __cplusplus
27025extern "C"
27026#endif
27027char connect ();
27028int
27029main ()
27030{
27031return connect ();
27032 ;
27033 return 0;
27034}
27035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027036if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027037 ac_cv_lib_socket_connect=yes
27038else
cristy8b350f62009-11-15 23:12:43 +000027039 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027040fi
cristy8b350f62009-11-15 23:12:43 +000027041rm -f core conftest.err conftest.$ac_objext \
27042 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027043LIBS=$ac_check_lib_save_LIBS
27044fi
cristy8b350f62009-11-15 23:12:43 +000027045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027046$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027047if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027048 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27049fi
27050
27051 fi
27052
27053 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027054 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027055if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027056
cristy3ed852e2009-09-05 21:47:34 +000027057fi
27058
cristy3ed852e2009-09-05 21:47:34 +000027059 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027061$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027062if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027063 $as_echo_n "(cached) " >&6
27064else
27065 ac_check_lib_save_LIBS=$LIBS
27066LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027068/* end confdefs.h. */
27069
27070/* Override any GCC internal prototype to avoid an error.
27071 Use char because int might match the return type of a GCC
27072 builtin and then its argument prototype would still apply. */
27073#ifdef __cplusplus
27074extern "C"
27075#endif
27076char remove ();
27077int
27078main ()
27079{
27080return remove ();
27081 ;
27082 return 0;
27083}
27084_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027085if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027086 ac_cv_lib_posix_remove=yes
27087else
cristy8b350f62009-11-15 23:12:43 +000027088 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027089fi
cristy8b350f62009-11-15 23:12:43 +000027090rm -f core conftest.err conftest.$ac_objext \
27091 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027092LIBS=$ac_check_lib_save_LIBS
27093fi
cristy8b350f62009-11-15 23:12:43 +000027094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027095$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027096if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027097 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27098fi
27099
27100 fi
27101
27102 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027103 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027104if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027105
cristy3ed852e2009-09-05 21:47:34 +000027106fi
27107
cristy3ed852e2009-09-05 21:47:34 +000027108 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027110$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027111if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027112 $as_echo_n "(cached) " >&6
27113else
27114 ac_check_lib_save_LIBS=$LIBS
27115LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027117/* end confdefs.h. */
27118
27119/* Override any GCC internal prototype to avoid an error.
27120 Use char because int might match the return type of a GCC
27121 builtin and then its argument prototype would still apply. */
27122#ifdef __cplusplus
27123extern "C"
27124#endif
27125char shmat ();
27126int
27127main ()
27128{
27129return shmat ();
27130 ;
27131 return 0;
27132}
27133_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027134if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027135 ac_cv_lib_ipc_shmat=yes
27136else
cristy8b350f62009-11-15 23:12:43 +000027137 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027138fi
cristy8b350f62009-11-15 23:12:43 +000027139rm -f core conftest.err conftest.$ac_objext \
27140 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027141LIBS=$ac_check_lib_save_LIBS
27142fi
cristy8b350f62009-11-15 23:12:43 +000027143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027144$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027145if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027146 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27147fi
27148
27149 fi
27150 fi
27151
27152 # Check for libraries that X11R6 Xt/Xaw programs need.
27153 ac_save_LDFLAGS=$LDFLAGS
27154 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27155 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27156 # check for ICE first), but we must link in the order -lSM -lICE or
27157 # we get undefined symbols. So assume we have SM if we have ICE.
27158 # These have to be linked with before -lX11, unlike the other
27159 # libraries we check for below, so use a different variable.
27160 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027162$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027163if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027164 $as_echo_n "(cached) " >&6
27165else
27166 ac_check_lib_save_LIBS=$LIBS
27167LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027169/* end confdefs.h. */
27170
27171/* Override any GCC internal prototype to avoid an error.
27172 Use char because int might match the return type of a GCC
27173 builtin and then its argument prototype would still apply. */
27174#ifdef __cplusplus
27175extern "C"
27176#endif
27177char IceConnectionNumber ();
27178int
27179main ()
27180{
27181return IceConnectionNumber ();
27182 ;
27183 return 0;
27184}
27185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027186if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027187 ac_cv_lib_ICE_IceConnectionNumber=yes
27188else
cristy8b350f62009-11-15 23:12:43 +000027189 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027190fi
cristy8b350f62009-11-15 23:12:43 +000027191rm -f core conftest.err conftest.$ac_objext \
27192 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027193LIBS=$ac_check_lib_save_LIBS
27194fi
cristy8b350f62009-11-15 23:12:43 +000027195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027196$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027197if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027198 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27199fi
27200
27201 LDFLAGS=$ac_save_LDFLAGS
27202
27203fi
27204
27205if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27207$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027209$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27211$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027212 LDFLAGS="$LDFLAGS $X_LIBS"
27213 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27214 LIBS="$X11_LIBS $LIBS"
27215 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27216
27217
cristy8b350f62009-11-15 23:12:43 +000027218$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027219
27220 #
27221 # Check for X11 shared memory extension
27222 #
27223 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027224 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027225if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027226 have_shmctl='yes'
27227fi
27228
27229 if test "$have_shmctl" != 'yes'; then
27230 PERSIST_LIBS=$LIBS
27231 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027233/* end confdefs.h. */
27234
27235/* Override any GCC internal prototype to avoid an error.
27236 Use char because int might match the return type of a GCC
27237 builtin and then its argument prototype would still apply. */
27238#ifdef __cplusplus
27239extern "C"
27240#endif
27241char shmctl ();
27242int
27243main ()
27244{
27245return shmctl ();
27246 ;
27247 return 0;
27248}
27249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027250if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027251 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027252fi
cristy8b350f62009-11-15 23:12:43 +000027253rm -f core conftest.err conftest.$ac_objext \
27254 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027255 LIBS=$PERSIST_LIBS
27256 fi
27257
27258 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027260$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027261if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027262 $as_echo_n "(cached) " >&6
27263else
27264 ac_check_lib_save_LIBS=$LIBS
27265LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027267/* end confdefs.h. */
27268
27269/* Override any GCC internal prototype to avoid an error.
27270 Use char because int might match the return type of a GCC
27271 builtin and then its argument prototype would still apply. */
27272#ifdef __cplusplus
27273extern "C"
27274#endif
27275char XShmAttach ();
27276int
27277main ()
27278{
27279return XShmAttach ();
27280 ;
27281 return 0;
27282}
27283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027284if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027285 ac_cv_lib_Xext_XShmAttach=yes
27286else
cristy8b350f62009-11-15 23:12:43 +000027287 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027288fi
cristy8b350f62009-11-15 23:12:43 +000027289rm -f core conftest.err conftest.$ac_objext \
27290 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027291LIBS=$ac_check_lib_save_LIBS
27292fi
cristy8b350f62009-11-15 23:12:43 +000027293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027294$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027295if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027296 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027297$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027298
27299fi
27300
27301 fi
27302
27303 #
27304 # Check for X11 shape extension
27305 #
cristy8b350f62009-11-15 23:12:43 +000027306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027307$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027308if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027309 $as_echo_n "(cached) " >&6
27310else
27311 ac_check_lib_save_LIBS=$LIBS
27312LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027314/* end confdefs.h. */
27315
27316/* Override any GCC internal prototype to avoid an error.
27317 Use char because int might match the return type of a GCC
27318 builtin and then its argument prototype would still apply. */
27319#ifdef __cplusplus
27320extern "C"
27321#endif
27322char XShapeCombineMask ();
27323int
27324main ()
27325{
27326return XShapeCombineMask ();
27327 ;
27328 return 0;
27329}
27330_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027331if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027332 ac_cv_lib_Xext_XShapeCombineMask=yes
27333else
cristy8b350f62009-11-15 23:12:43 +000027334 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027335fi
cristy8b350f62009-11-15 23:12:43 +000027336rm -f core conftest.err conftest.$ac_objext \
27337 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027338LIBS=$ac_check_lib_save_LIBS
27339fi
cristy8b350f62009-11-15 23:12:43 +000027340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027341$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027342if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027343 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027344$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027345
27346fi
27347
cristy8b350f62009-11-15 23:12:43 +000027348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027349$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027350if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027351 $as_echo_n "(cached) " >&6
27352else
27353 ac_check_lib_save_LIBS=$LIBS
27354LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027356/* end confdefs.h. */
27357
27358/* Override any GCC internal prototype to avoid an error.
27359 Use char because int might match the return type of a GCC
27360 builtin and then its argument prototype would still apply. */
27361#ifdef __cplusplus
27362extern "C"
27363#endif
27364char XtSetEventDispatcher ();
27365int
27366main ()
27367{
27368return XtSetEventDispatcher ();
27369 ;
27370 return 0;
27371}
27372_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027373if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027374 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27375else
cristy8b350f62009-11-15 23:12:43 +000027376 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027377fi
cristy8b350f62009-11-15 23:12:43 +000027378rm -f core conftest.err conftest.$ac_objext \
27379 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027380LIBS=$ac_check_lib_save_LIBS
27381fi
cristy8b350f62009-11-15 23:12:43 +000027382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027383$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027384if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027385 XT_LIBS='-lXt'
27386fi
27387
27388 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27389fi
27390if test "$no_x" != 'yes'; then
27391 have_x='yes'
27392else
27393 have_x='no'
27394fi
cristy73bd4a52010-10-05 11:24:23 +000027395 if test "$have_x" = 'yes'; then
27396 X11_DELEGATE_TRUE=
27397 X11_DELEGATE_FALSE='#'
27398else
27399 X11_DELEGATE_TRUE='#'
27400 X11_DELEGATE_FALSE=
27401fi
27402
cristy3ed852e2009-09-05 21:47:34 +000027403
27404
27405
27406
27407#
27408# Check for ZLIB
27409#
27410
27411# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027412if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027413 withval=$with_zlib; with_zlib=$withval
27414else
27415 with_zlib='yes'
27416fi
27417
27418
27419if test "$with_zlib" != 'yes'; then
27420 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27421fi
27422
27423have_zlib='no'
27424ZLIB_LIBS=''
27425if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27427$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027429$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27431$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027432 ZLIB_LIBS=''
27433 failed=0
27434 passed=0
cristy8b350f62009-11-15 23:12:43 +000027435 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027436if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027437 passed=`expr $passed + 1`
27438else
27439 failed=`expr $failed + 1`
27440fi
27441
27442
cristy8b350f62009-11-15 23:12:43 +000027443 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027444if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027445 passed=`expr $passed + 1`
27446else
27447 failed=`expr $failed + 1`
27448fi
27449
27450
cristy8b350f62009-11-15 23:12:43 +000027451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027452$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027453if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027454 $as_echo_n "(cached) " >&6
27455else
27456 ac_check_lib_save_LIBS=$LIBS
27457LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027459/* end confdefs.h. */
27460
27461/* Override any GCC internal prototype to avoid an error.
27462 Use char because int might match the return type of a GCC
27463 builtin and then its argument prototype would still apply. */
27464#ifdef __cplusplus
27465extern "C"
27466#endif
27467char compress ();
27468int
27469main ()
27470{
27471return compress ();
27472 ;
27473 return 0;
27474}
27475_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027476if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027477 ac_cv_lib_z_compress=yes
27478else
cristy8b350f62009-11-15 23:12:43 +000027479 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027480fi
cristy8b350f62009-11-15 23:12:43 +000027481rm -f core conftest.err conftest.$ac_objext \
27482 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027483LIBS=$ac_check_lib_save_LIBS
27484fi
cristy8b350f62009-11-15 23:12:43 +000027485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027486$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027487if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027488 passed=`expr $passed + 1`
27489else
27490 failed=`expr $failed + 1`
27491fi
27492
cristy8b350f62009-11-15 23:12:43 +000027493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027494$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027495if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027496 $as_echo_n "(cached) " >&6
27497else
27498 ac_check_lib_save_LIBS=$LIBS
27499LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027501/* end confdefs.h. */
27502
27503/* Override any GCC internal prototype to avoid an error.
27504 Use char because int might match the return type of a GCC
27505 builtin and then its argument prototype would still apply. */
27506#ifdef __cplusplus
27507extern "C"
27508#endif
27509char uncompress ();
27510int
27511main ()
27512{
27513return uncompress ();
27514 ;
27515 return 0;
27516}
27517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027518if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027519 ac_cv_lib_z_uncompress=yes
27520else
cristy8b350f62009-11-15 23:12:43 +000027521 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027522fi
cristy8b350f62009-11-15 23:12:43 +000027523rm -f core conftest.err conftest.$ac_objext \
27524 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027525LIBS=$ac_check_lib_save_LIBS
27526fi
cristy8b350f62009-11-15 23:12:43 +000027527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027528$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027529if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027530 passed=`expr $passed + 1`
27531else
27532 failed=`expr $failed + 1`
27533fi
27534
cristy8b350f62009-11-15 23:12:43 +000027535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027536$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027537if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027538 $as_echo_n "(cached) " >&6
27539else
27540 ac_check_lib_save_LIBS=$LIBS
27541LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027543/* end confdefs.h. */
27544
27545/* Override any GCC internal prototype to avoid an error.
27546 Use char because int might match the return type of a GCC
27547 builtin and then its argument prototype would still apply. */
27548#ifdef __cplusplus
27549extern "C"
27550#endif
27551char deflate ();
27552int
27553main ()
27554{
27555return deflate ();
27556 ;
27557 return 0;
27558}
27559_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027560if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027561 ac_cv_lib_z_deflate=yes
27562else
cristy8b350f62009-11-15 23:12:43 +000027563 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027564fi
cristy8b350f62009-11-15 23:12:43 +000027565rm -f core conftest.err conftest.$ac_objext \
27566 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027567LIBS=$ac_check_lib_save_LIBS
27568fi
cristy8b350f62009-11-15 23:12:43 +000027569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027570$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027571if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027572 passed=`expr $passed + 1`
27573else
27574 failed=`expr $failed + 1`
27575fi
27576
cristy8b350f62009-11-15 23:12:43 +000027577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027578$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027579if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027580 $as_echo_n "(cached) " >&6
27581else
27582 ac_check_lib_save_LIBS=$LIBS
27583LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027585/* end confdefs.h. */
27586
27587/* Override any GCC internal prototype to avoid an error.
27588 Use char because int might match the return type of a GCC
27589 builtin and then its argument prototype would still apply. */
27590#ifdef __cplusplus
27591extern "C"
27592#endif
27593char inflate ();
27594int
27595main ()
27596{
27597return inflate ();
27598 ;
27599 return 0;
27600}
27601_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027602if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027603 ac_cv_lib_z_inflate=yes
27604else
cristy8b350f62009-11-15 23:12:43 +000027605 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027606fi
cristy8b350f62009-11-15 23:12:43 +000027607rm -f core conftest.err conftest.$ac_objext \
27608 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027609LIBS=$ac_check_lib_save_LIBS
27610fi
cristy8b350f62009-11-15 23:12:43 +000027611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027612$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027613if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027614 passed=`expr $passed + 1`
27615else
27616 failed=`expr $failed + 1`
27617fi
27618
cristy8b350f62009-11-15 23:12:43 +000027619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027620$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027621if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027622 $as_echo_n "(cached) " >&6
27623else
27624 ac_check_lib_save_LIBS=$LIBS
27625LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027627/* end confdefs.h. */
27628
27629/* Override any GCC internal prototype to avoid an error.
27630 Use char because int might match the return type of a GCC
27631 builtin and then its argument prototype would still apply. */
27632#ifdef __cplusplus
27633extern "C"
27634#endif
27635char gzseek ();
27636int
27637main ()
27638{
27639return gzseek ();
27640 ;
27641 return 0;
27642}
27643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027644if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027645 ac_cv_lib_z_gzseek=yes
27646else
cristy8b350f62009-11-15 23:12:43 +000027647 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027648fi
cristy8b350f62009-11-15 23:12:43 +000027649rm -f core conftest.err conftest.$ac_objext \
27650 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027651LIBS=$ac_check_lib_save_LIBS
27652fi
cristy8b350f62009-11-15 23:12:43 +000027653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027654$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027655if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027656 passed=`expr $passed + 1`
27657else
27658 failed=`expr $failed + 1`
27659fi
27660
cristy8b350f62009-11-15 23:12:43 +000027661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027662$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027663if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027664 $as_echo_n "(cached) " >&6
27665else
27666 ac_check_lib_save_LIBS=$LIBS
27667LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027669/* end confdefs.h. */
27670
27671/* Override any GCC internal prototype to avoid an error.
27672 Use char because int might match the return type of a GCC
27673 builtin and then its argument prototype would still apply. */
27674#ifdef __cplusplus
27675extern "C"
27676#endif
27677char gztell ();
27678int
27679main ()
27680{
27681return gztell ();
27682 ;
27683 return 0;
27684}
27685_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027686if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027687 ac_cv_lib_z_gztell=yes
27688else
cristy8b350f62009-11-15 23:12:43 +000027689 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027690fi
cristy8b350f62009-11-15 23:12:43 +000027691rm -f core conftest.err conftest.$ac_objext \
27692 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027693LIBS=$ac_check_lib_save_LIBS
27694fi
cristy8b350f62009-11-15 23:12:43 +000027695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027696$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027697if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027698 passed=`expr $passed + 1`
27699else
27700 failed=`expr $failed + 1`
27701fi
27702
cristy8b350f62009-11-15 23:12:43 +000027703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027704$as_echo_n "checking if ZLIB package is complete... " >&6; }
27705 if test $passed -gt 0; then
27706 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27708$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027709 have_zlib='no (failed tests)'
27710 else
27711 ZLIB_LIBS='-lz'
27712 LIBS="$ZLIB_LIBS $LIBS"
27713
cristy8b350f62009-11-15 23:12:43 +000027714$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027715
cristyad38abe2012-12-23 23:03:21 +000027716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27717$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027718 have_zlib='yes'
27719 fi
27720 else
cristyad38abe2012-12-23 23:03:21 +000027721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27722$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027723 fi
27724fi
cristy73bd4a52010-10-05 11:24:23 +000027725 if test "$have_zlib" = 'yes'; then
27726 ZLIB_DELEGATE_TRUE=
27727 ZLIB_DELEGATE_FALSE='#'
27728else
27729 ZLIB_DELEGATE_TRUE='#'
27730 ZLIB_DELEGATE_FALSE=
27731fi
27732
cristy3ed852e2009-09-05 21:47:34 +000027733
27734
cristy5eef09f2012-10-16 12:08:28 +000027735# whether modules are built or not.
27736with_ltdl='yes'
27737have_ltdl='no'
27738LTDL_LIBS=''
27739if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000027740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27741$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000027742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
27743$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27745$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000027746 failed=0
27747 passed=0
27748 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
27749if test "x$ac_cv_header_ltdl_h" = xyes; then :
27750 passed=`expr $passed + 1`
27751else
27752 failed=`expr $failed + 1`
27753fi
27754
27755
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
27757$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
27758if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
27759 $as_echo_n "(cached) " >&6
27760else
27761 ac_check_lib_save_LIBS=$LIBS
27762LIBS="-lltdl $LIBS"
27763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27764/* end confdefs.h. */
27765
27766/* Override any GCC internal prototype to avoid an error.
27767 Use char because int might match the return type of a GCC
27768 builtin and then its argument prototype would still apply. */
27769#ifdef __cplusplus
27770extern "C"
27771#endif
27772char lt_dlinit ();
27773int
27774main ()
27775{
27776return lt_dlinit ();
27777 ;
27778 return 0;
27779}
27780_ACEOF
27781if ac_fn_c_try_link "$LINENO"; then :
27782 ac_cv_lib_ltdl_lt_dlinit=yes
27783else
27784 ac_cv_lib_ltdl_lt_dlinit=no
27785fi
27786rm -f core conftest.err conftest.$ac_objext \
27787 conftest$ac_exeext conftest.$ac_ext
27788LIBS=$ac_check_lib_save_LIBS
27789fi
27790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
27791$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
27792if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
27793 passed=`expr $passed + 1`
27794else
27795 failed=`expr $failed + 1`
27796fi
27797
27798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
27799$as_echo_n "checking if libltdl package is complete... " >&6; }
27800 if test $passed -gt 0 ; then
27801 if test $failed -gt 0 ; then
27802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27803$as_echo "no -- some components failed test" >&6; }
27804 have_ltdl='no (failed tests)'
27805 else
27806 LTDL_LIBS='-lltdl'
27807 LIBS="$LTDL_LIBS $LIBS"
27808
27809$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
27810
27811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27812$as_echo "yes" >&6; }
27813 have_ltdl='yes'
27814 fi
27815 else
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27817$as_echo "no" >&6; }
27818 fi
cristyaf4cbf32012-10-16 23:47:41 +000027819 if test "$have_ltdl" != 'yes' ; then
27820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27822as_fn_error 1 "libltdl is required for modules build
27823See \`config.log' for more details" "$LINENO" 5; }
27824 fi
cristy5eef09f2012-10-16 12:08:28 +000027825fi
27826 if test "$have_ltdl" != 'no'; then
27827 WITH_LTDL_TRUE=
27828 WITH_LTDL_FALSE='#'
27829else
27830 WITH_LTDL_TRUE='#'
27831 WITH_LTDL_FALSE=
27832fi
27833
27834
cristy3ed852e2009-09-05 21:47:34 +000027835#
27836# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27837#
27838LIB_DL=''
27839if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027841$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027842if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027843 $as_echo_n "(cached) " >&6
27844else
27845 ac_check_lib_save_LIBS=$LIBS
27846LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027848/* end confdefs.h. */
27849
27850/* Override any GCC internal prototype to avoid an error.
27851 Use char because int might match the return type of a GCC
27852 builtin and then its argument prototype would still apply. */
27853#ifdef __cplusplus
27854extern "C"
27855#endif
27856char dlopen ();
27857int
27858main ()
27859{
27860return dlopen ();
27861 ;
27862 return 0;
27863}
27864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027865if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027866 ac_cv_lib_dl_dlopen=yes
27867else
cristy8b350f62009-11-15 23:12:43 +000027868 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027869fi
cristy8b350f62009-11-15 23:12:43 +000027870rm -f core conftest.err conftest.$ac_objext \
27871 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027872LIBS=$ac_check_lib_save_LIBS
27873fi
cristy8b350f62009-11-15 23:12:43 +000027874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027875$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027876if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027877 LIB_DL='-ldl'
27878fi
27879
27880 LIBS="$LIB_DL $LIBS"
27881fi
27882
27883
27884
27885#
27886# Check for Autotrace delegate library.
27887#
27888
27889# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027890if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027891 withval=$with_autotrace; with_autotrace=$withval
27892else
27893 with_autotrace='no'
27894fi
27895
27896
27897if test "$with_autotrace" != 'yes'; then
27898 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27899fi
27900
27901have_autotrace='no'
27902AUTOTRACE_CFLAGS=""
27903AUTOTRACE_LIBS=""
27904AUTOTRACE_PKG=""
27905if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000027906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27907$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027908
27909pkg_failed=no
27910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27911$as_echo_n "checking for AUTOTRACE... " >&6; }
27912
27913if test -n "$AUTOTRACE_CFLAGS"; then
27914 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27915 elif test -n "$PKG_CONFIG"; then
27916 if test -n "$PKG_CONFIG" && \
27917 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27918 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27919 ac_status=$?
27920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27921 test $ac_status = 0; }; then
27922 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27923else
27924 pkg_failed=yes
27925fi
27926 else
27927 pkg_failed=untried
27928fi
27929if test -n "$AUTOTRACE_LIBS"; then
27930 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27931 elif test -n "$PKG_CONFIG"; then
27932 if test -n "$PKG_CONFIG" && \
27933 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27934 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27935 ac_status=$?
27936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27937 test $ac_status = 0; }; then
27938 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27939else
27940 pkg_failed=yes
27941fi
27942 else
27943 pkg_failed=untried
27944fi
27945
27946
27947
27948if test $pkg_failed = yes; then
27949
27950if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27951 _pkg_short_errors_supported=yes
27952else
27953 _pkg_short_errors_supported=no
27954fi
27955 if test $_pkg_short_errors_supported = yes; then
27956 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27957 else
27958 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27959 fi
27960 # Put the nasty error message in config.log where it belongs
27961 echo "$AUTOTRACE_PKG_ERRORS" >&5
27962
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27964$as_echo "no" >&6; }
27965 have_autotrace=no
27966elif test $pkg_failed = untried; then
27967 have_autotrace=no
27968else
27969 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27970 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27972$as_echo "yes" >&6; }
27973 have_autotrace=yes
27974fi
cristyad38abe2012-12-23 23:03:21 +000027975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27976$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027977fi
27978
27979if test "$have_autotrace" = 'yes'; then
27980 failed=0
27981
cristy8b350f62009-11-15 23:12:43 +000027982$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027983
cristyc6722092012-10-14 00:19:31 +000027984 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000027985 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000027986 fi
27987fi
27988
cristy73bd4a52010-10-05 11:24:23 +000027989 if test "$have_autotrace" = 'yes'; then
27990 AUTOTRACE_DELEGATE_TRUE=
27991 AUTOTRACE_DELEGATE_FALSE='#'
27992else
27993 AUTOTRACE_DELEGATE_TRUE='#'
27994 AUTOTRACE_DELEGATE_FALSE=
27995fi
27996
cristy3ed852e2009-09-05 21:47:34 +000027997
27998
27999
28000
28001#
28002# Check for Display Postscript delegate library.
28003#
28004
28005# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028006if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028007 withval=$with_dps; with_dps=$withval
28008else
28009 with_dps='yes'
28010fi
28011
28012
28013if test "$with_dps" != 'yes'; then
28014 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28015fi
28016
28017have_dps='no'
28018DPS_LIBS=''
28019if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28021$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028023$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28025$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028026 failed=0
28027 passed=0
28028 PERSIST_CPPFLAGS="$CPPFLAGS"
28029 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028030 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 +000028031if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028032 passed=`expr $passed + 1`
28033else
28034 failed=`expr $failed + 1`
28035fi
28036
28037
28038 # DPS issues:
28039 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28040 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28041 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28042 # ImageMagick itself doesn't use -lXt.
28043 have_libdps='no'
28044 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028046$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028047if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028048 $as_echo_n "(cached) " >&6
28049else
28050 ac_check_lib_save_LIBS=$LIBS
28051LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028053/* end confdefs.h. */
28054
28055/* Override any GCC internal prototype to avoid an error.
28056 Use char because int might match the return type of a GCC
28057 builtin and then its argument prototype would still apply. */
28058#ifdef __cplusplus
28059extern "C"
28060#endif
28061char DPSInitialize ();
28062int
28063main ()
28064{
28065return DPSInitialize ();
28066 ;
28067 return 0;
28068}
28069_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028070if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028071 ac_cv_lib_dps_DPSInitialize=yes
28072else
cristy8b350f62009-11-15 23:12:43 +000028073 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028074fi
cristy8b350f62009-11-15 23:12:43 +000028075rm -f core conftest.err conftest.$ac_objext \
28076 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028077LIBS=$ac_check_lib_save_LIBS
28078fi
cristy8b350f62009-11-15 23:12:43 +000028079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028080$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028081if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028082 have_libdps='yes'
28083else
28084 have_libdps='no'
28085fi
28086
28087 if test "$have_libdps" != 'yes'; then
28088 # Unset cache variable so we can try again.
28089 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028091$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028092if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028093 $as_echo_n "(cached) " >&6
28094else
28095 ac_check_lib_save_LIBS=$LIBS
28096LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028098/* end confdefs.h. */
28099
28100/* Override any GCC internal prototype to avoid an error.
28101 Use char because int might match the return type of a GCC
28102 builtin and then its argument prototype would still apply. */
28103#ifdef __cplusplus
28104extern "C"
28105#endif
28106char DPSInitialize ();
28107int
28108main ()
28109{
28110return DPSInitialize ();
28111 ;
28112 return 0;
28113}
28114_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028115if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028116 ac_cv_lib_dps_DPSInitialize=yes
28117else
cristy8b350f62009-11-15 23:12:43 +000028118 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028119fi
cristy8b350f62009-11-15 23:12:43 +000028120rm -f core conftest.err conftest.$ac_objext \
28121 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028122LIBS=$ac_check_lib_save_LIBS
28123fi
cristy8b350f62009-11-15 23:12:43 +000028124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028125$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028126if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028127 have_libdps='yes'
28128else
28129 have_libdps='no'
28130fi
28131
28132 if test "$have_libdps" = 'yes'; then
28133 LIBDPS_XT='-lXt'
28134 fi
28135 fi
28136 if test "$have_libdps" = 'yes'; then
28137 passed=`expr $passed + 1`
28138 else
28139 failed=`expr $failed + 1`
28140 fi
cristy8b350f62009-11-15 23:12:43 +000028141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028142$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028143if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028144 $as_echo_n "(cached) " >&6
28145else
28146 ac_check_lib_save_LIBS=$LIBS
28147LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028149/* end confdefs.h. */
28150
28151/* Override any GCC internal prototype to avoid an error.
28152 Use char because int might match the return type of a GCC
28153 builtin and then its argument prototype would still apply. */
28154#ifdef __cplusplus
28155extern "C"
28156#endif
28157char XDPSPixelsPerPoint ();
28158int
28159main ()
28160{
28161return XDPSPixelsPerPoint ();
28162 ;
28163 return 0;
28164}
28165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028166if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028167 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28168else
cristy8b350f62009-11-15 23:12:43 +000028169 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028170fi
cristy8b350f62009-11-15 23:12:43 +000028171rm -f core conftest.err conftest.$ac_objext \
28172 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028173LIBS=$ac_check_lib_save_LIBS
28174fi
cristy8b350f62009-11-15 23:12:43 +000028175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028176$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028177if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028178 passed=`expr $passed + 1`
28179else
28180 failed=`expr $failed + 1`
28181fi
28182
cristy8b350f62009-11-15 23:12:43 +000028183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028184$as_echo_n "checking if DPS package is complete... " >&6; }
28185 if test $passed -gt 0; then
28186 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28188$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028189 have_dps='no (failed tests)'
28190 CPPFLAGS="$PERSIST_CPPFLAGS"
28191 else
28192 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28193 LIBS="$DPS_LIBS $LIBS"
28194
cristy8b350f62009-11-15 23:12:43 +000028195$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028196
cristyad38abe2012-12-23 23:03:21 +000028197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28198$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028199 have_dps='yes'
28200 fi
28201 else
cristyad38abe2012-12-23 23:03:21 +000028202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28203$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028204 CPPFLAGS=$PERSIST_CPPFLAGS
28205 fi
28206fi
cristy73bd4a52010-10-05 11:24:23 +000028207 if test "$have_dps" = 'yes'; then
28208 DPS_DELEGATE_TRUE=
28209 DPS_DELEGATE_FALSE='#'
28210else
28211 DPS_DELEGATE_TRUE='#'
28212 DPS_DELEGATE_FALSE=
28213fi
28214
cristy3ed852e2009-09-05 21:47:34 +000028215
28216
28217
28218#
28219# Check for DJVU delegate library.
28220#
28221
28222# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028223if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028224 withval=$with_djvu; with_djvu=$withval
28225else
28226 with_djvu='yes'
28227fi
28228
28229
28230if test "$with_djvu" != 'yes'; then
28231 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28232fi
28233
28234have_djvu='no'
28235DJVU_LIBS=''
28236if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28238$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028240$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28242$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028243 failed=0
28244 passed=0
cristy8b350f62009-11-15 23:12:43 +000028245 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 +000028246if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028247 passed=`expr $passed + 1`
28248else
28249 failed=`expr $failed + 1`
28250fi
28251
28252
cristy8b350f62009-11-15 23:12:43 +000028253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028254$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028255if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028256 $as_echo_n "(cached) " >&6
28257else
28258 ac_check_lib_save_LIBS=$LIBS
28259LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028261/* end confdefs.h. */
28262
28263/* Override any GCC internal prototype to avoid an error.
28264 Use char because int might match the return type of a GCC
28265 builtin and then its argument prototype would still apply. */
28266#ifdef __cplusplus
28267extern "C"
28268#endif
28269char ddjvu_context_create ();
28270int
28271main ()
28272{
28273return ddjvu_context_create ();
28274 ;
28275 return 0;
28276}
28277_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028278if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028279 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28280else
cristy8b350f62009-11-15 23:12:43 +000028281 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028282fi
cristy8b350f62009-11-15 23:12:43 +000028283rm -f core conftest.err conftest.$ac_objext \
28284 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028285LIBS=$ac_check_lib_save_LIBS
28286fi
cristy8b350f62009-11-15 23:12:43 +000028287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028288$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028289if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028290 passed=`expr $passed + 1`
28291else
28292 failed=`expr $failed + 1`
28293fi
28294
cristy8b350f62009-11-15 23:12:43 +000028295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028296$as_echo_n "checking if DJVU package is complete... " >&6; }
28297 if test $passed -gt 0; then
28298 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28300$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028301 have_djvu='no (failed tests)'
28302 else
28303 DJVU_LIBS='-ldjvulibre'
28304 LIBS="$DJVU_LIBS $LIBS"
28305
cristy8b350f62009-11-15 23:12:43 +000028306$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028307
cristyad38abe2012-12-23 23:03:21 +000028308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28309$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028310 have_djvu='yes'
28311 fi
28312 else
cristyad38abe2012-12-23 23:03:21 +000028313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28314$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028315 fi
28316fi
cristy73bd4a52010-10-05 11:24:23 +000028317 if test "$have_djvu" = 'yes'; then
28318 DJVU_DELEGATE_TRUE=
28319 DJVU_DELEGATE_FALSE='#'
28320else
28321 DJVU_DELEGATE_TRUE='#'
28322 DJVU_DELEGATE_FALSE=
28323fi
28324
cristy3ed852e2009-09-05 21:47:34 +000028325
28326
28327
28328#
cristy430a7312010-01-21 20:44:04 +000028329# Set DejaVu font directory.
28330#
28331
28332# Check whether --with-dejavu-font-dir was given.
28333if test "${with_dejavu_font_dir+set}" = set; then :
28334 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28335else
28336 with_dejavu_font_dir='default'
28337fi
28338
28339
28340if test "$with_dejavu_font_dir" != 'default'; then
28341 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28342fi
28343
28344
28345#
cristy3ed852e2009-09-05 21:47:34 +000028346# Check for FFTW delegate library.
28347#
28348
28349# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028350if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028351 withval=$with_fftw; with_fftw=$withval
28352else
28353 with_fftw='yes'
28354fi
28355
28356
28357if test "$with_fftw" != 'yes'; then
28358 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28359fi
28360
cristy81beccd2011-10-03 18:17:24 +000028361have_fftw='no'
28362FFTW_LIBS=''
28363if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28365$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28367$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28369$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028370 failed=0
28371 passed=0
28372 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28373if test "x$ac_cv_header_fftw3_h" = xyes; then :
28374 passed=`expr $passed + 1`
28375else
28376 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028377fi
28378
cristy81beccd2011-10-03 18:17:24 +000028379
28380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28381$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28382if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28383 $as_echo_n "(cached) " >&6
28384else
28385 ac_check_lib_save_LIBS=$LIBS
28386LIBS="-lfftw3 $LIBS"
28387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28388/* end confdefs.h. */
28389
28390/* Override any GCC internal prototype to avoid an error.
28391 Use char because int might match the return type of a GCC
28392 builtin and then its argument prototype would still apply. */
28393#ifdef __cplusplus
28394extern "C"
28395#endif
28396char fftw_execute ();
28397int
28398main ()
28399{
28400return fftw_execute ();
28401 ;
28402 return 0;
28403}
28404_ACEOF
28405if ac_fn_c_try_link "$LINENO"; then :
28406 ac_cv_lib_fftw3_fftw_execute=yes
28407else
28408 ac_cv_lib_fftw3_fftw_execute=no
28409fi
28410rm -f core conftest.err conftest.$ac_objext \
28411 conftest$ac_exeext conftest.$ac_ext
28412LIBS=$ac_check_lib_save_LIBS
28413fi
28414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28415$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28416if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28417 passed=`expr $passed + 1`
28418else
28419 failed=`expr $failed + 1`
28420fi
28421
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28423$as_echo_n "checking if FFTW package is complete... " >&6; }
28424 if test $passed -gt 0; then
28425 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28427$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028428 have_fftw='no (failed tests)'
28429 else
28430 FFTW_LIBS='-lfftw3'
28431 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028432
cristy8b350f62009-11-15 23:12:43 +000028433$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028434
cristyad38abe2012-12-23 23:03:21 +000028435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28436$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028437 have_fftw='yes'
28438 fi
28439 else
cristyad38abe2012-12-23 23:03:21 +000028440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28441$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028442 fi
28443fi
cristy73bd4a52010-10-05 11:24:23 +000028444 if test "$have_fftw" = 'yes'; then
28445 FFTW_DELEGATE_TRUE=
28446 FFTW_DELEGATE_FALSE='#'
28447else
28448 FFTW_DELEGATE_TRUE='#'
28449 FFTW_DELEGATE_FALSE=
28450fi
28451
cristy3ed852e2009-09-05 21:47:34 +000028452
28453
28454
28455#
28456# Check for FlashPIX delegate library.
28457#
28458
28459# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028460if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028461 withval=$with_fpx; with_fpx=$withval
28462else
28463 with_fpx='yes'
28464fi
28465
28466
28467if test "$with_fpx" != 'yes'; then
28468 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28469fi
28470
28471have_fpx='no'
28472FPX_LIBS=''
28473if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28475$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028477$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28479$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028480 failed=0
28481 passed=0
28482 ac_ext=cpp
28483ac_cpp='$CXXCPP $CPPFLAGS'
28484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28487
28488
cristy8b350f62009-11-15 23:12:43 +000028489ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028490if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028491 passed=`expr $passed + 1`
28492else
28493 failed=`expr $failed + 1`
28494fi
28495
28496
cristy8b350f62009-11-15 23:12:43 +000028497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028498$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028499if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028500 $as_echo_n "(cached) " >&6
28501else
28502 ac_check_lib_save_LIBS=$LIBS
28503LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028505/* end confdefs.h. */
28506
28507/* Override any GCC internal prototype to avoid an error.
28508 Use char because int might match the return type of a GCC
28509 builtin and then its argument prototype would still apply. */
28510#ifdef __cplusplus
28511extern "C"
28512#endif
28513char FPX_OpenImageByFilename ();
28514int
28515main ()
28516{
28517return FPX_OpenImageByFilename ();
28518 ;
28519 return 0;
28520}
28521_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028522if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028523 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28524else
cristy8b350f62009-11-15 23:12:43 +000028525 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028526fi
cristy8b350f62009-11-15 23:12:43 +000028527rm -f core conftest.err conftest.$ac_objext \
28528 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028529LIBS=$ac_check_lib_save_LIBS
28530fi
cristy8b350f62009-11-15 23:12:43 +000028531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028532$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028533if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028534 passed=`expr $passed + 1`
28535else
28536 failed=`expr $failed + 1`
28537fi
28538
28539 ac_ext=c
28540ac_cpp='$CPP $CPPFLAGS'
28541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28543ac_compiler_gnu=$ac_cv_c_compiler_gnu
28544
cristy8b350f62009-11-15 23:12:43 +000028545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028546$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28547 if test $passed -gt 0; then
28548 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28550$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028551 have_fpx='no (failed tests)'
28552 else
28553 FPX_LIBS='-lfpx'
28554
cristy8b350f62009-11-15 23:12:43 +000028555$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028556
cristyad38abe2012-12-23 23:03:21 +000028557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28558$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028559 have_fpx='yes'
28560 PERLMAINCC="$CXX"
28561 fi
28562 else
cristyad38abe2012-12-23 23:03:21 +000028563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28564$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028565 fi
28566fi
cristy73bd4a52010-10-05 11:24:23 +000028567 if test "$have_fpx" = 'yes'; then
28568 FPX_DELEGATE_TRUE=
28569 FPX_DELEGATE_FALSE='#'
28570else
28571 FPX_DELEGATE_TRUE='#'
28572 FPX_DELEGATE_FALSE=
28573fi
28574
cristy3ed852e2009-09-05 21:47:34 +000028575
28576
28577
28578#
28579# Check for fontconfig delegate library.
28580#
28581
28582# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028583if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028584 withval=$with_fontconfig; with_fontconfig=$withval
28585else
cristyfc3d0222012-02-07 15:05:57 +000028586 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028587fi
28588
28589
28590if test "$with_fontconfig" != 'yes'; then
28591 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28592fi
28593
28594have_fontconfig='no'
28595FONTCONFIG_CFLAGS=""
28596FONTCONFIG_LIBS=""
28597FONTCONFIG_PKG=""
28598if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28600$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028601
28602pkg_failed=no
28603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28604$as_echo_n "checking for FONTCONFIG... " >&6; }
28605
28606if test -n "$FONTCONFIG_CFLAGS"; then
28607 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28608 elif test -n "$PKG_CONFIG"; then
28609 if test -n "$PKG_CONFIG" && \
28610 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28611 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28612 ac_status=$?
28613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28614 test $ac_status = 0; }; then
28615 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28616else
28617 pkg_failed=yes
28618fi
28619 else
28620 pkg_failed=untried
28621fi
28622if test -n "$FONTCONFIG_LIBS"; then
28623 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28624 elif test -n "$PKG_CONFIG"; then
28625 if test -n "$PKG_CONFIG" && \
28626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28627 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28628 ac_status=$?
28629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28630 test $ac_status = 0; }; then
28631 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28632else
28633 pkg_failed=yes
28634fi
28635 else
28636 pkg_failed=untried
28637fi
28638
28639
28640
28641if test $pkg_failed = yes; then
28642
28643if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28644 _pkg_short_errors_supported=yes
28645else
28646 _pkg_short_errors_supported=no
28647fi
28648 if test $_pkg_short_errors_supported = yes; then
28649 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28650 else
28651 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28652 fi
28653 # Put the nasty error message in config.log where it belongs
28654 echo "$FONTCONFIG_PKG_ERRORS" >&5
28655
28656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28657$as_echo "no" >&6; }
28658 have_fontconfig=no
28659elif test $pkg_failed = untried; then
28660 have_fontconfig=no
28661else
28662 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28663 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28665$as_echo "yes" >&6; }
28666 have_fontconfig=yes
28667fi
cristyad38abe2012-12-23 23:03:21 +000028668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28669$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028670fi
28671
28672if test "$have_fontconfig" = 'yes'; then
28673
cristy8b350f62009-11-15 23:12:43 +000028674$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028675
cristyc6722092012-10-14 00:19:31 +000028676 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028677 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028678 fi
cristy3ed852e2009-09-05 21:47:34 +000028679fi
28680
cristy73bd4a52010-10-05 11:24:23 +000028681 if test "$have_fontconfig" = 'yes'; then
28682 FONTCONFIG_DELEGATE_TRUE=
28683 FONTCONFIG_DELEGATE_FALSE='#'
28684else
28685 FONTCONFIG_DELEGATE_TRUE='#'
28686 FONTCONFIG_DELEGATE_FALSE=
28687fi
28688
cristy3ed852e2009-09-05 21:47:34 +000028689
28690
28691
28692
28693#
cristy03f187e2013-01-24 00:22:19 +000028694# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028695#
28696
28697# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028698if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028699 withval=$with_freetype; with_freetype=$withval
28700else
28701 with_freetype='yes'
28702fi
28703
28704
cristy3ed852e2009-09-05 21:47:34 +000028705if test "$with_freetype" != 'yes'; then
28706 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28707fi
28708
cristy81beccd2011-10-03 18:17:24 +000028709have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000028710FREETYPE_CFLAGS=""
28711FREETYPE_LIBS=""
28712FREETYPE_PKG=""
28713if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28715$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000028716
28717pkg_failed=no
28718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
28719$as_echo_n "checking for FREETYPE... " >&6; }
28720
28721if test -n "$FREETYPE_CFLAGS"; then
28722 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
28723 elif test -n "$PKG_CONFIG"; then
28724 if test -n "$PKG_CONFIG" && \
28725 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
28726 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
28727 ac_status=$?
28728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28729 test $ac_status = 0; }; then
28730 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
28731else
28732 pkg_failed=yes
28733fi
28734 else
28735 pkg_failed=untried
28736fi
28737if test -n "$FREETYPE_LIBS"; then
28738 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
28739 elif test -n "$PKG_CONFIG"; then
28740 if test -n "$PKG_CONFIG" && \
28741 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
28742 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
28743 ac_status=$?
28744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28745 test $ac_status = 0; }; then
28746 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
28747else
28748 pkg_failed=yes
28749fi
28750 else
28751 pkg_failed=untried
28752fi
28753
28754
28755
28756if test $pkg_failed = yes; then
28757
28758if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28759 _pkg_short_errors_supported=yes
28760else
28761 _pkg_short_errors_supported=no
28762fi
28763 if test $_pkg_short_errors_supported = yes; then
28764 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
28765 else
28766 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
28767 fi
28768 # Put the nasty error message in config.log where it belongs
28769 echo "$FREETYPE_PKG_ERRORS" >&5
28770
28771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28772$as_echo "no" >&6; }
28773 have_freetype=no
28774elif test $pkg_failed = untried; then
28775 have_freetype=no
28776else
28777 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
28778 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
28779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28780$as_echo "yes" >&6; }
28781 have_freetype=yes
28782fi
cristyad38abe2012-12-23 23:03:21 +000028783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28784$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028785fi
28786
cristy03f187e2013-01-24 00:22:19 +000028787if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028788
cristy8b350f62009-11-15 23:12:43 +000028789$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028790
cristy03f187e2013-01-24 00:22:19 +000028791 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028792fi
cristy03f187e2013-01-24 00:22:19 +000028793
cristy73bd4a52010-10-05 11:24:23 +000028794 if test "$have_freetype" = 'yes'; then
28795 FREETYPE_DELEGATE_TRUE=
28796 FREETYPE_DELEGATE_FALSE='#'
28797else
28798 FREETYPE_DELEGATE_TRUE='#'
28799 FREETYPE_DELEGATE_FALSE=
28800fi
28801
cristy3ed852e2009-09-05 21:47:34 +000028802
28803
28804
cristy03f187e2013-01-24 00:22:19 +000028805
cristy3ed852e2009-09-05 21:47:34 +000028806#
28807# Check for Ghostscript library or framework.
28808#
28809# Test for iapi.h & test for gsapi_new_instance in -lgs
28810# or -framework Ghostscript
28811
28812
28813# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028814if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028815 withval=$with_gslib; with_gslib=$withval
28816else
28817 with_gslib='no'
28818fi
28819
28820
cristyb7931f12009-09-25 10:22:21 +000028821gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028822if test "$with_gslib" != 'yes'; then
28823 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28824fi
28825
28826have_gslib='no'
28827GS_LIBS=''
28828if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28830$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028832$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28834$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000028835 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028836 failed=0
28837 passed=0
cristy8b350f62009-11-15 23:12:43 +000028838 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 +000028839if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028840 passed=`expr $passed + 1`
28841else
28842 failed=`expr $failed + 1`
28843fi
28844
28845
cristy8b350f62009-11-15 23:12:43 +000028846 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 +000028847if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028848 passed=`expr $passed + 1`
28849else
28850 failed=`expr $failed + 1`
28851fi
28852
28853
cristy73bd4a52010-10-05 11:24:23 +000028854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28855$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028856if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028857 $as_echo_n "(cached) " >&6
28858else
28859 ac_check_framework_save_LIBS=$LIBS
28860LIBS="-framework Ghostscript $LIBS"
28861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28862/* end confdefs.h. */
28863
28864/* Override any GCC internal prototype to avoid an error.
28865 Use char because int might match the return type of a GCC
28866 builtin and then its argument prototype would still apply. */
28867#ifdef __cplusplus
28868extern "C"
28869#endif
28870char gsapi_new_instance ();
28871int
28872main ()
28873{
28874return gsapi_new_instance ();
28875 ;
28876 return 0;
28877}
28878_ACEOF
28879if ac_fn_c_try_link "$LINENO"; then :
28880 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28881else
28882 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28883fi
28884rm -f core conftest.err conftest.$ac_objext \
28885 conftest$ac_exeext conftest.$ac_ext
28886LIBS=$ac_check_framework_save_LIBS
28887fi
28888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28889$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28890if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28891 framework=`expr $framework + 1`
28892else
28893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028894$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028895if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028896 $as_echo_n "(cached) " >&6
28897else
28898 ac_check_lib_save_LIBS=$LIBS
28899LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028901/* end confdefs.h. */
28902
28903/* Override any GCC internal prototype to avoid an error.
28904 Use char because int might match the return type of a GCC
28905 builtin and then its argument prototype would still apply. */
28906#ifdef __cplusplus
28907extern "C"
28908#endif
28909char gsapi_new_instance ();
28910int
28911main ()
28912{
28913return gsapi_new_instance ();
28914 ;
28915 return 0;
28916}
28917_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028918if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028919 ac_cv_lib_gs_gsapi_new_instance=yes
28920else
cristy8b350f62009-11-15 23:12:43 +000028921 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028922fi
cristy8b350f62009-11-15 23:12:43 +000028923rm -f core conftest.err conftest.$ac_objext \
28924 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028925LIBS=$ac_check_lib_save_LIBS
28926fi
cristy8b350f62009-11-15 23:12:43 +000028927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028928$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028929if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028930 passed=`expr $passed + 1`
28931else
28932 failed=`expr $failed + 1`
28933fi
cristy73bd4a52010-10-05 11:24:23 +000028934
28935fi
cristy8b350f62009-11-15 23:12:43 +000028936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028937$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28938 if test $passed -gt 0; then
28939 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28941$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028942 have_gslib='no (failed tests)'
28943 else
28944 if test $framework -gt 0; then
28945 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028946 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000028947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
28948$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028949 else
cristyad38abe2012-12-23 23:03:21 +000028950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
28951$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028952 GS_LIBS='-lgs'
28953 fi
28954 LIBS="$GS_LIBS $LIBS"
28955
cristy8b350f62009-11-15 23:12:43 +000028956$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028957
28958 have_gslib='yes'
28959 fi
28960 else
cristyad38abe2012-12-23 23:03:21 +000028961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28962$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028963 fi
28964fi
cristy73bd4a52010-10-05 11:24:23 +000028965 if test "$have_gslib" = 'yes'; then
28966 GS_DELEGATE_TRUE=
28967 GS_DELEGATE_FALSE='#'
28968else
28969 GS_DELEGATE_TRUE='#'
28970 GS_DELEGATE_FALSE=
28971fi
28972
cristy3ed852e2009-09-05 21:47:34 +000028973
28974
28975# Set default font search path
28976
28977# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028978if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028979 withval=$with_fontpath; with_fontpath=$withval
28980else
28981 with_fontpath=''
28982fi
28983
28984
28985if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28986 with_fontpath=''
28987else
28988
28989cat >>confdefs.h <<_ACEOF
28990#define MAGICK_FONT_PATH "$with_fontpath"
28991_ACEOF
28992
28993fi
28994if test "$with_fontpath=" != ''; then
28995 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28996fi
28997
28998# Set Ghostscript font directory
28999
29000# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029001if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029002 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29003else
29004 with_gs_font_dir='default'
29005fi
29006
29007
29008if test "$with_gs_font_dir" != 'default'; then
29009 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29010fi
29011
29012
29013#
29014# Check for GVC delegate library.
29015#
29016
29017# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029018if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029019 withval=$with_gvc; with_gvc=$withval
29020else
cristy1b70dc82012-07-01 23:15:05 +000029021 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029022fi
29023
29024
29025if test "$with_gvc" != 'yes'; then
29026 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29027fi
29028
29029GVC_PKG=""
29030if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29032$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029033
29034pkg_failed=no
29035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29036$as_echo_n "checking for GVC... " >&6; }
29037
29038if test -n "$GVC_CFLAGS"; then
29039 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29040 elif test -n "$PKG_CONFIG"; then
29041 if test -n "$PKG_CONFIG" && \
29042 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29043 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29044 ac_status=$?
29045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29046 test $ac_status = 0; }; then
29047 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29048else
29049 pkg_failed=yes
29050fi
29051 else
29052 pkg_failed=untried
29053fi
29054if test -n "$GVC_LIBS"; then
29055 pkg_cv_GVC_LIBS="$GVC_LIBS"
29056 elif test -n "$PKG_CONFIG"; then
29057 if test -n "$PKG_CONFIG" && \
29058 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29059 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29060 ac_status=$?
29061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29062 test $ac_status = 0; }; then
29063 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29064else
29065 pkg_failed=yes
29066fi
29067 else
29068 pkg_failed=untried
29069fi
29070
29071
29072
29073if test $pkg_failed = yes; then
29074
29075if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29076 _pkg_short_errors_supported=yes
29077else
29078 _pkg_short_errors_supported=no
29079fi
29080 if test $_pkg_short_errors_supported = yes; then
29081 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29082 else
29083 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29084 fi
29085 # Put the nasty error message in config.log where it belongs
29086 echo "$GVC_PKG_ERRORS" >&5
29087
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29089$as_echo "no" >&6; }
29090 have_gvc=no
29091elif test $pkg_failed = untried; then
29092 have_gvc=no
29093else
29094 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29095 GVC_LIBS=$pkg_cv_GVC_LIBS
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29097$as_echo "yes" >&6; }
29098 have_gvc=yes
29099fi
cristyad38abe2012-12-23 23:03:21 +000029100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29101$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029102fi
29103
29104if test "$have_gvc" = 'yes'; then
29105
cristy8b350f62009-11-15 23:12:43 +000029106$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029107
cristyc6722092012-10-14 00:19:31 +000029108 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029109 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29110 fi
29111fi
29112
cristy73bd4a52010-10-05 11:24:23 +000029113 if test "$have_gvc" = 'yes'; then
29114 GVC_DELEGATE_TRUE=
29115 GVC_DELEGATE_FALSE='#'
29116else
29117 GVC_DELEGATE_TRUE='#'
29118 GVC_DELEGATE_FALSE=
29119fi
29120
cristy3ed852e2009-09-05 21:47:34 +000029121
29122
29123
29124
29125#
29126# Check for JBIG delegate library.
29127#
29128
29129
29130# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029131if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029132 withval=$with_jbig; with_jbig=$withval
29133else
29134 with_jbig='yes'
29135fi
29136
29137
29138have_jbig='no'
29139JBIG_LIBS=''
29140if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29142$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029144$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29146$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029147 failed=0
29148 passed=0
cristy8b350f62009-11-15 23:12:43 +000029149 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029150if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029151 passed=`expr $passed + 1`
29152else
29153 failed=`expr $failed + 1`
29154fi
29155
29156
cristy8b350f62009-11-15 23:12:43 +000029157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029158$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029159if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029160 $as_echo_n "(cached) " >&6
29161else
29162 ac_check_lib_save_LIBS=$LIBS
29163LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029165/* end confdefs.h. */
29166
29167/* Override any GCC internal prototype to avoid an error.
29168 Use char because int might match the return type of a GCC
29169 builtin and then its argument prototype would still apply. */
29170#ifdef __cplusplus
29171extern "C"
29172#endif
29173char jbg_dec_init ();
29174int
29175main ()
29176{
29177return jbg_dec_init ();
29178 ;
29179 return 0;
29180}
29181_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029182if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029183 ac_cv_lib_jbig_jbg_dec_init=yes
29184else
cristy8b350f62009-11-15 23:12:43 +000029185 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029186fi
cristy8b350f62009-11-15 23:12:43 +000029187rm -f core conftest.err conftest.$ac_objext \
29188 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029189LIBS=$ac_check_lib_save_LIBS
29190fi
cristy8b350f62009-11-15 23:12:43 +000029191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029192$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029193if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029194 passed=`expr $passed + 1`
29195else
29196 failed=`expr $failed + 1`
29197fi
29198
cristy8b350f62009-11-15 23:12:43 +000029199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029200$as_echo_n "checking if JBIG package is complete... " >&6; }
29201 if test $passed -gt 0; then
29202 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29204$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029205 have_jbig='no (failed tests)'
29206 else
29207 JBIG_LIBS='-ljbig'
29208 LIBS="$JBIG_LIBS $LIBS"
29209
cristy8b350f62009-11-15 23:12:43 +000029210$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029211
cristyad38abe2012-12-23 23:03:21 +000029212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29213$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029214 have_jbig='yes'
29215 fi
29216 else
cristyad38abe2012-12-23 23:03:21 +000029217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29218$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029219 fi
29220fi
cristy73bd4a52010-10-05 11:24:23 +000029221 if test "$have_jbig" = 'yes'; then
29222 JBIG_DELEGATE_TRUE=
29223 JBIG_DELEGATE_FALSE='#'
29224else
29225 JBIG_DELEGATE_TRUE='#'
29226 JBIG_DELEGATE_FALSE=
29227fi
29228
cristy3ed852e2009-09-05 21:47:34 +000029229
29230
29231
29232#
29233# Check for JPEG delegate library.
29234#
29235
29236# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029237if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029238 withval=$with_jpeg; with_jpeg=$withval
29239else
29240 with_jpeg='yes'
29241fi
29242
29243
29244if test "$with_jpeg" != 'yes'; then
29245 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29246fi
29247
29248have_jpeg='no'
29249JPEG_LIBS=''
29250if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29252$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029254$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29256$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029257 failed=0
29258 passed=0
cristy8b350f62009-11-15 23:12:43 +000029259 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029260if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029261 passed=`expr $passed + 1`
29262else
29263 failed=`expr $failed + 1`
29264fi
29265
29266
cristy8b350f62009-11-15 23:12:43 +000029267 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029268if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029269 passed=`expr $passed + 1`
29270else
29271 failed=`expr $failed + 1`
29272fi
29273
29274
cristy8b350f62009-11-15 23:12:43 +000029275 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029276if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029277 passed=`expr $passed + 1`
29278else
29279 failed=`expr $failed + 1`
29280fi
29281
29282
cristy8b350f62009-11-15 23:12:43 +000029283 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029284if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029285 passed=`expr $passed + 1`
29286else
29287 failed=`expr $failed + 1`
29288fi
29289
29290
cristy8b350f62009-11-15 23:12:43 +000029291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029292$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029293if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029294 $as_echo_n "(cached) " >&6
29295else
29296 ac_check_lib_save_LIBS=$LIBS
29297LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029299/* end confdefs.h. */
29300
29301/* Override any GCC internal prototype to avoid an error.
29302 Use char because int might match the return type of a GCC
29303 builtin and then its argument prototype would still apply. */
29304#ifdef __cplusplus
29305extern "C"
29306#endif
29307char jpeg_read_header ();
29308int
29309main ()
29310{
29311return jpeg_read_header ();
29312 ;
29313 return 0;
29314}
29315_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029316if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029317 ac_cv_lib_jpeg_jpeg_read_header=yes
29318else
cristy8b350f62009-11-15 23:12:43 +000029319 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029320fi
cristy8b350f62009-11-15 23:12:43 +000029321rm -f core conftest.err conftest.$ac_objext \
29322 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029323LIBS=$ac_check_lib_save_LIBS
29324fi
cristy8b350f62009-11-15 23:12:43 +000029325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029326$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029327if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029328 passed=`expr $passed + 1`
29329else
29330 failed=`expr $failed + 1`
29331fi
29332
29333
29334# Test for compatible JPEG library
29335if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029337$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029338if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029339 $as_echo_n "(cached) " >&6
29340else
cristy8b350f62009-11-15 23:12:43 +000029341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029342/* end confdefs.h. */
29343#include <stdio.h>
29344#include <stdlib.h>
29345#include <jpeglib.h>
29346
29347int
29348main ()
29349{
29350
29351#if JPEG_LIB_VERSION < 62
29352#error IJG JPEG library must be version 6b or newer!
29353#endif
29354return 0;
29355
29356 ;
29357 return 0;
29358}
29359_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029360if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029361 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29362else
cristy8b350f62009-11-15 23:12:43 +000029363 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029364fi
cristy3ed852e2009-09-05 21:47:34 +000029365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29366fi
cristy8b350f62009-11-15 23:12:43 +000029367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029368$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29369fi
cristy8b350f62009-11-15 23:12:43 +000029370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029371$as_echo_n "checking if JPEG package is complete... " >&6; }
29372 if test $passed -gt 0; then
29373 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29375$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029376 have_jpeg='no (failed tests)'
29377 else
29378 JPEG_LIBS='-ljpeg'
29379 LIBS="$JPEG_LIBS $LIBS"
29380
cristy8b350f62009-11-15 23:12:43 +000029381$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029382
cristyad38abe2012-12-23 23:03:21 +000029383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29384$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029385 have_jpeg='yes'
29386 fi
29387 else
cristyad38abe2012-12-23 23:03:21 +000029388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29389$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029390 fi
29391fi
cristy73bd4a52010-10-05 11:24:23 +000029392 if test "$have_jpeg" = 'yes'; then
29393 JPEG_DELEGATE_TRUE=
29394 JPEG_DELEGATE_FALSE='#'
29395else
29396 JPEG_DELEGATE_TRUE='#'
29397 JPEG_DELEGATE_FALSE=
29398fi
29399
cristy3ed852e2009-09-05 21:47:34 +000029400
29401
29402
29403#
29404# Check for JPEG Version 2 delegate library.
29405#
29406
29407# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029408if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029409 withval=$with_jp2; with_jp2=$withval
29410else
29411 with_jp2='yes'
29412fi
29413
29414
29415if test "$with_jp2" != 'yes'; then
29416 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29417fi
29418
29419have_jp2='no'
29420JP2_LIBS=''
29421if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29423$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029425$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29427$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029428 failed=0
29429 passed=0
cristy8b350f62009-11-15 23:12:43 +000029430 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029431if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029432 passed=`expr $passed + 1`
29433else
29434 failed=`expr $failed + 1`
29435fi
29436
29437
cristy8b350f62009-11-15 23:12:43 +000029438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029439$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029440if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029441 $as_echo_n "(cached) " >&6
29442else
29443 ac_check_lib_save_LIBS=$LIBS
29444LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029446/* end confdefs.h. */
29447
29448/* Override any GCC internal prototype to avoid an error.
29449 Use char because int might match the return type of a GCC
29450 builtin and then its argument prototype would still apply. */
29451#ifdef __cplusplus
29452extern "C"
29453#endif
29454char jas_stream_fopen ();
29455int
29456main ()
29457{
29458return jas_stream_fopen ();
29459 ;
29460 return 0;
29461}
29462_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029463if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029464 ac_cv_lib_jasper_jas_stream_fopen=yes
29465else
cristy8b350f62009-11-15 23:12:43 +000029466 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029467fi
cristy8b350f62009-11-15 23:12:43 +000029468rm -f core conftest.err conftest.$ac_objext \
29469 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029470LIBS=$ac_check_lib_save_LIBS
29471fi
cristy8b350f62009-11-15 23:12:43 +000029472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029473$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029474if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029475 passed=`expr $passed + 1`
29476else
29477 failed=`expr $failed + 1`
29478fi
29479
cristy8b350f62009-11-15 23:12:43 +000029480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029481$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29482 if test $passed -gt 0; then
29483 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29485$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029486 have_jp2='no (failed tests)'
29487 else
29488 JP2_LIBS='-ljasper'
29489 LIBS="$JP2_LIBS $LIBS"
29490
cristy8b350f62009-11-15 23:12:43 +000029491$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029492
cristyad38abe2012-12-23 23:03:21 +000029493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29494$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029495 have_jp2='yes'
29496 fi
29497 else
cristyad38abe2012-12-23 23:03:21 +000029498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29499$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029500 fi
29501fi
cristy73bd4a52010-10-05 11:24:23 +000029502 if test "$have_jp2" = 'yes'; then
29503 JP2_DELEGATE_TRUE=
29504 JP2_DELEGATE_FALSE='#'
29505else
29506 JP2_DELEGATE_TRUE='#'
29507 JP2_DELEGATE_FALSE=
29508fi
29509
cristy3ed852e2009-09-05 21:47:34 +000029510
29511
29512
29513#
29514# Check for LCMS delegate library.
29515#
cristy71203402010-06-18 13:12:03 +000029516# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029517
29518# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029519if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029520 withval=$with_lcms; with_lcms=$withval
29521else
29522 with_lcms='yes'
29523fi
29524
cristy71203402010-06-18 13:12:03 +000029525if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029526 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29527fi
29528
cristy71203402010-06-18 13:12:03 +000029529# Disable LCMS2.
29530
29531# Check whether --with-lcms2 was given.
29532if test "${with_lcms2+set}" = set; then :
29533 withval=$with_lcms2; with_lcms2=$withval
29534else
29535 with_lcms2='yes'
29536fi
29537
29538if test "$with_lcms2" != 'yes' ; then
29539 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29540fi
29541
29542have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029543LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029544if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29546$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29548$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29550$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029551 failed=0
29552 passed=0
29553 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029554
29555 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029556 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029557if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029558 have_lcms_header='yes'
29559fi
29560
29561
29562 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029563
29564$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29565
cristy71203402010-06-18 13:12:03 +000029566 passed=`expr $passed + 1`
29567 fi
29568
29569 # Check for <lcms2/lcms2.h)
29570 if test "$have_lcms_header" != 'yes'; then
29571 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 +000029572if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029573 have_lcms_header='yes'
29574fi
29575
29576
cristy71203402010-06-18 13:12:03 +000029577 if test "$have_lcms_header" = 'yes'; then
29578 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029579
cristy71203402010-06-18 13:12:03 +000029580$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029581
cristy71203402010-06-18 13:12:03 +000029582 fi
cristyd09bcf92010-03-25 03:04:45 +000029583 fi
cristy71203402010-06-18 13:12:03 +000029584
29585 # Failed to find lcms header?
29586 if test "$have_lcms_header" != 'yes'; then
29587 failed=`expr $failed + 1`
29588 fi
29589
29590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29591$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029592if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029593 $as_echo_n "(cached) " >&6
29594else
29595 ac_check_lib_save_LIBS=$LIBS
29596LIBS="-llcms2 $LIBS"
29597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29598/* end confdefs.h. */
29599
29600/* Override any GCC internal prototype to avoid an error.
29601 Use char because int might match the return type of a GCC
29602 builtin and then its argument prototype would still apply. */
29603#ifdef __cplusplus
29604extern "C"
29605#endif
cristy71203402010-06-18 13:12:03 +000029606char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029607int
29608main ()
29609{
cristy71203402010-06-18 13:12:03 +000029610return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029611 ;
29612 return 0;
29613}
29614_ACEOF
29615if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029616 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029617else
cristy71203402010-06-18 13:12:03 +000029618 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029619fi
29620rm -f core conftest.err conftest.$ac_objext \
29621 conftest$ac_exeext conftest.$ac_ext
29622LIBS=$ac_check_lib_save_LIBS
29623fi
cristy71203402010-06-18 13:12:03 +000029624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29625$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029626if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029627 passed=`expr $passed + 1`
29628else
29629 failed=`expr $failed + 1`
29630fi
29631
cristy71203402010-06-18 13:12:03 +000029632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29633$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029634 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029635 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29637$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029638 have_lcms2='no (failed tests)'
29639 else
29640 LCMS_LIBS='-llcms2'
29641 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29643$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029644 have_lcms2='yes'
29645 fi
cristyd09bcf92010-03-25 03:04:45 +000029646 else
cristyad38abe2012-12-23 23:03:21 +000029647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29648$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029649 fi
29650fi
29651
cristy71203402010-06-18 13:12:03 +000029652#
29653# Check for LCMS v1 (1.11 or later)
29654#
29655if test $have_lcms2 = 'yes'; then
29656 with_lcms='no'
29657fi
29658
29659have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029660if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29662$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29664$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29666$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029667 failed=0
29668 passed=0
29669 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029670
29671 # Check for <lcms.h>
29672 if test "$have_lcms_header" != 'yes'; then
29673 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029674if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029675 have_lcms_header='yes'
29676fi
29677
29678
cristy71203402010-06-18 13:12:03 +000029679 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029680 passed=`expr $passed + 1`
29681
cristy8b350f62009-11-15 23:12:43 +000029682$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029683
cristy71203402010-06-18 13:12:03 +000029684 fi
29685 fi
29686
29687 # Check for <lcms/lcms.h>
29688 if test "$have_lcms_header" != 'yes'; then
29689 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 +000029690if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029691 have_lcms_header='yes'
29692fi
29693
29694
cristy71203402010-06-18 13:12:03 +000029695 if test "$have_lcms_header" = 'yes'; then
29696 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029697
cristy8b350f62009-11-15 23:12:43 +000029698$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029699
cristy71203402010-06-18 13:12:03 +000029700 fi
cristy3ed852e2009-09-05 21:47:34 +000029701 fi
cristy71203402010-06-18 13:12:03 +000029702
29703 # Failed to find lcms header?
29704 if test "$have_lcms_header" != 'yes'; then
29705 failed=`expr $failed + 1`
29706 fi
29707
29708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29709$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029710if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029711 $as_echo_n "(cached) " >&6
29712else
29713 ac_check_lib_save_LIBS=$LIBS
29714LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029716/* end confdefs.h. */
29717
29718/* Override any GCC internal prototype to avoid an error.
29719 Use char because int might match the return type of a GCC
29720 builtin and then its argument prototype would still apply. */
29721#ifdef __cplusplus
29722extern "C"
29723#endif
cristy71203402010-06-18 13:12:03 +000029724char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029725int
29726main ()
29727{
cristy71203402010-06-18 13:12:03 +000029728return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029729 ;
29730 return 0;
29731}
29732_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029733if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029734 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029735else
cristy71203402010-06-18 13:12:03 +000029736 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029737fi
cristy8b350f62009-11-15 23:12:43 +000029738rm -f core conftest.err conftest.$ac_objext \
29739 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029740LIBS=$ac_check_lib_save_LIBS
29741fi
cristy71203402010-06-18 13:12:03 +000029742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29743$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029744if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029745 passed=`expr $passed + 1`
29746else
29747 failed=`expr $failed + 1`
29748fi
29749
cristy8b350f62009-11-15 23:12:43 +000029750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029751$as_echo_n "checking if LCMS package is complete... " >&6; }
29752 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029753 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29755$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029756 have_lcms='no (failed tests)'
29757 else
29758 LCMS_LIBS='-llcms'
29759 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29761$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029762 have_lcms='yes'
29763 fi
cristy3ed852e2009-09-05 21:47:34 +000029764 else
cristyad38abe2012-12-23 23:03:21 +000029765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29766$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029767 fi
29768fi
cristy71203402010-06-18 13:12:03 +000029769
cristy73bd4a52010-10-05 11:24:23 +000029770 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29771 LCMS_DELEGATE_TRUE=
29772 LCMS_DELEGATE_FALSE='#'
29773else
29774 LCMS_DELEGATE_TRUE='#'
29775 LCMS_DELEGATE_FALSE=
29776fi
29777
cristy71203402010-06-18 13:12:03 +000029778if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29779
29780$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29781
29782fi
29783
cristy3ed852e2009-09-05 21:47:34 +000029784
29785
29786
29787#
29788# Check for the LQR (Liquid Rescale) delegate library.
29789#
29790
29791# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029792if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029793 withval=$with_lqr; with_lqr=$withval
29794else
29795 with_lqr='yes'
29796fi
29797
29798
29799if test "$with_lqr" != 'yes'; then
29800 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29801fi
29802
29803have_lqr='no'
29804LQR_CFLAGS=""
29805LQR_LIBS=""
29806LQR_PKG=""
29807if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29809$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029810
29811pkg_failed=no
29812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29813$as_echo_n "checking for LQR... " >&6; }
29814
29815if test -n "$LQR_CFLAGS"; then
29816 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29817 elif test -n "$PKG_CONFIG"; then
29818 if test -n "$PKG_CONFIG" && \
29819 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29820 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29821 ac_status=$?
29822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29823 test $ac_status = 0; }; then
29824 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29825else
29826 pkg_failed=yes
29827fi
29828 else
29829 pkg_failed=untried
29830fi
29831if test -n "$LQR_LIBS"; then
29832 pkg_cv_LQR_LIBS="$LQR_LIBS"
29833 elif test -n "$PKG_CONFIG"; then
29834 if test -n "$PKG_CONFIG" && \
29835 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29836 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29837 ac_status=$?
29838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29839 test $ac_status = 0; }; then
29840 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29841else
29842 pkg_failed=yes
29843fi
29844 else
29845 pkg_failed=untried
29846fi
29847
29848
29849
29850if test $pkg_failed = yes; then
29851
29852if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29853 _pkg_short_errors_supported=yes
29854else
29855 _pkg_short_errors_supported=no
29856fi
29857 if test $_pkg_short_errors_supported = yes; then
29858 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29859 else
29860 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29861 fi
29862 # Put the nasty error message in config.log where it belongs
29863 echo "$LQR_PKG_ERRORS" >&5
29864
29865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29866$as_echo "no" >&6; }
29867 have_lqr=no
29868elif test $pkg_failed = untried; then
29869 have_lqr=no
29870else
29871 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29872 LQR_LIBS=$pkg_cv_LQR_LIBS
29873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29874$as_echo "yes" >&6; }
29875 have_lqr=yes
29876fi
cristyad38abe2012-12-23 23:03:21 +000029877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29878$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029879fi
29880
29881if test "$have_lqr" = 'yes'; then
29882
cristy8b350f62009-11-15 23:12:43 +000029883$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029884
29885 CFLAGS="$LQR_CFLAGS $CFLAGS"
29886fi
29887
cristy73bd4a52010-10-05 11:24:23 +000029888 if test "$have_lqr" = 'yes'; then
29889 LQR_DELEGATE_TRUE=
29890 LQR_DELEGATE_FALSE='#'
29891else
29892 LQR_DELEGATE_TRUE='#'
29893 LQR_DELEGATE_FALSE=
29894fi
29895
cristy3ed852e2009-09-05 21:47:34 +000029896
29897
29898
29899
cristy81beccd2011-10-03 18:17:24 +000029900# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000029901
29902# Check whether --with-lzma was given.
29903if test "${with_lzma+set}" = set; then :
29904 withval=$with_lzma; with_lzma=$withval
29905else
29906 with_lzma='yes'
29907fi
29908
cristy81beccd2011-10-03 18:17:24 +000029909if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000029910 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29911fi
29912
cristyb94e5002011-11-14 13:20:10 +000029913LZMA_PKG=""
29914if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29916$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000029917
29918pkg_failed=no
29919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000029920$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000029921
29922if test -n "$LZMA_CFLAGS"; then
29923 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
29924 elif test -n "$PKG_CONFIG"; then
29925 if test -n "$PKG_CONFIG" && \
29926 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
29927 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
29928 ac_status=$?
29929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29930 test $ac_status = 0; }; then
29931 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
29932else
29933 pkg_failed=yes
29934fi
29935 else
29936 pkg_failed=untried
29937fi
29938if test -n "$LZMA_LIBS"; then
29939 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
29940 elif test -n "$PKG_CONFIG"; then
29941 if test -n "$PKG_CONFIG" && \
29942 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
29943 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
29944 ac_status=$?
29945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29946 test $ac_status = 0; }; then
29947 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
29948else
29949 pkg_failed=yes
29950fi
29951 else
29952 pkg_failed=untried
29953fi
29954
29955
29956
29957if test $pkg_failed = yes; then
29958
29959if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29960 _pkg_short_errors_supported=yes
29961else
29962 _pkg_short_errors_supported=no
29963fi
29964 if test $_pkg_short_errors_supported = yes; then
29965 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
29966 else
29967 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
29968 fi
29969 # Put the nasty error message in config.log where it belongs
29970 echo "$LZMA_PKG_ERRORS" >&5
29971
29972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29973$as_echo "no" >&6; }
29974 have_lzma=no
29975elif test $pkg_failed = untried; then
29976 have_lzma=no
29977else
29978 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
29979 LZMA_LIBS=$pkg_cv_LZMA_LIBS
29980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29981$as_echo "yes" >&6; }
29982 have_lzma=yes
29983fi
cristyad38abe2012-12-23 23:03:21 +000029984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29985$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000029986fi
29987
cristyb94e5002011-11-14 13:20:10 +000029988if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000029989
29990$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29991
cristyc6722092012-10-14 00:19:31 +000029992 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000029993 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000029994 fi
cristyfbb0ef02010-12-19 02:32:11 +000029995fi
cristyb94e5002011-11-14 13:20:10 +000029996
cristyfbb0ef02010-12-19 02:32:11 +000029997 if test "$have_lzma" = 'yes'; then
29998 LZMA_DELEGATE_TRUE=
29999 LZMA_DELEGATE_FALSE='#'
30000else
30001 LZMA_DELEGATE_TRUE='#'
30002 LZMA_DELEGATE_FALSE=
30003fi
30004
30005
30006
30007
cristyb94e5002011-11-14 13:20:10 +000030008
cristy3ed852e2009-09-05 21:47:34 +000030009#
cristy854c9cf2013-08-10 21:03:06 +000030010# Check for MUPDF delegate library.
30011#
30012
30013# Check whether --with-mupdf was given.
30014if test "${with_mupdf+set}" = set; then :
30015 withval=$with_mupdf; with_mupdf=$withval
30016else
30017 with_mupdf='no'
30018fi
30019
30020
30021if test "$with_mupdf" != 'yes'; then
30022 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-mupdf=$with_mupdf "
30023fi
30024
30025have_mupdf='no'
30026MUPDF_LIBS=''
30027if test "$with_mupdf" != 'no'; then
30028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30029$as_echo "-------------------------------------------------------------" >&6; }
30030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MUPDF" >&5
30031$as_echo_n "checking for MUPDF... " >&6; }
30032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30033$as_echo "" >&6; }
30034 failed=0
30035 passed=0
30036 ac_fn_c_check_header_mongrel "$LINENO" "mupdf/fitz.h" "ac_cv_header_mupdf_fitz_h" "$ac_includes_default"
30037if test "x$ac_cv_header_mupdf_fitz_h" = xyes; then :
30038 passed=`expr $passed + 1`
30039else
30040 failed=`expr $failed + 1`
30041fi
30042
30043
30044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fz_new_context in -lmupdf" >&5
30045$as_echo_n "checking for fz_new_context in -lmupdf... " >&6; }
30046if ${ac_cv_lib_mupdf_fz_new_context+:} false; then :
30047 $as_echo_n "(cached) " >&6
30048else
30049 ac_check_lib_save_LIBS=$LIBS
30050LIBS="-lmupdf -lmupdf $FREETYPE_LIBS $LIBS"
30051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30052/* end confdefs.h. */
30053
30054/* Override any GCC internal prototype to avoid an error.
30055 Use char because int might match the return type of a GCC
30056 builtin and then its argument prototype would still apply. */
30057#ifdef __cplusplus
30058extern "C"
30059#endif
30060char fz_new_context ();
30061int
30062main ()
30063{
30064return fz_new_context ();
30065 ;
30066 return 0;
30067}
30068_ACEOF
30069if ac_fn_c_try_link "$LINENO"; then :
30070 ac_cv_lib_mupdf_fz_new_context=yes
30071else
30072 ac_cv_lib_mupdf_fz_new_context=no
30073fi
30074rm -f core conftest.err conftest.$ac_objext \
30075 conftest$ac_exeext conftest.$ac_ext
30076LIBS=$ac_check_lib_save_LIBS
30077fi
30078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mupdf_fz_new_context" >&5
30079$as_echo "$ac_cv_lib_mupdf_fz_new_context" >&6; }
30080if test "x$ac_cv_lib_mupdf_fz_new_context" = xyes; then :
30081 passed=`expr $passed + 1`
30082else
30083 failed=`expr $failed + 1`
30084fi
30085
30086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MUPDF package is complete" >&5
30087$as_echo_n "checking if MUPDF package is complete... " >&6; }
30088 if test $passed -gt 0; then
30089 if test $failed -gt 0; then
30090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30091$as_echo "no -- some components failed test" >&6; }
30092 have_mupdf='no (failed tests)'
30093 else
30094 MUPDF_LIBS='-lmupdf'
30095 LIBS="$MUPDF_LIBS $LIBS"
30096
30097$as_echo "#define MUPDF_DELEGATE 1" >>confdefs.h
30098
30099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30100$as_echo "yes" >&6; }
30101 have_mupdf='yes'
30102 fi
30103 else
30104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30105$as_echo "no" >&6; }
30106 fi
30107fi
30108 if test "$have_mupdf" = 'yes'; then
30109 MUPDF_DELEGATE_TRUE=
30110 MUPDF_DELEGATE_FALSE='#'
30111else
30112 MUPDF_DELEGATE_TRUE='#'
30113 MUPDF_DELEGATE_FALSE=
30114fi
30115
30116
30117
30118
30119#
cristy3ed852e2009-09-05 21:47:34 +000030120# Check for the OpenEXR delegate library.
30121#
30122
30123# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030124if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030125 withval=$with_openexr; with_openexr=$withval
30126else
30127 with_openexr='yes'
30128fi
30129
30130
30131if test "$with_openexr" != 'yes'; then
30132 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30133fi
30134
30135have_openexr='no'
30136OPENEXR_CFLAGS=""
30137OPENEXR_LIBS=""
30138OPENEXR_PKG=""
30139if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30141$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030142
30143pkg_failed=no
30144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30145$as_echo_n "checking for OPENEXR... " >&6; }
30146
30147if test -n "$OPENEXR_CFLAGS"; then
30148 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30149 elif test -n "$PKG_CONFIG"; then
30150 if test -n "$PKG_CONFIG" && \
30151 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30152 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30153 ac_status=$?
30154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30155 test $ac_status = 0; }; then
30156 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30157else
30158 pkg_failed=yes
30159fi
30160 else
30161 pkg_failed=untried
30162fi
30163if test -n "$OPENEXR_LIBS"; then
30164 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30165 elif test -n "$PKG_CONFIG"; then
30166 if test -n "$PKG_CONFIG" && \
30167 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30168 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30169 ac_status=$?
30170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30171 test $ac_status = 0; }; then
30172 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30173else
30174 pkg_failed=yes
30175fi
30176 else
30177 pkg_failed=untried
30178fi
30179
30180
30181
30182if test $pkg_failed = yes; then
30183
30184if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30185 _pkg_short_errors_supported=yes
30186else
30187 _pkg_short_errors_supported=no
30188fi
30189 if test $_pkg_short_errors_supported = yes; then
30190 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30191 else
30192 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30193 fi
30194 # Put the nasty error message in config.log where it belongs
30195 echo "$OPENEXR_PKG_ERRORS" >&5
30196
30197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30198$as_echo "no" >&6; }
30199 have_openexr=no
30200elif test $pkg_failed = untried; then
30201 have_openexr=no
30202else
30203 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30204 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30206$as_echo "yes" >&6; }
30207 have_openexr=yes
30208fi
cristyad38abe2012-12-23 23:03:21 +000030209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30210$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030211fi
30212
30213if test "$have_openexr" = 'yes'; then
30214
cristy8b350f62009-11-15 23:12:43 +000030215$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030216
cristyc6722092012-10-14 00:19:31 +000030217 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030218 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30219 fi
30220fi
30221
cristy73bd4a52010-10-05 11:24:23 +000030222 if test "$have_openexr" = 'yes'; then
30223 OPENEXR_DELEGATE_TRUE=
30224 OPENEXR_DELEGATE_FALSE='#'
30225else
30226 OPENEXR_DELEGATE_TRUE='#'
30227 OPENEXR_DELEGATE_FALSE=
30228fi
30229
cristy3ed852e2009-09-05 21:47:34 +000030230
30231
30232
30233
30234#
cristy41cbe8a2011-10-27 01:35:18 +000030235# Check for PANGO delegate library.
30236#
30237
30238# Check whether --with-pango was given.
30239if test "${with_pango+set}" = set; then :
30240 withval=$with_pango; with_pango=$withval
30241else
cristyfc3d0222012-02-07 15:05:57 +000030242 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030243fi
30244
30245
30246if test "$with_pango" != 'yes'; then
30247 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30248fi
30249
30250have_pango='no'
cristya054b762012-03-26 23:16:00 +000030251have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030252PANGO_CFLAGS=""
30253PANGO_LIBS=""
30254PANGO_PKG=""
30255if test "x$with_pango" = "xyes"; then
30256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30257$as_echo "-------------------------------------------------------------" >&6; }
30258
30259pkg_failed=no
30260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30261$as_echo_n "checking for PANGO... " >&6; }
30262
30263if test -n "$PANGO_CFLAGS"; then
30264 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30265 elif test -n "$PKG_CONFIG"; then
30266 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030267 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30268 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030269 ac_status=$?
30270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30271 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030272 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030273else
30274 pkg_failed=yes
30275fi
30276 else
30277 pkg_failed=untried
30278fi
30279if test -n "$PANGO_LIBS"; then
30280 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30281 elif test -n "$PKG_CONFIG"; then
30282 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030283 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30284 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030285 ac_status=$?
30286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30287 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030288 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030289else
30290 pkg_failed=yes
30291fi
30292 else
30293 pkg_failed=untried
30294fi
30295
30296
30297
30298if test $pkg_failed = yes; then
30299
30300if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30301 _pkg_short_errors_supported=yes
30302else
30303 _pkg_short_errors_supported=no
30304fi
30305 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030306 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030307 else
cristya054b762012-03-26 23:16:00 +000030308 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030309 fi
30310 # Put the nasty error message in config.log where it belongs
30311 echo "$PANGO_PKG_ERRORS" >&5
30312
30313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30314$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030315 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030316elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030317 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030318else
30319 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30320 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30322$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030323 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030324fi
30325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30326$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030327
30328pkg_failed=no
30329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30330$as_echo_n "checking for PANGO... " >&6; }
30331
30332if test -n "$PANGO_CFLAGS"; then
30333 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30334 elif test -n "$PKG_CONFIG"; then
30335 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030336 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30337 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030338 ac_status=$?
30339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30340 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030341 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030342else
30343 pkg_failed=yes
30344fi
30345 else
30346 pkg_failed=untried
30347fi
30348if test -n "$PANGO_LIBS"; then
30349 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30350 elif test -n "$PKG_CONFIG"; then
30351 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030352 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30353 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030354 ac_status=$?
30355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30356 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030357 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030358else
30359 pkg_failed=yes
30360fi
30361 else
30362 pkg_failed=untried
30363fi
30364
30365
30366
30367if test $pkg_failed = yes; then
30368
30369if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30370 _pkg_short_errors_supported=yes
30371else
30372 _pkg_short_errors_supported=no
30373fi
30374 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030375 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030376 else
cristy2542fc62011-12-06 17:50:25 +000030377 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030378 fi
30379 # Put the nasty error message in config.log where it belongs
30380 echo "$PANGO_PKG_ERRORS" >&5
30381
30382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30383$as_echo "no" >&6; }
30384 have_pango=no
30385elif test $pkg_failed = untried; then
30386 have_pango=no
30387else
30388 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30389 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30391$as_echo "yes" >&6; }
30392 have_pango=yes
30393fi
30394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30395$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030396fi
30397
30398if test "$have_pango" = 'yes'; then
30399
30400$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30401
cristyc6722092012-10-14 00:19:31 +000030402 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030403 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30404 fi
30405fi
30406
cristya054b762012-03-26 23:16:00 +000030407if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030408
cristya054b762012-03-26 23:16:00 +000030409$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030410
cristyc6722092012-10-14 00:19:31 +000030411 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030412 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030413 fi
30414fi
30415
30416 if test "$have_pango" = 'yes'; then
30417 PANGO_DELEGATE_TRUE=
30418 PANGO_DELEGATE_FALSE='#'
30419else
30420 PANGO_DELEGATE_TRUE='#'
30421 PANGO_DELEGATE_FALSE=
30422fi
30423
cristya054b762012-03-26 23:16:00 +000030424 if test "$have_pangocairo" = 'yes'; then
30425 PANGOCAIRO_DELEGATE_TRUE=
30426 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030427else
cristya054b762012-03-26 23:16:00 +000030428 PANGOCAIRO_DELEGATE_TRUE='#'
30429 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030430fi
30431
30432
30433
30434
30435
30436#
cristy3ed852e2009-09-05 21:47:34 +000030437# Check for PNG delegate library.
30438#
30439
30440# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030441if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030442 withval=$with_png; with_png=$withval
30443else
30444 with_png='yes'
30445fi
30446
30447
30448if test "$with_png" != 'yes'; then
30449 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30450fi
30451
cristy81beccd2011-10-03 18:17:24 +000030452have_png='no'
30453PNG_LIBS=''
30454
30455if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30457$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30459$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30461$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030462 failed=0
30463 passed=0
30464 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30465if test "x$ac_cv_header_png_h" = xyes; then :
30466 passed=`expr $passed + 1`
30467else
30468 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030469fi
30470
cristy81beccd2011-10-03 18:17:24 +000030471
30472
30473 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030474 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030475 if test "$have_png" = 'no' ; then
30476 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030477 pnglib='png'
30478 else
30479 pnglib="png1${var}"
30480 fi
30481
30482# Test for compatible LIBPNG library
30483 failed=0
30484 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030485 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030486 if test "${pnglib}" != 'png' ; then
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30488$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30490/* end confdefs.h. */
30491#include <stdio.h>
30492#include <stdlib.h>
30493#include <png.h>
30494
30495int
30496main ()
30497{
30498
30499#if PNG_LIBPNG_VER_MINOR != ${var}
30500#error LIBPNG library must be version 1${var}!
30501Kaboom, Kaboom
30502#endif
30503return 0;
30504
30505 ;
30506 return 0;
30507}
30508_ACEOF
30509if ac_fn_c_try_compile "$LINENO"; then :
30510 ac_cv_libpng_ok='yes'
30511else
30512 ac_cv_libpng_ok='no'
30513fi
30514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30515 if test "$ac_cv_libpng_ok" = 'yes' ; then
30516 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30518$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030519 else
30520 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30522$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030523 fi
30524 else
30525 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30527$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030528 fi
30529 fi
30530
30531 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030532 if test "1${var}" = '17' ; then
30533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30534$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30535if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30536 $as_echo_n "(cached) " >&6
30537else
30538 ac_check_lib_save_LIBS=$LIBS
30539LIBS="-lpng17 $LIBS"
30540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30541/* end confdefs.h. */
30542
30543/* Override any GCC internal prototype to avoid an error.
30544 Use char because int might match the return type of a GCC
30545 builtin and then its argument prototype would still apply. */
30546#ifdef __cplusplus
30547extern "C"
30548#endif
30549char png_get_io_ptr ();
30550int
30551main ()
30552{
30553return png_get_io_ptr ();
30554 ;
30555 return 0;
30556}
30557_ACEOF
30558if ac_fn_c_try_link "$LINENO"; then :
30559 ac_cv_lib_png17_png_get_io_ptr=yes
30560else
30561 ac_cv_lib_png17_png_get_io_ptr=no
30562fi
30563rm -f core conftest.err conftest.$ac_objext \
30564 conftest$ac_exeext conftest.$ac_ext
30565LIBS=$ac_check_lib_save_LIBS
30566fi
30567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30568$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30569if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30570 passed=`expr $passed + 1`
30571else
30572 failed=`expr $failed + 1`
30573fi
30574
30575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30576$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30577if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30578 $as_echo_n "(cached) " >&6
30579else
30580 ac_check_lib_save_LIBS=$LIBS
30581LIBS="-lpng17 $LIBS"
30582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30583/* end confdefs.h. */
30584
30585/* Override any GCC internal prototype to avoid an error.
30586 Use char because int might match the return type of a GCC
30587 builtin and then its argument prototype would still apply. */
30588#ifdef __cplusplus
30589extern "C"
30590#endif
30591char png_longjmp ();
30592int
30593main ()
30594{
30595return png_longjmp ();
30596 ;
30597 return 0;
30598}
30599_ACEOF
30600if ac_fn_c_try_link "$LINENO"; then :
30601 ac_cv_lib_png17_png_longjmp=yes
30602else
30603 ac_cv_lib_png17_png_longjmp=no
30604fi
30605rm -f core conftest.err conftest.$ac_objext \
30606 conftest$ac_exeext conftest.$ac_ext
30607LIBS=$ac_check_lib_save_LIBS
30608fi
30609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30610$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30611if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30612 passed=`expr $passed + 1`
30613else
30614 failed=`expr $failed + 1`
30615fi
30616
30617 fi
30618 if test "1${var}" = '16' ; then
30619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30620$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30621if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30622 $as_echo_n "(cached) " >&6
30623else
30624 ac_check_lib_save_LIBS=$LIBS
30625LIBS="-lpng16 $LIBS"
30626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30627/* end confdefs.h. */
30628
30629/* Override any GCC internal prototype to avoid an error.
30630 Use char because int might match the return type of a GCC
30631 builtin and then its argument prototype would still apply. */
30632#ifdef __cplusplus
30633extern "C"
30634#endif
30635char png_get_io_ptr ();
30636int
30637main ()
30638{
30639return png_get_io_ptr ();
30640 ;
30641 return 0;
30642}
30643_ACEOF
30644if ac_fn_c_try_link "$LINENO"; then :
30645 ac_cv_lib_png16_png_get_io_ptr=yes
30646else
30647 ac_cv_lib_png16_png_get_io_ptr=no
30648fi
30649rm -f core conftest.err conftest.$ac_objext \
30650 conftest$ac_exeext conftest.$ac_ext
30651LIBS=$ac_check_lib_save_LIBS
30652fi
30653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
30654$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
30655if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
30656 passed=`expr $passed + 1`
30657else
30658 failed=`expr $failed + 1`
30659fi
30660
30661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
30662$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
30663if ${ac_cv_lib_png16_png_longjmp+:} false; then :
30664 $as_echo_n "(cached) " >&6
30665else
30666 ac_check_lib_save_LIBS=$LIBS
30667LIBS="-lpng16 $LIBS"
30668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30669/* end confdefs.h. */
30670
30671/* Override any GCC internal prototype to avoid an error.
30672 Use char because int might match the return type of a GCC
30673 builtin and then its argument prototype would still apply. */
30674#ifdef __cplusplus
30675extern "C"
30676#endif
30677char png_longjmp ();
30678int
30679main ()
30680{
30681return png_longjmp ();
30682 ;
30683 return 0;
30684}
30685_ACEOF
30686if ac_fn_c_try_link "$LINENO"; then :
30687 ac_cv_lib_png16_png_longjmp=yes
30688else
30689 ac_cv_lib_png16_png_longjmp=no
30690fi
30691rm -f core conftest.err conftest.$ac_objext \
30692 conftest$ac_exeext conftest.$ac_ext
30693LIBS=$ac_check_lib_save_LIBS
30694fi
30695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
30696$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
30697if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
30698 passed=`expr $passed + 1`
30699else
30700 failed=`expr $failed + 1`
30701fi
30702
30703 fi
cristy81beccd2011-10-03 18:17:24 +000030704 if test "1${var}" = '15' ; then
30705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30706$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30707if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30708 $as_echo_n "(cached) " >&6
30709else
30710 ac_check_lib_save_LIBS=$LIBS
30711LIBS="-lpng15 $LIBS"
30712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30713/* end confdefs.h. */
30714
30715/* Override any GCC internal prototype to avoid an error.
30716 Use char because int might match the return type of a GCC
30717 builtin and then its argument prototype would still apply. */
30718#ifdef __cplusplus
30719extern "C"
30720#endif
30721char png_get_io_ptr ();
30722int
30723main ()
30724{
30725return png_get_io_ptr ();
30726 ;
30727 return 0;
30728}
30729_ACEOF
30730if ac_fn_c_try_link "$LINENO"; then :
30731 ac_cv_lib_png15_png_get_io_ptr=yes
30732else
30733 ac_cv_lib_png15_png_get_io_ptr=no
30734fi
30735rm -f core conftest.err conftest.$ac_objext \
30736 conftest$ac_exeext conftest.$ac_ext
30737LIBS=$ac_check_lib_save_LIBS
30738fi
30739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30740$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30741if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30742 passed=`expr $passed + 1`
30743else
30744 failed=`expr $failed + 1`
30745fi
30746
30747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30748$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30749if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30750 $as_echo_n "(cached) " >&6
30751else
30752 ac_check_lib_save_LIBS=$LIBS
30753LIBS="-lpng15 $LIBS"
30754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30755/* end confdefs.h. */
30756
30757/* Override any GCC internal prototype to avoid an error.
30758 Use char because int might match the return type of a GCC
30759 builtin and then its argument prototype would still apply. */
30760#ifdef __cplusplus
30761extern "C"
30762#endif
30763char png_longjmp ();
30764int
30765main ()
30766{
30767return png_longjmp ();
30768 ;
30769 return 0;
30770}
30771_ACEOF
30772if ac_fn_c_try_link "$LINENO"; then :
30773 ac_cv_lib_png15_png_longjmp=yes
30774else
30775 ac_cv_lib_png15_png_longjmp=no
30776fi
30777rm -f core conftest.err conftest.$ac_objext \
30778 conftest$ac_exeext conftest.$ac_ext
30779LIBS=$ac_check_lib_save_LIBS
30780fi
30781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30782$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30783if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30784 passed=`expr $passed + 1`
30785else
30786 failed=`expr $failed + 1`
30787fi
30788
30789 fi
30790 if test "1${var}" = '14' ; then
30791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30792$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30793if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30794 $as_echo_n "(cached) " >&6
30795else
30796 ac_check_lib_save_LIBS=$LIBS
30797LIBS="-lpng14 $LIBS"
30798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30799/* end confdefs.h. */
30800
30801/* Override any GCC internal prototype to avoid an error.
30802 Use char because int might match the return type of a GCC
30803 builtin and then its argument prototype would still apply. */
30804#ifdef __cplusplus
30805extern "C"
30806#endif
30807char png_get_io_ptr ();
30808int
30809main ()
30810{
30811return png_get_io_ptr ();
30812 ;
30813 return 0;
30814}
30815_ACEOF
30816if ac_fn_c_try_link "$LINENO"; then :
30817 ac_cv_lib_png14_png_get_io_ptr=yes
30818else
30819 ac_cv_lib_png14_png_get_io_ptr=no
30820fi
30821rm -f core conftest.err conftest.$ac_objext \
30822 conftest$ac_exeext conftest.$ac_ext
30823LIBS=$ac_check_lib_save_LIBS
30824fi
30825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30826$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30827if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30828 passed=`expr $passed + 1`
30829else
30830 failed=`expr $failed + 1`
30831fi
30832
30833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30834$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30835if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30836 $as_echo_n "(cached) " >&6
30837else
30838 ac_check_lib_save_LIBS=$LIBS
30839LIBS="-lpng14 $LIBS"
30840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30841/* end confdefs.h. */
30842
30843/* Override any GCC internal prototype to avoid an error.
30844 Use char because int might match the return type of a GCC
30845 builtin and then its argument prototype would still apply. */
30846#ifdef __cplusplus
30847extern "C"
30848#endif
30849char png_get_io_state ();
30850int
30851main ()
30852{
30853return png_get_io_state ();
30854 ;
30855 return 0;
30856}
30857_ACEOF
30858if ac_fn_c_try_link "$LINENO"; then :
30859 ac_cv_lib_png14_png_get_io_state=yes
30860else
30861 ac_cv_lib_png14_png_get_io_state=no
30862fi
30863rm -f core conftest.err conftest.$ac_objext \
30864 conftest$ac_exeext conftest.$ac_ext
30865LIBS=$ac_check_lib_save_LIBS
30866fi
30867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30868$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30869if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30870 passed=`expr $passed + 1`
30871else
30872 failed=`expr $failed + 1`
30873fi
30874
30875 fi
30876 if test "1${var}" = '12' ; then
30877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30878$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30879if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30880 $as_echo_n "(cached) " >&6
30881else
30882 ac_check_lib_save_LIBS=$LIBS
30883LIBS="-lpng12 $LIBS"
30884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30885/* end confdefs.h. */
30886
30887/* Override any GCC internal prototype to avoid an error.
30888 Use char because int might match the return type of a GCC
30889 builtin and then its argument prototype would still apply. */
30890#ifdef __cplusplus
30891extern "C"
30892#endif
30893char png_get_io_ptr ();
30894int
30895main ()
30896{
30897return png_get_io_ptr ();
30898 ;
30899 return 0;
30900}
30901_ACEOF
30902if ac_fn_c_try_link "$LINENO"; then :
30903 ac_cv_lib_png12_png_get_io_ptr=yes
30904else
30905 ac_cv_lib_png12_png_get_io_ptr=no
30906fi
30907rm -f core conftest.err conftest.$ac_objext \
30908 conftest$ac_exeext conftest.$ac_ext
30909LIBS=$ac_check_lib_save_LIBS
30910fi
30911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30912$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30913if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30914 passed=`expr $passed + 1`
30915else
30916 failed=`expr $failed + 1`
30917fi
30918
30919 fi
30920 if test "1${var}" = '1' ; then
30921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30922$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30923if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30924 $as_echo_n "(cached) " >&6
30925else
30926 ac_check_lib_save_LIBS=$LIBS
30927LIBS="-lpng $LIBS"
30928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30929/* end confdefs.h. */
30930
30931/* Override any GCC internal prototype to avoid an error.
30932 Use char because int might match the return type of a GCC
30933 builtin and then its argument prototype would still apply. */
30934#ifdef __cplusplus
30935extern "C"
30936#endif
30937char png_get_io_ptr ();
30938int
30939main ()
30940{
30941return png_get_io_ptr ();
30942 ;
30943 return 0;
30944}
30945_ACEOF
30946if ac_fn_c_try_link "$LINENO"; then :
30947 ac_cv_lib_png_png_get_io_ptr=yes
30948else
30949 ac_cv_lib_png_png_get_io_ptr=no
30950fi
30951rm -f core conftest.err conftest.$ac_objext \
30952 conftest$ac_exeext conftest.$ac_ext
30953LIBS=$ac_check_lib_save_LIBS
30954fi
30955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30956$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30957if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30958 passed=`expr $passed + 1`
30959else
30960 failed=`expr $failed + 1`
30961fi
30962
30963 fi
30964 if test $passed -gt 0 -a $failed -le 0 ; then
30965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30966$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30967 if test $passed -gt 0 ; then
30968 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000030969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30970$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030971 have_png='no (failed tests)'
30972 else
30973 PNG_LIBS="-l${pnglib}"
30974 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030975
cristy8b350f62009-11-15 23:12:43 +000030976$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030977
cristyad38abe2012-12-23 23:03:21 +000030978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30979$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030980 have_png='yes'
30981 fi
30982 fi
30983 fi
30984 fi
30985 fi
30986 done
30987 fi
cristy3ed852e2009-09-05 21:47:34 +000030988fi
cristy64877302011-08-23 19:10:31 +000030989
cristy73bd4a52010-10-05 11:24:23 +000030990 if test "$have_png" = 'yes'; then
30991 PNG_DELEGATE_TRUE=
30992 PNG_DELEGATE_FALSE='#'
30993else
30994 PNG_DELEGATE_TRUE='#'
30995 PNG_DELEGATE_FALSE=
30996fi
30997
cristy3ed852e2009-09-05 21:47:34 +000030998
cristy50d3f5c2011-09-10 20:09:06 +000030999
cristy3ed852e2009-09-05 21:47:34 +000031000
31001
31002#
31003# Check for RSVG delegate library.
31004#
31005
31006# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031007if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031008 withval=$with_rsvg; with_rsvg=$withval
31009else
cristy1164d5f2012-08-15 00:58:25 +000031010 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031011fi
31012
31013
31014if test "$with_rsvg" != 'yes'; then
31015 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31016fi
31017
31018have_rsvg='no'
31019have_cairo='no'
31020RSVG_CFLAGS=""
31021RSVG_LIBS=""
31022RSVG_PKG=""
31023if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31025$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031026
31027pkg_failed=no
31028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31029$as_echo_n "checking for RSVG... " >&6; }
31030
31031if test -n "$RSVG_CFLAGS"; then
31032 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31033 elif test -n "$PKG_CONFIG"; then
31034 if test -n "$PKG_CONFIG" && \
31035 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31036 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31037 ac_status=$?
31038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31039 test $ac_status = 0; }; then
31040 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31041else
31042 pkg_failed=yes
31043fi
31044 else
31045 pkg_failed=untried
31046fi
31047if test -n "$RSVG_LIBS"; then
31048 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31049 elif test -n "$PKG_CONFIG"; then
31050 if test -n "$PKG_CONFIG" && \
31051 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31052 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31053 ac_status=$?
31054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31055 test $ac_status = 0; }; then
31056 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31057else
31058 pkg_failed=yes
31059fi
31060 else
31061 pkg_failed=untried
31062fi
31063
31064
31065
31066if test $pkg_failed = yes; then
31067
31068if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31069 _pkg_short_errors_supported=yes
31070else
31071 _pkg_short_errors_supported=no
31072fi
31073 if test $_pkg_short_errors_supported = yes; then
31074 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31075 else
31076 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31077 fi
31078 # Put the nasty error message in config.log where it belongs
31079 echo "$RSVG_PKG_ERRORS" >&5
31080
31081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31082$as_echo "no" >&6; }
31083 have_rsvg=no
31084elif test $pkg_failed = untried; then
31085 have_rsvg=no
31086else
31087 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31088 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31090$as_echo "yes" >&6; }
31091 have_rsvg=yes
31092fi
cristyad38abe2012-12-23 23:03:21 +000031093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31094$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031095
31096pkg_failed=no
31097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31098$as_echo_n "checking for CAIRO_SVG... " >&6; }
31099
31100if test -n "$CAIRO_SVG_CFLAGS"; then
31101 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31102 elif test -n "$PKG_CONFIG"; then
31103 if test -n "$PKG_CONFIG" && \
31104 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31105 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31106 ac_status=$?
31107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31108 test $ac_status = 0; }; then
31109 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31110else
31111 pkg_failed=yes
31112fi
31113 else
31114 pkg_failed=untried
31115fi
31116if test -n "$CAIRO_SVG_LIBS"; then
31117 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31118 elif test -n "$PKG_CONFIG"; then
31119 if test -n "$PKG_CONFIG" && \
31120 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31121 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31122 ac_status=$?
31123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31124 test $ac_status = 0; }; then
31125 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31126else
31127 pkg_failed=yes
31128fi
31129 else
31130 pkg_failed=untried
31131fi
31132
31133
31134
31135if test $pkg_failed = yes; then
31136
31137if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31138 _pkg_short_errors_supported=yes
31139else
31140 _pkg_short_errors_supported=no
31141fi
31142 if test $_pkg_short_errors_supported = yes; then
31143 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31144 else
31145 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31146 fi
31147 # Put the nasty error message in config.log where it belongs
31148 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31149
31150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31151$as_echo "no" >&6; }
31152 have_cairo=no
31153elif test $pkg_failed = untried; then
31154 have_cairo=no
31155else
31156 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31157 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31159$as_echo "yes" >&6; }
31160 have_cairo=yes
31161fi
cristyad38abe2012-12-23 23:03:21 +000031162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31163$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031164fi
31165
31166if test "$have_rsvg" = 'yes'; then
31167
cristy8b350f62009-11-15 23:12:43 +000031168$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031169
cristyc6722092012-10-14 00:19:31 +000031170 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031171 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31172 fi
31173fi
31174
31175if test "$have_cairo" = 'yes'; then
31176
cristy8b350f62009-11-15 23:12:43 +000031177$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031178
cristyc6722092012-10-14 00:19:31 +000031179 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031180 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31181 fi
31182fi
31183
cristy73bd4a52010-10-05 11:24:23 +000031184 if test "$have_rsvg" = 'yes'; then
31185 RSVG_DELEGATE_TRUE=
31186 RSVG_DELEGATE_FALSE='#'
31187else
31188 RSVG_DELEGATE_TRUE='#'
31189 RSVG_DELEGATE_FALSE=
31190fi
31191
31192 if test "$have_cairo" = 'yes'; then
31193 CAIRO_DELEGATE_TRUE=
31194 CAIRO_DELEGATE_FALSE='#'
31195else
31196 CAIRO_DELEGATE_TRUE='#'
31197 CAIRO_DELEGATE_FALSE=
31198fi
31199
cristy3ed852e2009-09-05 21:47:34 +000031200
31201
31202
31203
31204#
31205# Check for TIFF delegate library.
31206#
31207
31208# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031209if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031210 withval=$with_tiff; with_tiff=$withval
31211else
31212 with_tiff='yes'
31213fi
31214
31215
31216if test "$with_tiff" != 'yes'; then
31217 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31218fi
31219
31220have_tiff='no'
31221TIFF_LIBS=''
31222if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31224$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031226$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31228$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031229 failed=0
31230 passed=0
cristy8b350f62009-11-15 23:12:43 +000031231 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031232if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031233 passed=`expr $passed + 1`
31234else
31235 failed=`expr $failed + 1`
31236fi
31237
31238
cristy8b350f62009-11-15 23:12:43 +000031239 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031240if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031241 passed=`expr $passed + 1`
31242else
31243 failed=`expr $failed + 1`
31244fi
31245
31246
cristy8b350f62009-11-15 23:12:43 +000031247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031248$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031249if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031250 $as_echo_n "(cached) " >&6
31251else
31252 ac_check_lib_save_LIBS=$LIBS
31253LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031255/* end confdefs.h. */
31256
31257/* Override any GCC internal prototype to avoid an error.
31258 Use char because int might match the return type of a GCC
31259 builtin and then its argument prototype would still apply. */
31260#ifdef __cplusplus
31261extern "C"
31262#endif
31263char TIFFOpen ();
31264int
31265main ()
31266{
31267return TIFFOpen ();
31268 ;
31269 return 0;
31270}
31271_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031272if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031273 ac_cv_lib_tiff_TIFFOpen=yes
31274else
cristy8b350f62009-11-15 23:12:43 +000031275 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031276fi
cristy8b350f62009-11-15 23:12:43 +000031277rm -f core conftest.err conftest.$ac_objext \
31278 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031279LIBS=$ac_check_lib_save_LIBS
31280fi
cristy8b350f62009-11-15 23:12:43 +000031281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031282$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031283if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031284 passed=`expr $passed + 1`
31285else
31286 failed=`expr $failed + 1`
31287fi
31288
cristy8b350f62009-11-15 23:12:43 +000031289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031290$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031291if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031292 $as_echo_n "(cached) " >&6
31293else
31294 ac_check_lib_save_LIBS=$LIBS
31295LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031297/* end confdefs.h. */
31298
31299/* Override any GCC internal prototype to avoid an error.
31300 Use char because int might match the return type of a GCC
31301 builtin and then its argument prototype would still apply. */
31302#ifdef __cplusplus
31303extern "C"
31304#endif
31305char TIFFClientOpen ();
31306int
31307main ()
31308{
31309return TIFFClientOpen ();
31310 ;
31311 return 0;
31312}
31313_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031314if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031315 ac_cv_lib_tiff_TIFFClientOpen=yes
31316else
cristy8b350f62009-11-15 23:12:43 +000031317 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031318fi
cristy8b350f62009-11-15 23:12:43 +000031319rm -f core conftest.err conftest.$ac_objext \
31320 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031321LIBS=$ac_check_lib_save_LIBS
31322fi
cristy8b350f62009-11-15 23:12:43 +000031323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031324$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031325if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031326 passed=`expr $passed + 1`
31327else
31328 failed=`expr $failed + 1`
31329fi
31330
cristy8b350f62009-11-15 23:12:43 +000031331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031332$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031333if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031334 $as_echo_n "(cached) " >&6
31335else
31336 ac_check_lib_save_LIBS=$LIBS
31337LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031339/* end confdefs.h. */
31340
31341/* Override any GCC internal prototype to avoid an error.
31342 Use char because int might match the return type of a GCC
31343 builtin and then its argument prototype would still apply. */
31344#ifdef __cplusplus
31345extern "C"
31346#endif
31347char TIFFIsByteSwapped ();
31348int
31349main ()
31350{
31351return TIFFIsByteSwapped ();
31352 ;
31353 return 0;
31354}
31355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031356if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031357 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31358else
cristy8b350f62009-11-15 23:12:43 +000031359 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031360fi
cristy8b350f62009-11-15 23:12:43 +000031361rm -f core conftest.err conftest.$ac_objext \
31362 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031363LIBS=$ac_check_lib_save_LIBS
31364fi
cristy8b350f62009-11-15 23:12:43 +000031365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031366$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031367if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031368 passed=`expr $passed + 1`
31369else
31370 failed=`expr $failed + 1`
31371fi
31372
cristy8b350f62009-11-15 23:12:43 +000031373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031374$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031375if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031376 $as_echo_n "(cached) " >&6
31377else
31378 ac_check_lib_save_LIBS=$LIBS
31379LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031381/* end confdefs.h. */
31382
31383/* Override any GCC internal prototype to avoid an error.
31384 Use char because int might match the return type of a GCC
31385 builtin and then its argument prototype would still apply. */
31386#ifdef __cplusplus
31387extern "C"
31388#endif
31389char TIFFReadRGBATile ();
31390int
31391main ()
31392{
31393return TIFFReadRGBATile ();
31394 ;
31395 return 0;
31396}
31397_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031398if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031399 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31400else
cristy8b350f62009-11-15 23:12:43 +000031401 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031402fi
cristy8b350f62009-11-15 23:12:43 +000031403rm -f core conftest.err conftest.$ac_objext \
31404 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031405LIBS=$ac_check_lib_save_LIBS
31406fi
cristy8b350f62009-11-15 23:12:43 +000031407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031408$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031409if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031410 passed=`expr $passed + 1`
31411else
31412 failed=`expr $failed + 1`
31413fi
31414
cristy8b350f62009-11-15 23:12:43 +000031415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031416$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031417if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031418 $as_echo_n "(cached) " >&6
31419else
31420 ac_check_lib_save_LIBS=$LIBS
31421LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031423/* end confdefs.h. */
31424
31425/* Override any GCC internal prototype to avoid an error.
31426 Use char because int might match the return type of a GCC
31427 builtin and then its argument prototype would still apply. */
31428#ifdef __cplusplus
31429extern "C"
31430#endif
31431char TIFFReadRGBAStrip ();
31432int
31433main ()
31434{
31435return TIFFReadRGBAStrip ();
31436 ;
31437 return 0;
31438}
31439_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031440if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031441 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31442else
cristy8b350f62009-11-15 23:12:43 +000031443 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031444fi
cristy8b350f62009-11-15 23:12:43 +000031445rm -f core conftest.err conftest.$ac_objext \
31446 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031447LIBS=$ac_check_lib_save_LIBS
31448fi
cristy8b350f62009-11-15 23:12:43 +000031449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031450$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031451if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031452 passed=`expr $passed + 1`
31453else
31454 failed=`expr $failed + 1`
31455fi
31456
cristy8b350f62009-11-15 23:12:43 +000031457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031458$as_echo_n "checking if TIFF package is complete... " >&6; }
31459 if test $passed -gt 0; then
31460 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31462$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031463 have_tiff='no (failed tests)'
31464 else
31465 TIFF_LIBS='-ltiff'
31466 LIBS="$TIFF_LIBS $LIBS"
31467
cristy8b350f62009-11-15 23:12:43 +000031468$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031469
cristyad38abe2012-12-23 23:03:21 +000031470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31471$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031472 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031473 for ac_header in tiffconf.h
31474do :
31475 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031476if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031477 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031478#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031479_ACEOF
31480
31481fi
31482
31483done
31484
cristy8b350f62009-11-15 23:12:43 +000031485 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031486 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31487 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31488 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031489do :
31490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31491ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031492if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031493 cat >>confdefs.h <<_ACEOF
31494#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31495_ACEOF
31496
31497fi
31498done
31499
31500 fi
31501 else
cristyad38abe2012-12-23 23:03:21 +000031502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31503$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031504 fi
31505fi
cristy73bd4a52010-10-05 11:24:23 +000031506 if test "$have_tiff" = 'yes'; then
31507 TIFF_DELEGATE_TRUE=
31508 TIFF_DELEGATE_FALSE='#'
31509else
31510 TIFF_DELEGATE_TRUE='#'
31511 TIFF_DELEGATE_FALSE=
31512fi
31513
cristy3ed852e2009-09-05 21:47:34 +000031514
31515
31516
31517#
cristyb1860752011-03-14 00:27:46 +000031518# Check for WEBP delegate library.
31519#
31520
31521# Check whether --with-webp was given.
31522if test "${with_webp+set}" = set; then :
31523 withval=$with_webp; with_webp=$withval
31524else
31525 with_webp='yes'
31526fi
31527
31528
31529if test "$with_webp" != 'yes'; then
31530 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31531fi
31532
31533have_webp='no'
31534WEBP_LIBS=''
31535if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31537$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31539$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31541$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031542 failed=0
31543 passed=0
31544 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31545if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31546 passed=`expr $passed + 1`
31547else
31548 failed=`expr $failed + 1`
31549fi
31550
31551
cristy6d670312013-03-22 23:23:01 +000031552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31553$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31554if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031555 $as_echo_n "(cached) " >&6
31556else
31557 ac_check_lib_save_LIBS=$LIBS
31558LIBS="-lwebp $LIBS"
31559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31560/* end confdefs.h. */
31561
31562/* Override any GCC internal prototype to avoid an error.
31563 Use char because int might match the return type of a GCC
31564 builtin and then its argument prototype would still apply. */
31565#ifdef __cplusplus
31566extern "C"
31567#endif
cristy6d670312013-03-22 23:23:01 +000031568char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031569int
31570main ()
31571{
cristy6d670312013-03-22 23:23:01 +000031572return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031573 ;
31574 return 0;
31575}
31576_ACEOF
31577if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031578 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031579else
cristy6d670312013-03-22 23:23:01 +000031580 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031581fi
31582rm -f core conftest.err conftest.$ac_objext \
31583 conftest$ac_exeext conftest.$ac_ext
31584LIBS=$ac_check_lib_save_LIBS
31585fi
cristy6d670312013-03-22 23:23:01 +000031586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31587$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31588if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031589 passed=`expr $passed + 1`
31590else
31591 failed=`expr $failed + 1`
31592fi
31593
31594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31595$as_echo_n "checking if WEBP package is complete... " >&6; }
31596 if test $passed -gt 0; then
31597 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31599$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031600 have_webp='no (failed tests)'
31601 else
31602 WEBP_LIBS='-lwebp'
31603 LIBS="$WEBP_LIBS $LIBS"
31604
31605$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31606
cristyad38abe2012-12-23 23:03:21 +000031607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31608$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031609 have_webp='yes'
31610 fi
31611 else
cristyad38abe2012-12-23 23:03:21 +000031612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31613$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031614 fi
31615fi
31616 if test "$have_webp" = 'yes'; then
31617 WEBP_DELEGATE_TRUE=
31618 WEBP_DELEGATE_FALSE='#'
31619else
31620 WEBP_DELEGATE_TRUE='#'
31621 WEBP_DELEGATE_FALSE=
31622fi
31623
31624
31625
31626
31627#
cristy3ed852e2009-09-05 21:47:34 +000031628# Set Windows font directory.
31629#
31630
31631# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031632if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031633 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31634else
31635 with_windows_font_dir=''
31636fi
31637
31638if test "$with_windows_font_dir" != '' ; then
31639 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31640fi
31641
31642
31643#
31644# Check for WMF delegate library.
31645#
31646
31647# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031648if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031649 withval=$with_wmf; with_wmf=$withval
31650else
cristyfc3d0222012-02-07 15:05:57 +000031651 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031652fi
31653
31654
31655if test "$with_wmf" != 'yes'; then
31656 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31657fi
31658
31659have_wmf='no'
31660WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031661WMF_LIBS_DEPS=''
31662OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031663if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31665$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031667$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31669$as_echo "" >&6; }
31670 have_libwmf='no'
31671 have_libwmflite='no'
31672 have_libwmf_ipa_h='no'
31673
31674 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31675"
31676if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31677 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031678fi
31679
31680
cristy03f7cf92011-12-15 01:40:41 +000031681 if test "$have_libwmf_ipa_h" = 'yes'; then
31682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31683$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31684if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031685 $as_echo_n "(cached) " >&6
31686else
31687 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031688LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031690/* end confdefs.h. */
31691
31692/* Override any GCC internal prototype to avoid an error.
31693 Use char because int might match the return type of a GCC
31694 builtin and then its argument prototype would still apply. */
31695#ifdef __cplusplus
31696extern "C"
31697#endif
cristy03f7cf92011-12-15 01:40:41 +000031698char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031699int
31700main ()
31701{
cristy03f7cf92011-12-15 01:40:41 +000031702return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031703 ;
31704 return 0;
31705}
31706_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031707if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031708 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031709else
cristy03f7cf92011-12-15 01:40:41 +000031710 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031711fi
cristy8b350f62009-11-15 23:12:43 +000031712rm -f core conftest.err conftest.$ac_objext \
31713 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031714LIBS=$ac_check_lib_save_LIBS
31715fi
cristy03f7cf92011-12-15 01:40:41 +000031716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31717$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31718if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31719 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031720fi
31721
cristy03f7cf92011-12-15 01:40:41 +000031722 if test "$have_libwmflite" = 'yes'; then
31723
31724$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31725
31726 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031727 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031728 have_wmf='yes'
31729 else
31730 WMF_LIBS_DEPS=''
31731 WMF_CONFIG_LIBS=`libwmf-config --libs`
31732 for lib in xml2 expat freetype jpeg png z; do
31733 testlib="-l${lib}"
31734 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31735 done
31736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31737$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31738if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31739 $as_echo_n "(cached) " >&6
31740else
31741 ac_check_lib_save_LIBS=$LIBS
31742LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31744/* 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 wmf_api_create ();
31753int
31754main ()
31755{
31756return wmf_api_create ();
31757 ;
31758 return 0;
31759}
31760_ACEOF
31761if ac_fn_c_try_link "$LINENO"; then :
31762 ac_cv_lib_wmf_wmf_api_create=yes
31763else
31764 ac_cv_lib_wmf_wmf_api_create=no
31765fi
31766rm -f core conftest.err conftest.$ac_objext \
31767 conftest$ac_exeext conftest.$ac_ext
31768LIBS=$ac_check_lib_save_LIBS
31769fi
31770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31771$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31772if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31773 have_libwmf='yes'
31774fi
31775
31776 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031777
cristy8b350f62009-11-15 23:12:43 +000031778$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031779
cristy03f7cf92011-12-15 01:40:41 +000031780 WMF_LIBS='-lwmf'
31781 LIBS="$WMF_LIBS $LIBS"
31782 have_wmf='yes'
31783 else
31784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31785$as_echo "no -- some components failed test" >&6; }
31786 have_wmf='no (failed tests)'
31787 have_wmflite='no (failed tests)'
31788 LIBS="$OLIBS"
31789 WMF_LIBS=''
31790 fi
glennrp33e524b2011-08-24 17:41:57 +000031791 fi
cristy03f7cf92011-12-15 01:40:41 +000031792 fi
31793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31794$as_echo_n "checking if WMF package is complete... " >&6; }
31795 if test "$have_wmf" = 'yes'; then
31796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31797$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031798 else
cristy03f7cf92011-12-15 01:40:41 +000031799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31800$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031801 fi
cristy3ed852e2009-09-05 21:47:34 +000031802fi
cristy73bd4a52010-10-05 11:24:23 +000031803 if test "$have_wmf" = 'yes'; then
31804 WMF_DELEGATE_TRUE=
31805 WMF_DELEGATE_FALSE='#'
31806else
31807 WMF_DELEGATE_TRUE='#'
31808 WMF_DELEGATE_FALSE=
31809fi
31810
cristy3ed852e2009-09-05 21:47:34 +000031811
31812
31813
cristy81beccd2011-10-03 18:17:24 +000031814
31815
cristy3ed852e2009-09-05 21:47:34 +000031816#
31817# Check for XML delegate library.
31818#
31819
31820# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031821if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031822 withval=$with_xml; with_xml=$withval
31823else
cristyfc3d0222012-02-07 15:05:57 +000031824 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031825fi
31826
31827
cristy81beccd2011-10-03 18:17:24 +000031828if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031829 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31830fi
31831
cristy81beccd2011-10-03 18:17:24 +000031832have_xml='no'
31833XML_LIBS=''
31834if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31836$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31838$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31840$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031841 PERSIST_LDFLAGS=$LDFLAGS
31842 PERSIST_CPPFLAGS=$CPPFLAGS
31843 xml2_config=''
31844 # Extract the first word of "xml2-config", so it can be a program name with args.
31845set dummy xml2-config; ac_word=$2
31846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31847$as_echo_n "checking for $ac_word... " >&6; }
31848if ${ac_cv_path_xml2_config+:} false; then :
31849 $as_echo_n "(cached) " >&6
31850else
31851 case $xml2_config in
31852 [\\/]* | ?:[\\/]*)
31853 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31854 ;;
31855 *)
31856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31857for as_dir in $PATH
31858do
31859 IFS=$as_save_IFS
31860 test -z "$as_dir" && as_dir=.
31861 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000031863 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31865 break 2
31866 fi
31867done
31868 done
31869IFS=$as_save_IFS
31870
31871 ;;
31872esac
31873fi
31874xml2_config=$ac_cv_path_xml2_config
31875if test -n "$xml2_config"; then
31876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31877$as_echo "$xml2_config" >&6; }
31878else
31879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31880$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031881fi
31882
cristy81beccd2011-10-03 18:17:24 +000031883 if test -n "$xml2_config"; then
31884 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31885 # the shared library installed under /usr/lib, whereas the package
31886 # installs itself under $prefix/libxml and $prefix/lib.
31887 xml2_prefix=`xml2-config --prefix`
31888 if test -d "${xml2_prefix}/include/libxml2"; then
31889 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31890 fi
31891 if test "${xml2_prefix}" != '/usr'; then
31892 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31893 fi
31894 fi
31895 failed=0
31896 passed=0
31897 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31898if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31899 passed=`expr $passed + 1`
31900else
31901 failed=`expr $failed + 1`
31902fi
31903
31904
31905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31906$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31907if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31908 $as_echo_n "(cached) " >&6
31909else
31910 ac_check_lib_save_LIBS=$LIBS
31911LIBS="-lxml2 $LIBS"
31912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31913/* end confdefs.h. */
31914
31915/* Override any GCC internal prototype to avoid an error.
31916 Use char because int might match the return type of a GCC
31917 builtin and then its argument prototype would still apply. */
31918#ifdef __cplusplus
31919extern "C"
31920#endif
31921char xmlSAXVersion ();
31922int
31923main ()
31924{
31925return xmlSAXVersion ();
31926 ;
31927 return 0;
31928}
31929_ACEOF
31930if ac_fn_c_try_link "$LINENO"; then :
31931 ac_cv_lib_xml2_xmlSAXVersion=yes
31932else
31933 ac_cv_lib_xml2_xmlSAXVersion=no
31934fi
31935rm -f core conftest.err conftest.$ac_objext \
31936 conftest$ac_exeext conftest.$ac_ext
31937LIBS=$ac_check_lib_save_LIBS
31938fi
31939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31940$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31941if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31942 passed=`expr $passed + 1`
31943else
31944 failed=`expr $failed + 1`
31945fi
31946
31947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31948$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31949if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31950 $as_echo_n "(cached) " >&6
31951else
31952 ac_check_lib_save_LIBS=$LIBS
31953LIBS="-lxml2 $LIBS"
31954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31955/* end confdefs.h. */
31956
31957/* Override any GCC internal prototype to avoid an error.
31958 Use char because int might match the return type of a GCC
31959 builtin and then its argument prototype would still apply. */
31960#ifdef __cplusplus
31961extern "C"
31962#endif
31963char xmlParseChunk ();
31964int
31965main ()
31966{
31967return xmlParseChunk ();
31968 ;
31969 return 0;
31970}
31971_ACEOF
31972if ac_fn_c_try_link "$LINENO"; then :
31973 ac_cv_lib_xml2_xmlParseChunk=yes
31974else
31975 ac_cv_lib_xml2_xmlParseChunk=no
31976fi
31977rm -f core conftest.err conftest.$ac_objext \
31978 conftest$ac_exeext conftest.$ac_ext
31979LIBS=$ac_check_lib_save_LIBS
31980fi
31981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31982$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31983if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31984 passed=`expr $passed + 1`
31985else
31986 failed=`expr $failed + 1`
31987fi
31988
31989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31990$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31991if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31992 $as_echo_n "(cached) " >&6
31993else
31994 ac_check_lib_save_LIBS=$LIBS
31995LIBS="-lxml2 $LIBS"
31996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31997/* end confdefs.h. */
31998
31999/* Override any GCC internal prototype to avoid an error.
32000 Use char because int might match the return type of a GCC
32001 builtin and then its argument prototype would still apply. */
32002#ifdef __cplusplus
32003extern "C"
32004#endif
32005char xmlCreatePushParserCtxt ();
32006int
32007main ()
32008{
32009return xmlCreatePushParserCtxt ();
32010 ;
32011 return 0;
32012}
32013_ACEOF
32014if ac_fn_c_try_link "$LINENO"; then :
32015 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32016else
32017 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32018fi
32019rm -f core conftest.err conftest.$ac_objext \
32020 conftest$ac_exeext conftest.$ac_ext
32021LIBS=$ac_check_lib_save_LIBS
32022fi
32023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32024$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32025if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32026 passed=`expr $passed + 1`
32027else
32028 failed=`expr $failed + 1`
32029fi
32030
32031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32032$as_echo_n "checking if XML package is complete... " >&6; }
32033 if test $passed -gt 0; then
32034 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32036$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032037 have_xml='no (failed tests)'
32038 LDFLAGS="$PERSIST_LDFLAGS"
32039 CPPFLAGS="$PERSIST_CPPFLAGS"
32040 else
32041 XML_LIBS='-lxml2'
32042 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032043
cristy8b350f62009-11-15 23:12:43 +000032044$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032045
cristyad38abe2012-12-23 23:03:21 +000032046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32047$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032048 have_xml='yes'
32049 fi
32050 else
cristyad38abe2012-12-23 23:03:21 +000032051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32052$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032053 fi
32054fi
cristy73bd4a52010-10-05 11:24:23 +000032055 if test "$have_xml" = 'yes'; then
32056 XML_DELEGATE_TRUE=
32057 XML_DELEGATE_FALSE='#'
32058else
32059 XML_DELEGATE_TRUE='#'
32060 XML_DELEGATE_FALSE=
32061fi
32062
cristy3ed852e2009-09-05 21:47:34 +000032063
32064
32065
32066# Substitute compiler name to build/link PerlMagick
32067#
32068
32069
32070#
32071# Configure install Paths
32072#
cristy7def36a2011-10-28 19:04:41 +000032073
cristy2a11bef2011-10-28 18:33:11 +000032074# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032075INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032076INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32077DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032078case "${build_os}" in
32079 mingw* )
32080 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32081 ;;
32082esac
32083
32084cat >>confdefs.h <<_ACEOF
32085#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32086_ACEOF
32087
32088
cristy3ed852e2009-09-05 21:47:34 +000032089
cristye52f12f2012-12-31 15:32:36 +000032090# Path to ImageMagick header files (arch part)
32091INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32092DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32093case "${build_os}" in
32094 mingw* )
32095 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32096 ;;
32097esac
32098
32099cat >>confdefs.h <<_ACEOF
32100#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32101_ACEOF
32102
32103
32104
cristy3ed852e2009-09-05 21:47:34 +000032105# Subdirectory under lib to place ImageMagick lib files
32106LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32107
32108cat >>confdefs.h <<_ACEOF
32109#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32110_ACEOF
32111
32112
32113# Path to ImageMagick bin directory
32114EXECUTABLE_PATH="${BIN_DIR}"
32115DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32116case "${build_os}" in
32117 mingw* )
32118 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32119 ;;
32120esac
32121
32122cat >>confdefs.h <<_ACEOF
32123#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32124_ACEOF
32125
32126
32127
32128# Path to ImageMagick lib
32129LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32130DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32131case "${build_os}" in
32132 mingw* )
32133 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32134 ;;
32135esac
32136
32137cat >>confdefs.h <<_ACEOF
32138#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32139_ACEOF
32140
32141
32142
cristy3ed852e2009-09-05 21:47:34 +000032143#
cristy8d0ff762013-03-10 20:33:28 +000032144# path to local binaries
32145if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32146 LIB_BIN_BASEDIRNAME="bin"
32147fi
32148
32149cat >>confdefs.h <<_ACEOF
32150#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32151_ACEOF
32152
32153
32154
32155if test "x$LIB_BIN_DIR" = "x"; then
32156 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32157fi
32158
32159
32160LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32161
32162LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32163
32164
32165#
cristy01ff9f32012-12-01 18:15:29 +000032166# path to modules lib
32167if test "x$MODULES_BASEDIRNAME" = "x"; then
32168 MODULES_BASEDIRNAME="modules"
32169fi
cristy3ed852e2009-09-05 21:47:34 +000032170
32171cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032172#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032173_ACEOF
32174
cristy01ff9f32012-12-01 18:15:29 +000032175
32176
32177if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032178 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32179else
cristy3ed852e2009-09-05 21:47:34 +000032180
32181cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032182#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032183_ACEOF
32184
cristycf4a3c22012-12-02 21:47:25 +000032185fi
cristy01ff9f32012-12-01 18:15:29 +000032186
32187
cristy371d4812012-12-01 19:48:10 +000032188MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032189
32190MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32191
32192
32193#
32194# path to coders lib
32195if test "x$CODER_DIRNAME" = "x"; then
32196 CODER_DIRNAME="coders"
32197fi
32198
32199cat >>confdefs.h <<_ACEOF
32200#define CODER_DIRNAME "$CODER_DIRNAME"
32201_ACEOF
32202
32203
32204
cristy371d4812012-12-01 19:48:10 +000032205CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032206CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032207
32208
32209#
32210# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032211#
32212# path to coders lib
32213if test "x$FILTER_DIRNAME" = "x"; then
32214 FILTER_DIRNAME="filters"
32215fi
cristy3ed852e2009-09-05 21:47:34 +000032216
32217cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032218#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032219_ACEOF
32220
cristy3ed852e2009-09-05 21:47:34 +000032221
cristy3ed852e2009-09-05 21:47:34 +000032222
cristy371d4812012-12-01 19:48:10 +000032223FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032224FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032225
32226
32227#
32228# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032229DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032230DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32231DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032232case "${build_os}" in
32233 mingw* )
32234 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32235 ;;
32236esac
32237
32238cat >>confdefs.h <<_ACEOF
32239#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32240_ACEOF
32241
32242
32243
cristy2a11bef2011-10-28 18:33:11 +000032244# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032245CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032246
32247cat >>confdefs.h <<_ACEOF
32248#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32249_ACEOF
32250
cristy7def36a2011-10-28 19:04:41 +000032251CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032252DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32253case "${build_os}" in
32254 mingw* )
32255 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32256 ;;
32257esac
32258
32259cat >>confdefs.h <<_ACEOF
32260#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32261_ACEOF
32262
32263
32264
cristy2a11bef2011-10-28 18:33:11 +000032265# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032266SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032267
32268cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032269#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032270_ACEOF
32271
cristy670aa3c2011-11-03 00:54:00 +000032272SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032273DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032274case "${build_os}" in
32275 mingw* )
cristy4f820712011-04-01 12:35:43 +000032276 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032277 ;;
32278esac
32279
32280cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032281#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032282_ACEOF
32283
32284
32285
cristy54378032012-12-04 15:52:20 +000032286#
32287# Subdirectory to place architecture-dependent configuration files.
32288if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32289 SHAREARCH_BASEDIRNAME="config"
32290fi
cristy670aa3c2011-11-03 00:54:00 +000032291
32292cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032293#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032294_ACEOF
32295
cristy54378032012-12-04 15:52:20 +000032296
32297
32298if test "x$SHAREARCH_DIRNAME" = "x"; then
32299 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32300else
cristy670aa3c2011-11-03 00:54:00 +000032301
32302cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032303#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032304_ACEOF
32305
cristy54378032012-12-04 15:52:20 +000032306fi
32307
32308
32309SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32310
32311SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032312
32313
cristy3ed852e2009-09-05 21:47:34 +000032314#
32315# program_transform_name is formed for use in a Makefile, so create a
32316# modified version for use in a shell script.
32317configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32318
32319# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32321$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032323$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32325$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032326AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032327BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032328BZIPDelegateDefault='bzip2'
32329BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032330CatDelegateDefault='cat'
32331DNGDecodeDelegateDefault='ufraw-batch'
32332GVCDecodeDelegateDefault='dot'
32333DVIDecodeDelegateDefault='dvips'
32334EchoDelegateDefault='echo'
32335EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032336ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32337DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32338MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32339GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032340HPGLDecodeDelegateDefault='hp2xx'
32341HTMLDecodeDelegateDefault='html2ps'
32342ILBMDecodeDelegateDefault='ilbmtoppm'
32343ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032344JXRDecodeDelegateDefault='JxrDecApp'
32345JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032346LPDelegateDefault='lp'
32347LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032348LaunchDelegateDefault='gimp'
32349MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032350MPEGDecodeDelegateDefault='avconv'
32351MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032352MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032353MVDelegateDefault='mv'
32354PCLDelegateDefault='pcl6'
32355PGPDecodeDelegateDefault='pgpv'
32356POVDelegateDefault='povray'
32357if test "$native_win32_build" = 'yes'; then
32358 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032359elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032360 PSDelegateDefault='gsc'
32361else
32362 PSDelegateDefault='gs'
32363fi
32364RLEEncodeDelegateDefault='rawtorle'
32365RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032366RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032367SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032368SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032369TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032370UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032371WebPDecodeDelegateDefault='dwebp'
32372WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032373WMFDecodeDelegateDefault='wmf2eps'
32374WWWDecodeDelegateDefault='curl'
32375XPSDelegateDefault='gxps'
32376ZipDelegateDefault='gzip'
32377
32378# Search for delegates
32379# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32380set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032382$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032383if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032384 $as_echo_n "(cached) " >&6
32385else
32386 case $AutotraceDecodeDelegate in
32387 [\\/]* | ?:[\\/]*)
32388 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32389 ;;
32390 *)
32391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32392for as_dir in $PATH
32393do
32394 IFS=$as_save_IFS
32395 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032396 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032398 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032400 break 2
32401 fi
32402done
cristy8b350f62009-11-15 23:12:43 +000032403 done
cristy3ed852e2009-09-05 21:47:34 +000032404IFS=$as_save_IFS
32405
32406 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32407 ;;
32408esac
32409fi
32410AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32411if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032413$as_echo "$AutotraceDecodeDelegate" >&6; }
32414else
cristy8b350f62009-11-15 23:12:43 +000032415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032416$as_echo "no" >&6; }
32417fi
32418
32419
cristy3ed852e2009-09-05 21:47:34 +000032420# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32421set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032423$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032424if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032425 $as_echo_n "(cached) " >&6
32426else
32427 case $BlenderDecodeDelegate in
32428 [\\/]* | ?:[\\/]*)
32429 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32430 ;;
32431 *)
32432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32433for as_dir in $PATH
32434do
32435 IFS=$as_save_IFS
32436 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032437 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032439 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032441 break 2
32442 fi
32443done
cristy8b350f62009-11-15 23:12:43 +000032444 done
cristy3ed852e2009-09-05 21:47:34 +000032445IFS=$as_save_IFS
32446
32447 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32448 ;;
32449esac
32450fi
32451BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32452if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032454$as_echo "$BlenderDecodeDelegate" >&6; }
32455else
cristy8b350f62009-11-15 23:12:43 +000032456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032457$as_echo "no" >&6; }
32458fi
32459
32460
32461# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32462set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032464$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032465if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032466 $as_echo_n "(cached) " >&6
32467else
32468 case $BZIPDelegate in
32469 [\\/]* | ?:[\\/]*)
32470 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32471 ;;
32472 *)
32473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32474for as_dir in $PATH
32475do
32476 IFS=$as_save_IFS
32477 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032478 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032480 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032482 break 2
32483 fi
32484done
cristy8b350f62009-11-15 23:12:43 +000032485 done
cristy3ed852e2009-09-05 21:47:34 +000032486IFS=$as_save_IFS
32487
32488 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32489 ;;
32490esac
32491fi
32492BZIPDelegate=$ac_cv_path_BZIPDelegate
32493if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032495$as_echo "$BZIPDelegate" >&6; }
32496else
cristy8b350f62009-11-15 23:12:43 +000032497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032498$as_echo "no" >&6; }
32499fi
32500
32501
cristyc59f0e72012-08-27 12:59:33 +000032502for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32503do
32504 # Extract the first word of "$ac_prog", so it can be a program name with args.
32505set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032507$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032508if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032509 $as_echo_n "(cached) " >&6
32510else
32511 case $BrowseDelegate in
32512 [\\/]* | ?:[\\/]*)
32513 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32514 ;;
32515 *)
32516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32517for as_dir in $PATH
32518do
32519 IFS=$as_save_IFS
32520 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032521 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032523 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032525 break 2
32526 fi
32527done
cristy8b350f62009-11-15 23:12:43 +000032528 done
cristy3ed852e2009-09-05 21:47:34 +000032529IFS=$as_save_IFS
32530
cristy3ed852e2009-09-05 21:47:34 +000032531 ;;
32532esac
32533fi
32534BrowseDelegate=$ac_cv_path_BrowseDelegate
32535if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032537$as_echo "$BrowseDelegate" >&6; }
32538else
cristy8b350f62009-11-15 23:12:43 +000032539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032540$as_echo "no" >&6; }
32541fi
32542
32543
cristyc59f0e72012-08-27 12:59:33 +000032544 test -n "$BrowseDelegate" && break
32545done
32546test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32547
cristy3ed852e2009-09-05 21:47:34 +000032548# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32549set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032551$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032552if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032553 $as_echo_n "(cached) " >&6
32554else
32555 case $CatDelegate in
32556 [\\/]* | ?:[\\/]*)
32557 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32558 ;;
32559 *)
32560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32561for as_dir in $PATH
32562do
32563 IFS=$as_save_IFS
32564 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032565 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032567 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032569 break 2
32570 fi
32571done
cristy8b350f62009-11-15 23:12:43 +000032572 done
cristy3ed852e2009-09-05 21:47:34 +000032573IFS=$as_save_IFS
32574
32575 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32576 ;;
32577esac
32578fi
32579CatDelegate=$ac_cv_path_CatDelegate
32580if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032582$as_echo "$CatDelegate" >&6; }
32583else
cristy8b350f62009-11-15 23:12:43 +000032584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032585$as_echo "no" >&6; }
32586fi
32587
32588
32589# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32590set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032592$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032593if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032594 $as_echo_n "(cached) " >&6
32595else
32596 case $DNGDecodeDelegate in
32597 [\\/]* | ?:[\\/]*)
32598 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32599 ;;
32600 *)
32601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32602for as_dir in $PATH
32603do
32604 IFS=$as_save_IFS
32605 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032606 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032608 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032610 break 2
32611 fi
32612done
cristy8b350f62009-11-15 23:12:43 +000032613 done
cristy3ed852e2009-09-05 21:47:34 +000032614IFS=$as_save_IFS
32615
32616 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32617 ;;
32618esac
32619fi
32620DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32621if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032623$as_echo "$DNGDecodeDelegate" >&6; }
32624else
cristy8b350f62009-11-15 23:12:43 +000032625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032626$as_echo "no" >&6; }
32627fi
32628
32629
32630# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32631set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032633$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032634if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032635 $as_echo_n "(cached) " >&6
32636else
32637 case $GVCDecodeDelegate in
32638 [\\/]* | ?:[\\/]*)
32639 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32640 ;;
32641 *)
32642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32643for as_dir in $PATH
32644do
32645 IFS=$as_save_IFS
32646 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032647 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032649 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032651 break 2
32652 fi
32653done
cristy8b350f62009-11-15 23:12:43 +000032654 done
cristy3ed852e2009-09-05 21:47:34 +000032655IFS=$as_save_IFS
32656
32657 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32658 ;;
32659esac
32660fi
32661GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32662if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032664$as_echo "$GVCDecodeDelegate" >&6; }
32665else
cristy8b350f62009-11-15 23:12:43 +000032666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032667$as_echo "no" >&6; }
32668fi
32669
32670
32671# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32672set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032674$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032675if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032676 $as_echo_n "(cached) " >&6
32677else
32678 case $DVIDecodeDelegate in
32679 [\\/]* | ?:[\\/]*)
32680 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32681 ;;
32682 *)
32683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32684for as_dir in $PATH
32685do
32686 IFS=$as_save_IFS
32687 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032688 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032690 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032692 break 2
32693 fi
32694done
cristy8b350f62009-11-15 23:12:43 +000032695 done
cristy3ed852e2009-09-05 21:47:34 +000032696IFS=$as_save_IFS
32697
32698 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32699 ;;
32700esac
32701fi
32702DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32703if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032705$as_echo "$DVIDecodeDelegate" >&6; }
32706else
cristy8b350f62009-11-15 23:12:43 +000032707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032708$as_echo "no" >&6; }
32709fi
32710
32711
32712# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32713set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032715$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032716if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032717 $as_echo_n "(cached) " >&6
32718else
32719 case $EchoDelegate in
32720 [\\/]* | ?:[\\/]*)
32721 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32722 ;;
32723 *)
32724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32725for as_dir in $PATH
32726do
32727 IFS=$as_save_IFS
32728 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032729 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032731 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032733 break 2
32734 fi
32735done
cristy8b350f62009-11-15 23:12:43 +000032736 done
cristy3ed852e2009-09-05 21:47:34 +000032737IFS=$as_save_IFS
32738
32739 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32740 ;;
32741esac
32742fi
32743EchoDelegate=$ac_cv_path_EchoDelegate
32744if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032746$as_echo "$EchoDelegate" >&6; }
32747else
cristy8b350f62009-11-15 23:12:43 +000032748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032749$as_echo "no" >&6; }
32750fi
32751
32752
32753# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32754set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032756$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032757if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032758 $as_echo_n "(cached) " >&6
32759else
32760 case $EditorDelegate in
32761 [\\/]* | ?:[\\/]*)
32762 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32763 ;;
32764 *)
32765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32766for as_dir in $PATH
32767do
32768 IFS=$as_save_IFS
32769 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032770 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032772 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032774 break 2
32775 fi
32776done
cristy8b350f62009-11-15 23:12:43 +000032777 done
cristy3ed852e2009-09-05 21:47:34 +000032778IFS=$as_save_IFS
32779
32780 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32781 ;;
32782esac
32783fi
32784EditorDelegate=$ac_cv_path_EditorDelegate
32785if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032787$as_echo "$EditorDelegate" >&6; }
32788else
cristy8b350f62009-11-15 23:12:43 +000032789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032790$as_echo "no" >&6; }
32791fi
32792
32793
cristy3ed852e2009-09-05 21:47:34 +000032794# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32795set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032797$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032798if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032799 $as_echo_n "(cached) " >&6
32800else
32801 case $ConvertDelegate in
32802 [\\/]* | ?:[\\/]*)
32803 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32804 ;;
32805 *)
32806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32807for as_dir in $PATH
32808do
32809 IFS=$as_save_IFS
32810 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032811 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032813 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032815 break 2
32816 fi
32817done
cristy8b350f62009-11-15 23:12:43 +000032818 done
cristy3ed852e2009-09-05 21:47:34 +000032819IFS=$as_save_IFS
32820
32821 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32822 ;;
32823esac
32824fi
32825ConvertDelegate=$ac_cv_path_ConvertDelegate
32826if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032828$as_echo "$ConvertDelegate" >&6; }
32829else
cristy8b350f62009-11-15 23:12:43 +000032830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032831$as_echo "no" >&6; }
32832fi
32833
32834
32835# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32836set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032838$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032839if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032840 $as_echo_n "(cached) " >&6
32841else
32842 case $DisplayDelegate in
32843 [\\/]* | ?:[\\/]*)
32844 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32845 ;;
32846 *)
32847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32848for as_dir in $PATH
32849do
32850 IFS=$as_save_IFS
32851 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032852 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032854 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032856 break 2
32857 fi
32858done
cristy8b350f62009-11-15 23:12:43 +000032859 done
cristy3ed852e2009-09-05 21:47:34 +000032860IFS=$as_save_IFS
32861
32862 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32863 ;;
32864esac
32865fi
32866DisplayDelegate=$ac_cv_path_DisplayDelegate
32867if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032869$as_echo "$DisplayDelegate" >&6; }
32870else
cristy8b350f62009-11-15 23:12:43 +000032871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032872$as_echo "no" >&6; }
32873fi
32874
32875
32876# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32877set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032879$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032880if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032881 $as_echo_n "(cached) " >&6
32882else
32883 case $MogrifyDelegate in
32884 [\\/]* | ?:[\\/]*)
32885 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32886 ;;
32887 *)
32888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32889for as_dir in $PATH
32890do
32891 IFS=$as_save_IFS
32892 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032893 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032895 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032897 break 2
32898 fi
32899done
cristy8b350f62009-11-15 23:12:43 +000032900 done
cristy3ed852e2009-09-05 21:47:34 +000032901IFS=$as_save_IFS
32902
32903 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32904 ;;
32905esac
32906fi
32907MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32908if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032910$as_echo "$MogrifyDelegate" >&6; }
32911else
cristy8b350f62009-11-15 23:12:43 +000032912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032913$as_echo "no" >&6; }
32914fi
32915
32916
32917# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32918set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032920$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032921if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032922 $as_echo_n "(cached) " >&6
32923else
32924 case $GnuplotDecodeDelegate in
32925 [\\/]* | ?:[\\/]*)
32926 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32927 ;;
32928 *)
32929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32930for as_dir in $PATH
32931do
32932 IFS=$as_save_IFS
32933 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032934 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032936 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032938 break 2
32939 fi
32940done
cristy8b350f62009-11-15 23:12:43 +000032941 done
cristy3ed852e2009-09-05 21:47:34 +000032942IFS=$as_save_IFS
32943
32944 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32945 ;;
32946esac
32947fi
32948GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32949if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032951$as_echo "$GnuplotDecodeDelegate" >&6; }
32952else
cristy8b350f62009-11-15 23:12:43 +000032953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032954$as_echo "no" >&6; }
32955fi
32956
32957
cristy3ed852e2009-09-05 21:47:34 +000032958# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32959set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032961$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032962if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032963 $as_echo_n "(cached) " >&6
32964else
32965 case $HPGLDecodeDelegate in
32966 [\\/]* | ?:[\\/]*)
32967 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32968 ;;
32969 *)
32970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32971for as_dir in $PATH
32972do
32973 IFS=$as_save_IFS
32974 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032975 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032977 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032979 break 2
32980 fi
32981done
cristy8b350f62009-11-15 23:12:43 +000032982 done
cristy3ed852e2009-09-05 21:47:34 +000032983IFS=$as_save_IFS
32984
32985 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32986 ;;
32987esac
32988fi
32989HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32990if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032992$as_echo "$HPGLDecodeDelegate" >&6; }
32993else
cristy8b350f62009-11-15 23:12:43 +000032994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032995$as_echo "no" >&6; }
32996fi
32997
32998
32999# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33000set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033002$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033003if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033004 $as_echo_n "(cached) " >&6
33005else
33006 case $HTMLDecodeDelegate in
33007 [\\/]* | ?:[\\/]*)
33008 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33009 ;;
33010 *)
33011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33012for as_dir in $PATH
33013do
33014 IFS=$as_save_IFS
33015 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033016 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033018 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033020 break 2
33021 fi
33022done
cristy8b350f62009-11-15 23:12:43 +000033023 done
cristy3ed852e2009-09-05 21:47:34 +000033024IFS=$as_save_IFS
33025
33026 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33027 ;;
33028esac
33029fi
33030HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33031if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033033$as_echo "$HTMLDecodeDelegate" >&6; }
33034else
cristy8b350f62009-11-15 23:12:43 +000033035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033036$as_echo "no" >&6; }
33037fi
33038
33039
33040# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33041set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033043$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033044if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033045 $as_echo_n "(cached) " >&6
33046else
33047 case $ILBMDecodeDelegate in
33048 [\\/]* | ?:[\\/]*)
33049 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33050 ;;
33051 *)
33052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33053for as_dir in $PATH
33054do
33055 IFS=$as_save_IFS
33056 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033057 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033059 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033061 break 2
33062 fi
33063done
cristy8b350f62009-11-15 23:12:43 +000033064 done
cristy3ed852e2009-09-05 21:47:34 +000033065IFS=$as_save_IFS
33066
33067 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33068 ;;
33069esac
33070fi
33071ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33072if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033074$as_echo "$ILBMDecodeDelegate" >&6; }
33075else
cristy8b350f62009-11-15 23:12:43 +000033076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033077$as_echo "no" >&6; }
33078fi
33079
33080
33081# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33082set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033084$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033085if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033086 $as_echo_n "(cached) " >&6
33087else
33088 case $ILBMEncodeDelegate in
33089 [\\/]* | ?:[\\/]*)
33090 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33091 ;;
33092 *)
33093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33094for as_dir in $PATH
33095do
33096 IFS=$as_save_IFS
33097 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033098 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033100 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033102 break 2
33103 fi
33104done
cristy8b350f62009-11-15 23:12:43 +000033105 done
cristy3ed852e2009-09-05 21:47:34 +000033106IFS=$as_save_IFS
33107
33108 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33109 ;;
33110esac
33111fi
33112ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33113if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033115$as_echo "$ILBMEncodeDelegate" >&6; }
33116else
cristy8b350f62009-11-15 23:12:43 +000033117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033118$as_echo "no" >&6; }
33119fi
33120
33121
cristy71f53d52013-04-27 13:33:59 +000033122# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33123set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33125$as_echo_n "checking for $ac_word... " >&6; }
33126if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33127 $as_echo_n "(cached) " >&6
33128else
33129 case $JXRDecodeDelegate in
33130 [\\/]* | ?:[\\/]*)
33131 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33132 ;;
33133 *)
33134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33135for as_dir in $PATH
33136do
33137 IFS=$as_save_IFS
33138 test -z "$as_dir" && as_dir=.
33139 for ac_exec_ext in '' $ac_executable_extensions; do
33140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33141 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33143 break 2
33144 fi
33145done
33146 done
33147IFS=$as_save_IFS
33148
33149 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33150 ;;
33151esac
33152fi
33153JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33154if test -n "$JXRDecodeDelegate"; then
33155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33156$as_echo "$JXRDecodeDelegate" >&6; }
33157else
33158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33159$as_echo "no" >&6; }
33160fi
33161
33162
33163# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33164set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33166$as_echo_n "checking for $ac_word... " >&6; }
33167if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33168 $as_echo_n "(cached) " >&6
33169else
33170 case $JXREncodeDelegate in
33171 [\\/]* | ?:[\\/]*)
33172 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33173 ;;
33174 *)
33175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33176for as_dir in $PATH
33177do
33178 IFS=$as_save_IFS
33179 test -z "$as_dir" && as_dir=.
33180 for ac_exec_ext in '' $ac_executable_extensions; do
33181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33182 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33184 break 2
33185 fi
33186done
33187 done
33188IFS=$as_save_IFS
33189
33190 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33191 ;;
33192esac
33193fi
33194JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33195if test -n "$JXREncodeDelegate"; then
33196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33197$as_echo "$JXREncodeDelegate" >&6; }
33198else
33199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33200$as_echo "no" >&6; }
33201fi
33202
33203
cristy3ed852e2009-09-05 21:47:34 +000033204# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33205set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033207$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033208if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033209 $as_echo_n "(cached) " >&6
33210else
33211 case $LPDelegate in
33212 [\\/]* | ?:[\\/]*)
33213 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33214 ;;
33215 *)
33216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33217for as_dir in $PATH
33218do
33219 IFS=$as_save_IFS
33220 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033221 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033223 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033225 break 2
33226 fi
33227done
cristy8b350f62009-11-15 23:12:43 +000033228 done
cristy3ed852e2009-09-05 21:47:34 +000033229IFS=$as_save_IFS
33230
33231 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33232 ;;
33233esac
33234fi
33235LPDelegate=$ac_cv_path_LPDelegate
33236if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033238$as_echo "$LPDelegate" >&6; }
33239else
cristy8b350f62009-11-15 23:12:43 +000033240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033241$as_echo "no" >&6; }
33242fi
33243
33244
33245# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33246set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033248$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033249if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033250 $as_echo_n "(cached) " >&6
33251else
33252 case $LPRDelegate in
33253 [\\/]* | ?:[\\/]*)
33254 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33255 ;;
33256 *)
33257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33258for as_dir in $PATH
33259do
33260 IFS=$as_save_IFS
33261 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033262 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033264 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033266 break 2
33267 fi
33268done
cristy8b350f62009-11-15 23:12:43 +000033269 done
cristy3ed852e2009-09-05 21:47:34 +000033270IFS=$as_save_IFS
33271
33272 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33273 ;;
33274esac
33275fi
33276LPRDelegate=$ac_cv_path_LPRDelegate
33277if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033279$as_echo "$LPRDelegate" >&6; }
33280else
cristy8b350f62009-11-15 23:12:43 +000033281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033282$as_echo "no" >&6; }
33283fi
33284
33285
cristy3ed852e2009-09-05 21:47:34 +000033286# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33287set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033289$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033290if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033291 $as_echo_n "(cached) " >&6
33292else
33293 case $LaunchDelegate in
33294 [\\/]* | ?:[\\/]*)
33295 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33296 ;;
33297 *)
33298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33299for as_dir in $PATH
33300do
33301 IFS=$as_save_IFS
33302 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033303 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033305 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033307 break 2
33308 fi
33309done
cristy8b350f62009-11-15 23:12:43 +000033310 done
cristy3ed852e2009-09-05 21:47:34 +000033311IFS=$as_save_IFS
33312
33313 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33314 ;;
33315esac
33316fi
33317LaunchDelegate=$ac_cv_path_LaunchDelegate
33318if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033320$as_echo "$LaunchDelegate" >&6; }
33321else
cristy8b350f62009-11-15 23:12:43 +000033322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033323$as_echo "no" >&6; }
33324fi
33325
33326
33327# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33328set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033330$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033331if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033332 $as_echo_n "(cached) " >&6
33333else
33334 case $MANDelegate in
33335 [\\/]* | ?:[\\/]*)
33336 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33337 ;;
33338 *)
33339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33340for as_dir in $PATH
33341do
33342 IFS=$as_save_IFS
33343 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033344 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033346 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033348 break 2
33349 fi
33350done
cristy8b350f62009-11-15 23:12:43 +000033351 done
cristy3ed852e2009-09-05 21:47:34 +000033352IFS=$as_save_IFS
33353
33354 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33355 ;;
33356esac
33357fi
33358MANDelegate=$ac_cv_path_MANDelegate
33359if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033361$as_echo "$MANDelegate" >&6; }
33362else
cristy8b350f62009-11-15 23:12:43 +000033363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033364$as_echo "no" >&6; }
33365fi
33366
33367
33368# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33369set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033371$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033372if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033373 $as_echo_n "(cached) " >&6
33374else
33375 case $MPEGDecodeDelegate in
33376 [\\/]* | ?:[\\/]*)
33377 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33378 ;;
33379 *)
33380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33381for as_dir in $PATH
33382do
33383 IFS=$as_save_IFS
33384 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033385 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033387 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033389 break 2
33390 fi
33391done
cristy8b350f62009-11-15 23:12:43 +000033392 done
cristy3ed852e2009-09-05 21:47:34 +000033393IFS=$as_save_IFS
33394
33395 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33396 ;;
33397esac
33398fi
33399MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33400if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033402$as_echo "$MPEGDecodeDelegate" >&6; }
33403else
cristy8b350f62009-11-15 23:12:43 +000033404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033405$as_echo "no" >&6; }
33406fi
33407
33408
cristy81ab5af2013-10-06 18:28:39 +000033409if test "$MPEGDecodeDelegate" == "$MPEGDecodeDelegateDefault" ; then
33410 MPEGDecodeDelegateDefault='ffmpeg'
33411 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33412set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33414$as_echo_n "checking for $ac_word... " >&6; }
33415if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33416 $as_echo_n "(cached) " >&6
33417else
33418 case $MPEGDecodeDelegate in
33419 [\\/]* | ?:[\\/]*)
33420 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33421 ;;
33422 *)
33423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33424for as_dir in $PATH
33425do
33426 IFS=$as_save_IFS
33427 test -z "$as_dir" && as_dir=.
33428 for ac_exec_ext in '' $ac_executable_extensions; do
33429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33430 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33432 break 2
33433 fi
33434done
33435 done
33436IFS=$as_save_IFS
33437
33438 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33439 ;;
33440esac
33441fi
33442MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33443if test -n "$MPEGDecodeDelegate"; then
33444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33445$as_echo "$MPEGDecodeDelegate" >&6; }
33446else
33447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33448$as_echo "no" >&6; }
33449fi
33450
33451
33452fi;
cristy3ed852e2009-09-05 21:47:34 +000033453# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33454set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033457if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033458 $as_echo_n "(cached) " >&6
33459else
33460 case $MPEGEncodeDelegate in
33461 [\\/]* | ?:[\\/]*)
33462 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33463 ;;
33464 *)
33465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33466for as_dir in $PATH
33467do
33468 IFS=$as_save_IFS
33469 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033470 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033472 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033474 break 2
33475 fi
33476done
cristy8b350f62009-11-15 23:12:43 +000033477 done
cristy3ed852e2009-09-05 21:47:34 +000033478IFS=$as_save_IFS
33479
33480 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33481 ;;
33482esac
33483fi
33484MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33485if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033487$as_echo "$MPEGEncodeDelegate" >&6; }
33488else
cristy8b350f62009-11-15 23:12:43 +000033489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033490$as_echo "no" >&6; }
33491fi
33492
33493
cristy81ab5af2013-10-06 18:28:39 +000033494if test "$MPEGEncodeDelegate" == "$MPEGEncodeDelegateDefault" ; then
33495 MPEGEncodeDelegateDefault='ffmpeg'
33496 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33497set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33499$as_echo_n "checking for $ac_word... " >&6; }
33500if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33501 $as_echo_n "(cached) " >&6
33502else
33503 case $MPEGEncodeDelegate in
33504 [\\/]* | ?:[\\/]*)
33505 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33506 ;;
33507 *)
33508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33509for as_dir in $PATH
33510do
33511 IFS=$as_save_IFS
33512 test -z "$as_dir" && as_dir=.
33513 for ac_exec_ext in '' $ac_executable_extensions; do
33514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33515 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33517 break 2
33518 fi
33519done
33520 done
33521IFS=$as_save_IFS
33522
33523 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33524 ;;
33525esac
33526fi
33527MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33528if test -n "$MPEGEncodeDelegate"; then
33529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33530$as_echo "$MPEGEncodeDelegate" >&6; }
33531else
33532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33533$as_echo "no" >&6; }
33534fi
33535
33536
33537fi;
cristy935c86e2010-06-05 23:50:07 +000033538# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33539set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33541$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033542if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033543 $as_echo_n "(cached) " >&6
33544else
33545 case $MrSIDDecodeDelegate in
33546 [\\/]* | ?:[\\/]*)
33547 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33548 ;;
33549 *)
33550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33551for as_dir in $PATH
33552do
33553 IFS=$as_save_IFS
33554 test -z "$as_dir" && as_dir=.
33555 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033557 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33559 break 2
33560 fi
33561done
33562 done
33563IFS=$as_save_IFS
33564
33565 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33566 ;;
33567esac
33568fi
33569MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33570if test -n "$MrSIDDecodeDelegate"; then
33571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33572$as_echo "$MrSIDDecodeDelegate" >&6; }
33573else
33574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33575$as_echo "no" >&6; }
33576fi
33577
33578
cristy3ed852e2009-09-05 21:47:34 +000033579# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33580set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033582$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033583if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033584 $as_echo_n "(cached) " >&6
33585else
33586 case $MVDelegate in
33587 [\\/]* | ?:[\\/]*)
33588 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33589 ;;
33590 *)
33591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33592for as_dir in $PATH
33593do
33594 IFS=$as_save_IFS
33595 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033596 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033598 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033600 break 2
33601 fi
33602done
cristy8b350f62009-11-15 23:12:43 +000033603 done
cristy3ed852e2009-09-05 21:47:34 +000033604IFS=$as_save_IFS
33605
33606 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33607 ;;
33608esac
33609fi
33610MVDelegate=$ac_cv_path_MVDelegate
33611if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033613$as_echo "$MVDelegate" >&6; }
33614else
cristy8b350f62009-11-15 23:12:43 +000033615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033616$as_echo "no" >&6; }
33617fi
33618
33619
33620# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33621set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033623$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033624if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033625 $as_echo_n "(cached) " >&6
33626else
33627 case $PCLDelegate in
33628 [\\/]* | ?:[\\/]*)
33629 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33630 ;;
33631 *)
33632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33633for as_dir in $PATH
33634do
33635 IFS=$as_save_IFS
33636 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033637 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033639 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033641 break 2
33642 fi
33643done
cristy8b350f62009-11-15 23:12:43 +000033644 done
cristy3ed852e2009-09-05 21:47:34 +000033645IFS=$as_save_IFS
33646
33647 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33648 ;;
33649esac
33650fi
33651PCLDelegate=$ac_cv_path_PCLDelegate
33652if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033654$as_echo "$PCLDelegate" >&6; }
33655else
cristy8b350f62009-11-15 23:12:43 +000033656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033657$as_echo "no" >&6; }
33658fi
33659
33660
33661# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33662set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033664$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033665if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033666 $as_echo_n "(cached) " >&6
33667else
33668 case $PGPDecodeDelegate in
33669 [\\/]* | ?:[\\/]*)
33670 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33671 ;;
33672 *)
33673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33674for as_dir in $PATH
33675do
33676 IFS=$as_save_IFS
33677 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033678 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033680 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033682 break 2
33683 fi
33684done
cristy8b350f62009-11-15 23:12:43 +000033685 done
cristy3ed852e2009-09-05 21:47:34 +000033686IFS=$as_save_IFS
33687
33688 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33689 ;;
33690esac
33691fi
33692PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33693if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033695$as_echo "$PGPDecodeDelegate" >&6; }
33696else
cristy8b350f62009-11-15 23:12:43 +000033697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033698$as_echo "no" >&6; }
33699fi
33700
33701
33702# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33703set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033705$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033706if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033707 $as_echo_n "(cached) " >&6
33708else
33709 case $POVDelegate in
33710 [\\/]* | ?:[\\/]*)
33711 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33712 ;;
33713 *)
33714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33715for as_dir in $PATH
33716do
33717 IFS=$as_save_IFS
33718 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033719 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033721 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033723 break 2
33724 fi
33725done
cristy8b350f62009-11-15 23:12:43 +000033726 done
cristy3ed852e2009-09-05 21:47:34 +000033727IFS=$as_save_IFS
33728
33729 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33730 ;;
33731esac
33732fi
33733POVDelegate=$ac_cv_path_POVDelegate
33734if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033736$as_echo "$POVDelegate" >&6; }
33737else
cristy8b350f62009-11-15 23:12:43 +000033738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033739$as_echo "no" >&6; }
33740fi
33741
33742
33743for ac_prog in gsx gsc "$PSDelegateDefault"
33744do
33745 # Extract the first word of "$ac_prog", so it can be a program name with args.
33746set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033748$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033749if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033750 $as_echo_n "(cached) " >&6
33751else
33752 case $PSDelegate in
33753 [\\/]* | ?:[\\/]*)
33754 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33755 ;;
33756 *)
33757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33758for as_dir in $PATH
33759do
33760 IFS=$as_save_IFS
33761 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033762 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033764 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033766 break 2
33767 fi
33768done
cristy8b350f62009-11-15 23:12:43 +000033769 done
cristy3ed852e2009-09-05 21:47:34 +000033770IFS=$as_save_IFS
33771
33772 ;;
33773esac
33774fi
33775PSDelegate=$ac_cv_path_PSDelegate
33776if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033778$as_echo "$PSDelegate" >&6; }
33779else
cristy8b350f62009-11-15 23:12:43 +000033780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033781$as_echo "no" >&6; }
33782fi
33783
33784
33785 test -n "$PSDelegate" && break
33786done
33787test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33788
33789# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33790set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033792$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033793if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033794 $as_echo_n "(cached) " >&6
33795else
33796 case $RLEEncodeDelegate in
33797 [\\/]* | ?:[\\/]*)
33798 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33799 ;;
33800 *)
33801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33802for as_dir in $PATH
33803do
33804 IFS=$as_save_IFS
33805 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033806 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033808 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033810 break 2
33811 fi
33812done
cristy8b350f62009-11-15 23:12:43 +000033813 done
cristy3ed852e2009-09-05 21:47:34 +000033814IFS=$as_save_IFS
33815
33816 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33817 ;;
33818esac
33819fi
33820RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33821if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033823$as_echo "$RLEEncodeDelegate" >&6; }
33824else
cristy8b350f62009-11-15 23:12:43 +000033825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033826$as_echo "no" >&6; }
33827fi
33828
33829
33830# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33831set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033833$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033834if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033835 $as_echo_n "(cached) " >&6
33836else
33837 case $RMDelegate in
33838 [\\/]* | ?:[\\/]*)
33839 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33840 ;;
33841 *)
33842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33843for as_dir in $PATH
33844do
33845 IFS=$as_save_IFS
33846 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033847 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033849 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033851 break 2
33852 fi
33853done
cristy8b350f62009-11-15 23:12:43 +000033854 done
cristy3ed852e2009-09-05 21:47:34 +000033855IFS=$as_save_IFS
33856
33857 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33858 ;;
33859esac
33860fi
33861RMDelegate=$ac_cv_path_RMDelegate
33862if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033864$as_echo "$RMDelegate" >&6; }
33865else
cristy8b350f62009-11-15 23:12:43 +000033866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033867$as_echo "no" >&6; }
33868fi
33869
33870
cristy4689cf02010-02-17 21:15:45 +000033871# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33872set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33874$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033875if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033876 $as_echo_n "(cached) " >&6
33877else
33878 case $RSVGDecodeDelegate in
33879 [\\/]* | ?:[\\/]*)
33880 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33881 ;;
33882 *)
33883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33884for as_dir in $PATH
33885do
33886 IFS=$as_save_IFS
33887 test -z "$as_dir" && as_dir=.
33888 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033890 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33892 break 2
33893 fi
33894done
33895 done
33896IFS=$as_save_IFS
33897
33898 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33899 ;;
33900esac
33901fi
33902RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33903if test -n "$RSVGDecodeDelegate"; then
33904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33905$as_echo "$RSVGDecodeDelegate" >&6; }
33906else
33907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33908$as_echo "no" >&6; }
33909fi
33910
33911
cristy3ed852e2009-09-05 21:47:34 +000033912# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33913set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033915$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033916if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033917 $as_echo_n "(cached) " >&6
33918else
33919 case $SCANDecodeDelegate in
33920 [\\/]* | ?:[\\/]*)
33921 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33922 ;;
33923 *)
33924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33925for as_dir in $PATH
33926do
33927 IFS=$as_save_IFS
33928 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033929 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033931 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033933 break 2
33934 fi
33935done
cristy8b350f62009-11-15 23:12:43 +000033936 done
cristy3ed852e2009-09-05 21:47:34 +000033937IFS=$as_save_IFS
33938
33939 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33940 ;;
33941esac
33942fi
33943SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33944if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033946$as_echo "$SCANDecodeDelegate" >&6; }
33947else
cristy8b350f62009-11-15 23:12:43 +000033948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033949$as_echo "no" >&6; }
33950fi
33951
33952
cristyec6934f2012-08-14 18:38:40 +000033953# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
33954set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
33955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33956$as_echo_n "checking for $ac_word... " >&6; }
33957if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
33958 $as_echo_n "(cached) " >&6
33959else
33960 case $SVGDecodeDelegate in
33961 [\\/]* | ?:[\\/]*)
33962 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
33963 ;;
33964 *)
33965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33966for as_dir in $PATH
33967do
33968 IFS=$as_save_IFS
33969 test -z "$as_dir" && as_dir=.
33970 for ac_exec_ext in '' $ac_executable_extensions; do
33971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33972 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33974 break 2
33975 fi
33976done
33977 done
33978IFS=$as_save_IFS
33979
33980 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
33981 ;;
33982esac
33983fi
33984SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
33985if test -n "$SVGDecodeDelegate"; then
33986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
33987$as_echo "$SVGDecodeDelegate" >&6; }
33988else
33989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33990$as_echo "no" >&6; }
33991fi
33992
33993
cristy3ed852e2009-09-05 21:47:34 +000033994# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33995set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033997$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033998if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033999 $as_echo_n "(cached) " >&6
34000else
34001 case $TXTDelegate in
34002 [\\/]* | ?:[\\/]*)
34003 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34004 ;;
34005 *)
34006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34007for as_dir in $PATH
34008do
34009 IFS=$as_save_IFS
34010 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034011 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034013 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034015 break 2
34016 fi
34017done
cristy8b350f62009-11-15 23:12:43 +000034018 done
cristy3ed852e2009-09-05 21:47:34 +000034019IFS=$as_save_IFS
34020
34021 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34022 ;;
34023esac
34024fi
34025TXTDelegate=$ac_cv_path_TXTDelegate
34026if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034028$as_echo "$TXTDelegate" >&6; }
34029else
cristy8b350f62009-11-15 23:12:43 +000034030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034031$as_echo "no" >&6; }
34032fi
34033
34034
cristy5ac9ac82010-07-29 13:24:24 +000034035# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34036set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34038$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034039if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034040 $as_echo_n "(cached) " >&6
34041else
34042 case $UniconvertorDelegate in
34043 [\\/]* | ?:[\\/]*)
34044 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34045 ;;
34046 *)
34047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34048for as_dir in $PATH
34049do
34050 IFS=$as_save_IFS
34051 test -z "$as_dir" && as_dir=.
34052 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034054 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34056 break 2
34057 fi
34058done
34059 done
34060IFS=$as_save_IFS
34061
34062 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34063 ;;
34064esac
34065fi
34066UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34067if test -n "$UniconvertorDelegate"; then
34068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34069$as_echo "$UniconvertorDelegate" >&6; }
34070else
34071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34072$as_echo "no" >&6; }
34073fi
34074
34075
cristy86e86092013-08-04 17:43:57 +000034076# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34077set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34079$as_echo_n "checking for $ac_word... " >&6; }
34080if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34081 $as_echo_n "(cached) " >&6
34082else
34083 case $WebPDecodeDelegate in
34084 [\\/]* | ?:[\\/]*)
34085 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34086 ;;
34087 *)
34088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34089for as_dir in $PATH
34090do
34091 IFS=$as_save_IFS
34092 test -z "$as_dir" && as_dir=.
34093 for ac_exec_ext in '' $ac_executable_extensions; do
34094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34095 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34097 break 2
34098 fi
34099done
34100 done
34101IFS=$as_save_IFS
34102
34103 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34104 ;;
34105esac
34106fi
34107WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34108if test -n "$WebPDecodeDelegate"; then
34109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34110$as_echo "$WebPDecodeDelegate" >&6; }
34111else
34112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34113$as_echo "no" >&6; }
34114fi
34115
34116
34117# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34118set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34120$as_echo_n "checking for $ac_word... " >&6; }
34121if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34122 $as_echo_n "(cached) " >&6
34123else
34124 case $WebPEncodeDelegate in
34125 [\\/]* | ?:[\\/]*)
34126 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34127 ;;
34128 *)
34129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34130for as_dir in $PATH
34131do
34132 IFS=$as_save_IFS
34133 test -z "$as_dir" && as_dir=.
34134 for ac_exec_ext in '' $ac_executable_extensions; do
34135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34136 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34138 break 2
34139 fi
34140done
34141 done
34142IFS=$as_save_IFS
34143
34144 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34145 ;;
34146esac
34147fi
34148WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34149if test -n "$WebPEncodeDelegate"; then
34150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34151$as_echo "$WebPEncodeDelegate" >&6; }
34152else
34153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34154$as_echo "no" >&6; }
34155fi
34156
34157
cristy3ed852e2009-09-05 21:47:34 +000034158# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34159set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034161$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034162if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034163 $as_echo_n "(cached) " >&6
34164else
34165 case $WMFDecodeDelegate in
34166 [\\/]* | ?:[\\/]*)
34167 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34168 ;;
34169 *)
34170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34171for as_dir in $PATH
34172do
34173 IFS=$as_save_IFS
34174 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034175 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034177 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034179 break 2
34180 fi
34181done
cristy8b350f62009-11-15 23:12:43 +000034182 done
cristy3ed852e2009-09-05 21:47:34 +000034183IFS=$as_save_IFS
34184
34185 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34186 ;;
34187esac
34188fi
34189WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34190if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034192$as_echo "$WMFDecodeDelegate" >&6; }
34193else
cristy8b350f62009-11-15 23:12:43 +000034194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034195$as_echo "no" >&6; }
34196fi
34197
34198
34199# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34200set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034202$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034203if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034204 $as_echo_n "(cached) " >&6
34205else
34206 case $WWWDecodeDelegate in
34207 [\\/]* | ?:[\\/]*)
34208 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34209 ;;
34210 *)
34211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34212for as_dir in $PATH
34213do
34214 IFS=$as_save_IFS
34215 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034216 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034218 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034220 break 2
34221 fi
34222done
cristy8b350f62009-11-15 23:12:43 +000034223 done
cristy3ed852e2009-09-05 21:47:34 +000034224IFS=$as_save_IFS
34225
34226 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34227 ;;
34228esac
34229fi
34230WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34231if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034233$as_echo "$WWWDecodeDelegate" >&6; }
34234else
cristy8b350f62009-11-15 23:12:43 +000034235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034236$as_echo "no" >&6; }
34237fi
34238
34239
34240# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34241set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034243$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034244if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034245 $as_echo_n "(cached) " >&6
34246else
34247 case $XPSDelegate in
34248 [\\/]* | ?:[\\/]*)
34249 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34250 ;;
34251 *)
34252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34253for as_dir in $PATH
34254do
34255 IFS=$as_save_IFS
34256 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034257 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034259 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034261 break 2
34262 fi
34263done
cristy8b350f62009-11-15 23:12:43 +000034264 done
cristy3ed852e2009-09-05 21:47:34 +000034265IFS=$as_save_IFS
34266
34267 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34268 ;;
34269esac
34270fi
34271XPSDelegate=$ac_cv_path_XPSDelegate
34272if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034274$as_echo "$XPSDelegate" >&6; }
34275else
cristy8b350f62009-11-15 23:12:43 +000034276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034277$as_echo "no" >&6; }
34278fi
34279
34280
34281# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34282set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034284$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034285if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034286 $as_echo_n "(cached) " >&6
34287else
34288 case $ZipDelegate in
34289 [\\/]* | ?:[\\/]*)
34290 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34291 ;;
34292 *)
34293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34294for as_dir in $PATH
34295do
34296 IFS=$as_save_IFS
34297 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034298 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034300 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034302 break 2
34303 fi
34304done
cristy8b350f62009-11-15 23:12:43 +000034305 done
cristy3ed852e2009-09-05 21:47:34 +000034306IFS=$as_save_IFS
34307
34308 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34309 ;;
34310esac
34311fi
34312ZipDelegate=$ac_cv_path_ZipDelegate
34313if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034315$as_echo "$ZipDelegate" >&6; }
34316else
cristy8b350f62009-11-15 23:12:43 +000034317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034318$as_echo "no" >&6; }
34319fi
34320
34321
34322
34323# Prefer lpr to lp; lp needs options tacked on.
34324if test "$LPRDelegate" != no; then
34325 PrintDelegate="$LPRDelegate"
34326else
34327 PrintDelegate="$LPDelegate -c -s"
34328fi
34329
34330
34331# Installed ImageMagick utiltity paths
34332ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34333DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34334MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34335
34336# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034337have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034338have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34339have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34340have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034341have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034342have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34343have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034344have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34345
34346#
34347# Test for font directories
34348#
34349type_include_files=''
34350
cristy430a7312010-01-21 20:44:04 +000034351# Dejavu fonts.
34352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34353$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34354dejavu_font_dir=''
34355if test "${with_dejavu_font_dir}" != 'default'; then
34356 dejavu_font_dir="${with_dejavu_font_dir}/"
34357else
34358 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34359 if test -f "${font_dir}DejaVuSerif.ttf"; then
34360 dejavu_font_dir="${font_dir}"
34361 break 1
34362 fi
34363 done
34364fi
34365if test "${dejavu_font_dir}x" != 'x'; then
34366 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34368$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034369else
cristyad38abe2012-12-23 23:03:21 +000034370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34371$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034372fi
34373
34374
cristy3ed852e2009-09-05 21:47:34 +000034375# Windows
34376windows_font_dir=''
34377if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34378 windows_font_dir="${with_windows_font_dir}/"
34379fi
cristy430a7312010-01-21 20:44:04 +000034380if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034381 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34382 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34383 fi
34384 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34385 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34386 fi
34387 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34388 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34389 fi
34390fi
cristy430a7312010-01-21 20:44:04 +000034391if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034392 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34393fi
34394
34395
34396# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034398$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34399ghostscript_font_dir=''
34400if test "${with_gs_font_dir}" != 'default'; then
34401 ghostscript_font_dir="${with_gs_font_dir}/"
34402else
34403 if test "${native_win32_build}" = 'yes'; then
34404 # Native Windows Build
34405 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34406 if test -f "${font_dir}a010013l.pfb"; then
34407 ghostscript_font_dir="$font_dir"
34408 break 1
34409 fi
34410 done
34411 if test "${PSDelegate}" != 'gswin32c'; then
34412 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34413 fi
34414 else
34415 # Linux / Mac OS X / Unix Build
34416 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
34417 if test -f "${font_dir}a010013l.pfb"; then
34418 ghostscript_font_dir="${font_dir}"
34419 break 1
34420 fi
34421 done
34422 if test "${ghostscript_font_dir}x" = 'x'; then
34423 if test "$PSDelegate" != 'gs'; then
34424 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34425 fi
34426 fi
34427 fi
34428fi
34429if test "${ghostscript_font_dir}x" != 'x'; then
34430 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34432$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034433else
cristyad38abe2012-12-23 23:03:21 +000034434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34435$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034436fi
34437
34438case "${build_os}" in
34439 mingw* )
34440 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34441 ;;
34442esac
34443
34444
34445
34446#
34447# Handle case where user doesn't want frozen paths
34448#
34449if test "$with_frozenpaths" != 'yes'; then
34450 # Re-set delegate definitions to default (no paths)
34451 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034452 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34453 BZIPDelegate="$BZIPDelegateDefault"
34454 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034455 CatDelegate="$CatDelegateDefault"
34456 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034457 DisplayDelegate="$DisplayDelegateDefault"
34458 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034459 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34460 EchoDelegate="$EchoDelegateDefault"
34461 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034462 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034463 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034464 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34465 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34466 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34467 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034468 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34469 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034470 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034471 LaunchDelegate="$LaunchDelegateDefault"
34472 MANDelegate="$MANDelegateDefault"
34473 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34474 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034475 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034476 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34477 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034478 PCLDelegate="$PCLDelegateDefault"
34479 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34480 POVDelegate="$POVDelegateDefault"
34481 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034482 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34483 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034484 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034485 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034486 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034487 ShowImageDelegate="$ShowImageDelegateDefault"
34488 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034489 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000034490 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34491 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034492 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34493 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34494 XPSDelegate="$XPSDelegateDefault"
34495 ZipDelegate="$ZipDelegateDefault"
34496fi
34497
34498# Delegate substitutions
34499
34500
34501
34502
34503
34504
34505
34506
34507
34508
34509
34510
34511
34512
34513
34514
34515
34516
34517
34518
34519
34520
34521
34522
34523
34524
34525
34526
34527
34528
34529
34530
34531
34532
34533
34534
34535
34536
34537
34538
cristy71f53d52013-04-27 13:33:59 +000034539
34540
cristy3ed852e2009-09-05 21:47:34 +000034541#
34542# RPM support.
34543#
34544RPM=''
34545for ac_prog in gnutar gtar tar
34546do
34547 # Extract the first word of "$ac_prog", so it can be a program name with args.
34548set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034550$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034551if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034552 $as_echo_n "(cached) " >&6
34553else
34554 if test -n "$TAR"; then
34555 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34556else
34557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34558for as_dir in $PATH
34559do
34560 IFS=$as_save_IFS
34561 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034562 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034564 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034566 break 2
34567 fi
34568done
cristy8b350f62009-11-15 23:12:43 +000034569 done
cristy3ed852e2009-09-05 21:47:34 +000034570IFS=$as_save_IFS
34571
34572fi
34573fi
34574TAR=$ac_cv_prog_TAR
34575if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034577$as_echo "$TAR" >&6; }
34578else
cristy8b350f62009-11-15 23:12:43 +000034579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034580$as_echo "no" >&6; }
34581fi
34582
34583
34584 test -n "$TAR" && break
34585done
34586
34587for ac_prog in perl
34588do
34589 # Extract the first word of "$ac_prog", so it can be a program name with args.
34590set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034592$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034593if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034594 $as_echo_n "(cached) " >&6
34595else
34596 if test -n "$PERL"; then
34597 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34598else
34599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34600for as_dir in $PATH
34601do
34602 IFS=$as_save_IFS
34603 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034604 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034606 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034608 break 2
34609 fi
34610done
cristy8b350f62009-11-15 23:12:43 +000034611 done
cristy3ed852e2009-09-05 21:47:34 +000034612IFS=$as_save_IFS
34613
34614fi
34615fi
34616PERL=$ac_cv_prog_PERL
34617if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034619$as_echo "$PERL" >&6; }
34620else
cristy8b350f62009-11-15 23:12:43 +000034621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034622$as_echo "no" >&6; }
34623fi
34624
34625
34626 test -n "$PERL" && break
34627done
34628
34629for ac_prog in rpmbuild rpm
34630do
34631 # Extract the first word of "$ac_prog", so it can be a program name with args.
34632set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034634$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034635if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034636 $as_echo_n "(cached) " >&6
34637else
34638 if test -n "$RPM"; then
34639 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34640else
34641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34642for as_dir in $PATH
34643do
34644 IFS=$as_save_IFS
34645 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034646 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034648 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034650 break 2
34651 fi
34652done
cristy8b350f62009-11-15 23:12:43 +000034653 done
cristy3ed852e2009-09-05 21:47:34 +000034654IFS=$as_save_IFS
34655
34656fi
34657fi
34658RPM=$ac_cv_prog_RPM
34659if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034661$as_echo "$RPM" >&6; }
34662else
cristy8b350f62009-11-15 23:12:43 +000034663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034664$as_echo "no" >&6; }
34665fi
34666
34667
34668 test -n "$RPM" && break
34669done
34670
34671
cristy73bd4a52010-10-05 11:24:23 +000034672ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34673
34674
34675AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34676
34677
34678AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34679
34680
34681AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34682
34683
34684 if test "x$RPM" != "x" ; then
34685 RPM_DELEGATE_TRUE=
34686 RPM_DELEGATE_FALSE='#'
34687else
34688 RPM_DELEGATE_TRUE='#'
34689 RPM_DELEGATE_FALSE=
34690fi
34691
cristy3ed852e2009-09-05 21:47:34 +000034692
34693#
34694# 7ZIP support (http://p7zip.sourceforge.net/)
34695#
34696P7ZIP=''
34697for ac_prog in 7za
34698do
34699 # Extract the first word of "$ac_prog", so it can be a program name with args.
34700set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034702$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034703if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034704 $as_echo_n "(cached) " >&6
34705else
34706 if test -n "$P7ZIP"; then
34707 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34708else
34709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34710for as_dir in $PATH
34711do
34712 IFS=$as_save_IFS
34713 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034714 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034716 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034718 break 2
34719 fi
34720done
cristy8b350f62009-11-15 23:12:43 +000034721 done
cristy3ed852e2009-09-05 21:47:34 +000034722IFS=$as_save_IFS
34723
34724fi
34725fi
34726P7ZIP=$ac_cv_prog_P7ZIP
34727if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034729$as_echo "$P7ZIP" >&6; }
34730else
cristy8b350f62009-11-15 23:12:43 +000034731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034732$as_echo "no" >&6; }
34733fi
34734
34735
34736 test -n "$P7ZIP" && break
34737done
34738
34739
cristy73bd4a52010-10-05 11:24:23 +000034740 if test "x$P7ZIP" != "x" ; then
34741 P7ZIP_DELEGATE_TRUE=
34742 P7ZIP_DELEGATE_FALSE='#'
34743else
34744 P7ZIP_DELEGATE_TRUE='#'
34745 P7ZIP_DELEGATE_FALSE=
34746fi
34747
cristy3ed852e2009-09-05 21:47:34 +000034748
34749#
34750# ZIP support (http://www.info-zip.org/Zip.html)
34751#
34752ZIP=''
34753for ac_prog in zip
34754do
34755 # Extract the first word of "$ac_prog", so it can be a program name with args.
34756set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034758$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034759if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034760 $as_echo_n "(cached) " >&6
34761else
34762 if test -n "$ZIP"; then
34763 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34764else
34765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34766for as_dir in $PATH
34767do
34768 IFS=$as_save_IFS
34769 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034770 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034772 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034774 break 2
34775 fi
34776done
cristy8b350f62009-11-15 23:12:43 +000034777 done
cristy3ed852e2009-09-05 21:47:34 +000034778IFS=$as_save_IFS
34779
34780fi
34781fi
34782ZIP=$ac_cv_prog_ZIP
34783if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034785$as_echo "$ZIP" >&6; }
34786else
cristy8b350f62009-11-15 23:12:43 +000034787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034788$as_echo "no" >&6; }
34789fi
34790
34791
34792 test -n "$ZIP" && break
34793done
34794
34795
cristy73bd4a52010-10-05 11:24:23 +000034796 if test "x$ZIP" != "x" ; then
34797 ZIP_DELEGATE_TRUE=
34798 ZIP_DELEGATE_FALSE='#'
34799else
34800 ZIP_DELEGATE_TRUE='#'
34801 ZIP_DELEGATE_FALSE=
34802fi
34803
cristy3ed852e2009-09-05 21:47:34 +000034804
34805#
34806# GhostPCL related configuration.
34807#
34808PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034809PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034810PCLMonoDevice=pbmraw
34811if test -z "$PCLVersion"; then
34812 PCLVersion='unknown'
34813fi
34814if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34816$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034818$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34820$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034821 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034823$as_echo_n "checking for pcl color device... " >&6; }
34824 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34825 :
34826 else
34827 PCLColorDevice=ppmraw
34828 fi
cristyad38abe2012-12-23 23:03:21 +000034829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
34830$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034831
34832 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034834$as_echo_n "checking for pcl CMYK device... " >&6; }
34835 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34836 :
34837 else
34838 PCLCMYKDevice=$PCLColorDevice
34839 fi
cristyad38abe2012-12-23 23:03:21 +000034840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
34841$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034842
34843 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034845$as_echo_n "checking for pcl mono device... " >&6; }
34846 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34847 :
34848 else
34849 PCLMonoDevice=$PCLColorDevice
34850 fi
cristyad38abe2012-12-23 23:03:21 +000034851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
34852$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034853fi
34854
34855
34856
34857
34858
34859
34860#
34861# GhostXPS related configuration.
34862#
34863XPSColorDevice=ppmraw
34864XPSCMYKDevice=bmpsep8
34865XPSMonoDevice=pbmraw
34866if test -z "$XPSVersion"; then
34867 XPSVersion='unknown'
34868fi
34869if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34871$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034873$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34875$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034876 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034878$as_echo_n "checking for xps color device... " >&6; }
34879 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34880 :
34881 else
34882 XPSColorDevice=ppmraw
34883 fi
cristyad38abe2012-12-23 23:03:21 +000034884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
34885$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034886
34887 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034889$as_echo_n "checking for xps CMYK device... " >&6; }
34890 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34891 :
34892 else
34893 XPSCMYKDevice=$XPSColorDevice
34894 fi
cristyad38abe2012-12-23 23:03:21 +000034895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
34896$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034897
34898 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034900$as_echo_n "checking for xps mono device... " >&6; }
34901 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34902 :
34903 else
34904 XPSMonoDevice=$XPSColorDevice
34905 fi
cristyad38abe2012-12-23 23:03:21 +000034906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
34907$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034908fi
34909
34910
34911
34912
34913
34914
34915#
34916# Ghostscript related configuration.
34917#
cristya97426c2011-02-04 01:41:27 +000034918GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034919GSColorDevice=pnmraw
34920GSCMYKDevice=pam
34921GSMonoDevice=pbmraw
34922GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000034923GSPSDevice=ps2write
cristy3ed852e2009-09-05 21:47:34 +000034924GSEPSDevice=epswrite
34925GSVersion='unknown'
34926if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34928$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034930$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34932$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034934$as_echo_n "checking for Ghostscript version... " >&6; }
34935 if GSVersion=`$PSDelegate --version`; then
34936 :
34937 else
34938 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34939 fi
cristyad38abe2012-12-23 23:03:21 +000034940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
34941$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034942
34943 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034945$as_echo_n "checking for gs alpha device... " >&6; }
34946 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34947 :
34948 else
34949 GSAlphaDevice=pnmraw
34950 fi
cristyad38abe2012-12-23 23:03:21 +000034951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
34952$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034953
34954 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034956$as_echo_n "checking for gs color device... " >&6; }
34957 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34958 :
34959 else
34960 GSColorDevice=pnmraw
34961 fi
cristyad38abe2012-12-23 23:03:21 +000034962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
34963$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034964
34965 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034967$as_echo_n "checking for gs CMYK device... " >&6; }
34968 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34969 :
34970 else
34971 GSCMYKDevice=bmpsep8
34972 fi
cristyad38abe2012-12-23 23:03:21 +000034973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
34974$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034975
34976 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034978$as_echo_n "checking for gs mono device... " >&6; }
34979 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34980 :
34981 else
34982 GSMonoDevice=$GSColorDevice
34983 fi
cristyad38abe2012-12-23 23:03:21 +000034984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
34985$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034986
34987 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034989$as_echo_n "checking for gs PDF writing device... " >&6; }
34990 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34991 :
34992 else
34993 GSPDFDevice=nodevice
34994 fi
cristyad38abe2012-12-23 23:03:21 +000034995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
34996$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034997
34998 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035000$as_echo_n "checking for gs PS writing device... " >&6; }
35001 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35002 :
35003 else
35004 GSPSDevice=nodevice
35005 fi
cristyad38abe2012-12-23 23:03:21 +000035006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35007$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035008
35009 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035011$as_echo_n "checking for gs EPS writing device... " >&6; }
35012 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35013 :
35014 else
35015 GSEPSDevice=nodevice
35016 fi
cristyad38abe2012-12-23 23:03:21 +000035017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35018$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035019fi
35020
35021
35022
35023
35024
35025
35026
35027
35028
35029
35030#
35031# PerlMagick-related configuration
35032#
35033
35034# Look for PERL if PerlMagick requested
35035# If name/path of desired PERL interpreter is specified, look for that one first
35036have_perl='no'
35037if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35039$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035041$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35043$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035044 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035046$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035047if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035048 $as_echo_n "(cached) " >&6
35049else
35050 ac_cv_path_PERL="$with_perl"
35051fi
cristy8b350f62009-11-15 23:12:43 +000035052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035053$as_echo "$ac_cv_path_PERL" >&6; };
35054 PERL=$ac_cv_path_PERL
35055 have_perl="$ac_cv_path_PERL"
35056 else
35057 for ac_prog in perl perl5
35058do
35059 # Extract the first word of "$ac_prog", so it can be a program name with args.
35060set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035062$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035063if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035064 $as_echo_n "(cached) " >&6
35065else
35066 case $PERL in
35067 [\\/]* | ?:[\\/]*)
35068 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35069 ;;
35070 *)
35071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35072for as_dir in $PATH
35073do
35074 IFS=$as_save_IFS
35075 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035076 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035078 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035080 break 2
35081 fi
35082done
cristy8b350f62009-11-15 23:12:43 +000035083 done
cristy3ed852e2009-09-05 21:47:34 +000035084IFS=$as_save_IFS
35085
35086 ;;
35087esac
35088fi
35089PERL=$ac_cv_path_PERL
35090if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035092$as_echo "$PERL" >&6; }
35093else
cristy8b350f62009-11-15 23:12:43 +000035094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035095$as_echo "no" >&6; }
35096fi
35097
35098
35099 test -n "$PERL" && break
35100done
35101 if test "$ac_cv_path_PERL"; then
35102 have_perl="$ac_cv_path_PERL"
35103 fi
35104 fi
35105fi
35106
cristy949301e2010-01-06 01:38:40 +000035107if test "$with_perl" != 'yes' ; then
35108 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35109fi
35110
35111PERL_SUPPORTS_DESTDIR='no'
35112
cristy3ed852e2009-09-05 21:47:34 +000035113with_perl_static='no'
35114with_perl_dynamic='no'
35115if test "$have_perl" != 'no'; then
35116 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35117 with_perl_static='yes'
35118 fi
35119 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35120 with_perl_dynamic='yes'
35121 fi
35122 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035123
35124
35125
35126
35127 if test -n "$PERL"; then :
35128
35129 ax_perl_version="5.8.1"
35130
35131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35132$as_echo_n "checking for perl version... " >&6; }
35133
35134 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35135
35136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35137$as_echo "$perl_version" >&6; }
35138
35139 PERL_VERSION=$perl_version
35140
35141
35142
35143
35144
35145 # Used to indicate true or false condition
35146 ax_compare_version=false
35147
35148 # Convert the two version strings to be compared into a format that
35149 # allows a simple string comparison. The end result is that a version
35150 # string of the form 1.12.5-r617 will be converted to the form
35151 # 0001001200050617. In other words, each number is zero padded to four
35152 # digits, and non digits are removed.
35153
35154 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35155 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35156 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35157 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35158 -e 's/[^0-9]//g'`
35159
35160
35161 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35162 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35163 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35164 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35165 -e 's/[^0-9]//g'`
35166
35167
35168 ax_compare_version=`echo "x$ax_compare_version_A
35169x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35170
35171
35172
35173 if test "$ax_compare_version" = "true" ; then
35174
35175 :
35176 PERL_SUPPORTS_DESTDIR='yes'
35177
35178 else
35179 :
35180 PERL_SUPPORTS_DESTDIR='no'
35181
35182 fi
35183
35184
35185else
35186
35187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35188$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35189 PERL_SUPPORTS_DESTDIR='no'
35190
cristy3ed852e2009-09-05 21:47:34 +000035191fi
cristy73bd4a52010-10-05 11:24:23 +000035192
35193fi
35194 if test "$have_perl" != 'no'; then
35195 WITH_PERL_TRUE=
35196 WITH_PERL_FALSE='#'
35197else
35198 WITH_PERL_TRUE='#'
35199 WITH_PERL_FALSE=
35200fi
35201
35202 if test $with_perl_static = 'yes'; then
35203 WITH_PERL_STATIC_TRUE=
35204 WITH_PERL_STATIC_FALSE='#'
35205else
35206 WITH_PERL_STATIC_TRUE='#'
35207 WITH_PERL_STATIC_FALSE=
35208fi
35209
35210 if test $with_perl_dynamic = 'yes'; then
35211 WITH_PERL_DYNAMIC_TRUE=
35212 WITH_PERL_DYNAMIC_FALSE='#'
35213else
35214 WITH_PERL_DYNAMIC_TRUE='#'
35215 WITH_PERL_DYNAMIC_FALSE=
35216fi
35217
cristy3ed852e2009-09-05 21:47:34 +000035218
35219
35220# Determine path to pick up MagickCore library from for use with building PerlMagick
35221MAGICKCORE_PATH="${LIB_DIR}"
35222if test $with_perl_static = 'yes'; then
35223 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35224 libtool_objdir=$objdir
35225
35226 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035227 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035228fi
35229
35230
cristy2a3eb392012-12-17 13:39:20 +000035231# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035232MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035233if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035234 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035235fi
cristy2a3eb392012-12-17 13:39:20 +000035236if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035237 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035238fi
35239if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035240 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035241fi
35242if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035243 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035244fi
cristy81ab5af2013-10-06 18:28:39 +000035245if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035246 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035247fi
cristy854c9cf2013-08-10 21:03:06 +000035248if test "$have_mupdf" = 'yes' ; then
35249 MAGICK_DELEGATES="$MAGICK_DELEGATES mupdf"
cristyc0884e92013-08-10 17:14:59 +000035250fi
cristy2a3eb392012-12-17 13:39:20 +000035251if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035252 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035253fi
cristy2a3eb392012-12-17 13:39:20 +000035254if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035255 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035256fi
35257if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035258 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035259fi
35260if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035261 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035262fi
35263if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035264 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035265fi
35266if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035267 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035268fi
35269if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035270 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035271fi
35272if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035273 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035274fi
35275if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035276 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035277fi
35278if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035279 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035280fi
35281if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035282 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035283fi
35284if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035285 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035286fi
35287if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035288 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035289fi
35290if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035291 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035292fi
35293if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035294 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035295fi
35296have_ps='no'
35297if test "$have_dps" = 'yes' || \
35298 test "$have_gs" = 'yes' || \
35299 test "${native_win32_build}" = 'yes' ; then
35300 have_ps='yes'
35301fi
35302if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035303 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035304fi
cristy2a3eb392012-12-17 13:39:20 +000035305if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035306 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035307fi
35308if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035309 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035310fi
35311if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035312 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035313fi
35314if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035315 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035316fi
cristy3b640ed2013-07-29 00:27:59 +000035317if test "$have_webp" = 'yes' ; then
35318 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35319fi
cristy2a3eb392012-12-17 13:39:20 +000035320if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035321 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035322fi
35323if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035324 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035325fi
35326if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035327 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035328fi
35329if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035330 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035331fi
cristy2a3eb392012-12-17 13:39:20 +000035332# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035333MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035334MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035335
35336
cristyfa161182012-12-19 15:45:28 +000035337
cristy3ed852e2009-09-05 21:47:34 +000035338#
35339# Handle special compiler flags
35340#
35341
35342# Add '-p' if prof source profiling support enabled
35343if test "$enable_prof" = 'yes'; then
35344 CFLAGS="-p $CFLAGS"
35345 CXXFLAGS="-p $CXXFLAGS"
35346 LDFLAGS="-p $LDFLAGS"
35347fi
35348
35349# Add '-pg' if gprof source profiling support enabled
35350if test "$enable_gprof" = 'yes'; then
35351 CFLAGS="-pg $CFLAGS"
35352 CXXFLAGS="-pg $CXXFLAGS"
35353 LDFLAGS="-pg $LDFLAGS"
35354fi
35355
35356# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35357# This is a gcc-specific feature
35358if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035360$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035361if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035362 $as_echo_n "(cached) " >&6
35363else
35364 ac_check_lib_save_LIBS=$LIBS
35365LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035367/* end confdefs.h. */
35368
35369/* Override any GCC internal prototype to avoid an error.
35370 Use char because int might match the return type of a GCC
35371 builtin and then its argument prototype would still apply. */
35372#ifdef __cplusplus
35373extern "C"
35374#endif
35375char _gcov_init ();
35376int
35377main ()
35378{
35379return _gcov_init ();
35380 ;
35381 return 0;
35382}
35383_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035384if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035385 ac_cv_lib_gcov__gcov_init=yes
35386else
cristy8b350f62009-11-15 23:12:43 +000035387 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035388fi
cristy8b350f62009-11-15 23:12:43 +000035389rm -f core conftest.err conftest.$ac_objext \
35390 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035391LIBS=$ac_check_lib_save_LIBS
35392fi
cristy8b350f62009-11-15 23:12:43 +000035393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035394$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035395if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035396 cat >>confdefs.h <<_ACEOF
35397#define HAVE_LIBGCOV 1
35398_ACEOF
35399
35400 LIBS="-lgcov $LIBS"
35401
35402fi
35403
cristy8b350f62009-11-15 23:12:43 +000035404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035405$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035406if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035407 $as_echo_n "(cached) " >&6
35408else
35409 ac_check_lib_save_LIBS=$LIBS
35410LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035412/* end confdefs.h. */
35413
35414/* Override any GCC internal prototype to avoid an error.
35415 Use char because int might match the return type of a GCC
35416 builtin and then its argument prototype would still apply. */
35417#ifdef __cplusplus
35418extern "C"
35419#endif
35420char __gcov_init ();
35421int
35422main ()
35423{
35424return __gcov_init ();
35425 ;
35426 return 0;
35427}
35428_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035429if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035430 ac_cv_lib_gcov___gcov_init=yes
35431else
cristy8b350f62009-11-15 23:12:43 +000035432 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035433fi
cristy8b350f62009-11-15 23:12:43 +000035434rm -f core conftest.err conftest.$ac_objext \
35435 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035436LIBS=$ac_check_lib_save_LIBS
35437fi
cristy8b350f62009-11-15 23:12:43 +000035438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035439$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035440if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035441 cat >>confdefs.h <<_ACEOF
35442#define HAVE_LIBGCOV 1
35443_ACEOF
35444
35445 LIBS="-lgcov $LIBS"
35446
35447fi
35448
35449 case "$target_os" in
35450 darwin*)
35451 OSX_GCOV_LDFLAG="-Wl,-single_module"
35452 ;;
35453 *)
35454 OSX_GCOV_LDFLAG=""
35455 ;;
35456 esac
35457
35458 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35459 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35460 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35461fi
35462
35463#
35464# Build library dependency list for libMagickCore
35465#
35466
cristyc6722092012-10-14 00:19:31 +000035467if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035468 MAGICK_DEP_LIBS="$LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035469else
cristy3a75f062012-09-08 23:29:40 +000035470 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035471fi
35472
35473
35474#
35475# Remove extraneous spaces from output variables (asthetic)
35476#
35477X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35478X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35479X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35480X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35481
35482CC=`echo $CC | sed -e 's/ */ /g'`
35483CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35484CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35485CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035486DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35487LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35488TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35489MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35490#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35491
35492# Pass only user-provided LIBS as "global" libraries
35493LIBS=$USER_LIBS
35494
35495#AC_SUBST(CPPFLAGS)
35496
35497#AC_SUBST(LDFLAGS)
35498#AC_SUBST(X_PRE_LIBS)
35499#AC_SUBST(X_LIBS)
35500#AC_SUBST(X_EXTRA_LIBS)
35501
35502MAGICK_CFLAGS=$CFLAGS
35503MAGICK_CXXFLAGS="$CXXFLAGS"
35504MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35505MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35506MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000035507MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035508
35509
35510
35511
35512
35513
35514
35515
35516# Set configured scripts to executable.
35517ac_config_commands="$ac_config_commands default"
35518
cristy2bd4b6e2012-07-22 15:29:11 +000035519ac_config_commands="$ac_config_commands magick.sh.in"
35520
cristy3ed852e2009-09-05 21:47:34 +000035521ac_config_commands="$ac_config_commands MagickCore-config.in"
35522
cristy3ed852e2009-09-05 21:47:34 +000035523ac_config_commands="$ac_config_commands MagickWand-config.in"
35524
cristy3ed852e2009-09-05 21:47:34 +000035525ac_config_commands="$ac_config_commands Magick++-config.in"
35526
35527ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35528
35529
cristyad38abe2012-12-23 23:03:21 +000035530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35531$as_echo "-------------------------------------------------------------" >&6; }
35532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35533$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035534cat >confcache <<\_ACEOF
35535# This file is a shell script that caches the results of configure
35536# tests run on this system so they can be shared between configure
35537# scripts and configure runs, see configure's option --config-cache.
35538# It is not useful on other systems. If it contains results you don't
35539# want to keep, you may remove or edit it.
35540#
35541# config.status only pays attention to the cache file if you give it
35542# the --recheck option to rerun configure.
35543#
35544# `ac_cv_env_foo' variables (set or unset) will be overridden when
35545# loading this file, other *unset* `ac_cv_foo' will be assigned the
35546# following values.
35547
35548_ACEOF
35549
35550# The following way of writing the cache mishandles newlines in values,
35551# but we know of no workaround that is simple, portable, and efficient.
35552# So, we kill variables containing newlines.
35553# Ultrix sh set writes to stderr and can't be redirected directly,
35554# and sets the high bit in the cache file unless we assign to the vars.
35555(
35556 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35557 eval ac_val=\$$ac_var
35558 case $ac_val in #(
35559 *${as_nl}*)
35560 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035561 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035562$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35563 esac
35564 case $ac_var in #(
35565 _ | IFS | as_nl) ;; #(
35566 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035567 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035568 esac ;;
35569 esac
35570 done
35571
35572 (set) 2>&1 |
35573 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35574 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035575 # `set' does not quote correctly, so add quotes: double-quote
35576 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035577 sed -n \
35578 "s/'/'\\\\''/g;
35579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35580 ;; #(
35581 *)
35582 # `set' quotes correctly as required by POSIX, so do not add quotes.
35583 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35584 ;;
35585 esac |
35586 sort
35587) |
35588 sed '
35589 /^ac_cv_env_/b end
35590 t clear
35591 :clear
35592 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35593 t end
35594 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35595 :end' >>confcache
35596if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35597 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035598 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035599 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035600$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035601 if test ! -f "$cache_file" || test -h "$cache_file"; then
35602 cat confcache >"$cache_file"
35603 else
35604 case $cache_file in #(
35605 */* | ?:*)
35606 mv -f confcache "$cache_file"$$ &&
35607 mv -f "$cache_file"$$ "$cache_file" ;; #(
35608 *)
35609 mv -f confcache "$cache_file" ;;
35610 esac
35611 fi
35612 fi
cristy3ed852e2009-09-05 21:47:34 +000035613 else
cristy8b350f62009-11-15 23:12:43 +000035614 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035615$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35616 fi
35617fi
35618rm -f confcache
35619
35620test "x$prefix" = xNONE && prefix=$ac_default_prefix
35621# Let make expand exec_prefix.
35622test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35623
35624DEFS=-DHAVE_CONFIG_H
35625
35626ac_libobjs=
35627ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035628U=
cristy3ed852e2009-09-05 21:47:34 +000035629for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35630 # 1. Remove the extension, and $U if already installed.
35631 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35632 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35633 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35634 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035635 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35636 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035637done
35638LIBOBJS=$ac_libobjs
35639
35640LTLIBOBJS=$ac_ltlibobjs
35641
35642
cristyc0890a62012-07-19 00:18:20 +000035643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35644$as_echo_n "checking that generated files are newer than configure... " >&6; }
35645 if test -n "$am_sleep_pid"; then
35646 # Hide warnings about reused PIDs.
35647 wait $am_sleep_pid 2>/dev/null
35648 fi
35649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35650$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035651 if test -n "$EXEEXT"; then
35652 am__EXEEXT_TRUE=
35653 am__EXEEXT_FALSE='#'
35654else
35655 am__EXEEXT_TRUE='#'
35656 am__EXEEXT_FALSE=
35657fi
cristy3ed852e2009-09-05 21:47:34 +000035658
cristy73bd4a52010-10-05 11:24:23 +000035659if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035660 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035661Usually this means the macro was only invoked conditionally." "$LINENO" 5
35662fi
35663if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035664 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035665Usually this means the macro was only invoked conditionally." "$LINENO" 5
35666fi
35667if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035668 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035669Usually this means the macro was only invoked conditionally." "$LINENO" 5
35670fi
35671if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035672 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035673Usually this means the macro was only invoked conditionally." "$LINENO" 5
35674fi
cristy9b86f202012-11-28 21:55:35 +000035675if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35676 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35677Usually this means the macro was only invoked conditionally." "$LINENO" 5
35678fi
cristy73bd4a52010-10-05 11:24:23 +000035679if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035680 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035681Usually this means the macro was only invoked conditionally." "$LINENO" 5
35682fi
35683if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035684 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035685Usually this means the macro was only invoked conditionally." "$LINENO" 5
35686fi
35687if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035688 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035689Usually this means the macro was only invoked conditionally." "$LINENO" 5
35690fi
35691if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035692 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035693Usually this means the macro was only invoked conditionally." "$LINENO" 5
35694fi
cristy73bd4a52010-10-05 11:24:23 +000035695if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035696 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035697Usually this means the macro was only invoked conditionally." "$LINENO" 5
35698fi
35699if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035700 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035701Usually this means the macro was only invoked conditionally." "$LINENO" 5
35702fi
cristy73bd4a52010-10-05 11:24:23 +000035703if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035704 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035705Usually this means the macro was only invoked conditionally." "$LINENO" 5
35706fi
cristy71d8c202012-03-20 17:05:01 +000035707if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35708 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35709Usually this means the macro was only invoked conditionally." "$LINENO" 5
35710fi
cristy73bd4a52010-10-05 11:24:23 +000035711
35712if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035713 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035714Usually this means the macro was only invoked conditionally." "$LINENO" 5
35715fi
35716if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035717 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035718Usually this means the macro was only invoked conditionally." "$LINENO" 5
35719fi
35720if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035721 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035722Usually this means the macro was only invoked conditionally." "$LINENO" 5
35723fi
35724if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035725 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035726Usually this means the macro was only invoked conditionally." "$LINENO" 5
35727fi
35728if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035729 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035730Usually this means the macro was only invoked conditionally." "$LINENO" 5
35731fi
35732if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035733 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035734Usually this means the macro was only invoked conditionally." "$LINENO" 5
35735fi
cristy5eef09f2012-10-16 12:08:28 +000035736if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35737 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35738Usually this means the macro was only invoked conditionally." "$LINENO" 5
35739fi
cristy73bd4a52010-10-05 11:24:23 +000035740if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035741 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035742Usually this means the macro was only invoked conditionally." "$LINENO" 5
35743fi
35744if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035745 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035746Usually this means the macro was only invoked conditionally." "$LINENO" 5
35747fi
35748if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035749 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035750Usually this means the macro was only invoked conditionally." "$LINENO" 5
35751fi
35752if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035753 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035754Usually this means the macro was only invoked conditionally." "$LINENO" 5
35755fi
35756if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035757 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035758Usually this means the macro was only invoked conditionally." "$LINENO" 5
35759fi
35760if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035761 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035762Usually this means the macro was only invoked conditionally." "$LINENO" 5
35763fi
35764if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035765 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035766Usually this means the macro was only invoked conditionally." "$LINENO" 5
35767fi
35768if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035769 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035770Usually this means the macro was only invoked conditionally." "$LINENO" 5
35771fi
35772if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035773 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035774Usually this means the macro was only invoked conditionally." "$LINENO" 5
35775fi
35776if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035777 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035778Usually this means the macro was only invoked conditionally." "$LINENO" 5
35779fi
35780if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035781 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035782Usually this means the macro was only invoked conditionally." "$LINENO" 5
35783fi
35784if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035785 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035786Usually this means the macro was only invoked conditionally." "$LINENO" 5
35787fi
35788if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035789 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035790Usually this means the macro was only invoked conditionally." "$LINENO" 5
35791fi
35792if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035793 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035794Usually this means the macro was only invoked conditionally." "$LINENO" 5
35795fi
cristyfbb0ef02010-12-19 02:32:11 +000035796if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35797 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35798Usually this means the macro was only invoked conditionally." "$LINENO" 5
35799fi
cristy854c9cf2013-08-10 21:03:06 +000035800if test -z "${MUPDF_DELEGATE_TRUE}" && test -z "${MUPDF_DELEGATE_FALSE}"; then
35801 as_fn_error $? "conditional \"MUPDF_DELEGATE\" was never defined.
35802Usually this means the macro was only invoked conditionally." "$LINENO" 5
35803fi
cristy73bd4a52010-10-05 11:24:23 +000035804if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035805 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035806Usually this means the macro was only invoked conditionally." "$LINENO" 5
35807fi
cristy41cbe8a2011-10-27 01:35:18 +000035808if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35809 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35810Usually this means the macro was only invoked conditionally." "$LINENO" 5
35811fi
cristya054b762012-03-26 23:16:00 +000035812if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35813 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035814Usually this means the macro was only invoked conditionally." "$LINENO" 5
35815fi
cristy73bd4a52010-10-05 11:24:23 +000035816if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035817 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035818Usually this means the macro was only invoked conditionally." "$LINENO" 5
35819fi
35820if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035821 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035822Usually this means the macro was only invoked conditionally." "$LINENO" 5
35823fi
35824if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035825 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035826Usually this means the macro was only invoked conditionally." "$LINENO" 5
35827fi
35828if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035829 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035830Usually this means the macro was only invoked conditionally." "$LINENO" 5
35831fi
cristyb1860752011-03-14 00:27:46 +000035832if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35833 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35834Usually this means the macro was only invoked conditionally." "$LINENO" 5
35835fi
cristy73bd4a52010-10-05 11:24:23 +000035836if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035837 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035838Usually this means the macro was only invoked conditionally." "$LINENO" 5
35839fi
35840if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035841 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035842Usually this means the macro was only invoked conditionally." "$LINENO" 5
35843fi
35844if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035845 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035846Usually this means the macro was only invoked conditionally." "$LINENO" 5
35847fi
35848if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035849 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035850Usually this means the macro was only invoked conditionally." "$LINENO" 5
35851fi
35852if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035853 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035854Usually this means the macro was only invoked conditionally." "$LINENO" 5
35855fi
35856if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035857 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035858Usually this means the macro was only invoked conditionally." "$LINENO" 5
35859fi
35860if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035861 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035862Usually this means the macro was only invoked conditionally." "$LINENO" 5
35863fi
35864if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035865 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035866Usually this means the macro was only invoked conditionally." "$LINENO" 5
35867fi
cristy3ed852e2009-09-05 21:47:34 +000035868
cristyda16f162011-02-19 23:52:17 +000035869: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035870ac_write_fail=0
35871ac_clean_files_save=$ac_clean_files
35872ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035873{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035874$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035875as_write_fail=0
35876cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035877#! $SHELL
35878# Generated by $as_me.
35879# Run this file to recreate the current configuration.
35880# Compiler output produced by configure, useful for debugging
35881# configure, is in config.log if it exists.
35882
35883debug=false
35884ac_cs_recheck=false
35885ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035886
cristy8b350f62009-11-15 23:12:43 +000035887SHELL=\${CONFIG_SHELL-$SHELL}
35888export SHELL
35889_ASEOF
35890cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35891## -------------------- ##
35892## M4sh Initialization. ##
35893## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035894
35895# Be more Bourne compatible
35896DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035897if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035898 emulate sh
35899 NULLCMD=:
35900 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35901 # is contrary to our usage. Disable this feature.
35902 alias -g '${1+"$@"}'='"$@"'
35903 setopt NO_GLOB_SUBST
35904else
cristy8b350f62009-11-15 23:12:43 +000035905 case `(set -o) 2>/dev/null` in #(
35906 *posix*) :
35907 set -o posix ;; #(
35908 *) :
35909 ;;
cristy3ed852e2009-09-05 21:47:34 +000035910esac
cristy3ed852e2009-09-05 21:47:34 +000035911fi
35912
35913
cristy3ed852e2009-09-05 21:47:34 +000035914as_nl='
35915'
35916export as_nl
35917# Printing a long string crashes Solaris 7 /usr/bin/printf.
35918as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35919as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35920as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035921# Prefer a ksh shell builtin over an external printf program on Solaris,
35922# but without wasting forks for bash or zsh.
35923if test -z "$BASH_VERSION$ZSH_VERSION" \
35924 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35925 as_echo='print -r --'
35926 as_echo_n='print -rn --'
35927elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035928 as_echo='printf %s\n'
35929 as_echo_n='printf %s'
35930else
35931 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35932 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35933 as_echo_n='/usr/ucb/echo -n'
35934 else
35935 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35936 as_echo_n_body='eval
35937 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035938 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035939 *"$as_nl"*)
35940 expr "X$arg" : "X\\(.*\\)$as_nl";
35941 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35942 esac;
35943 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35944 '
35945 export as_echo_n_body
35946 as_echo_n='sh -c $as_echo_n_body as_echo'
35947 fi
35948 export as_echo_body
35949 as_echo='sh -c $as_echo_body as_echo'
35950fi
35951
35952# The user is always right.
35953if test "${PATH_SEPARATOR+set}" != set; then
35954 PATH_SEPARATOR=:
35955 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35956 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35957 PATH_SEPARATOR=';'
35958 }
35959fi
35960
cristy3ed852e2009-09-05 21:47:34 +000035961
35962# IFS
35963# We need space, tab and new line, in precisely that order. Quoting is
35964# there to prevent editors from complaining about space-tab.
35965# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35966# splitting by setting IFS to empty value.)
35967IFS=" "" $as_nl"
35968
35969# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035970as_myself=
cristy8b350f62009-11-15 23:12:43 +000035971case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035972 *[\\/]* ) as_myself=$0 ;;
35973 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35974for as_dir in $PATH
35975do
35976 IFS=$as_save_IFS
35977 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035978 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35979 done
cristy3ed852e2009-09-05 21:47:34 +000035980IFS=$as_save_IFS
35981
35982 ;;
35983esac
35984# We did not find ourselves, most probably we were run as `sh COMMAND'
35985# in which case we are not to be found in the path.
35986if test "x$as_myself" = x; then
35987 as_myself=$0
35988fi
35989if test ! -f "$as_myself"; then
35990 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035991 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035992fi
35993
cristy8b350f62009-11-15 23:12:43 +000035994# Unset variables that we do not need and which cause bugs (e.g. in
35995# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35996# suppresses any "Segmentation fault" message there. '((' could
35997# trigger a bug in pdksh 5.2.14.
35998for as_var in BASH_ENV ENV MAIL MAILPATH
35999do eval test x\${$as_var+set} = xset \
36000 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036001done
36002PS1='$ '
36003PS2='> '
36004PS4='+ '
36005
36006# NLS nuisances.
36007LC_ALL=C
36008export LC_ALL
36009LANGUAGE=C
36010export LANGUAGE
36011
cristy8b350f62009-11-15 23:12:43 +000036012# CDPATH.
36013(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36014
36015
cristy98dddb52010-11-04 00:30:15 +000036016# as_fn_error STATUS ERROR [LINENO LOG_FD]
36017# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036018# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36019# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036020# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036021as_fn_error ()
36022{
cristy98dddb52010-11-04 00:30:15 +000036023 as_status=$1; test $as_status -eq 0 && as_status=1
36024 if test "$4"; then
36025 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36026 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036027 fi
cristy98dddb52010-11-04 00:30:15 +000036028 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036029 as_fn_exit $as_status
36030} # as_fn_error
36031
36032
36033# as_fn_set_status STATUS
36034# -----------------------
36035# Set $? to STATUS, without forking.
36036as_fn_set_status ()
36037{
36038 return $1
36039} # as_fn_set_status
36040
36041# as_fn_exit STATUS
36042# -----------------
36043# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36044as_fn_exit ()
36045{
36046 set +e
36047 as_fn_set_status $1
36048 exit $1
36049} # as_fn_exit
36050
36051# as_fn_unset VAR
36052# ---------------
36053# Portably unset VAR.
36054as_fn_unset ()
36055{
36056 { eval $1=; unset $1;}
36057}
36058as_unset=as_fn_unset
36059# as_fn_append VAR VALUE
36060# ----------------------
36061# Append the text in VALUE to the end of the definition contained in VAR. Take
36062# advantage of any shell optimizations that allow amortized linear growth over
36063# repeated appends, instead of the typical quadratic growth present in naive
36064# implementations.
36065if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36066 eval 'as_fn_append ()
36067 {
36068 eval $1+=\$2
36069 }'
36070else
36071 as_fn_append ()
36072 {
36073 eval $1=\$$1\$2
36074 }
36075fi # as_fn_append
36076
36077# as_fn_arith ARG...
36078# ------------------
36079# Perform arithmetic evaluation on the ARGs, and store the result in the
36080# global $as_val. Take advantage of shells that can avoid forks. The arguments
36081# must be portable across $(()) and expr.
36082if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36083 eval 'as_fn_arith ()
36084 {
36085 as_val=$(( $* ))
36086 }'
36087else
36088 as_fn_arith ()
36089 {
36090 as_val=`expr "$@" || test $? -eq 1`
36091 }
36092fi # as_fn_arith
36093
36094
cristy3ed852e2009-09-05 21:47:34 +000036095if expr a : '\(a\)' >/dev/null 2>&1 &&
36096 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36097 as_expr=expr
36098else
36099 as_expr=false
36100fi
36101
36102if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36103 as_basename=basename
36104else
36105 as_basename=false
36106fi
36107
cristy8b350f62009-11-15 23:12:43 +000036108if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36109 as_dirname=dirname
36110else
36111 as_dirname=false
36112fi
cristy3ed852e2009-09-05 21:47:34 +000036113
cristy3ed852e2009-09-05 21:47:34 +000036114as_me=`$as_basename -- "$0" ||
36115$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36116 X"$0" : 'X\(//\)$' \| \
36117 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36118$as_echo X/"$0" |
36119 sed '/^.*\/\([^/][^/]*\)\/*$/{
36120 s//\1/
36121 q
36122 }
36123 /^X\/\(\/\/\)$/{
36124 s//\1/
36125 q
36126 }
36127 /^X\/\(\/\).*/{
36128 s//\1/
36129 q
36130 }
36131 s/.*/./; q'`
36132
cristy8b350f62009-11-15 23:12:43 +000036133# Avoid depending upon Character Ranges.
36134as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36135as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36136as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36137as_cr_digits='0123456789'
36138as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036139
36140ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036141case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036142-n*)
cristy8b350f62009-11-15 23:12:43 +000036143 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036144 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036145 xy) ECHO_C='\c';;
36146 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36147 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036148 esac;;
36149*)
36150 ECHO_N='-n';;
36151esac
cristy3ed852e2009-09-05 21:47:34 +000036152
36153rm -f conf$$ conf$$.exe conf$$.file
36154if test -d conf$$.dir; then
36155 rm -f conf$$.dir/conf$$.file
36156else
36157 rm -f conf$$.dir
36158 mkdir conf$$.dir 2>/dev/null
36159fi
36160if (echo >conf$$.file) 2>/dev/null; then
36161 if ln -s conf$$.file conf$$ 2>/dev/null; then
36162 as_ln_s='ln -s'
36163 # ... but there are two gotchas:
36164 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36165 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036166 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036167 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036168 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036169 elif ln conf$$.file conf$$ 2>/dev/null; then
36170 as_ln_s=ln
36171 else
cristy14fefe52012-05-21 00:59:18 +000036172 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036173 fi
36174else
cristy14fefe52012-05-21 00:59:18 +000036175 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036176fi
36177rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36178rmdir conf$$.dir 2>/dev/null
36179
cristy8b350f62009-11-15 23:12:43 +000036180
36181# as_fn_mkdir_p
36182# -------------
36183# Create "$as_dir" as a directory, including parents if necessary.
36184as_fn_mkdir_p ()
36185{
36186
36187 case $as_dir in #(
36188 -*) as_dir=./$as_dir;;
36189 esac
36190 test -d "$as_dir" || eval $as_mkdir_p || {
36191 as_dirs=
36192 while :; do
36193 case $as_dir in #(
36194 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36195 *) as_qdir=$as_dir;;
36196 esac
36197 as_dirs="'$as_qdir' $as_dirs"
36198 as_dir=`$as_dirname -- "$as_dir" ||
36199$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36200 X"$as_dir" : 'X\(//\)[^/]' \| \
36201 X"$as_dir" : 'X\(//\)$' \| \
36202 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36203$as_echo X"$as_dir" |
36204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36205 s//\1/
36206 q
36207 }
36208 /^X\(\/\/\)[^/].*/{
36209 s//\1/
36210 q
36211 }
36212 /^X\(\/\/\)$/{
36213 s//\1/
36214 q
36215 }
36216 /^X\(\/\).*/{
36217 s//\1/
36218 q
36219 }
36220 s/.*/./; q'`
36221 test -d "$as_dir" && break
36222 done
36223 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036224 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036225
36226
36227} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036228if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036229 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036230else
36231 test -d ./-p && rmdir ./-p
36232 as_mkdir_p=false
36233fi
36234
cristy14fefe52012-05-21 00:59:18 +000036235
36236# as_fn_executable_p FILE
36237# -----------------------
36238# Test if FILE is an executable regular file.
36239as_fn_executable_p ()
36240{
36241 test -f "$1" && test -x "$1"
36242} # as_fn_executable_p
36243as_test_x='test -x'
36244as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036245
36246# Sed expression to map a string onto a valid CPP name.
36247as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36248
36249# Sed expression to map a string onto a valid variable name.
36250as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36251
36252
36253exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036254## ----------------------------------- ##
36255## Main body of $CONFIG_STATUS script. ##
36256## ----------------------------------- ##
36257_ASEOF
36258test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036259
cristy8b350f62009-11-15 23:12:43 +000036260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36261# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036262# report actual input values of CONFIG_FILES etc. instead of their
36263# values after options handling.
36264ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036265This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036266generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036267
36268 CONFIG_FILES = $CONFIG_FILES
36269 CONFIG_HEADERS = $CONFIG_HEADERS
36270 CONFIG_LINKS = $CONFIG_LINKS
36271 CONFIG_COMMANDS = $CONFIG_COMMANDS
36272 $ $0 $@
36273
36274on `(hostname || uname -n) 2>/dev/null | sed 1q`
36275"
36276
36277_ACEOF
36278
36279case $ac_config_files in *"
36280"*) set x $ac_config_files; shift; ac_config_files=$*;;
36281esac
36282
36283case $ac_config_headers in *"
36284"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36285esac
36286
36287
36288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36289# Files that config.status was made for.
36290config_files="$ac_config_files"
36291config_headers="$ac_config_headers"
36292config_commands="$ac_config_commands"
36293
36294_ACEOF
36295
36296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36297ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036298\`$as_me' instantiates files and other configuration actions
36299from templates according to the current configuration. Unless the files
36300and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036301
cristy8b350f62009-11-15 23:12:43 +000036302Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036303
36304 -h, --help print this help, then exit
36305 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036306 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036307 -q, --quiet, --silent
36308 do not print progress messages
36309 -d, --debug don't remove temporary files
36310 --recheck update $as_me by reconfiguring in the same conditions
36311 --file=FILE[:TEMPLATE]
36312 instantiate the configuration file FILE
36313 --header=FILE[:TEMPLATE]
36314 instantiate the configuration header FILE
36315
36316Configuration files:
36317$config_files
36318
36319Configuration headers:
36320$config_headers
36321
36322Configuration commands:
36323$config_commands
36324
cristy8b350f62009-11-15 23:12:43 +000036325Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036326
36327_ACEOF
36328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036329ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036330ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036331ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036332configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036333 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036334
cristy14fefe52012-05-21 00:59:18 +000036335Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036336This config.status script is free software; the Free Software Foundation
36337gives unlimited permission to copy, distribute and modify it."
36338
36339ac_pwd='$ac_pwd'
36340srcdir='$srcdir'
36341INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036342MKDIR_P='$MKDIR_P'
36343AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036344test -n "\$AWK" || AWK=awk
36345_ACEOF
36346
36347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36348# The default lists apply if the user does not specify any file.
36349ac_need_defaults=:
36350while test $# != 0
36351do
36352 case $1 in
cristyda16f162011-02-19 23:52:17 +000036353 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036354 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36355 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36356 ac_shift=:
36357 ;;
cristyda16f162011-02-19 23:52:17 +000036358 --*=)
36359 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36360 ac_optarg=
36361 ac_shift=:
36362 ;;
cristy3ed852e2009-09-05 21:47:34 +000036363 *)
36364 ac_option=$1
36365 ac_optarg=$2
36366 ac_shift=shift
36367 ;;
36368 esac
36369
36370 case $ac_option in
36371 # Handling of the options.
36372 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36373 ac_cs_recheck=: ;;
36374 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36375 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036376 --config | --confi | --conf | --con | --co | --c )
36377 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036378 --debug | --debu | --deb | --de | --d | -d )
36379 debug=: ;;
36380 --file | --fil | --fi | --f )
36381 $ac_shift
36382 case $ac_optarg in
36383 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036384 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036385 esac
cristy8b350f62009-11-15 23:12:43 +000036386 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036387 ac_need_defaults=false;;
36388 --header | --heade | --head | --hea )
36389 $ac_shift
36390 case $ac_optarg in
36391 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36392 esac
cristy8b350f62009-11-15 23:12:43 +000036393 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036394 ac_need_defaults=false;;
36395 --he | --h)
36396 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036397 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036398Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036399 --help | --hel | -h )
36400 $as_echo "$ac_cs_usage"; exit ;;
36401 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36402 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36403 ac_cs_silent=: ;;
36404
36405 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036406 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036407Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036408
cristy8b350f62009-11-15 23:12:43 +000036409 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036410 ac_need_defaults=false ;;
36411
36412 esac
36413 shift
36414done
36415
36416ac_configure_extra_args=
36417
36418if $ac_cs_silent; then
36419 exec 6>/dev/null
36420 ac_configure_extra_args="$ac_configure_extra_args --silent"
36421fi
36422
36423_ACEOF
36424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36425if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036426 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036427 shift
36428 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36429 CONFIG_SHELL='$SHELL'
36430 export CONFIG_SHELL
36431 exec "\$@"
36432fi
36433
36434_ACEOF
36435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36436exec 5>>config.log
36437{
36438 echo
36439 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36440## Running $as_me. ##
36441_ASBOX
36442 $as_echo "$ac_log"
36443} >&5
36444
36445_ACEOF
36446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036447#
36448# INIT-COMMANDS
36449#
36450PACKAGE="$PACKAGE"
36451AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36452
36453
36454# The HP-UX ksh and POSIX shell print the target directory to stdout
36455# if CDPATH is set.
36456(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36457
36458sed_quote_subst='$sed_quote_subst'
36459double_quote_subst='$double_quote_subst'
36460delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036461SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36462Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36463GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36464EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36465FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36466SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36467ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36468LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36469macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36470macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36471AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36472DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36473OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36474enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36475enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36476pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36477enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036478PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036479host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36480host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36481host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36482build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36483build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36484build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36485NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36486LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36487max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36488ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36489exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36490lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36491lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36492lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036493lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36494lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036495reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36496reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36497deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36498file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036499file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36500want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36501sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036502AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36503AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036504archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036505STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36506RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36507old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36508old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36509old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36510lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36511CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36512CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36513compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36514GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36515lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36516lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36517lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36518lt_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 +000036519nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36520lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036521objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36522MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36523lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036524lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036525lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036526lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36527lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36528need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036529MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036530DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36531NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36532LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36533OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36534OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36535libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36536shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36537extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36538archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36539enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36540export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36541whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36542compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36543old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36544old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36545archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36546archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36547module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36548module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36549with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36550allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36551no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36552hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036553hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36554hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36555hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36556hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36557hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36558hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36559inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36560link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036561always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36562export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36563exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36564include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36565prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036566postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036567file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36568variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36569need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36570need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36571version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36572runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36573shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36574shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36575libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36576library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36577soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36578install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36579postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36580postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36581finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36582finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36583hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36584sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36585sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36586hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36587enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36588enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36589enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36590old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36591striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36592compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36593predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36594postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36595predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36596postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36597compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36598LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36599reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36600reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36601old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36602compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36603GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36604lt_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 +000036605lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036606lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036607lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36608lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36609archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36610enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36611export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36612whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36613compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36614old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36615old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36616archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36617archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36618module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36619module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36620with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36621allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36622no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36623hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036624hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36625hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36626hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36627hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36628hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36629hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36630inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36631link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036632always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36633export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36634exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36635include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36636prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036637postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036638file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36639hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36640compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36641predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36642postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36643predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36644postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36645compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036646
36647LTCC='$LTCC'
36648LTCFLAGS='$LTCFLAGS'
36649compiler='$compiler_DEFAULT'
36650
cristy0c60a692010-11-04 01:09:47 +000036651# A function that is used when there is no print builtin or printf.
36652func_fallback_echo ()
36653{
36654 eval 'cat <<_LTECHO_EOF
36655\$1
36656_LTECHO_EOF'
36657}
36658
cristy73bd4a52010-10-05 11:24:23 +000036659# Quote evaled strings.
36660for var in SED \
36661GREP \
36662EGREP \
36663FGREP \
cristy0c60a692010-11-04 01:09:47 +000036664SHELL \
36665ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036666LD \
cristy0c60a692010-11-04 01:09:47 +000036667AS \
36668DLLTOOL \
36669OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036670PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036671NM \
36672LN_S \
36673lt_SP2NL \
36674lt_NL2SP \
36675reload_flag \
36676deplibs_check_method \
36677file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036678file_magic_glob \
36679want_nocaseglob \
36680sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036681AR \
36682AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036683archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036684STRIP \
36685RANLIB \
36686CC \
36687CFLAGS \
36688compiler \
36689lt_cv_sys_global_symbol_pipe \
36690lt_cv_sys_global_symbol_to_cdecl \
36691lt_cv_sys_global_symbol_to_c_name_address \
36692lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036693nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036694lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036695lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036696lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036697lt_prog_compiler_static \
36698lt_cv_prog_compiler_c_o \
36699need_locks \
cristyda16f162011-02-19 23:52:17 +000036700MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036701DSYMUTIL \
36702NMEDIT \
36703LIPO \
36704OTOOL \
36705OTOOL64 \
36706shrext_cmds \
36707export_dynamic_flag_spec \
36708whole_archive_flag_spec \
36709compiler_needs_object \
36710with_gnu_ld \
36711allow_undefined_flag \
36712no_undefined_flag \
36713hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036714hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036715exclude_expsyms \
36716include_expsyms \
36717file_list_spec \
36718variables_saved_for_relink \
36719libname_spec \
36720library_names_spec \
36721soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036722install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036723finish_eval \
36724old_striplib \
36725striplib \
36726compiler_lib_search_dirs \
36727predep_objects \
36728postdep_objects \
36729predeps \
36730postdeps \
36731compiler_lib_search_path \
36732LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036733reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036734compiler_CXX \
36735lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036736lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036737lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036738lt_prog_compiler_static_CXX \
36739lt_cv_prog_compiler_c_o_CXX \
36740export_dynamic_flag_spec_CXX \
36741whole_archive_flag_spec_CXX \
36742compiler_needs_object_CXX \
36743with_gnu_ld_CXX \
36744allow_undefined_flag_CXX \
36745no_undefined_flag_CXX \
36746hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036747hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036748exclude_expsyms_CXX \
36749include_expsyms_CXX \
36750file_list_spec_CXX \
36751compiler_lib_search_dirs_CXX \
36752predep_objects_CXX \
36753postdep_objects_CXX \
36754predeps_CXX \
36755postdeps_CXX \
36756compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036757 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036758 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036759 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036760 ;;
36761 *)
36762 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36763 ;;
36764 esac
36765done
36766
36767# Double-quote double-evaled strings.
36768for var in reload_cmds \
36769old_postinstall_cmds \
36770old_postuninstall_cmds \
36771old_archive_cmds \
36772extract_expsyms_cmds \
36773old_archive_from_new_cmds \
36774old_archive_from_expsyms_cmds \
36775archive_cmds \
36776archive_expsym_cmds \
36777module_cmds \
36778module_expsym_cmds \
36779export_symbols_cmds \
36780prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036781postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036782postinstall_cmds \
36783postuninstall_cmds \
36784finish_cmds \
36785sys_lib_search_path_spec \
36786sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036787reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036788old_archive_cmds_CXX \
36789old_archive_from_new_cmds_CXX \
36790old_archive_from_expsyms_cmds_CXX \
36791archive_cmds_CXX \
36792archive_expsym_cmds_CXX \
36793module_cmds_CXX \
36794module_expsym_cmds_CXX \
36795export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036796prelink_cmds_CXX \
36797postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036798 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036799 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036800 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036801 ;;
36802 *)
36803 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36804 ;;
36805 esac
36806done
36807
cristy73bd4a52010-10-05 11:24:23 +000036808ac_aux_dir='$ac_aux_dir'
36809xsi_shell='$xsi_shell'
36810lt_shell_append='$lt_shell_append'
36811
36812# See if we are running on zsh, and set the options which allow our
36813# commands through without removal of \ escapes INIT.
36814if test -n "\${ZSH_VERSION+set}" ; then
36815 setopt NO_GLOB_SUBST
36816fi
36817
36818
36819 PACKAGE='$PACKAGE'
36820 VERSION='$VERSION'
36821 TIMESTAMP='$TIMESTAMP'
36822 RM='$RM'
36823 ofile='$ofile'
36824
36825
36826
36827
36828
36829
cristy3ed852e2009-09-05 21:47:34 +000036830_ACEOF
36831
36832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36833
36834# Handling of arguments.
36835for ac_config_target in $ac_config_targets
36836do
36837 case $ac_config_target in
36838 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036839 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036840 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036841 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36842 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36843 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36844 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36845 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036846 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036847 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036848 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36849 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36850 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36851 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36852 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036853 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036854 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036855 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36856 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36857 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036858 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36859 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000036860 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000036861 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000036862 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000036863 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000036864 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
36865 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
36866 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
36867 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000036868 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36869 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36870 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36871 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36872 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36873 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36874 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36875 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36876 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36877 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36878 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36879 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036880 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36881 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036882 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36883 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036884 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000036885 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036886 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036887 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036888 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36889 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36890
cristy98dddb52010-11-04 00:30:15 +000036891 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036892 esac
36893done
36894
36895
36896# If the user did not use the arguments to specify the items to instantiate,
36897# then the envvar interface is used. Set only those that are not.
36898# We use the long form for the default assignment because of an extremely
36899# bizarre bug on SunOS 4.1.3.
36900if $ac_need_defaults; then
36901 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36902 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36903 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36904fi
36905
36906# Have a temporary directory for convenience. Make it in the build tree
36907# simply because there is no reason against having it here, and in addition,
36908# creating and moving files from /tmp can sometimes cause problems.
36909# Hook for its removal unless debugging.
36910# Note that there is a small window in which the directory will not be cleaned:
36911# after its creation but before its name has been assigned to `$tmp'.
36912$debug ||
36913{
cristyda16f162011-02-19 23:52:17 +000036914 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036915 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036916 : "${ac_tmp:=$tmp}"
36917 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036918' 0
cristy8b350f62009-11-15 23:12:43 +000036919 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036920}
36921# Create a (secure) tmp directory for tmp files.
36922
36923{
36924 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036925 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036926} ||
36927{
36928 tmp=./conf$$-$RANDOM
36929 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036930} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036931ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036932
36933# Set up the scripts for CONFIG_FILES section.
36934# No need to generate them if there are no CONFIG_FILES.
36935# This happens for instance with `./config.status config.h'.
36936if test -n "$CONFIG_FILES"; then
36937
36938
cristy8b350f62009-11-15 23:12:43 +000036939ac_cr=`echo X | tr X '\015'`
36940# On cygwin, bash can eat \r inside `` if the user requested igncr.
36941# But we know of no other shell where ac_cr would be empty at this
36942# point, so we can use a bashism as a fallback.
36943if test "x$ac_cr" = x; then
36944 eval ac_cr=\$\'\\r\'
36945fi
cristy3ed852e2009-09-05 21:47:34 +000036946ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36947if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036948 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036949else
36950 ac_cs_awk_cr=$ac_cr
36951fi
36952
cristyda16f162011-02-19 23:52:17 +000036953echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036954_ACEOF
36955
36956
36957{
36958 echo "cat >conf$$subs.awk <<_ACEOF" &&
36959 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36960 echo "_ACEOF"
36961} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036962 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36963ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036964ac_delim='%!_!# '
36965for ac_last_try in false false false false false :; do
36966 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036967 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036968
36969 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36970 if test $ac_delim_n = $ac_delim_num; then
36971 break
36972 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036973 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036974 else
36975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36976 fi
36977done
36978rm -f conf$$subs.sh
36979
36980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036981cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036982_ACEOF
36983sed -n '
36984h
36985s/^/S["/; s/!.*/"]=/
36986p
36987g
36988s/^[^!]*!//
36989:repl
36990t repl
36991s/'"$ac_delim"'$//
36992t delim
36993:nl
36994h
cristycd4c5312009-11-22 01:19:08 +000036995s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036996t more1
36997s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36998p
36999n
37000b repl
37001:more1
37002s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37003p
37004g
37005s/.\{148\}//
37006t nl
37007:delim
37008h
cristycd4c5312009-11-22 01:19:08 +000037009s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037010t more2
37011s/["\\]/\\&/g; s/^/"/; s/$/"/
37012p
37013b
37014:more2
37015s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37016p
37017g
37018s/.\{148\}//
37019t delim
37020' <conf$$subs.awk | sed '
37021/^[^""]/{
37022 N
37023 s/\n//
37024}
37025' >>$CONFIG_STATUS || ac_write_fail=1
37026rm -f conf$$subs.awk
37027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37028_ACAWK
cristyda16f162011-02-19 23:52:17 +000037029cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037030 for (key in S) S_is_set[key] = 1
37031 FS = ""
37032
37033}
37034{
37035 line = $ 0
37036 nfields = split(line, field, "@")
37037 substed = 0
37038 len = length(field[1])
37039 for (i = 2; i < nfields; i++) {
37040 key = field[i]
37041 keylen = length(key)
37042 if (S_is_set[key]) {
37043 value = S[key]
37044 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37045 len += length(value) + length(field[++i])
37046 substed = 1
37047 } else
37048 len += 1 + keylen
37049 }
37050
37051 print line
37052}
37053
37054_ACAWK
37055_ACEOF
37056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37057if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37058 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37059else
37060 cat
cristyda16f162011-02-19 23:52:17 +000037061fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037062 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037063_ACEOF
37064
cristy98dddb52010-11-04 00:30:15 +000037065# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37066# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037067# trailing colons and then remove the whole line if VPATH becomes empty
37068# (actually we leave an empty line to preserve line numbers).
37069if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037070 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37071h
37072s///
37073s/^/:/
37074s/[ ]*$/:/
37075s/:\$(srcdir):/:/g
37076s/:\${srcdir}:/:/g
37077s/:@srcdir@:/:/g
37078s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037079s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037080x
37081s/\(=[ ]*\).*/\1/
37082G
37083s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037084s/^[^=]*=[ ]*$//
37085}'
37086fi
37087
37088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37089fi # test -n "$CONFIG_FILES"
37090
37091# Set up the scripts for CONFIG_HEADERS section.
37092# No need to generate them if there are no CONFIG_HEADERS.
37093# This happens for instance with `./config.status Makefile'.
37094if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037095cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037096BEGIN {
37097_ACEOF
37098
37099# Transform confdefs.h into an awk script `defines.awk', embedded as
37100# here-document in config.status, that substitutes the proper values into
37101# config.h.in to produce config.h.
37102
37103# Create a delimiter string that does not exist in confdefs.h, to ease
37104# handling of long lines.
37105ac_delim='%!_!# '
37106for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037107 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37108 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037109 break
37110 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037111 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037112 else
37113 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37114 fi
37115done
37116
37117# For the awk script, D is an array of macro values keyed by name,
37118# likewise P contains macro parameters if any. Preserve backslash
37119# newline sequences.
37120
37121ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37122sed -n '
37123s/.\{148\}/&'"$ac_delim"'/g
37124t rset
37125:rset
37126s/^[ ]*#[ ]*define[ ][ ]*/ /
37127t def
37128d
37129:def
37130s/\\$//
37131t bsnl
37132s/["\\]/\\&/g
37133s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37134D["\1"]=" \3"/p
37135s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37136d
37137:bsnl
37138s/["\\]/\\&/g
37139s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37140D["\1"]=" \3\\\\\\n"\\/p
37141t cont
37142s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37143t cont
37144d
37145:cont
37146n
37147s/.\{148\}/&'"$ac_delim"'/g
37148t clear
37149:clear
37150s/\\$//
37151t bsnlc
37152s/["\\]/\\&/g; s/^/"/; s/$/"/p
37153d
37154:bsnlc
37155s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37156b cont
37157' <confdefs.h | sed '
37158s/'"$ac_delim"'/"\\\
37159"/g' >>$CONFIG_STATUS || ac_write_fail=1
37160
37161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37162 for (key in D) D_is_set[key] = 1
37163 FS = ""
37164}
37165/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37166 line = \$ 0
37167 split(line, arg, " ")
37168 if (arg[1] == "#") {
37169 defundef = arg[2]
37170 mac1 = arg[3]
37171 } else {
37172 defundef = substr(arg[1], 2)
37173 mac1 = arg[2]
37174 }
37175 split(mac1, mac2, "(") #)
37176 macro = mac2[1]
37177 prefix = substr(line, 1, index(line, defundef) - 1)
37178 if (D_is_set[macro]) {
37179 # Preserve the white space surrounding the "#".
37180 print prefix "define", macro P[macro] D[macro]
37181 next
37182 } else {
37183 # Replace #undef with comments. This is necessary, for example,
37184 # in the case of _POSIX_SOURCE, which is predefined and required
37185 # on some systems where configure will not decide to define it.
37186 if (defundef == "undef") {
37187 print "/*", prefix defundef, macro, "*/"
37188 next
37189 }
37190 }
37191}
37192{ print }
37193_ACAWK
37194_ACEOF
37195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037196 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037197fi # test -n "$CONFIG_HEADERS"
37198
37199
37200eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37201shift
37202for ac_tag
37203do
37204 case $ac_tag in
37205 :[FHLC]) ac_mode=$ac_tag; continue;;
37206 esac
37207 case $ac_mode$ac_tag in
37208 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037209 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037210 :[FH]-) ac_tag=-:-;;
37211 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37212 esac
37213 ac_save_IFS=$IFS
37214 IFS=:
37215 set x $ac_tag
37216 IFS=$ac_save_IFS
37217 shift
37218 ac_file=$1
37219 shift
37220
37221 case $ac_mode in
37222 :L) ac_source=$1;;
37223 :[FH])
37224 ac_file_inputs=
37225 for ac_f
37226 do
37227 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037228 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037229 *) # Look for the file first in the build tree, then in the source tree
37230 # (if the path is not absolute). The absolute path cannot be DOS-style,
37231 # because $ac_f cannot contain `:'.
37232 test -f "$ac_f" ||
37233 case $ac_f in
37234 [\\/$]*) false;;
37235 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37236 esac ||
cristy98dddb52010-11-04 00:30:15 +000037237 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037238 esac
37239 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037240 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037241 done
37242
37243 # Let's still pretend it is `configure' which instantiates (i.e., don't
37244 # use $as_me), people would be surprised to read:
37245 # /* config.h. Generated by config.status. */
37246 configure_input='Generated from '`
37247 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37248 `' by configure.'
37249 if test x"$ac_file" != x-; then
37250 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037251 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037252$as_echo "$as_me: creating $ac_file" >&6;}
37253 fi
37254 # Neutralize special characters interpreted by sed in replacement strings.
37255 case $configure_input in #(
37256 *\&* | *\|* | *\\* )
37257 ac_sed_conf_input=`$as_echo "$configure_input" |
37258 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37259 *) ac_sed_conf_input=$configure_input;;
37260 esac
37261
37262 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037263 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037264 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037265 esac
37266 ;;
37267 esac
37268
37269 ac_dir=`$as_dirname -- "$ac_file" ||
37270$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37271 X"$ac_file" : 'X\(//\)[^/]' \| \
37272 X"$ac_file" : 'X\(//\)$' \| \
37273 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37274$as_echo X"$ac_file" |
37275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37276 s//\1/
37277 q
37278 }
37279 /^X\(\/\/\)[^/].*/{
37280 s//\1/
37281 q
37282 }
37283 /^X\(\/\/\)$/{
37284 s//\1/
37285 q
37286 }
37287 /^X\(\/\).*/{
37288 s//\1/
37289 q
37290 }
37291 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037292 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037293 ac_builddir=.
37294
37295case "$ac_dir" in
37296.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37297*)
37298 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37299 # A ".." for each directory in $ac_dir_suffix.
37300 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37301 case $ac_top_builddir_sub in
37302 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37303 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37304 esac ;;
37305esac
37306ac_abs_top_builddir=$ac_pwd
37307ac_abs_builddir=$ac_pwd$ac_dir_suffix
37308# for backward compatibility:
37309ac_top_builddir=$ac_top_build_prefix
37310
37311case $srcdir in
37312 .) # We are building in place.
37313 ac_srcdir=.
37314 ac_top_srcdir=$ac_top_builddir_sub
37315 ac_abs_top_srcdir=$ac_pwd ;;
37316 [\\/]* | ?:[\\/]* ) # Absolute name.
37317 ac_srcdir=$srcdir$ac_dir_suffix;
37318 ac_top_srcdir=$srcdir
37319 ac_abs_top_srcdir=$srcdir ;;
37320 *) # Relative name.
37321 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37322 ac_top_srcdir=$ac_top_build_prefix$srcdir
37323 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37324esac
37325ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37326
37327
37328 case $ac_mode in
37329 :F)
37330 #
37331 # CONFIG_FILE
37332 #
37333
37334 case $INSTALL in
37335 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37336 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37337 esac
cristy73bd4a52010-10-05 11:24:23 +000037338 ac_MKDIR_P=$MKDIR_P
37339 case $MKDIR_P in
37340 [\\/$]* | ?:[\\/]* ) ;;
37341 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37342 esac
cristy3ed852e2009-09-05 21:47:34 +000037343_ACEOF
37344
37345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37346# If the template does not know about datarootdir, expand it.
37347# FIXME: This hack should be removed a few years after 2.60.
37348ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037349ac_sed_dataroot='
37350/datarootdir/ {
37351 p
37352 q
37353}
37354/@datadir@/p
37355/@docdir@/p
37356/@infodir@/p
37357/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037358/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037359case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37360*datarootdir*) ac_datarootdir_seen=yes;;
37361*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037363$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37364_ACEOF
37365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37366 ac_datarootdir_hack='
37367 s&@datadir@&$datadir&g
37368 s&@docdir@&$docdir&g
37369 s&@infodir@&$infodir&g
37370 s&@localedir@&$localedir&g
37371 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037372 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037373esac
37374_ACEOF
37375
37376# Neutralize VPATH when `$srcdir' = `.'.
37377# Shell code in configure.ac might set extrasub.
37378# FIXME: do we really want to maintain this feature?
37379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37380ac_sed_extra="$ac_vpsub
37381$extrasub
37382_ACEOF
37383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37384:t
37385/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37386s|@configure_input@|$ac_sed_conf_input|;t t
37387s&@top_builddir@&$ac_top_builddir_sub&;t t
37388s&@top_build_prefix@&$ac_top_build_prefix&;t t
37389s&@srcdir@&$ac_srcdir&;t t
37390s&@abs_srcdir@&$ac_abs_srcdir&;t t
37391s&@top_srcdir@&$ac_top_srcdir&;t t
37392s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37393s&@builddir@&$ac_builddir&;t t
37394s&@abs_builddir@&$ac_abs_builddir&;t t
37395s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37396s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037397s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037398$ac_datarootdir_hack
37399"
cristyda16f162011-02-19 23:52:17 +000037400eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37401 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037402
37403test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037404 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37405 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37406 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037408which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037409$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037410which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037411
cristyda16f162011-02-19 23:52:17 +000037412 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037413 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037414 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37415 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037416 esac \
cristy98dddb52010-11-04 00:30:15 +000037417 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037418 ;;
37419 :H)
37420 #
37421 # CONFIG_HEADER
37422 #
37423 if test x"$ac_file" != x-; then
37424 {
37425 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037426 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37427 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037428 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037429 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037430 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037431$as_echo "$as_me: $ac_file is unchanged" >&6;}
37432 else
37433 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037434 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037435 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037436 fi
37437 else
37438 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037439 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037440 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037441 fi
cristy73bd4a52010-10-05 11:24:23 +000037442# Compute "$ac_file"'s index in $config_headers.
37443_am_arg="$ac_file"
37444_am_stamp_count=1
37445for _am_header in $config_headers :; do
37446 case $_am_header in
37447 $_am_arg | $_am_arg:* )
37448 break ;;
37449 * )
37450 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37451 esac
37452done
37453echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37454$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37455 X"$_am_arg" : 'X\(//\)[^/]' \| \
37456 X"$_am_arg" : 'X\(//\)$' \| \
37457 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37458$as_echo X"$_am_arg" |
37459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37460 s//\1/
37461 q
37462 }
37463 /^X\(\/\/\)[^/].*/{
37464 s//\1/
37465 q
37466 }
37467 /^X\(\/\/\)$/{
37468 s//\1/
37469 q
37470 }
37471 /^X\(\/\).*/{
37472 s//\1/
37473 q
37474 }
37475 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037476 ;;
37477
cristy8b350f62009-11-15 23:12:43 +000037478 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037479$as_echo "$as_me: executing $ac_file commands" >&6;}
37480 ;;
37481 esac
37482
37483
37484 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037485 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037486ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37487ac_prefix_conf_PKG=`echo MagickCore`
37488ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37489ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37490ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37491if test ".$ac_prefix_conf_INP" = "."; then
37492 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37493 case "$ac_file" in
37494 *.h) ac_prefix_conf_INP=$ac_file ;;
37495 *)
37496 esac
37497 test ".$ac_prefix_conf_INP" != "." && break
37498 done
37499fi
37500if test ".$ac_prefix_conf_INP" = "."; then
37501 case "$ac_prefix_conf_OUT" in
37502 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37503 ;;
37504 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37505 ;;
37506 *) ac_prefix_conf_INP=config.h
37507 ;;
37508 esac
37509fi
37510if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037511 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037512else
37513 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37514 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37515 fi fi
37516 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37517$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37518 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037519 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37520 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37521 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37522 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37523 $as_echo "#endif/" >> conftest.prefix
37524 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37525 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37526 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037527 # now executing _script on _DEF input to create _OUT output file
37528 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37529 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37530 echo ' ' >>$tmp/pconfig.h
37531 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37532
37533 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37534 echo ' ' >>$tmp/pconfig.h
37535 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37536 echo "#endif" >>$tmp/pconfig.h
37537 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37538 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37539$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37540 else
37541 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37542$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37543 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37544 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37545 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37546$as_echo X"$ac_prefix_conf_OUT" |
37547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37548 s//\1/
37549 q
37550 }
37551 /^X\(\/\/\)[^/].*/{
37552 s//\1/
37553 q
37554 }
37555 /^X\(\/\/\)$/{
37556 s//\1/
37557 q
37558 }
37559 /^X\(\/\).*/{
37560 s//\1/
37561 q
37562 }
37563 s/.*/./; q'`
37564 as_dir="$ac_dir"; as_fn_mkdir_p
37565 rm -f "$ac_prefix_conf_OUT"
37566 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37567 fi
37568 cp conftest.prefix _configs.sed
37569 else
cristy98dddb52010-11-04 00:30:15 +000037570 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 +000037571 fi
37572 rm -f conftest.*
37573fi
37574 ;;
37575 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037576 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037577 # are listed without --file. Let's play safe and only enable the eval
37578 # if we detect the quoting.
37579 case $CONFIG_FILES in
37580 *\'*) eval set x "$CONFIG_FILES" ;;
37581 *) set x $CONFIG_FILES ;;
37582 esac
37583 shift
37584 for mf
37585 do
37586 # Strip MF so we end up with the name of the file.
37587 mf=`echo "$mf" | sed -e 's/:.*$//'`
37588 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037589 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037590 # some people rename them; so instead we look at the file content.
37591 # Grep'ing the first line is not enough: some people post-process
37592 # each Makefile.in and add a new line on top of each file to say so.
37593 # Grep'ing the whole file is not good either: AIX grep has a line
37594 # limit of 2048, but all sed's we know have understand at least 4000.
37595 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37596 dirpart=`$as_dirname -- "$mf" ||
37597$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37598 X"$mf" : 'X\(//\)[^/]' \| \
37599 X"$mf" : 'X\(//\)$' \| \
37600 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37601$as_echo X"$mf" |
37602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37603 s//\1/
37604 q
37605 }
37606 /^X\(\/\/\)[^/].*/{
37607 s//\1/
37608 q
37609 }
37610 /^X\(\/\/\)$/{
37611 s//\1/
37612 q
37613 }
37614 /^X\(\/\).*/{
37615 s//\1/
37616 q
37617 }
37618 s/.*/./; q'`
37619 else
37620 continue
37621 fi
37622 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037623 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037624 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37625 test -z "$DEPDIR" && continue
37626 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000037627 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000037628 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037629 # Find all dependency output files, they are included files with
37630 # $(DEPDIR) in their names. We invoke sed twice because it is the
37631 # simplest approach to changing $(DEPDIR) to its actual value in the
37632 # expansion.
37633 for file in `sed -n "
37634 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037635 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037636 # Make sure the directory exists.
37637 test -f "$dirpart/$file" && continue
37638 fdir=`$as_dirname -- "$file" ||
37639$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37640 X"$file" : 'X\(//\)[^/]' \| \
37641 X"$file" : 'X\(//\)$' \| \
37642 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37643$as_echo X"$file" |
37644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37645 s//\1/
37646 q
37647 }
37648 /^X\(\/\/\)[^/].*/{
37649 s//\1/
37650 q
37651 }
37652 /^X\(\/\/\)$/{
37653 s//\1/
37654 q
37655 }
37656 /^X\(\/\).*/{
37657 s//\1/
37658 q
37659 }
37660 s/.*/./; q'`
37661 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37662 # echo "creating $dirpart/$file"
37663 echo '# dummy' > "$dirpart/$file"
37664 done
37665 done
37666}
37667 ;;
37668 "libtool":C)
37669
37670 # See if we are running on zsh, and set the options which allow our
37671 # commands through without removal of \ escapes.
37672 if test -n "${ZSH_VERSION+set}" ; then
37673 setopt NO_GLOB_SUBST
37674 fi
37675
37676 cfgfile="${ofile}T"
37677 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37678 $RM "$cfgfile"
37679
37680 cat <<_LT_EOF >> "$cfgfile"
37681#! $SHELL
37682
37683# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37684# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37685# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37686# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37687#
37688# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037689# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37690# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037691# Written by Gordon Matzigkeit, 1996
37692#
37693# This file is part of GNU Libtool.
37694#
37695# GNU Libtool is free software; you can redistribute it and/or
37696# modify it under the terms of the GNU General Public License as
37697# published by the Free Software Foundation; either version 2 of
37698# the License, or (at your option) any later version.
37699#
37700# As a special exception to the GNU General Public License,
37701# if you distribute this file as part of a program or library that
37702# is built using GNU Libtool, you may include this file under the
37703# same distribution terms that you use for the rest of that program.
37704#
37705# GNU Libtool is distributed in the hope that it will be useful,
37706# but WITHOUT ANY WARRANTY; without even the implied warranty of
37707# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37708# GNU General Public License for more details.
37709#
37710# You should have received a copy of the GNU General Public License
37711# along with GNU Libtool; see the file COPYING. If not, a copy
37712# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37713# obtained by writing to the Free Software Foundation, Inc.,
37714# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37715
37716
37717# The names of the tagged configurations supported by this script.
37718available_tags="CXX "
37719
37720# ### BEGIN LIBTOOL CONFIG
37721
37722# A sed program that does not truncate output.
37723SED=$lt_SED
37724
37725# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37726Xsed="\$SED -e 1s/^X//"
37727
37728# A grep program that handles long lines.
37729GREP=$lt_GREP
37730
37731# An ERE matcher.
37732EGREP=$lt_EGREP
37733
37734# A literal string matcher.
37735FGREP=$lt_FGREP
37736
cristy0c60a692010-11-04 01:09:47 +000037737# Shell to use when invoking shell scripts.
37738SHELL=$lt_SHELL
37739
37740# An echo program that protects backslashes.
37741ECHO=$lt_ECHO
37742
cristy73bd4a52010-10-05 11:24:23 +000037743# Which release of libtool.m4 was used?
37744macro_version=$macro_version
37745macro_revision=$macro_revision
37746
37747# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037748AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037749
37750# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037751DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037752
37753# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037754OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037755
37756# Whether or not to build shared libraries.
37757build_libtool_libs=$enable_shared
37758
37759# Whether or not to build static libraries.
37760build_old_libs=$enable_static
37761
37762# What type of objects to build.
37763pic_mode=$pic_mode
37764
37765# Whether or not to optimize for fast installation.
37766fast_install=$enable_fast_install
37767
cristy99bd5232011-12-07 14:38:20 +000037768# The PATH separator for the build system.
37769PATH_SEPARATOR=$lt_PATH_SEPARATOR
37770
cristy73bd4a52010-10-05 11:24:23 +000037771# The host system.
37772host_alias=$host_alias
37773host=$host
37774host_os=$host_os
37775
37776# The build system.
37777build_alias=$build_alias
37778build=$build
37779build_os=$build_os
37780
37781# A BSD- or MS-compatible name lister.
37782NM=$lt_NM
37783
37784# Whether we need soft or hard links.
37785LN_S=$lt_LN_S
37786
37787# What is the maximum length of a command?
37788max_cmd_len=$max_cmd_len
37789
37790# Object file suffix (normally "o").
37791objext=$ac_objext
37792
37793# Executable file suffix (normally "").
37794exeext=$exeext
37795
37796# whether the shell understands "unset".
37797lt_unset=$lt_unset
37798
37799# turn spaces into newlines.
37800SP2NL=$lt_lt_SP2NL
37801
37802# turn newlines into spaces.
37803NL2SP=$lt_lt_NL2SP
37804
cristyda16f162011-02-19 23:52:17 +000037805# convert \$build file names to \$host format.
37806to_host_file_cmd=$lt_cv_to_host_file_cmd
37807
37808# convert \$build files to toolchain format.
37809to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37810
cristy73bd4a52010-10-05 11:24:23 +000037811# Method to check whether dependent libraries are shared objects.
37812deplibs_check_method=$lt_deplibs_check_method
37813
cristyda16f162011-02-19 23:52:17 +000037814# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037815file_magic_cmd=$lt_file_magic_cmd
37816
cristyda16f162011-02-19 23:52:17 +000037817# How to find potential files when deplibs_check_method = "file_magic".
37818file_magic_glob=$lt_file_magic_glob
37819
37820# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37821want_nocaseglob=$lt_want_nocaseglob
37822
37823# Command to associate shared and link libraries.
37824sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37825
cristy73bd4a52010-10-05 11:24:23 +000037826# The archiver.
37827AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037828
37829# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037830AR_FLAGS=$lt_AR_FLAGS
37831
cristyda16f162011-02-19 23:52:17 +000037832# How to feed a file listing to the archiver.
37833archiver_list_spec=$lt_archiver_list_spec
37834
cristy73bd4a52010-10-05 11:24:23 +000037835# A symbol stripping program.
37836STRIP=$lt_STRIP
37837
37838# Commands used to install an old-style archive.
37839RANLIB=$lt_RANLIB
37840old_postinstall_cmds=$lt_old_postinstall_cmds
37841old_postuninstall_cmds=$lt_old_postuninstall_cmds
37842
cristy0c60a692010-11-04 01:09:47 +000037843# Whether to use a lock for old archive extraction.
37844lock_old_archive_extraction=$lock_old_archive_extraction
37845
cristy73bd4a52010-10-05 11:24:23 +000037846# A C compiler.
37847LTCC=$lt_CC
37848
37849# LTCC compiler flags.
37850LTCFLAGS=$lt_CFLAGS
37851
37852# Take the output of nm and produce a listing of raw symbols and C names.
37853global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37854
37855# Transform the output of nm in a proper C declaration.
37856global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37857
37858# Transform the output of nm in a C name address pair.
37859global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37860
37861# Transform the output of nm in a C name address pair when lib prefix is needed.
37862global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37863
cristyda16f162011-02-19 23:52:17 +000037864# Specify filename containing input files for \$NM.
37865nm_file_list_spec=$lt_nm_file_list_spec
37866
37867# The root where to search for dependent libraries,and in which our libraries should be installed.
37868lt_sysroot=$lt_sysroot
37869
cristy73bd4a52010-10-05 11:24:23 +000037870# The name of the directory that contains temporary libtool files.
37871objdir=$objdir
37872
cristy73bd4a52010-10-05 11:24:23 +000037873# Used to examine libraries when file_magic_cmd begins with "file".
37874MAGIC_CMD=$MAGIC_CMD
37875
37876# Must we lock files when doing compilation?
37877need_locks=$lt_need_locks
37878
cristyda16f162011-02-19 23:52:17 +000037879# Manifest tool.
37880MANIFEST_TOOL=$lt_MANIFEST_TOOL
37881
cristy73bd4a52010-10-05 11:24:23 +000037882# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37883DSYMUTIL=$lt_DSYMUTIL
37884
37885# Tool to change global to local symbols on Mac OS X.
37886NMEDIT=$lt_NMEDIT
37887
37888# Tool to manipulate fat objects and archives on Mac OS X.
37889LIPO=$lt_LIPO
37890
37891# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37892OTOOL=$lt_OTOOL
37893
37894# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37895OTOOL64=$lt_OTOOL64
37896
37897# Old archive suffix (normally "a").
37898libext=$libext
37899
37900# Shared library suffix (normally ".so").
37901shrext_cmds=$lt_shrext_cmds
37902
37903# The commands to extract the exported symbol list from a shared archive.
37904extract_expsyms_cmds=$lt_extract_expsyms_cmds
37905
37906# Variables whose values should be saved in libtool wrapper scripts and
37907# restored at link time.
37908variables_saved_for_relink=$lt_variables_saved_for_relink
37909
37910# Do we need the "lib" prefix for modules?
37911need_lib_prefix=$need_lib_prefix
37912
37913# Do we need a version for libraries?
37914need_version=$need_version
37915
37916# Library versioning type.
37917version_type=$version_type
37918
37919# Shared library runtime path variable.
37920runpath_var=$runpath_var
37921
37922# Shared library path variable.
37923shlibpath_var=$shlibpath_var
37924
37925# Is shlibpath searched before the hard-coded library search path?
37926shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37927
37928# Format of library name prefix.
37929libname_spec=$lt_libname_spec
37930
37931# List of archive names. First name is the real one, the rest are links.
37932# The last name is the one that the linker finds with -lNAME
37933library_names_spec=$lt_library_names_spec
37934
37935# The coded name of the library, if different from the real name.
37936soname_spec=$lt_soname_spec
37937
cristy0c60a692010-11-04 01:09:47 +000037938# Permission mode override for installation of shared libraries.
37939install_override_mode=$lt_install_override_mode
37940
cristy73bd4a52010-10-05 11:24:23 +000037941# Command to use after installation of a shared archive.
37942postinstall_cmds=$lt_postinstall_cmds
37943
37944# Command to use after uninstallation of a shared archive.
37945postuninstall_cmds=$lt_postuninstall_cmds
37946
37947# Commands used to finish a libtool library installation in a directory.
37948finish_cmds=$lt_finish_cmds
37949
37950# As "finish_cmds", except a single script fragment to be evaled but
37951# not shown.
37952finish_eval=$lt_finish_eval
37953
37954# Whether we should hardcode library paths into libraries.
37955hardcode_into_libs=$hardcode_into_libs
37956
37957# Compile-time system search path for libraries.
37958sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37959
37960# Run-time system search path for libraries.
37961sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37962
37963# Whether dlopen is supported.
37964dlopen_support=$enable_dlopen
37965
37966# Whether dlopen of programs is supported.
37967dlopen_self=$enable_dlopen_self
37968
37969# Whether dlopen of statically linked programs is supported.
37970dlopen_self_static=$enable_dlopen_self_static
37971
37972# Commands to strip libraries.
37973old_striplib=$lt_old_striplib
37974striplib=$lt_striplib
37975
37976
37977# The linker used to build libraries.
37978LD=$lt_LD
37979
cristy0c60a692010-11-04 01:09:47 +000037980# How to create reloadable object files.
37981reload_flag=$lt_reload_flag
37982reload_cmds=$lt_reload_cmds
37983
cristy73bd4a52010-10-05 11:24:23 +000037984# Commands used to build an old-style archive.
37985old_archive_cmds=$lt_old_archive_cmds
37986
37987# A language specific compiler.
37988CC=$lt_compiler
37989
37990# Is the compiler the GNU compiler?
37991with_gcc=$GCC
37992
37993# Compiler flag to turn off builtin functions.
37994no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37995
cristy73bd4a52010-10-05 11:24:23 +000037996# Additional compiler flags for building library objects.
37997pic_flag=$lt_lt_prog_compiler_pic
37998
cristyda16f162011-02-19 23:52:17 +000037999# How to pass a linker flag through the compiler.
38000wl=$lt_lt_prog_compiler_wl
38001
cristy73bd4a52010-10-05 11:24:23 +000038002# Compiler flag to prevent dynamic linking.
38003link_static_flag=$lt_lt_prog_compiler_static
38004
38005# Does compiler simultaneously support -c and -o options?
38006compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38007
38008# Whether or not to add -lc for building shared libraries.
38009build_libtool_need_lc=$archive_cmds_need_lc
38010
38011# Whether or not to disallow shared libs when runtime libs are static.
38012allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38013
38014# Compiler flag to allow reflexive dlopens.
38015export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38016
38017# Compiler flag to generate shared objects directly from archives.
38018whole_archive_flag_spec=$lt_whole_archive_flag_spec
38019
38020# Whether the compiler copes with passing no objects directly.
38021compiler_needs_object=$lt_compiler_needs_object
38022
38023# Create an old-style archive from a shared archive.
38024old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38025
38026# Create a temporary old-style archive to link instead of a shared archive.
38027old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38028
38029# Commands used to build a shared archive.
38030archive_cmds=$lt_archive_cmds
38031archive_expsym_cmds=$lt_archive_expsym_cmds
38032
38033# Commands used to build a loadable module if different from building
38034# a shared archive.
38035module_cmds=$lt_module_cmds
38036module_expsym_cmds=$lt_module_expsym_cmds
38037
38038# Whether we are building with GNU ld or not.
38039with_gnu_ld=$lt_with_gnu_ld
38040
38041# Flag that allows shared libraries with undefined symbols to be built.
38042allow_undefined_flag=$lt_allow_undefined_flag
38043
38044# Flag that enforces no undefined symbols.
38045no_undefined_flag=$lt_no_undefined_flag
38046
38047# Flag to hardcode \$libdir into a binary during linking.
38048# This must work even if \$libdir does not exist
38049hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38050
cristy73bd4a52010-10-05 11:24:23 +000038051# Whether we need a single "-rpath" flag with a separated argument.
38052hardcode_libdir_separator=$lt_hardcode_libdir_separator
38053
38054# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38055# DIR into the resulting binary.
38056hardcode_direct=$hardcode_direct
38057
38058# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38059# DIR into the resulting binary and the resulting library dependency is
38060# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38061# library is relocated.
38062hardcode_direct_absolute=$hardcode_direct_absolute
38063
38064# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38065# into the resulting binary.
38066hardcode_minus_L=$hardcode_minus_L
38067
38068# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38069# into the resulting binary.
38070hardcode_shlibpath_var=$hardcode_shlibpath_var
38071
38072# Set to "yes" if building a shared library automatically hardcodes DIR
38073# into the library and all subsequent libraries and executables linked
38074# against it.
38075hardcode_automatic=$hardcode_automatic
38076
38077# Set to yes if linker adds runtime paths of dependent libraries
38078# to runtime path list.
38079inherit_rpath=$inherit_rpath
38080
38081# Whether libtool must link a program against all its dependency libraries.
38082link_all_deplibs=$link_all_deplibs
38083
cristy73bd4a52010-10-05 11:24:23 +000038084# Set to "yes" if exported symbols are required.
38085always_export_symbols=$always_export_symbols
38086
38087# The commands to list exported symbols.
38088export_symbols_cmds=$lt_export_symbols_cmds
38089
38090# Symbols that should not be listed in the preloaded symbols.
38091exclude_expsyms=$lt_exclude_expsyms
38092
38093# Symbols that must always be exported.
38094include_expsyms=$lt_include_expsyms
38095
38096# Commands necessary for linking programs (against libraries) with templates.
38097prelink_cmds=$lt_prelink_cmds
38098
cristyda16f162011-02-19 23:52:17 +000038099# Commands necessary for finishing linking programs.
38100postlink_cmds=$lt_postlink_cmds
38101
cristy73bd4a52010-10-05 11:24:23 +000038102# Specify filename containing input files.
38103file_list_spec=$lt_file_list_spec
38104
38105# How to hardcode a shared library path into an executable.
38106hardcode_action=$hardcode_action
38107
38108# The directories searched by this compiler when creating a shared library.
38109compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38110
38111# Dependencies to place before and after the objects being linked to
38112# create a shared library.
38113predep_objects=$lt_predep_objects
38114postdep_objects=$lt_postdep_objects
38115predeps=$lt_predeps
38116postdeps=$lt_postdeps
38117
38118# The library search path used internally by the compiler when linking
38119# a shared library.
38120compiler_lib_search_path=$lt_compiler_lib_search_path
38121
38122# ### END LIBTOOL CONFIG
38123
38124_LT_EOF
38125
38126 case $host_os in
38127 aix3*)
38128 cat <<\_LT_EOF >> "$cfgfile"
38129# AIX sometimes has problems with the GCC collect2 program. For some
38130# reason, if we set the COLLECT_NAMES environment variable, the problems
38131# vanish in a puff of smoke.
38132if test "X${COLLECT_NAMES+set}" != Xset; then
38133 COLLECT_NAMES=
38134 export COLLECT_NAMES
38135fi
38136_LT_EOF
38137 ;;
38138 esac
38139
38140
38141ltmain="$ac_aux_dir/ltmain.sh"
38142
38143
38144 # We use sed instead of cat because bash on DJGPP gets confused if
38145 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38146 # text mode, it properly converts lines to CR/LF. This bash problem
38147 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038148 sed '$q' "$ltmain" >> "$cfgfile" \
38149 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038150
cristyda16f162011-02-19 23:52:17 +000038151 if test x"$xsi_shell" = xyes; then
38152 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38153func_dirname ()\
38154{\
38155\ case ${1} in\
38156\ */*) func_dirname_result="${1%/*}${2}" ;;\
38157\ * ) func_dirname_result="${3}" ;;\
38158\ esac\
38159} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38160 && mv -f "$cfgfile.tmp" "$cfgfile" \
38161 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38162test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038163
38164
cristyda16f162011-02-19 23:52:17 +000038165 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38166func_basename ()\
38167{\
38168\ func_basename_result="${1##*/}"\
38169} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38170 && mv -f "$cfgfile.tmp" "$cfgfile" \
38171 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38172test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038173
38174
cristyda16f162011-02-19 23:52:17 +000038175 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38176func_dirname_and_basename ()\
38177{\
38178\ case ${1} in\
38179\ */*) func_dirname_result="${1%/*}${2}" ;;\
38180\ * ) func_dirname_result="${3}" ;;\
38181\ esac\
38182\ func_basename_result="${1##*/}"\
38183} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38184 && mv -f "$cfgfile.tmp" "$cfgfile" \
38185 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38186test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038187
cristyda16f162011-02-19 23:52:17 +000038188
38189 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38190func_stripname ()\
38191{\
38192\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38193\ # positional parameters, so assign one to ordinary parameter first.\
38194\ func_stripname_result=${3}\
38195\ func_stripname_result=${func_stripname_result#"${1}"}\
38196\ func_stripname_result=${func_stripname_result%"${2}"}\
38197} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38198 && mv -f "$cfgfile.tmp" "$cfgfile" \
38199 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38200test 0 -eq $? || _lt_function_replace_fail=:
38201
38202
38203 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38204func_split_long_opt ()\
38205{\
38206\ func_split_long_opt_name=${1%%=*}\
38207\ func_split_long_opt_arg=${1#*=}\
38208} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38209 && mv -f "$cfgfile.tmp" "$cfgfile" \
38210 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38211test 0 -eq $? || _lt_function_replace_fail=:
38212
38213
38214 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38215func_split_short_opt ()\
38216{\
38217\ func_split_short_opt_arg=${1#??}\
38218\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38219} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38220 && mv -f "$cfgfile.tmp" "$cfgfile" \
38221 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38222test 0 -eq $? || _lt_function_replace_fail=:
38223
38224
38225 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38226func_lo2o ()\
38227{\
38228\ case ${1} in\
38229\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38230\ *) func_lo2o_result=${1} ;;\
38231\ esac\
38232} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38233 && mv -f "$cfgfile.tmp" "$cfgfile" \
38234 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38235test 0 -eq $? || _lt_function_replace_fail=:
38236
38237
38238 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38239func_xform ()\
38240{\
38241 func_xform_result=${1%.*}.lo\
38242} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38243 && mv -f "$cfgfile.tmp" "$cfgfile" \
38244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38245test 0 -eq $? || _lt_function_replace_fail=:
38246
38247
38248 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38249func_arith ()\
38250{\
38251 func_arith_result=$(( $* ))\
38252} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38253 && mv -f "$cfgfile.tmp" "$cfgfile" \
38254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38255test 0 -eq $? || _lt_function_replace_fail=:
38256
38257
38258 sed -e '/^func_len ()$/,/^} # func_len /c\
38259func_len ()\
38260{\
38261 func_len_result=${#1}\
38262} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38263 && mv -f "$cfgfile.tmp" "$cfgfile" \
38264 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38265test 0 -eq $? || _lt_function_replace_fail=:
38266
38267fi
38268
38269if test x"$lt_shell_append" = xyes; then
38270 sed -e '/^func_append ()$/,/^} # func_append /c\
38271func_append ()\
38272{\
38273 eval "${1}+=\\${2}"\
38274} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38275 && mv -f "$cfgfile.tmp" "$cfgfile" \
38276 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38277test 0 -eq $? || _lt_function_replace_fail=:
38278
38279
38280 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38281func_append_quoted ()\
38282{\
38283\ func_quote_for_eval "${2}"\
38284\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38285} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38286 && mv -f "$cfgfile.tmp" "$cfgfile" \
38287 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38288test 0 -eq $? || _lt_function_replace_fail=:
38289
38290
38291 # Save a `func_append' function call where possible by direct use of '+='
38292 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38293 && mv -f "$cfgfile.tmp" "$cfgfile" \
38294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38295 test 0 -eq $? || _lt_function_replace_fail=:
38296else
38297 # Save a `func_append' function call even when '+=' is not available
38298 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38299 && mv -f "$cfgfile.tmp" "$cfgfile" \
38300 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38301 test 0 -eq $? || _lt_function_replace_fail=:
38302fi
38303
38304if test x"$_lt_function_replace_fail" = x":"; then
38305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38306$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38307fi
38308
38309
38310 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038311 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38312 chmod +x "$ofile"
38313
38314
38315 cat <<_LT_EOF >> "$ofile"
38316
38317# ### BEGIN LIBTOOL TAG CONFIG: CXX
38318
38319# The linker used to build libraries.
38320LD=$lt_LD_CXX
38321
cristy0c60a692010-11-04 01:09:47 +000038322# How to create reloadable object files.
38323reload_flag=$lt_reload_flag_CXX
38324reload_cmds=$lt_reload_cmds_CXX
38325
cristy73bd4a52010-10-05 11:24:23 +000038326# Commands used to build an old-style archive.
38327old_archive_cmds=$lt_old_archive_cmds_CXX
38328
38329# A language specific compiler.
38330CC=$lt_compiler_CXX
38331
38332# Is the compiler the GNU compiler?
38333with_gcc=$GCC_CXX
38334
38335# Compiler flag to turn off builtin functions.
38336no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38337
cristy73bd4a52010-10-05 11:24:23 +000038338# Additional compiler flags for building library objects.
38339pic_flag=$lt_lt_prog_compiler_pic_CXX
38340
cristyda16f162011-02-19 23:52:17 +000038341# How to pass a linker flag through the compiler.
38342wl=$lt_lt_prog_compiler_wl_CXX
38343
cristy73bd4a52010-10-05 11:24:23 +000038344# Compiler flag to prevent dynamic linking.
38345link_static_flag=$lt_lt_prog_compiler_static_CXX
38346
38347# Does compiler simultaneously support -c and -o options?
38348compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38349
38350# Whether or not to add -lc for building shared libraries.
38351build_libtool_need_lc=$archive_cmds_need_lc_CXX
38352
38353# Whether or not to disallow shared libs when runtime libs are static.
38354allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38355
38356# Compiler flag to allow reflexive dlopens.
38357export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38358
38359# Compiler flag to generate shared objects directly from archives.
38360whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38361
38362# Whether the compiler copes with passing no objects directly.
38363compiler_needs_object=$lt_compiler_needs_object_CXX
38364
38365# Create an old-style archive from a shared archive.
38366old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38367
38368# Create a temporary old-style archive to link instead of a shared archive.
38369old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38370
38371# Commands used to build a shared archive.
38372archive_cmds=$lt_archive_cmds_CXX
38373archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38374
38375# Commands used to build a loadable module if different from building
38376# a shared archive.
38377module_cmds=$lt_module_cmds_CXX
38378module_expsym_cmds=$lt_module_expsym_cmds_CXX
38379
38380# Whether we are building with GNU ld or not.
38381with_gnu_ld=$lt_with_gnu_ld_CXX
38382
38383# Flag that allows shared libraries with undefined symbols to be built.
38384allow_undefined_flag=$lt_allow_undefined_flag_CXX
38385
38386# Flag that enforces no undefined symbols.
38387no_undefined_flag=$lt_no_undefined_flag_CXX
38388
38389# Flag to hardcode \$libdir into a binary during linking.
38390# This must work even if \$libdir does not exist
38391hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38392
cristy73bd4a52010-10-05 11:24:23 +000038393# Whether we need a single "-rpath" flag with a separated argument.
38394hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38395
38396# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38397# DIR into the resulting binary.
38398hardcode_direct=$hardcode_direct_CXX
38399
38400# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38401# DIR into the resulting binary and the resulting library dependency is
38402# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38403# library is relocated.
38404hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38405
38406# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38407# into the resulting binary.
38408hardcode_minus_L=$hardcode_minus_L_CXX
38409
38410# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38411# into the resulting binary.
38412hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38413
38414# Set to "yes" if building a shared library automatically hardcodes DIR
38415# into the library and all subsequent libraries and executables linked
38416# against it.
38417hardcode_automatic=$hardcode_automatic_CXX
38418
38419# Set to yes if linker adds runtime paths of dependent libraries
38420# to runtime path list.
38421inherit_rpath=$inherit_rpath_CXX
38422
38423# Whether libtool must link a program against all its dependency libraries.
38424link_all_deplibs=$link_all_deplibs_CXX
38425
cristy73bd4a52010-10-05 11:24:23 +000038426# Set to "yes" if exported symbols are required.
38427always_export_symbols=$always_export_symbols_CXX
38428
38429# The commands to list exported symbols.
38430export_symbols_cmds=$lt_export_symbols_cmds_CXX
38431
38432# Symbols that should not be listed in the preloaded symbols.
38433exclude_expsyms=$lt_exclude_expsyms_CXX
38434
38435# Symbols that must always be exported.
38436include_expsyms=$lt_include_expsyms_CXX
38437
38438# Commands necessary for linking programs (against libraries) with templates.
38439prelink_cmds=$lt_prelink_cmds_CXX
38440
cristyda16f162011-02-19 23:52:17 +000038441# Commands necessary for finishing linking programs.
38442postlink_cmds=$lt_postlink_cmds_CXX
38443
cristy73bd4a52010-10-05 11:24:23 +000038444# Specify filename containing input files.
38445file_list_spec=$lt_file_list_spec_CXX
38446
38447# How to hardcode a shared library path into an executable.
38448hardcode_action=$hardcode_action_CXX
38449
38450# The directories searched by this compiler when creating a shared library.
38451compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38452
38453# Dependencies to place before and after the objects being linked to
38454# create a shared library.
38455predep_objects=$lt_predep_objects_CXX
38456postdep_objects=$lt_postdep_objects_CXX
38457predeps=$lt_predeps_CXX
38458postdeps=$lt_postdeps_CXX
38459
38460# The library search path used internally by the compiler when linking
38461# a shared library.
38462compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38463
38464# ### END LIBTOOL TAG CONFIG: CXX
38465_LT_EOF
38466
38467 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038468 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038469 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038470 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038471 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38472 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38473
38474 esac
38475done # for ac_tag
38476
38477
cristy8b350f62009-11-15 23:12:43 +000038478as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038479_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038480ac_clean_files=$ac_clean_files_save
38481
38482test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038483 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038484
38485
38486# configure is writing to config.log, and then calls config.status.
38487# config.status does its own redirection, appending to config.log.
38488# Unfortunately, on DOS this fails, as config.log is still kept open
38489# by configure, so config.status won't be able to write to it; its
38490# output is simply discarded. So we exec the FD to /dev/null,
38491# effectively closing config.log, so it can be properly (re)opened and
38492# appended to by config.status. When coming back to configure, we
38493# need to make the FD available again.
38494if test "$no_create" != yes; then
38495 ac_cs_success=:
38496 ac_config_status_args=
38497 test "$silent" = yes &&
38498 ac_config_status_args="$ac_config_status_args --quiet"
38499 exec 5>/dev/null
38500 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38501 exec 5>>config.log
38502 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38503 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038504 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038505fi
38506if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038508$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38509fi
38510
38511
38512rm -f magick-version
38513
cristy430a7312010-01-21 20:44:04 +000038514result_dejavu_font_dir='none'
38515if test "${dejavu_font_dir}x" != 'x'; then
38516 result_dejavu_font_dir=$dejavu_font_dir
38517fi
38518
cristy3ed852e2009-09-05 21:47:34 +000038519result_ghostscript_font_dir='none'
38520if test "${ghostscript_font_dir}x" != 'x'; then
38521 result_ghostscript_font_dir=$ghostscript_font_dir
38522fi
38523
38524result_windows_font_dir='none'
38525if test "${windows_font_dir}x" != 'x'; then
38526 result_windows_font_dir=${windows_font_dir}
38527fi
38528
cristyad38abe2012-12-23 23:03:21 +000038529{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038530ImageMagick is configured as follows. Please verify that this configuration
38531matches your expectations.
38532
38533Host system type: $host
38534Build system type: $build
38535
38536 Option Value
38537-------------------------------------------------------------------------------
38538Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38539Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038540Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038541GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38542Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38543High Dynamic Range Imagery
38544 --enable-hdri=$enable_hdri $enable_hdri
38545
38546Delegate Configuration:
38547BZLIB --with-bzlib=$with_bzlib $have_bzlib
38548Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038549Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038550DJVU --with-djvu=$with_djvu $have_djvu
38551DPS --with-dps=$with_dps $have_dps
38552FFTW --with-fftw=$with_fftw $have_fftw
38553FlashPIX --with-fpx=$with_fpx $have_fpx
38554FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38555FreeType --with-freetype=$with_freetype $have_freetype
38556GhostPCL None $PCLDelegate ($PCLVersion)
38557GhostXPS None $XPSDelegate ($XPSVersion)
38558Ghostscript None $PSDelegate ($GSVersion)
38559Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38560Ghostscript lib --with-gslib=$with_gslib $have_gslib
38561Graphviz --with-gvc=$with_gvc $have_gvc
38562JBIG --with-jbig=$with_jbig $have_jbig
38563JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38564JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038565LCMS v1 --with-lcms=$with_lcms $have_lcms
38566LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038567LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038568LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038569LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038570Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000038571MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000038572OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038573PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038574PERL --with-perl=$with_perl $have_perl
38575PNG --with-png=$with_png $have_png
38576RSVG --with-rsvg=$with_rsvg $have_rsvg
38577TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038578WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038579Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038580WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038581X11 --with-x=$with_x $have_x
38582XML --with-xml=$with_xml $have_xml
38583ZLIB --with-zlib=$with_zlib $have_zlib
38584
38585X11 Configuration:
38586 X_CFLAGS = $X_CFLAGS
38587 X_PRE_LIBS = $X_PRE_LIBS
38588 X_LIBS = $X_LIBS
38589 X_EXTRA_LIBS = $X_EXTRA_LIBS
38590
38591Options used to compile and link:
38592 PREFIX = $PREFIX_DIR
38593 EXEC-PREFIX = $EXEC_PREFIX_DIR
38594 VERSION = $PACKAGE_VERSION
38595 CC = $CC
38596 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038597 CPPFLAGS = $MAGICK_CPPFLAGS
38598 PCFLAGS = $MAGICK_PCFLAGS
38599 DEFS = $DEFS
38600 LDFLAGS = $LDFLAGS
38601 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38602 LIBS = $MAGICK_LIBS
38603 CXX = $CXX
38604 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038605 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038606 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038607" >&5
cristyad38abe2012-12-23 23:03:21 +000038608$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038609ImageMagick is configured as follows. Please verify that this configuration
38610matches your expectations.
38611
38612Host system type: $host
38613Build system type: $build
38614
38615 Option Value
38616-------------------------------------------------------------------------------
38617Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38618Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038619Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038620GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38621Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38622High Dynamic Range Imagery
38623 --enable-hdri=$enable_hdri $enable_hdri
38624
38625Delegate Configuration:
38626BZLIB --with-bzlib=$with_bzlib $have_bzlib
38627Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038628Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038629DJVU --with-djvu=$with_djvu $have_djvu
38630DPS --with-dps=$with_dps $have_dps
38631FFTW --with-fftw=$with_fftw $have_fftw
38632FlashPIX --with-fpx=$with_fpx $have_fpx
38633FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38634FreeType --with-freetype=$with_freetype $have_freetype
38635GhostPCL None $PCLDelegate ($PCLVersion)
38636GhostXPS None $XPSDelegate ($XPSVersion)
38637Ghostscript None $PSDelegate ($GSVersion)
38638Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38639Ghostscript lib --with-gslib=$with_gslib $have_gslib
38640Graphviz --with-gvc=$with_gvc $have_gvc
38641JBIG --with-jbig=$with_jbig $have_jbig
38642JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38643JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038644LCMS v1 --with-lcms=$with_lcms $have_lcms
38645LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038646LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038647LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038648LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038649Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000038650MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000038651OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038652PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038653PERL --with-perl=$with_perl $have_perl
38654PNG --with-png=$with_png $have_png
38655RSVG --with-rsvg=$with_rsvg $have_rsvg
38656TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038657WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038658Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038659WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038660X11 --with-x=$with_x $have_x
38661XML --with-xml=$with_xml $have_xml
38662ZLIB --with-zlib=$with_zlib $have_zlib
38663
38664X11 Configuration:
38665 X_CFLAGS = $X_CFLAGS
38666 X_PRE_LIBS = $X_PRE_LIBS
38667 X_LIBS = $X_LIBS
38668 X_EXTRA_LIBS = $X_EXTRA_LIBS
38669
38670Options used to compile and link:
38671 PREFIX = $PREFIX_DIR
38672 EXEC-PREFIX = $EXEC_PREFIX_DIR
38673 VERSION = $PACKAGE_VERSION
38674 CC = $CC
38675 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038676 CPPFLAGS = $MAGICK_CPPFLAGS
38677 PCFLAGS = $MAGICK_PCFLAGS
38678 DEFS = $DEFS
38679 LDFLAGS = $LDFLAGS
38680 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38681 LIBS = $MAGICK_LIBS
38682 CXX = $CXX
38683 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038684 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038685 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038686" >&6; }