blob: 8064ead673c118e11402575b29947e64425c5db0 [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
cristy3ed852e2009-09-05 21:47:34 +0000687windows_font_dir
cristy5a3dc992014-12-05 19:50:04 +0000688ghostscript_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy5a3dc992014-12-05 19:50:04 +0000690apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000691PrintDelegate
692ZipDelegate
693XPSDelegate
694WWWDecodeDelegate
695WMFDecodeDelegate
cristy86e86092013-08-04 17:43:57 +0000696WebPEncodeDelegate
697WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000698UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000699TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000700SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000701SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000702RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000703RMDelegate
704RLEEncodeDelegate
705PSDelegate
706POVDelegate
707PGPDecodeDelegate
708PCLDelegate
709MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000710MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000711MPEGEncodeDelegate
712MPEGDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000713MogrifyDelegate
cristy3ed852e2009-09-05 21:47:34 +0000714MANDelegate
715LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000716LPRDelegate
717LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000718JXREncodeDelegate
719JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000720ILBMEncodeDelegate
721ILBMDecodeDelegate
722HTMLDecodeDelegate
723HPGLDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000724GVCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000725GnuplotDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000726EditorDelegate
727EchoDelegate
cristy66f238e2014-05-16 12:21:48 +0000728DisplayDelegate
729ConvertDelegate
cristy3ed852e2009-09-05 21:47:34 +0000730DVIDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000731DOCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000732DNGDecodeDelegate
733CatDelegate
cristy3ed852e2009-09-05 21:47:34 +0000734BrowseDelegate
735BZIPDelegate
736BlenderDecodeDelegate
cristy16b412d2014-12-15 11:09:48 +0000737BGPEncodeDelegate
738BGPDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000739AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000740SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000741SHAREARCH_RELATIVE_PATH
742SHAREARCH_DIRNAME
743SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000744SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000745CONFIGURE_PATH
cristydd17feb2014-03-05 02:06:32 +0000746INSTALL_DOC_FALSE
747INSTALL_DOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000748DOCUMENTATION_PATH
749FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000750FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000751CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000752CODER_DIRNAME
753MODULES_PATH
754MODULES_RELATIVE_PATH
755MODULES_DIRNAME
756MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000757LIB_BIN_DIR_PATH
758LIB_BIN_DIR_RELATIVE_PATH
759LIB_BIN_DIR
760LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000761LIBRARY_PATH
762EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000763INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000764INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000765PERLMAINCC
766XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000767XML_DELEGATE_FALSE
768XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000769xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000770WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000771WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772WMF_DELEGATE_FALSE
773WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000774WEBP_LIBS
775WEBP_DELEGATE_FALSE
776WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000777TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778TIFF_DELEGATE_FALSE
779TIFF_DELEGATE_TRUE
780CAIRO_DELEGATE_FALSE
781CAIRO_DELEGATE_TRUE
782RSVG_DELEGATE_FALSE
783RSVG_DELEGATE_TRUE
784CAIRO_SVG_LIBS
785CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000786RSVG_LIBS
787RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000788PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000789PNG_DELEGATE_FALSE
790PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000791PANGOCAIRO_DELEGATE_FALSE
792PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000793PANGO_DELEGATE_FALSE
794PANGO_DELEGATE_TRUE
795PANGO_LIBS
796PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000797OPENEXR_DELEGATE_FALSE
798OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799OPENEXR_LIBS
800OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000801LZMA_DELEGATE_FALSE
802LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000803LZMA_LIBS
804LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000805LQR_DELEGATE_FALSE
806LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807LQR_LIBS
808LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000809LIBOPENJP2_DELEGATE_FALSE
810LIBOPENJP2_DELEGATE_TRUE
811LIBOPENJP2_LIBS
812LIBOPENJP2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000813LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814LCMS_DELEGATE_FALSE
815LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000816JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817JPEG_DELEGATE_FALSE
818JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000819JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000820JBIG_DELEGATE_FALSE
821JBIG_DELEGATE_TRUE
822GVC_DELEGATE_FALSE
823GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824GVC_LIBS
825GVC_CFLAGS
826GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000827GS_DELEGATE_FALSE
828GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000829FREETYPE_DELEGATE_FALSE
830FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000831FREETYPE_LIBS
832FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000833FONTCONFIG_DELEGATE_FALSE
834FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000835FONTCONFIG_LIBS
836FONTCONFIG_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000837DJVU_LIBS
838DJVU_DELEGATE_FALSE
839DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841FPX_DELEGATE_FALSE
842FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000844FFTW_DELEGATE_FALSE
845FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000846DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000847DPS_DELEGATE_FALSE
848DPS_DELEGATE_TRUE
849AUTOTRACE_DELEGATE_FALSE
850AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000851AUTOTRACE_LIBS
852AUTOTRACE_CFLAGS
853LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000854WITH_LTDL_FALSE
855WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857ZLIB_DELEGATE_FALSE
858ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000859XEXT_LIBS
860X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000861X11_DELEGATE_FALSE
862X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000863X_EXTRA_LIBS
864X_LIBS
865X_PRE_LIBS
866X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000867XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000868BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000869BZLIB_DELEGATE_FALSE
870BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000871CCMALLOCDelegate
872UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000873HasUMEM_FALSE
874HasUMEM_TRUE
cristy3b0097d2014-11-04 15:34:47 +0000875JEMALLOC_LIBS
876HasJEMALLOC_FALSE
877HasJEMALLOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000878GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000879WITH_MAGICK_PLUS_PLUS_FALSE
880WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000881OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000882MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000883POW_LIB
884LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000885UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000886UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000887UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000888UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000889UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000890UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000891INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000892INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000893UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000894UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000895INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000896INT32_T
897UINT16_T
898INT16_T
899UINT8_T
900INT8_T
901LIBRARY_EXTRA_CPPFLAGS
902MODULE_EXTRA_CPPFLAGS
903LIBSTDCLDFLAGS
904PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000905MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000906MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000907QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000908LEGACY_SUPPORT_FALSE
909LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000910MAINT
911MAINTAINER_MODE_FALSE
912MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000913MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000914WITH_MODULES_FALSE
915WITH_MODULES_TRUE
916WITH_SHARED_LIBS_FALSE
917WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000918LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000919CXXCPP
920OTOOL64
921OTOOL
922LIPO
923NMEDIT
924DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000925MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000926RANLIB
cristy73bd4a52010-10-05 11:24:23 +0000927NM
928ac_ct_DUMPBIN
929DUMPBIN
930LIBTOOL
931OBJDUMP
932DLLTOOL
933AS
cristy3ed852e2009-09-05 21:47:34 +0000934LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000935CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000936CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000937OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000938THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000939PTHREAD_CFLAGS
940PTHREAD_LIBS
941PTHREAD_CC
942ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000943pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000944SHAREARCH_DIR
945INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000946WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000947USING_CL_FALSE
948USING_CL_TRUE
949CYGWIN_BUILD_FALSE
950CYGWIN_BUILD_TRUE
951WIN32_NATIVE_BUILD_FALSE
952WIN32_NATIVE_BUILD_TRUE
953WINGDI32_DELEGATE_FALSE
954WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000955GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000956HAVE_LD_VERSION_SCRIPT_FALSE
957HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000958PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000959PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000960LN_S
cristy3ed852e2009-09-05 21:47:34 +0000961LD
cristy73bd4a52010-10-05 11:24:23 +0000962FGREP
963SED
964am__fastdepCXX_FALSE
965am__fastdepCXX_TRUE
966CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000967ac_ct_CXX
968CXXFLAGS
969CXX
cristy9e007fe2015-01-03 16:05:07 +0000970ac_ct_AR
971AR
cristya0b81c32010-01-22 02:54:33 +0000972EGREP
973GREP
974CPP
cristy73bd4a52010-10-05 11:24:23 +0000975am__fastdepCC_FALSE
976am__fastdepCC_TRUE
977CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000978am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000979AMDEPBACKSLASH
980AMDEP_FALSE
981AMDEP_TRUE
982am__quote
983am__include
984DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000985OBJEXT
986EXEEXT
987ac_ct_CC
988CPPFLAGS
989LDFLAGS
990CFLAGS
991CC
992DIRSEP
993MAGICK_FILTER_MODULE_PATH
994MAGICK_CONFIGURE_BUILD_PATH
995MAGICK_CONFIGURE_SRC_PATH
996MAGICK_CODER_MODULE_PATH
997MAN_DIR
998INFO_DIR
999PERSISTINCLUDE_DIR
1000INCLUDE_DIR
1001LIB_DIR
1002LOCALSTATE_DIR
1003SHAREDSTATE_DIR
1004SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001005DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001006DATA_DIR
1007LIBEXEC_DIR
1008SBIN_DIR
1009BIN_DIR
1010EXEC_PREFIX_DIR
1011PREFIX_DIR
1012CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001013MAGICKPP_LIB_VERSION_TEXT
1014MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001015MAGICK_LIB_VERSION_NUMBER
1016MAGICK_LIB_VERSION_TEXT
1017MAGICK_LIB_VERSION
cristy9af1cbf2014-12-28 22:03:09 +00001018PACKAGE_VERSION_ADDENDUM
1019PACKAGE_RELEASE_DATE
1020PACKAGE_LIB_VERSION_NUMBER
1021PACKAGE_LIB_VERSION
1022PACKAGE_CHANGE_DATE
1023PACKAGE_RELEASE
1024PACKAGE_PERL_VERSION
1025MAGICKPP_LIBRARY_VERSION_INFO
1026MAGICKPP_LIBRARY_CURRENT_MIN
1027MAGICKPP_LIBRARY_AGE
1028MAGICKPP_LIBRARY_REVISION
1029MAGICKPP_LIBRARY_CURRENT
1030MAGICK_LIBRARY_VERSION_INFO
1031MAGICK_LIBRARY_CURRENT_MIN
1032MAGICK_LIBRARY_AGE
1033MAGICK_LIBRARY_REVISION
1034MAGICK_LIBRARY_CURRENT
1035MAGICK_SVN_REVISION
1036MAGICK_VERSION
1037MAGICK_PATCHLEVEL_VERSION
1038MAGICK_MICRO_VERSION
1039MAGICK_MINOR_VERSION
1040MAGICK_MAJOR_VERSION
1041MAGICK_TARGET_OS
1042MAGICK_TARGET_VENDOR
1043MAGICK_TARGET_CPU
1044CONFIGURE_ARGS
1045DISTCHECK_CONFIG_FLAGS
cristy73bd4a52010-10-05 11:24:23 +00001046AM_BACKSLASH
1047AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001048AM_DEFAULT_V
1049AM_V
cristy73bd4a52010-10-05 11:24:23 +00001050am__untar
1051am__tar
1052AMTAR
1053am__leading_dot
1054SET_MAKE
1055AWK
1056mkdir_p
1057MKDIR_P
1058INSTALL_STRIP_PROGRAM
1059STRIP
1060install_sh
1061MAKEINFO
1062AUTOHEADER
1063AUTOMAKE
1064AUTOCONF
1065ACLOCAL
1066VERSION
1067PACKAGE
1068CYGPATH_W
1069am__isrc
1070INSTALL_DATA
1071INSTALL_SCRIPT
1072INSTALL_PROGRAM
cristy3ed852e2009-09-05 21:47:34 +00001073target_os
1074target_vendor
1075target_cpu
1076target
1077host_os
1078host_vendor
1079host_cpu
1080host
1081build_os
1082build_vendor
1083build_cpu
1084build
cristy3ed852e2009-09-05 21:47:34 +00001085target_alias
1086host_alias
1087build_alias
1088LIBS
1089ECHO_T
1090ECHO_N
1091ECHO_C
1092DEFS
1093mandir
1094localedir
1095libdir
1096psdir
1097pdfdir
1098dvidir
1099htmldir
1100infodir
1101docdir
1102oldincludedir
1103includedir
1104localstatedir
1105sharedstatedir
1106sysconfdir
1107datadir
1108datarootdir
1109libexecdir
1110sbindir
1111bindir
1112program_transform_name
1113prefix
1114exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001115PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001116PACKAGE_BUGREPORT
1117PACKAGE_STRING
1118PACKAGE_VERSION
1119PACKAGE_TARNAME
1120PACKAGE_NAME
1121PATH_SEPARATOR
1122SHELL'
1123ac_subst_files=''
1124ac_user_opts='
1125enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001126enable_silent_rules
cristy187791c2015-05-03 22:17:00 +00001127enable_reproducible_build
cristy73bd4a52010-10-05 11:24:23 +00001128enable_dependency_tracking
1129with_gnu_ld
1130with_dmalloc
cristya0459972013-11-03 18:09:35 +00001131with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001132enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001133enable_bounds_checking
1134enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001135with_includearch_dir
1136with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001137with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001138with_threads
1139enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001140enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001141enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001142enable_shared
1143enable_static
1144with_pic
1145enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001146with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001147enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001148with_modules
1149enable_delegate_build
1150enable_deprecated
1151enable_installed
1152enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001153enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001154enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001155enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001156enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001157enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001158enable_ccmalloc
1159enable_efence
1160enable_prof
1161enable_gprof
1162enable_gcov
1163with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001164enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001165with_quantum_depth
1166with_cache
1167with_frozenpaths
1168with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001169with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001170with_perl
1171with_perl_options
cristy3b0097d2014-11-04 15:34:47 +00001172with_jemalloc
cristy3ed852e2009-09-05 21:47:34 +00001173with_umem
1174with_libstdc
1175with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001176with_x
cristy3ed852e2009-09-05 21:47:34 +00001177with_zlib
cristy5a3dc992014-12-05 19:50:04 +00001178with_apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001179with_autotrace
1180with_dps
cristy430a7312010-01-21 20:44:04 +00001181with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001182with_fftw
1183with_fpx
cristy853d9902014-08-21 18:50:43 +00001184with_djvu
cristy3ed852e2009-09-05 21:47:34 +00001185with_fontconfig
1186with_freetype
1187with_gslib
1188with_fontpath
1189with_gs_font_dir
1190with_gvc
1191with_jbig
1192with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001193with_lcms
cristy71203402010-06-18 13:12:03 +00001194with_lcms2
cristy99db3872014-01-01 15:11:34 +00001195with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001196with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001197with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001198with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001199with_pango
cristy3ed852e2009-09-05 21:47:34 +00001200with_png
1201with_rsvg
1202with_tiff
cristyb1860752011-03-14 00:27:46 +00001203with_webp
cristy3ed852e2009-09-05 21:47:34 +00001204with_windows_font_dir
1205with_wmf
1206with_xml
cristydd17feb2014-03-05 02:06:32 +00001207enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001208'
1209 ac_precious_vars='build_alias
1210host_alias
1211target_alias
1212CC
1213CFLAGS
1214LDFLAGS
1215LIBS
1216CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001217CPP
cristy3ed852e2009-09-05 21:47:34 +00001218CXX
1219CXXFLAGS
1220CCC
cristy73bd4a52010-10-05 11:24:23 +00001221PKG_CONFIG
1222CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001223XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001224AUTOTRACE_CFLAGS
1225AUTOTRACE_LIBS
1226FONTCONFIG_CFLAGS
1227FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001228FREETYPE_CFLAGS
1229FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001230GVC_CFLAGS
1231GVC_LIBS
cristy99db3872014-01-01 15:11:34 +00001232LIBOPENJP2_CFLAGS
1233LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001234LQR_CFLAGS
1235LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001236LZMA_CFLAGS
1237LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001238OPENEXR_CFLAGS
1239OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001240PANGO_CFLAGS
1241PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001242RSVG_CFLAGS
1243RSVG_LIBS
1244CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001245CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001246
1247
1248# Initialize some variables set by options.
1249ac_init_help=
1250ac_init_version=false
1251ac_unrecognized_opts=
1252ac_unrecognized_sep=
1253# The variables have the same names as the options, with
1254# dashes changed to underlines.
1255cache_file=/dev/null
1256exec_prefix=NONE
1257no_create=
1258no_recursion=
1259prefix=NONE
1260program_prefix=NONE
1261program_suffix=NONE
1262program_transform_name=s,x,x,
1263silent=
1264site=
1265srcdir=
1266verbose=
1267x_includes=NONE
1268x_libraries=NONE
1269
1270# Installation directory options.
1271# These are left unexpanded so users can "make install exec_prefix=/foo"
1272# and all the variables that are supposed to be based on exec_prefix
1273# by default will actually change.
1274# Use braces instead of parens because sh, perl, etc. also accept them.
1275# (The list follows the same order as the GNU Coding Standards.)
1276bindir='${exec_prefix}/bin'
1277sbindir='${exec_prefix}/sbin'
1278libexecdir='${exec_prefix}/libexec'
1279datarootdir='${prefix}/share'
1280datadir='${datarootdir}'
1281sysconfdir='${prefix}/etc'
1282sharedstatedir='${prefix}/com'
1283localstatedir='${prefix}/var'
1284includedir='${prefix}/include'
1285oldincludedir='/usr/include'
1286docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1287infodir='${datarootdir}/info'
1288htmldir='${docdir}'
1289dvidir='${docdir}'
1290pdfdir='${docdir}'
1291psdir='${docdir}'
1292libdir='${exec_prefix}/lib'
1293localedir='${datarootdir}/locale'
1294mandir='${datarootdir}/man'
1295
1296ac_prev=
1297ac_dashdash=
1298for ac_option
1299do
1300 # If the previous option needs an argument, assign it.
1301 if test -n "$ac_prev"; then
1302 eval $ac_prev=\$ac_option
1303 ac_prev=
1304 continue
1305 fi
1306
1307 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001308 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1309 *=) ac_optarg= ;;
1310 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001311 esac
1312
1313 # Accept the important Cygnus configure options, so we can diagnose typos.
1314
1315 case $ac_dashdash$ac_option in
1316 --)
1317 ac_dashdash=yes ;;
1318
1319 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1320 ac_prev=bindir ;;
1321 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1322 bindir=$ac_optarg ;;
1323
1324 -build | --build | --buil | --bui | --bu)
1325 ac_prev=build_alias ;;
1326 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1327 build_alias=$ac_optarg ;;
1328
1329 -cache-file | --cache-file | --cache-fil | --cache-fi \
1330 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1331 ac_prev=cache_file ;;
1332 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1333 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1334 cache_file=$ac_optarg ;;
1335
1336 --config-cache | -C)
1337 cache_file=config.cache ;;
1338
1339 -datadir | --datadir | --datadi | --datad)
1340 ac_prev=datadir ;;
1341 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1342 datadir=$ac_optarg ;;
1343
1344 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1345 | --dataroo | --dataro | --datar)
1346 ac_prev=datarootdir ;;
1347 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1348 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1349 datarootdir=$ac_optarg ;;
1350
1351 -disable-* | --disable-*)
1352 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1353 # Reject names that are not valid shell variable names.
1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001355 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1359 *"
1360"enable_$ac_useropt"
1361"*) ;;
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1364 esac
1365 eval enable_$ac_useropt=no ;;
1366
1367 -docdir | --docdir | --docdi | --doc | --do)
1368 ac_prev=docdir ;;
1369 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1370 docdir=$ac_optarg ;;
1371
1372 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1373 ac_prev=dvidir ;;
1374 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1375 dvidir=$ac_optarg ;;
1376
1377 -enable-* | --enable-*)
1378 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1379 # Reject names that are not valid shell variable names.
1380 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001381 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001382 ac_useropt_orig=$ac_useropt
1383 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1384 case $ac_user_opts in
1385 *"
1386"enable_$ac_useropt"
1387"*) ;;
1388 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1389 ac_unrecognized_sep=', ';;
1390 esac
1391 eval enable_$ac_useropt=\$ac_optarg ;;
1392
1393 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1394 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1395 | --exec | --exe | --ex)
1396 ac_prev=exec_prefix ;;
1397 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1398 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1399 | --exec=* | --exe=* | --ex=*)
1400 exec_prefix=$ac_optarg ;;
1401
1402 -gas | --gas | --ga | --g)
1403 # Obsolete; use --with-gas.
1404 with_gas=yes ;;
1405
1406 -help | --help | --hel | --he | -h)
1407 ac_init_help=long ;;
1408 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1409 ac_init_help=recursive ;;
1410 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1411 ac_init_help=short ;;
1412
1413 -host | --host | --hos | --ho)
1414 ac_prev=host_alias ;;
1415 -host=* | --host=* | --hos=* | --ho=*)
1416 host_alias=$ac_optarg ;;
1417
1418 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1419 ac_prev=htmldir ;;
1420 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1421 | --ht=*)
1422 htmldir=$ac_optarg ;;
1423
1424 -includedir | --includedir | --includedi | --included | --include \
1425 | --includ | --inclu | --incl | --inc)
1426 ac_prev=includedir ;;
1427 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1428 | --includ=* | --inclu=* | --incl=* | --inc=*)
1429 includedir=$ac_optarg ;;
1430
1431 -infodir | --infodir | --infodi | --infod | --info | --inf)
1432 ac_prev=infodir ;;
1433 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1434 infodir=$ac_optarg ;;
1435
1436 -libdir | --libdir | --libdi | --libd)
1437 ac_prev=libdir ;;
1438 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1439 libdir=$ac_optarg ;;
1440
1441 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1442 | --libexe | --libex | --libe)
1443 ac_prev=libexecdir ;;
1444 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1445 | --libexe=* | --libex=* | --libe=*)
1446 libexecdir=$ac_optarg ;;
1447
1448 -localedir | --localedir | --localedi | --localed | --locale)
1449 ac_prev=localedir ;;
1450 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1451 localedir=$ac_optarg ;;
1452
1453 -localstatedir | --localstatedir | --localstatedi | --localstated \
1454 | --localstate | --localstat | --localsta | --localst | --locals)
1455 ac_prev=localstatedir ;;
1456 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1457 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1458 localstatedir=$ac_optarg ;;
1459
1460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1461 ac_prev=mandir ;;
1462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1463 mandir=$ac_optarg ;;
1464
1465 -nfp | --nfp | --nf)
1466 # Obsolete; use --without-fp.
1467 with_fp=no ;;
1468
1469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1470 | --no-cr | --no-c | -n)
1471 no_create=yes ;;
1472
1473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1475 no_recursion=yes ;;
1476
1477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1479 | --oldin | --oldi | --old | --ol | --o)
1480 ac_prev=oldincludedir ;;
1481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1484 oldincludedir=$ac_optarg ;;
1485
1486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1487 ac_prev=prefix ;;
1488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1489 prefix=$ac_optarg ;;
1490
1491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1492 | --program-pre | --program-pr | --program-p)
1493 ac_prev=program_prefix ;;
1494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1496 program_prefix=$ac_optarg ;;
1497
1498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1499 | --program-suf | --program-su | --program-s)
1500 ac_prev=program_suffix ;;
1501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1503 program_suffix=$ac_optarg ;;
1504
1505 -program-transform-name | --program-transform-name \
1506 | --program-transform-nam | --program-transform-na \
1507 | --program-transform-n | --program-transform- \
1508 | --program-transform | --program-transfor \
1509 | --program-transfo | --program-transf \
1510 | --program-trans | --program-tran \
1511 | --progr-tra | --program-tr | --program-t)
1512 ac_prev=program_transform_name ;;
1513 -program-transform-name=* | --program-transform-name=* \
1514 | --program-transform-nam=* | --program-transform-na=* \
1515 | --program-transform-n=* | --program-transform-=* \
1516 | --program-transform=* | --program-transfor=* \
1517 | --program-transfo=* | --program-transf=* \
1518 | --program-trans=* | --program-tran=* \
1519 | --progr-tra=* | --program-tr=* | --program-t=*)
1520 program_transform_name=$ac_optarg ;;
1521
1522 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1523 ac_prev=pdfdir ;;
1524 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1525 pdfdir=$ac_optarg ;;
1526
1527 -psdir | --psdir | --psdi | --psd | --ps)
1528 ac_prev=psdir ;;
1529 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1530 psdir=$ac_optarg ;;
1531
1532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1533 | -silent | --silent | --silen | --sile | --sil)
1534 silent=yes ;;
1535
1536 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1537 ac_prev=sbindir ;;
1538 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1539 | --sbi=* | --sb=*)
1540 sbindir=$ac_optarg ;;
1541
1542 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1543 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1544 | --sharedst | --shareds | --shared | --share | --shar \
1545 | --sha | --sh)
1546 ac_prev=sharedstatedir ;;
1547 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1548 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1549 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1550 | --sha=* | --sh=*)
1551 sharedstatedir=$ac_optarg ;;
1552
1553 -site | --site | --sit)
1554 ac_prev=site ;;
1555 -site=* | --site=* | --sit=*)
1556 site=$ac_optarg ;;
1557
1558 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1559 ac_prev=srcdir ;;
1560 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1561 srcdir=$ac_optarg ;;
1562
1563 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1564 | --syscon | --sysco | --sysc | --sys | --sy)
1565 ac_prev=sysconfdir ;;
1566 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1567 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1568 sysconfdir=$ac_optarg ;;
1569
1570 -target | --target | --targe | --targ | --tar | --ta | --t)
1571 ac_prev=target_alias ;;
1572 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1573 target_alias=$ac_optarg ;;
1574
1575 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1576 verbose=yes ;;
1577
1578 -version | --version | --versio | --versi | --vers | -V)
1579 ac_init_version=: ;;
1580
1581 -with-* | --with-*)
1582 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1583 # Reject names that are not valid shell variable names.
1584 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001585 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001586 ac_useropt_orig=$ac_useropt
1587 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1588 case $ac_user_opts in
1589 *"
1590"with_$ac_useropt"
1591"*) ;;
1592 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1593 ac_unrecognized_sep=', ';;
1594 esac
1595 eval with_$ac_useropt=\$ac_optarg ;;
1596
1597 -without-* | --without-*)
1598 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1599 # Reject names that are not valid shell variable names.
1600 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001601 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001602 ac_useropt_orig=$ac_useropt
1603 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1604 case $ac_user_opts in
1605 *"
1606"with_$ac_useropt"
1607"*) ;;
1608 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1609 ac_unrecognized_sep=', ';;
1610 esac
1611 eval with_$ac_useropt=no ;;
1612
1613 --x)
1614 # Obsolete; use --with-x.
1615 with_x=yes ;;
1616
1617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1618 | --x-incl | --x-inc | --x-in | --x-i)
1619 ac_prev=x_includes ;;
1620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1622 x_includes=$ac_optarg ;;
1623
1624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1626 ac_prev=x_libraries ;;
1627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1629 x_libraries=$ac_optarg ;;
1630
cristy98dddb52010-11-04 00:30:15 +00001631 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1632Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001633 ;;
1634
1635 *=*)
1636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1637 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001638 case $ac_envvar in #(
1639 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001640 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001641 esac
cristy3ed852e2009-09-05 21:47:34 +00001642 eval $ac_envvar=\$ac_optarg
1643 export $ac_envvar ;;
1644
1645 *)
1646 # FIXME: should be removed in autoconf 3.0.
1647 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1649 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001650 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001651 ;;
1652
1653 esac
1654done
1655
1656if test -n "$ac_prev"; then
1657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001658 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001659fi
1660
1661if test -n "$ac_unrecognized_opts"; then
1662 case $enable_option_checking in
1663 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001664 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001665 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1666 esac
1667fi
1668
1669# Check all directory arguments for consistency.
1670for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1671 datadir sysconfdir sharedstatedir localstatedir includedir \
1672 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1673 libdir localedir mandir
1674do
1675 eval ac_val=\$$ac_var
1676 # Remove trailing slashes.
1677 case $ac_val in
1678 */ )
1679 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1680 eval $ac_var=\$ac_val;;
1681 esac
1682 # Be sure to have absolute directory names.
1683 case $ac_val in
1684 [\\/$]* | ?:[\\/]* ) continue;;
1685 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1686 esac
cristy98dddb52010-11-04 00:30:15 +00001687 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001688done
1689
1690# There might be people who depend on the old broken behavior: `$host'
1691# used to hold the argument of --host etc.
1692# FIXME: To remove some day.
1693build=$build_alias
1694host=$host_alias
1695target=$target_alias
1696
1697# FIXME: To remove some day.
1698if test "x$host_alias" != x; then
1699 if test "x$build_alias" = x; then
1700 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001701 elif test "x$build_alias" != "x$host_alias"; then
1702 cross_compiling=yes
1703 fi
1704fi
1705
1706ac_tool_prefix=
1707test -n "$host_alias" && ac_tool_prefix=$host_alias-
1708
1709test "$silent" = yes && exec 6>/dev/null
1710
1711
1712ac_pwd=`pwd` && test -n "$ac_pwd" &&
1713ac_ls_di=`ls -di .` &&
1714ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001715 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001716test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001717 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001718
1719
1720# Find the source files, if location was not specified.
1721if test -z "$srcdir"; then
1722 ac_srcdir_defaulted=yes
1723 # Try the directory containing this script, then the parent directory.
1724 ac_confdir=`$as_dirname -- "$as_myself" ||
1725$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1726 X"$as_myself" : 'X\(//\)[^/]' \| \
1727 X"$as_myself" : 'X\(//\)$' \| \
1728 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1729$as_echo X"$as_myself" |
1730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1731 s//\1/
1732 q
1733 }
1734 /^X\(\/\/\)[^/].*/{
1735 s//\1/
1736 q
1737 }
1738 /^X\(\/\/\)$/{
1739 s//\1/
1740 q
1741 }
1742 /^X\(\/\).*/{
1743 s//\1/
1744 q
1745 }
1746 s/.*/./; q'`
1747 srcdir=$ac_confdir
1748 if test ! -r "$srcdir/$ac_unique_file"; then
1749 srcdir=..
1750 fi
1751else
1752 ac_srcdir_defaulted=no
1753fi
1754if test ! -r "$srcdir/$ac_unique_file"; then
1755 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001756 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001757fi
1758ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1759ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001760 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001761 pwd)`
1762# When building in place, set srcdir=.
1763if test "$ac_abs_confdir" = "$ac_pwd"; then
1764 srcdir=.
1765fi
1766# Remove unnecessary trailing slashes from srcdir.
1767# Double slashes in file names in object file debugging info
1768# mess up M-x gdb in Emacs.
1769case $srcdir in
1770*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1771esac
1772for ac_var in $ac_precious_vars; do
1773 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1774 eval ac_env_${ac_var}_value=\$${ac_var}
1775 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1776 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1777done
1778
1779#
1780# Report the --help message.
1781#
1782if test "$ac_init_help" = "long"; then
1783 # Omit some internal or obsolete options to make the list less imposing.
1784 # This message is too long to be a string in the A/UX 3.1 sh.
1785 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001786\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001787
1788Usage: $0 [OPTION]... [VAR=VALUE]...
1789
1790To assign environment variables (e.g., CC, CFLAGS...), specify them as
1791VAR=VALUE. See below for descriptions of some of the useful variables.
1792
1793Defaults for the options are specified in brackets.
1794
1795Configuration:
1796 -h, --help display this help and exit
1797 --help=short display options specific to this package
1798 --help=recursive display the short help of all the included packages
1799 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001800 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001801 --cache-file=FILE cache test results in FILE [disabled]
1802 -C, --config-cache alias for \`--cache-file=config.cache'
1803 -n, --no-create do not create output files
1804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1805
1806Installation directories:
1807 --prefix=PREFIX install architecture-independent files in PREFIX
1808 [$ac_default_prefix]
1809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1810 [PREFIX]
1811
1812By default, \`make install' will install all the files in
1813\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1814an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1815for instance \`--prefix=\$HOME'.
1816
1817For better control, use the options below.
1818
1819Fine tuning of the installation directories:
1820 --bindir=DIR user executables [EPREFIX/bin]
1821 --sbindir=DIR system admin executables [EPREFIX/sbin]
1822 --libexecdir=DIR program executables [EPREFIX/libexec]
1823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1826 --libdir=DIR object code libraries [EPREFIX/lib]
1827 --includedir=DIR C header files [PREFIX/include]
1828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1829 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1830 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1831 --infodir=DIR info documentation [DATAROOTDIR/info]
1832 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1833 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001834 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001835 --htmldir=DIR html documentation [DOCDIR]
1836 --dvidir=DIR dvi documentation [DOCDIR]
1837 --pdfdir=DIR pdf documentation [DOCDIR]
1838 --psdir=DIR ps documentation [DOCDIR]
1839_ACEOF
1840
1841 cat <<\_ACEOF
1842
cristy73bd4a52010-10-05 11:24:23 +00001843Program names:
1844 --program-prefix=PREFIX prepend PREFIX to installed program names
1845 --program-suffix=SUFFIX append SUFFIX to installed program names
1846 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1847
cristy3ed852e2009-09-05 21:47:34 +00001848X features:
1849 --x-includes=DIR X include files are in DIR
1850 --x-libraries=DIR X library files are in DIR
1851
1852System types:
1853 --build=BUILD configure for building on BUILD [guessed]
1854 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1855 --target=TARGET configure for building compilers for TARGET [HOST]
1856_ACEOF
1857fi
1858
1859if test -n "$ac_init_help"; then
1860 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001861 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001862 esac
1863 cat <<\_ACEOF
1864
1865Optional Features:
1866 --disable-option-checking ignore unrecognized --enable/--with options
1867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001869 --enable-silent-rules less verbose build output (undo: "make V=1")
1870 --disable-silent-rules verbose build output (undo: "make V=0")
cristy187791c2015-05-03 22:17:00 +00001871 --enable-reproducible-build
1872 enable reproducible build
cristyc0890a62012-07-19 00:18:20 +00001873 --enable-dependency-tracking
1874 do not reject slow dependency extractors
1875 --disable-dependency-tracking
1876 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001877 --enable-ld-version-script
1878 enable linker version script (default is enabled
1879 when possible)
cristya3824692012-03-30 17:22:07 +00001880 --enable-bounds-checking
1881 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001882 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001883 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001884 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001885 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001886 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001887 --enable-shared[=PKGS] build shared libraries [default=yes]
1888 --enable-static[=PKGS] build static libraries [default=yes]
1889 --enable-fast-install[=PKGS]
1890 optimize for fast installation [default=yes]
1891 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001892 --enable-delegate-build look for delegate libraries in build directory
1893 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001894 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001895 --disable-installed Formally install ImageMagick under PREFIX
1896 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001897 --enable-zero-configuration
1898 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001899 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001900 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001901 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001902 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001903 --enable-maintainer-mode
1904 enable make rules and dependencies not useful (and
1905 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001906 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001907 --enable-ccmalloc enable 'ccmalloc' memory debug support
1908 --enable-efence enable 'efence' memory debug support
1909 --enable-prof enable 'prof' profiling support
1910 --enable-gprof enable 'gprof' profiling support
1911 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001912 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001913 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001914 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001915
1916Optional Packages:
1917 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1918 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001919 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001920 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001921 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1922 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001923 --includearch-dir=DIR ARCH specific include directory
1924 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001925 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001926 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001927 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001928 both]
cristyda16f162011-02-19 23:52:17 +00001929 --with-sysroot=DIR Search for dependent libraries within DIR
1930 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001931 --with-modules enable building dynamically loadable modules
1932 --with-method-prefix=PREFIX
1933 prefix MagickCore API methods
1934 --with-quantum-depth=DEPTH
1935 number of bits in a pixel quantum (default 16)
1936 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1937 memory)
1938 --with-frozenpaths freeze delegate paths
1939 --without-magick-plus-plus
1940 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001941 --with-package-release-name=NAME
1942 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001943 --with-perl enable build/install of PerlMagick
1944 --with-perl-options=OPTIONS
1945 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001946 PerlMagick build file
cristy3b0097d2014-11-04 15:34:47 +00001947 --with-jemalloc enable jemalloc memory allocation library support
cristy3ed852e2009-09-05 21:47:34 +00001948 --with-umem enable umem memory allocation library support
1949 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1950 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001951 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001952 --without-zlib disable ZLIB support
cristy5a3dc992014-12-05 19:50:04 +00001953 --with-apple-font-dir=DIR
1954 Apple font directory
cristy3ed852e2009-09-05 21:47:34 +00001955 --with-autotrace enable autotrace support
1956 --without-dps disable Display Postscript support
cristy430a7312010-01-21 20:44:04 +00001957 --with-dejavu-font-dir=DIR
1958 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001959 --without-fftw disable FFTW support
1960 --without-fpx disable FlashPIX support
cristy853d9902014-08-21 18:50:43 +00001961 --without-djvu disable DjVu support
cristy3ed852e2009-09-05 21:47:34 +00001962 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001963 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001964 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001965 --with-fontpath=DIR prepend to default font search path
1966 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001967 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001968 --without-jbig disable JBIG support
1969 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001970 --without-lcms disable lcms (v1.1X) support
1971 --without-lcms2 disable lcms (v2.X) support
cristy99db3872014-01-01 15:11:34 +00001972 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001973 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001974 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001975 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001976 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001977 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001978 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001979 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001980 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001981 --with-windows-font-dir=DIR
cristy5a3dc992014-12-05 19:50:04 +00001982 Windows font directory
cristyde3fc5d2012-02-12 15:40:47 +00001983 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001984 --without-xml disable XML support
1985
1986Some influential environment variables:
1987 CC C compiler command
1988 CFLAGS C compiler flags
1989 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1990 nonstandard directory <lib dir>
1991 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001992 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001993 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001994 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001995 CXX C++ compiler command
1996 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001997 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001998 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001999 XMKMF Path to xmkmf, Makefile generator for X Window System
2000 AUTOTRACE_CFLAGS
2001 C compiler flags for AUTOTRACE, overriding pkg-config
2002 AUTOTRACE_LIBS
2003 linker flags for AUTOTRACE, overriding pkg-config
2004 FONTCONFIG_CFLAGS
2005 C compiler flags for FONTCONFIG, overriding pkg-config
2006 FONTCONFIG_LIBS
2007 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00002008 FREETYPE_CFLAGS
2009 C compiler flags for FREETYPE, overriding pkg-config
2010 FREETYPE_LIBS
2011 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002012 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2013 GVC_LIBS linker flags for GVC, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002014 LIBOPENJP2_CFLAGS
2015 C compiler flags for LIBOPENJP2, overriding pkg-config
2016 LIBOPENJP2_LIBS
2017 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002018 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2019 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002020 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2021 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002022 OPENEXR_CFLAGS
2023 C compiler flags for OPENEXR, overriding pkg-config
2024 OPENEXR_LIBS
2025 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002026 PANGO_CFLAGS
2027 C compiler flags for PANGO, overriding pkg-config
2028 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002029 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2030 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2031 CAIRO_SVG_CFLAGS
2032 C compiler flags for CAIRO_SVG, overriding pkg-config
2033 CAIRO_SVG_LIBS
2034 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002035
2036Use these variables to override the choices made by `configure' or to help
2037it to find libraries and programs with nonstandard names/locations.
2038
2039Report bugs to <http://www.imagemagick.org>.
2040_ACEOF
2041ac_status=$?
2042fi
2043
2044if test "$ac_init_help" = "recursive"; then
2045 # If there are subdirs, report their specific --help.
2046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2047 test -d "$ac_dir" ||
2048 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2049 continue
2050 ac_builddir=.
2051
2052case "$ac_dir" in
2053.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2054*)
2055 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2056 # A ".." for each directory in $ac_dir_suffix.
2057 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2058 case $ac_top_builddir_sub in
2059 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2060 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2061 esac ;;
2062esac
2063ac_abs_top_builddir=$ac_pwd
2064ac_abs_builddir=$ac_pwd$ac_dir_suffix
2065# for backward compatibility:
2066ac_top_builddir=$ac_top_build_prefix
2067
2068case $srcdir in
2069 .) # We are building in place.
2070 ac_srcdir=.
2071 ac_top_srcdir=$ac_top_builddir_sub
2072 ac_abs_top_srcdir=$ac_pwd ;;
2073 [\\/]* | ?:[\\/]* ) # Absolute name.
2074 ac_srcdir=$srcdir$ac_dir_suffix;
2075 ac_top_srcdir=$srcdir
2076 ac_abs_top_srcdir=$srcdir ;;
2077 *) # Relative name.
2078 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2079 ac_top_srcdir=$ac_top_build_prefix$srcdir
2080 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2081esac
2082ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2083
2084 cd "$ac_dir" || { ac_status=$?; continue; }
2085 # Check for guested configure.
2086 if test -f "$ac_srcdir/configure.gnu"; then
2087 echo &&
2088 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2089 elif test -f "$ac_srcdir/configure"; then
2090 echo &&
2091 $SHELL "$ac_srcdir/configure" --help=recursive
2092 else
2093 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2094 fi || ac_status=$?
2095 cd "$ac_pwd" || { ac_status=$?; break; }
2096 done
2097fi
2098
2099test -n "$ac_init_help" && exit $ac_status
2100if $ac_init_version; then
2101 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002102ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002103generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002104
cristy14fefe52012-05-21 00:59:18 +00002105Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002106This configure script is free software; the Free Software Foundation
2107gives unlimited permission to copy, distribute and modify it.
2108_ACEOF
2109 exit
2110fi
cristy8b350f62009-11-15 23:12:43 +00002111
2112## ------------------------ ##
2113## Autoconf initialization. ##
2114## ------------------------ ##
2115
2116# ac_fn_c_try_compile LINENO
2117# --------------------------
2118# Try to compile conftest.$ac_ext, and return whether this succeeded.
2119ac_fn_c_try_compile ()
2120{
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 rm -f conftest.$ac_objext
2123 if { { ac_try="$ac_compile"
2124case "(($ac_try" in
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2127esac
2128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129$as_echo "$ac_try_echo"; } >&5
2130 (eval "$ac_compile") 2>conftest.err
2131 ac_status=$?
2132 if test -s conftest.err; then
2133 grep -v '^ *+' conftest.err >conftest.er1
2134 cat conftest.er1 >&5
2135 mv -f conftest.er1 conftest.err
2136 fi
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138 test $ac_status = 0; } && {
2139 test -z "$ac_c_werror_flag" ||
2140 test ! -s conftest.err
2141 } && test -s conftest.$ac_objext; then :
2142 ac_retval=0
2143else
2144 $as_echo "$as_me: failed program was:" >&5
2145sed 's/^/| /' conftest.$ac_ext >&5
2146
2147 ac_retval=1
2148fi
cristyda16f162011-02-19 23:52:17 +00002149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002150 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002151
2152} # ac_fn_c_try_compile
2153
cristy95646052009-11-28 23:05:30 +00002154# ac_fn_c_try_cpp LINENO
2155# ----------------------
2156# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2157ac_fn_c_try_cpp ()
2158{
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 if { { ac_try="$ac_cpp conftest.$ac_ext"
2161case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164esac
2165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166$as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2168 ac_status=$?
2169 if test -s conftest.err; then
2170 grep -v '^ *+' conftest.err >conftest.er1
2171 cat conftest.er1 >&5
2172 mv -f conftest.er1 conftest.err
2173 fi
2174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002175 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2177 test ! -s conftest.err
2178 }; then :
2179 ac_retval=0
2180else
2181 $as_echo "$as_me: failed program was:" >&5
2182sed 's/^/| /' conftest.$ac_ext >&5
2183
2184 ac_retval=1
2185fi
cristyda16f162011-02-19 23:52:17 +00002186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002187 as_fn_set_status $ac_retval
2188
2189} # ac_fn_c_try_cpp
2190
cristy8b350f62009-11-15 23:12:43 +00002191# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2192# -------------------------------------------------------
2193# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2194# the include files in INCLUDES and setting the cache variable VAR
2195# accordingly.
2196ac_fn_c_check_header_mongrel ()
2197{
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002199 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2201$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002202if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002203 $as_echo_n "(cached) " >&6
2204fi
2205eval ac_res=\$$3
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207$as_echo "$ac_res" >&6; }
2208else
2209 # Is the header compilable?
2210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2211$as_echo_n "checking $2 usability... " >&6; }
2212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213/* end confdefs.h. */
2214$4
2215#include <$2>
2216_ACEOF
2217if ac_fn_c_try_compile "$LINENO"; then :
2218 ac_header_compiler=yes
2219else
2220 ac_header_compiler=no
2221fi
2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2224$as_echo "$ac_header_compiler" >&6; }
2225
2226# Is the header present?
2227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2228$as_echo_n "checking $2 presence... " >&6; }
2229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230/* end confdefs.h. */
2231#include <$2>
2232_ACEOF
2233if ac_fn_c_try_cpp "$LINENO"; then :
2234 ac_header_preproc=yes
2235else
2236 ac_header_preproc=no
2237fi
cristyda16f162011-02-19 23:52:17 +00002238rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2240$as_echo "$ac_header_preproc" >&6; }
2241
2242# So? What about this header?
2243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2244 yes:no: )
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2246$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2248$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2249 ;;
2250 no:yes:* )
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2252$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2254$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2256$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2258$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2260$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002261( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002262## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002263## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002264 ) | sed "s/^/$as_me: WARNING: /" >&2
2265 ;;
2266esac
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2268$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002269if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002270 $as_echo_n "(cached) " >&6
2271else
2272 eval "$3=\$ac_header_compiler"
2273fi
2274eval ac_res=\$$3
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276$as_echo "$ac_res" >&6; }
2277fi
cristyda16f162011-02-19 23:52:17 +00002278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002279
2280} # ac_fn_c_check_header_mongrel
2281
2282# ac_fn_c_try_run LINENO
2283# ----------------------
2284# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2285# that executables *can* be run.
2286ac_fn_c_try_run ()
2287{
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 if { { ac_try="$ac_link"
2290case "(($ac_try" in
2291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292 *) ac_try_echo=$ac_try;;
2293esac
2294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2295$as_echo "$ac_try_echo"; } >&5
2296 (eval "$ac_link") 2>&5
2297 ac_status=$?
2298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2299 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2300 { { case "(($ac_try" in
2301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302 *) ac_try_echo=$ac_try;;
2303esac
2304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2305$as_echo "$ac_try_echo"; } >&5
2306 (eval "$ac_try") 2>&5
2307 ac_status=$?
2308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2309 test $ac_status = 0; }; }; then :
2310 ac_retval=0
2311else
2312 $as_echo "$as_me: program exited with status $ac_status" >&5
2313 $as_echo "$as_me: failed program was:" >&5
2314sed 's/^/| /' conftest.$ac_ext >&5
2315
2316 ac_retval=$ac_status
2317fi
2318 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002319 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002320 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002321
2322} # ac_fn_c_try_run
2323
2324# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2325# -------------------------------------------------------
2326# Tests whether HEADER exists and can be compiled using the include files in
2327# INCLUDES, setting the cache variable VAR accordingly.
2328ac_fn_c_check_header_compile ()
2329{
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2332$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002333if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002334 $as_echo_n "(cached) " >&6
2335else
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337/* end confdefs.h. */
2338$4
2339#include <$2>
2340_ACEOF
2341if ac_fn_c_try_compile "$LINENO"; then :
2342 eval "$3=yes"
2343else
2344 eval "$3=no"
2345fi
2346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347fi
2348eval ac_res=\$$3
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002352
2353} # ac_fn_c_check_header_compile
2354
cristya0b81c32010-01-22 02:54:33 +00002355# ac_fn_cxx_try_compile LINENO
2356# ----------------------------
2357# Try to compile conftest.$ac_ext, and return whether this succeeded.
2358ac_fn_cxx_try_compile ()
2359{
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 rm -f conftest.$ac_objext
2362 if { { ac_try="$ac_compile"
2363case "(($ac_try" in
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2366esac
2367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2368$as_echo "$ac_try_echo"; } >&5
2369 (eval "$ac_compile") 2>conftest.err
2370 ac_status=$?
2371 if test -s conftest.err; then
2372 grep -v '^ *+' conftest.err >conftest.er1
2373 cat conftest.er1 >&5
2374 mv -f conftest.er1 conftest.err
2375 fi
2376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2377 test $ac_status = 0; } && {
2378 test -z "$ac_cxx_werror_flag" ||
2379 test ! -s conftest.err
2380 } && test -s conftest.$ac_objext; then :
2381 ac_retval=0
2382else
2383 $as_echo "$as_me: failed program was:" >&5
2384sed 's/^/| /' conftest.$ac_ext >&5
2385
2386 ac_retval=1
2387fi
cristyda16f162011-02-19 23:52:17 +00002388 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002389 as_fn_set_status $ac_retval
2390
2391} # ac_fn_cxx_try_compile
2392
cristyd95b7a52013-10-23 13:12:53 +00002393# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2394# --------------------------------------------
2395# Tries to find the compile-time value of EXPR in a program that includes
2396# INCLUDES, setting VAR accordingly. Returns whether the value could be
2397# computed
2398ac_fn_c_compute_int ()
2399{
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 if test "$cross_compiling" = yes; then
2402 # Depending upon the size, compute the lo and hi bounds.
2403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404/* end confdefs.h. */
2405$4
2406int
2407main ()
2408{
2409static int test_array [1 - 2 * !(($2) >= 0)];
2410test_array [0] = 0;
2411return test_array [0];
2412
2413 ;
2414 return 0;
2415}
2416_ACEOF
2417if ac_fn_c_try_compile "$LINENO"; then :
2418 ac_lo=0 ac_mid=0
2419 while :; do
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421/* end confdefs.h. */
2422$4
2423int
2424main ()
2425{
2426static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2427test_array [0] = 0;
2428return test_array [0];
2429
2430 ;
2431 return 0;
2432}
2433_ACEOF
2434if ac_fn_c_try_compile "$LINENO"; then :
2435 ac_hi=$ac_mid; break
2436else
2437 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2438 if test $ac_lo -le $ac_mid; then
2439 ac_lo= ac_hi=
2440 break
2441 fi
2442 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2443fi
2444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445 done
2446else
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448/* end confdefs.h. */
2449$4
2450int
2451main ()
2452{
2453static int test_array [1 - 2 * !(($2) < 0)];
2454test_array [0] = 0;
2455return test_array [0];
2456
2457 ;
2458 return 0;
2459}
2460_ACEOF
2461if ac_fn_c_try_compile "$LINENO"; then :
2462 ac_hi=-1 ac_mid=-1
2463 while :; do
2464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465/* end confdefs.h. */
2466$4
2467int
2468main ()
2469{
2470static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2471test_array [0] = 0;
2472return test_array [0];
2473
2474 ;
2475 return 0;
2476}
2477_ACEOF
2478if ac_fn_c_try_compile "$LINENO"; then :
2479 ac_lo=$ac_mid; break
2480else
2481 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2482 if test $ac_mid -le $ac_hi; then
2483 ac_lo= ac_hi=
2484 break
2485 fi
2486 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2487fi
2488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489 done
2490else
2491 ac_lo= ac_hi=
2492fi
2493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494fi
2495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2496# Binary search between lo and hi bounds.
2497while test "x$ac_lo" != "x$ac_hi"; do
2498 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500/* end confdefs.h. */
2501$4
2502int
2503main ()
2504{
2505static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2506test_array [0] = 0;
2507return test_array [0];
2508
2509 ;
2510 return 0;
2511}
2512_ACEOF
2513if ac_fn_c_try_compile "$LINENO"; then :
2514 ac_hi=$ac_mid
2515else
2516 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2517fi
2518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519done
2520case $ac_lo in #((
2521?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2522'') ac_retval=1 ;;
2523esac
2524 else
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526/* end confdefs.h. */
2527$4
2528static long int longval () { return $2; }
2529static unsigned long int ulongval () { return $2; }
2530#include <stdio.h>
2531#include <stdlib.h>
2532int
2533main ()
2534{
2535
2536 FILE *f = fopen ("conftest.val", "w");
2537 if (! f)
2538 return 1;
2539 if (($2) < 0)
2540 {
2541 long int i = longval ();
2542 if (i != ($2))
2543 return 1;
2544 fprintf (f, "%ld", i);
2545 }
2546 else
2547 {
2548 unsigned long int i = ulongval ();
2549 if (i != ($2))
2550 return 1;
2551 fprintf (f, "%lu", i);
2552 }
2553 /* Do not output a trailing newline, as this causes \r\n confusion
2554 on some platforms. */
2555 return ferror (f) || fclose (f) != 0;
2556
2557 ;
2558 return 0;
2559}
2560_ACEOF
2561if ac_fn_c_try_run "$LINENO"; then :
2562 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2563else
2564 ac_retval=1
2565fi
2566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2567 conftest.$ac_objext conftest.beam conftest.$ac_ext
2568rm -f conftest.val
2569
2570 fi
2571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2572 as_fn_set_status $ac_retval
2573
2574} # ac_fn_c_compute_int
2575
cristy8b350f62009-11-15 23:12:43 +00002576# ac_fn_c_try_link LINENO
2577# -----------------------
2578# Try to link conftest.$ac_ext, and return whether this succeeded.
2579ac_fn_c_try_link ()
2580{
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 rm -f conftest.$ac_objext conftest$ac_exeext
2583 if { { ac_try="$ac_link"
2584case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587esac
2588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2589$as_echo "$ac_try_echo"; } >&5
2590 (eval "$ac_link") 2>conftest.err
2591 ac_status=$?
2592 if test -s conftest.err; then
2593 grep -v '^ *+' conftest.err >conftest.er1
2594 cat conftest.er1 >&5
2595 mv -f conftest.er1 conftest.err
2596 fi
2597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2598 test $ac_status = 0; } && {
2599 test -z "$ac_c_werror_flag" ||
2600 test ! -s conftest.err
2601 } && test -s conftest$ac_exeext && {
2602 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002603 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002604 }; then :
2605 ac_retval=0
2606else
2607 $as_echo "$as_me: failed program was:" >&5
2608sed 's/^/| /' conftest.$ac_ext >&5
2609
2610 ac_retval=1
2611fi
2612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2614 # interfere with the next link command; also delete a directory that is
2615 # left behind by Apple's compiler. We do this before executing the actions.
2616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002618 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002619
2620} # ac_fn_c_try_link
2621
cristy73bd4a52010-10-05 11:24:23 +00002622# ac_fn_c_check_func LINENO FUNC VAR
2623# ----------------------------------
2624# Tests whether FUNC exists, setting the cache variable VAR accordingly
2625ac_fn_c_check_func ()
2626{
2627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2629$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002630if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002631 $as_echo_n "(cached) " >&6
2632else
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634/* end confdefs.h. */
2635/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2637#define $2 innocuous_$2
2638
2639/* System header to define __stub macros and hopefully few prototypes,
2640 which can conflict with char $2 (); below.
2641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2642 <limits.h> exists even on freestanding compilers. */
2643
2644#ifdef __STDC__
2645# include <limits.h>
2646#else
2647# include <assert.h>
2648#endif
2649
2650#undef $2
2651
2652/* Override any GCC internal prototype to avoid an error.
2653 Use char because int might match the return type of a GCC
2654 builtin and then its argument prototype would still apply. */
2655#ifdef __cplusplus
2656extern "C"
2657#endif
2658char $2 ();
2659/* The GNU C library defines this for functions which it implements
2660 to always fail with ENOSYS. Some functions are actually named
2661 something starting with __ and the normal name is an alias. */
2662#if defined __stub_$2 || defined __stub___$2
2663choke me
2664#endif
2665
2666int
2667main ()
2668{
2669return $2 ();
2670 ;
2671 return 0;
2672}
2673_ACEOF
2674if ac_fn_c_try_link "$LINENO"; then :
2675 eval "$3=yes"
2676else
2677 eval "$3=no"
2678fi
2679rm -f core conftest.err conftest.$ac_objext \
2680 conftest$ac_exeext conftest.$ac_ext
2681fi
2682eval ac_res=\$$3
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2684$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002686
2687} # ac_fn_c_check_func
2688
2689# ac_fn_cxx_try_cpp LINENO
2690# ------------------------
2691# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2692ac_fn_cxx_try_cpp ()
2693{
2694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2695 if { { ac_try="$ac_cpp conftest.$ac_ext"
2696case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699esac
2700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701$as_echo "$ac_try_echo"; } >&5
2702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2703 ac_status=$?
2704 if test -s conftest.err; then
2705 grep -v '^ *+' conftest.err >conftest.er1
2706 cat conftest.er1 >&5
2707 mv -f conftest.er1 conftest.err
2708 fi
2709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002710 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002711 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2712 test ! -s conftest.err
2713 }; then :
2714 ac_retval=0
2715else
2716 $as_echo "$as_me: failed program was:" >&5
2717sed 's/^/| /' conftest.$ac_ext >&5
2718
2719 ac_retval=1
2720fi
cristyda16f162011-02-19 23:52:17 +00002721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002722 as_fn_set_status $ac_retval
2723
2724} # ac_fn_cxx_try_cpp
2725
2726# ac_fn_cxx_try_link LINENO
2727# -------------------------
2728# Try to link conftest.$ac_ext, and return whether this succeeded.
2729ac_fn_cxx_try_link ()
2730{
2731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732 rm -f conftest.$ac_objext conftest$ac_exeext
2733 if { { ac_try="$ac_link"
2734case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737esac
2738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2739$as_echo "$ac_try_echo"; } >&5
2740 (eval "$ac_link") 2>conftest.err
2741 ac_status=$?
2742 if test -s conftest.err; then
2743 grep -v '^ *+' conftest.err >conftest.er1
2744 cat conftest.er1 >&5
2745 mv -f conftest.er1 conftest.err
2746 fi
2747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748 test $ac_status = 0; } && {
2749 test -z "$ac_cxx_werror_flag" ||
2750 test ! -s conftest.err
2751 } && test -s conftest$ac_exeext && {
2752 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002753 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002754 }; then :
2755 ac_retval=0
2756else
2757 $as_echo "$as_me: failed program was:" >&5
2758sed 's/^/| /' conftest.$ac_ext >&5
2759
2760 ac_retval=1
2761fi
2762 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2763 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2764 # interfere with the next link command; also delete a directory that is
2765 # left behind by Apple's compiler. We do this before executing the actions.
2766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002768 as_fn_set_status $ac_retval
2769
2770} # ac_fn_cxx_try_link
2771
cristy8b350f62009-11-15 23:12:43 +00002772# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2773# -------------------------------------------
2774# Tests whether TYPE exists after having included INCLUDES, setting cache
2775# variable VAR accordingly.
2776ac_fn_c_check_type ()
2777{
2778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2780$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002781if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002782 $as_echo_n "(cached) " >&6
2783else
2784 eval "$3=no"
2785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786/* end confdefs.h. */
2787$4
2788int
2789main ()
2790{
2791if (sizeof ($2))
2792 return 0;
2793 ;
2794 return 0;
2795}
2796_ACEOF
2797if ac_fn_c_try_compile "$LINENO"; then :
2798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799/* end confdefs.h. */
2800$4
2801int
2802main ()
2803{
2804if (sizeof (($2)))
2805 return 0;
2806 ;
2807 return 0;
2808}
2809_ACEOF
2810if ac_fn_c_try_compile "$LINENO"; then :
2811
2812else
2813 eval "$3=yes"
2814fi
2815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2816fi
2817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2818fi
2819eval ac_res=\$$3
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2821$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002823
2824} # ac_fn_c_check_type
2825
cristy92703d82010-04-26 00:18:18 +00002826# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2827# ----------------------------------------------------
2828# Tries to find if the field MEMBER exists in type AGGR, after including
2829# INCLUDES, setting cache variable VAR accordingly.
2830ac_fn_c_check_member ()
2831{
2832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2834$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002835if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002836 $as_echo_n "(cached) " >&6
2837else
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839/* end confdefs.h. */
2840$5
2841int
2842main ()
2843{
2844static $2 ac_aggr;
2845if (ac_aggr.$3)
2846return 0;
2847 ;
2848 return 0;
2849}
2850_ACEOF
2851if ac_fn_c_try_compile "$LINENO"; then :
2852 eval "$4=yes"
2853else
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855/* end confdefs.h. */
2856$5
2857int
2858main ()
2859{
2860static $2 ac_aggr;
2861if (sizeof ac_aggr.$3)
2862return 0;
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867if ac_fn_c_try_compile "$LINENO"; then :
2868 eval "$4=yes"
2869else
2870 eval "$4=no"
2871fi
2872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873fi
2874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2875fi
2876eval ac_res=\$$4
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2878$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002880
2881} # ac_fn_c_check_member
2882
cristy5eef09f2012-10-16 12:08:28 +00002883# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2884# ---------------------------------------------
2885# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2886# accordingly.
2887ac_fn_c_check_decl ()
2888{
2889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2890 as_decl_name=`echo $2|sed 's/ *(.*//'`
2891 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2893$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2894if eval \${$3+:} false; then :
2895 $as_echo_n "(cached) " >&6
2896else
2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2898/* end confdefs.h. */
2899$4
2900int
2901main ()
2902{
2903#ifndef $as_decl_name
2904#ifdef __cplusplus
2905 (void) $as_decl_use;
2906#else
2907 (void) $as_decl_name;
2908#endif
2909#endif
2910
2911 ;
2912 return 0;
2913}
2914_ACEOF
2915if ac_fn_c_try_compile "$LINENO"; then :
2916 eval "$3=yes"
2917else
2918 eval "$3=no"
2919fi
2920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2921fi
2922eval ac_res=\$$3
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2924$as_echo "$ac_res" >&6; }
2925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2926
2927} # ac_fn_c_check_decl
2928
cristy501c8042011-05-26 17:46:28 +00002929# ac_fn_c_find_intX_t LINENO BITS VAR
2930# -----------------------------------
2931# Finds a signed integer type with width BITS, setting cache variable VAR
2932# accordingly.
2933ac_fn_c_find_intX_t ()
2934{
2935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2937$as_echo_n "checking for int$2_t... " >&6; }
2938if eval \${$3+:} false; then :
2939 $as_echo_n "(cached) " >&6
2940else
2941 eval "$3=no"
2942 # Order is important - never check a type that is potentially smaller
2943 # than half of the expected target width.
2944 for ac_type in int$2_t 'int' 'long int' \
2945 'long long int' 'short int' 'signed char'; do
2946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947/* end confdefs.h. */
2948$ac_includes_default
2949 enum { N = $2 / 2 - 1 };
2950int
2951main ()
2952{
2953static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002954test_array [0] = 0;
2955return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002956
2957 ;
2958 return 0;
2959}
2960_ACEOF
2961if ac_fn_c_try_compile "$LINENO"; then :
2962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2963/* end confdefs.h. */
2964$ac_includes_default
2965 enum { N = $2 / 2 - 1 };
2966int
2967main ()
2968{
2969static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2970 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002971test_array [0] = 0;
2972return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002973
2974 ;
2975 return 0;
2976}
2977_ACEOF
2978if ac_fn_c_try_compile "$LINENO"; then :
2979
2980else
2981 case $ac_type in #(
2982 int$2_t) :
2983 eval "$3=yes" ;; #(
2984 *) :
2985 eval "$3=\$ac_type" ;;
2986esac
2987fi
2988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989fi
2990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2991 if eval test \"x\$"$3"\" = x"no"; then :
2992
2993else
2994 break
2995fi
2996 done
2997fi
2998eval ac_res=\$$3
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3000$as_echo "$ac_res" >&6; }
3001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3002
3003} # ac_fn_c_find_intX_t
3004
3005# ac_fn_c_find_uintX_t LINENO BITS VAR
3006# ------------------------------------
3007# Finds an unsigned integer type with width BITS, setting cache variable VAR
3008# accordingly.
3009ac_fn_c_find_uintX_t ()
3010{
3011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3013$as_echo_n "checking for uint$2_t... " >&6; }
3014if eval \${$3+:} false; then :
3015 $as_echo_n "(cached) " >&6
3016else
3017 eval "$3=no"
3018 # Order is important - never check a type that is potentially smaller
3019 # than half of the expected target width.
3020 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3021 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023/* end confdefs.h. */
3024$ac_includes_default
3025int
3026main ()
3027{
3028static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003029test_array [0] = 0;
3030return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003031
3032 ;
3033 return 0;
3034}
3035_ACEOF
3036if ac_fn_c_try_compile "$LINENO"; then :
3037 case $ac_type in #(
3038 uint$2_t) :
3039 eval "$3=yes" ;; #(
3040 *) :
3041 eval "$3=\$ac_type" ;;
3042esac
3043fi
3044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3045 if eval test \"x\$"$3"\" = x"no"; then :
3046
3047else
3048 break
3049fi
3050 done
3051fi
3052eval ac_res=\$$3
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3054$as_echo "$ac_res" >&6; }
3055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3056
3057} # ac_fn_c_find_uintX_t
3058
cristy8b350f62009-11-15 23:12:43 +00003059# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3060# ---------------------------------------------------------
3061# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3062# the include files in INCLUDES and setting the cache variable VAR
3063# accordingly.
3064ac_fn_cxx_check_header_mongrel ()
3065{
3066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003067 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3069$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003070if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003071 $as_echo_n "(cached) " >&6
3072fi
3073eval ac_res=\$$3
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3075$as_echo "$ac_res" >&6; }
3076else
3077 # Is the header compilable?
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3079$as_echo_n "checking $2 usability... " >&6; }
3080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081/* end confdefs.h. */
3082$4
3083#include <$2>
3084_ACEOF
3085if ac_fn_cxx_try_compile "$LINENO"; then :
3086 ac_header_compiler=yes
3087else
3088 ac_header_compiler=no
3089fi
3090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3092$as_echo "$ac_header_compiler" >&6; }
3093
3094# Is the header present?
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3096$as_echo_n "checking $2 presence... " >&6; }
3097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098/* end confdefs.h. */
3099#include <$2>
3100_ACEOF
3101if ac_fn_cxx_try_cpp "$LINENO"; then :
3102 ac_header_preproc=yes
3103else
3104 ac_header_preproc=no
3105fi
cristyda16f162011-02-19 23:52:17 +00003106rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3108$as_echo "$ac_header_preproc" >&6; }
3109
3110# So? What about this header?
3111case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3112 yes:no: )
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3114$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3116$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3117 ;;
3118 no:yes:* )
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3120$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3122$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3124$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3126$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3128$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003129( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003130## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003131## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003132 ) | sed "s/^/$as_me: WARNING: /" >&2
3133 ;;
3134esac
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3136$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003137if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003138 $as_echo_n "(cached) " >&6
3139else
3140 eval "$3=\$ac_header_compiler"
3141fi
3142eval ac_res=\$$3
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3144$as_echo "$ac_res" >&6; }
3145fi
cristyda16f162011-02-19 23:52:17 +00003146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003147
3148} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003149cat >config.log <<_ACEOF
3150This file contains any messages produced by compilers while
3151running configure, to aid debugging if configure makes a mistake.
3152
cristy29eb34e2011-10-16 00:46:08 +00003153It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003154generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003155
3156 $ $0 $@
3157
3158_ACEOF
3159exec 5>>config.log
3160{
3161cat <<_ASUNAME
3162## --------- ##
3163## Platform. ##
3164## --------- ##
3165
3166hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3167uname -m = `(uname -m) 2>/dev/null || echo unknown`
3168uname -r = `(uname -r) 2>/dev/null || echo unknown`
3169uname -s = `(uname -s) 2>/dev/null || echo unknown`
3170uname -v = `(uname -v) 2>/dev/null || echo unknown`
3171
3172/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3173/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3174
3175/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3176/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3177/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3178/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3179/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3180/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3181/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3182
3183_ASUNAME
3184
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003190 $as_echo "PATH: $as_dir"
3191 done
cristy3ed852e2009-09-05 21:47:34 +00003192IFS=$as_save_IFS
3193
3194} >&5
3195
3196cat >&5 <<_ACEOF
3197
3198
3199## ----------- ##
3200## Core tests. ##
3201## ----------- ##
3202
3203_ACEOF
3204
3205
3206# Keep a trace of the command line.
3207# Strip out --no-create and --no-recursion so they do not pile up.
3208# Strip out --silent because we don't want to record it for future runs.
3209# Also quote any args containing shell meta-characters.
3210# Make two passes to allow for proper duplicate-argument suppression.
3211ac_configure_args=
3212ac_configure_args0=
3213ac_configure_args1=
3214ac_must_keep_next=false
3215for ac_pass in 1 2
3216do
3217 for ac_arg
3218 do
3219 case $ac_arg in
3220 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3222 | -silent | --silent | --silen | --sile | --sil)
3223 continue ;;
3224 *\'*)
3225 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3226 esac
3227 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003228 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003229 2)
cristy8b350f62009-11-15 23:12:43 +00003230 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003231 if test $ac_must_keep_next = true; then
3232 ac_must_keep_next=false # Got value, back to normal.
3233 else
3234 case $ac_arg in
3235 *=* | --config-cache | -C | -disable-* | --disable-* \
3236 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3237 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3238 | -with-* | --with-* | -without-* | --without-* | --x)
3239 case "$ac_configure_args0 " in
3240 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3241 esac
3242 ;;
3243 -* ) ac_must_keep_next=true ;;
3244 esac
3245 fi
cristy8b350f62009-11-15 23:12:43 +00003246 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003247 ;;
3248 esac
3249 done
3250done
cristy8b350f62009-11-15 23:12:43 +00003251{ ac_configure_args0=; unset ac_configure_args0;}
3252{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003253
3254# When interrupted or exit'd, cleanup temporary files, and complete
3255# config.log. We remove comments because anyway the quotes in there
3256# would cause problems or look ugly.
3257# WARNING: Use '\'' to represent an apostrophe within the trap.
3258# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3259trap 'exit_status=$?
3260 # Save into config.log some information that might help in debugging.
3261 {
3262 echo
3263
cristy98dddb52010-11-04 00:30:15 +00003264 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003265## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003266## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003267 echo
3268 # The following way of writing the cache mishandles newlines in values,
3269(
3270 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3271 eval ac_val=\$$ac_var
3272 case $ac_val in #(
3273 *${as_nl}*)
3274 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003275 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003276$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3277 esac
3278 case $ac_var in #(
3279 _ | IFS | as_nl) ;; #(
3280 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003281 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003282 esac ;;
3283 esac
3284 done
3285 (set) 2>&1 |
3286 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3287 *${as_nl}ac_space=\ *)
3288 sed -n \
3289 "s/'\''/'\''\\\\'\'''\''/g;
3290 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3291 ;; #(
3292 *)
3293 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3294 ;;
3295 esac |
3296 sort
3297)
3298 echo
3299
cristy98dddb52010-11-04 00:30:15 +00003300 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003301## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003302## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003303 echo
3304 for ac_var in $ac_subst_vars
3305 do
3306 eval ac_val=\$$ac_var
3307 case $ac_val in
3308 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3309 esac
3310 $as_echo "$ac_var='\''$ac_val'\''"
3311 done | sort
3312 echo
3313
3314 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003315 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003316## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003317## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003318 echo
3319 for ac_var in $ac_subst_files
3320 do
3321 eval ac_val=\$$ac_var
3322 case $ac_val in
3323 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3324 esac
3325 $as_echo "$ac_var='\''$ac_val'\''"
3326 done | sort
3327 echo
3328 fi
3329
3330 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003331 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003332## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003333## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003334 echo
3335 cat confdefs.h
3336 echo
3337 fi
3338 test "$ac_signal" != 0 &&
3339 $as_echo "$as_me: caught signal $ac_signal"
3340 $as_echo "$as_me: exit $exit_status"
3341 } >&5
3342 rm -f core *.core core.conftest.* &&
3343 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3344 exit $exit_status
3345' 0
3346for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003347 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003348done
3349ac_signal=0
3350
3351# confdefs.h avoids OS command line length limits that DEFS can exceed.
3352rm -f -r conftest* confdefs.h
3353
cristy8b350f62009-11-15 23:12:43 +00003354$as_echo "/* confdefs.h */" > confdefs.h
3355
cristy3ed852e2009-09-05 21:47:34 +00003356# Predefined preprocessor variables.
3357
3358cat >>confdefs.h <<_ACEOF
3359#define PACKAGE_NAME "$PACKAGE_NAME"
3360_ACEOF
3361
cristy3ed852e2009-09-05 21:47:34 +00003362cat >>confdefs.h <<_ACEOF
3363#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3364_ACEOF
3365
cristy3ed852e2009-09-05 21:47:34 +00003366cat >>confdefs.h <<_ACEOF
3367#define PACKAGE_VERSION "$PACKAGE_VERSION"
3368_ACEOF
3369
cristy3ed852e2009-09-05 21:47:34 +00003370cat >>confdefs.h <<_ACEOF
3371#define PACKAGE_STRING "$PACKAGE_STRING"
3372_ACEOF
3373
cristy3ed852e2009-09-05 21:47:34 +00003374cat >>confdefs.h <<_ACEOF
3375#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3376_ACEOF
3377
cristy8b350f62009-11-15 23:12:43 +00003378cat >>confdefs.h <<_ACEOF
3379#define PACKAGE_URL "$PACKAGE_URL"
3380_ACEOF
3381
cristy3ed852e2009-09-05 21:47:34 +00003382
3383# Let the site file select an alternate cache file if it wants to.
3384# Prefer an explicitly selected file to automatically selected ones.
3385ac_site_file1=NONE
3386ac_site_file2=NONE
3387if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003388 # We do not want a PATH search for config.site.
3389 case $CONFIG_SITE in #((
3390 -*) ac_site_file1=./$CONFIG_SITE;;
3391 */*) ac_site_file1=$CONFIG_SITE;;
3392 *) ac_site_file1=./$CONFIG_SITE;;
3393 esac
cristy3ed852e2009-09-05 21:47:34 +00003394elif test "x$prefix" != xNONE; then
3395 ac_site_file1=$prefix/share/config.site
3396 ac_site_file2=$prefix/etc/config.site
3397else
3398 ac_site_file1=$ac_default_prefix/share/config.site
3399 ac_site_file2=$ac_default_prefix/etc/config.site
3400fi
3401for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3402do
3403 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003404 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003405 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003406$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3407 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003408 . "$ac_site_file" \
3409 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411as_fn_error $? "failed to load site script $ac_site_file
3412See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003413 fi
3414done
3415
3416if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003417 # Some versions of bash will fail to source /dev/null (special files
3418 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3419 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003420 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003421$as_echo "$as_me: loading cache $cache_file" >&6;}
3422 case $cache_file in
3423 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3424 *) . "./$cache_file";;
3425 esac
3426 fi
3427else
cristy8b350f62009-11-15 23:12:43 +00003428 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003429$as_echo "$as_me: creating cache $cache_file" >&6;}
3430 >$cache_file
3431fi
3432
cristycd4c5312009-11-22 01:19:08 +00003433as_fn_append ac_header_list " stdlib.h"
3434as_fn_append ac_header_list " unistd.h"
3435as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003436# Check that the precious variables saved in the cache have kept the same
3437# value.
3438ac_cache_corrupted=false
3439for ac_var in $ac_precious_vars; do
3440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3441 eval ac_new_set=\$ac_env_${ac_var}_set
3442 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3443 eval ac_new_val=\$ac_env_${ac_var}_value
3444 case $ac_old_set,$ac_new_set in
3445 set,)
cristy8b350f62009-11-15 23:12:43 +00003446 { $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 +00003447$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3448 ac_cache_corrupted=: ;;
3449 ,set)
cristy8b350f62009-11-15 23:12:43 +00003450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003451$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3452 ac_cache_corrupted=: ;;
3453 ,);;
3454 *)
3455 if test "x$ac_old_val" != "x$ac_new_val"; then
3456 # differences in whitespace do not lead to failure.
3457 ac_old_val_w=`echo x $ac_old_val`
3458 ac_new_val_w=`echo x $ac_new_val`
3459 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003461$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3462 ac_cache_corrupted=:
3463 else
cristy8b350f62009-11-15 23:12:43 +00003464 { $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 +00003465$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3466 eval $ac_var=\$ac_old_val
3467 fi
cristy8b350f62009-11-15 23:12:43 +00003468 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003469$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003470 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003471$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3472 fi;;
3473 esac
3474 # Pass precious variables to config.status.
3475 if test "$ac_new_set" = set; then
3476 case $ac_new_val in
3477 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3478 *) ac_arg=$ac_var=$ac_new_val ;;
3479 esac
3480 case " $ac_configure_args " in
3481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003482 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003483 esac
3484 fi
3485done
3486if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003490$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003491 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003492fi
cristy8b350f62009-11-15 23:12:43 +00003493## -------------------- ##
3494## Main body of script. ##
3495## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003496
3497ac_ext=c
3498ac_cpp='$CPP $CPPFLAGS'
3499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502
3503
3504
3505ac_aux_dir=
3506for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003507 if test -f "$ac_dir/install-sh"; then
3508 ac_aux_dir=$ac_dir
3509 ac_install_sh="$ac_aux_dir/install-sh -c"
3510 break
3511 elif test -f "$ac_dir/install.sh"; then
3512 ac_aux_dir=$ac_dir
3513 ac_install_sh="$ac_aux_dir/install.sh -c"
3514 break
3515 elif test -f "$ac_dir/shtool"; then
3516 ac_aux_dir=$ac_dir
3517 ac_install_sh="$ac_aux_dir/shtool install -c"
3518 break
3519 fi
cristy3ed852e2009-09-05 21:47:34 +00003520done
3521if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003522 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003523fi
3524
3525# These three variables are undocumented and unsupported,
3526# and are intended to be withdrawn in a future Autoconf release.
3527# They can cause serious problems if a builder's source tree is in a directory
3528# whose full name contains unusual characters.
3529ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3530ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3531ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3532
3533
3534
3535
3536ac_config_headers="$ac_config_headers config/config.h"
3537
cristy24fc1fe2010-10-23 21:13:01 +00003538
cristy01ff9f32012-12-01 18:15:29 +00003539ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003540
cristy3ed852e2009-09-05 21:47:34 +00003541# Make sure we can run config.sub.
3542$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003543 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003544
cristy8b350f62009-11-15 23:12:43 +00003545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003546$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003547if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003548 $as_echo_n "(cached) " >&6
3549else
3550 ac_build_alias=$build_alias
3551test "x$ac_build_alias" = x &&
3552 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3553test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003554 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003555ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003556 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003557
3558fi
cristy8b350f62009-11-15 23:12:43 +00003559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003560$as_echo "$ac_cv_build" >&6; }
3561case $ac_cv_build in
3562*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003563*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003564esac
3565build=$ac_cv_build
3566ac_save_IFS=$IFS; IFS='-'
3567set x $ac_cv_build
3568shift
3569build_cpu=$1
3570build_vendor=$2
3571shift; shift
3572# Remember, the first character of IFS is used to create $*,
3573# except with old shells:
3574build_os=$*
3575IFS=$ac_save_IFS
3576case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3577
3578
cristy8b350f62009-11-15 23:12:43 +00003579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003580$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003581if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003582 $as_echo_n "(cached) " >&6
3583else
3584 if test "x$host_alias" = x; then
3585 ac_cv_host=$ac_cv_build
3586else
3587 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003588 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003589fi
3590
3591fi
cristy8b350f62009-11-15 23:12:43 +00003592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003593$as_echo "$ac_cv_host" >&6; }
3594case $ac_cv_host in
3595*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003596*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003597esac
3598host=$ac_cv_host
3599ac_save_IFS=$IFS; IFS='-'
3600set x $ac_cv_host
3601shift
3602host_cpu=$1
3603host_vendor=$2
3604shift; shift
3605# Remember, the first character of IFS is used to create $*,
3606# except with old shells:
3607host_os=$*
3608IFS=$ac_save_IFS
3609case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3610
3611
cristy8b350f62009-11-15 23:12:43 +00003612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003613$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003614if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003615 $as_echo_n "(cached) " >&6
3616else
3617 if test "x$target_alias" = x; then
3618 ac_cv_target=$ac_cv_host
3619else
3620 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003621 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003622fi
3623
3624fi
cristy8b350f62009-11-15 23:12:43 +00003625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003626$as_echo "$ac_cv_target" >&6; }
3627case $ac_cv_target in
3628*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003629*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003630esac
3631target=$ac_cv_target
3632ac_save_IFS=$IFS; IFS='-'
3633set x $ac_cv_target
3634shift
3635target_cpu=$1
3636target_vendor=$2
3637shift; shift
3638# Remember, the first character of IFS is used to create $*,
3639# except with old shells:
3640target_os=$*
3641IFS=$ac_save_IFS
3642case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3643
3644
3645# The aliases save the names the user supplied, while $host etc.
3646# will get canonicalized.
3647test -n "$target_alias" &&
3648 test "$program_prefix$program_suffix$program_transform_name" = \
3649 NONENONEs,x,x, &&
3650 program_prefix=${target_alias}-
3651
cristy837d6dc2010-02-27 01:16:57 +00003652
cristya5bda012013-11-03 18:05:38 +00003653am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003654
3655# Find a good install program. We prefer a C program (faster),
3656# so one script is as good as another. But avoid the broken or
3657# incompatible versions:
3658# SysV /etc/install, /usr/sbin/install
3659# SunOS /usr/etc/install
3660# IRIX /sbin/install
3661# AIX /bin/install
3662# AmigaOS /C/install, which installs bootblocks on floppy discs
3663# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3664# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3665# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3666# OS/2's system install, which has a completely different semantic
3667# ./install, which can be erroneously created by make from ./install.sh.
3668# Reject install programs that cannot install multiple files.
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3670$as_echo_n "checking for a BSD-compatible install... " >&6; }
3671if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003672if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003673 $as_echo_n "(cached) " >&6
3674else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 # Account for people who put trailing slashes in PATH elements.
3681case $as_dir/ in #((
3682 ./ | .// | /[cC]/* | \
3683 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3684 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3685 /usr/ucb/* ) ;;
3686 *)
3687 # OSF1 and SCO ODT 3.0 have their own names for install.
3688 # Don't use installbsd from OSF since it installs stuff as root
3689 # by default.
3690 for ac_prog in ginstall scoinst install; do
3691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003692 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003693 if test $ac_prog = install &&
3694 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3695 # AIX install. It has an incompatible calling convention.
3696 :
3697 elif test $ac_prog = install &&
3698 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3699 # program-specific install script used by HP pwplus--don't use.
3700 :
3701 else
3702 rm -rf conftest.one conftest.two conftest.dir
3703 echo one > conftest.one
3704 echo two > conftest.two
3705 mkdir conftest.dir
3706 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3707 test -s conftest.one && test -s conftest.two &&
3708 test -s conftest.dir/conftest.one &&
3709 test -s conftest.dir/conftest.two
3710 then
3711 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3712 break 3
3713 fi
3714 fi
3715 fi
3716 done
3717 done
3718 ;;
3719esac
3720
3721 done
3722IFS=$as_save_IFS
3723
3724rm -rf conftest.one conftest.two conftest.dir
3725
3726fi
3727 if test "${ac_cv_path_install+set}" = set; then
3728 INSTALL=$ac_cv_path_install
3729 else
3730 # As a last resort, use the slow shell script. Don't cache a
3731 # value for INSTALL within a source directory, because that will
3732 # break other packages using the cache if that directory is
3733 # removed, or if the value is a relative name.
3734 INSTALL=$ac_install_sh
3735 fi
3736fi
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3738$as_echo "$INSTALL" >&6; }
3739
3740# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3741# It thinks the first close brace ends the variable substitution.
3742test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3743
3744test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3745
3746test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3747
cristy9af1cbf2014-12-28 22:03:09 +00003748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3749$as_echo_n "checking whether build environment is sane... " >&6; }
3750# Reject unsafe characters in $srcdir or the absolute working directory
3751# name. Accept space and tab only in the latter.
3752am_lf='
3753'
3754case `pwd` in
3755 *[\\\"\#\$\&\'\`$am_lf]*)
3756 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3757esac
3758case $srcdir in
3759 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3760 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3761esac
3762
3763# Do 'set' in a subshell so we don't clobber the current shell's
3764# arguments. Must try -L first in case configure is actually a
3765# symlink; some systems play weird games with the mod time of symlinks
3766# (eg FreeBSD returns the mod time of the symlink's containing
3767# directory).
3768if (
3769 am_has_slept=no
3770 for am_try in 1 2; do
3771 echo "timestamp, slept: $am_has_slept" > conftest.file
3772 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3773 if test "$*" = "X"; then
3774 # -L didn't work.
3775 set X `ls -t "$srcdir/configure" conftest.file`
3776 fi
3777 if test "$*" != "X $srcdir/configure conftest.file" \
3778 && test "$*" != "X conftest.file $srcdir/configure"; then
3779
3780 # If neither matched, then we have a broken ls. This can happen
3781 # if, for instance, CONFIG_SHELL is bash and it inherits a
3782 # broken ls alias from the environment. This has actually
3783 # happened. Such a system could not be considered "sane".
3784 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3785 alias in your environment" "$LINENO" 5
3786 fi
3787 if test "$2" = conftest.file || test $am_try -eq 2; then
3788 break
3789 fi
3790 # Just in case.
3791 sleep 1
3792 am_has_slept=yes
3793 done
3794 test "$2" = conftest.file
3795 )
3796then
3797 # Ok.
3798 :
3799else
3800 as_fn_error $? "newly created file is older than distributed files!
3801Check your system clock" "$LINENO" 5
3802fi
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3804$as_echo "yes" >&6; }
3805# If we didn't sleep, we still need to ensure time stamps of config.status and
3806# generated files are strictly newer.
3807am_sleep_pid=
3808if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3809 ( sleep 1 ) &
3810 am_sleep_pid=$!
3811fi
3812
3813rm -f conftest.file
3814
cristy73bd4a52010-10-05 11:24:23 +00003815test "$program_prefix" != NONE &&
3816 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3817# Use a double $ so make ignores it.
3818test "$program_suffix" != NONE &&
3819 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3820# Double any \ or $.
3821# By default was `s,x,x', remove it if useless.
3822ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3823program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3824
3825# expand $ac_aux_dir to an absolute path
3826am_aux_dir=`cd $ac_aux_dir && pwd`
3827
3828if test x"${MISSING+set}" != xset; then
3829 case $am_aux_dir in
3830 *\ * | *\ *)
3831 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3832 *)
3833 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3834 esac
3835fi
3836# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003837if eval "$MISSING --is-lightweight"; then
3838 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003839else
3840 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3842$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003843fi
3844
3845if test x"${install_sh}" != xset; then
3846 case $am_aux_dir in
3847 *\ * | *\ *)
3848 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3849 *)
3850 install_sh="\${SHELL} $am_aux_dir/install-sh"
3851 esac
3852fi
3853
cristyc0890a62012-07-19 00:18:20 +00003854# Installed binaries are usually stripped using 'strip' when the user
3855# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003856# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003857# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003858if test "$cross_compiling" != no; then
3859 if test -n "$ac_tool_prefix"; then
3860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3861set dummy ${ac_tool_prefix}strip; ac_word=$2
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003864if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003865 $as_echo_n "(cached) " >&6
3866else
3867 if test -n "$STRIP"; then
3868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3869else
3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871for as_dir in $PATH
3872do
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3880 fi
3881done
3882 done
3883IFS=$as_save_IFS
3884
3885fi
3886fi
3887STRIP=$ac_cv_prog_STRIP
3888if test -n "$STRIP"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3890$as_echo "$STRIP" >&6; }
3891else
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893$as_echo "no" >&6; }
3894fi
3895
3896
3897fi
3898if test -z "$ac_cv_prog_STRIP"; then
3899 ac_ct_STRIP=$STRIP
3900 # Extract the first word of "strip", so it can be a program name with args.
3901set dummy strip; ac_word=$2
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003904if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003905 $as_echo_n "(cached) " >&6
3906else
3907 if test -n "$ac_ct_STRIP"; then
3908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3909else
3910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911for as_dir in $PATH
3912do
3913 IFS=$as_save_IFS
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003917 ac_cv_prog_ac_ct_STRIP="strip"
3918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 break 2
3920 fi
3921done
3922 done
3923IFS=$as_save_IFS
3924
3925fi
3926fi
3927ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3928if test -n "$ac_ct_STRIP"; then
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3930$as_echo "$ac_ct_STRIP" >&6; }
3931else
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933$as_echo "no" >&6; }
3934fi
3935
3936 if test "x$ac_ct_STRIP" = x; then
3937 STRIP=":"
3938 else
3939 case $cross_compiling:$ac_tool_warned in
3940yes:)
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3943ac_tool_warned=yes ;;
3944esac
3945 STRIP=$ac_ct_STRIP
3946 fi
3947else
3948 STRIP="$ac_cv_prog_STRIP"
3949fi
3950
3951fi
3952INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3953
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3955$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3956if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003957 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003958 $as_echo_n "(cached) " >&6
3959else
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_prog in mkdir gmkdir; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003967 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003968 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3969 'mkdir (GNU coreutils) '* | \
3970 'mkdir (coreutils) '* | \
3971 'mkdir (fileutils) '4.1*)
3972 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3973 break 3;;
3974 esac
3975 done
3976 done
3977 done
3978IFS=$as_save_IFS
3979
3980fi
3981
3982 test -d ./--version && rmdir ./--version
3983 if test "${ac_cv_path_mkdir+set}" = set; then
3984 MKDIR_P="$ac_cv_path_mkdir -p"
3985 else
3986 # As a last resort, use the slow shell script. Don't cache a
3987 # value for MKDIR_P within a source directory, because that will
3988 # break other packages using the cache if that directory is
3989 # removed, or if the value is a relative name.
3990 MKDIR_P="$ac_install_sh -d"
3991 fi
3992fi
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3994$as_echo "$MKDIR_P" >&6; }
3995
cristy73bd4a52010-10-05 11:24:23 +00003996for ac_prog in gawk mawk nawk awk
3997do
3998 # Extract the first word of "$ac_prog", so it can be a program name with args.
3999set dummy $ac_prog; ac_word=$2
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004002if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004003 $as_echo_n "(cached) " >&6
4004else
4005 if test -n "$AWK"; then
4006 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4007else
4008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009for as_dir in $PATH
4010do
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004015 ac_cv_prog_AWK="$ac_prog"
4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 break 2
4018 fi
4019done
4020 done
4021IFS=$as_save_IFS
4022
4023fi
4024fi
4025AWK=$ac_cv_prog_AWK
4026if test -n "$AWK"; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4028$as_echo "$AWK" >&6; }
4029else
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031$as_echo "no" >&6; }
4032fi
4033
4034
4035 test -n "$AWK" && break
4036done
4037
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4039$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4040set x ${MAKE-make}
4041ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004042if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004043 $as_echo_n "(cached) " >&6
4044else
4045 cat >conftest.make <<\_ACEOF
4046SHELL = /bin/sh
4047all:
4048 @echo '@@@%%%=$(MAKE)=@@@%%%'
4049_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004050# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004051case `${MAKE-make} -f conftest.make 2>/dev/null` in
4052 *@@@%%%=?*=@@@%%%*)
4053 eval ac_cv_prog_make_${ac_make}_set=yes;;
4054 *)
4055 eval ac_cv_prog_make_${ac_make}_set=no;;
4056esac
4057rm -f conftest.make
4058fi
4059if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4061$as_echo "yes" >&6; }
4062 SET_MAKE=
4063else
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065$as_echo "no" >&6; }
4066 SET_MAKE="MAKE=${MAKE-make}"
4067fi
4068
4069rm -rf .tst 2>/dev/null
4070mkdir .tst 2>/dev/null
4071if test -d .tst; then
4072 am__leading_dot=.
4073else
4074 am__leading_dot=_
4075fi
4076rmdir .tst 2>/dev/null
4077
cristya448bd22011-10-14 12:38:13 +00004078# Check whether --enable-silent-rules was given.
4079if test "${enable_silent_rules+set}" = set; then :
4080 enableval=$enable_silent_rules;
4081fi
4082
cristyc0890a62012-07-19 00:18:20 +00004083case $enable_silent_rules in # (((
4084 yes) AM_DEFAULT_VERBOSITY=0;;
4085 no) AM_DEFAULT_VERBOSITY=1;;
4086 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004087esac
cristyc3fb77b2012-02-06 01:49:41 +00004088am_make=${MAKE-make}
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4090$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4091if ${am_cv_make_support_nested_variables+:} false; then :
4092 $as_echo_n "(cached) " >&6
4093else
4094 if $as_echo 'TRUE=$(BAR$(V))
4095BAR0=false
4096BAR1=true
4097V=1
4098am__doit:
4099 @$(TRUE)
4100.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4101 am_cv_make_support_nested_variables=yes
4102else
4103 am_cv_make_support_nested_variables=no
4104fi
4105fi
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4107$as_echo "$am_cv_make_support_nested_variables" >&6; }
4108if test $am_cv_make_support_nested_variables = yes; then
4109 AM_V='$(V)'
4110 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4111else
4112 AM_V=$AM_DEFAULT_VERBOSITY
4113 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4114fi
cristya448bd22011-10-14 12:38:13 +00004115AM_BACKSLASH='\'
4116
cristy73bd4a52010-10-05 11:24:23 +00004117if test "`cd $srcdir && pwd`" != "`pwd`"; then
4118 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4119 # is not polluted with repeated "-I."
4120 am__isrc=' -I$(srcdir)'
4121 # test to see if srcdir already configured
4122 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004123 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004124 fi
4125fi
4126
4127# test whether we have cygpath
4128if test -z "$CYGPATH_W"; then
4129 if (cygpath --version) >/dev/null 2>/dev/null; then
4130 CYGPATH_W='cygpath -w'
4131 else
4132 CYGPATH_W=echo
4133 fi
4134fi
4135
4136
4137# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004138 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004139 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004140
4141
cristya448bd22011-10-14 12:38:13 +00004142cat >>confdefs.h <<_ACEOF
4143#define PACKAGE "$PACKAGE"
4144_ACEOF
4145
4146
4147cat >>confdefs.h <<_ACEOF
4148#define VERSION "$VERSION"
4149_ACEOF
4150
cristy73bd4a52010-10-05 11:24:23 +00004151# Some tools Automake needs.
4152
4153ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4154
4155
4156AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4157
4158
4159AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4160
4161
4162AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4163
4164
4165MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4166
cristyc0890a62012-07-19 00:18:20 +00004167# For better backward compatibility. To be removed once Automake 1.9.x
4168# dies out for good. For more background, see:
4169# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4170# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4171mkdir_p='$(MKDIR_P)'
4172
cristy73bd4a52010-10-05 11:24:23 +00004173# We need awk for the "check" target. The system "awk" is bad on
4174# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004175# Always define AMTAR for backward compatibility. Yes, it's still used
4176# in the wild :-( We should find a proper way to deprecate it ...
4177AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004178
cristye69bdbe2013-05-03 21:40:44 +00004179
4180# We'll loop over all known methods to create a tar archive until one works.
4181_am_tools='gnutar pax cpio none'
4182
cristyc3fb77b2012-02-06 01:49:41 +00004183am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004184
4185
4186
4187
4188
cristy3ed852e2009-09-05 21:47:34 +00004189
cristya5bda012013-11-03 18:05:38 +00004190# POSIX will say in a future version that running "rm -f" with no argument
4191# is OK; and we want to be able to make that assumption in our Makefile
4192# recipes. So use an aggressive probe to check that the usage we want is
4193# actually supported "in the wild" to an acceptable degree.
4194# See automake bug#10828.
4195# To make any issue more visible, cause the running configure to be aborted
4196# by default if the 'rm' program in use doesn't match our expectations; the
4197# user can still override this though.
4198if rm -f && rm -fr && rm -rf; then : OK; else
4199 cat >&2 <<'END'
4200Oops!
4201
4202Your 'rm' program seems unable to run without file operands specified
4203on the command line, even when the '-f' option is present. This is contrary
4204to the behaviour of most rm programs out there, and not conforming with
4205the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4206
4207Please tell bug-automake@gnu.org about your system, including the value
4208of your $PATH and any error possibly output before this message. This
4209can help us improve future automake versions.
4210
4211END
4212 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4213 echo 'Configuration will proceed anyway, since you have set the' >&2
4214 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4215 echo >&2
4216 else
4217 cat >&2 <<'END'
4218Aborting the configuration process, to ensure you take notice of the issue.
4219
4220You can download and install GNU coreutils to get an 'rm' implementation
4221that behaves properly: <http://www.gnu.org/software/coreutils/>.
4222
4223If you want to complete the configuration process using your problematic
4224'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4225to "yes", and re-run configure.
4226
4227END
4228 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4229 fi
4230fi
cristy73bd4a52010-10-05 11:24:23 +00004231# Check whether --enable-silent-rules was given.
4232if test "${enable_silent_rules+set}" = set; then :
4233 enableval=$enable_silent_rules;
4234fi
4235
cristyc0890a62012-07-19 00:18:20 +00004236case $enable_silent_rules in # (((
4237 yes) AM_DEFAULT_VERBOSITY=0;;
4238 no) AM_DEFAULT_VERBOSITY=1;;
4239 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004240esac
cristyc3fb77b2012-02-06 01:49:41 +00004241am_make=${MAKE-make}
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4243$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4244if ${am_cv_make_support_nested_variables+:} false; then :
4245 $as_echo_n "(cached) " >&6
4246else
4247 if $as_echo 'TRUE=$(BAR$(V))
4248BAR0=false
4249BAR1=true
4250V=1
4251am__doit:
4252 @$(TRUE)
4253.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4254 am_cv_make_support_nested_variables=yes
4255else
4256 am_cv_make_support_nested_variables=no
4257fi
4258fi
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4260$as_echo "$am_cv_make_support_nested_variables" >&6; }
4261if test $am_cv_make_support_nested_variables = yes; then
4262 AM_V='$(V)'
4263 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4264else
4265 AM_V=$AM_DEFAULT_VERBOSITY
4266 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4267fi
cristy73bd4a52010-10-05 11:24:23 +00004268AM_BACKSLASH='\'
4269
cristy3ed852e2009-09-05 21:47:34 +00004270
cristy9af1cbf2014-12-28 22:03:09 +00004271#
4272# Save initial user-tunable values
4273#
4274USER_LIBS=$LIBS
4275for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
4276 eval isset=\${$var+set}
4277 if test "$isset" = 'set'; then
4278 eval val=$`echo $var`
4279 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4280 fi
4281done
4282
4283
4284CONFIGURE_ARGS="$0 ${ac_configure_args}"
4285
4286
cristy187791c2015-05-03 22:17:00 +00004287# Check whether --enable-reproducible-build was given.
4288if test "${enable_reproducible_build+set}" = set; then :
4289 enableval=$enable_reproducible_build; enable_reproducible_build=$enableval
4290else
4291 enable_reproducible_build='no'
4292fi
4293
4294
cristy9af1cbf2014-12-28 22:03:09 +00004295# Source file containing package/library versioning information.
4296. ${srcdir}/version.sh
4297
4298echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4299
4300MAGICK_TARGET_CPU=$host_cpu
4301
4302
4303cat >>confdefs.h <<_ACEOF
4304#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4305_ACEOF
4306
4307
4308MAGICK_TARGET_VENDOR=$host_vendor
4309
4310
4311cat >>confdefs.h <<_ACEOF
4312#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4313_ACEOF
4314
4315
4316MAGICK_TARGET_OS=$host_os
4317
4318
4319cat >>confdefs.h <<_ACEOF
4320#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4321_ACEOF
4322
4323
4324
4325# Substitute versioning
4326MAGICK_MAJOR_VERSION=7
4327
4328MAGICK_MINOR_VERSION=0
4329
4330MAGICK_MICRO_VERSION=0
4331
4332MAGICK_PATCHLEVEL_VERSION=0
4333
4334MAGICK_VERSION=7.0.0-0
4335
cristy98beafc2015-05-14 19:55:55 +00004336MAGICK_SVN_REVISION=18537:18545M
cristy9af1cbf2014-12-28 22:03:09 +00004337
4338
4339# Substitute library versioning
4340MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4341
4342MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4343
4344
4345MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4346
4347MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4348
4349
cristy187791c2015-05-03 22:17:00 +00004350if test X$enable_reproducible_build = Xyes; then :
4351 PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE
4352elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then :
4353
4354fi
4355
cristy9af1cbf2014-12-28 22:03:09 +00004356
4357# Ensure that make can run correctly
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4359$as_echo_n "checking whether build environment is sane... " >&6; }
4360# Reject unsafe characters in $srcdir or the absolute working directory
4361# name. Accept space and tab only in the latter.
4362am_lf='
4363'
4364case `pwd` in
4365 *[\\\"\#\$\&\'\`$am_lf]*)
4366 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4367esac
4368case $srcdir in
4369 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4370 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4371esac
4372
4373# Do 'set' in a subshell so we don't clobber the current shell's
4374# arguments. Must try -L first in case configure is actually a
4375# symlink; some systems play weird games with the mod time of symlinks
4376# (eg FreeBSD returns the mod time of the symlink's containing
4377# directory).
4378if (
4379 am_has_slept=no
4380 for am_try in 1 2; do
4381 echo "timestamp, slept: $am_has_slept" > conftest.file
4382 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4383 if test "$*" = "X"; then
4384 # -L didn't work.
4385 set X `ls -t "$srcdir/configure" conftest.file`
4386 fi
4387 if test "$*" != "X $srcdir/configure conftest.file" \
4388 && test "$*" != "X conftest.file $srcdir/configure"; then
4389
4390 # If neither matched, then we have a broken ls. This can happen
4391 # if, for instance, CONFIG_SHELL is bash and it inherits a
4392 # broken ls alias from the environment. This has actually
4393 # happened. Such a system could not be considered "sane".
4394 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4395 alias in your environment" "$LINENO" 5
4396 fi
4397 if test "$2" = conftest.file || test $am_try -eq 2; then
4398 break
4399 fi
4400 # Just in case.
4401 sleep 1
4402 am_has_slept=yes
4403 done
4404 test "$2" = conftest.file
4405 )
4406then
4407 # Ok.
4408 :
4409else
4410 as_fn_error $? "newly created file is older than distributed files!
4411Check your system clock" "$LINENO" 5
4412fi
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4414$as_echo "yes" >&6; }
4415# If we didn't sleep, we still need to ensure time stamps of config.status and
4416# generated files are strictly newer.
4417am_sleep_pid=
4418if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4419 ( sleep 1 ) &
4420 am_sleep_pid=$!
4421fi
4422
4423rm -f conftest.file
4424
4425
cristyf279b692014-08-13 12:01:27 +00004426# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004427MAGICK_LIB_VERSION="0x"
4428if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4429 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4430fi
4431MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4432if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4433 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4434fi
4435MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4436if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4437 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4438fi
4439MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4440
4441
4442# Definition used to define MagickLibVersionText in version.h
4443MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4444
4445
4446# Definition used to define MagickLibVersionNumber in version.h
4447MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4448
4449
cristy5ed9c6e2013-07-14 21:20:31 +00004450MAGICKPP_LIB_VERSION="0x"
4451if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4452 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4453fi
4454MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4455if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4456 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4457fi
4458MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4459if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4460 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4461fi
4462MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4463
4464
4465# Definition used to define MagickLibVersionText in version.h
4466MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4467
4468
4469# Definition used to define MagickLibVersionNumber in version.h
4470MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4471
4472
4473
4474
cristy3ed852e2009-09-05 21:47:34 +00004475# Regenerate config.status if ChangeLog or version.sh is updated.
4476CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4477
4478
4479PERLMAINCC=$CC
4480
4481MAGICK_CFLAGS=''
4482MAGICK_CPPFLAGS=$CPPFLAGS_USER
4483MAGICK_PCFLAGS=$CPPFLAGS_USER
4484MAGICK_LDFLAGS=''
4485MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004486MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004487
4488#
4489# Evaluate shell variable equivalents to Makefile directory variables
4490#
4491if test "x$prefix" = xNONE; then
4492 prefix=$ac_default_prefix
4493fi
4494# Let make expand exec_prefix.
4495if test "x$exec_prefix" = xNONE; then
4496 exec_prefix='${prefix}'
4497fi
4498
4499#
4500eval "eval PREFIX_DIR=${prefix}"
4501
4502eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4503
4504eval "eval BIN_DIR=$bindir"
4505
4506eval "eval SBIN_DIR=$sbindir"
4507
4508eval "eval LIBEXEC_DIR=$libexecdir"
4509
4510eval "eval DATA_DIR=$datadir"
4511
cristy4e65ec22012-04-08 01:33:27 +00004512eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004513
cristy3ed852e2009-09-05 21:47:34 +00004514eval "eval SYSCONF_DIR=$sysconfdir"
4515
4516eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4517
4518eval "eval LOCALSTATE_DIR=$localstatedir"
4519
4520eval "eval LIB_DIR=$libdir"
4521
4522eval "eval INCLUDE_DIR=$includedir"
4523
4524eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4525
4526eval "eval INFO_DIR=$infodir"
4527
4528eval "eval MAN_DIR=$mandir"
4529
4530
4531# Get full paths to source and build directories
4532srcdirfull="`cd $srcdir && pwd`"
4533builddir="`pwd`"
4534
4535#
4536# Compute variables useful for running uninstalled software.
4537#
4538MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4539MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4540MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4541MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4542DIRSEP=':'
4543case "${build_os}" in
4544 mingw* )
4545 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4546 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4547 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4548 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4549 DIRSEP=';'
4550 ;;
4551esac
4552case "${host_os}" in
4553 mingw* )
4554 DIRSEP=';'
4555 ;;
4556esac
4557
4558
4559
4560
4561
4562
cristya0b81c32010-01-22 02:54:33 +00004563
4564#
4565# Enable OS features.
4566#
cristy73bd4a52010-10-05 11:24:23 +00004567DEPDIR="${am__leading_dot}deps"
4568
4569ac_config_commands="$ac_config_commands depfiles"
4570
4571
4572am_make=${MAKE-make}
4573cat > confinc << 'END'
4574am__doit:
4575 @echo this is the am__doit target
4576.PHONY: am__doit
4577END
4578# If we don't find an include directive, just comment out the code.
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4580$as_echo_n "checking for style of include used by $am_make... " >&6; }
4581am__include="#"
4582am__quote=
4583_am_result=none
4584# First try GNU make style include.
4585echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004586# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004587case `$am_make -s -f confmf 2> /dev/null` in #(
4588*the\ am__doit\ target*)
4589 am__include=include
4590 am__quote=
4591 _am_result=GNU
4592 ;;
4593esac
4594# Now try BSD make style include.
4595if test "$am__include" = "#"; then
4596 echo '.include "confinc"' > confmf
4597 case `$am_make -s -f confmf 2> /dev/null` in #(
4598 *the\ am__doit\ target*)
4599 am__include=.include
4600 am__quote="\""
4601 _am_result=BSD
4602 ;;
4603 esac
4604fi
4605
4606
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4608$as_echo "$_am_result" >&6; }
4609rm -f confinc confmf
4610
4611# Check whether --enable-dependency-tracking was given.
4612if test "${enable_dependency_tracking+set}" = set; then :
4613 enableval=$enable_dependency_tracking;
4614fi
4615
4616if test "x$enable_dependency_tracking" != xno; then
4617 am_depcomp="$ac_aux_dir/depcomp"
4618 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004619 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004620fi
4621 if test "x$enable_dependency_tracking" != xno; then
4622 AMDEP_TRUE=
4623 AMDEP_FALSE='#'
4624else
4625 AMDEP_TRUE='#'
4626 AMDEP_FALSE=
4627fi
4628
4629
cristy3ed852e2009-09-05 21:47:34 +00004630ac_ext=c
4631ac_cpp='$CPP $CPPFLAGS'
4632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634ac_compiler_gnu=$ac_cv_c_compiler_gnu
4635if test -n "$ac_tool_prefix"; then
4636 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4637set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004639$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004640if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004641 $as_echo_n "(cached) " >&6
4642else
4643 if test -n "$CC"; then
4644 ac_cv_prog_CC="$CC" # Let the user override the test.
4645else
4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004651 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004653 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004655 break 2
4656 fi
4657done
cristy8b350f62009-11-15 23:12:43 +00004658 done
cristy3ed852e2009-09-05 21:47:34 +00004659IFS=$as_save_IFS
4660
4661fi
4662fi
4663CC=$ac_cv_prog_CC
4664if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004666$as_echo "$CC" >&6; }
4667else
cristy8b350f62009-11-15 23:12:43 +00004668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004669$as_echo "no" >&6; }
4670fi
4671
4672
4673fi
4674if test -z "$ac_cv_prog_CC"; then
4675 ac_ct_CC=$CC
4676 # Extract the first word of "gcc", so it can be a program name with args.
4677set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004679$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004680if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004681 $as_echo_n "(cached) " >&6
4682else
4683 if test -n "$ac_ct_CC"; then
4684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4685else
4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004693 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004695 break 2
4696 fi
4697done
cristy8b350f62009-11-15 23:12:43 +00004698 done
cristy3ed852e2009-09-05 21:47:34 +00004699IFS=$as_save_IFS
4700
4701fi
4702fi
4703ac_ct_CC=$ac_cv_prog_ac_ct_CC
4704if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004706$as_echo "$ac_ct_CC" >&6; }
4707else
cristy8b350f62009-11-15 23:12:43 +00004708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004709$as_echo "no" >&6; }
4710fi
4711
4712 if test "x$ac_ct_CC" = x; then
4713 CC=""
4714 else
4715 case $cross_compiling:$ac_tool_warned in
4716yes:)
cristy8b350f62009-11-15 23:12:43 +00004717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4719ac_tool_warned=yes ;;
4720esac
4721 CC=$ac_ct_CC
4722 fi
4723else
4724 CC="$ac_cv_prog_CC"
4725fi
4726
4727if test -z "$CC"; then
4728 if test -n "$ac_tool_prefix"; then
4729 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4730set dummy ${ac_tool_prefix}cc; 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}cc"
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 fi
4767fi
4768if test -z "$CC"; then
4769 # Extract the first word of "cc", so it can be a program name with args.
4770set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004772$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004773if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004774 $as_echo_n "(cached) " >&6
4775else
4776 if test -n "$CC"; then
4777 ac_cv_prog_CC="$CC" # Let the user override the test.
4778else
4779 ac_prog_rejected=no
4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004785 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004787 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4788 ac_prog_rejected=yes
4789 continue
4790 fi
4791 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004793 break 2
4794 fi
4795done
cristy8b350f62009-11-15 23:12:43 +00004796 done
cristy3ed852e2009-09-05 21:47:34 +00004797IFS=$as_save_IFS
4798
4799if test $ac_prog_rejected = yes; then
4800 # We found a bogon in the path, so make sure we never use it.
4801 set dummy $ac_cv_prog_CC
4802 shift
4803 if test $# != 0; then
4804 # We chose a different compiler from the bogus one.
4805 # However, it has the same basename, so the bogon will be chosen
4806 # first if we set CC to just the basename; use the full file name.
4807 shift
4808 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4809 fi
4810fi
4811fi
4812fi
4813CC=$ac_cv_prog_CC
4814if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004816$as_echo "$CC" >&6; }
4817else
cristy8b350f62009-11-15 23:12:43 +00004818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004819$as_echo "no" >&6; }
4820fi
4821
4822
4823fi
4824if test -z "$CC"; then
4825 if test -n "$ac_tool_prefix"; then
4826 for ac_prog in cl.exe
4827 do
4828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4829set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004831$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004832if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004833 $as_echo_n "(cached) " >&6
4834else
4835 if test -n "$CC"; then
4836 ac_cv_prog_CC="$CC" # Let the user override the test.
4837else
4838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839for as_dir in $PATH
4840do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004843 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004845 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004847 break 2
4848 fi
4849done
cristy8b350f62009-11-15 23:12:43 +00004850 done
cristy3ed852e2009-09-05 21:47:34 +00004851IFS=$as_save_IFS
4852
4853fi
4854fi
4855CC=$ac_cv_prog_CC
4856if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004858$as_echo "$CC" >&6; }
4859else
cristy8b350f62009-11-15 23:12:43 +00004860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004861$as_echo "no" >&6; }
4862fi
4863
4864
4865 test -n "$CC" && break
4866 done
4867fi
4868if test -z "$CC"; then
4869 ac_ct_CC=$CC
4870 for ac_prog in cl.exe
4871do
4872 # Extract the first word of "$ac_prog", so it can be a program name with args.
4873set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004875$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004876if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004877 $as_echo_n "(cached) " >&6
4878else
4879 if test -n "$ac_ct_CC"; then
4880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4881else
4882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH
4884do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004887 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004889 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004891 break 2
4892 fi
4893done
cristy8b350f62009-11-15 23:12:43 +00004894 done
cristy3ed852e2009-09-05 21:47:34 +00004895IFS=$as_save_IFS
4896
4897fi
4898fi
4899ac_ct_CC=$ac_cv_prog_ac_ct_CC
4900if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004902$as_echo "$ac_ct_CC" >&6; }
4903else
cristy8b350f62009-11-15 23:12:43 +00004904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004905$as_echo "no" >&6; }
4906fi
4907
4908
4909 test -n "$ac_ct_CC" && break
4910done
4911
4912 if test "x$ac_ct_CC" = x; then
4913 CC=""
4914 else
4915 case $cross_compiling:$ac_tool_warned in
4916yes:)
cristy8b350f62009-11-15 23:12:43 +00004917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4919ac_tool_warned=yes ;;
4920esac
4921 CC=$ac_ct_CC
4922 fi
4923fi
4924
4925fi
4926
4927
cristy8b350f62009-11-15 23:12:43 +00004928test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004930as_fn_error $? "no acceptable C compiler found in \$PATH
4931See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004932
4933# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004934$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004935set X $ac_compile
4936ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004937for ac_option in --version -v -V -qversion; do
4938 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004939case "(($ac_try" in
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4942esac
cristy8b350f62009-11-15 23:12:43 +00004943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4944$as_echo "$ac_try_echo"; } >&5
4945 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004946 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004947 if test -s conftest.err; then
4948 sed '10a\
4949... rest of stderr output deleted ...
4950 10q' conftest.err >conftest.er1
4951 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004952 fi
cristycd4c5312009-11-22 01:19:08 +00004953 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4955 test $ac_status = 0; }
4956done
cristy3ed852e2009-09-05 21:47:34 +00004957
cristy8b350f62009-11-15 23:12:43 +00004958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004959/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004960
cristy3ed852e2009-09-05 21:47:34 +00004961int
4962main ()
4963{
4964
4965 ;
4966 return 0;
4967}
4968_ACEOF
4969ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004970ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004971# Try to create an executable without -o first, disregard a.out.
4972# It will help us diagnose broken compilers, and finding out an intuition
4973# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4975$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004976ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4977
4978# The possible output files:
4979ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4980
4981ac_rmfiles=
4982for ac_file in $ac_files
4983do
4984 case $ac_file in
4985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4986 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4987 esac
4988done
4989rm -f $ac_rmfiles
4990
cristy8b350f62009-11-15 23:12:43 +00004991if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004992case "(($ac_try" in
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4995esac
cristy8b350f62009-11-15 23:12:43 +00004996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4997$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004998 (eval "$ac_link_default") 2>&5
4999 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5001 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005002 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5003# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5004# in a Makefile. We should not override ac_cv_exeext if it was cached,
5005# so that the user can short-circuit this test for compilers unknown to
5006# Autoconf.
5007for ac_file in $ac_files ''
5008do
5009 test -f "$ac_file" || continue
5010 case $ac_file in
5011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5012 ;;
5013 [ab].out )
5014 # We found the default executable, but exeext='' is most
5015 # certainly right.
5016 break;;
5017 *.* )
cristy8b350f62009-11-15 23:12:43 +00005018 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00005019 then :; else
5020 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5021 fi
5022 # We set ac_cv_exeext here because the later test for it is not
5023 # safe: cross compilers may not add the suffix if given an `-o'
5024 # argument, so we may need to know it at that point already.
5025 # Even if this section looks crufty: it has the advantage of
5026 # actually working.
5027 break;;
5028 * )
5029 break;;
5030 esac
5031done
5032test "$ac_cv_exeext" = no && ac_cv_exeext=
5033
5034else
5035 ac_file=''
5036fi
cristy8b350f62009-11-15 23:12:43 +00005037if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00005038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039$as_echo "no" >&6; }
5040$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00005041sed 's/^/| /' conftest.$ac_ext >&5
5042
cristy8b350f62009-11-15 23:12:43 +00005043{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005045as_fn_error 77 "C compiler cannot create executables
5046See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005047else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5049$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005050fi
cristycd4c5312009-11-22 01:19:08 +00005051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5052$as_echo_n "checking for C compiler default output file name... " >&6; }
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5054$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005055ac_exeext=$ac_cv_exeext
5056
cristycd4c5312009-11-22 01:19:08 +00005057rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00005058ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00005060$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005061if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00005062case "(($ac_try" in
5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064 *) ac_try_echo=$ac_try;;
5065esac
cristy8b350f62009-11-15 23:12:43 +00005066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5067$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005068 (eval "$ac_link") 2>&5
5069 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5071 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005072 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5073# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5074# work properly (i.e., refer to `conftest.exe'), while it won't with
5075# `rm'.
5076for ac_file in conftest.exe conftest conftest.*; do
5077 test -f "$ac_file" || continue
5078 case $ac_file in
5079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5080 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5081 break;;
5082 * ) break;;
5083 esac
5084done
5085else
cristy8b350f62009-11-15 23:12:43 +00005086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005088as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5089See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005090fi
cristycd4c5312009-11-22 01:19:08 +00005091rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005093$as_echo "$ac_cv_exeext" >&6; }
5094
5095rm -f conftest.$ac_ext
5096EXEEXT=$ac_cv_exeext
5097ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099/* end confdefs.h. */
5100#include <stdio.h>
5101int
5102main ()
5103{
5104FILE *f = fopen ("conftest.out", "w");
5105 return ferror (f) || fclose (f) != 0;
5106
5107 ;
5108 return 0;
5109}
5110_ACEOF
5111ac_clean_files="$ac_clean_files conftest.out"
5112# Check that the compiler produces executables we can run. If not, either
5113# the compiler is broken, or we cross compile.
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5115$as_echo_n "checking whether we are cross compiling... " >&6; }
5116if test "$cross_compiling" != yes; then
5117 { { ac_try="$ac_link"
5118case "(($ac_try" in
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5121esac
5122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5123$as_echo "$ac_try_echo"; } >&5
5124 (eval "$ac_link") 2>&5
5125 ac_status=$?
5126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5127 test $ac_status = 0; }
5128 if { ac_try='./conftest$ac_cv_exeext'
5129 { { case "(($ac_try" in
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5132esac
5133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5134$as_echo "$ac_try_echo"; } >&5
5135 (eval "$ac_try") 2>&5
5136 ac_status=$?
5137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5138 test $ac_status = 0; }; }; then
5139 cross_compiling=no
5140 else
5141 if test "$cross_compiling" = maybe; then
5142 cross_compiling=yes
5143 else
5144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005146as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005147If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005148See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005149 fi
5150 fi
5151fi
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5153$as_echo "$cross_compiling" >&6; }
5154
5155rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5156ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005158$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005159if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005160 $as_echo_n "(cached) " >&6
5161else
cristy8b350f62009-11-15 23:12:43 +00005162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005163/* end confdefs.h. */
5164
5165int
5166main ()
5167{
5168
5169 ;
5170 return 0;
5171}
5172_ACEOF
5173rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005174if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005175case "(($ac_try" in
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5178esac
cristy8b350f62009-11-15 23:12:43 +00005179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5180$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005181 (eval "$ac_compile") 2>&5
5182 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5184 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005185 for ac_file in conftest.o conftest.obj conftest.*; do
5186 test -f "$ac_file" || continue;
5187 case $ac_file in
5188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5189 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5190 break;;
5191 esac
5192done
5193else
5194 $as_echo "$as_me: failed program was:" >&5
5195sed 's/^/| /' conftest.$ac_ext >&5
5196
cristy8b350f62009-11-15 23:12:43 +00005197{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005199as_fn_error $? "cannot compute suffix of object files: cannot compile
5200See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005201fi
cristy3ed852e2009-09-05 21:47:34 +00005202rm -f conftest.$ac_cv_objext conftest.$ac_ext
5203fi
cristy8b350f62009-11-15 23:12:43 +00005204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005205$as_echo "$ac_cv_objext" >&6; }
5206OBJEXT=$ac_cv_objext
5207ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005209$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005210if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005211 $as_echo_n "(cached) " >&6
5212else
cristy8b350f62009-11-15 23:12:43 +00005213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005214/* end confdefs.h. */
5215
5216int
5217main ()
5218{
5219#ifndef __GNUC__
5220 choke me
5221#endif
5222
5223 ;
5224 return 0;
5225}
5226_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005227if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005228 ac_compiler_gnu=yes
5229else
cristy8b350f62009-11-15 23:12:43 +00005230 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005231fi
cristy3ed852e2009-09-05 21:47:34 +00005232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233ac_cv_c_compiler_gnu=$ac_compiler_gnu
5234
5235fi
cristy8b350f62009-11-15 23:12:43 +00005236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005237$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5238if test $ac_compiler_gnu = yes; then
5239 GCC=yes
5240else
5241 GCC=
5242fi
5243ac_test_CFLAGS=${CFLAGS+set}
5244ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005246$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005247if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005248 $as_echo_n "(cached) " >&6
5249else
5250 ac_save_c_werror_flag=$ac_c_werror_flag
5251 ac_c_werror_flag=yes
5252 ac_cv_prog_cc_g=no
5253 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005255/* end confdefs.h. */
5256
5257int
5258main ()
5259{
5260
5261 ;
5262 return 0;
5263}
5264_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005265if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005266 ac_cv_prog_cc_g=yes
5267else
cristy8b350f62009-11-15 23:12:43 +00005268 CFLAGS=""
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005270/* end confdefs.h. */
5271
5272int
5273main ()
5274{
5275
5276 ;
5277 return 0;
5278}
5279_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005280if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005281
cristy8b350f62009-11-15 23:12:43 +00005282else
5283 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005284 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005286/* end confdefs.h. */
5287
5288int
5289main ()
5290{
5291
5292 ;
5293 return 0;
5294}
5295_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005296if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005297 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005298fi
cristy3ed852e2009-09-05 21:47:34 +00005299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300fi
cristy3ed852e2009-09-05 21:47:34 +00005301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302fi
cristy3ed852e2009-09-05 21:47:34 +00005303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304 ac_c_werror_flag=$ac_save_c_werror_flag
5305fi
cristy8b350f62009-11-15 23:12:43 +00005306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005307$as_echo "$ac_cv_prog_cc_g" >&6; }
5308if test "$ac_test_CFLAGS" = set; then
5309 CFLAGS=$ac_save_CFLAGS
5310elif test $ac_cv_prog_cc_g = yes; then
5311 if test "$GCC" = yes; then
5312 CFLAGS="-g -O2"
5313 else
5314 CFLAGS="-g"
5315 fi
5316else
5317 if test "$GCC" = yes; then
5318 CFLAGS="-O2"
5319 else
5320 CFLAGS=
5321 fi
5322fi
cristy8b350f62009-11-15 23:12:43 +00005323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005324$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005325if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005326 $as_echo_n "(cached) " >&6
5327else
5328 ac_cv_prog_cc_c89=no
5329ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005331/* end confdefs.h. */
5332#include <stdarg.h>
5333#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005334struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005335/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5336struct buf { int x; };
5337FILE * (*rcsopen) (struct buf *, struct stat *, int);
5338static char *e (p, i)
5339 char **p;
5340 int i;
5341{
5342 return p[i];
5343}
5344static char *f (char * (*g) (char **, int), char **p, ...)
5345{
5346 char *s;
5347 va_list v;
5348 va_start (v,p);
5349 s = g (p, va_arg (v,int));
5350 va_end (v);
5351 return s;
5352}
5353
5354/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5355 function prototypes and stuff, but not '\xHH' hex character constants.
5356 These don't provoke an error unfortunately, instead are silently treated
5357 as 'x'. The following induces an error, until -std is added to get
5358 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5359 array size at least. It's necessary to write '\x00'==0 to get something
5360 that's true only with -std. */
5361int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5362
5363/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5364 inside strings and character constants. */
5365#define FOO(x) 'x'
5366int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5367
5368int test (int i, double x);
5369struct s1 {int (*f) (int a);};
5370struct s2 {int (*f) (double a);};
5371int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5372int argc;
5373char **argv;
5374int
5375main ()
5376{
5377return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5378 ;
5379 return 0;
5380}
5381_ACEOF
5382for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5383 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5384do
5385 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005386 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005387 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005388fi
cristy3ed852e2009-09-05 21:47:34 +00005389rm -f core conftest.err conftest.$ac_objext
5390 test "x$ac_cv_prog_cc_c89" != "xno" && break
5391done
5392rm -f conftest.$ac_ext
5393CC=$ac_save_CC
5394
5395fi
5396# AC_CACHE_VAL
5397case "x$ac_cv_prog_cc_c89" in
5398 x)
cristy8b350f62009-11-15 23:12:43 +00005399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005400$as_echo "none needed" >&6; } ;;
5401 xno)
cristy8b350f62009-11-15 23:12:43 +00005402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005403$as_echo "unsupported" >&6; } ;;
5404 *)
5405 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005407$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5408esac
cristy8b350f62009-11-15 23:12:43 +00005409if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005410
cristy8b350f62009-11-15 23:12:43 +00005411fi
cristy3ed852e2009-09-05 21:47:34 +00005412
5413ac_ext=c
5414ac_cpp='$CPP $CPPFLAGS'
5415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005418
cristya5bda012013-11-03 18:05:38 +00005419ac_ext=c
5420ac_cpp='$CPP $CPPFLAGS'
5421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423ac_compiler_gnu=$ac_cv_c_compiler_gnu
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5425$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5426if ${am_cv_prog_cc_c_o+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428else
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430/* end confdefs.h. */
5431
5432int
5433main ()
5434{
5435
5436 ;
5437 return 0;
5438}
5439_ACEOF
5440 # Make sure it works both with $CC and with simple cc.
5441 # Following AC_PROG_CC_C_O, we do the test twice because some
5442 # compilers refuse to overwrite an existing .o file with -o,
5443 # though they will create one.
5444 am_cv_prog_cc_c_o=yes
5445 for am_i in 1 2; do
5446 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5447 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5448 ac_status=$?
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } \
5451 && test -f conftest2.$ac_objext; then
5452 : OK
5453 else
5454 am_cv_prog_cc_c_o=no
5455 break
5456 fi
5457 done
5458 rm -f core conftest*
5459 unset am_i
5460fi
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5462$as_echo "$am_cv_prog_cc_c_o" >&6; }
5463if test "$am_cv_prog_cc_c_o" != yes; then
5464 # Losing compiler, so override with the script.
5465 # FIXME: It is wrong to rewrite CC.
5466 # But if we don't then we get into trouble of one sort or another.
5467 # A longer-term fix would be to have automake use am__CC in this case,
5468 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5469 CC="$am_aux_dir/compile $CC"
5470fi
5471ac_ext=c
5472ac_cpp='$CPP $CPPFLAGS'
5473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476
5477
cristy73bd4a52010-10-05 11:24:23 +00005478depcc="$CC" am_compiler_list=
5479
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5481$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005482if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005483 $as_echo_n "(cached) " >&6
5484else
5485 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5486 # We make a subdir and do the tests there. Otherwise we can end up
5487 # making bogus files that we don't know about and never remove. For
5488 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005489 # making a dummy file named 'D' -- because '-MD' means "put the output
5490 # in D".
cristy7247bba2012-02-05 16:37:27 +00005491 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005492 mkdir conftest.dir
5493 # Copy depcomp to subdir because otherwise we won't find it if we're
5494 # using a relative directory.
5495 cp "$am_depcomp" conftest.dir
5496 cd conftest.dir
5497 # We will build objects and dependencies in a subdirectory because
5498 # it helps to detect inapplicable dependency modes. For instance
5499 # both Tru64's cc and ICC support -MD to output dependencies as a
5500 # side effect of compilation, but ICC will put the dependencies in
5501 # the current directory while Tru64 will put them in the object
5502 # directory.
5503 mkdir sub
5504
5505 am_cv_CC_dependencies_compiler_type=none
5506 if test "$am_compiler_list" = ""; then
5507 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5508 fi
5509 am__universal=false
5510 case " $depcc " in #(
5511 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5512 esac
5513
5514 for depmode in $am_compiler_list; do
5515 # Setup a source with many dependencies, because some compilers
5516 # like to wrap large dependency lists on column 80 (with \), and
5517 # we should not choose a depcomp mode which is confused by this.
5518 #
5519 # We need to recreate these files for each test, as the compiler may
5520 # overwrite some of them when testing with obscure command lines.
5521 # This happens at least with the AIX C compiler.
5522 : > sub/conftest.c
5523 for i in 1 2 3 4 5 6; do
5524 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005525 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5526 # Solaris 10 /bin/sh.
5527 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005528 done
5529 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5530
cristyc0890a62012-07-19 00:18:20 +00005531 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005532 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005533 # handle '-M -o', and we need to detect this. Also, some Intel
5534 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005535 am__obj=sub/conftest.${OBJEXT-o}
5536 am__minus_obj="-o $am__obj"
5537 case $depmode in
5538 gcc)
5539 # This depmode causes a compiler race in universal mode.
5540 test "$am__universal" = false || continue
5541 ;;
5542 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005543 # After this tag, mechanisms are not by side-effect, so they'll
5544 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005545 if test "x$enable_dependency_tracking" = xyes; then
5546 continue
5547 else
5548 break
5549 fi
5550 ;;
cristy7247bba2012-02-05 16:37:27 +00005551 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005552 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005553 # not run yet. These depmodes are late enough in the game, and
5554 # so weak that their functioning should not be impacted.
5555 am__obj=conftest.${OBJEXT-o}
5556 am__minus_obj=
5557 ;;
5558 none) break ;;
5559 esac
5560 if depmode=$depmode \
5561 source=sub/conftest.c object=$am__obj \
5562 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5563 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5564 >/dev/null 2>conftest.err &&
5565 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5566 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5567 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5568 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5569 # icc doesn't choke on unknown options, it will just issue warnings
5570 # or remarks (even with -Werror). So we grep stderr for any message
5571 # that says an option was ignored or not supported.
5572 # When given -MP, icc 7.0 and 7.1 complain thusly:
5573 # icc: Command line warning: ignoring option '-M'; no argument required
5574 # The diagnosis changed in icc 8.0:
5575 # icc: Command line remark: option '-MP' not supported
5576 if (grep 'ignoring option' conftest.err ||
5577 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5578 am_cv_CC_dependencies_compiler_type=$depmode
5579 break
5580 fi
5581 fi
5582 done
5583
5584 cd ..
5585 rm -rf conftest.dir
5586else
5587 am_cv_CC_dependencies_compiler_type=none
5588fi
5589
5590fi
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5592$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5593CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5594
5595 if
5596 test "x$enable_dependency_tracking" != xno \
5597 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5598 am__fastdepCC_TRUE=
5599 am__fastdepCC_FALSE='#'
5600else
5601 am__fastdepCC_TRUE='#'
5602 am__fastdepCC_FALSE=
5603fi
5604
5605
cristy3ed852e2009-09-05 21:47:34 +00005606
cristya0b81c32010-01-22 02:54:33 +00005607ac_ext=c
5608ac_cpp='$CPP $CPPFLAGS'
5609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5611ac_compiler_gnu=$ac_cv_c_compiler_gnu
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5613$as_echo_n "checking how to run the C preprocessor... " >&6; }
5614# On Suns, sometimes $CPP names a directory.
5615if test -n "$CPP" && test -d "$CPP"; then
5616 CPP=
5617fi
5618if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005619 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005620 $as_echo_n "(cached) " >&6
5621else
5622 # Double quotes because CPP needs to be expanded
5623 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5624 do
5625 ac_preproc_ok=false
5626for ac_c_preproc_warn_flag in '' yes
5627do
5628 # Use a header file that comes with gcc, so configuring glibc
5629 # with a fresh cross-compiler works.
5630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5631 # <limits.h> exists even on freestanding compilers.
5632 # On the NeXT, cc -E runs the code through the compiler's parser,
5633 # not just through cpp. "Syntax error" is here to catch this case.
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h. */
5636#ifdef __STDC__
5637# include <limits.h>
5638#else
5639# include <assert.h>
5640#endif
5641 Syntax error
5642_ACEOF
5643if ac_fn_c_try_cpp "$LINENO"; then :
5644
5645else
5646 # Broken: fails on valid input.
5647continue
5648fi
cristyda16f162011-02-19 23:52:17 +00005649rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005650
5651 # OK, works on sane cases. Now check whether nonexistent headers
5652 # can be detected and how.
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654/* end confdefs.h. */
5655#include <ac_nonexistent.h>
5656_ACEOF
5657if ac_fn_c_try_cpp "$LINENO"; then :
5658 # Broken: success on invalid input.
5659continue
5660else
5661 # Passes both tests.
5662ac_preproc_ok=:
5663break
5664fi
cristyda16f162011-02-19 23:52:17 +00005665rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005666
5667done
5668# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005669rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005670if $ac_preproc_ok; then :
5671 break
5672fi
5673
5674 done
5675 ac_cv_prog_CPP=$CPP
5676
5677fi
5678 CPP=$ac_cv_prog_CPP
5679else
5680 ac_cv_prog_CPP=$CPP
5681fi
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5683$as_echo "$CPP" >&6; }
5684ac_preproc_ok=false
5685for ac_c_preproc_warn_flag in '' yes
5686do
5687 # Use a header file that comes with gcc, so configuring glibc
5688 # with a fresh cross-compiler works.
5689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5690 # <limits.h> exists even on freestanding compilers.
5691 # On the NeXT, cc -E runs the code through the compiler's parser,
5692 # not just through cpp. "Syntax error" is here to catch this case.
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694/* end confdefs.h. */
5695#ifdef __STDC__
5696# include <limits.h>
5697#else
5698# include <assert.h>
5699#endif
5700 Syntax error
5701_ACEOF
5702if ac_fn_c_try_cpp "$LINENO"; then :
5703
5704else
5705 # Broken: fails on valid input.
5706continue
5707fi
cristyda16f162011-02-19 23:52:17 +00005708rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005709
5710 # OK, works on sane cases. Now check whether nonexistent headers
5711 # can be detected and how.
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713/* end confdefs.h. */
5714#include <ac_nonexistent.h>
5715_ACEOF
5716if ac_fn_c_try_cpp "$LINENO"; then :
5717 # Broken: success on invalid input.
5718continue
5719else
5720 # Passes both tests.
5721ac_preproc_ok=:
5722break
5723fi
cristyda16f162011-02-19 23:52:17 +00005724rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005725
5726done
5727# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005728rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005729if $ac_preproc_ok; then :
5730
5731else
5732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005734as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5735See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005736fi
5737
5738ac_ext=c
5739ac_cpp='$CPP $CPPFLAGS'
5740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742ac_compiler_gnu=$ac_cv_c_compiler_gnu
5743
5744
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5746$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005747if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005748 $as_echo_n "(cached) " >&6
5749else
5750 if test -z "$GREP"; then
5751 ac_path_GREP_found=false
5752 # Loop through the user's path and test for each of PROGNAME-LIST
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5755do
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
5758 for ac_prog in grep ggrep; do
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005761 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005762# Check for GNU ac_path_GREP and select it if it is found.
5763 # Check for GNU $ac_path_GREP
5764case `"$ac_path_GREP" --version 2>&1` in
5765*GNU*)
5766 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5767*)
5768 ac_count=0
5769 $as_echo_n 0123456789 >"conftest.in"
5770 while :
5771 do
5772 cat "conftest.in" "conftest.in" >"conftest.tmp"
5773 mv "conftest.tmp" "conftest.in"
5774 cp "conftest.in" "conftest.nl"
5775 $as_echo 'GREP' >> "conftest.nl"
5776 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5778 as_fn_arith $ac_count + 1 && ac_count=$as_val
5779 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5780 # Best one so far, save it but keep looking for a better one
5781 ac_cv_path_GREP="$ac_path_GREP"
5782 ac_path_GREP_max=$ac_count
5783 fi
5784 # 10*(2^10) chars as input seems more than enough
5785 test $ac_count -gt 10 && break
5786 done
5787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5788esac
5789
5790 $ac_path_GREP_found && break 3
5791 done
5792 done
5793 done
5794IFS=$as_save_IFS
5795 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005796 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005797 fi
5798else
5799 ac_cv_path_GREP=$GREP
5800fi
5801
5802fi
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5804$as_echo "$ac_cv_path_GREP" >&6; }
5805 GREP="$ac_cv_path_GREP"
5806
5807
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5809$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005810if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005811 $as_echo_n "(cached) " >&6
5812else
5813 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5814 then ac_cv_path_EGREP="$GREP -E"
5815 else
5816 if test -z "$EGREP"; then
5817 ac_path_EGREP_found=false
5818 # Loop through the user's path and test for each of PROGNAME-LIST
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5821do
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_prog in egrep; do
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005827 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005828# Check for GNU ac_path_EGREP and select it if it is found.
5829 # Check for GNU $ac_path_EGREP
5830case `"$ac_path_EGREP" --version 2>&1` in
5831*GNU*)
5832 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5833*)
5834 ac_count=0
5835 $as_echo_n 0123456789 >"conftest.in"
5836 while :
5837 do
5838 cat "conftest.in" "conftest.in" >"conftest.tmp"
5839 mv "conftest.tmp" "conftest.in"
5840 cp "conftest.in" "conftest.nl"
5841 $as_echo 'EGREP' >> "conftest.nl"
5842 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5843 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5844 as_fn_arith $ac_count + 1 && ac_count=$as_val
5845 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5846 # Best one so far, save it but keep looking for a better one
5847 ac_cv_path_EGREP="$ac_path_EGREP"
5848 ac_path_EGREP_max=$ac_count
5849 fi
5850 # 10*(2^10) chars as input seems more than enough
5851 test $ac_count -gt 10 && break
5852 done
5853 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5854esac
5855
5856 $ac_path_EGREP_found && break 3
5857 done
5858 done
5859 done
5860IFS=$as_save_IFS
5861 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005862 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005863 fi
5864else
5865 ac_cv_path_EGREP=$EGREP
5866fi
5867
5868 fi
5869fi
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5871$as_echo "$ac_cv_path_EGREP" >&6; }
5872 EGREP="$ac_cv_path_EGREP"
5873
5874
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5876$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005877if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005878 $as_echo_n "(cached) " >&6
5879else
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881/* end confdefs.h. */
5882#include <stdlib.h>
5883#include <stdarg.h>
5884#include <string.h>
5885#include <float.h>
5886
5887int
5888main ()
5889{
5890
5891 ;
5892 return 0;
5893}
5894_ACEOF
5895if ac_fn_c_try_compile "$LINENO"; then :
5896 ac_cv_header_stdc=yes
5897else
5898 ac_cv_header_stdc=no
5899fi
5900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901
5902if test $ac_cv_header_stdc = yes; then
5903 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905/* end confdefs.h. */
5906#include <string.h>
5907
5908_ACEOF
5909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5910 $EGREP "memchr" >/dev/null 2>&1; then :
5911
5912else
5913 ac_cv_header_stdc=no
5914fi
5915rm -f conftest*
5916
5917fi
5918
5919if test $ac_cv_header_stdc = yes; then
5920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922/* end confdefs.h. */
5923#include <stdlib.h>
5924
5925_ACEOF
5926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5927 $EGREP "free" >/dev/null 2>&1; then :
5928
5929else
5930 ac_cv_header_stdc=no
5931fi
5932rm -f conftest*
5933
5934fi
5935
5936if test $ac_cv_header_stdc = yes; then
5937 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5938 if test "$cross_compiling" = yes; then :
5939 :
5940else
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942/* end confdefs.h. */
5943#include <ctype.h>
5944#include <stdlib.h>
5945#if ((' ' & 0x0FF) == 0x020)
5946# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5947# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5948#else
5949# define ISLOWER(c) \
5950 (('a' <= (c) && (c) <= 'i') \
5951 || ('j' <= (c) && (c) <= 'r') \
5952 || ('s' <= (c) && (c) <= 'z'))
5953# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5954#endif
5955
5956#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5957int
5958main ()
5959{
5960 int i;
5961 for (i = 0; i < 256; i++)
5962 if (XOR (islower (i), ISLOWER (i))
5963 || toupper (i) != TOUPPER (i))
5964 return 2;
5965 return 0;
5966}
5967_ACEOF
5968if ac_fn_c_try_run "$LINENO"; then :
5969
5970else
5971 ac_cv_header_stdc=no
5972fi
5973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5974 conftest.$ac_objext conftest.beam conftest.$ac_ext
5975fi
5976
5977fi
5978fi
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5980$as_echo "$ac_cv_header_stdc" >&6; }
5981if test $ac_cv_header_stdc = yes; then
5982
5983$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5984
5985fi
5986
5987# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5988for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5989 inttypes.h stdint.h unistd.h
5990do :
5991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5992ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5993"
cristy98dddb52010-11-04 00:30:15 +00005994if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005995 cat >>confdefs.h <<_ACEOF
5996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5997_ACEOF
5998
5999fi
6000
6001done
6002
6003
6004
6005 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 +00006006if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00006007 MINIX=yes
6008else
6009 MINIX=
6010fi
6011
6012
6013 if test "$MINIX" = yes; then
6014
6015$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6016
6017
6018$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6019
6020
6021$as_echo "#define _MINIX 1" >>confdefs.h
6022
6023 fi
6024
6025
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6027$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006028if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006029 $as_echo_n "(cached) " >&6
6030else
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032/* end confdefs.h. */
6033
cristy14fefe52012-05-21 00:59:18 +00006034# define __EXTENSIONS__ 1
6035 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00006036int
6037main ()
6038{
6039
6040 ;
6041 return 0;
6042}
6043_ACEOF
6044if ac_fn_c_try_compile "$LINENO"; then :
6045 ac_cv_safe_to_define___extensions__=yes
6046else
6047 ac_cv_safe_to_define___extensions__=no
6048fi
6049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050fi
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6052$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6053 test $ac_cv_safe_to_define___extensions__ = yes &&
6054 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6055
6056 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6057
6058 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6059
6060 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6061
6062 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6063
6064
6065
cristy9af1cbf2014-12-28 22:03:09 +00006066# ==============================================================================
6067# Find required base packages
6068# ==============================================================================
cristy9e007fe2015-01-03 16:05:07 +00006069if test -n "$ac_tool_prefix"; then
6070 for ac_prog in ar lib "link -lib"
6071 do
6072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6073set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075$as_echo_n "checking for $ac_word... " >&6; }
6076if ${ac_cv_prog_AR+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078else
6079 if test -n "$AR"; then
6080 ac_cv_prog_AR="$AR" # Let the user override the test.
6081else
6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083for as_dir in $PATH
6084do
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6092 fi
6093done
6094 done
6095IFS=$as_save_IFS
6096
6097fi
6098fi
6099AR=$ac_cv_prog_AR
6100if test -n "$AR"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6102$as_echo "$AR" >&6; }
6103else
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105$as_echo "no" >&6; }
6106fi
6107
6108
6109 test -n "$AR" && break
6110 done
6111fi
6112if test -z "$AR"; then
6113 ac_ct_AR=$AR
6114 for ac_prog in ar lib "link -lib"
6115do
6116 # Extract the first word of "$ac_prog", so it can be a program name with args.
6117set dummy $ac_prog; ac_word=$2
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119$as_echo_n "checking for $ac_word... " >&6; }
6120if ${ac_cv_prog_ac_ct_AR+:} false; then :
6121 $as_echo_n "(cached) " >&6
6122else
6123 if test -n "$ac_ct_AR"; then
6124 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6125else
6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127for as_dir in $PATH
6128do
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133 ac_cv_prog_ac_ct_AR="$ac_prog"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6136 fi
6137done
6138 done
6139IFS=$as_save_IFS
6140
6141fi
6142fi
6143ac_ct_AR=$ac_cv_prog_ac_ct_AR
6144if test -n "$ac_ct_AR"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6146$as_echo "$ac_ct_AR" >&6; }
6147else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149$as_echo "no" >&6; }
6150fi
6151
6152
6153 test -n "$ac_ct_AR" && break
6154done
6155
6156 if test "x$ac_ct_AR" = x; then
6157 AR="false"
6158 else
6159 case $cross_compiling:$ac_tool_warned in
6160yes:)
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6163ac_tool_warned=yes ;;
6164esac
6165 AR=$ac_ct_AR
6166 fi
6167fi
6168
6169: ${AR=ar}
6170
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6172$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6173if ${am_cv_ar_interface+:} false; then :
6174 $as_echo_n "(cached) " >&6
6175else
6176 ac_ext=c
6177ac_cpp='$CPP $CPPFLAGS'
6178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180ac_compiler_gnu=$ac_cv_c_compiler_gnu
6181
6182 am_cv_ar_interface=ar
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184/* end confdefs.h. */
6185int some_variable = 0;
6186_ACEOF
6187if ac_fn_c_try_compile "$LINENO"; then :
6188 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6190 (eval $am_ar_try) 2>&5
6191 ac_status=$?
6192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6193 test $ac_status = 0; }
6194 if test "$ac_status" -eq 0; then
6195 am_cv_ar_interface=ar
6196 else
6197 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6199 (eval $am_ar_try) 2>&5
6200 ac_status=$?
6201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202 test $ac_status = 0; }
6203 if test "$ac_status" -eq 0; then
6204 am_cv_ar_interface=lib
6205 else
6206 am_cv_ar_interface=unknown
6207 fi
6208 fi
6209 rm -f conftest.lib libconftest.a
6210
6211fi
6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213 ac_ext=c
6214ac_cpp='$CPP $CPPFLAGS'
6215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217ac_compiler_gnu=$ac_cv_c_compiler_gnu
6218
6219fi
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6221$as_echo "$am_cv_ar_interface" >&6; }
6222
6223case $am_cv_ar_interface in
6224ar)
6225 ;;
6226lib)
6227 # Microsoft lib, so override with the ar-lib wrapper script.
6228 # FIXME: It is wrong to rewrite AR.
6229 # But if we don't then we get into trouble of one sort or another.
6230 # A longer-term fix would be to have automake use am__AR in this case,
6231 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6232 # similar.
6233 AR="$am_aux_dir/ar-lib $AR"
6234 ;;
6235unknown)
6236 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6237 ;;
6238esac
cristy9af1cbf2014-12-28 22:03:09 +00006239
cristya0b81c32010-01-22 02:54:33 +00006240ac_ext=c
6241ac_cpp='$CPP $CPPFLAGS'
6242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6244ac_compiler_gnu=$ac_cv_c_compiler_gnu
6245if test -n "$ac_tool_prefix"; then
6246 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6247set dummy ${ac_tool_prefix}gcc; ac_word=$2
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006250if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006251 $as_echo_n "(cached) " >&6
6252else
6253 if test -n "$CC"; then
6254 ac_cv_prog_CC="$CC" # Let the user override the test.
6255else
6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257for as_dir in $PATH
6258do
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006263 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
6266 fi
6267done
6268 done
6269IFS=$as_save_IFS
6270
6271fi
6272fi
6273CC=$ac_cv_prog_CC
6274if test -n "$CC"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6276$as_echo "$CC" >&6; }
6277else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279$as_echo "no" >&6; }
6280fi
6281
6282
6283fi
6284if test -z "$ac_cv_prog_CC"; then
6285 ac_ct_CC=$CC
6286 # Extract the first word of "gcc", so it can be a program name with args.
6287set dummy gcc; ac_word=$2
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006290if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006291 $as_echo_n "(cached) " >&6
6292else
6293 if test -n "$ac_ct_CC"; then
6294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6295else
6296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297for as_dir in $PATH
6298do
6299 IFS=$as_save_IFS
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006303 ac_cv_prog_ac_ct_CC="gcc"
6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 break 2
6306 fi
6307done
6308 done
6309IFS=$as_save_IFS
6310
6311fi
6312fi
6313ac_ct_CC=$ac_cv_prog_ac_ct_CC
6314if test -n "$ac_ct_CC"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6316$as_echo "$ac_ct_CC" >&6; }
6317else
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319$as_echo "no" >&6; }
6320fi
6321
6322 if test "x$ac_ct_CC" = x; then
6323 CC=""
6324 else
6325 case $cross_compiling:$ac_tool_warned in
6326yes:)
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6329ac_tool_warned=yes ;;
6330esac
6331 CC=$ac_ct_CC
6332 fi
6333else
6334 CC="$ac_cv_prog_CC"
6335fi
6336
6337if test -z "$CC"; then
6338 if test -n "$ac_tool_prefix"; then
6339 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6340set dummy ${ac_tool_prefix}cc; ac_word=$2
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006343if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006344 $as_echo_n "(cached) " >&6
6345else
6346 if test -n "$CC"; then
6347 ac_cv_prog_CC="$CC" # Let the user override the test.
6348else
6349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006356 ac_cv_prog_CC="${ac_tool_prefix}cc"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360done
6361 done
6362IFS=$as_save_IFS
6363
6364fi
6365fi
6366CC=$ac_cv_prog_CC
6367if test -n "$CC"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6369$as_echo "$CC" >&6; }
6370else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372$as_echo "no" >&6; }
6373fi
6374
6375
6376 fi
6377fi
6378if test -z "$CC"; then
6379 # Extract the first word of "cc", so it can be a program name with args.
6380set dummy cc; ac_word=$2
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006383if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006384 $as_echo_n "(cached) " >&6
6385else
6386 if test -n "$CC"; then
6387 ac_cv_prog_CC="$CC" # Let the user override the test.
6388else
6389 ac_prog_rejected=no
6390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391for as_dir in $PATH
6392do
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006397 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6398 ac_prog_rejected=yes
6399 continue
6400 fi
6401 ac_cv_prog_CC="cc"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6404 fi
6405done
6406 done
6407IFS=$as_save_IFS
6408
6409if test $ac_prog_rejected = yes; then
6410 # We found a bogon in the path, so make sure we never use it.
6411 set dummy $ac_cv_prog_CC
6412 shift
6413 if test $# != 0; then
6414 # We chose a different compiler from the bogus one.
6415 # However, it has the same basename, so the bogon will be chosen
6416 # first if we set CC to just the basename; use the full file name.
6417 shift
6418 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6419 fi
6420fi
6421fi
6422fi
6423CC=$ac_cv_prog_CC
6424if test -n "$CC"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6426$as_echo "$CC" >&6; }
6427else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429$as_echo "no" >&6; }
6430fi
6431
6432
6433fi
6434if test -z "$CC"; then
6435 if test -n "$ac_tool_prefix"; then
6436 for ac_prog in cl.exe
6437 do
6438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6439set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006442if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006443 $as_echo_n "(cached) " >&6
6444else
6445 if test -n "$CC"; then
6446 ac_cv_prog_CC="$CC" # Let the user override the test.
6447else
6448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449for as_dir in $PATH
6450do
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006455 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6458 fi
6459done
6460 done
6461IFS=$as_save_IFS
6462
6463fi
6464fi
6465CC=$ac_cv_prog_CC
6466if test -n "$CC"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6468$as_echo "$CC" >&6; }
6469else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471$as_echo "no" >&6; }
6472fi
6473
6474
6475 test -n "$CC" && break
6476 done
6477fi
6478if test -z "$CC"; then
6479 ac_ct_CC=$CC
6480 for ac_prog in cl.exe
6481do
6482 # Extract the first word of "$ac_prog", so it can be a program name with args.
6483set dummy $ac_prog; ac_word=$2
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006486if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006487 $as_echo_n "(cached) " >&6
6488else
6489 if test -n "$ac_ct_CC"; then
6490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6491else
6492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493for as_dir in $PATH
6494do
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006499 ac_cv_prog_ac_ct_CC="$ac_prog"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6502 fi
6503done
6504 done
6505IFS=$as_save_IFS
6506
6507fi
6508fi
6509ac_ct_CC=$ac_cv_prog_ac_ct_CC
6510if test -n "$ac_ct_CC"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6512$as_echo "$ac_ct_CC" >&6; }
6513else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515$as_echo "no" >&6; }
6516fi
6517
6518
6519 test -n "$ac_ct_CC" && break
6520done
6521
6522 if test "x$ac_ct_CC" = x; then
6523 CC=""
6524 else
6525 case $cross_compiling:$ac_tool_warned in
6526yes:)
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529ac_tool_warned=yes ;;
6530esac
6531 CC=$ac_ct_CC
6532 fi
6533fi
6534
6535fi
6536
6537
6538test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006540as_fn_error $? "no acceptable C compiler found in \$PATH
6541See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006542
6543# Provide some information about the compiler.
6544$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6545set X $ac_compile
6546ac_compiler=$2
6547for ac_option in --version -v -V -qversion; do
6548 { { ac_try="$ac_compiler $ac_option >&5"
6549case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6552esac
6553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6554$as_echo "$ac_try_echo"; } >&5
6555 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6556 ac_status=$?
6557 if test -s conftest.err; then
6558 sed '10a\
6559... rest of stderr output deleted ...
6560 10q' conftest.err >conftest.er1
6561 cat conftest.er1 >&5
6562 fi
6563 rm -f conftest.er1 conftest.err
6564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6565 test $ac_status = 0; }
6566done
6567
6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6569$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006570if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006571 $as_echo_n "(cached) " >&6
6572else
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574/* end confdefs.h. */
6575
6576int
6577main ()
6578{
6579#ifndef __GNUC__
6580 choke me
6581#endif
6582
6583 ;
6584 return 0;
6585}
6586_ACEOF
6587if ac_fn_c_try_compile "$LINENO"; then :
6588 ac_compiler_gnu=yes
6589else
6590 ac_compiler_gnu=no
6591fi
6592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593ac_cv_c_compiler_gnu=$ac_compiler_gnu
6594
6595fi
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6597$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6598if test $ac_compiler_gnu = yes; then
6599 GCC=yes
6600else
6601 GCC=
6602fi
6603ac_test_CFLAGS=${CFLAGS+set}
6604ac_save_CFLAGS=$CFLAGS
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6606$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006607if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006608 $as_echo_n "(cached) " >&6
6609else
6610 ac_save_c_werror_flag=$ac_c_werror_flag
6611 ac_c_werror_flag=yes
6612 ac_cv_prog_cc_g=no
6613 CFLAGS="-g"
6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615/* end confdefs.h. */
6616
6617int
6618main ()
6619{
6620
6621 ;
6622 return 0;
6623}
6624_ACEOF
6625if ac_fn_c_try_compile "$LINENO"; then :
6626 ac_cv_prog_cc_g=yes
6627else
6628 CFLAGS=""
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h. */
6631
6632int
6633main ()
6634{
6635
6636 ;
6637 return 0;
6638}
6639_ACEOF
6640if ac_fn_c_try_compile "$LINENO"; then :
6641
6642else
6643 ac_c_werror_flag=$ac_save_c_werror_flag
6644 CFLAGS="-g"
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646/* end confdefs.h. */
6647
6648int
6649main ()
6650{
6651
6652 ;
6653 return 0;
6654}
6655_ACEOF
6656if ac_fn_c_try_compile "$LINENO"; then :
6657 ac_cv_prog_cc_g=yes
6658fi
6659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660fi
6661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662fi
6663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 ac_c_werror_flag=$ac_save_c_werror_flag
6665fi
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6667$as_echo "$ac_cv_prog_cc_g" >&6; }
6668if test "$ac_test_CFLAGS" = set; then
6669 CFLAGS=$ac_save_CFLAGS
6670elif test $ac_cv_prog_cc_g = yes; then
6671 if test "$GCC" = yes; then
6672 CFLAGS="-g -O2"
6673 else
6674 CFLAGS="-g"
6675 fi
6676else
6677 if test "$GCC" = yes; then
6678 CFLAGS="-O2"
6679 else
6680 CFLAGS=
6681 fi
6682fi
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6684$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006685if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006686 $as_echo_n "(cached) " >&6
6687else
6688 ac_cv_prog_cc_c89=no
6689ac_save_CC=$CC
6690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h. */
6692#include <stdarg.h>
6693#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006694struct stat;
cristya0b81c32010-01-22 02:54:33 +00006695/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6696struct buf { int x; };
6697FILE * (*rcsopen) (struct buf *, struct stat *, int);
6698static char *e (p, i)
6699 char **p;
6700 int i;
6701{
6702 return p[i];
6703}
6704static char *f (char * (*g) (char **, int), char **p, ...)
6705{
6706 char *s;
6707 va_list v;
6708 va_start (v,p);
6709 s = g (p, va_arg (v,int));
6710 va_end (v);
6711 return s;
6712}
6713
6714/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6715 function prototypes and stuff, but not '\xHH' hex character constants.
6716 These don't provoke an error unfortunately, instead are silently treated
6717 as 'x'. The following induces an error, until -std is added to get
6718 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6719 array size at least. It's necessary to write '\x00'==0 to get something
6720 that's true only with -std. */
6721int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6722
6723/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6724 inside strings and character constants. */
6725#define FOO(x) 'x'
6726int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6727
6728int test (int i, double x);
6729struct s1 {int (*f) (int a);};
6730struct s2 {int (*f) (double a);};
6731int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6732int argc;
6733char **argv;
6734int
6735main ()
6736{
6737return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6738 ;
6739 return 0;
6740}
6741_ACEOF
6742for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6743 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6744do
6745 CC="$ac_save_CC $ac_arg"
6746 if ac_fn_c_try_compile "$LINENO"; then :
6747 ac_cv_prog_cc_c89=$ac_arg
6748fi
6749rm -f core conftest.err conftest.$ac_objext
6750 test "x$ac_cv_prog_cc_c89" != "xno" && break
6751done
6752rm -f conftest.$ac_ext
6753CC=$ac_save_CC
6754
6755fi
6756# AC_CACHE_VAL
6757case "x$ac_cv_prog_cc_c89" in
6758 x)
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6760$as_echo "none needed" >&6; } ;;
6761 xno)
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6763$as_echo "unsupported" >&6; } ;;
6764 *)
6765 CC="$CC $ac_cv_prog_cc_c89"
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6767$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6768esac
6769if test "x$ac_cv_prog_cc_c89" != xno; then :
6770
6771fi
6772
6773ac_ext=c
6774ac_cpp='$CPP $CPPFLAGS'
6775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777ac_compiler_gnu=$ac_cv_c_compiler_gnu
6778
cristya5bda012013-11-03 18:05:38 +00006779ac_ext=c
6780ac_cpp='$CPP $CPPFLAGS'
6781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783ac_compiler_gnu=$ac_cv_c_compiler_gnu
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6785$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6786if ${am_cv_prog_cc_c_o+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788else
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790/* end confdefs.h. */
6791
6792int
6793main ()
6794{
6795
6796 ;
6797 return 0;
6798}
6799_ACEOF
6800 # Make sure it works both with $CC and with simple cc.
6801 # Following AC_PROG_CC_C_O, we do the test twice because some
6802 # compilers refuse to overwrite an existing .o file with -o,
6803 # though they will create one.
6804 am_cv_prog_cc_c_o=yes
6805 for am_i in 1 2; do
6806 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6807 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } \
6811 && test -f conftest2.$ac_objext; then
6812 : OK
6813 else
6814 am_cv_prog_cc_c_o=no
6815 break
6816 fi
6817 done
6818 rm -f core conftest*
6819 unset am_i
6820fi
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6822$as_echo "$am_cv_prog_cc_c_o" >&6; }
6823if test "$am_cv_prog_cc_c_o" != yes; then
6824 # Losing compiler, so override with the script.
6825 # FIXME: It is wrong to rewrite CC.
6826 # But if we don't then we get into trouble of one sort or another.
6827 # A longer-term fix would be to have automake use am__CC in this case,
6828 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6829 CC="$am_aux_dir/compile $CC"
6830fi
6831ac_ext=c
6832ac_cpp='$CPP $CPPFLAGS'
6833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6835ac_compiler_gnu=$ac_cv_c_compiler_gnu
6836
6837
cristy73bd4a52010-10-05 11:24:23 +00006838depcc="$CC" am_compiler_list=
6839
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6841$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006842if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006843 $as_echo_n "(cached) " >&6
6844else
6845 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6846 # We make a subdir and do the tests there. Otherwise we can end up
6847 # making bogus files that we don't know about and never remove. For
6848 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006849 # making a dummy file named 'D' -- because '-MD' means "put the output
6850 # in D".
cristy7247bba2012-02-05 16:37:27 +00006851 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006852 mkdir conftest.dir
6853 # Copy depcomp to subdir because otherwise we won't find it if we're
6854 # using a relative directory.
6855 cp "$am_depcomp" conftest.dir
6856 cd conftest.dir
6857 # We will build objects and dependencies in a subdirectory because
6858 # it helps to detect inapplicable dependency modes. For instance
6859 # both Tru64's cc and ICC support -MD to output dependencies as a
6860 # side effect of compilation, but ICC will put the dependencies in
6861 # the current directory while Tru64 will put them in the object
6862 # directory.
6863 mkdir sub
6864
6865 am_cv_CC_dependencies_compiler_type=none
6866 if test "$am_compiler_list" = ""; then
6867 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6868 fi
6869 am__universal=false
6870 case " $depcc " in #(
6871 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6872 esac
6873
6874 for depmode in $am_compiler_list; do
6875 # Setup a source with many dependencies, because some compilers
6876 # like to wrap large dependency lists on column 80 (with \), and
6877 # we should not choose a depcomp mode which is confused by this.
6878 #
6879 # We need to recreate these files for each test, as the compiler may
6880 # overwrite some of them when testing with obscure command lines.
6881 # This happens at least with the AIX C compiler.
6882 : > sub/conftest.c
6883 for i in 1 2 3 4 5 6; do
6884 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006885 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6886 # Solaris 10 /bin/sh.
6887 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006888 done
6889 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6890
cristyc0890a62012-07-19 00:18:20 +00006891 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006892 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006893 # handle '-M -o', and we need to detect this. Also, some Intel
6894 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006895 am__obj=sub/conftest.${OBJEXT-o}
6896 am__minus_obj="-o $am__obj"
6897 case $depmode in
6898 gcc)
6899 # This depmode causes a compiler race in universal mode.
6900 test "$am__universal" = false || continue
6901 ;;
6902 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006903 # After this tag, mechanisms are not by side-effect, so they'll
6904 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006905 if test "x$enable_dependency_tracking" = xyes; then
6906 continue
6907 else
6908 break
6909 fi
6910 ;;
cristy7247bba2012-02-05 16:37:27 +00006911 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006912 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006913 # not run yet. These depmodes are late enough in the game, and
6914 # so weak that their functioning should not be impacted.
6915 am__obj=conftest.${OBJEXT-o}
6916 am__minus_obj=
6917 ;;
6918 none) break ;;
6919 esac
6920 if depmode=$depmode \
6921 source=sub/conftest.c object=$am__obj \
6922 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6923 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6924 >/dev/null 2>conftest.err &&
6925 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6926 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6927 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6928 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6929 # icc doesn't choke on unknown options, it will just issue warnings
6930 # or remarks (even with -Werror). So we grep stderr for any message
6931 # that says an option was ignored or not supported.
6932 # When given -MP, icc 7.0 and 7.1 complain thusly:
6933 # icc: Command line warning: ignoring option '-M'; no argument required
6934 # The diagnosis changed in icc 8.0:
6935 # icc: Command line remark: option '-MP' not supported
6936 if (grep 'ignoring option' conftest.err ||
6937 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6938 am_cv_CC_dependencies_compiler_type=$depmode
6939 break
6940 fi
6941 fi
6942 done
6943
6944 cd ..
6945 rm -rf conftest.dir
6946else
6947 am_cv_CC_dependencies_compiler_type=none
6948fi
6949
6950fi
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6952$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6953CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6954
6955 if
6956 test "x$enable_dependency_tracking" != xno \
6957 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6958 am__fastdepCC_TRUE=
6959 am__fastdepCC_FALSE='#'
6960else
6961 am__fastdepCC_TRUE='#'
6962 am__fastdepCC_FALSE=
6963fi
6964
6965
cristy95646052009-11-28 23:05:30 +00006966ac_ext=cpp
6967ac_cpp='$CXXCPP $CPPFLAGS'
6968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6971if test -z "$CXX"; then
6972 if test -n "$CCC"; then
6973 CXX=$CCC
6974 else
6975 if test -n "$ac_tool_prefix"; then
6976 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6977 do
6978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006982if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006983 $as_echo_n "(cached) " >&6
6984else
6985 if test -n "$CXX"; then
6986 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6987else
6988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006995 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999done
7000 done
7001IFS=$as_save_IFS
7002
7003fi
7004fi
7005CXX=$ac_cv_prog_CXX
7006if test -n "$CXX"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7008$as_echo "$CXX" >&6; }
7009else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011$as_echo "no" >&6; }
7012fi
7013
7014
7015 test -n "$CXX" && break
7016 done
7017fi
7018if test -z "$CXX"; then
7019 ac_ct_CXX=$CXX
7020 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7021do
7022 # Extract the first word of "$ac_prog", so it can be a program name with args.
7023set dummy $ac_prog; ac_word=$2
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007026if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007027 $as_echo_n "(cached) " >&6
7028else
7029 if test -n "$ac_ct_CXX"; then
7030 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7031else
7032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033for as_dir in $PATH
7034do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007039 ac_cv_prog_ac_ct_CXX="$ac_prog"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 break 2
7042 fi
7043done
7044 done
7045IFS=$as_save_IFS
7046
7047fi
7048fi
7049ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7050if test -n "$ac_ct_CXX"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7052$as_echo "$ac_ct_CXX" >&6; }
7053else
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055$as_echo "no" >&6; }
7056fi
7057
7058
7059 test -n "$ac_ct_CXX" && break
7060done
7061
7062 if test "x$ac_ct_CXX" = x; then
7063 CXX="g++"
7064 else
7065 case $cross_compiling:$ac_tool_warned in
7066yes:)
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7069ac_tool_warned=yes ;;
7070esac
7071 CXX=$ac_ct_CXX
7072 fi
7073fi
7074
7075 fi
7076fi
7077# Provide some information about the compiler.
7078$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7079set X $ac_compile
7080ac_compiler=$2
7081for ac_option in --version -v -V -qversion; do
7082 { { ac_try="$ac_compiler $ac_option >&5"
7083case "(($ac_try" in
7084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7085 *) ac_try_echo=$ac_try;;
7086esac
7087eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7088$as_echo "$ac_try_echo"; } >&5
7089 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7090 ac_status=$?
7091 if test -s conftest.err; then
7092 sed '10a\
7093... rest of stderr output deleted ...
7094 10q' conftest.err >conftest.er1
7095 cat conftest.er1 >&5
7096 fi
7097 rm -f conftest.er1 conftest.err
7098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7099 test $ac_status = 0; }
7100done
7101
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7103$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007104if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00007105 $as_echo_n "(cached) " >&6
7106else
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108/* end confdefs.h. */
7109
7110int
7111main ()
7112{
7113#ifndef __GNUC__
7114 choke me
7115#endif
7116
7117 ;
7118 return 0;
7119}
7120_ACEOF
7121if ac_fn_cxx_try_compile "$LINENO"; then :
7122 ac_compiler_gnu=yes
7123else
7124 ac_compiler_gnu=no
7125fi
7126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7128
7129fi
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7131$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7132if test $ac_compiler_gnu = yes; then
7133 GXX=yes
7134else
7135 GXX=
7136fi
7137ac_test_CXXFLAGS=${CXXFLAGS+set}
7138ac_save_CXXFLAGS=$CXXFLAGS
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7140$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007141if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00007142 $as_echo_n "(cached) " >&6
7143else
7144 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7145 ac_cxx_werror_flag=yes
7146 ac_cv_prog_cxx_g=no
7147 CXXFLAGS="-g"
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149/* end confdefs.h. */
7150
7151int
7152main ()
7153{
7154
7155 ;
7156 return 0;
7157}
7158_ACEOF
7159if ac_fn_cxx_try_compile "$LINENO"; then :
7160 ac_cv_prog_cxx_g=yes
7161else
7162 CXXFLAGS=""
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164/* end confdefs.h. */
7165
7166int
7167main ()
7168{
7169
7170 ;
7171 return 0;
7172}
7173_ACEOF
7174if ac_fn_cxx_try_compile "$LINENO"; then :
7175
7176else
7177 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7178 CXXFLAGS="-g"
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180/* end confdefs.h. */
7181
7182int
7183main ()
7184{
7185
7186 ;
7187 return 0;
7188}
7189_ACEOF
7190if ac_fn_cxx_try_compile "$LINENO"; then :
7191 ac_cv_prog_cxx_g=yes
7192fi
7193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194fi
7195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196fi
7197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7199fi
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7201$as_echo "$ac_cv_prog_cxx_g" >&6; }
7202if test "$ac_test_CXXFLAGS" = set; then
7203 CXXFLAGS=$ac_save_CXXFLAGS
7204elif test $ac_cv_prog_cxx_g = yes; then
7205 if test "$GXX" = yes; then
7206 CXXFLAGS="-g -O2"
7207 else
7208 CXXFLAGS="-g"
7209 fi
7210else
7211 if test "$GXX" = yes; then
7212 CXXFLAGS="-O2"
7213 else
7214 CXXFLAGS=
7215 fi
7216fi
7217ac_ext=c
7218ac_cpp='$CPP $CPPFLAGS'
7219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7221ac_compiler_gnu=$ac_cv_c_compiler_gnu
7222
cristy73bd4a52010-10-05 11:24:23 +00007223depcc="$CXX" am_compiler_list=
7224
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7226$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007227if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007228 $as_echo_n "(cached) " >&6
7229else
7230 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7231 # We make a subdir and do the tests there. Otherwise we can end up
7232 # making bogus files that we don't know about and never remove. For
7233 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00007234 # making a dummy file named 'D' -- because '-MD' means "put the output
7235 # in D".
cristy7247bba2012-02-05 16:37:27 +00007236 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00007237 mkdir conftest.dir
7238 # Copy depcomp to subdir because otherwise we won't find it if we're
7239 # using a relative directory.
7240 cp "$am_depcomp" conftest.dir
7241 cd conftest.dir
7242 # We will build objects and dependencies in a subdirectory because
7243 # it helps to detect inapplicable dependency modes. For instance
7244 # both Tru64's cc and ICC support -MD to output dependencies as a
7245 # side effect of compilation, but ICC will put the dependencies in
7246 # the current directory while Tru64 will put them in the object
7247 # directory.
7248 mkdir sub
7249
7250 am_cv_CXX_dependencies_compiler_type=none
7251 if test "$am_compiler_list" = ""; then
7252 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7253 fi
7254 am__universal=false
7255 case " $depcc " in #(
7256 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7257 esac
7258
7259 for depmode in $am_compiler_list; do
7260 # Setup a source with many dependencies, because some compilers
7261 # like to wrap large dependency lists on column 80 (with \), and
7262 # we should not choose a depcomp mode which is confused by this.
7263 #
7264 # We need to recreate these files for each test, as the compiler may
7265 # overwrite some of them when testing with obscure command lines.
7266 # This happens at least with the AIX C compiler.
7267 : > sub/conftest.c
7268 for i in 1 2 3 4 5 6; do
7269 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007270 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7271 # Solaris 10 /bin/sh.
7272 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007273 done
7274 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7275
cristyc0890a62012-07-19 00:18:20 +00007276 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007277 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007278 # handle '-M -o', and we need to detect this. Also, some Intel
7279 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007280 am__obj=sub/conftest.${OBJEXT-o}
7281 am__minus_obj="-o $am__obj"
7282 case $depmode in
7283 gcc)
7284 # This depmode causes a compiler race in universal mode.
7285 test "$am__universal" = false || continue
7286 ;;
7287 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007288 # After this tag, mechanisms are not by side-effect, so they'll
7289 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007290 if test "x$enable_dependency_tracking" = xyes; then
7291 continue
7292 else
7293 break
7294 fi
7295 ;;
cristy7247bba2012-02-05 16:37:27 +00007296 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007297 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007298 # not run yet. These depmodes are late enough in the game, and
7299 # so weak that their functioning should not be impacted.
7300 am__obj=conftest.${OBJEXT-o}
7301 am__minus_obj=
7302 ;;
7303 none) break ;;
7304 esac
7305 if depmode=$depmode \
7306 source=sub/conftest.c object=$am__obj \
7307 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7308 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7309 >/dev/null 2>conftest.err &&
7310 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7311 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7312 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7313 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7314 # icc doesn't choke on unknown options, it will just issue warnings
7315 # or remarks (even with -Werror). So we grep stderr for any message
7316 # that says an option was ignored or not supported.
7317 # When given -MP, icc 7.0 and 7.1 complain thusly:
7318 # icc: Command line warning: ignoring option '-M'; no argument required
7319 # The diagnosis changed in icc 8.0:
7320 # icc: Command line remark: option '-MP' not supported
7321 if (grep 'ignoring option' conftest.err ||
7322 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7323 am_cv_CXX_dependencies_compiler_type=$depmode
7324 break
7325 fi
7326 fi
7327 done
7328
7329 cd ..
7330 rm -rf conftest.dir
7331else
7332 am_cv_CXX_dependencies_compiler_type=none
7333fi
7334
7335fi
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7337$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7338CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7339
7340 if
7341 test "x$enable_dependency_tracking" != xno \
7342 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7343 am__fastdepCXX_TRUE=
7344 am__fastdepCXX_FALSE='#'
7345else
7346 am__fastdepCXX_TRUE='#'
7347 am__fastdepCXX_FALSE=
7348fi
7349
7350
cristy8b350f62009-11-15 23:12:43 +00007351 case $ac_cv_prog_cc_stdc in #(
7352 no) :
7353 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7354 *) :
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007356$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007357if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007358 $as_echo_n "(cached) " >&6
7359else
7360 ac_cv_prog_cc_c99=no
7361ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007363/* end confdefs.h. */
7364#include <stdarg.h>
7365#include <stdbool.h>
7366#include <stdlib.h>
7367#include <wchar.h>
7368#include <stdio.h>
7369
7370// Check varargs macros. These examples are taken from C99 6.10.3.5.
7371#define debug(...) fprintf (stderr, __VA_ARGS__)
7372#define showlist(...) puts (#__VA_ARGS__)
7373#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7374static void
7375test_varargs_macros (void)
7376{
7377 int x = 1234;
7378 int y = 5678;
7379 debug ("Flag");
7380 debug ("X = %d\n", x);
7381 showlist (The first, second, and third items.);
7382 report (x>y, "x is %d but y is %d", x, y);
7383}
7384
7385// Check long long types.
7386#define BIG64 18446744073709551615ull
7387#define BIG32 4294967295ul
7388#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7389#if !BIG_OK
7390 your preprocessor is broken;
7391#endif
7392#if BIG_OK
7393#else
7394 your preprocessor is broken;
7395#endif
7396static long long int bignum = -9223372036854775807LL;
7397static unsigned long long int ubignum = BIG64;
7398
7399struct incomplete_array
7400{
7401 int datasize;
7402 double data[];
7403};
7404
7405struct named_init {
7406 int number;
7407 const wchar_t *name;
7408 double average;
7409};
7410
7411typedef const char *ccp;
7412
7413static inline int
7414test_restrict (ccp restrict text)
7415{
7416 // See if C++-style comments work.
7417 // Iterate through items via the restricted pointer.
7418 // Also check for declarations in for loops.
7419 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7420 continue;
7421 return 0;
7422}
7423
7424// Check varargs and va_copy.
7425static void
7426test_varargs (const char *format, ...)
7427{
7428 va_list args;
7429 va_start (args, format);
7430 va_list args_copy;
7431 va_copy (args_copy, args);
7432
7433 const char *str;
7434 int number;
7435 float fnumber;
7436
7437 while (*format)
7438 {
7439 switch (*format++)
7440 {
7441 case 's': // string
7442 str = va_arg (args_copy, const char *);
7443 break;
7444 case 'd': // int
7445 number = va_arg (args_copy, int);
7446 break;
7447 case 'f': // float
7448 fnumber = va_arg (args_copy, double);
7449 break;
7450 default:
7451 break;
7452 }
7453 }
7454 va_end (args_copy);
7455 va_end (args);
7456}
7457
7458int
7459main ()
7460{
7461
7462 // Check bool.
7463 _Bool success = false;
7464
7465 // Check restrict.
7466 if (test_restrict ("String literal") == 0)
7467 success = true;
7468 char *restrict newvar = "Another string";
7469
7470 // Check varargs.
7471 test_varargs ("s, d' f .", "string", 65, 34.234);
7472 test_varargs_macros ();
7473
7474 // Check flexible array members.
7475 struct incomplete_array *ia =
7476 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7477 ia->datasize = 10;
7478 for (int i = 0; i < ia->datasize; ++i)
7479 ia->data[i] = i * 1.234;
7480
7481 // Check named initializers.
7482 struct named_init ni = {
7483 .number = 34,
7484 .name = L"Test wide string",
7485 .average = 543.34343,
7486 };
7487
7488 ni.number = 58;
7489
7490 int dynamic_array[ni.number];
7491 dynamic_array[ni.number - 1] = 543;
7492
7493 // work around unused variable warnings
7494 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7495 || dynamic_array[ni.number - 1] != 543);
7496
7497 ;
7498 return 0;
7499}
7500_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007501for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007502do
7503 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007504 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007505 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007506fi
cristy3ed852e2009-09-05 21:47:34 +00007507rm -f core conftest.err conftest.$ac_objext
7508 test "x$ac_cv_prog_cc_c99" != "xno" && break
7509done
7510rm -f conftest.$ac_ext
7511CC=$ac_save_CC
7512
7513fi
7514# AC_CACHE_VAL
7515case "x$ac_cv_prog_cc_c99" in
7516 x)
cristy8b350f62009-11-15 23:12:43 +00007517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007518$as_echo "none needed" >&6; } ;;
7519 xno)
cristy8b350f62009-11-15 23:12:43 +00007520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007521$as_echo "unsupported" >&6; } ;;
7522 *)
7523 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007525$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7526esac
cristy8b350f62009-11-15 23:12:43 +00007527if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007528 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7529else
cristy8b350f62009-11-15 23:12:43 +00007530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007531$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007532if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007533 $as_echo_n "(cached) " >&6
7534else
7535 ac_cv_prog_cc_c89=no
7536ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007538/* end confdefs.h. */
7539#include <stdarg.h>
7540#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007541struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007542/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7543struct buf { int x; };
7544FILE * (*rcsopen) (struct buf *, struct stat *, int);
7545static char *e (p, i)
7546 char **p;
7547 int i;
7548{
7549 return p[i];
7550}
7551static char *f (char * (*g) (char **, int), char **p, ...)
7552{
7553 char *s;
7554 va_list v;
7555 va_start (v,p);
7556 s = g (p, va_arg (v,int));
7557 va_end (v);
7558 return s;
7559}
7560
7561/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7562 function prototypes and stuff, but not '\xHH' hex character constants.
7563 These don't provoke an error unfortunately, instead are silently treated
7564 as 'x'. The following induces an error, until -std is added to get
7565 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7566 array size at least. It's necessary to write '\x00'==0 to get something
7567 that's true only with -std. */
7568int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7569
7570/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7571 inside strings and character constants. */
7572#define FOO(x) 'x'
7573int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7574
7575int test (int i, double x);
7576struct s1 {int (*f) (int a);};
7577struct s2 {int (*f) (double a);};
7578int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7579int argc;
7580char **argv;
7581int
7582main ()
7583{
7584return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7585 ;
7586 return 0;
7587}
7588_ACEOF
7589for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7590 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7591do
7592 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007593 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007594 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007595fi
cristy3ed852e2009-09-05 21:47:34 +00007596rm -f core conftest.err conftest.$ac_objext
7597 test "x$ac_cv_prog_cc_c89" != "xno" && break
7598done
7599rm -f conftest.$ac_ext
7600CC=$ac_save_CC
7601
7602fi
7603# AC_CACHE_VAL
7604case "x$ac_cv_prog_cc_c89" in
7605 x)
cristy8b350f62009-11-15 23:12:43 +00007606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007607$as_echo "none needed" >&6; } ;;
7608 xno)
cristy8b350f62009-11-15 23:12:43 +00007609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007610$as_echo "unsupported" >&6; } ;;
7611 *)
7612 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007614$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7615esac
cristy8b350f62009-11-15 23:12:43 +00007616if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007617 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7618else
7619 ac_cv_prog_cc_stdc=no
7620fi
7621
cristy3ed852e2009-09-05 21:47:34 +00007622fi
cristy3ed852e2009-09-05 21:47:34 +00007623 ;;
7624esac
cristy8b350f62009-11-15 23:12:43 +00007625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007626$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007627 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007628 $as_echo_n "(cached) " >&6
7629fi
7630
cristy8b350f62009-11-15 23:12:43 +00007631 case $ac_cv_prog_cc_stdc in #(
7632 no) :
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7634$as_echo "unsupported" >&6; } ;; #(
7635 '') :
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7637$as_echo "none needed" >&6; } ;; #(
7638 *) :
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007640$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7641esac
7642
cristy3ed852e2009-09-05 21:47:34 +00007643ac_ext=c
7644ac_cpp='$CPP $CPPFLAGS'
7645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7647ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007649$as_echo_n "checking how to run the C preprocessor... " >&6; }
7650# On Suns, sometimes $CPP names a directory.
7651if test -n "$CPP" && test -d "$CPP"; then
7652 CPP=
7653fi
7654if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007655 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007656 $as_echo_n "(cached) " >&6
7657else
7658 # Double quotes because CPP needs to be expanded
7659 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7660 do
7661 ac_preproc_ok=false
7662for ac_c_preproc_warn_flag in '' yes
7663do
7664 # Use a header file that comes with gcc, so configuring glibc
7665 # with a fresh cross-compiler works.
7666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7667 # <limits.h> exists even on freestanding compilers.
7668 # On the NeXT, cc -E runs the code through the compiler's parser,
7669 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007671/* end confdefs.h. */
7672#ifdef __STDC__
7673# include <limits.h>
7674#else
7675# include <assert.h>
7676#endif
7677 Syntax error
7678_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007679if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007680
cristy8b350f62009-11-15 23:12:43 +00007681else
cristy3ed852e2009-09-05 21:47:34 +00007682 # Broken: fails on valid input.
7683continue
7684fi
cristyda16f162011-02-19 23:52:17 +00007685rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007686
7687 # OK, works on sane cases. Now check whether nonexistent headers
7688 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007690/* end confdefs.h. */
7691#include <ac_nonexistent.h>
7692_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007693if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007694 # Broken: success on invalid input.
7695continue
7696else
cristy3ed852e2009-09-05 21:47:34 +00007697 # Passes both tests.
7698ac_preproc_ok=:
7699break
7700fi
cristyda16f162011-02-19 23:52:17 +00007701rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007702
7703done
7704# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007705rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007706if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007707 break
7708fi
7709
7710 done
7711 ac_cv_prog_CPP=$CPP
7712
7713fi
7714 CPP=$ac_cv_prog_CPP
7715else
7716 ac_cv_prog_CPP=$CPP
7717fi
cristy8b350f62009-11-15 23:12:43 +00007718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007719$as_echo "$CPP" >&6; }
7720ac_preproc_ok=false
7721for ac_c_preproc_warn_flag in '' yes
7722do
7723 # Use a header file that comes with gcc, so configuring glibc
7724 # with a fresh cross-compiler works.
7725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7726 # <limits.h> exists even on freestanding compilers.
7727 # On the NeXT, cc -E runs the code through the compiler's parser,
7728 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007730/* end confdefs.h. */
7731#ifdef __STDC__
7732# include <limits.h>
7733#else
7734# include <assert.h>
7735#endif
7736 Syntax error
7737_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007738if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007739
cristy8b350f62009-11-15 23:12:43 +00007740else
cristy3ed852e2009-09-05 21:47:34 +00007741 # Broken: fails on valid input.
7742continue
7743fi
cristyda16f162011-02-19 23:52:17 +00007744rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007745
7746 # OK, works on sane cases. Now check whether nonexistent headers
7747 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007749/* end confdefs.h. */
7750#include <ac_nonexistent.h>
7751_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007752if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007753 # Broken: success on invalid input.
7754continue
7755else
cristy3ed852e2009-09-05 21:47:34 +00007756 # Passes both tests.
7757ac_preproc_ok=:
7758break
7759fi
cristyda16f162011-02-19 23:52:17 +00007760rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007761
7762done
7763# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007764rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007765if $ac_preproc_ok; then :
7766
cristy3ed852e2009-09-05 21:47:34 +00007767else
cristy8b350f62009-11-15 23:12:43 +00007768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007770as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7771See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007772fi
7773
7774ac_ext=c
7775ac_cpp='$CPP $CPPFLAGS'
7776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7778ac_compiler_gnu=$ac_cv_c_compiler_gnu
7779
cristy73bd4a52010-10-05 11:24:23 +00007780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7781$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007782if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007783 $as_echo_n "(cached) " >&6
7784else
7785 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7786 for ac_i in 1 2 3 4 5 6 7; do
7787 ac_script="$ac_script$as_nl$ac_script"
7788 done
7789 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7790 { ac_script=; unset ac_script;}
7791 if test -z "$SED"; then
7792 ac_path_SED_found=false
7793 # Loop through the user's path and test for each of PROGNAME-LIST
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795for as_dir in $PATH
7796do
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_prog in sed gsed; do
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007802 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007803# Check for GNU ac_path_SED and select it if it is found.
7804 # Check for GNU $ac_path_SED
7805case `"$ac_path_SED" --version 2>&1` in
7806*GNU*)
7807 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7808*)
7809 ac_count=0
7810 $as_echo_n 0123456789 >"conftest.in"
7811 while :
7812 do
7813 cat "conftest.in" "conftest.in" >"conftest.tmp"
7814 mv "conftest.tmp" "conftest.in"
7815 cp "conftest.in" "conftest.nl"
7816 $as_echo '' >> "conftest.nl"
7817 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7819 as_fn_arith $ac_count + 1 && ac_count=$as_val
7820 if test $ac_count -gt ${ac_path_SED_max-0}; then
7821 # Best one so far, save it but keep looking for a better one
7822 ac_cv_path_SED="$ac_path_SED"
7823 ac_path_SED_max=$ac_count
7824 fi
7825 # 10*(2^10) chars as input seems more than enough
7826 test $ac_count -gt 10 && break
7827 done
7828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7829esac
7830
7831 $ac_path_SED_found && break 3
7832 done
7833 done
7834 done
7835IFS=$as_save_IFS
7836 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007837 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007838 fi
7839else
7840 ac_cv_path_SED=$SED
7841fi
7842
7843fi
7844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7845$as_echo "$ac_cv_path_SED" >&6; }
7846 SED="$ac_cv_path_SED"
7847 rm -f conftest.sed
7848
7849test -z "$SED" && SED=sed
7850Xsed="$SED -e 1s/^X//"
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7863$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007864if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007865 $as_echo_n "(cached) " >&6
7866else
7867 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7868 then ac_cv_path_FGREP="$GREP -F"
7869 else
7870 if test -z "$FGREP"; then
7871 ac_path_FGREP_found=false
7872 # Loop through the user's path and test for each of PROGNAME-LIST
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7875do
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_prog in fgrep; do
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007881 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007882# Check for GNU ac_path_FGREP and select it if it is found.
7883 # Check for GNU $ac_path_FGREP
7884case `"$ac_path_FGREP" --version 2>&1` in
7885*GNU*)
7886 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7887*)
7888 ac_count=0
7889 $as_echo_n 0123456789 >"conftest.in"
7890 while :
7891 do
7892 cat "conftest.in" "conftest.in" >"conftest.tmp"
7893 mv "conftest.tmp" "conftest.in"
7894 cp "conftest.in" "conftest.nl"
7895 $as_echo 'FGREP' >> "conftest.nl"
7896 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7898 as_fn_arith $ac_count + 1 && ac_count=$as_val
7899 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7900 # Best one so far, save it but keep looking for a better one
7901 ac_cv_path_FGREP="$ac_path_FGREP"
7902 ac_path_FGREP_max=$ac_count
7903 fi
7904 # 10*(2^10) chars as input seems more than enough
7905 test $ac_count -gt 10 && break
7906 done
7907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7908esac
7909
7910 $ac_path_FGREP_found && break 3
7911 done
7912 done
7913 done
7914IFS=$as_save_IFS
7915 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007916 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007917 fi
7918else
7919 ac_cv_path_FGREP=$FGREP
7920fi
7921
7922 fi
7923fi
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7925$as_echo "$ac_cv_path_FGREP" >&6; }
7926 FGREP="$ac_cv_path_FGREP"
7927
7928
7929test -z "$GREP" && GREP=grep
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
cristy0c60a692010-11-04 01:09:47 +00007947ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7948ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7949ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7950
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7952$as_echo_n "checking how to print strings... " >&6; }
7953# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007954if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007955 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7956 ECHO='print -r --'
7957elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7958 ECHO='printf %s\n'
7959else
7960 # Use this function as a fallback that always works.
7961 func_fallback_echo ()
7962 {
7963 eval 'cat <<_LTECHO_EOF
7964$1
7965_LTECHO_EOF'
7966 }
7967 ECHO='func_fallback_echo'
7968fi
7969
7970# func_echo_all arg...
7971# Invoke $ECHO with all args, space-separated.
7972func_echo_all ()
7973{
7974 $ECHO ""
7975}
7976
7977case "$ECHO" in
7978 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7979$as_echo "printf" >&6; } ;;
7980 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7981$as_echo "print -r" >&6; } ;;
7982 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7983$as_echo "cat" >&6; } ;;
7984esac
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
cristy73bd4a52010-10-05 11:24:23 +00007999
8000
8001# Check whether --with-gnu-ld was given.
8002if test "${with_gnu_ld+set}" = set; then :
8003 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8004else
8005 with_gnu_ld=no
8006fi
8007
8008ac_prog=ld
8009if test "$GCC" = yes; then
8010 # Check if gcc -print-prog-name=ld gives a path.
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8012$as_echo_n "checking for ld used by $CC... " >&6; }
8013 case $host in
8014 *-*-mingw*)
8015 # gcc leaves a trailing carriage return which upsets mingw
8016 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8017 *)
8018 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8019 esac
8020 case $ac_prog in
8021 # Accept absolute paths.
8022 [\\/]* | ?:[\\/]*)
8023 re_direlt='/[^/][^/]*/\.\./'
8024 # Canonicalize the pathname of ld
8025 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8026 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8027 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8028 done
8029 test -z "$LD" && LD="$ac_prog"
8030 ;;
8031 "")
8032 # If it fails, then pretend we aren't using GCC.
8033 ac_prog=ld
8034 ;;
8035 *)
8036 # If it is relative, then search for the first ld in PATH.
8037 with_gnu_ld=unknown
8038 ;;
8039 esac
8040elif test "$with_gnu_ld" = yes; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8042$as_echo_n "checking for GNU ld... " >&6; }
8043else
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8045$as_echo_n "checking for non-GNU ld... " >&6; }
8046fi
cristyda16f162011-02-19 23:52:17 +00008047if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008048 $as_echo_n "(cached) " >&6
8049else
8050 if test -z "$LD"; then
8051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8052 for ac_dir in $PATH; do
8053 IFS="$lt_save_ifs"
8054 test -z "$ac_dir" && ac_dir=.
8055 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8056 lt_cv_path_LD="$ac_dir/$ac_prog"
8057 # Check to see if the program is GNU ld. I'd rather use --version,
8058 # but apparently some variants of GNU ld only accept -v.
8059 # Break only if it was the GNU/non-GNU ld that we prefer.
8060 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8061 *GNU* | *'with BFD'*)
8062 test "$with_gnu_ld" != no && break
8063 ;;
8064 *)
8065 test "$with_gnu_ld" != yes && break
8066 ;;
8067 esac
8068 fi
8069 done
8070 IFS="$lt_save_ifs"
8071else
8072 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8073fi
8074fi
8075
8076LD="$lt_cv_path_LD"
8077if test -n "$LD"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8079$as_echo "$LD" >&6; }
8080else
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082$as_echo "no" >&6; }
8083fi
cristy98dddb52010-11-04 00:30:15 +00008084test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8086$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008087if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008088 $as_echo_n "(cached) " >&6
8089else
8090 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8091case `$LD -v 2>&1 </dev/null` in
8092*GNU* | *'with BFD'*)
8093 lt_cv_prog_gnu_ld=yes
8094 ;;
8095*)
8096 lt_cv_prog_gnu_ld=no
8097 ;;
8098esac
8099fi
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8101$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8102with_gnu_ld=$lt_cv_prog_gnu_ld
8103
8104
8105
8106
8107
8108
8109
8110
8111
cristy3ed852e2009-09-05 21:47:34 +00008112
cristy837d6dc2010-02-27 01:16:57 +00008113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8114$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008115if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00008116 $as_echo_n "(cached) " >&6
8117else
8118 ac_cv_prog_cc_c99=no
8119ac_save_CC=$CC
8120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121/* end confdefs.h. */
8122#include <stdarg.h>
8123#include <stdbool.h>
8124#include <stdlib.h>
8125#include <wchar.h>
8126#include <stdio.h>
8127
8128// Check varargs macros. These examples are taken from C99 6.10.3.5.
8129#define debug(...) fprintf (stderr, __VA_ARGS__)
8130#define showlist(...) puts (#__VA_ARGS__)
8131#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8132static void
8133test_varargs_macros (void)
8134{
8135 int x = 1234;
8136 int y = 5678;
8137 debug ("Flag");
8138 debug ("X = %d\n", x);
8139 showlist (The first, second, and third items.);
8140 report (x>y, "x is %d but y is %d", x, y);
8141}
8142
8143// Check long long types.
8144#define BIG64 18446744073709551615ull
8145#define BIG32 4294967295ul
8146#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8147#if !BIG_OK
8148 your preprocessor is broken;
8149#endif
8150#if BIG_OK
8151#else
8152 your preprocessor is broken;
8153#endif
8154static long long int bignum = -9223372036854775807LL;
8155static unsigned long long int ubignum = BIG64;
8156
8157struct incomplete_array
8158{
8159 int datasize;
8160 double data[];
8161};
8162
8163struct named_init {
8164 int number;
8165 const wchar_t *name;
8166 double average;
8167};
8168
8169typedef const char *ccp;
8170
8171static inline int
8172test_restrict (ccp restrict text)
8173{
8174 // See if C++-style comments work.
8175 // Iterate through items via the restricted pointer.
8176 // Also check for declarations in for loops.
8177 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8178 continue;
8179 return 0;
8180}
8181
8182// Check varargs and va_copy.
8183static void
8184test_varargs (const char *format, ...)
8185{
8186 va_list args;
8187 va_start (args, format);
8188 va_list args_copy;
8189 va_copy (args_copy, args);
8190
8191 const char *str;
8192 int number;
8193 float fnumber;
8194
8195 while (*format)
8196 {
8197 switch (*format++)
8198 {
8199 case 's': // string
8200 str = va_arg (args_copy, const char *);
8201 break;
8202 case 'd': // int
8203 number = va_arg (args_copy, int);
8204 break;
8205 case 'f': // float
8206 fnumber = va_arg (args_copy, double);
8207 break;
8208 default:
8209 break;
8210 }
8211 }
8212 va_end (args_copy);
8213 va_end (args);
8214}
8215
8216int
8217main ()
8218{
8219
8220 // Check bool.
8221 _Bool success = false;
8222
8223 // Check restrict.
8224 if (test_restrict ("String literal") == 0)
8225 success = true;
8226 char *restrict newvar = "Another string";
8227
8228 // Check varargs.
8229 test_varargs ("s, d' f .", "string", 65, 34.234);
8230 test_varargs_macros ();
8231
8232 // Check flexible array members.
8233 struct incomplete_array *ia =
8234 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8235 ia->datasize = 10;
8236 for (int i = 0; i < ia->datasize; ++i)
8237 ia->data[i] = i * 1.234;
8238
8239 // Check named initializers.
8240 struct named_init ni = {
8241 .number = 34,
8242 .name = L"Test wide string",
8243 .average = 543.34343,
8244 };
8245
8246 ni.number = 58;
8247
8248 int dynamic_array[ni.number];
8249 dynamic_array[ni.number - 1] = 543;
8250
8251 // work around unused variable warnings
8252 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8253 || dynamic_array[ni.number - 1] != 543);
8254
8255 ;
8256 return 0;
8257}
8258_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008259for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008260do
8261 CC="$ac_save_CC $ac_arg"
8262 if ac_fn_c_try_compile "$LINENO"; then :
8263 ac_cv_prog_cc_c99=$ac_arg
8264fi
8265rm -f core conftest.err conftest.$ac_objext
8266 test "x$ac_cv_prog_cc_c99" != "xno" && break
8267done
8268rm -f conftest.$ac_ext
8269CC=$ac_save_CC
8270
8271fi
8272# AC_CACHE_VAL
8273case "x$ac_cv_prog_cc_c99" in
8274 x)
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8276$as_echo "none needed" >&6; } ;;
8277 xno)
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8279$as_echo "unsupported" >&6; } ;;
8280 *)
8281 CC="$CC $ac_cv_prog_cc_c99"
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8283$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8284esac
8285if test "x$ac_cv_prog_cc_c99" != xno; then :
8286
8287fi
8288
8289
cristy73bd4a52010-10-05 11:24:23 +00008290
cristy17491be2014-06-24 01:10:53 +00008291ac_ext=c
8292ac_cpp='$CPP $CPPFLAGS'
8293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8295ac_compiler_gnu=$ac_cv_c_compiler_gnu
8296
cristy73bd4a52010-10-05 11:24:23 +00008297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8298$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008299if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008300 $as_echo_n "(cached) " >&6
8301else
8302 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008303ac_save_CFLAGS="$CFLAGS"
8304for ac_arg in "-warn all % -warn all" "-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" #
cristy73bd4a52010-10-05 11:24:23 +00008305do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307/* end confdefs.h. */
8308
8309int
8310main ()
8311{
cristy24fc1fe2010-10-23 21:13:01 +00008312
cristy73bd4a52010-10-05 11:24:23 +00008313 ;
8314 return 0;
8315}
8316_ACEOF
8317if ac_fn_c_try_compile "$LINENO"; then :
8318 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8319fi
8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321done
cristy17491be2014-06-24 01:10:53 +00008322CFLAGS="$ac_save_CFLAGS"
8323
8324fi
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8326$as_echo "$ac_cv_cflags_warn_all" >&6; }
8327
8328
8329case ".$ac_cv_cflags_warn_all" in
8330 .ok|.ok,*) ;;
8331 .|.no|.no,*) ;;
8332 *) if ${CFLAGS+:} false; then :
8333 case " $CFLAGS " in
8334 *" $ac_cv_cflags_warn_all "*)
8335 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8336 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8337 ac_status=$?
8338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8339 test $ac_status = 0; }
8340 ;;
8341 *)
8342 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8343 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8344 ac_status=$?
8345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8346 test $ac_status = 0; }
8347 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8348 ;;
8349 esac
8350else
8351 CFLAGS="$ac_cv_cflags_warn_all"
8352fi
8353 ;;
8354esac
8355
8356ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008357ac_cpp='$CPP $CPPFLAGS'
8358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8360ac_compiler_gnu=$ac_cv_c_compiler_gnu
8361
8362
cristya0b81c32010-01-22 02:54:33 +00008363
8364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8365$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8366set x ${MAKE-make}
8367ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008368if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008369 $as_echo_n "(cached) " >&6
8370else
8371 cat >conftest.make <<\_ACEOF
8372SHELL = /bin/sh
8373all:
8374 @echo '@@@%%%=$(MAKE)=@@@%%%'
8375_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008376# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008377case `${MAKE-make} -f conftest.make 2>/dev/null` in
8378 *@@@%%%=?*=@@@%%%*)
8379 eval ac_cv_prog_make_${ac_make}_set=yes;;
8380 *)
8381 eval ac_cv_prog_make_${ac_make}_set=no;;
8382esac
8383rm -f conftest.make
8384fi
8385if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8387$as_echo "yes" >&6; }
8388 SET_MAKE=
8389else
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391$as_echo "no" >&6; }
8392 SET_MAKE="MAKE=${MAKE-make}"
8393fi
8394
cristy8b350f62009-11-15 23:12:43 +00008395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008396$as_echo_n "checking whether ln -s works... " >&6; }
8397LN_S=$as_ln_s
8398if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008400$as_echo "yes" >&6; }
8401else
cristy8b350f62009-11-15 23:12:43 +00008402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008403$as_echo "no, using $LN_S" >&6; }
8404fi
8405
cristy8d0ff762013-03-10 20:33:28 +00008406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8407$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8408if ${ac_cv_path_SED+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410else
8411 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8412 for ac_i in 1 2 3 4 5 6 7; do
8413 ac_script="$ac_script$as_nl$ac_script"
8414 done
8415 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8416 { ac_script=; unset ac_script;}
8417 if test -z "$SED"; then
8418 ac_path_SED_found=false
8419 # Loop through the user's path and test for each of PROGNAME-LIST
8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421for as_dir in $PATH
8422do
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
8425 for ac_prog in sed gsed; do
8426 for ac_exec_ext in '' $ac_executable_extensions; do
8427 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8428 as_fn_executable_p "$ac_path_SED" || continue
8429# Check for GNU ac_path_SED and select it if it is found.
8430 # Check for GNU $ac_path_SED
8431case `"$ac_path_SED" --version 2>&1` in
8432*GNU*)
8433 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8434*)
8435 ac_count=0
8436 $as_echo_n 0123456789 >"conftest.in"
8437 while :
8438 do
8439 cat "conftest.in" "conftest.in" >"conftest.tmp"
8440 mv "conftest.tmp" "conftest.in"
8441 cp "conftest.in" "conftest.nl"
8442 $as_echo '' >> "conftest.nl"
8443 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8445 as_fn_arith $ac_count + 1 && ac_count=$as_val
8446 if test $ac_count -gt ${ac_path_SED_max-0}; then
8447 # Best one so far, save it but keep looking for a better one
8448 ac_cv_path_SED="$ac_path_SED"
8449 ac_path_SED_max=$ac_count
8450 fi
8451 # 10*(2^10) chars as input seems more than enough
8452 test $ac_count -gt 10 && break
8453 done
8454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8455esac
8456
8457 $ac_path_SED_found && break 3
8458 done
8459 done
8460 done
8461IFS=$as_save_IFS
8462 if test -z "$ac_cv_path_SED"; then
8463 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8464 fi
8465else
8466 ac_cv_path_SED=$SED
8467fi
8468
8469fi
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8471$as_echo "$ac_cv_path_SED" >&6; }
8472 SED="$ac_cv_path_SED"
8473 rm -f conftest.sed
8474
cristybc556452012-08-17 19:44:03 +00008475for ac_prog in gawk mawk nawk awk
8476do
8477 # Extract the first word of "$ac_prog", so it can be a program name with args.
8478set dummy $ac_prog; ac_word=$2
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480$as_echo_n "checking for $ac_word... " >&6; }
8481if ${ac_cv_prog_AWK+:} false; then :
8482 $as_echo_n "(cached) " >&6
8483else
8484 if test -n "$AWK"; then
8485 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8486else
8487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488for as_dir in $PATH
8489do
8490 IFS=$as_save_IFS
8491 test -z "$as_dir" && as_dir=.
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8494 ac_cv_prog_AWK="$ac_prog"
8495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 break 2
8497 fi
8498done
8499 done
8500IFS=$as_save_IFS
8501
8502fi
8503fi
8504AWK=$ac_cv_prog_AWK
8505if test -n "$AWK"; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8507$as_echo "$AWK" >&6; }
8508else
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510$as_echo "no" >&6; }
8511fi
8512
8513
8514 test -n "$AWK" && break
8515done
8516
cristy73bd4a52010-10-05 11:24:23 +00008517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8518$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8519
8520# Check whether --with-dmalloc was given.
8521if test "${with_dmalloc+set}" = set; then :
8522 withval=$with_dmalloc; if test "$withval" = yes; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8524$as_echo "yes" >&6; }
8525
8526$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8527
8528 LIBS="$LIBS -ldmalloc"
8529 LDFLAGS="$LDFLAGS -g"
8530else
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532$as_echo "no" >&6; }
8533fi
8534else
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536$as_echo "no" >&6; }
8537fi
8538
8539
8540
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8542$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008543if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008544 $as_echo_n "(cached) " >&6
8545else
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547/* end confdefs.h. */
8548#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008549 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008550 static void
8551 foo(void) {
8552 exit(1);
8553 }
8554
8555int
8556main ()
8557{
8558
8559 ;
8560 return 0;
8561}
8562_ACEOF
8563if ac_fn_c_try_compile "$LINENO"; then :
8564 ax_cv___attribute__=yes
8565else
8566 ax_cv___attribute__=no
8567
8568fi
8569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8570
8571fi
8572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8573$as_echo "$ax_cv___attribute__" >&6; }
8574 if test "$ax_cv___attribute__" = "yes"; then
8575
8576$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8577
8578 fi
8579
8580
8581
cristya0459972013-11-03 18:09:35 +00008582
8583
cristy17491be2014-06-24 01:10:53 +00008584
cristya0459972013-11-03 18:09:35 +00008585# Check whether --with-gcc-arch was given.
8586if test "${with_gcc_arch+set}" = set; then :
8587 withval=$with_gcc_arch; ax_gcc_arch=$withval
8588else
cristy17491be2014-06-24 01:10:53 +00008589 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008590fi
8591
8592
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8594$as_echo_n "checking for gcc architecture flag... " >&6; }
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8596$as_echo "" >&6; }
8597if ${ax_cv_gcc_archflag+:} false; then :
8598 $as_echo_n "(cached) " >&6
8599else
8600
8601ax_cv_gcc_archflag="unknown"
8602
8603if test "$GCC" = yes; then
8604
8605if test "x$ax_gcc_arch" = xyes; then
8606ax_gcc_arch=""
8607if test "$cross_compiling" = no; then
8608case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008609 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008610
8611ac_ext=c
8612ac_cpp='$CPP $CPPFLAGS'
8613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8615ac_compiler_gnu=$ac_cv_c_compiler_gnu
8616
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8618$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8619if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8620 $as_echo_n "(cached) " >&6
8621else
8622 if test "$cross_compiling" = yes; then :
8623 ax_cv_gcc_x86_cpuid_0=unknown
8624else
8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626/* end confdefs.h. */
8627#include <stdio.h>
8628int
8629main ()
8630{
8631
8632 int op = 0, eax, ebx, ecx, edx;
8633 FILE *f;
8634 __asm__("cpuid"
8635 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8636 : "a" (op));
8637 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8638 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8639 fclose(f);
8640 return 0;
8641
8642 ;
8643 return 0;
8644}
8645_ACEOF
8646if ac_fn_c_try_run "$LINENO"; then :
8647 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8648else
8649 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8650fi
8651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8652 conftest.$ac_objext conftest.beam conftest.$ac_ext
8653fi
8654
8655fi
8656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8657$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8658ac_ext=c
8659ac_cpp='$CPP $CPPFLAGS'
8660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8662ac_compiler_gnu=$ac_cv_c_compiler_gnu
8663
8664
8665
8666ac_ext=c
8667ac_cpp='$CPP $CPPFLAGS'
8668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8670ac_compiler_gnu=$ac_cv_c_compiler_gnu
8671
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8673$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8674if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676else
8677 if test "$cross_compiling" = yes; then :
8678 ax_cv_gcc_x86_cpuid_1=unknown
8679else
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681/* end confdefs.h. */
8682#include <stdio.h>
8683int
8684main ()
8685{
8686
8687 int op = 1, eax, ebx, ecx, edx;
8688 FILE *f;
8689 __asm__("cpuid"
8690 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8691 : "a" (op));
8692 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8693 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8694 fclose(f);
8695 return 0;
8696
8697 ;
8698 return 0;
8699}
8700_ACEOF
8701if ac_fn_c_try_run "$LINENO"; then :
8702 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8703else
8704 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8705fi
8706rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8707 conftest.$ac_objext conftest.beam conftest.$ac_ext
8708fi
8709
8710fi
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8712$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8713ac_ext=c
8714ac_cpp='$CPP $CPPFLAGS'
8715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8717ac_compiler_gnu=$ac_cv_c_compiler_gnu
8718
8719
8720 case $ax_cv_gcc_x86_cpuid_0 in
8721 *:756e6547:*:*) # Intel
8722 case $ax_cv_gcc_x86_cpuid_1 in
8723 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8724 *5??:*:*:*) ax_gcc_arch=pentium ;;
cristya0459972013-11-03 18:09:35 +00008725 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8726 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8727 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8728 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008729 *[1-9a-f]?6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8730 *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8731 *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8732 *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8733 *6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8734 *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8735 *6f?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8736 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8737 *f3[347]:*:*:*|*f41347:*:*:*|*f6?:*:*:*)
cristya0459972013-11-03 18:09:35 +00008738 case $host_cpu in
8739 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8740 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8741 esac ;;
cristy17491be2014-06-24 01:10:53 +00008742 *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
cristya0459972013-11-03 18:09:35 +00008743 esac ;;
8744 *:68747541:*:*) # AMD
8745 case $ax_cv_gcc_x86_cpuid_1 in
8746 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8747 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8748 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8749 *60?:*:*:*) ax_gcc_arch=k7 ;;
8750 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8751 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8752 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8753 *6[68a]?:*:*:*)
8754
8755ac_ext=c
8756ac_cpp='$CPP $CPPFLAGS'
8757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8759ac_compiler_gnu=$ac_cv_c_compiler_gnu
8760
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8762$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8763if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8764 $as_echo_n "(cached) " >&6
8765else
8766 if test "$cross_compiling" = yes; then :
8767 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8768else
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770/* end confdefs.h. */
8771#include <stdio.h>
8772int
8773main ()
8774{
8775
8776 int op = 0x80000006, eax, ebx, ecx, edx;
8777 FILE *f;
8778 __asm__("cpuid"
8779 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8780 : "a" (op));
8781 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8782 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8783 fclose(f);
8784 return 0;
8785
8786 ;
8787 return 0;
8788}
8789_ACEOF
8790if ac_fn_c_try_run "$LINENO"; then :
8791 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8792else
8793 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8794fi
8795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8796 conftest.$ac_objext conftest.beam conftest.$ac_ext
8797fi
8798
8799fi
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8801$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8802ac_ext=c
8803ac_cpp='$CPP $CPPFLAGS'
8804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8806ac_compiler_gnu=$ac_cv_c_compiler_gnu
8807
8808 # L2 cache size
8809 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8810 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8811 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8812 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8813 esac ;;
cristy17491be2014-06-24 01:10:53 +00008814 *5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8815 *6??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8816 *[1-9a-f]??f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8817 *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8818 *f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8819 *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8820 *f??:*:*:*) ax_gcc_arch="k8" ;;
cristya0459972013-11-03 18:09:35 +00008821 esac ;;
8822 *:746e6543:*:*) # IDT
8823 case $ax_cv_gcc_x86_cpuid_1 in
8824 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8825 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8826 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8827 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8828 esac ;;
8829 esac
8830 if test x"$ax_gcc_arch" = x; then # fallback
8831 case $host_cpu in
8832 i586*) ax_gcc_arch=pentium ;;
8833 i686*) ax_gcc_arch=pentiumpro ;;
8834 esac
8835 fi
8836 ;;
8837
8838 sparc*)
8839 # Extract the first word of "prtdiag", so it can be a program name with args.
8840set dummy prtdiag; ac_word=$2
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8842$as_echo_n "checking for $ac_word... " >&6; }
8843if ${ac_cv_path_PRTDIAG+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845else
8846 case $PRTDIAG in
8847 [\\/]* | ?:[\\/]*)
8848 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8849 ;;
8850 *)
8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8853for as_dir in $as_dummy
8854do
8855 IFS=$as_save_IFS
8856 test -z "$as_dir" && as_dir=.
8857 for ac_exec_ext in '' $ac_executable_extensions; do
8858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8859 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8861 break 2
8862 fi
8863done
8864 done
8865IFS=$as_save_IFS
8866
8867 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8868 ;;
8869esac
8870fi
8871PRTDIAG=$ac_cv_path_PRTDIAG
8872if test -n "$PRTDIAG"; then
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8874$as_echo "$PRTDIAG" >&6; }
8875else
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8877$as_echo "no" >&6; }
8878fi
8879
8880
8881 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
cristy17491be2014-06-24 01:10:53 +00008882 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008883 case $cputype in
8884 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8885 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8886 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8887 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8888 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8889 *cypress*) ax_gcc_arch=cypress ;;
8890 esac ;;
8891
8892 alphaev5) ax_gcc_arch=ev5 ;;
8893 alphaev56) ax_gcc_arch=ev56 ;;
8894 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8895 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8896 alphaev6) ax_gcc_arch=ev6 ;;
8897 alphaev67) ax_gcc_arch=ev67 ;;
8898 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8899 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8900 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8901 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8902
8903 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008904 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | $SED 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
8905 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008906 case $cputype in
8907 *750*) ax_gcc_arch="750 G3" ;;
8908 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8909 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8910 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8911 *970*) ax_gcc_arch="970 G5 power4";;
8912 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8913 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8914 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8915 *) ax_gcc_arch=$cputype ;;
8916 esac
8917 ax_gcc_arch="$ax_gcc_arch powerpc"
8918 ;;
8919esac
8920fi # not cross-compiling
8921fi # guess arch
8922
8923if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8924for arch in $ax_gcc_arch; do
8925 if test "xno" = xyes; then # if we require portable code
8926 flags="-mtune=$arch"
8927 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8928 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8929 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8930 else
8931 flags="-march=$arch -mcpu=$arch -m$arch"
8932 fi
8933 for flag in $flags; do
8934 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8936$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8937if eval \${$as_CACHEVAR+:} false; then :
8938 $as_echo_n "(cached) " >&6
8939else
8940
8941 ax_check_save_flags=$CFLAGS
8942 CFLAGS="$CFLAGS $flag"
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944/* end confdefs.h. */
8945
8946int
8947main ()
8948{
8949
8950 ;
8951 return 0;
8952}
8953_ACEOF
8954if ac_fn_c_try_compile "$LINENO"; then :
8955 eval "$as_CACHEVAR=yes"
8956else
8957 eval "$as_CACHEVAR=no"
8958fi
8959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960 CFLAGS=$ax_check_save_flags
8961fi
8962eval ac_res=\$$as_CACHEVAR
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8964$as_echo "$ac_res" >&6; }
8965if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8966 ax_cv_gcc_archflag=$flag; break
8967else
8968 :
8969fi
8970
8971 done
8972 test "x$ax_cv_gcc_archflag" = xunknown || break
8973done
8974fi
8975
8976fi # $GCC=yes
8977
8978fi
8979
8980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8981$as_echo_n "checking for gcc architecture flag... " >&6; }
8982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8983$as_echo "$ax_cv_gcc_archflag" >&6; }
8984if test "x$ax_cv_gcc_archflag" = xunknown; then
8985 :
8986else
8987 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8988fi
8989
8990
8991
cristy73bd4a52010-10-05 11:24:23 +00008992if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8993 if test -n "$ac_tool_prefix"; then
8994 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8995set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008998if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008999 $as_echo_n "(cached) " >&6
9000else
9001 case $PKG_CONFIG in
9002 [\\/]* | ?:[\\/]*)
9003 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9004 ;;
9005 *)
9006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007for as_dir in $PATH
9008do
9009 IFS=$as_save_IFS
9010 test -z "$as_dir" && as_dir=.
9011 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009013 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9015 break 2
9016 fi
9017done
9018 done
9019IFS=$as_save_IFS
9020
9021 ;;
9022esac
9023fi
9024PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9025if test -n "$PKG_CONFIG"; then
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9027$as_echo "$PKG_CONFIG" >&6; }
9028else
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030$as_echo "no" >&6; }
9031fi
9032
9033
9034fi
9035if test -z "$ac_cv_path_PKG_CONFIG"; then
9036 ac_pt_PKG_CONFIG=$PKG_CONFIG
9037 # Extract the first word of "pkg-config", so it can be a program name with args.
9038set dummy pkg-config; ac_word=$2
9039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9040$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009041if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009042 $as_echo_n "(cached) " >&6
9043else
9044 case $ac_pt_PKG_CONFIG in
9045 [\\/]* | ?:[\\/]*)
9046 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9047 ;;
9048 *)
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050for as_dir in $PATH
9051do
9052 IFS=$as_save_IFS
9053 test -z "$as_dir" && as_dir=.
9054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009056 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9058 break 2
9059 fi
9060done
9061 done
9062IFS=$as_save_IFS
9063
9064 ;;
9065esac
9066fi
9067ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9068if test -n "$ac_pt_PKG_CONFIG"; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9070$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9071else
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073$as_echo "no" >&6; }
9074fi
9075
9076 if test "x$ac_pt_PKG_CONFIG" = x; then
9077 PKG_CONFIG=""
9078 else
9079 case $cross_compiling:$ac_tool_warned in
9080yes:)
9081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9083ac_tool_warned=yes ;;
9084esac
9085 PKG_CONFIG=$ac_pt_PKG_CONFIG
9086 fi
9087else
9088 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9089fi
9090
9091fi
9092if test -n "$PKG_CONFIG"; then
9093 _pkg_min_version=0.9.0
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9095$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9096 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9098$as_echo "yes" >&6; }
9099 else
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101$as_echo "no" >&6; }
9102 PKG_CONFIG=""
9103 fi
9104
9105fi
cristy3ed852e2009-09-05 21:47:34 +00009106
cristy9af1cbf2014-12-28 22:03:09 +00009107
9108
cristyd95b7a52013-10-23 13:12:53 +00009109# Test for 64-bit build.
9110# The cast to long int works around a bug in the HP C Compiler
9111# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9112# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9113# This bug is HP SR number 8606223364.
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9115$as_echo_n "checking size of size_t... " >&6; }
9116if ${ac_cv_sizeof_size_t+:} false; then :
9117 $as_echo_n "(cached) " >&6
9118else
9119 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
9120
9121else
9122 if test "$ac_cv_type_size_t" = yes; then
9123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9125as_fn_error 77 "cannot compute sizeof (size_t)
9126See \`config.log' for more details" "$LINENO" 5; }
9127 else
9128 ac_cv_sizeof_size_t=0
9129 fi
9130fi
9131
9132fi
9133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9134$as_echo "$ac_cv_sizeof_size_t" >&6; }
9135
9136
9137
9138cat >>confdefs.h <<_ACEOF
9139#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9140_ACEOF
9141
9142
9143
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9145$as_echo_n "checking for C compiler vendor... " >&6; }
9146if ${ax_cv_c_compiler_vendor+:} false; then :
9147 $as_echo_n "(cached) " >&6
9148else
9149 # note: don't check for gcc first since some other compilers define __GNUC__
9150 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
9151 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
9152 pathscale: __PATHCC__,__PATHSCALE__
9153 clang: __clang__
cristy17491be2014-06-24 01:10:53 +00009154 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00009155 gnu: __GNUC__
9156 sun: __SUNPRO_C,__SUNPRO_CC
9157 hp: __HP_cc,__HP_aCC
9158 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
9159 borland: __BORLANDC__,__TURBOC__
9160 comeau: __COMO__
9161 cray: _CRAYC
9162 kai: __KCC
9163 lcc: __LCC__
9164 sgi: __sgi,sgi
9165 microsoft: _MSC_VER
9166 metrowerks: __MWERKS__
9167 watcom: __WATCOMC__
9168 portland: __PGI
9169 unknown: UNKNOWN"
9170 for ventest in $vendors; do
9171 case $ventest in
9172 *:) vendor=$ventest; continue ;;
9173 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
9174 esac
9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176/* end confdefs.h. */
9177
9178int
9179main ()
9180{
9181
9182 #if !($vencpp)
9183 thisisanerror;
9184 #endif
9185
9186 ;
9187 return 0;
9188}
9189_ACEOF
9190if ac_fn_c_try_compile "$LINENO"; then :
9191 break
9192fi
9193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 done
9195 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9196
9197fi
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9199$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9200
cristyd95b7a52013-10-23 13:12:53 +00009201# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
9202# compiler.
9203if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00009204 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009205ac_cpp='$CPP $CPPFLAGS'
9206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9208ac_compiler_gnu=$ac_cv_c_compiler_gnu
9209
cristy17491be2014-06-24 01:10:53 +00009210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
9211$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
9212if ${ac_cv_cflags_warn_all+:} false; then :
9213 $as_echo_n "(cached) " >&6
9214else
9215 ac_cv_cflags_warn_all="no, unknown"
9216ac_save_CFLAGS="$CFLAGS"
9217for ac_arg in "-warn all % -warn all" "-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" #
cristyd95b7a52013-10-23 13:12:53 +00009218do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220/* end confdefs.h. */
9221
9222int
9223main ()
9224{
9225
9226 ;
9227 return 0;
9228}
9229_ACEOF
9230if ac_fn_c_try_compile "$LINENO"; then :
9231 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9232fi
9233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9234done
cristy17491be2014-06-24 01:10:53 +00009235CFLAGS="$ac_save_CFLAGS"
9236
9237fi
9238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
9239$as_echo "$ac_cv_cflags_warn_all" >&6; }
9240
9241
9242case ".$ac_cv_cflags_warn_all" in
9243 .ok|.ok,*) ;;
9244 .|.no|.no,*) ;;
9245 *) if ${CFLAGS+:} false; then :
9246 case " $CFLAGS " in
9247 *" $ac_cv_cflags_warn_all "*)
9248 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
9249 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
9250 ac_status=$?
9251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9252 test $ac_status = 0; }
9253 ;;
9254 *)
9255 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
9256 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
9257 ac_status=$?
9258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9259 test $ac_status = 0; }
9260 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
9261 ;;
9262 esac
9263else
9264 CFLAGS="$ac_cv_cflags_warn_all"
9265fi
9266 ;;
9267esac
9268
9269ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009270ac_cpp='$CPP $CPPFLAGS'
9271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9273ac_compiler_gnu=$ac_cv_c_compiler_gnu
9274
9275
9276fi
cristyd95b7a52013-10-23 13:12:53 +00009277
9278if test "x$GCC" = "xyes"; then
9279 CFLAGS="$CFLAGS -fexceptions"
9280 touch local.exp
9281else
9282 cat > local.exp <<EOF
9283set CC_FOR_TARGET "$CC"
9284EOF
9285fi
9286
cristy9b86f202012-11-28 21:55:35 +00009287# Check for linker script support
9288
9289 # Check whether --enable-ld-version-script was given.
9290if test "${enable_ld_version_script+set}" = set; then :
9291 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9292fi
9293
9294 if test -z "$have_ld_version_script"; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9296$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9297 save_LDFLAGS="$LDFLAGS"
9298 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9299 cat > conftest.map <<EOF
9300foo
9301EOF
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303/* end confdefs.h. */
9304
9305int
9306main ()
9307{
9308
9309 ;
9310 return 0;
9311}
9312_ACEOF
9313if ac_fn_c_try_link "$LINENO"; then :
9314 accepts_syntax_errors=yes
9315else
9316 accepts_syntax_errors=no
9317fi
9318rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9320 if test "$accepts_syntax_errors" = no; then
9321 cat > conftest.map <<EOF
9322VERS_1 {
9323 global: sym;
9324};
9325
9326VERS_2 {
9327 global: sym;
9328} VERS_1;
9329EOF
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331/* end confdefs.h. */
9332
9333int
9334main ()
9335{
9336
9337 ;
9338 return 0;
9339}
9340_ACEOF
9341if ac_fn_c_try_link "$LINENO"; then :
9342 have_ld_version_script=yes
9343else
9344 have_ld_version_script=no
9345fi
9346rm -f core conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 else
9349 have_ld_version_script=no
9350 fi
9351 rm -f conftest.map
9352 LDFLAGS="$save_LDFLAGS"
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9354$as_echo "$have_ld_version_script" >&6; }
9355 fi
9356 if test "$have_ld_version_script" = "yes"; then
9357 HAVE_LD_VERSION_SCRIPT_TRUE=
9358 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9359else
9360 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9361 HAVE_LD_VERSION_SCRIPT_FALSE=
9362fi
9363
9364
9365
cristy3ed852e2009-09-05 21:47:34 +00009366#
cristy3ed852e2009-09-05 21:47:34 +00009367# Enable run-time checking.
9368#
9369# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009370if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009371 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9372else
9373 enable_bounds_checking='no'
9374fi
9375
9376
9377if test "$enable_bounds_checking" = yes; then
9378
cristy8b350f62009-11-15 23:12:43 +00009379$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009380
9381fi
9382
9383#
9384# Tests for Windows
9385#
9386
9387
9388
9389GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009390native_win32_build='no'
9391cygwin_build='no'
9392case "${host_os}" in
9393 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009394 cygwin_build='yes'
9395 GDI32_LIBS='-lgdi32'
9396 ;;
9397 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009398 native_win32_build='yes'
9399 GDI32_LIBS='-lgdi32'
9400 ;;
9401esac
9402if test "${GDI32_LIBS}x" != 'x'; then
9403
cristy8b350f62009-11-15 23:12:43 +00009404$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009405
9406fi
9407
cristy73bd4a52010-10-05 11:24:23 +00009408 if test "${GDI32_LIBS}x" != 'x' ; then
9409 WINGDI32_DELEGATE_TRUE=
9410 WINGDI32_DELEGATE_FALSE='#'
9411else
9412 WINGDI32_DELEGATE_TRUE='#'
9413 WINGDI32_DELEGATE_FALSE=
9414fi
9415
9416 if test "${native_win32_build}" = 'yes' ; then
9417 WIN32_NATIVE_BUILD_TRUE=
9418 WIN32_NATIVE_BUILD_FALSE='#'
9419else
9420 WIN32_NATIVE_BUILD_TRUE='#'
9421 WIN32_NATIVE_BUILD_FALSE=
9422fi
9423
9424 if test "${cygwin_build}" = 'yes' ; then
9425 CYGWIN_BUILD_TRUE=
9426 CYGWIN_BUILD_FALSE='#'
9427else
9428 CYGWIN_BUILD_TRUE='#'
9429 CYGWIN_BUILD_FALSE=
9430fi
9431
9432 if test "x${CC}" = 'xcl.exe' ; then
9433 USING_CL_TRUE=
9434 USING_CL_FALSE='#'
9435else
9436 USING_CL_TRUE='#'
9437 USING_CL_FALSE=
9438fi
9439
cristy3ed852e2009-09-05 21:47:34 +00009440
9441WinPathScript="${srcdirfull}/winpath.sh"
9442
9443
9444#
9445# Compiler flags tweaks
9446#
9447if test "${GCC}" != "yes"; then
9448 case "${host}" in
9449 *-*-hpux* )
9450 # aCC: HP ANSI C++ B3910B A.03.34
9451 CFLAGS="${CFLAGS} -Wp,-H30000"
9452 if test -n "${CXXFLAGS}"; then
9453 CXXFLAGS='-AA'
9454 else
9455 CXXFLAGS="${CXXFLAGS} -AA"
9456 fi
9457 ;;
9458 *-dec-osf5.* )
9459 # Compaq alphaev68-dec-osf5.1 compiler
9460 if test -n "${CXXFLAGS}"; then
9461 CXXFLAGS='-std strict_ansi -noimplicit_include'
9462 else
9463 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9464 fi
9465 esac
9466fi
9467
9468# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009470$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009471if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009472 $as_echo_n "(cached) " >&6
9473else
9474
9475im_cv_ld_lazyload='none'
9476case "${host}" in
9477 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9478 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9479 im_cv_ld_lazyload='-Wl,-zlazyload'
9480 fi
9481 ;;
9482esac
9483
9484fi
cristy8b350f62009-11-15 23:12:43 +00009485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009486$as_echo "$im_cv_ld_lazyload" >&6; }
9487if test "${im_cv_ld_lazyload}" != 'none' ; then
9488 if test -z "${LDFLAGS}" ; then
9489 LDFLAGS="${im_cv_ld_lazyload}"
9490 else
9491 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9492 fi
9493fi
9494
9495case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009496 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009497 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009498 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009499if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009500 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9501else
9502 build_osxuniversal=no
9503fi
9504
9505
cristyc37574e2013-02-16 01:04:55 +00009506 if test "${build_osxuniversal}" != no ; then
9507 if test "$enable_dependency_tracking" != no ; then
9508 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009509Please re-run configure with these options:
9510 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009511 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009512 fi
9513 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9514 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9515 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009516 fi
9517 ;;
9518esac
9519
cristy0151ae12011-10-28 16:32:29 +00009520#
9521# ARCH specific include directory
9522#
9523
cristy670aa3c2011-11-03 00:54:00 +00009524# Check whether --with-includearch-dir was given.
9525if test "${with_includearch_dir+set}" = set; then :
9526 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009527else
cristy670aa3c2011-11-03 00:54:00 +00009528 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009529fi
9530
9531
cristyd286fd72013-02-24 19:25:33 +00009532eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009533
cristy0151ae12011-10-28 16:32:29 +00009534
9535#
9536# ARCH specific configuration directory
9537#
9538
cristy670aa3c2011-11-03 00:54:00 +00009539# Check whether --with-sharearch-dir was given.
9540if test "${with_sharearch_dir+set}" = set; then :
9541 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009542else
cristy408ebcd2011-11-14 01:36:57 +00009543 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009544fi
9545
9546
cristy670aa3c2011-11-03 00:54:00 +00009547eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009548
cristy0151ae12011-10-28 16:32:29 +00009549
cristy2ec87cc2013-02-18 17:46:50 +00009550# Path to the pkgconfig folder
9551
9552# Check whether --with-pkgconfigdir was given.
9553if test "${with_pkgconfigdir+set}" = set; then :
9554 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9555else
9556 pkgconfigdir='${libdir}/pkgconfig'
9557fi
9558
9559
9560
cristy0151ae12011-10-28 16:32:29 +00009561#
cristy3ed852e2009-09-05 21:47:34 +00009562# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009563#
9564# Find Posix threads library
9565#
cristy3ed852e2009-09-05 21:47:34 +00009566
9567# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009568if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009569 withval=$with_threads; with_threads=$withval
9570else
9571 with_threads='yes'
9572fi
9573
9574
cristy1ae5c992013-07-30 14:55:07 +00009575THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009576have_threads=no
9577if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009578
9579
cristy73bd4a52010-10-05 11:24:23 +00009580ac_ext=c
9581ac_cpp='$CPP $CPPFLAGS'
9582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9584ac_compiler_gnu=$ac_cv_c_compiler_gnu
9585
9586ax_pthread_ok=no
9587
9588# We used to check for pthread.h first, but this fails if pthread.h
9589# requires special compiler flags (e.g. on True64 or Sequent).
9590# It gets checked for in the link test anyway.
9591
9592# First of all, check if the user has set any of the PTHREAD_LIBS,
9593# etcetera environment variables, and if threads linking works using
9594# them:
9595if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9596 save_CFLAGS="$CFLAGS"
9597 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9598 save_LIBS="$LIBS"
9599 LIBS="$PTHREAD_LIBS $LIBS"
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9601$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603/* end confdefs.h. */
9604
9605/* Override any GCC internal prototype to avoid an error.
9606 Use char because int might match the return type of a GCC
9607 builtin and then its argument prototype would still apply. */
9608#ifdef __cplusplus
9609extern "C"
9610#endif
9611char pthread_join ();
9612int
9613main ()
9614{
9615return pthread_join ();
9616 ;
9617 return 0;
9618}
9619_ACEOF
9620if ac_fn_c_try_link "$LINENO"; then :
9621 ax_pthread_ok=yes
9622fi
9623rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9626$as_echo "$ax_pthread_ok" >&6; }
9627 if test x"$ax_pthread_ok" = xno; then
9628 PTHREAD_LIBS=""
9629 PTHREAD_CFLAGS=""
9630 fi
9631 LIBS="$save_LIBS"
9632 CFLAGS="$save_CFLAGS"
9633fi
9634
9635# We must check for the threads library under a number of different
9636# names; the ordering is very important because some systems
9637# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9638# libraries is broken (non-POSIX).
9639
9640# Create a list of thread flags to try. Items starting with a "-" are
9641# C compiler flags, and other items are library names, except for "none"
9642# which indicates that we try without any flags at all, and "pthread-config"
9643# which is a program returning the flags for the Pth emulation library.
9644
cristy2ec87cc2013-02-18 17:46:50 +00009645ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009646
9647# The ordering *is* (sometimes) important. Some notes on the
9648# individual items follow:
9649
9650# pthreads: AIX (must check this before -lpthread)
9651# none: in case threads are in libc; should be tried before -Kthread and
9652# other compiler flags to prevent continual compiler warnings
9653# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9654# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9655# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9656# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9657# -pthreads: Solaris/gcc
9658# -mthreads: Mingw32/gcc, Lynx/gcc
9659# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9660# doesn't hurt to check since this sometimes defines pthreads too;
9661# also defines -D_REENTRANT)
9662# ... -mt is also the pthreads flag for HP/aCC
9663# pthread: Linux, etcetera
9664# --thread-safe: KAI C++
9665# pthread-config: use pthread-config program (for GNU Pth library)
9666
cristy2ec87cc2013-02-18 17:46:50 +00009667case ${host_os} in
9668 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009669
9670 # On Solaris (at least, for some versions), libc contains stubbed
9671 # (non-functional) versions of the pthreads routines, so link-based
9672 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9673 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9674 # a function called by this macro, so we could check for that, but
9675 # who knows whether they'll stub that too in a future libc.) So,
9676 # we'll just look for -pthreads and -lpthread first:
9677
9678 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9679 ;;
9680
cristy2ec87cc2013-02-18 17:46:50 +00009681 darwin*)
cristya316db12011-10-24 00:49:45 +00009682 ax_pthread_flags="-pthread $ax_pthread_flags"
9683 ;;
cristy73bd4a52010-10-05 11:24:23 +00009684esac
9685
cristy17491be2014-06-24 01:10:53 +00009686# Clang doesn't consider unrecognized options an error unless we specify
9687# -Werror. We throw in some extra Clang-specific options to ensure that
9688# this doesn't happen for GCC, which also accepts -Werror.
9689
9690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9691$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9692save_CFLAGS="$CFLAGS"
9693ax_pthread_extra_flags="-Werror"
9694CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696/* end confdefs.h. */
9697int foo(void);
9698int
9699main ()
9700{
9701foo()
9702 ;
9703 return 0;
9704}
9705_ACEOF
9706if ac_fn_c_try_compile "$LINENO"; then :
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9708$as_echo "yes" >&6; }
9709else
9710 ax_pthread_extra_flags=
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9712$as_echo "no" >&6; }
9713fi
9714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715CFLAGS="$save_CFLAGS"
9716
cristy73bd4a52010-10-05 11:24:23 +00009717if test x"$ax_pthread_ok" = xno; then
9718for flag in $ax_pthread_flags; do
9719
9720 case $flag in
9721 none)
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9723$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9724 ;;
9725
9726 -*)
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9728$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9729 PTHREAD_CFLAGS="$flag"
9730 ;;
9731
cristya316db12011-10-24 00:49:45 +00009732 pthread-config)
9733 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009734set dummy pthread-config; ac_word=$2
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009737if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009738 $as_echo_n "(cached) " >&6
9739else
9740 if test -n "$ax_pthread_config"; then
9741 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9742else
9743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744for as_dir in $PATH
9745do
9746 IFS=$as_save_IFS
9747 test -z "$as_dir" && as_dir=.
9748 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009750 ac_cv_prog_ax_pthread_config="yes"
9751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9752 break 2
9753 fi
9754done
9755 done
9756IFS=$as_save_IFS
9757
9758 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9759fi
9760fi
9761ax_pthread_config=$ac_cv_prog_ax_pthread_config
9762if test -n "$ax_pthread_config"; then
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9764$as_echo "$ax_pthread_config" >&6; }
9765else
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767$as_echo "no" >&6; }
9768fi
9769
9770
cristya316db12011-10-24 00:49:45 +00009771 if test x"$ax_pthread_config" = xno; then continue; fi
9772 PTHREAD_CFLAGS="`pthread-config --cflags`"
9773 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9774 ;;
cristy73bd4a52010-10-05 11:24:23 +00009775
9776 *)
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9778$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9779 PTHREAD_LIBS="-l$flag"
9780 ;;
9781 esac
9782
9783 save_LIBS="$LIBS"
9784 save_CFLAGS="$CFLAGS"
9785 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009786 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009787
9788 # Check for various functions. We must include pthread.h,
9789 # since some functions may be macros. (On the Sequent, we
9790 # need a special flag -Kthread to make this header compile.)
9791 # We check for pthread_join because it is in -lpthread on IRIX
9792 # while pthread_create is in libc. We check for pthread_attr_init
9793 # due to DEC craziness with -lpthreads. We check for
9794 # pthread_cleanup_push because it is one of the few pthread
9795 # functions on Solaris that doesn't have a non-functional libc stub.
9796 # We try pthread_create on general principles.
9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798/* end confdefs.h. */
9799#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009800 static void routine(void *a) { a = 0; }
9801 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009802int
9803main ()
9804{
9805pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009806 pthread_create(&th, 0, start_routine, 0);
9807 pthread_join(th, 0);
9808 pthread_attr_init(&attr);
9809 pthread_cleanup_push(routine, 0);
9810 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009811 ;
9812 return 0;
9813}
9814_ACEOF
9815if ac_fn_c_try_link "$LINENO"; then :
9816 ax_pthread_ok=yes
9817fi
9818rm -f core conftest.err conftest.$ac_objext \
9819 conftest$ac_exeext conftest.$ac_ext
9820
9821 LIBS="$save_LIBS"
9822 CFLAGS="$save_CFLAGS"
9823
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9825$as_echo "$ax_pthread_ok" >&6; }
9826 if test "x$ax_pthread_ok" = xyes; then
9827 break;
9828 fi
9829
9830 PTHREAD_LIBS=""
9831 PTHREAD_CFLAGS=""
9832done
9833fi
9834
9835# Various other checks:
9836if test "x$ax_pthread_ok" = xyes; then
9837 save_LIBS="$LIBS"
9838 LIBS="$PTHREAD_LIBS $LIBS"
9839 save_CFLAGS="$CFLAGS"
9840 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9841
9842 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009844$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009845 attr_name=unknown
9846 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009848/* end confdefs.h. */
9849#include <pthread.h>
9850int
9851main ()
9852{
cristya316db12011-10-24 00:49:45 +00009853int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009854 ;
9855 return 0;
9856}
9857_ACEOF
9858if ac_fn_c_try_link "$LINENO"; then :
9859 attr_name=$attr; break
9860fi
9861rm -f core conftest.err conftest.$ac_objext \
9862 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009863 done
cristy73bd4a52010-10-05 11:24:23 +00009864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9865$as_echo "$attr_name" >&6; }
9866 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9867
9868cat >>confdefs.h <<_ACEOF
9869#define PTHREAD_CREATE_JOINABLE $attr_name
9870_ACEOF
9871
9872 fi
9873
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9875$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9876 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009877 case ${host_os} in
9878 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9879 osf* | hpux*) flag="-D_REENTRANT";;
9880 solaris*)
9881 if test "$GCC" = "yes"; then
9882 flag="-D_REENTRANT"
9883 else
cristy17491be2014-06-24 01:10:53 +00009884 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009885 flag="-mt -D_REENTRANT"
9886 fi
9887 ;;
cristy73bd4a52010-10-05 11:24:23 +00009888 esac
cristy17491be2014-06-24 01:10:53 +00009889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9890$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009891 if test "x$flag" != xno; then
9892 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9893 fi
9894
cristya316db12011-10-24 00:49:45 +00009895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9896$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9897if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9898 $as_echo_n "(cached) " >&6
9899else
9900
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +00009903#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009904int
9905main ()
9906{
9907int i = PTHREAD_PRIO_INHERIT;
9908 ;
9909 return 0;
9910}
9911_ACEOF
9912if ac_fn_c_try_link "$LINENO"; then :
9913 ax_cv_PTHREAD_PRIO_INHERIT=yes
9914else
9915 ax_cv_PTHREAD_PRIO_INHERIT=no
9916fi
9917rm -f core conftest.err conftest.$ac_objext \
9918 conftest$ac_exeext conftest.$ac_ext
9919
9920fi
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9922$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9923 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9924
9925$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9926
9927fi
9928
cristy73bd4a52010-10-05 11:24:23 +00009929 LIBS="$save_LIBS"
9930 CFLAGS="$save_CFLAGS"
9931
cristy23493c42013-04-11 16:04:59 +00009932 # More AIX lossage: compile with *_r variant
9933 if test "x$GCC" != xyes; then
9934 case $host_os in
9935 aix*)
9936 case "x/$CC" in #(
9937 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9938 #handle absolute path differently from PATH based program lookup
9939 case "x$CC" in #(
9940 x/*) :
9941 if as_fn_executable_p ${CC}_r; then :
9942 PTHREAD_CC="${CC}_r"
9943fi ;; #(
9944 *) :
9945 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009946do
9947 # Extract the first word of "$ac_prog", so it can be a program name with args.
9948set dummy $ac_prog; ac_word=$2
9949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009951if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009952 $as_echo_n "(cached) " >&6
9953else
9954 if test -n "$PTHREAD_CC"; then
9955 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9956else
9957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958for as_dir in $PATH
9959do
9960 IFS=$as_save_IFS
9961 test -z "$as_dir" && as_dir=.
9962 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009964 ac_cv_prog_PTHREAD_CC="$ac_prog"
9965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9966 break 2
9967 fi
9968done
9969 done
9970IFS=$as_save_IFS
9971
9972fi
9973fi
9974PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9975if test -n "$PTHREAD_CC"; then
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9977$as_echo "$PTHREAD_CC" >&6; }
9978else
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980$as_echo "no" >&6; }
9981fi
9982
9983
9984 test -n "$PTHREAD_CC" && break
9985done
cristy23493c42013-04-11 16:04:59 +00009986test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9987 ;;
9988esac ;; #(
9989 *) :
9990 ;;
9991esac
9992 ;;
9993 esac
cristya316db12011-10-24 00:49:45 +00009994 fi
cristy73bd4a52010-10-05 11:24:23 +00009995fi
9996
cristy23493c42013-04-11 16:04:59 +00009997test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9998
cristy73bd4a52010-10-05 11:24:23 +00009999
10000
10001
10002
10003# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10004if test x"$ax_pthread_ok" = xyes; then
10005
10006$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10007
10008 :
10009else
10010 ax_pthread_ok=no
10011
10012fi
10013ac_ext=c
10014ac_cpp='$CPP $CPPFLAGS'
10015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10017ac_compiler_gnu=$ac_cv_c_compiler_gnu
10018
10019
cristy7acf8fb2010-09-23 19:58:53 +000010020 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000010021 have_threads=yes
10022 DEF_THREAD="$PTHREAD_CFLAGS"
10023 CFLAGS="$CFLAGS $DEF_THREAD"
10024 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +000010025 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000010026 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +000010027 { $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 +000010028$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
10029 CC="$PTHREAD_CC"
10030 fi
cristy55bf91c2010-09-24 00:29:41 +000010031
10032$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
10033
cristy3ed852e2009-09-05 21:47:34 +000010034 fi
10035fi
cristy1ae5c992013-07-30 14:55:07 +000010036LIBS="$LIBS $THREAD_LIBS"
10037
cristy3ed852e2009-09-05 21:47:34 +000010038
10039# Enable support for OpenMP
10040if test "$have_threads" != 'yes'; then
10041 ac_cv_prog_c_openmp=unsupported
10042fi
10043
10044 OPENMP_CFLAGS=
10045 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000010046if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010047 enableval=$enable_openmp;
10048fi
10049
10050 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +000010051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010052$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010053if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010054 $as_echo_n "(cached) " >&6
10055else
cristy8b350f62009-11-15 23:12:43 +000010056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010058
10059#ifndef _OPENMP
10060 choke me
10061#endif
10062#include <omp.h>
10063int main () { return omp_get_num_threads (); }
10064
10065_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010066if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010067 ac_cv_prog_c_openmp='none needed'
10068else
cristy8b350f62009-11-15 23:12:43 +000010069 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000010070 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
10071 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000010072 ac_save_CFLAGS=$CFLAGS
10073 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000010074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010076
10077#ifndef _OPENMP
10078 choke me
10079#endif
10080#include <omp.h>
10081int main () { return omp_get_num_threads (); }
10082
10083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010084if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010085 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000010086fi
cristy8b350f62009-11-15 23:12:43 +000010087rm -f core conftest.err conftest.$ac_objext \
10088 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010089 CFLAGS=$ac_save_CFLAGS
10090 if test "$ac_cv_prog_c_openmp" != unsupported; then
10091 break
10092 fi
10093 done
10094fi
cristy8b350f62009-11-15 23:12:43 +000010095rm -f core conftest.err conftest.$ac_objext \
10096 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010097fi
cristy8b350f62009-11-15 23:12:43 +000010098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010099$as_echo "$ac_cv_prog_c_openmp" >&6; }
10100 case $ac_cv_prog_c_openmp in #(
10101 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000010102 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000010103 *)
cristy8b350f62009-11-15 23:12:43 +000010104 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000010105 esac
10106 fi
10107
10108
10109CFLAGS="$OPENMP_CFLAGS $CFLAGS"
10110MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
10111
cristy391f1ce2010-09-09 17:23:28 +000010112if test "$enable_openmp" != no; then
10113 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
10114 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
10115 fi
10116fi
cristy3ed852e2009-09-05 21:47:34 +000010117
cristy736173a2009-09-20 21:18:22 +000010118# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +000010119
10120
cristy73bd4a52010-10-05 11:24:23 +000010121ac_ext=c
10122ac_cpp='$CPP $CPPFLAGS'
10123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10125ac_compiler_gnu=$ac_cv_c_compiler_gnu
10126
10127ax_pthread_ok=no
10128
10129# We used to check for pthread.h first, but this fails if pthread.h
10130# requires special compiler flags (e.g. on True64 or Sequent).
10131# It gets checked for in the link test anyway.
10132
10133# First of all, check if the user has set any of the PTHREAD_LIBS,
10134# etcetera environment variables, and if threads linking works using
10135# them:
10136if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
10137 save_CFLAGS="$CFLAGS"
10138 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10139 save_LIBS="$LIBS"
10140 LIBS="$PTHREAD_LIBS $LIBS"
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
10142$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144/* end confdefs.h. */
10145
10146/* Override any GCC internal prototype to avoid an error.
10147 Use char because int might match the return type of a GCC
10148 builtin and then its argument prototype would still apply. */
10149#ifdef __cplusplus
10150extern "C"
10151#endif
10152char pthread_join ();
10153int
10154main ()
10155{
10156return pthread_join ();
10157 ;
10158 return 0;
10159}
10160_ACEOF
10161if ac_fn_c_try_link "$LINENO"; then :
10162 ax_pthread_ok=yes
10163fi
10164rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10167$as_echo "$ax_pthread_ok" >&6; }
10168 if test x"$ax_pthread_ok" = xno; then
10169 PTHREAD_LIBS=""
10170 PTHREAD_CFLAGS=""
10171 fi
10172 LIBS="$save_LIBS"
10173 CFLAGS="$save_CFLAGS"
10174fi
10175
10176# We must check for the threads library under a number of different
10177# names; the ordering is very important because some systems
10178# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10179# libraries is broken (non-POSIX).
10180
10181# Create a list of thread flags to try. Items starting with a "-" are
10182# C compiler flags, and other items are library names, except for "none"
10183# which indicates that we try without any flags at all, and "pthread-config"
10184# which is a program returning the flags for the Pth emulation library.
10185
cristy2ec87cc2013-02-18 17:46:50 +000010186ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000010187
10188# The ordering *is* (sometimes) important. Some notes on the
10189# individual items follow:
10190
10191# pthreads: AIX (must check this before -lpthread)
10192# none: in case threads are in libc; should be tried before -Kthread and
10193# other compiler flags to prevent continual compiler warnings
10194# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10195# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10196# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10197# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10198# -pthreads: Solaris/gcc
10199# -mthreads: Mingw32/gcc, Lynx/gcc
10200# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10201# doesn't hurt to check since this sometimes defines pthreads too;
10202# also defines -D_REENTRANT)
10203# ... -mt is also the pthreads flag for HP/aCC
10204# pthread: Linux, etcetera
10205# --thread-safe: KAI C++
10206# pthread-config: use pthread-config program (for GNU Pth library)
10207
cristy2ec87cc2013-02-18 17:46:50 +000010208case ${host_os} in
10209 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000010210
10211 # On Solaris (at least, for some versions), libc contains stubbed
10212 # (non-functional) versions of the pthreads routines, so link-based
10213 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
10214 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10215 # a function called by this macro, so we could check for that, but
10216 # who knows whether they'll stub that too in a future libc.) So,
10217 # we'll just look for -pthreads and -lpthread first:
10218
10219 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
10220 ;;
10221
cristy2ec87cc2013-02-18 17:46:50 +000010222 darwin*)
cristya316db12011-10-24 00:49:45 +000010223 ax_pthread_flags="-pthread $ax_pthread_flags"
10224 ;;
cristy73bd4a52010-10-05 11:24:23 +000010225esac
10226
cristy17491be2014-06-24 01:10:53 +000010227# Clang doesn't consider unrecognized options an error unless we specify
10228# -Werror. We throw in some extra Clang-specific options to ensure that
10229# this doesn't happen for GCC, which also accepts -Werror.
10230
10231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
10232$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
10233save_CFLAGS="$CFLAGS"
10234ax_pthread_extra_flags="-Werror"
10235CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
10236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237/* end confdefs.h. */
10238int foo(void);
10239int
10240main ()
10241{
10242foo()
10243 ;
10244 return 0;
10245}
10246_ACEOF
10247if ac_fn_c_try_compile "$LINENO"; then :
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10249$as_echo "yes" >&6; }
10250else
10251 ax_pthread_extra_flags=
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253$as_echo "no" >&6; }
10254fi
10255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10256CFLAGS="$save_CFLAGS"
10257
cristy73bd4a52010-10-05 11:24:23 +000010258if test x"$ax_pthread_ok" = xno; then
10259for flag in $ax_pthread_flags; do
10260
10261 case $flag in
10262 none)
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10264$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10265 ;;
10266
10267 -*)
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10269$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10270 PTHREAD_CFLAGS="$flag"
10271 ;;
10272
cristya316db12011-10-24 00:49:45 +000010273 pthread-config)
10274 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010275set dummy pthread-config; ac_word=$2
10276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10277$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010278if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010279 $as_echo_n "(cached) " >&6
10280else
10281 if test -n "$ax_pthread_config"; then
10282 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10283else
10284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10285for as_dir in $PATH
10286do
10287 IFS=$as_save_IFS
10288 test -z "$as_dir" && as_dir=.
10289 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010291 ac_cv_prog_ax_pthread_config="yes"
10292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10293 break 2
10294 fi
10295done
10296 done
10297IFS=$as_save_IFS
10298
10299 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10300fi
10301fi
10302ax_pthread_config=$ac_cv_prog_ax_pthread_config
10303if test -n "$ax_pthread_config"; then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10305$as_echo "$ax_pthread_config" >&6; }
10306else
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10308$as_echo "no" >&6; }
10309fi
10310
10311
cristya316db12011-10-24 00:49:45 +000010312 if test x"$ax_pthread_config" = xno; then continue; fi
10313 PTHREAD_CFLAGS="`pthread-config --cflags`"
10314 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10315 ;;
cristy73bd4a52010-10-05 11:24:23 +000010316
10317 *)
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10319$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10320 PTHREAD_LIBS="-l$flag"
10321 ;;
10322 esac
10323
10324 save_LIBS="$LIBS"
10325 save_CFLAGS="$CFLAGS"
10326 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010327 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010328
10329 # Check for various functions. We must include pthread.h,
10330 # since some functions may be macros. (On the Sequent, we
10331 # need a special flag -Kthread to make this header compile.)
10332 # We check for pthread_join because it is in -lpthread on IRIX
10333 # while pthread_create is in libc. We check for pthread_attr_init
10334 # due to DEC craziness with -lpthreads. We check for
10335 # pthread_cleanup_push because it is one of the few pthread
10336 # functions on Solaris that doesn't have a non-functional libc stub.
10337 # We try pthread_create on general principles.
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339/* end confdefs.h. */
10340#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010341 static void routine(void *a) { a = 0; }
10342 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010343int
10344main ()
10345{
10346pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010347 pthread_create(&th, 0, start_routine, 0);
10348 pthread_join(th, 0);
10349 pthread_attr_init(&attr);
10350 pthread_cleanup_push(routine, 0);
10351 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010352 ;
10353 return 0;
10354}
10355_ACEOF
10356if ac_fn_c_try_link "$LINENO"; then :
10357 ax_pthread_ok=yes
10358fi
10359rm -f core conftest.err conftest.$ac_objext \
10360 conftest$ac_exeext conftest.$ac_ext
10361
10362 LIBS="$save_LIBS"
10363 CFLAGS="$save_CFLAGS"
10364
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10366$as_echo "$ax_pthread_ok" >&6; }
10367 if test "x$ax_pthread_ok" = xyes; then
10368 break;
10369 fi
10370
10371 PTHREAD_LIBS=""
10372 PTHREAD_CFLAGS=""
10373done
10374fi
10375
10376# Various other checks:
10377if test "x$ax_pthread_ok" = xyes; then
10378 save_LIBS="$LIBS"
10379 LIBS="$PTHREAD_LIBS $LIBS"
10380 save_CFLAGS="$CFLAGS"
10381 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10382
10383 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010385$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010386 attr_name=unknown
10387 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010389/* end confdefs.h. */
10390#include <pthread.h>
10391int
10392main ()
10393{
cristya316db12011-10-24 00:49:45 +000010394int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010395 ;
10396 return 0;
10397}
10398_ACEOF
10399if ac_fn_c_try_link "$LINENO"; then :
10400 attr_name=$attr; break
10401fi
10402rm -f core conftest.err conftest.$ac_objext \
10403 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010404 done
cristy73bd4a52010-10-05 11:24:23 +000010405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10406$as_echo "$attr_name" >&6; }
10407 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10408
10409cat >>confdefs.h <<_ACEOF
10410#define PTHREAD_CREATE_JOINABLE $attr_name
10411_ACEOF
10412
10413 fi
10414
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10416$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10417 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010418 case ${host_os} in
10419 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10420 osf* | hpux*) flag="-D_REENTRANT";;
10421 solaris*)
10422 if test "$GCC" = "yes"; then
10423 flag="-D_REENTRANT"
10424 else
cristy17491be2014-06-24 01:10:53 +000010425 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010426 flag="-mt -D_REENTRANT"
10427 fi
10428 ;;
cristy73bd4a52010-10-05 11:24:23 +000010429 esac
cristy17491be2014-06-24 01:10:53 +000010430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10431$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010432 if test "x$flag" != xno; then
10433 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10434 fi
10435
cristya316db12011-10-24 00:49:45 +000010436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10437$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10438if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10439 $as_echo_n "(cached) " >&6
10440else
10441
10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010444#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010445int
10446main ()
10447{
10448int i = PTHREAD_PRIO_INHERIT;
10449 ;
10450 return 0;
10451}
10452_ACEOF
10453if ac_fn_c_try_link "$LINENO"; then :
10454 ax_cv_PTHREAD_PRIO_INHERIT=yes
10455else
10456 ax_cv_PTHREAD_PRIO_INHERIT=no
10457fi
10458rm -f core conftest.err conftest.$ac_objext \
10459 conftest$ac_exeext conftest.$ac_ext
10460
10461fi
10462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10463$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10464 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10465
10466$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10467
10468fi
10469
cristy73bd4a52010-10-05 11:24:23 +000010470 LIBS="$save_LIBS"
10471 CFLAGS="$save_CFLAGS"
10472
cristy23493c42013-04-11 16:04:59 +000010473 # More AIX lossage: compile with *_r variant
10474 if test "x$GCC" != xyes; then
10475 case $host_os in
10476 aix*)
10477 case "x/$CC" in #(
10478 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10479 #handle absolute path differently from PATH based program lookup
10480 case "x$CC" in #(
10481 x/*) :
10482 if as_fn_executable_p ${CC}_r; then :
10483 PTHREAD_CC="${CC}_r"
10484fi ;; #(
10485 *) :
10486 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010487do
10488 # Extract the first word of "$ac_prog", so it can be a program name with args.
10489set dummy $ac_prog; ac_word=$2
10490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10491$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010492if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010493 $as_echo_n "(cached) " >&6
10494else
10495 if test -n "$PTHREAD_CC"; then
10496 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10497else
10498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10499for as_dir in $PATH
10500do
10501 IFS=$as_save_IFS
10502 test -z "$as_dir" && as_dir=.
10503 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010505 ac_cv_prog_PTHREAD_CC="$ac_prog"
10506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10507 break 2
10508 fi
10509done
10510 done
10511IFS=$as_save_IFS
10512
10513fi
10514fi
10515PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10516if test -n "$PTHREAD_CC"; then
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10518$as_echo "$PTHREAD_CC" >&6; }
10519else
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10521$as_echo "no" >&6; }
10522fi
10523
10524
10525 test -n "$PTHREAD_CC" && break
10526done
cristy23493c42013-04-11 16:04:59 +000010527test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10528 ;;
10529esac ;; #(
10530 *) :
10531 ;;
10532esac
10533 ;;
10534 esac
cristya316db12011-10-24 00:49:45 +000010535 fi
cristy73bd4a52010-10-05 11:24:23 +000010536fi
10537
cristy23493c42013-04-11 16:04:59 +000010538test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10539
cristy73bd4a52010-10-05 11:24:23 +000010540
10541
10542
10543
10544# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10545if test x"$ax_pthread_ok" = xyes; then
10546
10547$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10548
10549 :
10550else
10551 ax_pthread_ok=no
10552
10553fi
10554ac_ext=c
10555ac_cpp='$CPP $CPPFLAGS'
10556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10558ac_compiler_gnu=$ac_cv_c_compiler_gnu
10559
10560
10561
10562# Check whether --enable-opencl was given.
10563if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010564 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010565else
cristy48794642012-09-02 15:19:08 +000010566 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010567fi
10568
10569
cristy48794642012-09-02 15:19:08 +000010570if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010571 ac_ext=c
10572ac_cpp='$CPP $CPPFLAGS'
10573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10575ac_compiler_gnu=$ac_cv_c_compiler_gnu
10576
cristy75314cc2012-09-15 23:08:29 +000010577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10578$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10579if ${ax_cv_c_compiler_ms+:} false; then :
10580 $as_echo_n "(cached) " >&6
10581else
10582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10583/* end confdefs.h. */
10584
10585int
10586main ()
10587{
10588#ifndef _MSC_VER
10589 choke me
10590#endif
10591
10592 ;
10593 return 0;
10594}
10595_ACEOF
10596if ac_fn_c_try_compile "$LINENO"; then :
10597 ax_compiler_ms=yes
10598else
10599 ax_compiler_ms=no
10600fi
10601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602ax_cv_c_compiler_ms=$ax_compiler_ms
10603
10604fi
10605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10606$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010607 if test X$ax_compiler_ms = Xno; then :
10608 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10609fi
10610
10611 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010612 ax_save_CL_CFLAGS=$CL_CFLAGS
10613
10614 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010615 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10616 for ac_header in CL/cl.h OpenCL/cl.h
10617do :
10618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10619ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010620if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010621 cat >>confdefs.h <<_ACEOF
10622#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10623_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010624 found_opencl_header='yes'
10625 break;
10626else
10627 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010628fi
10629
10630done
10631
cristyfdc7d122013-08-17 20:46:45 +000010632
10633 if test X$found_opencl_header = Xno; then :
10634 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10635 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10636 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10637 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10638 for ac_header in CL/cl.h OpenCL/cl.h
10639do :
10640 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10641ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10642if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10643 cat >>confdefs.h <<_ACEOF
10644#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10645_ACEOF
10646 found_opencl_header='yes'
10647 break;
10648else
10649 found_opencl_header='no'
10650fi
10651
10652done
10653
10654
10655fi
10656
10657 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010658
10659 for ac_header in windows.h
10660do :
10661 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010662if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010663 cat >>confdefs.h <<_ACEOF
10664#define HAVE_WINDOWS_H 1
10665_ACEOF
10666
10667fi
10668
10669done
10670
10671
10672
10673
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10675$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010676if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010677 $as_echo_n "(cached) " >&6
10678else
10679 ax_cv_check_cl_libcl=no
10680 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010681 x86_64) ax_check_cl_libdir=lib64
10682 ax_check_cl_amd_libdir=x86_64
10683 ;;
10684 *) ax_check_cl_libdir=lib
10685 ax_check_cl_amd_libdir=x86
10686 ;;
cristy73bd4a52010-10-05 11:24:23 +000010687 esac
10688 ax_save_CPPFLAGS=$CPPFLAGS
10689 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10690 ax_save_LIBS=$LIBS
10691 LIBS=""
10692 ax_check_libs="-lOpenCL -lCL -lclparser"
10693 for ax_lib in $ax_check_libs; do
10694 if test X$ax_compiler_ms = Xyes; then :
10695 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10696else
10697 ax_try_lib=$ax_lib
10698fi
10699 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701/* end confdefs.h. */
10702
10703 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10704 # include <windows.h>
10705 # endif
10706 # ifdef HAVE_CL_CL_H
10707 # include <CL/cl.h>
10708 # elif defined(HAVE_OPENCL_CL_H)
10709 # include <OpenCL/cl.h>
10710 # else
10711 # error no CL.h
10712 # endif
10713int
10714main ()
10715{
10716clCreateContextFromType(0,0,0,0,0)
10717 ;
10718 return 0;
10719}
10720_ACEOF
10721if ac_fn_c_try_link "$LINENO"; then :
10722 ax_cv_check_cl_libcl=$ax_try_lib; break
10723else
10724 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"
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726/* end confdefs.h. */
10727
10728 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10729 # include <windows.h>
10730 # endif
10731 # ifdef HAVE_CL_CL_H
10732 # include <CL/cl.h>
10733 # elif defined(HAVE_OPENCL_CL_H)
10734 # include <OpenCL/cl.h>
10735 # else
10736 # error no CL.h
10737 # endif
10738int
10739main ()
10740{
10741clCreateContextFromType(0,0,0,0,0)
10742 ;
10743 return 0;
10744}
10745_ACEOF
10746if ac_fn_c_try_link "$LINENO"; then :
10747 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10748else
cristy78c5a0c2010-12-04 20:00:59 +000010749 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 +000010750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751/* end confdefs.h. */
10752
10753 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10754 # include <windows.h>
10755 # endif
10756 # ifdef HAVE_CL_CL_H
10757 # include <CL/cl.h>
10758 # elif defined(HAVE_OPENCL_CL_H)
10759 # include <OpenCL/cl.h>
10760 # else
10761 # error no CL.h
10762 # endif
10763int
10764main ()
10765{
10766clCreateContextFromType(0,0,0,0,0)
10767 ;
10768 return 0;
10769}
10770_ACEOF
10771if ac_fn_c_try_link "$LINENO"; then :
10772 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010773else
10774 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"
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776/* end confdefs.h. */
10777
10778 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10779 # include <windows.h>
10780 # endif
10781 # ifdef HAVE_CL_CL_H
10782 # include <CL/cl.h>
10783 # elif defined(HAVE_OPENCL_CL_H)
10784 # include <OpenCL/cl.h>
10785 # else
10786 # error no CL.h
10787 # endif
10788int
10789main ()
10790{
10791clCreateContextFromType(0,0,0,0,0)
10792 ;
10793 return 0;
10794}
10795_ACEOF
10796if ac_fn_c_try_link "$LINENO"; then :
10797 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10798
10799fi
10800rm -f core conftest.err conftest.$ac_objext \
10801 conftest$ac_exeext conftest.$ac_ext
10802
10803
cristy73bd4a52010-10-05 11:24:23 +000010804fi
10805rm -f core conftest.err conftest.$ac_objext \
10806 conftest$ac_exeext conftest.$ac_ext
10807fi
10808rm -f core conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
10810fi
10811rm -f core conftest.err conftest.$ac_objext \
10812 conftest$ac_exeext conftest.$ac_ext
10813 done
10814
cristyc3f8b8e2011-12-22 14:55:16 +000010815 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010816 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818/* end confdefs.h. */
10819
10820 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10821 # include <windows.h>
10822 # endif
10823 # ifdef HAVE_CL_CL_H
10824 # include <CL/cl.h>
10825 # elif defined(HAVE_OPENCL_CL_H)
10826 # include <OpenCL/cl.h>
10827 # else
10828 # error no CL.h
10829 # endif
10830int
10831main ()
10832{
10833clCreateContextFromType(0,0,0,0,0)
10834 ;
10835 return 0;
10836}
10837_ACEOF
10838if ac_fn_c_try_link "$LINENO"; then :
10839 ax_cv_check_cl_libcl=$LIBS
10840fi
10841rm -f core conftest.err conftest.$ac_objext \
10842 conftest$ac_exeext conftest.$ac_ext
10843fi
10844
10845 LIBS=$ax_save_LIBS
10846 CPPFLAGS=$ax_save_CPPFLAGS
10847fi
10848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10849$as_echo "$ax_cv_check_cl_libcl" >&6; }
10850
10851 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10852 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10853else
10854 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10855$as_echo "#define _OPENCL 1" >>confdefs.h
10856
10857fi
10858 ac_ext=c
10859ac_cpp='$CPP $CPPFLAGS'
10860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10862ac_compiler_gnu=$ac_cv_c_compiler_gnu
10863
10864fi
10865
10866
10867
cristy0c832c62014-03-07 22:21:04 +000010868#remove static link on Linux
10869CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10870
cristy73bd4a52010-10-05 11:24:23 +000010871
cristyc7083c12009-10-14 03:16:55 +000010872CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010873CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010874LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010875
cristy391f1ce2010-09-09 17:23:28 +000010876if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010877 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010878 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10879 fi
cristyfd9dcd42010-08-08 18:07:02 +000010880fi
cristy2e8b51d2009-10-17 18:26:15 +000010881
cristy3ed852e2009-09-05 21:47:34 +000010882########
10883#
10884# Check for large file support
10885#
10886########
10887# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010888if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010889 enableval=$enable_largefile;
10890fi
10891
10892if test "$enable_largefile" != no; then
10893
cristy8b350f62009-11-15 23:12:43 +000010894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010895$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010896if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010897 $as_echo_n "(cached) " >&6
10898else
10899 ac_cv_sys_largefile_CC=no
10900 if test "$GCC" != yes; then
10901 ac_save_CC=$CC
10902 while :; do
10903 # IRIX 6.2 and later do not support large files by default,
10904 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010906/* end confdefs.h. */
10907#include <sys/types.h>
10908 /* Check that off_t can represent 2**63 - 1 correctly.
10909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10910 since some C++ compilers masquerading as C compilers
10911 incorrectly reject 9223372036854775807. */
10912#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10914 && LARGE_OFF_T % 2147483647 == 1)
10915 ? 1 : -1];
10916int
10917main ()
10918{
10919
10920 ;
10921 return 0;
10922}
10923_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010924 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010925 break
cristy3ed852e2009-09-05 21:47:34 +000010926fi
cristy3ed852e2009-09-05 21:47:34 +000010927rm -f core conftest.err conftest.$ac_objext
10928 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010929 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010930 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010931fi
cristy3ed852e2009-09-05 21:47:34 +000010932rm -f core conftest.err conftest.$ac_objext
10933 break
10934 done
10935 CC=$ac_save_CC
10936 rm -f conftest.$ac_ext
10937 fi
10938fi
cristy8b350f62009-11-15 23:12:43 +000010939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010940$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10941 if test "$ac_cv_sys_largefile_CC" != no; then
10942 CC=$CC$ac_cv_sys_largefile_CC
10943 fi
10944
cristy8b350f62009-11-15 23:12:43 +000010945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010946$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010947if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010948 $as_echo_n "(cached) " >&6
10949else
10950 while :; do
cristy8b350f62009-11-15 23:12:43 +000010951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010952/* end confdefs.h. */
10953#include <sys/types.h>
10954 /* Check that off_t can represent 2**63 - 1 correctly.
10955 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10956 since some C++ compilers masquerading as C compilers
10957 incorrectly reject 9223372036854775807. */
10958#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10959 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10960 && LARGE_OFF_T % 2147483647 == 1)
10961 ? 1 : -1];
10962int
10963main ()
10964{
10965
10966 ;
10967 return 0;
10968}
10969_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010970if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010971 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010972fi
cristy3ed852e2009-09-05 21:47:34 +000010973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010975/* end confdefs.h. */
10976#define _FILE_OFFSET_BITS 64
10977#include <sys/types.h>
10978 /* Check that off_t can represent 2**63 - 1 correctly.
10979 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10980 since some C++ compilers masquerading as C compilers
10981 incorrectly reject 9223372036854775807. */
10982#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10983 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10984 && LARGE_OFF_T % 2147483647 == 1)
10985 ? 1 : -1];
10986int
10987main ()
10988{
10989
10990 ;
10991 return 0;
10992}
10993_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010994if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010995 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010996fi
cristy3ed852e2009-09-05 21:47:34 +000010997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10998 ac_cv_sys_file_offset_bits=unknown
10999 break
11000done
11001fi
cristy8b350f62009-11-15 23:12:43 +000011002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000011003$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11004case $ac_cv_sys_file_offset_bits in #(
11005 no | unknown) ;;
11006 *)
11007cat >>confdefs.h <<_ACEOF
11008#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11009_ACEOF
11010;;
11011esac
11012rm -rf conftest*
11013 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000011014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011015$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011016if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011017 $as_echo_n "(cached) " >&6
11018else
11019 while :; do
cristy8b350f62009-11-15 23:12:43 +000011020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011021/* end confdefs.h. */
11022#include <sys/types.h>
11023 /* Check that off_t can represent 2**63 - 1 correctly.
11024 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11025 since some C++ compilers masquerading as C compilers
11026 incorrectly reject 9223372036854775807. */
11027#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11028 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11029 && LARGE_OFF_T % 2147483647 == 1)
11030 ? 1 : -1];
11031int
11032main ()
11033{
11034
11035 ;
11036 return 0;
11037}
11038_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011039if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011040 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000011041fi
cristy3ed852e2009-09-05 21:47:34 +000011042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011044/* end confdefs.h. */
11045#define _LARGE_FILES 1
11046#include <sys/types.h>
11047 /* Check that off_t can represent 2**63 - 1 correctly.
11048 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11049 since some C++ compilers masquerading as C compilers
11050 incorrectly reject 9223372036854775807. */
11051#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11052 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11053 && LARGE_OFF_T % 2147483647 == 1)
11054 ? 1 : -1];
11055int
11056main ()
11057{
11058
11059 ;
11060 return 0;
11061}
11062_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011063if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011064 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000011065fi
cristy3ed852e2009-09-05 21:47:34 +000011066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067 ac_cv_sys_large_files=unknown
11068 break
11069done
11070fi
cristy8b350f62009-11-15 23:12:43 +000011071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011072$as_echo "$ac_cv_sys_large_files" >&6; }
11073case $ac_cv_sys_large_files in #(
11074 no | unknown) ;;
11075 *)
11076cat >>confdefs.h <<_ACEOF
11077#define _LARGE_FILES $ac_cv_sys_large_files
11078_ACEOF
11079;;
11080esac
11081rm -rf conftest*
11082 fi
cristy14fefe52012-05-21 00:59:18 +000011083
11084
cristy3ed852e2009-09-05 21:47:34 +000011085fi
11086
cristy8b350f62009-11-15 23:12:43 +000011087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011088$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011089if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011090 $as_echo_n "(cached) " >&6
11091else
11092 while :; do
cristy8b350f62009-11-15 23:12:43 +000011093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011094/* end confdefs.h. */
11095#include <sys/types.h> /* for off_t */
11096 #include <stdio.h>
11097int
11098main ()
11099{
11100int (*fp) (FILE *, off_t, int) = fseeko;
11101 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11102 ;
11103 return 0;
11104}
11105_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011106if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011107 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000011108fi
cristy8b350f62009-11-15 23:12:43 +000011109rm -f core conftest.err conftest.$ac_objext \
11110 conftest$ac_exeext conftest.$ac_ext
11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011112/* end confdefs.h. */
11113#define _LARGEFILE_SOURCE 1
11114#include <sys/types.h> /* for off_t */
11115 #include <stdio.h>
11116int
11117main ()
11118{
11119int (*fp) (FILE *, off_t, int) = fseeko;
11120 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11121 ;
11122 return 0;
11123}
11124_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011125if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011126 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000011127fi
cristy8b350f62009-11-15 23:12:43 +000011128rm -f core conftest.err conftest.$ac_objext \
11129 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011130 ac_cv_sys_largefile_source=unknown
11131 break
11132done
11133fi
cristy8b350f62009-11-15 23:12:43 +000011134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000011135$as_echo "$ac_cv_sys_largefile_source" >&6; }
11136case $ac_cv_sys_largefile_source in #(
11137 no | unknown) ;;
11138 *)
11139cat >>confdefs.h <<_ACEOF
11140#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11141_ACEOF
11142;;
11143esac
11144rm -rf conftest*
11145
11146# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11147# in glibc 2.1.3, but that breaks too many other things.
11148# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11149if test $ac_cv_sys_largefile_source != unknown; then
11150
cristy8b350f62009-11-15 23:12:43 +000011151$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011152
11153fi
11154
11155LFS_CPPFLAGS=''
11156if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000011157 case $ac_cv_sys_file_offset_bits in
11158 no)
11159 # nothing to do here as the host supports LFS fine
11160 ;;
11161 unknown)
cristy8b350f62009-11-15 23:12:43 +000011162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000011163$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011164 if test "$cross_compiling" = yes; then :
11165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000011166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000011167as_fn_error $? "cannot run test program while cross compiling
11168See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000011169else
cristy8b350f62009-11-15 23:12:43 +000011170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000011172#include <unistd.h>
11173 main () {
11174 exit(!(sizeof(off_t) == 8));
11175 }
cristyda16f162011-02-19 23:52:17 +000011176int
11177main ()
11178{
11179
11180 ;
11181 return 0;
11182}
cristy3ed852e2009-09-05 21:47:34 +000011183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011184if ac_fn_c_try_run "$LINENO"; then :
11185 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011186
cristyad38abe2012-12-23 23:03:21 +000011187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11188$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011189else
cristyad38abe2012-12-23 23:03:21 +000011190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011192fi
cristy8b350f62009-11-15 23:12:43 +000011193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11194 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011195fi
11196
cristyc1e0cc12011-09-21 16:41:16 +000011197 ;;
11198 *)
11199 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11200 ;;
11201 esac
cristy3ed852e2009-09-05 21:47:34 +000011202 if test "$ac_cv_sys_large_files" != 'no'; then
11203 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
11204 fi
11205 if test "$ac_cv_sys_largefile_source" != 'no'; then
11206 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
11207 fi
11208fi
11209
11210
cristy3ed852e2009-09-05 21:47:34 +000011211# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000011212enable_dlopen=yes
11213
11214
11215
11216case `pwd` in
11217 *\ * | *\ *)
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11219$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11220esac
11221
11222
11223
cristy99bd5232011-12-07 14:38:20 +000011224macro_version='2.4.2'
11225macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000011226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239ltmain="$ac_aux_dir/ltmain.sh"
11240
cristy0c60a692010-11-04 01:09:47 +000011241# Backslashify metacharacters that are still active within
11242# double-quoted strings.
11243sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11244
11245# Same as above, but do not quote variable references.
11246double_quote_subst='s/\(["`\\]\)/\\\1/g'
11247
11248# Sed substitution to delay expansion of an escaped shell variable in a
11249# double_quote_subst'ed string.
11250delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11251
11252# Sed substitution to delay expansion of an escaped single quote.
11253delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11254
11255# Sed substitution to avoid accidental globbing in evaled expressions
11256no_glob_subst='s/\*/\\\*/g'
11257
cristy73bd4a52010-10-05 11:24:23 +000011258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11259$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011260if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011261 $as_echo_n "(cached) " >&6
11262else
11263 if test -n "$NM"; then
11264 # Let the user override the test.
11265 lt_cv_path_NM="$NM"
11266else
11267 lt_nm_to_check="${ac_tool_prefix}nm"
11268 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11269 lt_nm_to_check="$lt_nm_to_check nm"
11270 fi
11271 for lt_tmp_nm in $lt_nm_to_check; do
11272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11273 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11274 IFS="$lt_save_ifs"
11275 test -z "$ac_dir" && ac_dir=.
11276 tmp_nm="$ac_dir/$lt_tmp_nm"
11277 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11278 # Check to see if the nm accepts a BSD-compat flag.
11279 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11280 # nm: unknown option "B" ignored
11281 # Tru64's nm complains that /dev/null is an invalid object file
11282 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11283 */dev/null* | *'Invalid file or object type'*)
11284 lt_cv_path_NM="$tmp_nm -B"
11285 break
11286 ;;
11287 *)
11288 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11289 */dev/null*)
11290 lt_cv_path_NM="$tmp_nm -p"
11291 break
11292 ;;
11293 *)
11294 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11295 continue # so that we can try to find one that supports BSD flags
11296 ;;
11297 esac
11298 ;;
11299 esac
11300 fi
11301 done
11302 IFS="$lt_save_ifs"
11303 done
11304 : ${lt_cv_path_NM=no}
11305fi
11306fi
11307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11308$as_echo "$lt_cv_path_NM" >&6; }
11309if test "$lt_cv_path_NM" != "no"; then
11310 NM="$lt_cv_path_NM"
11311else
11312 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011313 if test -n "$DUMPBIN"; then :
11314 # Let the user override the test.
11315 else
11316 if test -n "$ac_tool_prefix"; then
11317 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011318 do
11319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11320set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11322$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011323if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011324 $as_echo_n "(cached) " >&6
11325else
11326 if test -n "$DUMPBIN"; then
11327 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11328else
11329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11330for as_dir in $PATH
11331do
11332 IFS=$as_save_IFS
11333 test -z "$as_dir" && as_dir=.
11334 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011336 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11338 break 2
11339 fi
11340done
11341 done
11342IFS=$as_save_IFS
11343
11344fi
11345fi
11346DUMPBIN=$ac_cv_prog_DUMPBIN
11347if test -n "$DUMPBIN"; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11349$as_echo "$DUMPBIN" >&6; }
11350else
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352$as_echo "no" >&6; }
11353fi
11354
11355
11356 test -n "$DUMPBIN" && break
11357 done
11358fi
11359if test -z "$DUMPBIN"; then
11360 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011361 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011362do
11363 # Extract the first word of "$ac_prog", so it can be a program name with args.
11364set dummy $ac_prog; ac_word=$2
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11366$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011367if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011368 $as_echo_n "(cached) " >&6
11369else
11370 if test -n "$ac_ct_DUMPBIN"; then
11371 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11372else
11373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374for as_dir in $PATH
11375do
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011380 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11382 break 2
11383 fi
11384done
11385 done
11386IFS=$as_save_IFS
11387
11388fi
11389fi
11390ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11391if test -n "$ac_ct_DUMPBIN"; then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11393$as_echo "$ac_ct_DUMPBIN" >&6; }
11394else
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396$as_echo "no" >&6; }
11397fi
11398
11399
11400 test -n "$ac_ct_DUMPBIN" && break
11401done
11402
11403 if test "x$ac_ct_DUMPBIN" = x; then
11404 DUMPBIN=":"
11405 else
11406 case $cross_compiling:$ac_tool_warned in
11407yes:)
11408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11410ac_tool_warned=yes ;;
11411esac
11412 DUMPBIN=$ac_ct_DUMPBIN
11413 fi
11414fi
11415
cristy0c60a692010-11-04 01:09:47 +000011416 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11417 *COFF*)
11418 DUMPBIN="$DUMPBIN -symbols"
11419 ;;
11420 *)
11421 DUMPBIN=:
11422 ;;
11423 esac
11424 fi
cristy73bd4a52010-10-05 11:24:23 +000011425
11426 if test "$DUMPBIN" != ":"; then
11427 NM="$DUMPBIN"
11428 fi
11429fi
11430test -z "$NM" && NM=nm
11431
11432
11433
11434
11435
11436
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11438$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011439if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011440 $as_echo_n "(cached) " >&6
11441else
11442 lt_cv_nm_interface="BSD nm"
11443 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011444 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011445 (eval "$ac_compile" 2>conftest.err)
11446 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011447 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011448 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11449 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011450 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011451 cat conftest.out >&5
11452 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11453 lt_cv_nm_interface="MS dumpbin"
11454 fi
11455 rm -f conftest*
11456fi
11457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11458$as_echo "$lt_cv_nm_interface" >&6; }
11459
11460# find the maximum length of command line arguments
11461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11462$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011463if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011464 $as_echo_n "(cached) " >&6
11465else
11466 i=0
11467 teststring="ABCD"
11468
11469 case $build_os in
11470 msdosdjgpp*)
11471 # On DJGPP, this test can blow up pretty badly due to problems in libc
11472 # (any single argument exceeding 2000 bytes causes a buffer overrun
11473 # during glob expansion). Even if it were fixed, the result of this
11474 # check would be larger than it should be.
11475 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11476 ;;
11477
11478 gnu*)
11479 # Under GNU Hurd, this test is not required because there is
11480 # no limit to the length of command line arguments.
11481 # Libtool will interpret -1 as no limit whatsoever
11482 lt_cv_sys_max_cmd_len=-1;
11483 ;;
11484
11485 cygwin* | mingw* | cegcc*)
11486 # On Win9x/ME, this test blows up -- it succeeds, but takes
11487 # about 5 minutes as the teststring grows exponentially.
11488 # Worse, since 9x/ME are not pre-emptively multitasking,
11489 # you end up with a "frozen" computer, even though with patience
11490 # the test eventually succeeds (with a max line length of 256k).
11491 # Instead, let's just punt: use the minimum linelength reported by
11492 # all of the supported platforms: 8192 (on NT/2K/XP).
11493 lt_cv_sys_max_cmd_len=8192;
11494 ;;
11495
cristy0c60a692010-11-04 01:09:47 +000011496 mint*)
11497 # On MiNT this can take a long time and run out of memory.
11498 lt_cv_sys_max_cmd_len=8192;
11499 ;;
11500
cristy73bd4a52010-10-05 11:24:23 +000011501 amigaos*)
11502 # On AmigaOS with pdksh, this test takes hours, literally.
11503 # So we just punt and use a minimum line length of 8192.
11504 lt_cv_sys_max_cmd_len=8192;
11505 ;;
11506
11507 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11508 # This has been around since 386BSD, at least. Likely further.
11509 if test -x /sbin/sysctl; then
11510 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11511 elif test -x /usr/sbin/sysctl; then
11512 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11513 else
11514 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11515 fi
11516 # And add a safety zone
11517 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11519 ;;
11520
11521 interix*)
11522 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11523 lt_cv_sys_max_cmd_len=196608
11524 ;;
11525
cristy99bd5232011-12-07 14:38:20 +000011526 os2*)
11527 # The test takes a long time on OS/2.
11528 lt_cv_sys_max_cmd_len=8192
11529 ;;
11530
cristy73bd4a52010-10-05 11:24:23 +000011531 osf*)
11532 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11533 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11534 # nice to cause kernel panics so lets avoid the loop below.
11535 # First set a reasonable default.
11536 lt_cv_sys_max_cmd_len=16384
11537 #
11538 if test -x /sbin/sysconfig; then
11539 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11540 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11541 esac
11542 fi
11543 ;;
11544 sco3.2v5*)
11545 lt_cv_sys_max_cmd_len=102400
11546 ;;
11547 sysv5* | sco5v6* | sysv4.2uw2*)
11548 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11549 if test -n "$kargmax"; then
11550 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11551 else
11552 lt_cv_sys_max_cmd_len=32768
11553 fi
11554 ;;
11555 *)
11556 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11557 if test -n "$lt_cv_sys_max_cmd_len"; then
11558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11560 else
11561 # Make teststring a little bigger before we do anything with it.
11562 # a 1K string should be a reasonable start.
11563 for i in 1 2 3 4 5 6 7 8 ; do
11564 teststring=$teststring$teststring
11565 done
11566 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11567 # If test is not a shell built-in, we'll probably end up computing a
11568 # maximum length that is only half of the actual maximum length, but
11569 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011570 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011571 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011572 test $i != 17 # 1/2 MB should be enough
11573 do
11574 i=`expr $i + 1`
11575 teststring=$teststring$teststring
11576 done
11577 # Only check the string length outside the loop.
11578 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11579 teststring=
11580 # Add a significant safety factor because C++ compilers can tack on
11581 # massive amounts of additional arguments before passing them to the
11582 # linker. It appears as though 1/2 is a usable value.
11583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11584 fi
11585 ;;
11586 esac
11587
11588fi
11589
11590if test -n $lt_cv_sys_max_cmd_len ; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11592$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11593else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11595$as_echo "none" >&6; }
11596fi
11597max_cmd_len=$lt_cv_sys_max_cmd_len
11598
11599
11600
11601
11602
11603
11604: ${CP="cp -f"}
11605: ${MV="mv -f"}
11606: ${RM="rm -f"}
11607
11608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11609$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11610# Try some XSI features
11611xsi_shell=no
11612( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011613 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11614 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011615 && eval 'test $(( 1 + 1 )) -eq 2 \
11616 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11617 && xsi_shell=yes
11618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11619$as_echo "$xsi_shell" >&6; }
11620
11621
11622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11623$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11624lt_shell_append=no
11625( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11626 >/dev/null 2>&1 \
11627 && lt_shell_append=yes
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11629$as_echo "$lt_shell_append" >&6; }
11630
11631
11632if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11633 lt_unset=unset
11634else
11635 lt_unset=false
11636fi
11637
11638
11639
11640
11641
11642# test EBCDIC or ASCII
11643case `echo X|tr X '\101'` in
11644 A) # ASCII based system
11645 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11646 lt_SP2NL='tr \040 \012'
11647 lt_NL2SP='tr \015\012 \040\040'
11648 ;;
11649 *) # EBCDIC based system
11650 lt_SP2NL='tr \100 \n'
11651 lt_NL2SP='tr \r\n \100\100'
11652 ;;
11653esac
11654
11655
11656
11657
11658
11659
11660
11661
11662
cristyda16f162011-02-19 23:52:17 +000011663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11664$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11665if ${lt_cv_to_host_file_cmd+:} false; then :
11666 $as_echo_n "(cached) " >&6
11667else
11668 case $host in
11669 *-*-mingw* )
11670 case $build in
11671 *-*-mingw* ) # actually msys
11672 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11673 ;;
11674 *-*-cygwin* )
11675 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11676 ;;
11677 * ) # otherwise, assume *nix
11678 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11679 ;;
11680 esac
11681 ;;
11682 *-*-cygwin* )
11683 case $build in
11684 *-*-mingw* ) # actually msys
11685 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11686 ;;
11687 *-*-cygwin* )
11688 lt_cv_to_host_file_cmd=func_convert_file_noop
11689 ;;
11690 * ) # otherwise, assume *nix
11691 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11692 ;;
11693 esac
11694 ;;
11695 * ) # unhandled hosts (and "normal" native builds)
11696 lt_cv_to_host_file_cmd=func_convert_file_noop
11697 ;;
11698esac
11699
11700fi
11701
11702to_host_file_cmd=$lt_cv_to_host_file_cmd
11703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11704$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11705
11706
11707
11708
11709
11710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11711$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11712if ${lt_cv_to_tool_file_cmd+:} false; then :
11713 $as_echo_n "(cached) " >&6
11714else
11715 #assume ordinary cross tools, or native build.
11716lt_cv_to_tool_file_cmd=func_convert_file_noop
11717case $host in
11718 *-*-mingw* )
11719 case $build in
11720 *-*-mingw* ) # actually msys
11721 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11722 ;;
11723 esac
11724 ;;
11725esac
11726
11727fi
11728
11729to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11731$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11732
11733
11734
11735
11736
cristy73bd4a52010-10-05 11:24:23 +000011737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11738$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011739if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011740 $as_echo_n "(cached) " >&6
11741else
11742 lt_cv_ld_reload_flag='-r'
11743fi
11744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11745$as_echo "$lt_cv_ld_reload_flag" >&6; }
11746reload_flag=$lt_cv_ld_reload_flag
11747case $reload_flag in
11748"" | " "*) ;;
11749*) reload_flag=" $reload_flag" ;;
11750esac
11751reload_cmds='$LD$reload_flag -o $output$reload_objs'
11752case $host_os in
cristyda16f162011-02-19 23:52:17 +000011753 cygwin* | mingw* | pw32* | cegcc*)
11754 if test "$GCC" != yes; then
11755 reload_cmds=false
11756 fi
11757 ;;
cristy73bd4a52010-10-05 11:24:23 +000011758 darwin*)
11759 if test "$GCC" = yes; then
11760 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11761 else
11762 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11763 fi
11764 ;;
11765esac
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775if test -n "$ac_tool_prefix"; then
11776 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11777set dummy ${ac_tool_prefix}objdump; ac_word=$2
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011780if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011781 $as_echo_n "(cached) " >&6
11782else
11783 if test -n "$OBJDUMP"; then
11784 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11785else
11786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787for as_dir in $PATH
11788do
11789 IFS=$as_save_IFS
11790 test -z "$as_dir" && as_dir=.
11791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011793 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11795 break 2
11796 fi
11797done
11798 done
11799IFS=$as_save_IFS
11800
11801fi
11802fi
11803OBJDUMP=$ac_cv_prog_OBJDUMP
11804if test -n "$OBJDUMP"; then
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11806$as_echo "$OBJDUMP" >&6; }
11807else
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809$as_echo "no" >&6; }
11810fi
11811
11812
11813fi
11814if test -z "$ac_cv_prog_OBJDUMP"; then
11815 ac_ct_OBJDUMP=$OBJDUMP
11816 # Extract the first word of "objdump", so it can be a program name with args.
11817set dummy objdump; ac_word=$2
11818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11819$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011820if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011821 $as_echo_n "(cached) " >&6
11822else
11823 if test -n "$ac_ct_OBJDUMP"; then
11824 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11825else
11826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827for as_dir in $PATH
11828do
11829 IFS=$as_save_IFS
11830 test -z "$as_dir" && as_dir=.
11831 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011833 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11835 break 2
11836 fi
11837done
11838 done
11839IFS=$as_save_IFS
11840
11841fi
11842fi
11843ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11844if test -n "$ac_ct_OBJDUMP"; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11846$as_echo "$ac_ct_OBJDUMP" >&6; }
11847else
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849$as_echo "no" >&6; }
11850fi
11851
11852 if test "x$ac_ct_OBJDUMP" = x; then
11853 OBJDUMP="false"
11854 else
11855 case $cross_compiling:$ac_tool_warned in
11856yes:)
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11859ac_tool_warned=yes ;;
11860esac
11861 OBJDUMP=$ac_ct_OBJDUMP
11862 fi
11863else
11864 OBJDUMP="$ac_cv_prog_OBJDUMP"
11865fi
11866
11867test -z "$OBJDUMP" && OBJDUMP=objdump
11868
11869
11870
11871
11872
11873
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11875$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011876if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011877 $as_echo_n "(cached) " >&6
11878else
11879 lt_cv_file_magic_cmd='$MAGIC_CMD'
11880lt_cv_file_magic_test_file=
11881lt_cv_deplibs_check_method='unknown'
11882# Need to set the preceding variable on all platforms that support
11883# interlibrary dependencies.
11884# 'none' -- dependencies not supported.
11885# `unknown' -- same as none, but documents that we really don't know.
11886# 'pass_all' -- all dependencies passed with no checks.
11887# 'test_compile' -- check by making test program.
11888# 'file_magic [[regex]]' -- check by looking for files in library path
11889# which responds to the $file_magic_cmd with a given extended regex.
11890# If you have `file' or equivalent on your system and you're not sure
11891# whether `pass_all' will *always* work, you probably want this one.
11892
11893case $host_os in
11894aix[4-9]*)
11895 lt_cv_deplibs_check_method=pass_all
11896 ;;
11897
11898beos*)
11899 lt_cv_deplibs_check_method=pass_all
11900 ;;
11901
11902bsdi[45]*)
11903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11904 lt_cv_file_magic_cmd='/usr/bin/file -L'
11905 lt_cv_file_magic_test_file=/shlib/libc.so
11906 ;;
11907
11908cygwin*)
11909 # func_win32_libid is a shell function defined in ltmain.sh
11910 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11911 lt_cv_file_magic_cmd='func_win32_libid'
11912 ;;
11913
11914mingw* | pw32*)
11915 # Base MSYS/MinGW do not provide the 'file' command needed by
11916 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11917 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011918 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11919 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011920 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11921 lt_cv_file_magic_cmd='func_win32_libid'
11922 else
cristy0c60a692010-11-04 01:09:47 +000011923 # Keep this pattern in sync with the one in func_win32_libid.
11924 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 +000011925 lt_cv_file_magic_cmd='$OBJDUMP -f'
11926 fi
11927 ;;
11928
cristy0c60a692010-11-04 01:09:47 +000011929cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011930 # use the weaker test based on 'objdump'. See mingw*.
11931 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11932 lt_cv_file_magic_cmd='$OBJDUMP -f'
11933 ;;
11934
11935darwin* | rhapsody*)
11936 lt_cv_deplibs_check_method=pass_all
11937 ;;
11938
11939freebsd* | dragonfly*)
11940 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11941 case $host_cpu in
11942 i*86 )
11943 # Not sure whether the presence of OpenBSD here was a mistake.
11944 # Let's accept both of them until this is cleared up.
11945 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11946 lt_cv_file_magic_cmd=/usr/bin/file
11947 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11948 ;;
11949 esac
11950 else
11951 lt_cv_deplibs_check_method=pass_all
11952 fi
11953 ;;
11954
11955gnu*)
11956 lt_cv_deplibs_check_method=pass_all
11957 ;;
11958
cristy0c60a692010-11-04 01:09:47 +000011959haiku*)
11960 lt_cv_deplibs_check_method=pass_all
11961 ;;
11962
cristy73bd4a52010-10-05 11:24:23 +000011963hpux10.20* | hpux11*)
11964 lt_cv_file_magic_cmd=/usr/bin/file
11965 case $host_cpu in
11966 ia64*)
11967 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11968 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11969 ;;
11970 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011971 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 +000011972 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11973 ;;
11974 *)
cristy0c60a692010-11-04 01:09:47 +000011975 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 +000011976 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11977 ;;
11978 esac
11979 ;;
11980
11981interix[3-9]*)
11982 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11984 ;;
11985
11986irix5* | irix6* | nonstopux*)
11987 case $LD in
11988 *-32|*"-32 ") libmagic=32-bit;;
11989 *-n32|*"-n32 ") libmagic=N32;;
11990 *-64|*"-64 ") libmagic=64-bit;;
11991 *) libmagic=never-match;;
11992 esac
11993 lt_cv_deplibs_check_method=pass_all
11994 ;;
11995
cristy99bd5232011-12-07 14:38:20 +000011996# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011997linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011998 lt_cv_deplibs_check_method=pass_all
11999 ;;
12000
12001netbsd*)
12002 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12004 else
12005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12006 fi
12007 ;;
12008
12009newos6*)
12010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12011 lt_cv_file_magic_cmd=/usr/bin/file
12012 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12013 ;;
12014
12015*nto* | *qnx*)
12016 lt_cv_deplibs_check_method=pass_all
12017 ;;
12018
12019openbsd*)
12020 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12022 else
12023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12024 fi
12025 ;;
12026
12027osf3* | osf4* | osf5*)
12028 lt_cv_deplibs_check_method=pass_all
12029 ;;
12030
12031rdos*)
12032 lt_cv_deplibs_check_method=pass_all
12033 ;;
12034
12035solaris*)
12036 lt_cv_deplibs_check_method=pass_all
12037 ;;
12038
12039sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12040 lt_cv_deplibs_check_method=pass_all
12041 ;;
12042
12043sysv4 | sysv4.3*)
12044 case $host_vendor in
12045 motorola)
12046 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]'
12047 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12048 ;;
12049 ncr)
12050 lt_cv_deplibs_check_method=pass_all
12051 ;;
12052 sequent)
12053 lt_cv_file_magic_cmd='/bin/file'
12054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12055 ;;
12056 sni)
12057 lt_cv_file_magic_cmd='/bin/file'
12058 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12059 lt_cv_file_magic_test_file=/lib/libc.so
12060 ;;
12061 siemens)
12062 lt_cv_deplibs_check_method=pass_all
12063 ;;
12064 pc)
12065 lt_cv_deplibs_check_method=pass_all
12066 ;;
12067 esac
12068 ;;
12069
12070tpf*)
12071 lt_cv_deplibs_check_method=pass_all
12072 ;;
12073esac
12074
12075fi
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12077$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000012078
12079file_magic_glob=
12080want_nocaseglob=no
12081if test "$build" = "$host"; then
12082 case $host_os in
12083 mingw* | pw32*)
12084 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12085 want_nocaseglob=yes
12086 else
12087 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12088 fi
12089 ;;
12090 esac
12091fi
12092
cristy73bd4a52010-10-05 11:24:23 +000012093file_magic_cmd=$lt_cv_file_magic_cmd
12094deplibs_check_method=$lt_cv_deplibs_check_method
12095test -z "$deplibs_check_method" && deplibs_check_method=unknown
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
cristyda16f162011-02-19 23:52:17 +000012108
12109
12110
12111
12112
12113
12114
12115
12116
12117
cristy73bd4a52010-10-05 11:24:23 +000012118if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000012119 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12120set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12122$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012123if ${ac_cv_prog_DLLTOOL+:} false; then :
12124 $as_echo_n "(cached) " >&6
12125else
12126 if test -n "$DLLTOOL"; then
12127 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12128else
12129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12130for as_dir in $PATH
12131do
12132 IFS=$as_save_IFS
12133 test -z "$as_dir" && as_dir=.
12134 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012136 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12138 break 2
12139 fi
12140done
12141 done
12142IFS=$as_save_IFS
12143
12144fi
12145fi
12146DLLTOOL=$ac_cv_prog_DLLTOOL
12147if test -n "$DLLTOOL"; then
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12149$as_echo "$DLLTOOL" >&6; }
12150else
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12152$as_echo "no" >&6; }
12153fi
12154
12155
12156fi
12157if test -z "$ac_cv_prog_DLLTOOL"; then
12158 ac_ct_DLLTOOL=$DLLTOOL
12159 # Extract the first word of "dlltool", so it can be a program name with args.
12160set dummy dlltool; ac_word=$2
12161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12162$as_echo_n "checking for $ac_word... " >&6; }
12163if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12164 $as_echo_n "(cached) " >&6
12165else
12166 if test -n "$ac_ct_DLLTOOL"; then
12167 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12168else
12169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170for as_dir in $PATH
12171do
12172 IFS=$as_save_IFS
12173 test -z "$as_dir" && as_dir=.
12174 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012176 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12178 break 2
12179 fi
12180done
12181 done
12182IFS=$as_save_IFS
12183
12184fi
12185fi
12186ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12187if test -n "$ac_ct_DLLTOOL"; then
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12189$as_echo "$ac_ct_DLLTOOL" >&6; }
12190else
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192$as_echo "no" >&6; }
12193fi
12194
12195 if test "x$ac_ct_DLLTOOL" = x; then
12196 DLLTOOL="false"
12197 else
12198 case $cross_compiling:$ac_tool_warned in
12199yes:)
12200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12202ac_tool_warned=yes ;;
12203esac
12204 DLLTOOL=$ac_ct_DLLTOOL
12205 fi
12206else
12207 DLLTOOL="$ac_cv_prog_DLLTOOL"
12208fi
12209
12210test -z "$DLLTOOL" && DLLTOOL=dlltool
12211
12212
12213
12214
12215
12216
12217
12218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12219$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12220if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12221 $as_echo_n "(cached) " >&6
12222else
12223 lt_cv_sharedlib_from_linklib_cmd='unknown'
12224
12225case $host_os in
12226cygwin* | mingw* | pw32* | cegcc*)
12227 # two different shell functions defined in ltmain.sh
12228 # decide which to use based on capabilities of $DLLTOOL
12229 case `$DLLTOOL --help 2>&1` in
12230 *--identify-strict*)
12231 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12232 ;;
12233 *)
12234 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12235 ;;
12236 esac
12237 ;;
12238*)
12239 # fallback: assume linklib IS sharedlib
12240 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12241 ;;
12242esac
12243
12244fi
12245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12246$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12247sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12248test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12249
12250
12251
12252
12253
12254
12255
12256if test -n "$ac_tool_prefix"; then
12257 for ac_prog in ar
12258 do
12259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12260set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262$as_echo_n "checking for $ac_word... " >&6; }
12263if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012264 $as_echo_n "(cached) " >&6
12265else
12266 if test -n "$AR"; then
12267 ac_cv_prog_AR="$AR" # Let the user override the test.
12268else
12269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270for as_dir in $PATH
12271do
12272 IFS=$as_save_IFS
12273 test -z "$as_dir" && as_dir=.
12274 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012276 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278 break 2
12279 fi
12280done
12281 done
12282IFS=$as_save_IFS
12283
12284fi
12285fi
12286AR=$ac_cv_prog_AR
12287if test -n "$AR"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12289$as_echo "$AR" >&6; }
12290else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292$as_echo "no" >&6; }
12293fi
12294
12295
cristyda16f162011-02-19 23:52:17 +000012296 test -n "$AR" && break
12297 done
cristy73bd4a52010-10-05 11:24:23 +000012298fi
cristyda16f162011-02-19 23:52:17 +000012299if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012300 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012301 for ac_prog in ar
12302do
12303 # Extract the first word of "$ac_prog", so it can be a program name with args.
12304set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012307if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012308 $as_echo_n "(cached) " >&6
12309else
12310 if test -n "$ac_ct_AR"; then
12311 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12312else
12313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12314for as_dir in $PATH
12315do
12316 IFS=$as_save_IFS
12317 test -z "$as_dir" && as_dir=.
12318 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012320 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 break 2
12323 fi
12324done
12325 done
12326IFS=$as_save_IFS
12327
12328fi
12329fi
12330ac_ct_AR=$ac_cv_prog_ac_ct_AR
12331if test -n "$ac_ct_AR"; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12333$as_echo "$ac_ct_AR" >&6; }
12334else
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336$as_echo "no" >&6; }
12337fi
12338
cristyda16f162011-02-19 23:52:17 +000012339
12340 test -n "$ac_ct_AR" && break
12341done
12342
cristy73bd4a52010-10-05 11:24:23 +000012343 if test "x$ac_ct_AR" = x; then
12344 AR="false"
12345 else
12346 case $cross_compiling:$ac_tool_warned in
12347yes:)
12348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12350ac_tool_warned=yes ;;
12351esac
12352 AR=$ac_ct_AR
12353 fi
cristy73bd4a52010-10-05 11:24:23 +000012354fi
12355
cristyda16f162011-02-19 23:52:17 +000012356: ${AR=ar}
12357: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
cristyda16f162011-02-19 23:52:17 +000012369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12370$as_echo_n "checking for archiver @FILE support... " >&6; }
12371if ${lt_cv_ar_at_file+:} false; then :
12372 $as_echo_n "(cached) " >&6
12373else
12374 lt_cv_ar_at_file=no
12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376/* end confdefs.h. */
12377
12378int
12379main ()
12380{
12381
12382 ;
12383 return 0;
12384}
12385_ACEOF
12386if ac_fn_c_try_compile "$LINENO"; then :
12387 echo conftest.$ac_objext > conftest.lst
12388 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12390 (eval $lt_ar_try) 2>&5
12391 ac_status=$?
12392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12393 test $ac_status = 0; }
12394 if test "$ac_status" -eq 0; then
12395 # Ensure the archiver fails upon bogus file names.
12396 rm -f conftest.$ac_objext libconftest.a
12397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12398 (eval $lt_ar_try) 2>&5
12399 ac_status=$?
12400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12401 test $ac_status = 0; }
12402 if test "$ac_status" -ne 0; then
12403 lt_cv_ar_at_file=@
12404 fi
12405 fi
12406 rm -f conftest.* libconftest.a
12407
12408fi
12409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12410
12411fi
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12413$as_echo "$lt_cv_ar_at_file" >&6; }
12414
12415if test "x$lt_cv_ar_at_file" = xno; then
12416 archiver_list_spec=
12417else
12418 archiver_list_spec=$lt_cv_ar_at_file
12419fi
12420
12421
12422
12423
12424
12425
12426
cristy73bd4a52010-10-05 11:24:23 +000012427if test -n "$ac_tool_prefix"; then
12428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12429set dummy ${ac_tool_prefix}strip; ac_word=$2
12430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12431$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012432if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012433 $as_echo_n "(cached) " >&6
12434else
12435 if test -n "$STRIP"; then
12436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12437else
12438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12439for as_dir in $PATH
12440do
12441 IFS=$as_save_IFS
12442 test -z "$as_dir" && as_dir=.
12443 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012445 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12447 break 2
12448 fi
12449done
12450 done
12451IFS=$as_save_IFS
12452
12453fi
12454fi
12455STRIP=$ac_cv_prog_STRIP
12456if test -n "$STRIP"; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12458$as_echo "$STRIP" >&6; }
12459else
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461$as_echo "no" >&6; }
12462fi
12463
12464
12465fi
12466if test -z "$ac_cv_prog_STRIP"; then
12467 ac_ct_STRIP=$STRIP
12468 # Extract the first word of "strip", so it can be a program name with args.
12469set dummy strip; ac_word=$2
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012472if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012473 $as_echo_n "(cached) " >&6
12474else
12475 if test -n "$ac_ct_STRIP"; then
12476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12477else
12478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479for as_dir in $PATH
12480do
12481 IFS=$as_save_IFS
12482 test -z "$as_dir" && as_dir=.
12483 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012485 ac_cv_prog_ac_ct_STRIP="strip"
12486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12487 break 2
12488 fi
12489done
12490 done
12491IFS=$as_save_IFS
12492
12493fi
12494fi
12495ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12496if test -n "$ac_ct_STRIP"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12498$as_echo "$ac_ct_STRIP" >&6; }
12499else
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501$as_echo "no" >&6; }
12502fi
12503
12504 if test "x$ac_ct_STRIP" = x; then
12505 STRIP=":"
12506 else
12507 case $cross_compiling:$ac_tool_warned in
12508yes:)
12509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12511ac_tool_warned=yes ;;
12512esac
12513 STRIP=$ac_ct_STRIP
12514 fi
12515else
12516 STRIP="$ac_cv_prog_STRIP"
12517fi
12518
12519test -z "$STRIP" && STRIP=:
12520
12521
12522
12523
12524
12525
12526if test -n "$ac_tool_prefix"; then
12527 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12528set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12530$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012531if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012532 $as_echo_n "(cached) " >&6
12533else
12534 if test -n "$RANLIB"; then
12535 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12536else
12537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12538for as_dir in $PATH
12539do
12540 IFS=$as_save_IFS
12541 test -z "$as_dir" && as_dir=.
12542 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012544 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12546 break 2
12547 fi
12548done
12549 done
12550IFS=$as_save_IFS
12551
12552fi
12553fi
12554RANLIB=$ac_cv_prog_RANLIB
12555if test -n "$RANLIB"; then
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12557$as_echo "$RANLIB" >&6; }
12558else
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12560$as_echo "no" >&6; }
12561fi
12562
12563
12564fi
12565if test -z "$ac_cv_prog_RANLIB"; then
12566 ac_ct_RANLIB=$RANLIB
12567 # Extract the first word of "ranlib", so it can be a program name with args.
12568set dummy ranlib; ac_word=$2
12569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12570$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012571if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012572 $as_echo_n "(cached) " >&6
12573else
12574 if test -n "$ac_ct_RANLIB"; then
12575 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12576else
12577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578for as_dir in $PATH
12579do
12580 IFS=$as_save_IFS
12581 test -z "$as_dir" && as_dir=.
12582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012584 ac_cv_prog_ac_ct_RANLIB="ranlib"
12585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12586 break 2
12587 fi
12588done
12589 done
12590IFS=$as_save_IFS
12591
12592fi
12593fi
12594ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12595if test -n "$ac_ct_RANLIB"; then
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12597$as_echo "$ac_ct_RANLIB" >&6; }
12598else
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600$as_echo "no" >&6; }
12601fi
12602
12603 if test "x$ac_ct_RANLIB" = x; then
12604 RANLIB=":"
12605 else
12606 case $cross_compiling:$ac_tool_warned in
12607yes:)
12608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12610ac_tool_warned=yes ;;
12611esac
12612 RANLIB=$ac_ct_RANLIB
12613 fi
12614else
12615 RANLIB="$ac_cv_prog_RANLIB"
12616fi
12617
12618test -z "$RANLIB" && RANLIB=:
12619
12620
12621
12622
12623
12624
12625# Determine commands to create old-style static archives.
12626old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12627old_postinstall_cmds='chmod 644 $oldlib'
12628old_postuninstall_cmds=
12629
12630if test -n "$RANLIB"; then
12631 case $host_os in
12632 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012633 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012634 ;;
12635 *)
cristy99bd5232011-12-07 14:38:20 +000012636 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012637 ;;
12638 esac
cristy99bd5232011-12-07 14:38:20 +000012639 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012640fi
12641
cristy0c60a692010-11-04 01:09:47 +000012642case $host_os in
12643 darwin*)
12644 lock_old_archive_extraction=yes ;;
12645 *)
12646 lock_old_archive_extraction=no ;;
12647esac
12648
12649
12650
12651
12652
12653
cristy73bd4a52010-10-05 11:24:23 +000012654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687# If no C compiler was specified, use CC.
12688LTCC=${LTCC-"$CC"}
12689
12690# If no C compiler flags were specified, use CFLAGS.
12691LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12692
12693# Allow CC to be a program name with arguments.
12694compiler=$CC
12695
12696
12697# Check for command to grab the raw symbol name followed by C symbol from nm.
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12699$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012700if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012701 $as_echo_n "(cached) " >&6
12702else
12703
12704# These are sane defaults that work on at least a few old systems.
12705# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12706
12707# Character class describing NM global symbol codes.
12708symcode='[BCDEGRST]'
12709
12710# Regexp to match symbols that can be accessed directly from C.
12711sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12712
12713# Define system-specific variables.
12714case $host_os in
12715aix*)
12716 symcode='[BCDT]'
12717 ;;
12718cygwin* | mingw* | pw32* | cegcc*)
12719 symcode='[ABCDGISTW]'
12720 ;;
12721hpux*)
12722 if test "$host_cpu" = ia64; then
12723 symcode='[ABCDEGRST]'
12724 fi
12725 ;;
12726irix* | nonstopux*)
12727 symcode='[BCDEGRST]'
12728 ;;
12729osf*)
12730 symcode='[BCDEGQRST]'
12731 ;;
12732solaris*)
12733 symcode='[BDRT]'
12734 ;;
12735sco3.2v5*)
12736 symcode='[DT]'
12737 ;;
12738sysv4.2uw2*)
12739 symcode='[DT]'
12740 ;;
12741sysv5* | sco5v6* | unixware* | OpenUNIX*)
12742 symcode='[ABDT]'
12743 ;;
12744sysv4)
12745 symcode='[DFNSTU]'
12746 ;;
12747esac
12748
12749# If we're using GNU nm, then use its standard symbol codes.
12750case `$NM -V 2>&1` in
12751*GNU* | *'with BFD'*)
12752 symcode='[ABCDGIRSTW]' ;;
12753esac
12754
12755# Transform an extracted symbol line into a proper C declaration.
12756# Some systems (esp. on ia64) link data and code symbols differently,
12757# so use this general approach.
12758lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12759
12760# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012761lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12762lt_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 +000012763
12764# Handle CRLF in mingw tool chain
12765opt_cr=
12766case $build_os in
12767mingw*)
12768 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12769 ;;
12770esac
12771
12772# Try without a prefix underscore, then with it.
12773for ac_symprfx in "" "_"; do
12774
12775 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12776 symxfrm="\\1 $ac_symprfx\\2 \\2"
12777
12778 # Write the raw and C identifiers.
12779 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12780 # Fake it for dumpbin and say T for any non-static function
12781 # and D for any global variable.
12782 # Also find C++ and __fastcall symbols from MSVC++,
12783 # which start with @ or ?.
12784 lt_cv_sys_global_symbol_pipe="$AWK '"\
12785" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012786" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012787" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12788" \$ 0!~/External *\|/{next};"\
12789" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12790" {if(hide[section]) next};"\
12791" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12792" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12793" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12794" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12795" ' prfx=^$ac_symprfx"
12796 else
12797 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12798 fi
cristyda16f162011-02-19 23:52:17 +000012799 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012800
12801 # Check to see that the pipe works correctly.
12802 pipe_works=no
12803
12804 rm -f conftest*
12805 cat > conftest.$ac_ext <<_LT_EOF
12806#ifdef __cplusplus
12807extern "C" {
12808#endif
12809char nm_test_var;
12810void nm_test_func(void);
12811void nm_test_func(void){}
12812#ifdef __cplusplus
12813}
12814#endif
12815int main(){nm_test_var='a';nm_test_func();return(0);}
12816_LT_EOF
12817
12818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12819 (eval $ac_compile) 2>&5
12820 ac_status=$?
12821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12822 test $ac_status = 0; }; then
12823 # Now try to grab the symbols.
12824 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12826 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012827 ac_status=$?
12828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12829 test $ac_status = 0; } && test -s "$nlist"; then
12830 # Try sorting and uniquifying the output.
12831 if sort "$nlist" | uniq > "$nlist"T; then
12832 mv -f "$nlist"T "$nlist"
12833 else
12834 rm -f "$nlist"T
12835 fi
12836
12837 # Make sure that we snagged all the symbols we need.
12838 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12839 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12840 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012841/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12842#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12843/* DATA imports from DLLs on WIN32 con't be const, because runtime
12844 relocations are performed -- see ld's documentation on pseudo-relocs. */
12845# define LT_DLSYM_CONST
12846#elif defined(__osf__)
12847/* This system does not cope well with relocations in const data. */
12848# define LT_DLSYM_CONST
12849#else
12850# define LT_DLSYM_CONST const
12851#endif
12852
cristy73bd4a52010-10-05 11:24:23 +000012853#ifdef __cplusplus
12854extern "C" {
12855#endif
12856
12857_LT_EOF
12858 # Now generate the symbol file.
12859 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12860
12861 cat <<_LT_EOF >> conftest.$ac_ext
12862
12863/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012864LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012865 const char *name;
12866 void *address;
12867}
12868lt__PROGRAM__LTX_preloaded_symbols[] =
12869{
12870 { "@PROGRAM@", (void *) 0 },
12871_LT_EOF
12872 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12873 cat <<\_LT_EOF >> conftest.$ac_ext
12874 {0, (void *) 0}
12875};
12876
12877/* This works around a problem in FreeBSD linker */
12878#ifdef FREEBSD_WORKAROUND
12879static const void *lt_preloaded_setup() {
12880 return lt__PROGRAM__LTX_preloaded_symbols;
12881}
12882#endif
12883
12884#ifdef __cplusplus
12885}
12886#endif
12887_LT_EOF
12888 # Now try linking the two files.
12889 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012890 lt_globsym_save_LIBS=$LIBS
12891 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012892 LIBS="conftstm.$ac_objext"
12893 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12895 (eval $ac_link) 2>&5
12896 ac_status=$?
12897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12898 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12899 pipe_works=yes
12900 fi
cristyda16f162011-02-19 23:52:17 +000012901 LIBS=$lt_globsym_save_LIBS
12902 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012903 else
12904 echo "cannot find nm_test_func in $nlist" >&5
12905 fi
12906 else
12907 echo "cannot find nm_test_var in $nlist" >&5
12908 fi
12909 else
12910 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12911 fi
12912 else
12913 echo "$progname: failed program was:" >&5
12914 cat conftest.$ac_ext >&5
12915 fi
12916 rm -rf conftest* conftst*
12917
12918 # Do not use the global_symbol_pipe unless it works.
12919 if test "$pipe_works" = yes; then
12920 break
12921 else
12922 lt_cv_sys_global_symbol_pipe=
12923 fi
12924done
12925
12926fi
12927
12928if test -z "$lt_cv_sys_global_symbol_pipe"; then
12929 lt_cv_sys_global_symbol_to_cdecl=
12930fi
12931if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12933$as_echo "failed" >&6; }
12934else
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12936$as_echo "ok" >&6; }
12937fi
12938
cristyda16f162011-02-19 23:52:17 +000012939# Response file support.
12940if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12941 nm_file_list_spec='@'
12942elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12943 nm_file_list_spec='@'
12944fi
cristy73bd4a52010-10-05 11:24:23 +000012945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
cristyda16f162011-02-19 23:52:17 +000012966
12967
12968
12969
12970
12971
12972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12973$as_echo_n "checking for sysroot... " >&6; }
12974
12975# Check whether --with-sysroot was given.
12976if test "${with_sysroot+set}" = set; then :
12977 withval=$with_sysroot;
12978else
12979 with_sysroot=no
12980fi
12981
12982
12983lt_sysroot=
12984case ${with_sysroot} in #(
12985 yes)
12986 if test "$GCC" = yes; then
12987 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12988 fi
12989 ;; #(
12990 /*)
12991 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12992 ;; #(
12993 no|'')
12994 ;; #(
12995 *)
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12997$as_echo "${with_sysroot}" >&6; }
12998 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12999 ;;
13000esac
13001
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13003$as_echo "${lt_sysroot:-no}" >&6; }
13004
13005
13006
13007
13008
cristy73bd4a52010-10-05 11:24:23 +000013009# Check whether --enable-libtool-lock was given.
13010if test "${enable_libtool_lock+set}" = set; then :
13011 enableval=$enable_libtool_lock;
13012fi
13013
13014test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13015
13016# Some flags need to be propagated to the compiler or linker for good
13017# libtool support.
13018case $host in
13019ia64-*-hpux*)
13020 # Find out which ABI we are using.
13021 echo 'int i;' > conftest.$ac_ext
13022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13023 (eval $ac_compile) 2>&5
13024 ac_status=$?
13025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13026 test $ac_status = 0; }; then
13027 case `/usr/bin/file conftest.$ac_objext` in
13028 *ELF-32*)
13029 HPUX_IA64_MODE="32"
13030 ;;
13031 *ELF-64*)
13032 HPUX_IA64_MODE="64"
13033 ;;
13034 esac
13035 fi
13036 rm -rf conftest*
13037 ;;
13038*-*-irix6*)
13039 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000013040 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000013041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13042 (eval $ac_compile) 2>&5
13043 ac_status=$?
13044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13045 test $ac_status = 0; }; then
13046 if test "$lt_cv_prog_gnu_ld" = yes; then
13047 case `/usr/bin/file conftest.$ac_objext` in
13048 *32-bit*)
13049 LD="${LD-ld} -melf32bsmip"
13050 ;;
13051 *N32*)
13052 LD="${LD-ld} -melf32bmipn32"
13053 ;;
13054 *64-bit*)
13055 LD="${LD-ld} -melf64bmip"
13056 ;;
13057 esac
13058 else
13059 case `/usr/bin/file conftest.$ac_objext` in
13060 *32-bit*)
13061 LD="${LD-ld} -32"
13062 ;;
13063 *N32*)
13064 LD="${LD-ld} -n32"
13065 ;;
13066 *64-bit*)
13067 LD="${LD-ld} -64"
13068 ;;
13069 esac
13070 fi
13071 fi
13072 rm -rf conftest*
13073 ;;
13074
cristyd95b7a52013-10-23 13:12:53 +000013075x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000013076s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13077 # Find out which ABI we are using.
13078 echo 'int i;' > conftest.$ac_ext
13079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13080 (eval $ac_compile) 2>&5
13081 ac_status=$?
13082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13083 test $ac_status = 0; }; then
13084 case `/usr/bin/file conftest.o` in
13085 *32-bit*)
13086 case $host in
13087 x86_64-*kfreebsd*-gnu)
13088 LD="${LD-ld} -m elf_i386_fbsd"
13089 ;;
13090 x86_64-*linux*)
13091 LD="${LD-ld} -m elf_i386"
13092 ;;
cristya5bda012013-11-03 18:05:38 +000013093 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000013094 LD="${LD-ld} -m elf32lppclinux"
13095 ;;
cristya5bda012013-11-03 18:05:38 +000013096 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013097 LD="${LD-ld} -m elf32ppclinux"
13098 ;;
13099 s390x-*linux*)
13100 LD="${LD-ld} -m elf_s390"
13101 ;;
13102 sparc64-*linux*)
13103 LD="${LD-ld} -m elf32_sparc"
13104 ;;
13105 esac
13106 ;;
13107 *64-bit*)
13108 case $host in
13109 x86_64-*kfreebsd*-gnu)
13110 LD="${LD-ld} -m elf_x86_64_fbsd"
13111 ;;
13112 x86_64-*linux*)
13113 LD="${LD-ld} -m elf_x86_64"
13114 ;;
cristyd95b7a52013-10-23 13:12:53 +000013115 powerpcle-*linux*)
13116 LD="${LD-ld} -m elf64lppc"
13117 ;;
13118 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013119 LD="${LD-ld} -m elf64ppc"
13120 ;;
13121 s390*-*linux*|s390*-*tpf*)
13122 LD="${LD-ld} -m elf64_s390"
13123 ;;
13124 sparc*-*linux*)
13125 LD="${LD-ld} -m elf64_sparc"
13126 ;;
13127 esac
13128 ;;
13129 esac
13130 fi
13131 rm -rf conftest*
13132 ;;
13133
13134*-*-sco3.2v5*)
13135 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13136 SAVE_CFLAGS="$CFLAGS"
13137 CFLAGS="$CFLAGS -belf"
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13139$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013140if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013141 $as_echo_n "(cached) " >&6
13142else
13143 ac_ext=c
13144ac_cpp='$CPP $CPPFLAGS'
13145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13147ac_compiler_gnu=$ac_cv_c_compiler_gnu
13148
13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150/* end confdefs.h. */
13151
13152int
13153main ()
13154{
13155
13156 ;
13157 return 0;
13158}
13159_ACEOF
13160if ac_fn_c_try_link "$LINENO"; then :
13161 lt_cv_cc_needs_belf=yes
13162else
13163 lt_cv_cc_needs_belf=no
13164fi
13165rm -f core conftest.err conftest.$ac_objext \
13166 conftest$ac_exeext conftest.$ac_ext
13167 ac_ext=c
13168ac_cpp='$CPP $CPPFLAGS'
13169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13171ac_compiler_gnu=$ac_cv_c_compiler_gnu
13172
13173fi
13174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13175$as_echo "$lt_cv_cc_needs_belf" >&6; }
13176 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13177 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13178 CFLAGS="$SAVE_CFLAGS"
13179 fi
13180 ;;
cristy99bd5232011-12-07 14:38:20 +000013181*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000013182 # Find out which ABI we are using.
13183 echo 'int i;' > conftest.$ac_ext
13184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13185 (eval $ac_compile) 2>&5
13186 ac_status=$?
13187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13188 test $ac_status = 0; }; then
13189 case `/usr/bin/file conftest.o` in
13190 *64-bit*)
13191 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000013192 yes*)
13193 case $host in
13194 i?86-*-solaris*)
13195 LD="${LD-ld} -m elf_x86_64"
13196 ;;
13197 sparc*-*-solaris*)
13198 LD="${LD-ld} -m elf64_sparc"
13199 ;;
13200 esac
13201 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13202 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13203 LD="${LD-ld}_sol2"
13204 fi
13205 ;;
cristy73bd4a52010-10-05 11:24:23 +000013206 *)
13207 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13208 LD="${LD-ld} -64"
13209 fi
13210 ;;
13211 esac
13212 ;;
13213 esac
13214 fi
13215 rm -rf conftest*
13216 ;;
13217esac
13218
13219need_locks="$enable_libtool_lock"
13220
cristyda16f162011-02-19 23:52:17 +000013221if test -n "$ac_tool_prefix"; then
13222 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13223set dummy ${ac_tool_prefix}mt; ac_word=$2
13224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225$as_echo_n "checking for $ac_word... " >&6; }
13226if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13227 $as_echo_n "(cached) " >&6
13228else
13229 if test -n "$MANIFEST_TOOL"; then
13230 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13231else
13232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233for as_dir in $PATH
13234do
13235 IFS=$as_save_IFS
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013239 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 break 2
13242 fi
13243done
13244 done
13245IFS=$as_save_IFS
13246
13247fi
13248fi
13249MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13250if test -n "$MANIFEST_TOOL"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13252$as_echo "$MANIFEST_TOOL" >&6; }
13253else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255$as_echo "no" >&6; }
13256fi
13257
13258
13259fi
13260if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13261 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13262 # Extract the first word of "mt", so it can be a program name with args.
13263set dummy mt; ac_word=$2
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265$as_echo_n "checking for $ac_word... " >&6; }
13266if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13267 $as_echo_n "(cached) " >&6
13268else
13269 if test -n "$ac_ct_MANIFEST_TOOL"; then
13270 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13271else
13272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273for as_dir in $PATH
13274do
13275 IFS=$as_save_IFS
13276 test -z "$as_dir" && as_dir=.
13277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013279 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281 break 2
13282 fi
13283done
13284 done
13285IFS=$as_save_IFS
13286
13287fi
13288fi
13289ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13290if test -n "$ac_ct_MANIFEST_TOOL"; then
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13292$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13293else
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295$as_echo "no" >&6; }
13296fi
13297
13298 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13299 MANIFEST_TOOL=":"
13300 else
13301 case $cross_compiling:$ac_tool_warned in
13302yes:)
13303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13305ac_tool_warned=yes ;;
13306esac
13307 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13308 fi
13309else
13310 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13311fi
13312
13313test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13315$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13316if ${lt_cv_path_mainfest_tool+:} false; then :
13317 $as_echo_n "(cached) " >&6
13318else
13319 lt_cv_path_mainfest_tool=no
13320 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13321 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13322 cat conftest.err >&5
13323 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13324 lt_cv_path_mainfest_tool=yes
13325 fi
13326 rm -f conftest*
13327fi
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13329$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13330if test "x$lt_cv_path_mainfest_tool" != xyes; then
13331 MANIFEST_TOOL=:
13332fi
13333
13334
13335
13336
13337
cristy73bd4a52010-10-05 11:24:23 +000013338
13339 case $host_os in
13340 rhapsody* | darwin*)
13341 if test -n "$ac_tool_prefix"; then
13342 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13343set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13345$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013346if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013347 $as_echo_n "(cached) " >&6
13348else
13349 if test -n "$DSYMUTIL"; then
13350 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13351else
13352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353for as_dir in $PATH
13354do
13355 IFS=$as_save_IFS
13356 test -z "$as_dir" && as_dir=.
13357 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013359 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13361 break 2
13362 fi
13363done
13364 done
13365IFS=$as_save_IFS
13366
13367fi
13368fi
13369DSYMUTIL=$ac_cv_prog_DSYMUTIL
13370if test -n "$DSYMUTIL"; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13372$as_echo "$DSYMUTIL" >&6; }
13373else
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375$as_echo "no" >&6; }
13376fi
13377
13378
13379fi
13380if test -z "$ac_cv_prog_DSYMUTIL"; then
13381 ac_ct_DSYMUTIL=$DSYMUTIL
13382 # Extract the first word of "dsymutil", so it can be a program name with args.
13383set dummy dsymutil; ac_word=$2
13384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13385$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013386if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013387 $as_echo_n "(cached) " >&6
13388else
13389 if test -n "$ac_ct_DSYMUTIL"; then
13390 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13391else
13392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13393for as_dir in $PATH
13394do
13395 IFS=$as_save_IFS
13396 test -z "$as_dir" && as_dir=.
13397 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013399 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13401 break 2
13402 fi
13403done
13404 done
13405IFS=$as_save_IFS
13406
13407fi
13408fi
13409ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13410if test -n "$ac_ct_DSYMUTIL"; then
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13412$as_echo "$ac_ct_DSYMUTIL" >&6; }
13413else
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415$as_echo "no" >&6; }
13416fi
13417
13418 if test "x$ac_ct_DSYMUTIL" = x; then
13419 DSYMUTIL=":"
13420 else
13421 case $cross_compiling:$ac_tool_warned in
13422yes:)
13423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13425ac_tool_warned=yes ;;
13426esac
13427 DSYMUTIL=$ac_ct_DSYMUTIL
13428 fi
13429else
13430 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13431fi
13432
13433 if test -n "$ac_tool_prefix"; then
13434 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13435set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13437$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013438if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013439 $as_echo_n "(cached) " >&6
13440else
13441 if test -n "$NMEDIT"; then
13442 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13443else
13444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13445for as_dir in $PATH
13446do
13447 IFS=$as_save_IFS
13448 test -z "$as_dir" && as_dir=.
13449 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013451 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13453 break 2
13454 fi
13455done
13456 done
13457IFS=$as_save_IFS
13458
13459fi
13460fi
13461NMEDIT=$ac_cv_prog_NMEDIT
13462if test -n "$NMEDIT"; then
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13464$as_echo "$NMEDIT" >&6; }
13465else
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467$as_echo "no" >&6; }
13468fi
13469
13470
13471fi
13472if test -z "$ac_cv_prog_NMEDIT"; then
13473 ac_ct_NMEDIT=$NMEDIT
13474 # Extract the first word of "nmedit", so it can be a program name with args.
13475set dummy nmedit; ac_word=$2
13476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13477$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013478if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013479 $as_echo_n "(cached) " >&6
13480else
13481 if test -n "$ac_ct_NMEDIT"; then
13482 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13483else
13484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13485for as_dir in $PATH
13486do
13487 IFS=$as_save_IFS
13488 test -z "$as_dir" && as_dir=.
13489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013491 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13493 break 2
13494 fi
13495done
13496 done
13497IFS=$as_save_IFS
13498
13499fi
13500fi
13501ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13502if test -n "$ac_ct_NMEDIT"; then
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13504$as_echo "$ac_ct_NMEDIT" >&6; }
13505else
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507$as_echo "no" >&6; }
13508fi
13509
13510 if test "x$ac_ct_NMEDIT" = x; then
13511 NMEDIT=":"
13512 else
13513 case $cross_compiling:$ac_tool_warned in
13514yes:)
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13517ac_tool_warned=yes ;;
13518esac
13519 NMEDIT=$ac_ct_NMEDIT
13520 fi
13521else
13522 NMEDIT="$ac_cv_prog_NMEDIT"
13523fi
13524
13525 if test -n "$ac_tool_prefix"; then
13526 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13527set dummy ${ac_tool_prefix}lipo; ac_word=$2
13528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13529$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013530if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013531 $as_echo_n "(cached) " >&6
13532else
13533 if test -n "$LIPO"; then
13534 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13535else
13536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13537for as_dir in $PATH
13538do
13539 IFS=$as_save_IFS
13540 test -z "$as_dir" && as_dir=.
13541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013543 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13545 break 2
13546 fi
13547done
13548 done
13549IFS=$as_save_IFS
13550
13551fi
13552fi
13553LIPO=$ac_cv_prog_LIPO
13554if test -n "$LIPO"; then
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13556$as_echo "$LIPO" >&6; }
13557else
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13559$as_echo "no" >&6; }
13560fi
13561
13562
13563fi
13564if test -z "$ac_cv_prog_LIPO"; then
13565 ac_ct_LIPO=$LIPO
13566 # Extract the first word of "lipo", so it can be a program name with args.
13567set dummy lipo; ac_word=$2
13568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13569$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013570if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013571 $as_echo_n "(cached) " >&6
13572else
13573 if test -n "$ac_ct_LIPO"; then
13574 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13575else
13576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13577for as_dir in $PATH
13578do
13579 IFS=$as_save_IFS
13580 test -z "$as_dir" && as_dir=.
13581 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013583 ac_cv_prog_ac_ct_LIPO="lipo"
13584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13585 break 2
13586 fi
13587done
13588 done
13589IFS=$as_save_IFS
13590
13591fi
13592fi
13593ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13594if test -n "$ac_ct_LIPO"; then
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13596$as_echo "$ac_ct_LIPO" >&6; }
13597else
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599$as_echo "no" >&6; }
13600fi
13601
13602 if test "x$ac_ct_LIPO" = x; then
13603 LIPO=":"
13604 else
13605 case $cross_compiling:$ac_tool_warned in
13606yes:)
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13609ac_tool_warned=yes ;;
13610esac
13611 LIPO=$ac_ct_LIPO
13612 fi
13613else
13614 LIPO="$ac_cv_prog_LIPO"
13615fi
13616
13617 if test -n "$ac_tool_prefix"; then
13618 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13619set dummy ${ac_tool_prefix}otool; ac_word=$2
13620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13621$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013622if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013623 $as_echo_n "(cached) " >&6
13624else
13625 if test -n "$OTOOL"; then
13626 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13627else
13628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629for as_dir in $PATH
13630do
13631 IFS=$as_save_IFS
13632 test -z "$as_dir" && as_dir=.
13633 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013635 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13637 break 2
13638 fi
13639done
13640 done
13641IFS=$as_save_IFS
13642
13643fi
13644fi
13645OTOOL=$ac_cv_prog_OTOOL
13646if test -n "$OTOOL"; then
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13648$as_echo "$OTOOL" >&6; }
13649else
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13651$as_echo "no" >&6; }
13652fi
13653
13654
13655fi
13656if test -z "$ac_cv_prog_OTOOL"; then
13657 ac_ct_OTOOL=$OTOOL
13658 # Extract the first word of "otool", so it can be a program name with args.
13659set dummy otool; ac_word=$2
13660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13661$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013662if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013663 $as_echo_n "(cached) " >&6
13664else
13665 if test -n "$ac_ct_OTOOL"; then
13666 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13667else
13668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669for as_dir in $PATH
13670do
13671 IFS=$as_save_IFS
13672 test -z "$as_dir" && as_dir=.
13673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013675 ac_cv_prog_ac_ct_OTOOL="otool"
13676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13677 break 2
13678 fi
13679done
13680 done
13681IFS=$as_save_IFS
13682
13683fi
13684fi
13685ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13686if test -n "$ac_ct_OTOOL"; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13688$as_echo "$ac_ct_OTOOL" >&6; }
13689else
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691$as_echo "no" >&6; }
13692fi
13693
13694 if test "x$ac_ct_OTOOL" = x; then
13695 OTOOL=":"
13696 else
13697 case $cross_compiling:$ac_tool_warned in
13698yes:)
13699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13701ac_tool_warned=yes ;;
13702esac
13703 OTOOL=$ac_ct_OTOOL
13704 fi
13705else
13706 OTOOL="$ac_cv_prog_OTOOL"
13707fi
13708
13709 if test -n "$ac_tool_prefix"; then
13710 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13711set dummy ${ac_tool_prefix}otool64; ac_word=$2
13712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13713$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013714if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013715 $as_echo_n "(cached) " >&6
13716else
13717 if test -n "$OTOOL64"; then
13718 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13719else
13720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13721for as_dir in $PATH
13722do
13723 IFS=$as_save_IFS
13724 test -z "$as_dir" && as_dir=.
13725 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013727 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13729 break 2
13730 fi
13731done
13732 done
13733IFS=$as_save_IFS
13734
13735fi
13736fi
13737OTOOL64=$ac_cv_prog_OTOOL64
13738if test -n "$OTOOL64"; then
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13740$as_echo "$OTOOL64" >&6; }
13741else
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13743$as_echo "no" >&6; }
13744fi
13745
13746
13747fi
13748if test -z "$ac_cv_prog_OTOOL64"; then
13749 ac_ct_OTOOL64=$OTOOL64
13750 # Extract the first word of "otool64", so it can be a program name with args.
13751set dummy otool64; ac_word=$2
13752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13753$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013754if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013755 $as_echo_n "(cached) " >&6
13756else
13757 if test -n "$ac_ct_OTOOL64"; then
13758 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13759else
13760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13761for as_dir in $PATH
13762do
13763 IFS=$as_save_IFS
13764 test -z "$as_dir" && as_dir=.
13765 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013767 ac_cv_prog_ac_ct_OTOOL64="otool64"
13768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13769 break 2
13770 fi
13771done
13772 done
13773IFS=$as_save_IFS
13774
13775fi
13776fi
13777ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13778if test -n "$ac_ct_OTOOL64"; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13780$as_echo "$ac_ct_OTOOL64" >&6; }
13781else
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13783$as_echo "no" >&6; }
13784fi
13785
13786 if test "x$ac_ct_OTOOL64" = x; then
13787 OTOOL64=":"
13788 else
13789 case $cross_compiling:$ac_tool_warned in
13790yes:)
13791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13793ac_tool_warned=yes ;;
13794esac
13795 OTOOL64=$ac_ct_OTOOL64
13796 fi
13797else
13798 OTOOL64="$ac_cv_prog_OTOOL64"
13799fi
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13828$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013829if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013830 $as_echo_n "(cached) " >&6
13831else
13832 lt_cv_apple_cc_single_mod=no
13833 if test -z "${LT_MULTI_MODULE}"; then
13834 # By default we will add the -single_module flag. You can override
13835 # by either setting the environment variable LT_MULTI_MODULE
13836 # non-empty at configure time, or by adding -multi_module to the
13837 # link flags.
13838 rm -rf libconftest.dylib*
13839 echo "int foo(void){return 1;}" > conftest.c
13840 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13841-dynamiclib -Wl,-single_module conftest.c" >&5
13842 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13843 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13844 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013845 # If there is a non-empty error log, and "single_module"
13846 # appears in it, assume the flag caused a linker warning
13847 if test -s conftest.err && $GREP single_module conftest.err; then
13848 cat conftest.err >&5
13849 # Otherwise, if the output was created with a 0 exit code from
13850 # the compiler, it worked.
13851 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013852 lt_cv_apple_cc_single_mod=yes
13853 else
13854 cat conftest.err >&5
13855 fi
13856 rm -rf libconftest.dylib*
13857 rm -f conftest.*
13858 fi
13859fi
13860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13861$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013862
cristy73bd4a52010-10-05 11:24:23 +000013863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13864$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013865if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013866 $as_echo_n "(cached) " >&6
13867else
13868 lt_cv_ld_exported_symbols_list=no
13869 save_LDFLAGS=$LDFLAGS
13870 echo "_main" > conftest.sym
13871 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873/* end confdefs.h. */
13874
13875int
13876main ()
13877{
13878
13879 ;
13880 return 0;
13881}
13882_ACEOF
13883if ac_fn_c_try_link "$LINENO"; then :
13884 lt_cv_ld_exported_symbols_list=yes
13885else
13886 lt_cv_ld_exported_symbols_list=no
13887fi
13888rm -f core conftest.err conftest.$ac_objext \
13889 conftest$ac_exeext conftest.$ac_ext
13890 LDFLAGS="$save_LDFLAGS"
13891
13892fi
13893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13894$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013895
cristy0c60a692010-11-04 01:09:47 +000013896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13897$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013898if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013899 $as_echo_n "(cached) " >&6
13900else
13901 lt_cv_ld_force_load=no
13902 cat > conftest.c << _LT_EOF
13903int forced_loaded() { return 2;}
13904_LT_EOF
13905 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13906 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13907 echo "$AR cru libconftest.a conftest.o" >&5
13908 $AR cru libconftest.a conftest.o 2>&5
13909 echo "$RANLIB libconftest.a" >&5
13910 $RANLIB libconftest.a 2>&5
13911 cat > conftest.c << _LT_EOF
13912int main() { return 0;}
13913_LT_EOF
13914 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13915 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13916 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013917 if test -s conftest.err && $GREP force_load conftest.err; then
13918 cat conftest.err >&5
13919 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013920 lt_cv_ld_force_load=yes
13921 else
13922 cat conftest.err >&5
13923 fi
13924 rm -f conftest.err libconftest.a conftest conftest.c
13925 rm -rf conftest.dSYM
13926
13927fi
13928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13929$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013930 case $host_os in
13931 rhapsody* | darwin1.[012])
13932 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13933 darwin1.*)
13934 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13935 darwin*) # darwin 5.x on
13936 # if running on 10.5 or later, the deployment target defaults
13937 # to the OS version, if on x86, and 10.4, the deployment
13938 # target defaults to 10.4. Don't you love it?
13939 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13940 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13941 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13942 10.[012]*)
13943 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13944 10.*)
13945 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13946 esac
13947 ;;
13948 esac
13949 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13950 _lt_dar_single_mod='$single_module'
13951 fi
13952 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13953 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13954 else
13955 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13956 fi
cristy0c60a692010-11-04 01:09:47 +000013957 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013958 _lt_dsymutil='~$DSYMUTIL $lib || :'
13959 else
13960 _lt_dsymutil=
13961 fi
13962 ;;
13963 esac
13964
13965for ac_header in dlfcn.h
13966do :
13967 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13968"
cristyda16f162011-02-19 23:52:17 +000013969if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013970 cat >>confdefs.h <<_ACEOF
13971#define HAVE_DLFCN_H 1
13972_ACEOF
13973
13974fi
13975
13976done
13977
13978
13979
cristy73bd4a52010-10-05 11:24:23 +000013980
cristyda16f162011-02-19 23:52:17 +000013981func_stripname_cnf ()
13982{
13983 case ${2} in
13984 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13985 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13986 esac
13987} # func_stripname_cnf
13988
13989
13990
cristy73bd4a52010-10-05 11:24:23 +000013991
13992
13993# Set options
13994enable_win32_dll=yes
13995
13996case $host in
cristy0c60a692010-11-04 01:09:47 +000013997*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013998 if test -n "$ac_tool_prefix"; then
13999 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14000set dummy ${ac_tool_prefix}as; ac_word=$2
14001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14002$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014003if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014004 $as_echo_n "(cached) " >&6
14005else
14006 if test -n "$AS"; then
14007 ac_cv_prog_AS="$AS" # Let the user override the test.
14008else
14009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14010for as_dir in $PATH
14011do
14012 IFS=$as_save_IFS
14013 test -z "$as_dir" && as_dir=.
14014 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014016 ac_cv_prog_AS="${ac_tool_prefix}as"
14017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14018 break 2
14019 fi
14020done
14021 done
14022IFS=$as_save_IFS
14023
14024fi
14025fi
14026AS=$ac_cv_prog_AS
14027if test -n "$AS"; then
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14029$as_echo "$AS" >&6; }
14030else
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14032$as_echo "no" >&6; }
14033fi
14034
14035
14036fi
14037if test -z "$ac_cv_prog_AS"; then
14038 ac_ct_AS=$AS
14039 # Extract the first word of "as", so it can be a program name with args.
14040set dummy as; ac_word=$2
14041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14042$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014043if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014044 $as_echo_n "(cached) " >&6
14045else
14046 if test -n "$ac_ct_AS"; then
14047 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14048else
14049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14050for as_dir in $PATH
14051do
14052 IFS=$as_save_IFS
14053 test -z "$as_dir" && as_dir=.
14054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014056 ac_cv_prog_ac_ct_AS="as"
14057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14058 break 2
14059 fi
14060done
14061 done
14062IFS=$as_save_IFS
14063
14064fi
14065fi
14066ac_ct_AS=$ac_cv_prog_ac_ct_AS
14067if test -n "$ac_ct_AS"; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14069$as_echo "$ac_ct_AS" >&6; }
14070else
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14072$as_echo "no" >&6; }
14073fi
14074
14075 if test "x$ac_ct_AS" = x; then
14076 AS="false"
14077 else
14078 case $cross_compiling:$ac_tool_warned in
14079yes:)
14080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14082ac_tool_warned=yes ;;
14083esac
14084 AS=$ac_ct_AS
14085 fi
14086else
14087 AS="$ac_cv_prog_AS"
14088fi
14089
14090 if test -n "$ac_tool_prefix"; then
14091 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14092set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14094$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014095if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014096 $as_echo_n "(cached) " >&6
14097else
14098 if test -n "$DLLTOOL"; then
14099 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14100else
14101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14102for as_dir in $PATH
14103do
14104 IFS=$as_save_IFS
14105 test -z "$as_dir" && as_dir=.
14106 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014108 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14110 break 2
14111 fi
14112done
14113 done
14114IFS=$as_save_IFS
14115
14116fi
14117fi
14118DLLTOOL=$ac_cv_prog_DLLTOOL
14119if test -n "$DLLTOOL"; then
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14121$as_echo "$DLLTOOL" >&6; }
14122else
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124$as_echo "no" >&6; }
14125fi
14126
14127
14128fi
14129if test -z "$ac_cv_prog_DLLTOOL"; then
14130 ac_ct_DLLTOOL=$DLLTOOL
14131 # Extract the first word of "dlltool", so it can be a program name with args.
14132set dummy dlltool; ac_word=$2
14133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14134$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014135if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014136 $as_echo_n "(cached) " >&6
14137else
14138 if test -n "$ac_ct_DLLTOOL"; then
14139 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14140else
14141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142for as_dir in $PATH
14143do
14144 IFS=$as_save_IFS
14145 test -z "$as_dir" && as_dir=.
14146 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014148 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14150 break 2
14151 fi
14152done
14153 done
14154IFS=$as_save_IFS
14155
14156fi
14157fi
14158ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14159if test -n "$ac_ct_DLLTOOL"; then
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14161$as_echo "$ac_ct_DLLTOOL" >&6; }
14162else
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14164$as_echo "no" >&6; }
14165fi
14166
14167 if test "x$ac_ct_DLLTOOL" = x; then
14168 DLLTOOL="false"
14169 else
14170 case $cross_compiling:$ac_tool_warned in
14171yes:)
14172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14174ac_tool_warned=yes ;;
14175esac
14176 DLLTOOL=$ac_ct_DLLTOOL
14177 fi
14178else
14179 DLLTOOL="$ac_cv_prog_DLLTOOL"
14180fi
14181
14182 if test -n "$ac_tool_prefix"; then
14183 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14184set dummy ${ac_tool_prefix}objdump; ac_word=$2
14185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14186$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014187if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014188 $as_echo_n "(cached) " >&6
14189else
14190 if test -n "$OBJDUMP"; then
14191 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14192else
14193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194for as_dir in $PATH
14195do
14196 IFS=$as_save_IFS
14197 test -z "$as_dir" && as_dir=.
14198 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014200 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14202 break 2
14203 fi
14204done
14205 done
14206IFS=$as_save_IFS
14207
14208fi
14209fi
14210OBJDUMP=$ac_cv_prog_OBJDUMP
14211if test -n "$OBJDUMP"; then
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14213$as_echo "$OBJDUMP" >&6; }
14214else
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216$as_echo "no" >&6; }
14217fi
14218
14219
14220fi
14221if test -z "$ac_cv_prog_OBJDUMP"; then
14222 ac_ct_OBJDUMP=$OBJDUMP
14223 # Extract the first word of "objdump", so it can be a program name with args.
14224set dummy objdump; ac_word=$2
14225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14226$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014227if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014228 $as_echo_n "(cached) " >&6
14229else
14230 if test -n "$ac_ct_OBJDUMP"; then
14231 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14232else
14233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14234for as_dir in $PATH
14235do
14236 IFS=$as_save_IFS
14237 test -z "$as_dir" && as_dir=.
14238 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014240 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14242 break 2
14243 fi
14244done
14245 done
14246IFS=$as_save_IFS
14247
14248fi
14249fi
14250ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14251if test -n "$ac_ct_OBJDUMP"; then
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14253$as_echo "$ac_ct_OBJDUMP" >&6; }
14254else
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14256$as_echo "no" >&6; }
14257fi
14258
14259 if test "x$ac_ct_OBJDUMP" = x; then
14260 OBJDUMP="false"
14261 else
14262 case $cross_compiling:$ac_tool_warned in
14263yes:)
14264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14266ac_tool_warned=yes ;;
14267esac
14268 OBJDUMP=$ac_ct_OBJDUMP
14269 fi
14270else
14271 OBJDUMP="$ac_cv_prog_OBJDUMP"
14272fi
14273
14274 ;;
14275esac
14276
14277test -z "$AS" && AS=as
14278
14279
14280
14281
14282
14283test -z "$DLLTOOL" && DLLTOOL=dlltool
14284
14285
14286
14287
14288
14289test -z "$OBJDUMP" && OBJDUMP=objdump
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299 # Check whether --enable-shared was given.
14300if test "${enable_shared+set}" = set; then :
14301 enableval=$enable_shared; p=${PACKAGE-default}
14302 case $enableval in
14303 yes) enable_shared=yes ;;
14304 no) enable_shared=no ;;
14305 *)
14306 enable_shared=no
14307 # Look at the argument we got. We use all the common list separators.
14308 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14309 for pkg in $enableval; do
14310 IFS="$lt_save_ifs"
14311 if test "X$pkg" = "X$p"; then
14312 enable_shared=yes
14313 fi
14314 done
14315 IFS="$lt_save_ifs"
14316 ;;
14317 esac
14318else
14319 enable_shared=yes
14320fi
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330 # Check whether --enable-static was given.
14331if test "${enable_static+set}" = set; then :
14332 enableval=$enable_static; p=${PACKAGE-default}
14333 case $enableval in
14334 yes) enable_static=yes ;;
14335 no) enable_static=no ;;
14336 *)
14337 enable_static=no
14338 # Look at the argument we got. We use all the common list separators.
14339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14340 for pkg in $enableval; do
14341 IFS="$lt_save_ifs"
14342 if test "X$pkg" = "X$p"; then
14343 enable_static=yes
14344 fi
14345 done
14346 IFS="$lt_save_ifs"
14347 ;;
14348 esac
14349else
14350 enable_static=yes
14351fi
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362# Check whether --with-pic was given.
14363if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014364 withval=$with_pic; lt_p=${PACKAGE-default}
14365 case $withval in
14366 yes|no) pic_mode=$withval ;;
14367 *)
14368 pic_mode=default
14369 # Look at the argument we got. We use all the common list separators.
14370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14371 for lt_pkg in $withval; do
14372 IFS="$lt_save_ifs"
14373 if test "X$lt_pkg" = "X$lt_p"; then
14374 pic_mode=yes
14375 fi
14376 done
14377 IFS="$lt_save_ifs"
14378 ;;
14379 esac
cristy73bd4a52010-10-05 11:24:23 +000014380else
14381 pic_mode=default
14382fi
14383
14384
14385test -z "$pic_mode" && pic_mode=default
14386
14387
14388
14389
14390
14391
14392
14393 # Check whether --enable-fast-install was given.
14394if test "${enable_fast_install+set}" = set; then :
14395 enableval=$enable_fast_install; p=${PACKAGE-default}
14396 case $enableval in
14397 yes) enable_fast_install=yes ;;
14398 no) enable_fast_install=no ;;
14399 *)
14400 enable_fast_install=no
14401 # Look at the argument we got. We use all the common list separators.
14402 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14403 for pkg in $enableval; do
14404 IFS="$lt_save_ifs"
14405 if test "X$pkg" = "X$p"; then
14406 enable_fast_install=yes
14407 fi
14408 done
14409 IFS="$lt_save_ifs"
14410 ;;
14411 esac
14412else
14413 enable_fast_install=yes
14414fi
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426# This can be used to rebuild libtool when needed
14427LIBTOOL_DEPS="$ltmain"
14428
14429# Always use our own libtool.
14430LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
cristy0c60a692010-11-04 01:09:47 +000014456
cristy99bd5232011-12-07 14:38:20 +000014457
14458
14459
14460
cristy73bd4a52010-10-05 11:24:23 +000014461test -z "$LN_S" && LN_S="ln -s"
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476if test -n "${ZSH_VERSION+set}" ; then
14477 setopt NO_GLOB_SUBST
14478fi
14479
14480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14481$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014482if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014483 $as_echo_n "(cached) " >&6
14484else
14485 rm -f .libs 2>/dev/null
14486mkdir .libs 2>/dev/null
14487if test -d .libs; then
14488 lt_cv_objdir=.libs
14489else
14490 # MS-DOS does not allow filenames that begin with a dot.
14491 lt_cv_objdir=_libs
14492fi
14493rmdir .libs 2>/dev/null
14494fi
14495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14496$as_echo "$lt_cv_objdir" >&6; }
14497objdir=$lt_cv_objdir
14498
14499
14500
14501
14502
14503cat >>confdefs.h <<_ACEOF
14504#define LT_OBJDIR "$lt_cv_objdir/"
14505_ACEOF
14506
14507
14508
14509
cristy73bd4a52010-10-05 11:24:23 +000014510case $host_os in
14511aix3*)
14512 # AIX sometimes has problems with the GCC collect2 program. For some
14513 # reason, if we set the COLLECT_NAMES environment variable, the problems
14514 # vanish in a puff of smoke.
14515 if test "X${COLLECT_NAMES+set}" != Xset; then
14516 COLLECT_NAMES=
14517 export COLLECT_NAMES
14518 fi
14519 ;;
14520esac
14521
cristy73bd4a52010-10-05 11:24:23 +000014522# Global variables:
14523ofile=libtool
14524can_build_shared=yes
14525
14526# All known linkers require a `.a' archive for static linking (except MSVC,
14527# which needs '.lib').
14528libext=a
14529
14530with_gnu_ld="$lt_cv_prog_gnu_ld"
14531
14532old_CC="$CC"
14533old_CFLAGS="$CFLAGS"
14534
14535# Set sane defaults for various variables
14536test -z "$CC" && CC=cc
14537test -z "$LTCC" && LTCC=$CC
14538test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14539test -z "$LD" && LD=ld
14540test -z "$ac_objext" && ac_objext=o
14541
14542for cc_temp in $compiler""; do
14543 case $cc_temp in
14544 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14545 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14546 \-*) ;;
14547 *) break;;
14548 esac
14549done
cristy0c60a692010-11-04 01:09:47 +000014550cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014551
14552
14553# Only perform the check for file, if the check method requires it
14554test -z "$MAGIC_CMD" && MAGIC_CMD=file
14555case $deplibs_check_method in
14556file_magic*)
14557 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14559$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014560if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014561 $as_echo_n "(cached) " >&6
14562else
14563 case $MAGIC_CMD in
14564[\\/*] | ?:[\\/]*)
14565 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14566 ;;
14567*)
14568 lt_save_MAGIC_CMD="$MAGIC_CMD"
14569 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14570 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14571 for ac_dir in $ac_dummy; do
14572 IFS="$lt_save_ifs"
14573 test -z "$ac_dir" && ac_dir=.
14574 if test -f $ac_dir/${ac_tool_prefix}file; then
14575 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14576 if test -n "$file_magic_test_file"; then
14577 case $deplibs_check_method in
14578 "file_magic "*)
14579 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14581 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14582 $EGREP "$file_magic_regex" > /dev/null; then
14583 :
14584 else
14585 cat <<_LT_EOF 1>&2
14586
14587*** Warning: the command libtool uses to detect shared libraries,
14588*** $file_magic_cmd, produces output that libtool cannot recognize.
14589*** The result is that libtool may fail to recognize shared libraries
14590*** as such. This will affect the creation of libtool libraries that
14591*** depend on shared libraries, but programs linked with such libtool
14592*** libraries will work regardless of this problem. Nevertheless, you
14593*** may want to report the problem to your system manager and/or to
14594*** bug-libtool@gnu.org
14595
14596_LT_EOF
14597 fi ;;
14598 esac
14599 fi
14600 break
14601 fi
14602 done
14603 IFS="$lt_save_ifs"
14604 MAGIC_CMD="$lt_save_MAGIC_CMD"
14605 ;;
14606esac
14607fi
14608
14609MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14610if test -n "$MAGIC_CMD"; then
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14612$as_echo "$MAGIC_CMD" >&6; }
14613else
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14615$as_echo "no" >&6; }
14616fi
14617
14618
14619
14620
14621
14622if test -z "$lt_cv_path_MAGIC_CMD"; then
14623 if test -n "$ac_tool_prefix"; then
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14625$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014626if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014627 $as_echo_n "(cached) " >&6
14628else
14629 case $MAGIC_CMD in
14630[\\/*] | ?:[\\/]*)
14631 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14632 ;;
14633*)
14634 lt_save_MAGIC_CMD="$MAGIC_CMD"
14635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14636 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14637 for ac_dir in $ac_dummy; do
14638 IFS="$lt_save_ifs"
14639 test -z "$ac_dir" && ac_dir=.
14640 if test -f $ac_dir/file; then
14641 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14642 if test -n "$file_magic_test_file"; then
14643 case $deplibs_check_method in
14644 "file_magic "*)
14645 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14646 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14647 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14648 $EGREP "$file_magic_regex" > /dev/null; then
14649 :
14650 else
14651 cat <<_LT_EOF 1>&2
14652
14653*** Warning: the command libtool uses to detect shared libraries,
14654*** $file_magic_cmd, produces output that libtool cannot recognize.
14655*** The result is that libtool may fail to recognize shared libraries
14656*** as such. This will affect the creation of libtool libraries that
14657*** depend on shared libraries, but programs linked with such libtool
14658*** libraries will work regardless of this problem. Nevertheless, you
14659*** may want to report the problem to your system manager and/or to
14660*** bug-libtool@gnu.org
14661
14662_LT_EOF
14663 fi ;;
14664 esac
14665 fi
14666 break
14667 fi
14668 done
14669 IFS="$lt_save_ifs"
14670 MAGIC_CMD="$lt_save_MAGIC_CMD"
14671 ;;
14672esac
14673fi
14674
14675MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14676if test -n "$MAGIC_CMD"; then
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14678$as_echo "$MAGIC_CMD" >&6; }
14679else
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681$as_echo "no" >&6; }
14682fi
14683
14684
14685 else
14686 MAGIC_CMD=:
14687 fi
14688fi
14689
14690 fi
14691 ;;
14692esac
14693
14694# Use C for the default configuration in the libtool script
14695
14696lt_save_CC="$CC"
14697ac_ext=c
14698ac_cpp='$CPP $CPPFLAGS'
14699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14701ac_compiler_gnu=$ac_cv_c_compiler_gnu
14702
14703
14704# Source file extension for C test sources.
14705ac_ext=c
14706
14707# Object file extension for compiled C test sources.
14708objext=o
14709objext=$objext
14710
14711# Code to be used in simple compile tests
14712lt_simple_compile_test_code="int some_variable = 0;"
14713
14714# Code to be used in simple link tests
14715lt_simple_link_test_code='int main(){return(0);}'
14716
14717
14718
14719
14720
14721
14722
14723# If no C compiler was specified, use CC.
14724LTCC=${LTCC-"$CC"}
14725
14726# If no C compiler flags were specified, use CFLAGS.
14727LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14728
14729# Allow CC to be a program name with arguments.
14730compiler=$CC
14731
14732# Save the default compiler, since it gets overwritten when the other
14733# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14734compiler_DEFAULT=$CC
14735
14736# save warnings/boilerplate of simple test code
14737ac_outfile=conftest.$ac_objext
14738echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14739eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14740_lt_compiler_boilerplate=`cat conftest.err`
14741$RM conftest*
14742
14743ac_outfile=conftest.$ac_objext
14744echo "$lt_simple_link_test_code" >conftest.$ac_ext
14745eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14746_lt_linker_boilerplate=`cat conftest.err`
14747$RM -r conftest*
14748
14749
14750## CAVEAT EMPTOR:
14751## There is no encapsulation within the following macros, do not change
14752## the running order or otherwise move them around unless you know exactly
14753## what you are doing...
14754if test -n "$compiler"; then
14755
14756lt_prog_compiler_no_builtin_flag=
14757
14758if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014759 case $cc_basename in
14760 nvcc*)
14761 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14762 *)
14763 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14764 esac
cristy73bd4a52010-10-05 11:24:23 +000014765
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14767$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014768if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014769 $as_echo_n "(cached) " >&6
14770else
14771 lt_cv_prog_compiler_rtti_exceptions=no
14772 ac_outfile=conftest.$ac_objext
14773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14774 lt_compiler_flag="-fno-rtti -fno-exceptions"
14775 # Insert the option either (1) after the last *FLAGS variable, or
14776 # (2) before a word containing "conftest.", or (3) at the end.
14777 # Note that $ac_compile itself does not contain backslashes and begins
14778 # with a dollar sign (not a hyphen), so the echo should work correctly.
14779 # The option is referenced via a variable to avoid confusing sed.
14780 lt_compile=`echo "$ac_compile" | $SED \
14781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14783 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014784 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014785 (eval "$lt_compile" 2>conftest.err)
14786 ac_status=$?
14787 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014789 if (exit $ac_status) && test -s "$ac_outfile"; then
14790 # The compiler can only warn and ignore the option if not recognized
14791 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014792 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14794 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14795 lt_cv_prog_compiler_rtti_exceptions=yes
14796 fi
14797 fi
14798 $RM conftest*
14799
14800fi
14801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14802$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14803
14804if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14805 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14806else
14807 :
14808fi
14809
14810fi
14811
14812
14813
14814
14815
14816
14817 lt_prog_compiler_wl=
14818lt_prog_compiler_pic=
14819lt_prog_compiler_static=
14820
cristy73bd4a52010-10-05 11:24:23 +000014821
14822 if test "$GCC" = yes; then
14823 lt_prog_compiler_wl='-Wl,'
14824 lt_prog_compiler_static='-static'
14825
14826 case $host_os in
14827 aix*)
14828 # All AIX code is PIC.
14829 if test "$host_cpu" = ia64; then
14830 # AIX 5 now supports IA64 processor
14831 lt_prog_compiler_static='-Bstatic'
14832 fi
14833 ;;
14834
14835 amigaos*)
14836 case $host_cpu in
14837 powerpc)
14838 # see comment about AmigaOS4 .so support
14839 lt_prog_compiler_pic='-fPIC'
14840 ;;
14841 m68k)
14842 # FIXME: we need at least 68020 code to build shared libraries, but
14843 # adding the `-m68020' flag to GCC prevents building anything better,
14844 # like `-m68040'.
14845 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14846 ;;
14847 esac
14848 ;;
14849
14850 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14851 # PIC is the default for these OSes.
14852 ;;
14853
14854 mingw* | cygwin* | pw32* | os2* | cegcc*)
14855 # This hack is so that the source file can tell whether it is being
14856 # built for inclusion in a dll (and should export symbols for example).
14857 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14858 # (--disable-auto-import) libraries
14859 lt_prog_compiler_pic='-DDLL_EXPORT'
14860 ;;
14861
14862 darwin* | rhapsody*)
14863 # PIC is the default on this platform
14864 # Common symbols not allowed in MH_DYLIB files
14865 lt_prog_compiler_pic='-fno-common'
14866 ;;
14867
cristy0c60a692010-11-04 01:09:47 +000014868 haiku*)
14869 # PIC is the default for Haiku.
14870 # The "-static" flag exists, but is broken.
14871 lt_prog_compiler_static=
14872 ;;
14873
cristy73bd4a52010-10-05 11:24:23 +000014874 hpux*)
14875 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14876 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14877 # sets the default TLS model and affects inlining.
14878 case $host_cpu in
14879 hppa*64*)
14880 # +Z the default
14881 ;;
14882 *)
14883 lt_prog_compiler_pic='-fPIC'
14884 ;;
14885 esac
14886 ;;
14887
14888 interix[3-9]*)
14889 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14890 # Instead, we relocate shared libraries at runtime.
14891 ;;
14892
14893 msdosdjgpp*)
14894 # Just because we use GCC doesn't mean we suddenly get shared libraries
14895 # on systems that don't support them.
14896 lt_prog_compiler_can_build_shared=no
14897 enable_shared=no
14898 ;;
14899
14900 *nto* | *qnx*)
14901 # QNX uses GNU C++, but need to define -shared option too, otherwise
14902 # it will coredump.
14903 lt_prog_compiler_pic='-fPIC -shared'
14904 ;;
14905
14906 sysv4*MP*)
14907 if test -d /usr/nec; then
14908 lt_prog_compiler_pic=-Kconform_pic
14909 fi
14910 ;;
14911
14912 *)
14913 lt_prog_compiler_pic='-fPIC'
14914 ;;
14915 esac
cristy0c60a692010-11-04 01:09:47 +000014916
14917 case $cc_basename in
14918 nvcc*) # Cuda Compiler Driver 2.2
14919 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014920 if test -n "$lt_prog_compiler_pic"; then
14921 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14922 fi
cristy0c60a692010-11-04 01:09:47 +000014923 ;;
14924 esac
cristy73bd4a52010-10-05 11:24:23 +000014925 else
14926 # PORTME Check for flag to pass linker flags through the system compiler.
14927 case $host_os in
14928 aix*)
14929 lt_prog_compiler_wl='-Wl,'
14930 if test "$host_cpu" = ia64; then
14931 # AIX 5 now supports IA64 processor
14932 lt_prog_compiler_static='-Bstatic'
14933 else
14934 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14935 fi
14936 ;;
14937
14938 mingw* | cygwin* | pw32* | os2* | cegcc*)
14939 # This hack is so that the source file can tell whether it is being
14940 # built for inclusion in a dll (and should export symbols for example).
14941 lt_prog_compiler_pic='-DDLL_EXPORT'
14942 ;;
14943
14944 hpux9* | hpux10* | hpux11*)
14945 lt_prog_compiler_wl='-Wl,'
14946 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14947 # not for PA HP-UX.
14948 case $host_cpu in
14949 hppa*64*|ia64*)
14950 # +Z the default
14951 ;;
14952 *)
14953 lt_prog_compiler_pic='+Z'
14954 ;;
14955 esac
14956 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14957 lt_prog_compiler_static='${wl}-a ${wl}archive'
14958 ;;
14959
14960 irix5* | irix6* | nonstopux*)
14961 lt_prog_compiler_wl='-Wl,'
14962 # PIC (with -KPIC) is the default.
14963 lt_prog_compiler_static='-non_shared'
14964 ;;
14965
cristy0c60a692010-11-04 01:09:47 +000014966 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014967 case $cc_basename in
14968 # old Intel for x86_64 which still supported -KPIC.
14969 ecc*)
14970 lt_prog_compiler_wl='-Wl,'
14971 lt_prog_compiler_pic='-KPIC'
14972 lt_prog_compiler_static='-static'
14973 ;;
14974 # icc used to be incompatible with GCC.
14975 # ICC 10 doesn't accept -KPIC any more.
14976 icc* | ifort*)
14977 lt_prog_compiler_wl='-Wl,'
14978 lt_prog_compiler_pic='-fPIC'
14979 lt_prog_compiler_static='-static'
14980 ;;
14981 # Lahey Fortran 8.1.
14982 lf95*)
14983 lt_prog_compiler_wl='-Wl,'
14984 lt_prog_compiler_pic='--shared'
14985 lt_prog_compiler_static='--static'
14986 ;;
cristyda16f162011-02-19 23:52:17 +000014987 nagfor*)
14988 # NAG Fortran compiler
14989 lt_prog_compiler_wl='-Wl,-Wl,,'
14990 lt_prog_compiler_pic='-PIC'
14991 lt_prog_compiler_static='-Bstatic'
14992 ;;
cristy0c60a692010-11-04 01:09:47 +000014993 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014994 # Portland Group compilers (*not* the Pentium gcc compiler,
14995 # which looks to be a dead project)
14996 lt_prog_compiler_wl='-Wl,'
14997 lt_prog_compiler_pic='-fpic'
14998 lt_prog_compiler_static='-Bstatic'
14999 ;;
15000 ccc*)
15001 lt_prog_compiler_wl='-Wl,'
15002 # All Alpha code is PIC.
15003 lt_prog_compiler_static='-non_shared'
15004 ;;
cristy0c60a692010-11-04 01:09:47 +000015005 xl* | bgxl* | bgf* | mpixl*)
15006 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000015007 lt_prog_compiler_wl='-Wl,'
15008 lt_prog_compiler_pic='-qpic'
15009 lt_prog_compiler_static='-qstaticlink'
15010 ;;
15011 *)
15012 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000015013 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000015014 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15015 lt_prog_compiler_pic='-KPIC'
15016 lt_prog_compiler_static='-Bstatic'
15017 lt_prog_compiler_wl=''
15018 ;;
cristy99bd5232011-12-07 14:38:20 +000015019 *Sun\ F* | *Sun*Fortran*)
15020 lt_prog_compiler_pic='-KPIC'
15021 lt_prog_compiler_static='-Bstatic'
15022 lt_prog_compiler_wl='-Qoption ld '
15023 ;;
cristy73bd4a52010-10-05 11:24:23 +000015024 *Sun\ C*)
15025 # Sun C 5.9
15026 lt_prog_compiler_pic='-KPIC'
15027 lt_prog_compiler_static='-Bstatic'
15028 lt_prog_compiler_wl='-Wl,'
15029 ;;
cristy99bd5232011-12-07 14:38:20 +000015030 *Intel*\ [CF]*Compiler*)
15031 lt_prog_compiler_wl='-Wl,'
15032 lt_prog_compiler_pic='-fPIC'
15033 lt_prog_compiler_static='-static'
15034 ;;
15035 *Portland\ Group*)
15036 lt_prog_compiler_wl='-Wl,'
15037 lt_prog_compiler_pic='-fpic'
15038 lt_prog_compiler_static='-Bstatic'
15039 ;;
cristy73bd4a52010-10-05 11:24:23 +000015040 esac
15041 ;;
15042 esac
15043 ;;
15044
15045 newsos6)
15046 lt_prog_compiler_pic='-KPIC'
15047 lt_prog_compiler_static='-Bstatic'
15048 ;;
15049
15050 *nto* | *qnx*)
15051 # QNX uses GNU C++, but need to define -shared option too, otherwise
15052 # it will coredump.
15053 lt_prog_compiler_pic='-fPIC -shared'
15054 ;;
15055
15056 osf3* | osf4* | osf5*)
15057 lt_prog_compiler_wl='-Wl,'
15058 # All OSF/1 code is PIC.
15059 lt_prog_compiler_static='-non_shared'
15060 ;;
15061
15062 rdos*)
15063 lt_prog_compiler_static='-non_shared'
15064 ;;
15065
15066 solaris*)
15067 lt_prog_compiler_pic='-KPIC'
15068 lt_prog_compiler_static='-Bstatic'
15069 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015070 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000015071 lt_prog_compiler_wl='-Qoption ld ';;
15072 *)
15073 lt_prog_compiler_wl='-Wl,';;
15074 esac
15075 ;;
15076
15077 sunos4*)
15078 lt_prog_compiler_wl='-Qoption ld '
15079 lt_prog_compiler_pic='-PIC'
15080 lt_prog_compiler_static='-Bstatic'
15081 ;;
15082
15083 sysv4 | sysv4.2uw2* | sysv4.3*)
15084 lt_prog_compiler_wl='-Wl,'
15085 lt_prog_compiler_pic='-KPIC'
15086 lt_prog_compiler_static='-Bstatic'
15087 ;;
15088
15089 sysv4*MP*)
15090 if test -d /usr/nec ;then
15091 lt_prog_compiler_pic='-Kconform_pic'
15092 lt_prog_compiler_static='-Bstatic'
15093 fi
15094 ;;
15095
15096 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15097 lt_prog_compiler_wl='-Wl,'
15098 lt_prog_compiler_pic='-KPIC'
15099 lt_prog_compiler_static='-Bstatic'
15100 ;;
15101
15102 unicos*)
15103 lt_prog_compiler_wl='-Wl,'
15104 lt_prog_compiler_can_build_shared=no
15105 ;;
15106
15107 uts4*)
15108 lt_prog_compiler_pic='-pic'
15109 lt_prog_compiler_static='-Bstatic'
15110 ;;
15111
15112 *)
15113 lt_prog_compiler_can_build_shared=no
15114 ;;
15115 esac
15116 fi
15117
15118case $host_os in
15119 # For platforms which do not support PIC, -DPIC is meaningless:
15120 *djgpp*)
15121 lt_prog_compiler_pic=
15122 ;;
15123 *)
15124 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15125 ;;
15126esac
cristy73bd4a52010-10-05 11:24:23 +000015127
cristyda16f162011-02-19 23:52:17 +000015128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15129$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15130if ${lt_cv_prog_compiler_pic+:} false; then :
15131 $as_echo_n "(cached) " >&6
15132else
15133 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15134fi
15135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15136$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15137lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000015138
15139#
15140# Check to make sure the PIC flag actually works.
15141#
15142if test -n "$lt_prog_compiler_pic"; then
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15144$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015145if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015146 $as_echo_n "(cached) " >&6
15147else
15148 lt_cv_prog_compiler_pic_works=no
15149 ac_outfile=conftest.$ac_objext
15150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15151 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15152 # Insert the option either (1) after the last *FLAGS variable, or
15153 # (2) before a word containing "conftest.", or (3) at the end.
15154 # Note that $ac_compile itself does not contain backslashes and begins
15155 # with a dollar sign (not a hyphen), so the echo should work correctly.
15156 # The option is referenced via a variable to avoid confusing sed.
15157 lt_compile=`echo "$ac_compile" | $SED \
15158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15160 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015161 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015162 (eval "$lt_compile" 2>conftest.err)
15163 ac_status=$?
15164 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015166 if (exit $ac_status) && test -s "$ac_outfile"; then
15167 # The compiler can only warn and ignore the option if not recognized
15168 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000015169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15171 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15172 lt_cv_prog_compiler_pic_works=yes
15173 fi
15174 fi
15175 $RM conftest*
15176
15177fi
15178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15179$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15180
15181if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15182 case $lt_prog_compiler_pic in
15183 "" | " "*) ;;
15184 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15185 esac
15186else
15187 lt_prog_compiler_pic=
15188 lt_prog_compiler_can_build_shared=no
15189fi
15190
15191fi
15192
15193
15194
15195
15196
15197
cristyda16f162011-02-19 23:52:17 +000015198
15199
15200
15201
15202
cristy73bd4a52010-10-05 11:24:23 +000015203#
15204# Check to make sure the static flag actually works.
15205#
15206wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15208$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015209if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015210 $as_echo_n "(cached) " >&6
15211else
15212 lt_cv_prog_compiler_static_works=no
15213 save_LDFLAGS="$LDFLAGS"
15214 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15215 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15216 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15217 # The linker can only warn and ignore the option if not recognized
15218 # So say no if there are warnings
15219 if test -s conftest.err; then
15220 # Append any errors to the config.log.
15221 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000015222 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15224 if diff conftest.exp conftest.er2 >/dev/null; then
15225 lt_cv_prog_compiler_static_works=yes
15226 fi
15227 else
15228 lt_cv_prog_compiler_static_works=yes
15229 fi
15230 fi
15231 $RM -r conftest*
15232 LDFLAGS="$save_LDFLAGS"
15233
15234fi
15235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15236$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15237
15238if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15239 :
15240else
15241 lt_prog_compiler_static=
15242fi
15243
15244
15245
15246
15247
15248
15249
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15251$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015252if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015253 $as_echo_n "(cached) " >&6
15254else
15255 lt_cv_prog_compiler_c_o=no
15256 $RM -r conftest 2>/dev/null
15257 mkdir conftest
15258 cd conftest
15259 mkdir out
15260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15261
15262 lt_compiler_flag="-o out/conftest2.$ac_objext"
15263 # Insert the option either (1) after the last *FLAGS variable, or
15264 # (2) before a word containing "conftest.", or (3) at the end.
15265 # Note that $ac_compile itself does not contain backslashes and begins
15266 # with a dollar sign (not a hyphen), so the echo should work correctly.
15267 lt_compile=`echo "$ac_compile" | $SED \
15268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15270 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015272 (eval "$lt_compile" 2>out/conftest.err)
15273 ac_status=$?
15274 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015276 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15277 then
15278 # The compiler can only warn and ignore the option if not recognized
15279 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015280 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015281 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15282 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15283 lt_cv_prog_compiler_c_o=yes
15284 fi
15285 fi
15286 chmod u+w . 2>&5
15287 $RM conftest*
15288 # SGI C++ compiler will create directory out/ii_files/ for
15289 # template instantiation
15290 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15291 $RM out/* && rmdir out
15292 cd ..
15293 $RM -r conftest
15294 $RM conftest*
15295
15296fi
15297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15298$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15299
15300
15301
15302
15303
15304
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15306$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015307if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015308 $as_echo_n "(cached) " >&6
15309else
15310 lt_cv_prog_compiler_c_o=no
15311 $RM -r conftest 2>/dev/null
15312 mkdir conftest
15313 cd conftest
15314 mkdir out
15315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15316
15317 lt_compiler_flag="-o out/conftest2.$ac_objext"
15318 # Insert the option either (1) after the last *FLAGS variable, or
15319 # (2) before a word containing "conftest.", or (3) at the end.
15320 # Note that $ac_compile itself does not contain backslashes and begins
15321 # with a dollar sign (not a hyphen), so the echo should work correctly.
15322 lt_compile=`echo "$ac_compile" | $SED \
15323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15325 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015326 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015327 (eval "$lt_compile" 2>out/conftest.err)
15328 ac_status=$?
15329 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015331 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15332 then
15333 # The compiler can only warn and ignore the option if not recognized
15334 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015336 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15337 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15338 lt_cv_prog_compiler_c_o=yes
15339 fi
15340 fi
15341 chmod u+w . 2>&5
15342 $RM conftest*
15343 # SGI C++ compiler will create directory out/ii_files/ for
15344 # template instantiation
15345 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15346 $RM out/* && rmdir out
15347 cd ..
15348 $RM -r conftest
15349 $RM conftest*
15350
15351fi
15352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15353$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15354
15355
15356
15357
15358hard_links="nottested"
15359if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15360 # do not overwrite the value of need_locks provided by the user
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15362$as_echo_n "checking if we can lock with hard links... " >&6; }
15363 hard_links=yes
15364 $RM conftest*
15365 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15366 touch conftest.a
15367 ln conftest.a conftest.b 2>&5 || hard_links=no
15368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15370$as_echo "$hard_links" >&6; }
15371 if test "$hard_links" = no; then
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15373$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15374 need_locks=warn
15375 fi
15376else
15377 need_locks=no
15378fi
15379
15380
15381
15382
15383
15384
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15386$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15387
15388 runpath_var=
15389 allow_undefined_flag=
15390 always_export_symbols=no
15391 archive_cmds=
15392 archive_expsym_cmds=
15393 compiler_needs_object=no
15394 enable_shared_with_static_runtimes=no
15395 export_dynamic_flag_spec=
15396 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15397 hardcode_automatic=no
15398 hardcode_direct=no
15399 hardcode_direct_absolute=no
15400 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015401 hardcode_libdir_separator=
15402 hardcode_minus_L=no
15403 hardcode_shlibpath_var=unsupported
15404 inherit_rpath=no
15405 link_all_deplibs=unknown
15406 module_cmds=
15407 module_expsym_cmds=
15408 old_archive_from_new_cmds=
15409 old_archive_from_expsyms_cmds=
15410 thread_safe_flag_spec=
15411 whole_archive_flag_spec=
15412 # include_expsyms should be a list of space-separated symbols to be *always*
15413 # included in the symbol list
15414 include_expsyms=
15415 # exclude_expsyms can be an extended regexp of symbols to exclude
15416 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15417 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15418 # as well as any symbol that contains `d'.
15419 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15420 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15421 # platforms (ab)use it in PIC code, but their linkers get confused if
15422 # the symbol is explicitly referenced. Since portable code cannot
15423 # rely on this symbol name, it's probably fine to never include it in
15424 # preloaded symbol tables.
15425 # Exclude shared library initialization/finalization symbols.
15426 extract_expsyms_cmds=
15427
15428 case $host_os in
15429 cygwin* | mingw* | pw32* | cegcc*)
15430 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15431 # When not using gcc, we currently assume that we are using
15432 # Microsoft Visual C++.
15433 if test "$GCC" != yes; then
15434 with_gnu_ld=no
15435 fi
15436 ;;
15437 interix*)
15438 # we just hope/assume this is gcc and not c89 (= MSVC++)
15439 with_gnu_ld=yes
15440 ;;
15441 openbsd*)
15442 with_gnu_ld=no
15443 ;;
15444 esac
15445
15446 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015447
15448 # On some targets, GNU ld is compatible enough with the native linker
15449 # that we're better off using the native interface for both.
15450 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015451 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015452 case $host_os in
15453 aix*)
15454 # The AIX port of GNU ld has always aspired to compatibility
15455 # with the native linker. However, as the warning in the GNU ld
15456 # block says, versions before 2.19.5* couldn't really create working
15457 # shared libraries, regardless of the interface used.
15458 case `$LD -v 2>&1` in
15459 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15460 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15461 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15462 *)
15463 lt_use_gnu_ld_interface=yes
15464 ;;
15465 esac
15466 ;;
15467 *)
15468 lt_use_gnu_ld_interface=yes
15469 ;;
15470 esac
15471 fi
15472
15473 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015474 # If archive_cmds runs LD, not CC, wlarc should be empty
15475 wlarc='${wl}'
15476
15477 # Set some defaults for GNU ld with shared library support. These
15478 # are reset later if shared libraries are not supported. Putting them
15479 # here allows them to be overridden if necessary.
15480 runpath_var=LD_RUN_PATH
15481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15482 export_dynamic_flag_spec='${wl}--export-dynamic'
15483 # ancient GNU ld didn't support --whole-archive et. al.
15484 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15485 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15486 else
15487 whole_archive_flag_spec=
15488 fi
15489 supports_anon_versioning=no
15490 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015491 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015492 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15493 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15494 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15495 *\ 2.11.*) ;; # other 2.11 versions
15496 *) supports_anon_versioning=yes ;;
15497 esac
15498
15499 # See if GNU ld supports shared libraries.
15500 case $host_os in
15501 aix[3-9]*)
15502 # On AIX/PPC, the GNU linker is very broken
15503 if test "$host_cpu" != ia64; then
15504 ld_shlibs=no
15505 cat <<_LT_EOF 1>&2
15506
cristy0c60a692010-11-04 01:09:47 +000015507*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015508*** to be unable to reliably create shared libraries on AIX.
15509*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015510*** really care for shared libraries, you may want to install binutils
15511*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15512*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015513
15514_LT_EOF
15515 fi
15516 ;;
15517
15518 amigaos*)
15519 case $host_cpu in
15520 powerpc)
15521 # see comment about AmigaOS4 .so support
15522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15523 archive_expsym_cmds=''
15524 ;;
15525 m68k)
15526 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)'
15527 hardcode_libdir_flag_spec='-L$libdir'
15528 hardcode_minus_L=yes
15529 ;;
15530 esac
15531 ;;
15532
15533 beos*)
15534 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15535 allow_undefined_flag=unsupported
15536 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15537 # support --undefined. This deserves some investigation. FIXME
15538 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15539 else
15540 ld_shlibs=no
15541 fi
15542 ;;
15543
15544 cygwin* | mingw* | pw32* | cegcc*)
15545 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15546 # as there is no search path for DLLs.
15547 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015548 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015549 allow_undefined_flag=unsupported
15550 always_export_symbols=no
15551 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015552 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'
15553 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 +000015554
15555 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15557 # If the export-symbols file already is a .def file (1st line
15558 # is EXPORTS), use it as is; otherwise, prepend...
15559 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15560 cp $export_symbols $output_objdir/$soname.def;
15561 else
15562 echo EXPORTS > $output_objdir/$soname.def;
15563 cat $export_symbols >> $output_objdir/$soname.def;
15564 fi~
15565 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15566 else
15567 ld_shlibs=no
15568 fi
15569 ;;
15570
cristy0c60a692010-11-04 01:09:47 +000015571 haiku*)
15572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15573 link_all_deplibs=yes
15574 ;;
15575
cristy73bd4a52010-10-05 11:24:23 +000015576 interix[3-9]*)
15577 hardcode_direct=no
15578 hardcode_shlibpath_var=no
15579 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15580 export_dynamic_flag_spec='${wl}-E'
15581 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15582 # Instead, shared libraries are loaded at an image base (0x10000000 by
15583 # default) and relocated if they conflict, which is a slow very memory
15584 # consuming and fragmenting process. To avoid this, we pick a random,
15585 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15586 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15587 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15588 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'
15589 ;;
15590
cristy0c60a692010-11-04 01:09:47 +000015591 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015592 tmp_diet=no
15593 if test "$host_os" = linux-dietlibc; then
15594 case $cc_basename in
15595 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15596 esac
15597 fi
15598 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15599 && test "$tmp_diet" = no
15600 then
cristyda16f162011-02-19 23:52:17 +000015601 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015602 tmp_sharedflag='-shared'
15603 case $cc_basename,$host_cpu in
15604 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015605 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 +000015606 tmp_addflag=' $pic_flag'
15607 ;;
cristy0c60a692010-11-04 01:09:47 +000015608 pgf77* | pgf90* | pgf95* | pgfortran*)
15609 # Portland Group f77 and f90 compilers
15610 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 +000015611 tmp_addflag=' $pic_flag -Mnomain' ;;
15612 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15613 tmp_addflag=' -i_dynamic' ;;
15614 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15615 tmp_addflag=' -i_dynamic -nofor_main' ;;
15616 ifc* | ifort*) # Intel Fortran compiler
15617 tmp_addflag=' -nofor_main' ;;
15618 lf95*) # Lahey Fortran 8.1
15619 whole_archive_flag_spec=
15620 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015621 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015622 tmp_sharedflag='-qmkshrobj'
15623 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015624 nvcc*) # Cuda Compiler Driver 2.2
15625 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'
15626 compiler_needs_object=yes
15627 ;;
cristy73bd4a52010-10-05 11:24:23 +000015628 esac
15629 case `$CC -V 2>&1 | sed 5q` in
15630 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015631 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 +000015632 compiler_needs_object=yes
15633 tmp_sharedflag='-G' ;;
15634 *Sun\ F*) # Sun Fortran 8.3
15635 tmp_sharedflag='-G' ;;
15636 esac
15637 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15638
15639 if test "x$supports_anon_versioning" = xyes; then
15640 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15641 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15642 echo "local: *; };" >> $output_objdir/$libname.ver~
15643 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15644 fi
15645
15646 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015647 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015648 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15649 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015650 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015651 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015652 if test "x$supports_anon_versioning" = xyes; then
15653 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15654 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15655 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015656 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015657 fi
15658 ;;
15659 esac
15660 else
15661 ld_shlibs=no
15662 fi
15663 ;;
15664
15665 netbsd*)
15666 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15667 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15668 wlarc=
15669 else
cristyda16f162011-02-19 23:52:17 +000015670 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15671 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 +000015672 fi
15673 ;;
15674
15675 solaris*)
15676 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15677 ld_shlibs=no
15678 cat <<_LT_EOF 1>&2
15679
15680*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15681*** create shared libraries on Solaris systems. Therefore, libtool
15682*** is disabling shared libraries support. We urge you to upgrade GNU
15683*** binutils to release 2.9.1 or newer. Another option is to modify
15684*** your PATH or compiler configuration so that the native linker is
15685*** used, and then restart.
15686
15687_LT_EOF
15688 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015689 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15690 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 +000015691 else
15692 ld_shlibs=no
15693 fi
15694 ;;
15695
15696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15697 case `$LD -v 2>&1` in
15698 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15699 ld_shlibs=no
15700 cat <<_LT_EOF 1>&2
15701
15702*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15703*** reliably create shared libraries on SCO systems. Therefore, libtool
15704*** is disabling shared libraries support. We urge you to upgrade GNU
15705*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15706*** your PATH or compiler configuration so that the native linker is
15707*** used, and then restart.
15708
15709_LT_EOF
15710 ;;
15711 *)
15712 # For security reasons, it is highly recommended that you always
15713 # use absolute paths for naming shared libraries, and exclude the
15714 # DT_RUNPATH tag from executables and libraries. But doing so
15715 # requires that you compile everything twice, which is a pain.
15716 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15719 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15720 else
15721 ld_shlibs=no
15722 fi
15723 ;;
15724 esac
15725 ;;
15726
15727 sunos4*)
15728 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15729 wlarc=
15730 hardcode_direct=yes
15731 hardcode_shlibpath_var=no
15732 ;;
15733
15734 *)
15735 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015736 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15737 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 +000015738 else
15739 ld_shlibs=no
15740 fi
15741 ;;
15742 esac
15743
15744 if test "$ld_shlibs" = no; then
15745 runpath_var=
15746 hardcode_libdir_flag_spec=
15747 export_dynamic_flag_spec=
15748 whole_archive_flag_spec=
15749 fi
15750 else
15751 # PORTME fill in a description of your system's linker (not GNU ld)
15752 case $host_os in
15753 aix3*)
15754 allow_undefined_flag=unsupported
15755 always_export_symbols=yes
15756 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'
15757 # Note: this linker hardcodes the directories in LIBPATH if there
15758 # are no directories specified by -L.
15759 hardcode_minus_L=yes
15760 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15761 # Neither direct hardcoding nor static linking is supported with a
15762 # broken collect2.
15763 hardcode_direct=unsupported
15764 fi
15765 ;;
15766
15767 aix[4-9]*)
15768 if test "$host_cpu" = ia64; then
15769 # On IA64, the linker does run time linking by default, so we don't
15770 # have to do anything special.
15771 aix_use_runtimelinking=no
15772 exp_sym_flag='-Bexport'
15773 no_entry_flag=""
15774 else
15775 # If we're using GNU nm, then we don't want the "-C" option.
15776 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015777 # Also, AIX nm treats weak defined symbols like other global
15778 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015779 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015780 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 +000015781 else
15782 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'
15783 fi
15784 aix_use_runtimelinking=no
15785
15786 # Test if we are trying to use run time linking or normal
15787 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15788 # need to do runtime linking.
15789 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15790 for ld_flag in $LDFLAGS; do
15791 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15792 aix_use_runtimelinking=yes
15793 break
15794 fi
15795 done
15796 ;;
15797 esac
15798
15799 exp_sym_flag='-bexport'
15800 no_entry_flag='-bnoentry'
15801 fi
15802
15803 # When large executables or shared objects are built, AIX ld can
15804 # have problems creating the table of contents. If linking a library
15805 # or program results in "error TOC overflow" add -mminimal-toc to
15806 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15807 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15808
15809 archive_cmds=''
15810 hardcode_direct=yes
15811 hardcode_direct_absolute=yes
15812 hardcode_libdir_separator=':'
15813 link_all_deplibs=yes
15814 file_list_spec='${wl}-f,'
15815
15816 if test "$GCC" = yes; then
15817 case $host_os in aix4.[012]|aix4.[012].*)
15818 # We only want to do this on AIX 4.2 and lower, the check
15819 # below for broken collect2 doesn't work under 4.3+
15820 collect2name=`${CC} -print-prog-name=collect2`
15821 if test -f "$collect2name" &&
15822 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15823 then
15824 # We have reworked collect2
15825 :
15826 else
15827 # We have old collect2
15828 hardcode_direct=unsupported
15829 # It fails to find uninstalled libraries when the uninstalled
15830 # path is not listed in the libpath. Setting hardcode_minus_L
15831 # to unsupported forces relinking
15832 hardcode_minus_L=yes
15833 hardcode_libdir_flag_spec='-L$libdir'
15834 hardcode_libdir_separator=
15835 fi
15836 ;;
15837 esac
15838 shared_flag='-shared'
15839 if test "$aix_use_runtimelinking" = yes; then
15840 shared_flag="$shared_flag "'${wl}-G'
15841 fi
15842 else
15843 # not using gcc
15844 if test "$host_cpu" = ia64; then
15845 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15846 # chokes on -Wl,-G. The following line is correct:
15847 shared_flag='-G'
15848 else
15849 if test "$aix_use_runtimelinking" = yes; then
15850 shared_flag='${wl}-G'
15851 else
15852 shared_flag='${wl}-bM:SRE'
15853 fi
15854 fi
15855 fi
15856
15857 export_dynamic_flag_spec='${wl}-bexpall'
15858 # It seems that -bexpall does not export symbols beginning with
15859 # underscore (_), so it is better to generate a list of symbols to export.
15860 always_export_symbols=yes
15861 if test "$aix_use_runtimelinking" = yes; then
15862 # Warning - without using the other runtime loading flags (-brtl),
15863 # -berok will link without error, but may produce a broken library.
15864 allow_undefined_flag='-berok'
15865 # Determine the default libpath from the value encoded in an
15866 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015867 if test "${lt_cv_aix_libpath+set}" = set; then
15868 aix_libpath=$lt_cv_aix_libpath
15869else
15870 if ${lt_cv_aix_libpath_+:} false; then :
15871 $as_echo_n "(cached) " >&6
15872else
15873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015874/* end confdefs.h. */
15875
15876int
15877main ()
15878{
15879
15880 ;
15881 return 0;
15882}
15883_ACEOF
15884if ac_fn_c_try_link "$LINENO"; then :
15885
cristyda16f162011-02-19 23:52:17 +000015886 lt_aix_libpath_sed='
15887 /Import File Strings/,/^$/ {
15888 /^0/ {
15889 s/^0 *\([^ ]*\) *$/\1/
15890 p
15891 }
15892 }'
15893 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15894 # Check for a 64-bit object if we didn't find anything.
15895 if test -z "$lt_cv_aix_libpath_"; then
15896 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15897 fi
cristy73bd4a52010-10-05 11:24:23 +000015898fi
15899rm -f core conftest.err conftest.$ac_objext \
15900 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015901 if test -z "$lt_cv_aix_libpath_"; then
15902 lt_cv_aix_libpath_="/usr/lib:/lib"
15903 fi
15904
15905fi
15906
15907 aix_libpath=$lt_cv_aix_libpath_
15908fi
cristy73bd4a52010-10-05 11:24:23 +000015909
15910 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015911 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 +000015912 else
15913 if test "$host_cpu" = ia64; then
15914 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15915 allow_undefined_flag="-z nodefs"
15916 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"
15917 else
15918 # Determine the default libpath from the value encoded in an
15919 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015920 if test "${lt_cv_aix_libpath+set}" = set; then
15921 aix_libpath=$lt_cv_aix_libpath
15922else
15923 if ${lt_cv_aix_libpath_+:} false; then :
15924 $as_echo_n "(cached) " >&6
15925else
15926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015927/* end confdefs.h. */
15928
15929int
15930main ()
15931{
15932
15933 ;
15934 return 0;
15935}
15936_ACEOF
15937if ac_fn_c_try_link "$LINENO"; then :
15938
cristyda16f162011-02-19 23:52:17 +000015939 lt_aix_libpath_sed='
15940 /Import File Strings/,/^$/ {
15941 /^0/ {
15942 s/^0 *\([^ ]*\) *$/\1/
15943 p
15944 }
15945 }'
15946 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15947 # Check for a 64-bit object if we didn't find anything.
15948 if test -z "$lt_cv_aix_libpath_"; then
15949 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15950 fi
cristy73bd4a52010-10-05 11:24:23 +000015951fi
15952rm -f core conftest.err conftest.$ac_objext \
15953 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015954 if test -z "$lt_cv_aix_libpath_"; then
15955 lt_cv_aix_libpath_="/usr/lib:/lib"
15956 fi
15957
15958fi
15959
15960 aix_libpath=$lt_cv_aix_libpath_
15961fi
cristy73bd4a52010-10-05 11:24:23 +000015962
15963 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15964 # Warning - without using the other run time loading flags,
15965 # -berok will link without error, but may produce a broken library.
15966 no_undefined_flag=' ${wl}-bernotok'
15967 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015968 if test "$with_gnu_ld" = yes; then
15969 # We only use this code for GNU lds that support --whole-archive.
15970 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15971 else
15972 # Exported symbols can be pulled into shared objects from archives
15973 whole_archive_flag_spec='$convenience'
15974 fi
cristy73bd4a52010-10-05 11:24:23 +000015975 archive_cmds_need_lc=yes
15976 # This is similar to how AIX traditionally builds its shared libraries.
15977 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'
15978 fi
15979 fi
15980 ;;
15981
15982 amigaos*)
15983 case $host_cpu in
15984 powerpc)
15985 # see comment about AmigaOS4 .so support
15986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15987 archive_expsym_cmds=''
15988 ;;
15989 m68k)
15990 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)'
15991 hardcode_libdir_flag_spec='-L$libdir'
15992 hardcode_minus_L=yes
15993 ;;
15994 esac
15995 ;;
15996
15997 bsdi[45]*)
15998 export_dynamic_flag_spec=-rdynamic
15999 ;;
16000
16001 cygwin* | mingw* | pw32* | cegcc*)
16002 # When not using gcc, we currently assume that we are using
16003 # Microsoft Visual C++.
16004 # hardcode_libdir_flag_spec is actually meaningless, as there is
16005 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000016006 case $cc_basename in
16007 cl*)
16008 # Native MSVC
16009 hardcode_libdir_flag_spec=' '
16010 allow_undefined_flag=unsupported
16011 always_export_symbols=yes
16012 file_list_spec='@'
16013 # Tell ltmain to make .lib files, not .a files.
16014 libext=lib
16015 # Tell ltmain to make .dll files, not .so files.
16016 shrext_cmds=".dll"
16017 # FIXME: Setting linknames here is a bad hack.
16018 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16019 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16020 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16021 else
16022 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16023 fi~
16024 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16025 linknames='
16026 # The linker will not automatically build a static lib if we build a DLL.
16027 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16028 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000016029 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000016030 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16031 # Don't use ranlib
16032 old_postinstall_cmds='chmod 644 $oldlib'
16033 postlink_cmds='lt_outputfile="@OUTPUT@"~
16034 lt_tool_outputfile="@TOOL_OUTPUT@"~
16035 case $lt_outputfile in
16036 *.exe|*.EXE) ;;
16037 *)
16038 lt_outputfile="$lt_outputfile.exe"
16039 lt_tool_outputfile="$lt_tool_outputfile.exe"
16040 ;;
16041 esac~
16042 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16043 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16044 $RM "$lt_outputfile.manifest";
16045 fi'
16046 ;;
16047 *)
16048 # Assume MSVC wrapper
16049 hardcode_libdir_flag_spec=' '
16050 allow_undefined_flag=unsupported
16051 # Tell ltmain to make .lib files, not .a files.
16052 libext=lib
16053 # Tell ltmain to make .dll files, not .so files.
16054 shrext_cmds=".dll"
16055 # FIXME: Setting linknames here is a bad hack.
16056 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16057 # The linker will automatically build a .lib file if we build a DLL.
16058 old_archive_from_new_cmds='true'
16059 # FIXME: Should let the user specify the lib program.
16060 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16061 enable_shared_with_static_runtimes=yes
16062 ;;
16063 esac
cristy73bd4a52010-10-05 11:24:23 +000016064 ;;
16065
16066 darwin* | rhapsody*)
16067
16068
16069 archive_cmds_need_lc=no
16070 hardcode_direct=no
16071 hardcode_automatic=yes
16072 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000016073 if test "$lt_cv_ld_force_load" = "yes"; then
16074 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 +000016075
cristy0c60a692010-11-04 01:09:47 +000016076 else
16077 whole_archive_flag_spec=''
16078 fi
cristy73bd4a52010-10-05 11:24:23 +000016079 link_all_deplibs=yes
16080 allow_undefined_flag="$_lt_dar_allow_undefined"
16081 case $cc_basename in
16082 ifort*) _lt_dar_can_shared=yes ;;
16083 *) _lt_dar_can_shared=$GCC ;;
16084 esac
16085 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000016086 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016087 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16088 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16089 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}"
16090 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}"
16091
16092 else
16093 ld_shlibs=no
16094 fi
16095
16096 ;;
16097
16098 dgux*)
16099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16100 hardcode_libdir_flag_spec='-L$libdir'
16101 hardcode_shlibpath_var=no
16102 ;;
16103
cristy73bd4a52010-10-05 11:24:23 +000016104 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16105 # support. Future versions do this automatically, but an explicit c++rt0.o
16106 # does not break anything, and helps significantly (at the cost of a little
16107 # extra space).
16108 freebsd2.2*)
16109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16110 hardcode_libdir_flag_spec='-R$libdir'
16111 hardcode_direct=yes
16112 hardcode_shlibpath_var=no
16113 ;;
16114
16115 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000016116 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016117 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16118 hardcode_direct=yes
16119 hardcode_minus_L=yes
16120 hardcode_shlibpath_var=no
16121 ;;
16122
16123 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16124 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000016125 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016126 hardcode_libdir_flag_spec='-R$libdir'
16127 hardcode_direct=yes
16128 hardcode_shlibpath_var=no
16129 ;;
16130
16131 hpux9*)
16132 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016133 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 +000016134 else
16135 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'
16136 fi
16137 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16138 hardcode_libdir_separator=:
16139 hardcode_direct=yes
16140
16141 # hardcode_minus_L: Not really in the search PATH,
16142 # but as the default location of the library.
16143 hardcode_minus_L=yes
16144 export_dynamic_flag_spec='${wl}-E'
16145 ;;
16146
16147 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000016148 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000016149 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 +000016150 else
16151 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16152 fi
16153 if test "$with_gnu_ld" = no; then
16154 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016155 hardcode_libdir_separator=:
16156 hardcode_direct=yes
16157 hardcode_direct_absolute=yes
16158 export_dynamic_flag_spec='${wl}-E'
16159 # hardcode_minus_L: Not really in the search PATH,
16160 # but as the default location of the library.
16161 hardcode_minus_L=yes
16162 fi
16163 ;;
16164
16165 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000016166 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000016167 case $host_cpu in
16168 hppa*64*)
16169 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16170 ;;
16171 ia64*)
cristyda16f162011-02-19 23:52:17 +000016172 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016173 ;;
16174 *)
cristyda16f162011-02-19 23:52:17 +000016175 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 +000016176 ;;
16177 esac
16178 else
16179 case $host_cpu in
16180 hppa*64*)
16181 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16182 ;;
16183 ia64*)
16184 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16185 ;;
16186 *)
cristy0c60a692010-11-04 01:09:47 +000016187
16188 # Older versions of the 11.00 compiler do not understand -b yet
16189 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16191$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016192if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016193 $as_echo_n "(cached) " >&6
16194else
16195 lt_cv_prog_compiler__b=no
16196 save_LDFLAGS="$LDFLAGS"
16197 LDFLAGS="$LDFLAGS -b"
16198 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16199 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16200 # The linker can only warn and ignore the option if not recognized
16201 # So say no if there are warnings
16202 if test -s conftest.err; then
16203 # Append any errors to the config.log.
16204 cat conftest.err 1>&5
16205 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16207 if diff conftest.exp conftest.er2 >/dev/null; then
16208 lt_cv_prog_compiler__b=yes
16209 fi
16210 else
16211 lt_cv_prog_compiler__b=yes
16212 fi
16213 fi
16214 $RM -r conftest*
16215 LDFLAGS="$save_LDFLAGS"
16216
16217fi
16218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16219$as_echo "$lt_cv_prog_compiler__b" >&6; }
16220
16221if test x"$lt_cv_prog_compiler__b" = xyes; then
16222 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16223else
16224 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16225fi
16226
cristy73bd4a52010-10-05 11:24:23 +000016227 ;;
16228 esac
16229 fi
16230 if test "$with_gnu_ld" = no; then
16231 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16232 hardcode_libdir_separator=:
16233
16234 case $host_cpu in
16235 hppa*64*|ia64*)
16236 hardcode_direct=no
16237 hardcode_shlibpath_var=no
16238 ;;
16239 *)
16240 hardcode_direct=yes
16241 hardcode_direct_absolute=yes
16242 export_dynamic_flag_spec='${wl}-E'
16243
16244 # hardcode_minus_L: Not really in the search PATH,
16245 # but as the default location of the library.
16246 hardcode_minus_L=yes
16247 ;;
16248 esac
16249 fi
16250 ;;
16251
16252 irix5* | irix6* | nonstopux*)
16253 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016254 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 +000016255 # Try to use the -exported_symbol ld option, if it does not
16256 # work, assume that -exports_file does not work either and
16257 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016258 # This should be the same for all languages, so no per-tag cache variable.
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16260$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16261if ${lt_cv_irix_exported_symbol+:} false; then :
16262 $as_echo_n "(cached) " >&6
16263else
16264 save_LDFLAGS="$LDFLAGS"
16265 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016267/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016268int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016269_ACEOF
16270if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016271 lt_cv_irix_exported_symbol=yes
16272else
16273 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016274fi
16275rm -f core conftest.err conftest.$ac_objext \
16276 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016277 LDFLAGS="$save_LDFLAGS"
16278fi
16279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16280$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16281 if test "$lt_cv_irix_exported_symbol" = yes; then
16282 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'
16283 fi
cristy73bd4a52010-10-05 11:24:23 +000016284 else
cristy0c60a692010-11-04 01:09:47 +000016285 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'
16286 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 +000016287 fi
16288 archive_cmds_need_lc='no'
16289 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16290 hardcode_libdir_separator=:
16291 inherit_rpath=yes
16292 link_all_deplibs=yes
16293 ;;
16294
16295 netbsd*)
16296 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16298 else
16299 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16300 fi
16301 hardcode_libdir_flag_spec='-R$libdir'
16302 hardcode_direct=yes
16303 hardcode_shlibpath_var=no
16304 ;;
16305
16306 newsos6)
16307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16308 hardcode_direct=yes
16309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16310 hardcode_libdir_separator=:
16311 hardcode_shlibpath_var=no
16312 ;;
16313
16314 *nto* | *qnx*)
16315 ;;
16316
16317 openbsd*)
16318 if test -f /usr/libexec/ld.so; then
16319 hardcode_direct=yes
16320 hardcode_shlibpath_var=no
16321 hardcode_direct_absolute=yes
16322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16324 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16326 export_dynamic_flag_spec='${wl}-E'
16327 else
16328 case $host_os in
16329 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16331 hardcode_libdir_flag_spec='-R$libdir'
16332 ;;
16333 *)
16334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16335 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16336 ;;
16337 esac
16338 fi
16339 else
16340 ld_shlibs=no
16341 fi
16342 ;;
16343
16344 os2*)
16345 hardcode_libdir_flag_spec='-L$libdir'
16346 hardcode_minus_L=yes
16347 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016348 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 +000016349 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16350 ;;
16351
16352 osf3*)
16353 if test "$GCC" = yes; then
16354 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016355 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 +000016356 else
16357 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016358 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 +000016359 fi
16360 archive_cmds_need_lc='no'
16361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16362 hardcode_libdir_separator=:
16363 ;;
16364
16365 osf4* | osf5*) # as osf3* with the addition of -msym flag
16366 if test "$GCC" = yes; then
16367 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016368 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 +000016369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16370 else
16371 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016372 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 +000016373 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 +000016374 $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 +000016375
16376 # Both c and cxx compiler support -rpath directly
16377 hardcode_libdir_flag_spec='-rpath $libdir'
16378 fi
16379 archive_cmds_need_lc='no'
16380 hardcode_libdir_separator=:
16381 ;;
16382
16383 solaris*)
16384 no_undefined_flag=' -z defs'
16385 if test "$GCC" = yes; then
16386 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016387 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 +000016388 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 +000016389 $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 +000016390 else
16391 case `$CC -V 2>&1` in
16392 *"Compilers 5.0"*)
16393 wlarc=''
16394 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16395 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16397 ;;
16398 *)
16399 wlarc='${wl}'
16400 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16401 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16402 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16403 ;;
16404 esac
16405 fi
16406 hardcode_libdir_flag_spec='-R$libdir'
16407 hardcode_shlibpath_var=no
16408 case $host_os in
16409 solaris2.[0-5] | solaris2.[0-5].*) ;;
16410 *)
16411 # The compiler driver will combine and reorder linker options,
16412 # but understands `-z linker_flag'. GCC discards it without `$wl',
16413 # but is careful enough not to reorder.
16414 # Supported since Solaris 2.6 (maybe 2.5.1?)
16415 if test "$GCC" = yes; then
16416 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16417 else
16418 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16419 fi
16420 ;;
16421 esac
16422 link_all_deplibs=yes
16423 ;;
16424
16425 sunos4*)
16426 if test "x$host_vendor" = xsequent; then
16427 # Use $CC to link under sequent, because it throws in some extra .o
16428 # files that make .init and .fini sections work.
16429 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16430 else
16431 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16432 fi
16433 hardcode_libdir_flag_spec='-L$libdir'
16434 hardcode_direct=yes
16435 hardcode_minus_L=yes
16436 hardcode_shlibpath_var=no
16437 ;;
16438
16439 sysv4)
16440 case $host_vendor in
16441 sni)
16442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16443 hardcode_direct=yes # is this really true???
16444 ;;
16445 siemens)
16446 ## LD is ld it makes a PLAMLIB
16447 ## CC just makes a GrossModule.
16448 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16449 reload_cmds='$CC -r -o $output$reload_objs'
16450 hardcode_direct=no
16451 ;;
16452 motorola)
16453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16454 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16455 ;;
16456 esac
16457 runpath_var='LD_RUN_PATH'
16458 hardcode_shlibpath_var=no
16459 ;;
16460
16461 sysv4.3*)
16462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16463 hardcode_shlibpath_var=no
16464 export_dynamic_flag_spec='-Bexport'
16465 ;;
16466
16467 sysv4*MP*)
16468 if test -d /usr/nec; then
16469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16470 hardcode_shlibpath_var=no
16471 runpath_var=LD_RUN_PATH
16472 hardcode_runpath_var=yes
16473 ld_shlibs=yes
16474 fi
16475 ;;
16476
16477 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16478 no_undefined_flag='${wl}-z,text'
16479 archive_cmds_need_lc=no
16480 hardcode_shlibpath_var=no
16481 runpath_var='LD_RUN_PATH'
16482
16483 if test "$GCC" = yes; then
16484 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16485 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16486 else
16487 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16488 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16489 fi
16490 ;;
16491
16492 sysv5* | sco3.2v5* | sco5v6*)
16493 # Note: We can NOT use -z defs as we might desire, because we do not
16494 # link with -lc, and that would cause any symbols used from libc to
16495 # always be unresolved, which means just about no library would
16496 # ever link correctly. If we're not using GNU ld we use -z text
16497 # though, which does catch some bad symbols but isn't as heavy-handed
16498 # as -z defs.
16499 no_undefined_flag='${wl}-z,text'
16500 allow_undefined_flag='${wl}-z,nodefs'
16501 archive_cmds_need_lc=no
16502 hardcode_shlibpath_var=no
16503 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16504 hardcode_libdir_separator=':'
16505 link_all_deplibs=yes
16506 export_dynamic_flag_spec='${wl}-Bexport'
16507 runpath_var='LD_RUN_PATH'
16508
16509 if test "$GCC" = yes; then
16510 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16511 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16512 else
16513 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16514 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16515 fi
16516 ;;
16517
16518 uts4*)
16519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16520 hardcode_libdir_flag_spec='-L$libdir'
16521 hardcode_shlibpath_var=no
16522 ;;
16523
16524 *)
16525 ld_shlibs=no
16526 ;;
16527 esac
16528
16529 if test x$host_vendor = xsni; then
16530 case $host in
16531 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16532 export_dynamic_flag_spec='${wl}-Blargedynsym'
16533 ;;
16534 esac
16535 fi
16536 fi
16537
16538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16539$as_echo "$ld_shlibs" >&6; }
16540test "$ld_shlibs" = no && can_build_shared=no
16541
16542with_gnu_ld=$with_gnu_ld
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558#
16559# Do we need to explicitly link libc?
16560#
16561case "x$archive_cmds_need_lc" in
16562x|xyes)
16563 # Assume -lc should be added
16564 archive_cmds_need_lc=yes
16565
16566 if test "$enable_shared" = yes && test "$GCC" = yes; then
16567 case $archive_cmds in
16568 *'~'*)
16569 # FIXME: we may have to deal with multi-command sequences.
16570 ;;
16571 '$CC '*)
16572 # Test whether the compiler implicitly links with -lc since on some
16573 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16574 # to ld, don't add -lc before -lgcc.
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16576$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016577if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016578 $as_echo_n "(cached) " >&6
16579else
16580 $RM conftest*
16581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016582
cristy0c60a692010-11-04 01:09:47 +000016583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016584 (eval $ac_compile) 2>&5
16585 ac_status=$?
16586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16587 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016588 soname=conftest
16589 lib=conftest
16590 libobjs=conftest.$ac_objext
16591 deplibs=
16592 wl=$lt_prog_compiler_wl
16593 pic_flag=$lt_prog_compiler_pic
16594 compiler_flags=-v
16595 linker_flags=-v
16596 verstring=
16597 output_objdir=.
16598 libname=conftest
16599 lt_save_allow_undefined_flag=$allow_undefined_flag
16600 allow_undefined_flag=
16601 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 +000016602 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16603 ac_status=$?
16604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16605 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016606 then
16607 lt_cv_archive_cmds_need_lc=no
16608 else
16609 lt_cv_archive_cmds_need_lc=yes
16610 fi
16611 allow_undefined_flag=$lt_save_allow_undefined_flag
16612 else
16613 cat conftest.err 1>&5
16614 fi
16615 $RM conftest*
16616
16617fi
16618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16619$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16620 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016621 ;;
16622 esac
16623 fi
16624 ;;
16625esac
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
cristy73bd4a52010-10-05 11:24:23 +000016778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16779$as_echo_n "checking dynamic linker characteristics... " >&6; }
16780
16781if test "$GCC" = yes; then
16782 case $host_os in
16783 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16784 *) lt_awk_arg="/^libraries:/" ;;
16785 esac
cristy0c60a692010-11-04 01:09:47 +000016786 case $host_os in
16787 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16788 *) lt_sed_strip_eq="s,=/,/,g" ;;
16789 esac
16790 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16791 case $lt_search_path_spec in
16792 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016793 # if the path contains ";" then we assume it to be the separator
16794 # otherwise default to the standard path separator (i.e. ":") - it is
16795 # assumed that no part of a normal pathname contains ";" but that should
16796 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016797 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16798 ;;
16799 *)
16800 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16801 ;;
16802 esac
cristy73bd4a52010-10-05 11:24:23 +000016803 # Ok, now we have the path, separated by spaces, we can step through it
16804 # and add multilib dir if necessary.
16805 lt_tmp_lt_search_path_spec=
16806 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16807 for lt_sys_path in $lt_search_path_spec; do
16808 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16809 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16810 else
16811 test -d "$lt_sys_path" && \
16812 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16813 fi
16814 done
cristy0c60a692010-11-04 01:09:47 +000016815 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016816BEGIN {RS=" "; FS="/|\n";} {
16817 lt_foo="";
16818 lt_count=0;
16819 for (lt_i = NF; lt_i > 0; lt_i--) {
16820 if ($lt_i != "" && $lt_i != ".") {
16821 if ($lt_i == "..") {
16822 lt_count++;
16823 } else {
16824 if (lt_count == 0) {
16825 lt_foo="/" $lt_i lt_foo;
16826 } else {
16827 lt_count--;
16828 }
16829 }
16830 }
16831 }
16832 if (lt_foo != "") { lt_freq[lt_foo]++; }
16833 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16834}'`
cristy0c60a692010-11-04 01:09:47 +000016835 # AWK program above erroneously prepends '/' to C:/dos/paths
16836 # for these hosts.
16837 case $host_os in
16838 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16839 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16840 esac
16841 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016842else
16843 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16844fi
16845library_names_spec=
16846libname_spec='lib$name'
16847soname_spec=
16848shrext_cmds=".so"
16849postinstall_cmds=
16850postuninstall_cmds=
16851finish_cmds=
16852finish_eval=
16853shlibpath_var=
16854shlibpath_overrides_runpath=unknown
16855version_type=none
16856dynamic_linker="$host_os ld.so"
16857sys_lib_dlsearch_path_spec="/lib /usr/lib"
16858need_lib_prefix=unknown
16859hardcode_into_libs=no
16860
16861# when you set need_version to no, make sure it does not cause -set_version
16862# flags to be left without arguments
16863need_version=unknown
16864
16865case $host_os in
16866aix3*)
cristy99bd5232011-12-07 14:38:20 +000016867 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016868 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16869 shlibpath_var=LIBPATH
16870
16871 # AIX 3 has no versioning support, so we append a major version to the name.
16872 soname_spec='${libname}${release}${shared_ext}$major'
16873 ;;
16874
16875aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016876 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016877 need_lib_prefix=no
16878 need_version=no
16879 hardcode_into_libs=yes
16880 if test "$host_cpu" = ia64; then
16881 # AIX 5 supports IA64
16882 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16883 shlibpath_var=LD_LIBRARY_PATH
16884 else
16885 # With GCC up to 2.95.x, collect2 would create an import file
16886 # for dependence libraries. The import file would start with
16887 # the line `#! .'. This would cause the generated library to
16888 # depend on `.', always an invalid library. This was fixed in
16889 # development snapshots of GCC prior to 3.0.
16890 case $host_os in
16891 aix4 | aix4.[01] | aix4.[01].*)
16892 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16893 echo ' yes '
16894 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16895 :
16896 else
16897 can_build_shared=no
16898 fi
16899 ;;
16900 esac
16901 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16902 # soname into executable. Probably we can add versioning support to
16903 # collect2, so additional links can be useful in future.
16904 if test "$aix_use_runtimelinking" = yes; then
16905 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16906 # instead of lib<name>.a to let people know that these are not
16907 # typical AIX shared libraries.
16908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16909 else
16910 # We preserve .a as extension for shared libraries through AIX4.2
16911 # and later when we are not doing run time linking.
16912 library_names_spec='${libname}${release}.a $libname.a'
16913 soname_spec='${libname}${release}${shared_ext}$major'
16914 fi
16915 shlibpath_var=LIBPATH
16916 fi
16917 ;;
16918
16919amigaos*)
16920 case $host_cpu in
16921 powerpc)
16922 # Since July 2007 AmigaOS4 officially supports .so libraries.
16923 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16925 ;;
16926 m68k)
16927 library_names_spec='$libname.ixlibrary $libname.a'
16928 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016929 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 +000016930 ;;
16931 esac
16932 ;;
16933
16934beos*)
16935 library_names_spec='${libname}${shared_ext}'
16936 dynamic_linker="$host_os ld.so"
16937 shlibpath_var=LIBRARY_PATH
16938 ;;
16939
16940bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016941 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016942 need_version=no
16943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16944 soname_spec='${libname}${release}${shared_ext}$major'
16945 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16946 shlibpath_var=LD_LIBRARY_PATH
16947 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16948 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16949 # the default ld.so.conf also contains /usr/contrib/lib and
16950 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16951 # libtool to hard-code these into programs
16952 ;;
16953
16954cygwin* | mingw* | pw32* | cegcc*)
16955 version_type=windows
16956 shrext_cmds=".dll"
16957 need_version=no
16958 need_lib_prefix=no
16959
cristyda16f162011-02-19 23:52:17 +000016960 case $GCC,$cc_basename in
16961 yes,*)
16962 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016963 library_names_spec='$libname.dll.a'
16964 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16965 postinstall_cmds='base_file=`basename \${file}`~
16966 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16967 dldir=$destdir/`dirname \$dlpath`~
16968 test -d \$dldir || mkdir -p \$dldir~
16969 $install_prog $dir/$dlname \$dldir/$dlname~
16970 chmod a+x \$dldir/$dlname~
16971 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16972 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16973 fi'
16974 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16975 dlpath=$dir/\$dldll~
16976 $RM \$dlpath'
16977 shlibpath_overrides_runpath=yes
16978
16979 case $host_os in
16980 cygwin*)
16981 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16982 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016983
16984 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016985 ;;
16986 mingw* | cegcc*)
16987 # MinGW DLLs use traditional 'lib' prefix
16988 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016989 ;;
16990 pw32*)
16991 # pw32 DLLs use 'pw' prefix rather than 'lib'
16992 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16993 ;;
16994 esac
cristyda16f162011-02-19 23:52:17 +000016995 dynamic_linker='Win32 ld.exe'
16996 ;;
16997
16998 *,cl*)
16999 # Native MSVC
17000 libname_spec='$name'
17001 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17002 library_names_spec='${libname}.dll.lib'
17003
17004 case $build_os in
17005 mingw*)
17006 sys_lib_search_path_spec=
17007 lt_save_ifs=$IFS
17008 IFS=';'
17009 for lt_path in $LIB
17010 do
17011 IFS=$lt_save_ifs
17012 # Let DOS variable expansion print the short 8.3 style file name.
17013 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17014 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17015 done
17016 IFS=$lt_save_ifs
17017 # Convert to MSYS style.
17018 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17019 ;;
17020 cygwin*)
17021 # Convert to unix form, then to dos form, then back to unix form
17022 # but this time dos style (no spaces!) so that the unix form looks
17023 # like /cygdrive/c/PROGRA~1:/cygdr...
17024 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17025 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17026 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17027 ;;
17028 *)
17029 sys_lib_search_path_spec="$LIB"
17030 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17031 # It is most probably a Windows format PATH.
17032 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17033 else
17034 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17035 fi
17036 # FIXME: find the short name or the path components, as spaces are
17037 # common. (e.g. "Program Files" -> "PROGRA~1")
17038 ;;
17039 esac
17040
17041 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17042 postinstall_cmds='base_file=`basename \${file}`~
17043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17044 dldir=$destdir/`dirname \$dlpath`~
17045 test -d \$dldir || mkdir -p \$dldir~
17046 $install_prog $dir/$dlname \$dldir/$dlname'
17047 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17048 dlpath=$dir/\$dldll~
17049 $RM \$dlpath'
17050 shlibpath_overrides_runpath=yes
17051 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000017052 ;;
17053
17054 *)
cristyda16f162011-02-19 23:52:17 +000017055 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000017056 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000017057 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000017058 ;;
17059 esac
cristy73bd4a52010-10-05 11:24:23 +000017060 # FIXME: first we should search . and the directory the executable is in
17061 shlibpath_var=PATH
17062 ;;
17063
17064darwin* | rhapsody*)
17065 dynamic_linker="$host_os dyld"
17066 version_type=darwin
17067 need_lib_prefix=no
17068 need_version=no
17069 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17070 soname_spec='${libname}${release}${major}$shared_ext'
17071 shlibpath_overrides_runpath=yes
17072 shlibpath_var=DYLD_LIBRARY_PATH
17073 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17074
17075 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17076 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17077 ;;
17078
17079dgux*)
cristy99bd5232011-12-07 14:38:20 +000017080 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017081 need_lib_prefix=no
17082 need_version=no
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17084 soname_spec='${libname}${release}${shared_ext}$major'
17085 shlibpath_var=LD_LIBRARY_PATH
17086 ;;
17087
cristy73bd4a52010-10-05 11:24:23 +000017088freebsd* | dragonfly*)
17089 # DragonFly does not have aout. When/if they implement a new
17090 # versioning mechanism, adjust this.
17091 if test -x /usr/bin/objformat; then
17092 objformat=`/usr/bin/objformat`
17093 else
17094 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017095 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000017096 *) objformat=elf ;;
17097 esac
17098 fi
17099 version_type=freebsd-$objformat
17100 case $version_type in
17101 freebsd-elf*)
17102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17103 need_version=no
17104 need_lib_prefix=no
17105 ;;
17106 freebsd-*)
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17108 need_version=yes
17109 ;;
17110 esac
17111 shlibpath_var=LD_LIBRARY_PATH
17112 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017113 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017114 shlibpath_overrides_runpath=yes
17115 ;;
17116 freebsd3.[01]* | freebsdelf3.[01]*)
17117 shlibpath_overrides_runpath=yes
17118 hardcode_into_libs=yes
17119 ;;
17120 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17121 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17122 shlibpath_overrides_runpath=no
17123 hardcode_into_libs=yes
17124 ;;
17125 *) # from 4.6 on, and DragonFly
17126 shlibpath_overrides_runpath=yes
17127 hardcode_into_libs=yes
17128 ;;
17129 esac
17130 ;;
17131
17132gnu*)
cristy99bd5232011-12-07 14:38:20 +000017133 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017134 need_lib_prefix=no
17135 need_version=no
17136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17137 soname_spec='${libname}${release}${shared_ext}$major'
17138 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000017139 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000017140 hardcode_into_libs=yes
17141 ;;
17142
cristy0c60a692010-11-04 01:09:47 +000017143haiku*)
cristy99bd5232011-12-07 14:38:20 +000017144 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000017145 need_lib_prefix=no
17146 need_version=no
17147 dynamic_linker="$host_os runtime_loader"
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17149 soname_spec='${libname}${release}${shared_ext}$major'
17150 shlibpath_var=LIBRARY_PATH
17151 shlibpath_overrides_runpath=yes
17152 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17153 hardcode_into_libs=yes
17154 ;;
17155
cristy73bd4a52010-10-05 11:24:23 +000017156hpux9* | hpux10* | hpux11*)
17157 # Give a soname corresponding to the major version so that dld.sl refuses to
17158 # link against other versions.
17159 version_type=sunos
17160 need_lib_prefix=no
17161 need_version=no
17162 case $host_cpu in
17163 ia64*)
17164 shrext_cmds='.so'
17165 hardcode_into_libs=yes
17166 dynamic_linker="$host_os dld.so"
17167 shlibpath_var=LD_LIBRARY_PATH
17168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17170 soname_spec='${libname}${release}${shared_ext}$major'
17171 if test "X$HPUX_IA64_MODE" = X32; then
17172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17173 else
17174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17175 fi
17176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17177 ;;
17178 hppa*64*)
17179 shrext_cmds='.sl'
17180 hardcode_into_libs=yes
17181 dynamic_linker="$host_os dld.sl"
17182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17188 ;;
17189 *)
17190 shrext_cmds='.sl'
17191 dynamic_linker="$host_os dld.sl"
17192 shlibpath_var=SHLIB_PATH
17193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195 soname_spec='${libname}${release}${shared_ext}$major'
17196 ;;
17197 esac
cristy0c60a692010-11-04 01:09:47 +000017198 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000017199 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000017200 # or fails outright, so override atomically:
17201 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000017202 ;;
17203
17204interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000017205 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017206 need_lib_prefix=no
17207 need_version=no
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17209 soname_spec='${libname}${release}${shared_ext}$major'
17210 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17211 shlibpath_var=LD_LIBRARY_PATH
17212 shlibpath_overrides_runpath=no
17213 hardcode_into_libs=yes
17214 ;;
17215
17216irix5* | irix6* | nonstopux*)
17217 case $host_os in
17218 nonstopux*) version_type=nonstopux ;;
17219 *)
17220 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000017221 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017222 else
17223 version_type=irix
17224 fi ;;
17225 esac
17226 need_lib_prefix=no
17227 need_version=no
17228 soname_spec='${libname}${release}${shared_ext}$major'
17229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17230 case $host_os in
17231 irix5* | nonstopux*)
17232 libsuff= shlibsuff=
17233 ;;
17234 *)
17235 case $LD in # libtool.m4 will add one of these switches to LD
17236 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17237 libsuff= shlibsuff= libmagic=32-bit;;
17238 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17239 libsuff=32 shlibsuff=N32 libmagic=N32;;
17240 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17241 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17242 *) libsuff= shlibsuff= libmagic=never-match;;
17243 esac
17244 ;;
17245 esac
17246 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17247 shlibpath_overrides_runpath=no
17248 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17249 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17250 hardcode_into_libs=yes
17251 ;;
17252
17253# No shared lib support for Linux oldld, aout, or coff.
17254linux*oldld* | linux*aout* | linux*coff*)
17255 dynamic_linker=no
17256 ;;
17257
cristy99bd5232011-12-07 14:38:20 +000017258# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000017259linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000017260 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017261 need_lib_prefix=no
17262 need_version=no
17263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17264 soname_spec='${libname}${release}${shared_ext}$major'
17265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17266 shlibpath_var=LD_LIBRARY_PATH
17267 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017268
cristy73bd4a52010-10-05 11:24:23 +000017269 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017270 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017271 $as_echo_n "(cached) " >&6
17272else
17273 lt_cv_shlibpath_overrides_runpath=no
17274 save_LDFLAGS=$LDFLAGS
17275 save_libdir=$libdir
17276 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17277 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017279/* end confdefs.h. */
17280
17281int
17282main ()
17283{
17284
17285 ;
17286 return 0;
17287}
17288_ACEOF
17289if ac_fn_c_try_link "$LINENO"; then :
17290 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017291 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017292fi
17293fi
17294rm -f core conftest.err conftest.$ac_objext \
17295 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017296 LDFLAGS=$save_LDFLAGS
17297 libdir=$save_libdir
17298
17299fi
17300
17301 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017302
17303 # This implies no fast_install, which is unacceptable.
17304 # Some rework will be needed to allow for fast_install
17305 # before this can be enabled.
17306 hardcode_into_libs=yes
17307
17308 # Add ABI-specific directories to the system library path.
17309 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17310
17311 # Append ld.so.conf contents to the search path
17312 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017313 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 +000017314 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017315
cristy73bd4a52010-10-05 11:24:23 +000017316 fi
17317
17318 # We used to test for /lib/ld.so.1 and disable shared libraries on
17319 # powerpc, because MkLinux only supported shared libraries with the
17320 # GNU dynamic linker. Since this was broken with cross compilers,
17321 # most powerpc-linux boxes support dynamic linking these days and
17322 # people can always --disable-shared, the test was removed, and we
17323 # assume the GNU/Linux dynamic linker is in use.
17324 dynamic_linker='GNU/Linux ld.so'
17325 ;;
17326
17327netbsd*)
17328 version_type=sunos
17329 need_lib_prefix=no
17330 need_version=no
17331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17334 dynamic_linker='NetBSD (a.out) ld.so'
17335 else
17336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17337 soname_spec='${libname}${release}${shared_ext}$major'
17338 dynamic_linker='NetBSD ld.elf_so'
17339 fi
17340 shlibpath_var=LD_LIBRARY_PATH
17341 shlibpath_overrides_runpath=yes
17342 hardcode_into_libs=yes
17343 ;;
17344
17345newsos6)
cristy99bd5232011-12-07 14:38:20 +000017346 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348 shlibpath_var=LD_LIBRARY_PATH
17349 shlibpath_overrides_runpath=yes
17350 ;;
17351
17352*nto* | *qnx*)
17353 version_type=qnx
17354 need_lib_prefix=no
17355 need_version=no
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17357 soname_spec='${libname}${release}${shared_ext}$major'
17358 shlibpath_var=LD_LIBRARY_PATH
17359 shlibpath_overrides_runpath=no
17360 hardcode_into_libs=yes
17361 dynamic_linker='ldqnx.so'
17362 ;;
17363
17364openbsd*)
17365 version_type=sunos
17366 sys_lib_dlsearch_path_spec="/usr/lib"
17367 need_lib_prefix=no
17368 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17369 case $host_os in
17370 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17371 *) need_version=no ;;
17372 esac
17373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17375 shlibpath_var=LD_LIBRARY_PATH
17376 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17377 case $host_os in
17378 openbsd2.[89] | openbsd2.[89].*)
17379 shlibpath_overrides_runpath=no
17380 ;;
17381 *)
17382 shlibpath_overrides_runpath=yes
17383 ;;
17384 esac
17385 else
17386 shlibpath_overrides_runpath=yes
17387 fi
17388 ;;
17389
17390os2*)
17391 libname_spec='$name'
17392 shrext_cmds=".dll"
17393 need_lib_prefix=no
17394 library_names_spec='$libname${shared_ext} $libname.a'
17395 dynamic_linker='OS/2 ld.exe'
17396 shlibpath_var=LIBPATH
17397 ;;
17398
17399osf3* | osf4* | osf5*)
17400 version_type=osf
17401 need_lib_prefix=no
17402 need_version=no
17403 soname_spec='${libname}${release}${shared_ext}$major'
17404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17405 shlibpath_var=LD_LIBRARY_PATH
17406 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17407 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17408 ;;
17409
17410rdos*)
17411 dynamic_linker=no
17412 ;;
17413
17414solaris*)
cristy99bd5232011-12-07 14:38:20 +000017415 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017416 need_lib_prefix=no
17417 need_version=no
17418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17419 soname_spec='${libname}${release}${shared_ext}$major'
17420 shlibpath_var=LD_LIBRARY_PATH
17421 shlibpath_overrides_runpath=yes
17422 hardcode_into_libs=yes
17423 # ldd complains unless libraries are executable
17424 postinstall_cmds='chmod +x $lib'
17425 ;;
17426
17427sunos4*)
17428 version_type=sunos
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17431 shlibpath_var=LD_LIBRARY_PATH
17432 shlibpath_overrides_runpath=yes
17433 if test "$with_gnu_ld" = yes; then
17434 need_lib_prefix=no
17435 fi
17436 need_version=yes
17437 ;;
17438
17439sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017440 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17442 soname_spec='${libname}${release}${shared_ext}$major'
17443 shlibpath_var=LD_LIBRARY_PATH
17444 case $host_vendor in
17445 sni)
17446 shlibpath_overrides_runpath=no
17447 need_lib_prefix=no
17448 runpath_var=LD_RUN_PATH
17449 ;;
17450 siemens)
17451 need_lib_prefix=no
17452 ;;
17453 motorola)
17454 need_lib_prefix=no
17455 need_version=no
17456 shlibpath_overrides_runpath=no
17457 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17458 ;;
17459 esac
17460 ;;
17461
17462sysv4*MP*)
17463 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017464 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017465 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17466 soname_spec='$libname${shared_ext}.$major'
17467 shlibpath_var=LD_LIBRARY_PATH
17468 fi
17469 ;;
17470
17471sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17472 version_type=freebsd-elf
17473 need_lib_prefix=no
17474 need_version=no
17475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17476 soname_spec='${libname}${release}${shared_ext}$major'
17477 shlibpath_var=LD_LIBRARY_PATH
17478 shlibpath_overrides_runpath=yes
17479 hardcode_into_libs=yes
17480 if test "$with_gnu_ld" = yes; then
17481 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17482 else
17483 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17484 case $host_os in
17485 sco3.2v5*)
17486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17487 ;;
17488 esac
17489 fi
17490 sys_lib_dlsearch_path_spec='/usr/lib'
17491 ;;
17492
17493tpf*)
17494 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017495 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017496 need_lib_prefix=no
17497 need_version=no
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17499 shlibpath_var=LD_LIBRARY_PATH
17500 shlibpath_overrides_runpath=no
17501 hardcode_into_libs=yes
17502 ;;
17503
17504uts4*)
cristy99bd5232011-12-07 14:38:20 +000017505 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17507 soname_spec='${libname}${release}${shared_ext}$major'
17508 shlibpath_var=LD_LIBRARY_PATH
17509 ;;
17510
17511*)
17512 dynamic_linker=no
17513 ;;
17514esac
17515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17516$as_echo "$dynamic_linker" >&6; }
17517test "$dynamic_linker" = no && can_build_shared=no
17518
17519variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17520if test "$GCC" = yes; then
17521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17522fi
17523
17524if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17525 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17526fi
17527if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17528 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17529fi
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
cristy0c60a692010-11-04 01:09:47 +000017617
17618
17619
17620
17621
cristy73bd4a52010-10-05 11:24:23 +000017622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17623$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17624hardcode_action=
17625if test -n "$hardcode_libdir_flag_spec" ||
17626 test -n "$runpath_var" ||
17627 test "X$hardcode_automatic" = "Xyes" ; then
17628
17629 # We can hardcode non-existent directories.
17630 if test "$hardcode_direct" != no &&
17631 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17632 # have to relink, otherwise we might link with an installed library
17633 # when we should be linking with a yet-to-be-installed one
17634 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17635 test "$hardcode_minus_L" != no; then
17636 # Linking always hardcodes the temporary library directory.
17637 hardcode_action=relink
17638 else
17639 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17640 hardcode_action=immediate
17641 fi
17642else
17643 # We cannot hardcode anything, or else we can only hardcode existing
17644 # directories.
17645 hardcode_action=unsupported
17646fi
17647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17648$as_echo "$hardcode_action" >&6; }
17649
17650if test "$hardcode_action" = relink ||
17651 test "$inherit_rpath" = yes; then
17652 # Fast installation is not supported
17653 enable_fast_install=no
17654elif test "$shlibpath_overrides_runpath" = yes ||
17655 test "$enable_shared" = no; then
17656 # Fast installation is not necessary
17657 enable_fast_install=needless
17658fi
17659
17660
17661
17662
17663
17664
17665 if test "x$enable_dlopen" != xyes; then
17666 enable_dlopen=unknown
17667 enable_dlopen_self=unknown
17668 enable_dlopen_self_static=unknown
17669else
17670 lt_cv_dlopen=no
17671 lt_cv_dlopen_libs=
17672
17673 case $host_os in
17674 beos*)
17675 lt_cv_dlopen="load_add_on"
17676 lt_cv_dlopen_libs=
17677 lt_cv_dlopen_self=yes
17678 ;;
17679
17680 mingw* | pw32* | cegcc*)
17681 lt_cv_dlopen="LoadLibrary"
17682 lt_cv_dlopen_libs=
17683 ;;
17684
17685 cygwin*)
17686 lt_cv_dlopen="dlopen"
17687 lt_cv_dlopen_libs=
17688 ;;
17689
17690 darwin*)
17691 # if libdl is installed we need to link against it
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17693$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017694if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017695 $as_echo_n "(cached) " >&6
17696else
17697 ac_check_lib_save_LIBS=$LIBS
17698LIBS="-ldl $LIBS"
17699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700/* end confdefs.h. */
17701
17702/* Override any GCC internal prototype to avoid an error.
17703 Use char because int might match the return type of a GCC
17704 builtin and then its argument prototype would still apply. */
17705#ifdef __cplusplus
17706extern "C"
17707#endif
17708char dlopen ();
17709int
17710main ()
17711{
17712return dlopen ();
17713 ;
17714 return 0;
17715}
17716_ACEOF
17717if ac_fn_c_try_link "$LINENO"; then :
17718 ac_cv_lib_dl_dlopen=yes
17719else
17720 ac_cv_lib_dl_dlopen=no
17721fi
17722rm -f core conftest.err conftest.$ac_objext \
17723 conftest$ac_exeext conftest.$ac_ext
17724LIBS=$ac_check_lib_save_LIBS
17725fi
17726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17727$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017728if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017729 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17730else
17731
17732 lt_cv_dlopen="dyld"
17733 lt_cv_dlopen_libs=
17734 lt_cv_dlopen_self=yes
17735
17736fi
17737
17738 ;;
17739
17740 *)
17741 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017742if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017743 lt_cv_dlopen="shl_load"
17744else
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17746$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017747if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017748 $as_echo_n "(cached) " >&6
17749else
17750 ac_check_lib_save_LIBS=$LIBS
17751LIBS="-ldld $LIBS"
17752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17753/* end confdefs.h. */
17754
17755/* Override any GCC internal prototype to avoid an error.
17756 Use char because int might match the return type of a GCC
17757 builtin and then its argument prototype would still apply. */
17758#ifdef __cplusplus
17759extern "C"
17760#endif
17761char shl_load ();
17762int
17763main ()
17764{
17765return shl_load ();
17766 ;
17767 return 0;
17768}
17769_ACEOF
17770if ac_fn_c_try_link "$LINENO"; then :
17771 ac_cv_lib_dld_shl_load=yes
17772else
17773 ac_cv_lib_dld_shl_load=no
17774fi
17775rm -f core conftest.err conftest.$ac_objext \
17776 conftest$ac_exeext conftest.$ac_ext
17777LIBS=$ac_check_lib_save_LIBS
17778fi
17779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17780$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017781if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017782 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17783else
17784 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017785if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017786 lt_cv_dlopen="dlopen"
17787else
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17789$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017790if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017791 $as_echo_n "(cached) " >&6
17792else
17793 ac_check_lib_save_LIBS=$LIBS
17794LIBS="-ldl $LIBS"
17795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796/* end confdefs.h. */
17797
17798/* Override any GCC internal prototype to avoid an error.
17799 Use char because int might match the return type of a GCC
17800 builtin and then its argument prototype would still apply. */
17801#ifdef __cplusplus
17802extern "C"
17803#endif
17804char dlopen ();
17805int
17806main ()
17807{
17808return dlopen ();
17809 ;
17810 return 0;
17811}
17812_ACEOF
17813if ac_fn_c_try_link "$LINENO"; then :
17814 ac_cv_lib_dl_dlopen=yes
17815else
17816 ac_cv_lib_dl_dlopen=no
17817fi
17818rm -f core conftest.err conftest.$ac_objext \
17819 conftest$ac_exeext conftest.$ac_ext
17820LIBS=$ac_check_lib_save_LIBS
17821fi
17822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17823$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017824if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017825 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17826else
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17828$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017829if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017830 $as_echo_n "(cached) " >&6
17831else
17832 ac_check_lib_save_LIBS=$LIBS
17833LIBS="-lsvld $LIBS"
17834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17835/* end confdefs.h. */
17836
17837/* Override any GCC internal prototype to avoid an error.
17838 Use char because int might match the return type of a GCC
17839 builtin and then its argument prototype would still apply. */
17840#ifdef __cplusplus
17841extern "C"
17842#endif
17843char dlopen ();
17844int
17845main ()
17846{
17847return dlopen ();
17848 ;
17849 return 0;
17850}
17851_ACEOF
17852if ac_fn_c_try_link "$LINENO"; then :
17853 ac_cv_lib_svld_dlopen=yes
17854else
17855 ac_cv_lib_svld_dlopen=no
17856fi
17857rm -f core conftest.err conftest.$ac_objext \
17858 conftest$ac_exeext conftest.$ac_ext
17859LIBS=$ac_check_lib_save_LIBS
17860fi
17861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17862$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017863if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17865else
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17867$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017868if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017869 $as_echo_n "(cached) " >&6
17870else
17871 ac_check_lib_save_LIBS=$LIBS
17872LIBS="-ldld $LIBS"
17873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17874/* end confdefs.h. */
17875
17876/* Override any GCC internal prototype to avoid an error.
17877 Use char because int might match the return type of a GCC
17878 builtin and then its argument prototype would still apply. */
17879#ifdef __cplusplus
17880extern "C"
17881#endif
17882char dld_link ();
17883int
17884main ()
17885{
17886return dld_link ();
17887 ;
17888 return 0;
17889}
17890_ACEOF
17891if ac_fn_c_try_link "$LINENO"; then :
17892 ac_cv_lib_dld_dld_link=yes
17893else
17894 ac_cv_lib_dld_dld_link=no
17895fi
17896rm -f core conftest.err conftest.$ac_objext \
17897 conftest$ac_exeext conftest.$ac_ext
17898LIBS=$ac_check_lib_save_LIBS
17899fi
17900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17901$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017902if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017903 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17904fi
17905
17906
17907fi
17908
17909
17910fi
17911
17912
17913fi
17914
17915
17916fi
17917
17918
17919fi
17920
17921 ;;
17922 esac
17923
17924 if test "x$lt_cv_dlopen" != xno; then
17925 enable_dlopen=yes
17926 else
17927 enable_dlopen=no
17928 fi
17929
17930 case $lt_cv_dlopen in
17931 dlopen)
17932 save_CPPFLAGS="$CPPFLAGS"
17933 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17934
17935 save_LDFLAGS="$LDFLAGS"
17936 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17937
17938 save_LIBS="$LIBS"
17939 LIBS="$lt_cv_dlopen_libs $LIBS"
17940
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17942$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017943if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017944 $as_echo_n "(cached) " >&6
17945else
17946 if test "$cross_compiling" = yes; then :
17947 lt_cv_dlopen_self=cross
17948else
17949 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17950 lt_status=$lt_dlunknown
17951 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017952#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017953#include "confdefs.h"
17954
17955#if HAVE_DLFCN_H
17956#include <dlfcn.h>
17957#endif
17958
17959#include <stdio.h>
17960
17961#ifdef RTLD_GLOBAL
17962# define LT_DLGLOBAL RTLD_GLOBAL
17963#else
17964# ifdef DL_GLOBAL
17965# define LT_DLGLOBAL DL_GLOBAL
17966# else
17967# define LT_DLGLOBAL 0
17968# endif
17969#endif
17970
17971/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17972 find out it does not work in some platform. */
17973#ifndef LT_DLLAZY_OR_NOW
17974# ifdef RTLD_LAZY
17975# define LT_DLLAZY_OR_NOW RTLD_LAZY
17976# else
17977# ifdef DL_LAZY
17978# define LT_DLLAZY_OR_NOW DL_LAZY
17979# else
17980# ifdef RTLD_NOW
17981# define LT_DLLAZY_OR_NOW RTLD_NOW
17982# else
17983# ifdef DL_NOW
17984# define LT_DLLAZY_OR_NOW DL_NOW
17985# else
17986# define LT_DLLAZY_OR_NOW 0
17987# endif
17988# endif
17989# endif
17990# endif
17991#endif
17992
cristy0c60a692010-11-04 01:09:47 +000017993/* When -fvisbility=hidden is used, assume the code has been annotated
17994 correspondingly for the symbols needed. */
17995#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017996int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017997#endif
17998
cristyda16f162011-02-19 23:52:17 +000017999int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018000int main ()
18001{
18002 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18003 int status = $lt_dlunknown;
18004
18005 if (self)
18006 {
18007 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018008 else
18009 {
18010 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18011 else puts (dlerror ());
18012 }
cristy73bd4a52010-10-05 11:24:23 +000018013 /* dlclose (self); */
18014 }
18015 else
18016 puts (dlerror ());
18017
18018 return status;
18019}
18020_LT_EOF
18021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18022 (eval $ac_link) 2>&5
18023 ac_status=$?
18024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18025 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18026 (./conftest; exit; ) >&5 2>/dev/null
18027 lt_status=$?
18028 case x$lt_status in
18029 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18030 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18031 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18032 esac
18033 else :
18034 # compilation failed
18035 lt_cv_dlopen_self=no
18036 fi
18037fi
18038rm -fr conftest*
18039
18040
18041fi
18042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18043$as_echo "$lt_cv_dlopen_self" >&6; }
18044
18045 if test "x$lt_cv_dlopen_self" = xyes; then
18046 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18048$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018049if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018050 $as_echo_n "(cached) " >&6
18051else
18052 if test "$cross_compiling" = yes; then :
18053 lt_cv_dlopen_self_static=cross
18054else
18055 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18056 lt_status=$lt_dlunknown
18057 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018058#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018059#include "confdefs.h"
18060
18061#if HAVE_DLFCN_H
18062#include <dlfcn.h>
18063#endif
18064
18065#include <stdio.h>
18066
18067#ifdef RTLD_GLOBAL
18068# define LT_DLGLOBAL RTLD_GLOBAL
18069#else
18070# ifdef DL_GLOBAL
18071# define LT_DLGLOBAL DL_GLOBAL
18072# else
18073# define LT_DLGLOBAL 0
18074# endif
18075#endif
18076
18077/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18078 find out it does not work in some platform. */
18079#ifndef LT_DLLAZY_OR_NOW
18080# ifdef RTLD_LAZY
18081# define LT_DLLAZY_OR_NOW RTLD_LAZY
18082# else
18083# ifdef DL_LAZY
18084# define LT_DLLAZY_OR_NOW DL_LAZY
18085# else
18086# ifdef RTLD_NOW
18087# define LT_DLLAZY_OR_NOW RTLD_NOW
18088# else
18089# ifdef DL_NOW
18090# define LT_DLLAZY_OR_NOW DL_NOW
18091# else
18092# define LT_DLLAZY_OR_NOW 0
18093# endif
18094# endif
18095# endif
18096# endif
18097#endif
18098
cristy0c60a692010-11-04 01:09:47 +000018099/* When -fvisbility=hidden is used, assume the code has been annotated
18100 correspondingly for the symbols needed. */
18101#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018102int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018103#endif
18104
cristyda16f162011-02-19 23:52:17 +000018105int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018106int main ()
18107{
18108 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18109 int status = $lt_dlunknown;
18110
18111 if (self)
18112 {
18113 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018114 else
18115 {
18116 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18117 else puts (dlerror ());
18118 }
cristy73bd4a52010-10-05 11:24:23 +000018119 /* dlclose (self); */
18120 }
18121 else
18122 puts (dlerror ());
18123
18124 return status;
18125}
18126_LT_EOF
18127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18128 (eval $ac_link) 2>&5
18129 ac_status=$?
18130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18131 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18132 (./conftest; exit; ) >&5 2>/dev/null
18133 lt_status=$?
18134 case x$lt_status in
18135 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18136 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18137 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18138 esac
18139 else :
18140 # compilation failed
18141 lt_cv_dlopen_self_static=no
18142 fi
18143fi
18144rm -fr conftest*
18145
18146
18147fi
18148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18149$as_echo "$lt_cv_dlopen_self_static" >&6; }
18150 fi
18151
18152 CPPFLAGS="$save_CPPFLAGS"
18153 LDFLAGS="$save_LDFLAGS"
18154 LIBS="$save_LIBS"
18155 ;;
18156 esac
18157
18158 case $lt_cv_dlopen_self in
18159 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18160 *) enable_dlopen_self=unknown ;;
18161 esac
18162
18163 case $lt_cv_dlopen_self_static in
18164 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18165 *) enable_dlopen_self_static=unknown ;;
18166 esac
18167fi
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185striplib=
18186old_striplib=
18187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18188$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18189if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18190 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18191 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18193$as_echo "yes" >&6; }
18194else
18195# FIXME - insert some real tests, host_os isn't really good enough
18196 case $host_os in
18197 darwin*)
18198 if test -n "$STRIP" ; then
18199 striplib="$STRIP -x"
18200 old_striplib="$STRIP -S"
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18202$as_echo "yes" >&6; }
18203 else
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18205$as_echo "no" >&6; }
18206 fi
18207 ;;
18208 *)
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18210$as_echo "no" >&6; }
18211 ;;
18212 esac
18213fi
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226 # Report which library types will actually be built
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18228$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18230$as_echo "$can_build_shared" >&6; }
18231
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18233$as_echo_n "checking whether to build shared libraries... " >&6; }
18234 test "$can_build_shared" = "no" && enable_shared=no
18235
18236 # On AIX, shared libraries and static libraries use the same namespace, and
18237 # are all built from PIC.
18238 case $host_os in
18239 aix3*)
18240 test "$enable_shared" = yes && enable_static=no
18241 if test -n "$RANLIB"; then
18242 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18243 postinstall_cmds='$RANLIB $lib'
18244 fi
18245 ;;
18246
18247 aix[4-9]*)
18248 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18249 test "$enable_shared" = yes && enable_static=no
18250 fi
18251 ;;
18252 esac
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18254$as_echo "$enable_shared" >&6; }
18255
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18257$as_echo_n "checking whether to build static libraries... " >&6; }
18258 # Make sure either enable_shared or enable_static is yes.
18259 test "$enable_shared" = yes || enable_static=yes
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18261$as_echo "$enable_static" >&6; }
18262
18263
18264
18265
18266fi
18267ac_ext=c
18268ac_cpp='$CPP $CPPFLAGS'
18269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18271ac_compiler_gnu=$ac_cv_c_compiler_gnu
18272
18273CC="$lt_save_CC"
18274
cristy0c60a692010-11-04 01:09:47 +000018275 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18276 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18277 (test "X$CXX" != "Xg++"))) ; then
18278 ac_ext=cpp
18279ac_cpp='$CXXCPP $CPPFLAGS'
18280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18284$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18285if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018286 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018287 $as_echo_n "(cached) " >&6
18288else
18289 # Double quotes because CXXCPP needs to be expanded
18290 for CXXCPP in "$CXX -E" "/lib/cpp"
18291 do
18292 ac_preproc_ok=false
18293for ac_cxx_preproc_warn_flag in '' yes
18294do
18295 # Use a header file that comes with gcc, so configuring glibc
18296 # with a fresh cross-compiler works.
18297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18298 # <limits.h> exists even on freestanding compilers.
18299 # On the NeXT, cc -E runs the code through the compiler's parser,
18300 # not just through cpp. "Syntax error" is here to catch this case.
18301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18302/* end confdefs.h. */
18303#ifdef __STDC__
18304# include <limits.h>
18305#else
18306# include <assert.h>
18307#endif
18308 Syntax error
18309_ACEOF
18310if ac_fn_cxx_try_cpp "$LINENO"; then :
18311
18312else
18313 # Broken: fails on valid input.
18314continue
18315fi
cristyda16f162011-02-19 23:52:17 +000018316rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018317
18318 # OK, works on sane cases. Now check whether nonexistent headers
18319 # can be detected and how.
18320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18321/* end confdefs.h. */
18322#include <ac_nonexistent.h>
18323_ACEOF
18324if ac_fn_cxx_try_cpp "$LINENO"; then :
18325 # Broken: success on invalid input.
18326continue
18327else
18328 # Passes both tests.
18329ac_preproc_ok=:
18330break
18331fi
cristyda16f162011-02-19 23:52:17 +000018332rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018333
18334done
18335# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018336rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018337if $ac_preproc_ok; then :
18338 break
18339fi
18340
18341 done
18342 ac_cv_prog_CXXCPP=$CXXCPP
18343
18344fi
18345 CXXCPP=$ac_cv_prog_CXXCPP
18346else
18347 ac_cv_prog_CXXCPP=$CXXCPP
18348fi
18349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18350$as_echo "$CXXCPP" >&6; }
18351ac_preproc_ok=false
18352for ac_cxx_preproc_warn_flag in '' yes
18353do
18354 # Use a header file that comes with gcc, so configuring glibc
18355 # with a fresh cross-compiler works.
18356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18357 # <limits.h> exists even on freestanding compilers.
18358 # On the NeXT, cc -E runs the code through the compiler's parser,
18359 # not just through cpp. "Syntax error" is here to catch this case.
18360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18361/* end confdefs.h. */
18362#ifdef __STDC__
18363# include <limits.h>
18364#else
18365# include <assert.h>
18366#endif
18367 Syntax error
18368_ACEOF
18369if ac_fn_cxx_try_cpp "$LINENO"; then :
18370
18371else
18372 # Broken: fails on valid input.
18373continue
18374fi
cristyda16f162011-02-19 23:52:17 +000018375rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018376
18377 # OK, works on sane cases. Now check whether nonexistent headers
18378 # can be detected and how.
18379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18380/* end confdefs.h. */
18381#include <ac_nonexistent.h>
18382_ACEOF
18383if ac_fn_cxx_try_cpp "$LINENO"; then :
18384 # Broken: success on invalid input.
18385continue
18386else
18387 # Passes both tests.
18388ac_preproc_ok=:
18389break
18390fi
cristyda16f162011-02-19 23:52:17 +000018391rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018392
18393done
18394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018395rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018396if $ac_preproc_ok; then :
18397
18398else
18399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18401as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18402See \`config.log' for more details" "$LINENO" 5; }
18403fi
18404
18405ac_ext=c
18406ac_cpp='$CPP $CPPFLAGS'
18407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18409ac_compiler_gnu=$ac_cv_c_compiler_gnu
18410
18411else
18412 _lt_caught_CXX_error=yes
18413fi
cristy73bd4a52010-10-05 11:24:23 +000018414
18415ac_ext=cpp
18416ac_cpp='$CXXCPP $CPPFLAGS'
18417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18420
18421archive_cmds_need_lc_CXX=no
18422allow_undefined_flag_CXX=
18423always_export_symbols_CXX=no
18424archive_expsym_cmds_CXX=
18425compiler_needs_object_CXX=no
18426export_dynamic_flag_spec_CXX=
18427hardcode_direct_CXX=no
18428hardcode_direct_absolute_CXX=no
18429hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018430hardcode_libdir_separator_CXX=
18431hardcode_minus_L_CXX=no
18432hardcode_shlibpath_var_CXX=unsupported
18433hardcode_automatic_CXX=no
18434inherit_rpath_CXX=no
18435module_cmds_CXX=
18436module_expsym_cmds_CXX=
18437link_all_deplibs_CXX=unknown
18438old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018439reload_flag_CXX=$reload_flag
18440reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018441no_undefined_flag_CXX=
18442whole_archive_flag_spec_CXX=
18443enable_shared_with_static_runtimes_CXX=no
18444
18445# Source file extension for C++ test sources.
18446ac_ext=cpp
18447
18448# Object file extension for compiled C++ test sources.
18449objext=o
18450objext_CXX=$objext
18451
18452# No sense in running all these tests if we already determined that
18453# the CXX compiler isn't working. Some variables (like enable_shared)
18454# are currently assumed to apply to all compilers on this platform,
18455# and will be corrupted by setting them based on a non-working compiler.
18456if test "$_lt_caught_CXX_error" != yes; then
18457 # Code to be used in simple compile tests
18458 lt_simple_compile_test_code="int some_variable = 0;"
18459
18460 # Code to be used in simple link tests
18461 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18462
18463 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18464
18465
18466
18467
18468
18469
18470# If no C compiler was specified, use CC.
18471LTCC=${LTCC-"$CC"}
18472
18473# If no C compiler flags were specified, use CFLAGS.
18474LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18475
18476# Allow CC to be a program name with arguments.
18477compiler=$CC
18478
18479
18480 # save warnings/boilerplate of simple test code
18481 ac_outfile=conftest.$ac_objext
18482echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18483eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18484_lt_compiler_boilerplate=`cat conftest.err`
18485$RM conftest*
18486
18487 ac_outfile=conftest.$ac_objext
18488echo "$lt_simple_link_test_code" >conftest.$ac_ext
18489eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18490_lt_linker_boilerplate=`cat conftest.err`
18491$RM -r conftest*
18492
18493
18494 # Allow CC to be a program name with arguments.
18495 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018496 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018497 lt_save_LD=$LD
18498 lt_save_GCC=$GCC
18499 GCC=$GXX
18500 lt_save_with_gnu_ld=$with_gnu_ld
18501 lt_save_path_LD=$lt_cv_path_LD
18502 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18503 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18504 else
18505 $as_unset lt_cv_prog_gnu_ld
18506 fi
18507 if test -n "${lt_cv_path_LDCXX+set}"; then
18508 lt_cv_path_LD=$lt_cv_path_LDCXX
18509 else
18510 $as_unset lt_cv_path_LD
18511 fi
18512 test -z "${LDCXX+set}" || LD=$LDCXX
18513 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018514 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018515 compiler=$CC
18516 compiler_CXX=$CC
18517 for cc_temp in $compiler""; do
18518 case $cc_temp in
18519 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18520 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18521 \-*) ;;
18522 *) break;;
18523 esac
18524done
cristy0c60a692010-11-04 01:09:47 +000018525cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018526
18527
18528 if test -n "$compiler"; then
18529 # We don't want -fno-exception when compiling C++ code, so set the
18530 # no_builtin_flag separately
18531 if test "$GXX" = yes; then
18532 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18533 else
18534 lt_prog_compiler_no_builtin_flag_CXX=
18535 fi
18536
18537 if test "$GXX" = yes; then
18538 # Set up default GNU C++ configuration
18539
18540
18541
18542# Check whether --with-gnu-ld was given.
18543if test "${with_gnu_ld+set}" = set; then :
18544 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18545else
18546 with_gnu_ld=no
18547fi
18548
18549ac_prog=ld
18550if test "$GCC" = yes; then
18551 # Check if gcc -print-prog-name=ld gives a path.
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18553$as_echo_n "checking for ld used by $CC... " >&6; }
18554 case $host in
18555 *-*-mingw*)
18556 # gcc leaves a trailing carriage return which upsets mingw
18557 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18558 *)
18559 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18560 esac
18561 case $ac_prog in
18562 # Accept absolute paths.
18563 [\\/]* | ?:[\\/]*)
18564 re_direlt='/[^/][^/]*/\.\./'
18565 # Canonicalize the pathname of ld
18566 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18567 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18568 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18569 done
18570 test -z "$LD" && LD="$ac_prog"
18571 ;;
18572 "")
18573 # If it fails, then pretend we aren't using GCC.
18574 ac_prog=ld
18575 ;;
18576 *)
18577 # If it is relative, then search for the first ld in PATH.
18578 with_gnu_ld=unknown
18579 ;;
18580 esac
18581elif test "$with_gnu_ld" = yes; then
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18583$as_echo_n "checking for GNU ld... " >&6; }
18584else
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18586$as_echo_n "checking for non-GNU ld... " >&6; }
18587fi
cristyda16f162011-02-19 23:52:17 +000018588if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018589 $as_echo_n "(cached) " >&6
18590else
18591 if test -z "$LD"; then
18592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18593 for ac_dir in $PATH; do
18594 IFS="$lt_save_ifs"
18595 test -z "$ac_dir" && ac_dir=.
18596 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18597 lt_cv_path_LD="$ac_dir/$ac_prog"
18598 # Check to see if the program is GNU ld. I'd rather use --version,
18599 # but apparently some variants of GNU ld only accept -v.
18600 # Break only if it was the GNU/non-GNU ld that we prefer.
18601 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18602 *GNU* | *'with BFD'*)
18603 test "$with_gnu_ld" != no && break
18604 ;;
18605 *)
18606 test "$with_gnu_ld" != yes && break
18607 ;;
18608 esac
18609 fi
18610 done
18611 IFS="$lt_save_ifs"
18612else
18613 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18614fi
18615fi
18616
18617LD="$lt_cv_path_LD"
18618if test -n "$LD"; then
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18620$as_echo "$LD" >&6; }
18621else
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18623$as_echo "no" >&6; }
18624fi
cristy98dddb52010-11-04 00:30:15 +000018625test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18627$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018628if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018629 $as_echo_n "(cached) " >&6
18630else
18631 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18632case `$LD -v 2>&1 </dev/null` in
18633*GNU* | *'with BFD'*)
18634 lt_cv_prog_gnu_ld=yes
18635 ;;
18636*)
18637 lt_cv_prog_gnu_ld=no
18638 ;;
18639esac
18640fi
18641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18642$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18643with_gnu_ld=$lt_cv_prog_gnu_ld
18644
18645
18646
18647
18648
18649
18650
18651 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18652 # archiving commands below assume that GNU ld is being used.
18653 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018654 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18655 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 +000018656
18657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18658 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18659
18660 # If archive_cmds runs LD, not CC, wlarc should be empty
18661 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18662 # investigate it a little bit more. (MM)
18663 wlarc='${wl}'
18664
18665 # ancient GNU ld didn't support --whole-archive et. al.
18666 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18667 $GREP 'no-whole-archive' > /dev/null; then
18668 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18669 else
18670 whole_archive_flag_spec_CXX=
18671 fi
18672 else
18673 with_gnu_ld=no
18674 wlarc=
18675
18676 # A generic and very simple default shared library creation
18677 # command for GNU C++ for the case where it uses the native
18678 # linker, instead of GNU ld. If possible, this setting should
18679 # overridden to take advantage of the native linker features on
18680 # the platform it is being used on.
18681 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18682 fi
18683
18684 # Commands to make compiler produce verbose output that lists
18685 # what "hidden" libraries, object files and flags are used when
18686 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018687 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018688
18689 else
18690 GXX=no
18691 with_gnu_ld=no
18692 wlarc=
18693 fi
18694
18695 # PORTME: fill in a description of your system's C++ link characteristics
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18697$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18698 ld_shlibs_CXX=yes
18699 case $host_os in
18700 aix3*)
18701 # FIXME: insert proper C++ library support
18702 ld_shlibs_CXX=no
18703 ;;
18704 aix[4-9]*)
18705 if test "$host_cpu" = ia64; then
18706 # On IA64, the linker does run time linking by default, so we don't
18707 # have to do anything special.
18708 aix_use_runtimelinking=no
18709 exp_sym_flag='-Bexport'
18710 no_entry_flag=""
18711 else
18712 aix_use_runtimelinking=no
18713
18714 # Test if we are trying to use run time linking or normal
18715 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18716 # need to do runtime linking.
18717 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18718 for ld_flag in $LDFLAGS; do
18719 case $ld_flag in
18720 *-brtl*)
18721 aix_use_runtimelinking=yes
18722 break
18723 ;;
18724 esac
18725 done
18726 ;;
18727 esac
18728
18729 exp_sym_flag='-bexport'
18730 no_entry_flag='-bnoentry'
18731 fi
18732
18733 # When large executables or shared objects are built, AIX ld can
18734 # have problems creating the table of contents. If linking a library
18735 # or program results in "error TOC overflow" add -mminimal-toc to
18736 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18737 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18738
18739 archive_cmds_CXX=''
18740 hardcode_direct_CXX=yes
18741 hardcode_direct_absolute_CXX=yes
18742 hardcode_libdir_separator_CXX=':'
18743 link_all_deplibs_CXX=yes
18744 file_list_spec_CXX='${wl}-f,'
18745
18746 if test "$GXX" = yes; then
18747 case $host_os in aix4.[012]|aix4.[012].*)
18748 # We only want to do this on AIX 4.2 and lower, the check
18749 # below for broken collect2 doesn't work under 4.3+
18750 collect2name=`${CC} -print-prog-name=collect2`
18751 if test -f "$collect2name" &&
18752 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18753 then
18754 # We have reworked collect2
18755 :
18756 else
18757 # We have old collect2
18758 hardcode_direct_CXX=unsupported
18759 # It fails to find uninstalled libraries when the uninstalled
18760 # path is not listed in the libpath. Setting hardcode_minus_L
18761 # to unsupported forces relinking
18762 hardcode_minus_L_CXX=yes
18763 hardcode_libdir_flag_spec_CXX='-L$libdir'
18764 hardcode_libdir_separator_CXX=
18765 fi
18766 esac
18767 shared_flag='-shared'
18768 if test "$aix_use_runtimelinking" = yes; then
18769 shared_flag="$shared_flag "'${wl}-G'
18770 fi
18771 else
18772 # not using gcc
18773 if test "$host_cpu" = ia64; then
18774 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18775 # chokes on -Wl,-G. The following line is correct:
18776 shared_flag='-G'
18777 else
18778 if test "$aix_use_runtimelinking" = yes; then
18779 shared_flag='${wl}-G'
18780 else
18781 shared_flag='${wl}-bM:SRE'
18782 fi
18783 fi
18784 fi
18785
18786 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18787 # It seems that -bexpall does not export symbols beginning with
18788 # underscore (_), so it is better to generate a list of symbols to
18789 # export.
18790 always_export_symbols_CXX=yes
18791 if test "$aix_use_runtimelinking" = yes; then
18792 # Warning - without using the other runtime loading flags (-brtl),
18793 # -berok will link without error, but may produce a broken library.
18794 allow_undefined_flag_CXX='-berok'
18795 # Determine the default libpath from the value encoded in an empty
18796 # executable.
cristyda16f162011-02-19 23:52:17 +000018797 if test "${lt_cv_aix_libpath+set}" = set; then
18798 aix_libpath=$lt_cv_aix_libpath
18799else
18800 if ${lt_cv_aix_libpath__CXX+:} false; then :
18801 $as_echo_n "(cached) " >&6
18802else
18803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018804/* end confdefs.h. */
18805
18806int
18807main ()
18808{
18809
18810 ;
18811 return 0;
18812}
18813_ACEOF
18814if ac_fn_cxx_try_link "$LINENO"; then :
18815
cristyda16f162011-02-19 23:52:17 +000018816 lt_aix_libpath_sed='
18817 /Import File Strings/,/^$/ {
18818 /^0/ {
18819 s/^0 *\([^ ]*\) *$/\1/
18820 p
18821 }
18822 }'
18823 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18824 # Check for a 64-bit object if we didn't find anything.
18825 if test -z "$lt_cv_aix_libpath__CXX"; then
18826 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18827 fi
cristy73bd4a52010-10-05 11:24:23 +000018828fi
18829rm -f core conftest.err conftest.$ac_objext \
18830 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018831 if test -z "$lt_cv_aix_libpath__CXX"; then
18832 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18833 fi
18834
18835fi
18836
18837 aix_libpath=$lt_cv_aix_libpath__CXX
18838fi
cristy73bd4a52010-10-05 11:24:23 +000018839
18840 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18841
cristy0c60a692010-11-04 01:09:47 +000018842 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 +000018843 else
18844 if test "$host_cpu" = ia64; then
18845 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18846 allow_undefined_flag_CXX="-z nodefs"
18847 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"
18848 else
18849 # Determine the default libpath from the value encoded in an
18850 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018851 if test "${lt_cv_aix_libpath+set}" = set; then
18852 aix_libpath=$lt_cv_aix_libpath
18853else
18854 if ${lt_cv_aix_libpath__CXX+:} false; then :
18855 $as_echo_n "(cached) " >&6
18856else
18857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018858/* end confdefs.h. */
18859
18860int
18861main ()
18862{
18863
18864 ;
18865 return 0;
18866}
18867_ACEOF
18868if ac_fn_cxx_try_link "$LINENO"; then :
18869
cristyda16f162011-02-19 23:52:17 +000018870 lt_aix_libpath_sed='
18871 /Import File Strings/,/^$/ {
18872 /^0/ {
18873 s/^0 *\([^ ]*\) *$/\1/
18874 p
18875 }
18876 }'
18877 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18878 # Check for a 64-bit object if we didn't find anything.
18879 if test -z "$lt_cv_aix_libpath__CXX"; then
18880 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18881 fi
cristy73bd4a52010-10-05 11:24:23 +000018882fi
18883rm -f core conftest.err conftest.$ac_objext \
18884 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018885 if test -z "$lt_cv_aix_libpath__CXX"; then
18886 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18887 fi
18888
18889fi
18890
18891 aix_libpath=$lt_cv_aix_libpath__CXX
18892fi
cristy73bd4a52010-10-05 11:24:23 +000018893
18894 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18895 # Warning - without using the other run time loading flags,
18896 # -berok will link without error, but may produce a broken library.
18897 no_undefined_flag_CXX=' ${wl}-bernotok'
18898 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018899 if test "$with_gnu_ld" = yes; then
18900 # We only use this code for GNU lds that support --whole-archive.
18901 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18902 else
18903 # Exported symbols can be pulled into shared objects from archives
18904 whole_archive_flag_spec_CXX='$convenience'
18905 fi
cristy73bd4a52010-10-05 11:24:23 +000018906 archive_cmds_need_lc_CXX=yes
18907 # This is similar to how AIX traditionally builds its shared
18908 # libraries.
18909 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'
18910 fi
18911 fi
18912 ;;
18913
18914 beos*)
18915 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18916 allow_undefined_flag_CXX=unsupported
18917 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18918 # support --undefined. This deserves some investigation. FIXME
18919 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18920 else
18921 ld_shlibs_CXX=no
18922 fi
18923 ;;
18924
18925 chorus*)
18926 case $cc_basename in
18927 *)
18928 # FIXME: insert proper C++ library support
18929 ld_shlibs_CXX=no
18930 ;;
18931 esac
18932 ;;
18933
18934 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018935 case $GXX,$cc_basename in
18936 ,cl* | no,cl*)
18937 # Native MSVC
18938 # hardcode_libdir_flag_spec is actually meaningless, as there is
18939 # no search path for DLLs.
18940 hardcode_libdir_flag_spec_CXX=' '
18941 allow_undefined_flag_CXX=unsupported
18942 always_export_symbols_CXX=yes
18943 file_list_spec_CXX='@'
18944 # Tell ltmain to make .lib files, not .a files.
18945 libext=lib
18946 # Tell ltmain to make .dll files, not .so files.
18947 shrext_cmds=".dll"
18948 # FIXME: Setting linknames here is a bad hack.
18949 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18950 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18951 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18952 else
18953 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18954 fi~
18955 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18956 linknames='
18957 # The linker will not automatically build a static lib if we build a DLL.
18958 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18959 enable_shared_with_static_runtimes_CXX=yes
18960 # Don't use ranlib
18961 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18962 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18963 lt_tool_outputfile="@TOOL_OUTPUT@"~
18964 case $lt_outputfile in
18965 *.exe|*.EXE) ;;
18966 *)
18967 lt_outputfile="$lt_outputfile.exe"
18968 lt_tool_outputfile="$lt_tool_outputfile.exe"
18969 ;;
18970 esac~
18971 func_to_tool_file "$lt_outputfile"~
18972 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18973 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18974 $RM "$lt_outputfile.manifest";
18975 fi'
18976 ;;
18977 *)
18978 # g++
18979 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18980 # as there is no search path for DLLs.
18981 hardcode_libdir_flag_spec_CXX='-L$libdir'
18982 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18983 allow_undefined_flag_CXX=unsupported
18984 always_export_symbols_CXX=no
18985 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018986
cristyda16f162011-02-19 23:52:17 +000018987 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18988 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'
18989 # If the export-symbols file already is a .def file (1st line
18990 # is EXPORTS), use it as is; otherwise, prepend...
18991 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18992 cp $export_symbols $output_objdir/$soname.def;
18993 else
18994 echo EXPORTS > $output_objdir/$soname.def;
18995 cat $export_symbols >> $output_objdir/$soname.def;
18996 fi~
18997 $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'
18998 else
18999 ld_shlibs_CXX=no
19000 fi
19001 ;;
19002 esac
19003 ;;
cristy73bd4a52010-10-05 11:24:23 +000019004 darwin* | rhapsody*)
19005
19006
19007 archive_cmds_need_lc_CXX=no
19008 hardcode_direct_CXX=no
19009 hardcode_automatic_CXX=yes
19010 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000019011 if test "$lt_cv_ld_force_load" = "yes"; then
19012 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 +000019013
cristy0c60a692010-11-04 01:09:47 +000019014 else
19015 whole_archive_flag_spec_CXX=''
19016 fi
cristy73bd4a52010-10-05 11:24:23 +000019017 link_all_deplibs_CXX=yes
19018 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19019 case $cc_basename in
19020 ifort*) _lt_dar_can_shared=yes ;;
19021 *) _lt_dar_can_shared=$GCC ;;
19022 esac
19023 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000019024 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019025 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}"
19026 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19027 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}"
19028 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}"
19029 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19030 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}"
19031 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}"
19032 fi
19033
19034 else
19035 ld_shlibs_CXX=no
19036 fi
19037
19038 ;;
19039
19040 dgux*)
19041 case $cc_basename in
19042 ec++*)
19043 # FIXME: insert proper C++ library support
19044 ld_shlibs_CXX=no
19045 ;;
19046 ghcx*)
19047 # Green Hills C++ Compiler
19048 # FIXME: insert proper C++ library support
19049 ld_shlibs_CXX=no
19050 ;;
19051 *)
19052 # FIXME: insert proper C++ library support
19053 ld_shlibs_CXX=no
19054 ;;
19055 esac
19056 ;;
19057
cristy99bd5232011-12-07 14:38:20 +000019058 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019059 # C++ shared libraries reported to be fairly broken before
19060 # switch to ELF
19061 ld_shlibs_CXX=no
19062 ;;
19063
19064 freebsd-elf*)
19065 archive_cmds_need_lc_CXX=no
19066 ;;
19067
19068 freebsd* | dragonfly*)
19069 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19070 # conventions
19071 ld_shlibs_CXX=yes
19072 ;;
19073
19074 gnu*)
19075 ;;
19076
cristy0c60a692010-11-04 01:09:47 +000019077 haiku*)
19078 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19079 link_all_deplibs_CXX=yes
19080 ;;
19081
cristy73bd4a52010-10-05 11:24:23 +000019082 hpux9*)
19083 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19084 hardcode_libdir_separator_CXX=:
19085 export_dynamic_flag_spec_CXX='${wl}-E'
19086 hardcode_direct_CXX=yes
19087 hardcode_minus_L_CXX=yes # Not in the search PATH,
19088 # but as the default
19089 # location of the library.
19090
19091 case $cc_basename in
19092 CC*)
19093 # FIXME: insert proper C++ library support
19094 ld_shlibs_CXX=no
19095 ;;
19096 aCC*)
19097 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'
19098 # Commands to make compiler produce verbose output that lists
19099 # what "hidden" libraries, object files and flags are used when
19100 # linking a shared library.
19101 #
19102 # There doesn't appear to be a way to prevent this compiler from
19103 # explicitly linking system object files so we need to strip them
19104 # from the output so that they don't get included in the library
19105 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019106 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 +000019107 ;;
19108 *)
19109 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000019110 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 +000019111 else
19112 # FIXME: insert proper C++ library support
19113 ld_shlibs_CXX=no
19114 fi
19115 ;;
19116 esac
19117 ;;
19118
19119 hpux10*|hpux11*)
19120 if test $with_gnu_ld = no; then
19121 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19122 hardcode_libdir_separator_CXX=:
19123
19124 case $host_cpu in
19125 hppa*64*|ia64*)
19126 ;;
19127 *)
19128 export_dynamic_flag_spec_CXX='${wl}-E'
19129 ;;
19130 esac
19131 fi
19132 case $host_cpu in
19133 hppa*64*|ia64*)
19134 hardcode_direct_CXX=no
19135 hardcode_shlibpath_var_CXX=no
19136 ;;
19137 *)
19138 hardcode_direct_CXX=yes
19139 hardcode_direct_absolute_CXX=yes
19140 hardcode_minus_L_CXX=yes # Not in the search PATH,
19141 # but as the default
19142 # location of the library.
19143 ;;
19144 esac
19145
19146 case $cc_basename in
19147 CC*)
19148 # FIXME: insert proper C++ library support
19149 ld_shlibs_CXX=no
19150 ;;
19151 aCC*)
19152 case $host_cpu in
19153 hppa*64*)
19154 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19155 ;;
19156 ia64*)
19157 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19158 ;;
19159 *)
19160 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19161 ;;
19162 esac
19163 # Commands to make compiler produce verbose output that lists
19164 # what "hidden" libraries, object files and flags are used when
19165 # linking a shared library.
19166 #
19167 # There doesn't appear to be a way to prevent this compiler from
19168 # explicitly linking system object files so we need to strip them
19169 # from the output so that they don't get included in the library
19170 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019171 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 +000019172 ;;
19173 *)
19174 if test "$GXX" = yes; then
19175 if test $with_gnu_ld = no; then
19176 case $host_cpu in
19177 hppa*64*)
19178 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19179 ;;
19180 ia64*)
cristyda16f162011-02-19 23:52:17 +000019181 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 +000019182 ;;
19183 *)
cristyda16f162011-02-19 23:52:17 +000019184 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 +000019185 ;;
19186 esac
19187 fi
19188 else
19189 # FIXME: insert proper C++ library support
19190 ld_shlibs_CXX=no
19191 fi
19192 ;;
19193 esac
19194 ;;
19195
19196 interix[3-9]*)
19197 hardcode_direct_CXX=no
19198 hardcode_shlibpath_var_CXX=no
19199 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19200 export_dynamic_flag_spec_CXX='${wl}-E'
19201 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19202 # Instead, shared libraries are loaded at an image base (0x10000000 by
19203 # default) and relocated if they conflict, which is a slow very memory
19204 # consuming and fragmenting process. To avoid this, we pick a random,
19205 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19206 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19207 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'
19208 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'
19209 ;;
19210 irix5* | irix6*)
19211 case $cc_basename in
19212 CC*)
19213 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000019214 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 +000019215
19216 # Archives containing C++ object files must be created using
19217 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19218 # necessary to make sure instantiated templates are included
19219 # in the archive.
19220 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19221 ;;
19222 *)
19223 if test "$GXX" = yes; then
19224 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000019225 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 +000019226 else
cristyda16f162011-02-19 23:52:17 +000019227 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 +000019228 fi
19229 fi
19230 link_all_deplibs_CXX=yes
19231 ;;
19232 esac
19233 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19234 hardcode_libdir_separator_CXX=:
19235 inherit_rpath_CXX=yes
19236 ;;
19237
cristy0c60a692010-11-04 01:09:47 +000019238 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019239 case $cc_basename in
19240 KCC*)
19241 # Kuck and Associates, Inc. (KAI) C++ Compiler
19242
19243 # KCC will only create a shared library if the output file
19244 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19245 # to its proper name (with version) after linking.
19246 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'
19247 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'
19248 # Commands to make compiler produce verbose output that lists
19249 # what "hidden" libraries, object files and flags are used when
19250 # linking a shared library.
19251 #
19252 # There doesn't appear to be a way to prevent this compiler from
19253 # explicitly linking system object files so we need to strip them
19254 # from the output so that they don't get included in the library
19255 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019256 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 +000019257
19258 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19259 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19260
19261 # Archives containing C++ object files must be created using
19262 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19263 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19264 ;;
19265 icpc* | ecpc* )
19266 # Intel C++
19267 with_gnu_ld=yes
19268 # version 8.0 and above of icpc choke on multiply defined symbols
19269 # if we add $predep_objects and $postdep_objects, however 7.1 and
19270 # earlier do not add the objects themselves.
19271 case `$CC -V 2>&1` in
19272 *"Version 7."*)
19273 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19274 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'
19275 ;;
19276 *) # Version 8.0 or newer
19277 tmp_idyn=
19278 case $host_cpu in
19279 ia64*) tmp_idyn=' -i_dynamic';;
19280 esac
19281 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19282 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'
19283 ;;
19284 esac
19285 archive_cmds_need_lc_CXX=no
19286 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19287 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19288 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19289 ;;
19290 pgCC* | pgcpp*)
19291 # Portland Group C++ compiler
19292 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019293 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019294 prelink_cmds_CXX='tpldir=Template.dir~
19295 rm -rf $tpldir~
19296 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019297 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019298 old_archive_cmds_CXX='tpldir=Template.dir~
19299 rm -rf $tpldir~
19300 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019301 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019302 $RANLIB $oldlib'
19303 archive_cmds_CXX='tpldir=Template.dir~
19304 rm -rf $tpldir~
19305 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019306 $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 +000019307 archive_expsym_cmds_CXX='tpldir=Template.dir~
19308 rm -rf $tpldir~
19309 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019310 $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 +000019311 ;;
cristy0c60a692010-11-04 01:09:47 +000019312 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019313 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19314 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'
19315 ;;
19316 esac
19317
19318 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19319 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019320 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 +000019321 ;;
19322 cxx*)
19323 # Compaq C++
19324 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19325 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'
19326
19327 runpath_var=LD_RUN_PATH
19328 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19329 hardcode_libdir_separator_CXX=:
19330
19331 # Commands to make compiler produce verbose output that lists
19332 # what "hidden" libraries, object files and flags are used when
19333 # linking a shared library.
19334 #
19335 # There doesn't appear to be a way to prevent this compiler from
19336 # explicitly linking system object files so we need to strip them
19337 # from the output so that they don't get included in the library
19338 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019339 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 +000019340 ;;
cristy0c60a692010-11-04 01:09:47 +000019341 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019342 # IBM XL 8.0 on PPC, with GNU ld
19343 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19344 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19345 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19346 if test "x$supports_anon_versioning" = xyes; then
19347 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19349 echo "local: *; };" >> $output_objdir/$libname.ver~
19350 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19351 fi
19352 ;;
19353 *)
19354 case `$CC -V 2>&1 | sed 5q` in
19355 *Sun\ C*)
19356 # Sun C++ 5.9
19357 no_undefined_flag_CXX=' -zdefs'
19358 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19359 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'
19360 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019361 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 +000019362 compiler_needs_object_CXX=yes
19363
19364 # Not sure whether something based on
19365 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19366 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019367 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019368
19369 # Archives containing C++ object files must be created using
19370 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19371 # necessary to make sure instantiated templates are included
19372 # in the archive.
19373 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19374 ;;
19375 esac
19376 ;;
19377 esac
19378 ;;
19379
19380 lynxos*)
19381 # FIXME: insert proper C++ library support
19382 ld_shlibs_CXX=no
19383 ;;
19384
19385 m88k*)
19386 # FIXME: insert proper C++ library support
19387 ld_shlibs_CXX=no
19388 ;;
19389
19390 mvs*)
19391 case $cc_basename in
19392 cxx*)
19393 # FIXME: insert proper C++ library support
19394 ld_shlibs_CXX=no
19395 ;;
19396 *)
19397 # FIXME: insert proper C++ library support
19398 ld_shlibs_CXX=no
19399 ;;
19400 esac
19401 ;;
19402
19403 netbsd*)
19404 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19405 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19406 wlarc=
19407 hardcode_libdir_flag_spec_CXX='-R$libdir'
19408 hardcode_direct_CXX=yes
19409 hardcode_shlibpath_var_CXX=no
19410 fi
19411 # Workaround some broken pre-1.5 toolchains
19412 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19413 ;;
19414
19415 *nto* | *qnx*)
19416 ld_shlibs_CXX=yes
19417 ;;
19418
19419 openbsd2*)
19420 # C++ shared libraries are fairly broken
19421 ld_shlibs_CXX=no
19422 ;;
19423
19424 openbsd*)
19425 if test -f /usr/libexec/ld.so; then
19426 hardcode_direct_CXX=yes
19427 hardcode_shlibpath_var_CXX=no
19428 hardcode_direct_absolute_CXX=yes
19429 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19430 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19431 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19432 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19433 export_dynamic_flag_spec_CXX='${wl}-E'
19434 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19435 fi
cristy0c60a692010-11-04 01:09:47 +000019436 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019437 else
19438 ld_shlibs_CXX=no
19439 fi
19440 ;;
19441
19442 osf3* | osf4* | osf5*)
19443 case $cc_basename in
19444 KCC*)
19445 # Kuck and Associates, Inc. (KAI) C++ Compiler
19446
19447 # KCC will only create a shared library if the output file
19448 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19449 # to its proper name (with version) after linking.
19450 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'
19451
19452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19453 hardcode_libdir_separator_CXX=:
19454
19455 # Archives containing C++ object files must be created using
19456 # the KAI C++ compiler.
19457 case $host in
19458 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19459 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19460 esac
19461 ;;
19462 RCC*)
19463 # Rational C++ 2.4.1
19464 # FIXME: insert proper C++ library support
19465 ld_shlibs_CXX=no
19466 ;;
19467 cxx*)
19468 case $host in
19469 osf3*)
19470 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019471 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 +000019472 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19473 ;;
19474 *)
19475 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019476 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 +000019477 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19478 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019479 $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 +000019480 $RM $lib.exp'
19481 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19482 ;;
19483 esac
19484
19485 hardcode_libdir_separator_CXX=:
19486
19487 # Commands to make compiler produce verbose output that lists
19488 # what "hidden" libraries, object files and flags are used when
19489 # linking a shared library.
19490 #
19491 # There doesn't appear to be a way to prevent this compiler from
19492 # explicitly linking system object files so we need to strip them
19493 # from the output so that they don't get included in the library
19494 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019495 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 +000019496 ;;
19497 *)
19498 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19499 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19500 case $host in
19501 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019502 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 +000019503 ;;
19504 *)
cristyda16f162011-02-19 23:52:17 +000019505 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 +000019506 ;;
19507 esac
19508
19509 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19510 hardcode_libdir_separator_CXX=:
19511
19512 # Commands to make compiler produce verbose output that lists
19513 # what "hidden" libraries, object files and flags are used when
19514 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019515 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019516
19517 else
19518 # FIXME: insert proper C++ library support
19519 ld_shlibs_CXX=no
19520 fi
19521 ;;
19522 esac
19523 ;;
19524
19525 psos*)
19526 # FIXME: insert proper C++ library support
19527 ld_shlibs_CXX=no
19528 ;;
19529
19530 sunos4*)
19531 case $cc_basename in
19532 CC*)
19533 # Sun C++ 4.x
19534 # FIXME: insert proper C++ library support
19535 ld_shlibs_CXX=no
19536 ;;
19537 lcc*)
19538 # Lucid
19539 # FIXME: insert proper C++ library support
19540 ld_shlibs_CXX=no
19541 ;;
19542 *)
19543 # FIXME: insert proper C++ library support
19544 ld_shlibs_CXX=no
19545 ;;
19546 esac
19547 ;;
19548
19549 solaris*)
19550 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019551 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019552 # Sun C++ 4.2, 5.x and Centerline C++
19553 archive_cmds_need_lc_CXX=yes
19554 no_undefined_flag_CXX=' -zdefs'
19555 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19556 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19557 $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'
19558
19559 hardcode_libdir_flag_spec_CXX='-R$libdir'
19560 hardcode_shlibpath_var_CXX=no
19561 case $host_os in
19562 solaris2.[0-5] | solaris2.[0-5].*) ;;
19563 *)
19564 # The compiler driver will combine and reorder linker options,
19565 # but understands `-z linker_flag'.
19566 # Supported since Solaris 2.6 (maybe 2.5.1?)
19567 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19568 ;;
19569 esac
19570 link_all_deplibs_CXX=yes
19571
cristy0c60a692010-11-04 01:09:47 +000019572 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019573
19574 # Archives containing C++ object files must be created using
19575 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19576 # necessary to make sure instantiated templates are included
19577 # in the archive.
19578 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19579 ;;
19580 gcx*)
19581 # Green Hills C++ Compiler
19582 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19583
19584 # The C++ compiler must be used to create the archive.
19585 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19586 ;;
19587 *)
19588 # GNU C++ compiler with Solaris linker
19589 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19590 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19591 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019592 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 +000019593 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 +000019594 $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 +000019595
19596 # Commands to make compiler produce verbose output that lists
19597 # what "hidden" libraries, object files and flags are used when
19598 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019599 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019600 else
19601 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19602 # platform.
19603 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19604 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19605 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19606
19607 # Commands to make compiler produce verbose output that lists
19608 # what "hidden" libraries, object files and flags are used when
19609 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019610 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019611 fi
19612
19613 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19614 case $host_os in
19615 solaris2.[0-5] | solaris2.[0-5].*) ;;
19616 *)
19617 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19618 ;;
19619 esac
19620 fi
19621 ;;
19622 esac
19623 ;;
19624
19625 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19626 no_undefined_flag_CXX='${wl}-z,text'
19627 archive_cmds_need_lc_CXX=no
19628 hardcode_shlibpath_var_CXX=no
19629 runpath_var='LD_RUN_PATH'
19630
19631 case $cc_basename in
19632 CC*)
19633 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19634 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19635 ;;
19636 *)
19637 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19638 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19639 ;;
19640 esac
19641 ;;
19642
19643 sysv5* | sco3.2v5* | sco5v6*)
19644 # Note: We can NOT use -z defs as we might desire, because we do not
19645 # link with -lc, and that would cause any symbols used from libc to
19646 # always be unresolved, which means just about no library would
19647 # ever link correctly. If we're not using GNU ld we use -z text
19648 # though, which does catch some bad symbols but isn't as heavy-handed
19649 # as -z defs.
19650 no_undefined_flag_CXX='${wl}-z,text'
19651 allow_undefined_flag_CXX='${wl}-z,nodefs'
19652 archive_cmds_need_lc_CXX=no
19653 hardcode_shlibpath_var_CXX=no
19654 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19655 hardcode_libdir_separator_CXX=':'
19656 link_all_deplibs_CXX=yes
19657 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19658 runpath_var='LD_RUN_PATH'
19659
19660 case $cc_basename in
19661 CC*)
19662 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19663 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 +000019664 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19665 '"$old_archive_cmds_CXX"
19666 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19667 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019668 ;;
19669 *)
19670 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19671 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19672 ;;
19673 esac
19674 ;;
19675
19676 tandem*)
19677 case $cc_basename in
19678 NCC*)
19679 # NonStop-UX NCC 3.20
19680 # FIXME: insert proper C++ library support
19681 ld_shlibs_CXX=no
19682 ;;
19683 *)
19684 # FIXME: insert proper C++ library support
19685 ld_shlibs_CXX=no
19686 ;;
19687 esac
19688 ;;
19689
19690 vxworks*)
19691 # FIXME: insert proper C++ library support
19692 ld_shlibs_CXX=no
19693 ;;
19694
19695 *)
19696 # FIXME: insert proper C++ library support
19697 ld_shlibs_CXX=no
19698 ;;
19699 esac
19700
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19702$as_echo "$ld_shlibs_CXX" >&6; }
19703 test "$ld_shlibs_CXX" = no && can_build_shared=no
19704
19705 GCC_CXX="$GXX"
19706 LD_CXX="$LD"
19707
19708 ## CAVEAT EMPTOR:
19709 ## There is no encapsulation within the following macros, do not change
19710 ## the running order or otherwise move them around unless you know exactly
19711 ## what you are doing...
19712 # Dependencies to place before and after the object being linked:
19713predep_objects_CXX=
19714postdep_objects_CXX=
19715predeps_CXX=
19716postdeps_CXX=
19717compiler_lib_search_path_CXX=
19718
19719cat > conftest.$ac_ext <<_LT_EOF
19720class Foo
19721{
19722public:
19723 Foo (void) { a = 0; }
19724private:
19725 int a;
19726};
19727_LT_EOF
19728
cristyda16f162011-02-19 23:52:17 +000019729
19730_lt_libdeps_save_CFLAGS=$CFLAGS
19731case "$CC $CFLAGS " in #(
19732*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19733*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019734*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019735esac
19736
cristy73bd4a52010-10-05 11:24:23 +000019737if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19738 (eval $ac_compile) 2>&5
19739 ac_status=$?
19740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19741 test $ac_status = 0; }; then
19742 # Parse the compiler output and extract the necessary
19743 # objects, libraries and library flags.
19744
19745 # Sentinel used to keep track of whether or not we are before
19746 # the conftest object file.
19747 pre_test_object_deps_done=no
19748
19749 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019750 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019751
19752 -L* | -R* | -l*)
19753 # Some compilers place space between "-{L,R}" and the path.
19754 # Remove the space.
19755 if test $p = "-L" ||
19756 test $p = "-R"; then
19757 prev=$p
19758 continue
cristy73bd4a52010-10-05 11:24:23 +000019759 fi
19760
cristyda16f162011-02-19 23:52:17 +000019761 # Expand the sysroot to ease extracting the directories later.
19762 if test -z "$prev"; then
19763 case $p in
19764 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19765 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19766 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19767 esac
19768 fi
19769 case $p in
19770 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19771 esac
cristy73bd4a52010-10-05 11:24:23 +000019772 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019773 case ${prev} in
19774 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019775 # Internal compiler library paths should come after those
19776 # provided the user. The postdeps already come after the
19777 # user supplied libs so there is no need to process them.
19778 if test -z "$compiler_lib_search_path_CXX"; then
19779 compiler_lib_search_path_CXX="${prev}${p}"
19780 else
19781 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19782 fi
19783 ;;
19784 # The "-l" case would never come before the object being
19785 # linked, so don't bother handling this case.
19786 esac
19787 else
19788 if test -z "$postdeps_CXX"; then
19789 postdeps_CXX="${prev}${p}"
19790 else
19791 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19792 fi
19793 fi
cristyda16f162011-02-19 23:52:17 +000019794 prev=
cristy73bd4a52010-10-05 11:24:23 +000019795 ;;
19796
cristyda16f162011-02-19 23:52:17 +000019797 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019798 *.$objext)
19799 # This assumes that the test object file only shows up
19800 # once in the compiler output.
19801 if test "$p" = "conftest.$objext"; then
19802 pre_test_object_deps_done=yes
19803 continue
19804 fi
19805
19806 if test "$pre_test_object_deps_done" = no; then
19807 if test -z "$predep_objects_CXX"; then
19808 predep_objects_CXX="$p"
19809 else
19810 predep_objects_CXX="$predep_objects_CXX $p"
19811 fi
19812 else
19813 if test -z "$postdep_objects_CXX"; then
19814 postdep_objects_CXX="$p"
19815 else
19816 postdep_objects_CXX="$postdep_objects_CXX $p"
19817 fi
19818 fi
19819 ;;
19820
19821 *) ;; # Ignore the rest.
19822
19823 esac
19824 done
19825
19826 # Clean up.
19827 rm -f a.out a.exe
19828else
19829 echo "libtool.m4: error: problem compiling CXX test program"
19830fi
19831
19832$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019833CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019834
19835# PORTME: override above test on systems where it is broken
19836case $host_os in
19837interix[3-9]*)
19838 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19839 # hack all around it, let's just trust "g++" to DTRT.
19840 predep_objects_CXX=
19841 postdep_objects_CXX=
19842 postdeps_CXX=
19843 ;;
19844
19845linux*)
19846 case `$CC -V 2>&1 | sed 5q` in
19847 *Sun\ C*)
19848 # Sun C++ 5.9
19849
19850 # The more standards-conforming stlport4 library is
19851 # incompatible with the Cstd library. Avoid specifying
19852 # it if it's in CXXFLAGS. Ignore libCrun as
19853 # -library=stlport4 depends on it.
19854 case " $CXX $CXXFLAGS " in
19855 *" -library=stlport4 "*)
19856 solaris_use_stlport4=yes
19857 ;;
19858 esac
19859
19860 if test "$solaris_use_stlport4" != yes; then
19861 postdeps_CXX='-library=Cstd -library=Crun'
19862 fi
19863 ;;
19864 esac
19865 ;;
19866
19867solaris*)
19868 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019869 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019870 # The more standards-conforming stlport4 library is
19871 # incompatible with the Cstd library. Avoid specifying
19872 # it if it's in CXXFLAGS. Ignore libCrun as
19873 # -library=stlport4 depends on it.
19874 case " $CXX $CXXFLAGS " in
19875 *" -library=stlport4 "*)
19876 solaris_use_stlport4=yes
19877 ;;
19878 esac
19879
19880 # Adding this requires a known-good setup of shared libraries for
19881 # Sun compiler versions before 5.6, else PIC objects from an old
19882 # archive will be linked into the output, leading to subtle bugs.
19883 if test "$solaris_use_stlport4" != yes; then
19884 postdeps_CXX='-library=Cstd -library=Crun'
19885 fi
19886 ;;
19887 esac
19888 ;;
19889esac
19890
19891
19892case " $postdeps_CXX " in
19893*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19894esac
19895 compiler_lib_search_dirs_CXX=
19896if test -n "${compiler_lib_search_path_CXX}"; then
19897 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19898fi
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930 lt_prog_compiler_wl_CXX=
19931lt_prog_compiler_pic_CXX=
19932lt_prog_compiler_static_CXX=
19933
cristy73bd4a52010-10-05 11:24:23 +000019934
19935 # C++ specific cases for pic, static, wl, etc.
19936 if test "$GXX" = yes; then
19937 lt_prog_compiler_wl_CXX='-Wl,'
19938 lt_prog_compiler_static_CXX='-static'
19939
19940 case $host_os in
19941 aix*)
19942 # All AIX code is PIC.
19943 if test "$host_cpu" = ia64; then
19944 # AIX 5 now supports IA64 processor
19945 lt_prog_compiler_static_CXX='-Bstatic'
19946 fi
19947 ;;
19948
19949 amigaos*)
19950 case $host_cpu in
19951 powerpc)
19952 # see comment about AmigaOS4 .so support
19953 lt_prog_compiler_pic_CXX='-fPIC'
19954 ;;
19955 m68k)
19956 # FIXME: we need at least 68020 code to build shared libraries, but
19957 # adding the `-m68020' flag to GCC prevents building anything better,
19958 # like `-m68040'.
19959 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19960 ;;
19961 esac
19962 ;;
19963
19964 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19965 # PIC is the default for these OSes.
19966 ;;
19967 mingw* | cygwin* | os2* | pw32* | cegcc*)
19968 # This hack is so that the source file can tell whether it is being
19969 # built for inclusion in a dll (and should export symbols for example).
19970 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19971 # (--disable-auto-import) libraries
19972 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19973 ;;
19974 darwin* | rhapsody*)
19975 # PIC is the default on this platform
19976 # Common symbols not allowed in MH_DYLIB files
19977 lt_prog_compiler_pic_CXX='-fno-common'
19978 ;;
19979 *djgpp*)
19980 # DJGPP does not support shared libraries at all
19981 lt_prog_compiler_pic_CXX=
19982 ;;
cristy0c60a692010-11-04 01:09:47 +000019983 haiku*)
19984 # PIC is the default for Haiku.
19985 # The "-static" flag exists, but is broken.
19986 lt_prog_compiler_static_CXX=
19987 ;;
cristy73bd4a52010-10-05 11:24:23 +000019988 interix[3-9]*)
19989 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19990 # Instead, we relocate shared libraries at runtime.
19991 ;;
19992 sysv4*MP*)
19993 if test -d /usr/nec; then
19994 lt_prog_compiler_pic_CXX=-Kconform_pic
19995 fi
19996 ;;
19997 hpux*)
19998 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19999 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20000 # sets the default TLS model and affects inlining.
20001 case $host_cpu in
20002 hppa*64*)
20003 ;;
20004 *)
20005 lt_prog_compiler_pic_CXX='-fPIC'
20006 ;;
20007 esac
20008 ;;
20009 *qnx* | *nto*)
20010 # QNX uses GNU C++, but need to define -shared option too, otherwise
20011 # it will coredump.
20012 lt_prog_compiler_pic_CXX='-fPIC -shared'
20013 ;;
20014 *)
20015 lt_prog_compiler_pic_CXX='-fPIC'
20016 ;;
20017 esac
20018 else
20019 case $host_os in
20020 aix[4-9]*)
20021 # All AIX code is PIC.
20022 if test "$host_cpu" = ia64; then
20023 # AIX 5 now supports IA64 processor
20024 lt_prog_compiler_static_CXX='-Bstatic'
20025 else
20026 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20027 fi
20028 ;;
20029 chorus*)
20030 case $cc_basename in
20031 cxch68*)
20032 # Green Hills C++ Compiler
20033 # _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"
20034 ;;
20035 esac
20036 ;;
cristyda16f162011-02-19 23:52:17 +000020037 mingw* | cygwin* | os2* | pw32* | cegcc*)
20038 # This hack is so that the source file can tell whether it is being
20039 # built for inclusion in a dll (and should export symbols for example).
20040 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20041 ;;
cristy73bd4a52010-10-05 11:24:23 +000020042 dgux*)
20043 case $cc_basename in
20044 ec++*)
20045 lt_prog_compiler_pic_CXX='-KPIC'
20046 ;;
20047 ghcx*)
20048 # Green Hills C++ Compiler
20049 lt_prog_compiler_pic_CXX='-pic'
20050 ;;
20051 *)
20052 ;;
20053 esac
20054 ;;
20055 freebsd* | dragonfly*)
20056 # FreeBSD uses GNU C++
20057 ;;
20058 hpux9* | hpux10* | hpux11*)
20059 case $cc_basename in
20060 CC*)
20061 lt_prog_compiler_wl_CXX='-Wl,'
20062 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20063 if test "$host_cpu" != ia64; then
20064 lt_prog_compiler_pic_CXX='+Z'
20065 fi
20066 ;;
20067 aCC*)
20068 lt_prog_compiler_wl_CXX='-Wl,'
20069 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20070 case $host_cpu in
20071 hppa*64*|ia64*)
20072 # +Z the default
20073 ;;
20074 *)
20075 lt_prog_compiler_pic_CXX='+Z'
20076 ;;
20077 esac
20078 ;;
20079 *)
20080 ;;
20081 esac
20082 ;;
20083 interix*)
20084 # This is c89, which is MS Visual C++ (no shared libs)
20085 # Anyone wants to do a port?
20086 ;;
20087 irix5* | irix6* | nonstopux*)
20088 case $cc_basename in
20089 CC*)
20090 lt_prog_compiler_wl_CXX='-Wl,'
20091 lt_prog_compiler_static_CXX='-non_shared'
20092 # CC pic flag -KPIC is the default.
20093 ;;
20094 *)
20095 ;;
20096 esac
20097 ;;
cristy0c60a692010-11-04 01:09:47 +000020098 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020099 case $cc_basename in
20100 KCC*)
20101 # KAI C++ Compiler
20102 lt_prog_compiler_wl_CXX='--backend -Wl,'
20103 lt_prog_compiler_pic_CXX='-fPIC'
20104 ;;
20105 ecpc* )
20106 # old Intel C++ for x86_64 which still supported -KPIC.
20107 lt_prog_compiler_wl_CXX='-Wl,'
20108 lt_prog_compiler_pic_CXX='-KPIC'
20109 lt_prog_compiler_static_CXX='-static'
20110 ;;
20111 icpc* )
20112 # Intel C++, used to be incompatible with GCC.
20113 # ICC 10 doesn't accept -KPIC any more.
20114 lt_prog_compiler_wl_CXX='-Wl,'
20115 lt_prog_compiler_pic_CXX='-fPIC'
20116 lt_prog_compiler_static_CXX='-static'
20117 ;;
20118 pgCC* | pgcpp*)
20119 # Portland Group C++ compiler
20120 lt_prog_compiler_wl_CXX='-Wl,'
20121 lt_prog_compiler_pic_CXX='-fpic'
20122 lt_prog_compiler_static_CXX='-Bstatic'
20123 ;;
20124 cxx*)
20125 # Compaq C++
20126 # Make sure the PIC flag is empty. It appears that all Alpha
20127 # Linux and Compaq Tru64 Unix objects are PIC.
20128 lt_prog_compiler_pic_CXX=
20129 lt_prog_compiler_static_CXX='-non_shared'
20130 ;;
cristy0c60a692010-11-04 01:09:47 +000020131 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20132 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000020133 lt_prog_compiler_wl_CXX='-Wl,'
20134 lt_prog_compiler_pic_CXX='-qpic'
20135 lt_prog_compiler_static_CXX='-qstaticlink'
20136 ;;
20137 *)
20138 case `$CC -V 2>&1 | sed 5q` in
20139 *Sun\ C*)
20140 # Sun C++ 5.9
20141 lt_prog_compiler_pic_CXX='-KPIC'
20142 lt_prog_compiler_static_CXX='-Bstatic'
20143 lt_prog_compiler_wl_CXX='-Qoption ld '
20144 ;;
20145 esac
20146 ;;
20147 esac
20148 ;;
20149 lynxos*)
20150 ;;
20151 m88k*)
20152 ;;
20153 mvs*)
20154 case $cc_basename in
20155 cxx*)
20156 lt_prog_compiler_pic_CXX='-W c,exportall'
20157 ;;
20158 *)
20159 ;;
20160 esac
20161 ;;
20162 netbsd*)
20163 ;;
20164 *qnx* | *nto*)
20165 # QNX uses GNU C++, but need to define -shared option too, otherwise
20166 # it will coredump.
20167 lt_prog_compiler_pic_CXX='-fPIC -shared'
20168 ;;
20169 osf3* | osf4* | osf5*)
20170 case $cc_basename in
20171 KCC*)
20172 lt_prog_compiler_wl_CXX='--backend -Wl,'
20173 ;;
20174 RCC*)
20175 # Rational C++ 2.4.1
20176 lt_prog_compiler_pic_CXX='-pic'
20177 ;;
20178 cxx*)
20179 # Digital/Compaq C++
20180 lt_prog_compiler_wl_CXX='-Wl,'
20181 # Make sure the PIC flag is empty. It appears that all Alpha
20182 # Linux and Compaq Tru64 Unix objects are PIC.
20183 lt_prog_compiler_pic_CXX=
20184 lt_prog_compiler_static_CXX='-non_shared'
20185 ;;
20186 *)
20187 ;;
20188 esac
20189 ;;
20190 psos*)
20191 ;;
20192 solaris*)
20193 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020194 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020195 # Sun C++ 4.2, 5.x and Centerline C++
20196 lt_prog_compiler_pic_CXX='-KPIC'
20197 lt_prog_compiler_static_CXX='-Bstatic'
20198 lt_prog_compiler_wl_CXX='-Qoption ld '
20199 ;;
20200 gcx*)
20201 # Green Hills C++ Compiler
20202 lt_prog_compiler_pic_CXX='-PIC'
20203 ;;
20204 *)
20205 ;;
20206 esac
20207 ;;
20208 sunos4*)
20209 case $cc_basename in
20210 CC*)
20211 # Sun C++ 4.x
20212 lt_prog_compiler_pic_CXX='-pic'
20213 lt_prog_compiler_static_CXX='-Bstatic'
20214 ;;
20215 lcc*)
20216 # Lucid
20217 lt_prog_compiler_pic_CXX='-pic'
20218 ;;
20219 *)
20220 ;;
20221 esac
20222 ;;
20223 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20224 case $cc_basename in
20225 CC*)
20226 lt_prog_compiler_wl_CXX='-Wl,'
20227 lt_prog_compiler_pic_CXX='-KPIC'
20228 lt_prog_compiler_static_CXX='-Bstatic'
20229 ;;
20230 esac
20231 ;;
20232 tandem*)
20233 case $cc_basename in
20234 NCC*)
20235 # NonStop-UX NCC 3.20
20236 lt_prog_compiler_pic_CXX='-KPIC'
20237 ;;
20238 *)
20239 ;;
20240 esac
20241 ;;
20242 vxworks*)
20243 ;;
20244 *)
20245 lt_prog_compiler_can_build_shared_CXX=no
20246 ;;
20247 esac
20248 fi
20249
20250case $host_os in
20251 # For platforms which do not support PIC, -DPIC is meaningless:
20252 *djgpp*)
20253 lt_prog_compiler_pic_CXX=
20254 ;;
20255 *)
20256 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20257 ;;
20258esac
cristy73bd4a52010-10-05 11:24:23 +000020259
cristyda16f162011-02-19 23:52:17 +000020260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20261$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20262if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20263 $as_echo_n "(cached) " >&6
20264else
20265 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20266fi
20267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20268$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20269lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020270
20271#
20272# Check to make sure the PIC flag actually works.
20273#
20274if test -n "$lt_prog_compiler_pic_CXX"; then
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20276$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020277if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020278 $as_echo_n "(cached) " >&6
20279else
20280 lt_cv_prog_compiler_pic_works_CXX=no
20281 ac_outfile=conftest.$ac_objext
20282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20283 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20284 # Insert the option either (1) after the last *FLAGS variable, or
20285 # (2) before a word containing "conftest.", or (3) at the end.
20286 # Note that $ac_compile itself does not contain backslashes and begins
20287 # with a dollar sign (not a hyphen), so the echo should work correctly.
20288 # The option is referenced via a variable to avoid confusing sed.
20289 lt_compile=`echo "$ac_compile" | $SED \
20290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20292 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020293 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020294 (eval "$lt_compile" 2>conftest.err)
20295 ac_status=$?
20296 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020298 if (exit $ac_status) && test -s "$ac_outfile"; then
20299 # The compiler can only warn and ignore the option if not recognized
20300 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020301 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20303 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20304 lt_cv_prog_compiler_pic_works_CXX=yes
20305 fi
20306 fi
20307 $RM conftest*
20308
20309fi
20310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20311$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20312
20313if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20314 case $lt_prog_compiler_pic_CXX in
20315 "" | " "*) ;;
20316 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20317 esac
20318else
20319 lt_prog_compiler_pic_CXX=
20320 lt_prog_compiler_can_build_shared_CXX=no
20321fi
20322
20323fi
20324
20325
20326
cristyda16f162011-02-19 23:52:17 +000020327
20328
cristy73bd4a52010-10-05 11:24:23 +000020329#
20330# Check to make sure the static flag actually works.
20331#
20332wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20334$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020335if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020336 $as_echo_n "(cached) " >&6
20337else
20338 lt_cv_prog_compiler_static_works_CXX=no
20339 save_LDFLAGS="$LDFLAGS"
20340 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20341 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20342 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20343 # The linker can only warn and ignore the option if not recognized
20344 # So say no if there are warnings
20345 if test -s conftest.err; then
20346 # Append any errors to the config.log.
20347 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020348 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20350 if diff conftest.exp conftest.er2 >/dev/null; then
20351 lt_cv_prog_compiler_static_works_CXX=yes
20352 fi
20353 else
20354 lt_cv_prog_compiler_static_works_CXX=yes
20355 fi
20356 fi
20357 $RM -r conftest*
20358 LDFLAGS="$save_LDFLAGS"
20359
20360fi
20361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20362$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20363
20364if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20365 :
20366else
20367 lt_prog_compiler_static_CXX=
20368fi
20369
20370
20371
20372
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20374$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020375if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020376 $as_echo_n "(cached) " >&6
20377else
20378 lt_cv_prog_compiler_c_o_CXX=no
20379 $RM -r conftest 2>/dev/null
20380 mkdir conftest
20381 cd conftest
20382 mkdir out
20383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20384
20385 lt_compiler_flag="-o out/conftest2.$ac_objext"
20386 # Insert the option either (1) after the last *FLAGS variable, or
20387 # (2) before a word containing "conftest.", or (3) at the end.
20388 # Note that $ac_compile itself does not contain backslashes and begins
20389 # with a dollar sign (not a hyphen), so the echo should work correctly.
20390 lt_compile=`echo "$ac_compile" | $SED \
20391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20393 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020394 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020395 (eval "$lt_compile" 2>out/conftest.err)
20396 ac_status=$?
20397 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020399 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20400 then
20401 # The compiler can only warn and ignore the option if not recognized
20402 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020403 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020404 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20405 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20406 lt_cv_prog_compiler_c_o_CXX=yes
20407 fi
20408 fi
20409 chmod u+w . 2>&5
20410 $RM conftest*
20411 # SGI C++ compiler will create directory out/ii_files/ for
20412 # template instantiation
20413 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20414 $RM out/* && rmdir out
20415 cd ..
20416 $RM -r conftest
20417 $RM conftest*
20418
20419fi
20420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20421$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20422
20423
20424
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20426$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020427if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020428 $as_echo_n "(cached) " >&6
20429else
20430 lt_cv_prog_compiler_c_o_CXX=no
20431 $RM -r conftest 2>/dev/null
20432 mkdir conftest
20433 cd conftest
20434 mkdir out
20435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20436
20437 lt_compiler_flag="-o out/conftest2.$ac_objext"
20438 # Insert the option either (1) after the last *FLAGS variable, or
20439 # (2) before a word containing "conftest.", or (3) at the end.
20440 # Note that $ac_compile itself does not contain backslashes and begins
20441 # with a dollar sign (not a hyphen), so the echo should work correctly.
20442 lt_compile=`echo "$ac_compile" | $SED \
20443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20445 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020447 (eval "$lt_compile" 2>out/conftest.err)
20448 ac_status=$?
20449 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20452 then
20453 # The compiler can only warn and ignore the option if not recognized
20454 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20458 lt_cv_prog_compiler_c_o_CXX=yes
20459 fi
20460 fi
20461 chmod u+w . 2>&5
20462 $RM conftest*
20463 # SGI C++ compiler will create directory out/ii_files/ for
20464 # template instantiation
20465 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20466 $RM out/* && rmdir out
20467 cd ..
20468 $RM -r conftest
20469 $RM conftest*
20470
20471fi
20472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20473$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20474
20475
20476
20477
20478hard_links="nottested"
20479if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20480 # do not overwrite the value of need_locks provided by the user
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20482$as_echo_n "checking if we can lock with hard links... " >&6; }
20483 hard_links=yes
20484 $RM conftest*
20485 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20486 touch conftest.a
20487 ln conftest.a conftest.b 2>&5 || hard_links=no
20488 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20490$as_echo "$hard_links" >&6; }
20491 if test "$hard_links" = no; then
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20493$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20494 need_locks=warn
20495 fi
20496else
20497 need_locks=no
20498fi
20499
20500
20501
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20503$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20504
20505 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020506 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020507 case $host_os in
20508 aix[4-9]*)
20509 # If we're using GNU nm, then we don't want the "-C" option.
20510 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020511 # Also, AIX nm treats weak defined symbols like other global defined
20512 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020513 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020514 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 +000020515 else
20516 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'
20517 fi
20518 ;;
20519 pw32*)
20520 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020521 ;;
cristy73bd4a52010-10-05 11:24:23 +000020522 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020523 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020524 cl*)
20525 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20526 ;;
cristyda16f162011-02-19 23:52:17 +000020527 *)
20528 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'
20529 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20530 ;;
20531 esac
20532 ;;
cristy73bd4a52010-10-05 11:24:23 +000020533 *)
20534 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020535 ;;
cristy73bd4a52010-10-05 11:24:23 +000020536 esac
cristy73bd4a52010-10-05 11:24:23 +000020537
20538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20539$as_echo "$ld_shlibs_CXX" >&6; }
20540test "$ld_shlibs_CXX" = no && can_build_shared=no
20541
20542with_gnu_ld_CXX=$with_gnu_ld
20543
20544
20545
20546
20547
20548
20549#
20550# Do we need to explicitly link libc?
20551#
20552case "x$archive_cmds_need_lc_CXX" in
20553x|xyes)
20554 # Assume -lc should be added
20555 archive_cmds_need_lc_CXX=yes
20556
20557 if test "$enable_shared" = yes && test "$GCC" = yes; then
20558 case $archive_cmds_CXX in
20559 *'~'*)
20560 # FIXME: we may have to deal with multi-command sequences.
20561 ;;
20562 '$CC '*)
20563 # Test whether the compiler implicitly links with -lc since on some
20564 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20565 # to ld, don't add -lc before -lgcc.
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20567$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020568if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020569 $as_echo_n "(cached) " >&6
20570else
20571 $RM conftest*
20572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020573
cristy0c60a692010-11-04 01:09:47 +000020574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020575 (eval $ac_compile) 2>&5
20576 ac_status=$?
20577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20578 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020579 soname=conftest
20580 lib=conftest
20581 libobjs=conftest.$ac_objext
20582 deplibs=
20583 wl=$lt_prog_compiler_wl_CXX
20584 pic_flag=$lt_prog_compiler_pic_CXX
20585 compiler_flags=-v
20586 linker_flags=-v
20587 verstring=
20588 output_objdir=.
20589 libname=conftest
20590 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20591 allow_undefined_flag_CXX=
20592 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 +000020593 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20594 ac_status=$?
20595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20596 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020597 then
20598 lt_cv_archive_cmds_need_lc_CXX=no
20599 else
20600 lt_cv_archive_cmds_need_lc_CXX=yes
20601 fi
20602 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20603 else
20604 cat conftest.err 1>&5
20605 fi
20606 $RM conftest*
20607
20608fi
20609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20610$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20611 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020612 ;;
20613 esac
20614 fi
20615 ;;
20616esac
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
cristy73bd4a52010-10-05 11:24:23 +000020679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20680$as_echo_n "checking dynamic linker characteristics... " >&6; }
20681
20682library_names_spec=
20683libname_spec='lib$name'
20684soname_spec=
20685shrext_cmds=".so"
20686postinstall_cmds=
20687postuninstall_cmds=
20688finish_cmds=
20689finish_eval=
20690shlibpath_var=
20691shlibpath_overrides_runpath=unknown
20692version_type=none
20693dynamic_linker="$host_os ld.so"
20694sys_lib_dlsearch_path_spec="/lib /usr/lib"
20695need_lib_prefix=unknown
20696hardcode_into_libs=no
20697
20698# when you set need_version to no, make sure it does not cause -set_version
20699# flags to be left without arguments
20700need_version=unknown
20701
20702case $host_os in
20703aix3*)
cristy99bd5232011-12-07 14:38:20 +000020704 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20706 shlibpath_var=LIBPATH
20707
20708 # AIX 3 has no versioning support, so we append a major version to the name.
20709 soname_spec='${libname}${release}${shared_ext}$major'
20710 ;;
20711
20712aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020713 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020714 need_lib_prefix=no
20715 need_version=no
20716 hardcode_into_libs=yes
20717 if test "$host_cpu" = ia64; then
20718 # AIX 5 supports IA64
20719 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20720 shlibpath_var=LD_LIBRARY_PATH
20721 else
20722 # With GCC up to 2.95.x, collect2 would create an import file
20723 # for dependence libraries. The import file would start with
20724 # the line `#! .'. This would cause the generated library to
20725 # depend on `.', always an invalid library. This was fixed in
20726 # development snapshots of GCC prior to 3.0.
20727 case $host_os in
20728 aix4 | aix4.[01] | aix4.[01].*)
20729 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20730 echo ' yes '
20731 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20732 :
20733 else
20734 can_build_shared=no
20735 fi
20736 ;;
20737 esac
20738 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20739 # soname into executable. Probably we can add versioning support to
20740 # collect2, so additional links can be useful in future.
20741 if test "$aix_use_runtimelinking" = yes; then
20742 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20743 # instead of lib<name>.a to let people know that these are not
20744 # typical AIX shared libraries.
20745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20746 else
20747 # We preserve .a as extension for shared libraries through AIX4.2
20748 # and later when we are not doing run time linking.
20749 library_names_spec='${libname}${release}.a $libname.a'
20750 soname_spec='${libname}${release}${shared_ext}$major'
20751 fi
20752 shlibpath_var=LIBPATH
20753 fi
20754 ;;
20755
20756amigaos*)
20757 case $host_cpu in
20758 powerpc)
20759 # Since July 2007 AmigaOS4 officially supports .so libraries.
20760 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20762 ;;
20763 m68k)
20764 library_names_spec='$libname.ixlibrary $libname.a'
20765 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020766 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 +000020767 ;;
20768 esac
20769 ;;
20770
20771beos*)
20772 library_names_spec='${libname}${shared_ext}'
20773 dynamic_linker="$host_os ld.so"
20774 shlibpath_var=LIBRARY_PATH
20775 ;;
20776
20777bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020778 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020779 need_version=no
20780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20781 soname_spec='${libname}${release}${shared_ext}$major'
20782 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20783 shlibpath_var=LD_LIBRARY_PATH
20784 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20785 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20786 # the default ld.so.conf also contains /usr/contrib/lib and
20787 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20788 # libtool to hard-code these into programs
20789 ;;
20790
20791cygwin* | mingw* | pw32* | cegcc*)
20792 version_type=windows
20793 shrext_cmds=".dll"
20794 need_version=no
20795 need_lib_prefix=no
20796
cristyda16f162011-02-19 23:52:17 +000020797 case $GCC,$cc_basename in
20798 yes,*)
20799 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020800 library_names_spec='$libname.dll.a'
20801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20802 postinstall_cmds='base_file=`basename \${file}`~
20803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20804 dldir=$destdir/`dirname \$dlpath`~
20805 test -d \$dldir || mkdir -p \$dldir~
20806 $install_prog $dir/$dlname \$dldir/$dlname~
20807 chmod a+x \$dldir/$dlname~
20808 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20809 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20810 fi'
20811 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20812 dlpath=$dir/\$dldll~
20813 $RM \$dlpath'
20814 shlibpath_overrides_runpath=yes
20815
20816 case $host_os in
20817 cygwin*)
20818 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20819 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020820
cristy73bd4a52010-10-05 11:24:23 +000020821 ;;
20822 mingw* | cegcc*)
20823 # MinGW DLLs use traditional 'lib' prefix
20824 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020825 ;;
20826 pw32*)
20827 # pw32 DLLs use 'pw' prefix rather than 'lib'
20828 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20829 ;;
20830 esac
cristyda16f162011-02-19 23:52:17 +000020831 dynamic_linker='Win32 ld.exe'
20832 ;;
20833
20834 *,cl*)
20835 # Native MSVC
20836 libname_spec='$name'
20837 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20838 library_names_spec='${libname}.dll.lib'
20839
20840 case $build_os in
20841 mingw*)
20842 sys_lib_search_path_spec=
20843 lt_save_ifs=$IFS
20844 IFS=';'
20845 for lt_path in $LIB
20846 do
20847 IFS=$lt_save_ifs
20848 # Let DOS variable expansion print the short 8.3 style file name.
20849 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20850 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20851 done
20852 IFS=$lt_save_ifs
20853 # Convert to MSYS style.
20854 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20855 ;;
20856 cygwin*)
20857 # Convert to unix form, then to dos form, then back to unix form
20858 # but this time dos style (no spaces!) so that the unix form looks
20859 # like /cygdrive/c/PROGRA~1:/cygdr...
20860 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20861 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20862 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20863 ;;
20864 *)
20865 sys_lib_search_path_spec="$LIB"
20866 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20867 # It is most probably a Windows format PATH.
20868 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20869 else
20870 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20871 fi
20872 # FIXME: find the short name or the path components, as spaces are
20873 # common. (e.g. "Program Files" -> "PROGRA~1")
20874 ;;
20875 esac
20876
20877 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20878 postinstall_cmds='base_file=`basename \${file}`~
20879 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20880 dldir=$destdir/`dirname \$dlpath`~
20881 test -d \$dldir || mkdir -p \$dldir~
20882 $install_prog $dir/$dlname \$dldir/$dlname'
20883 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20884 dlpath=$dir/\$dldll~
20885 $RM \$dlpath'
20886 shlibpath_overrides_runpath=yes
20887 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020888 ;;
20889
20890 *)
cristyda16f162011-02-19 23:52:17 +000020891 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020892 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020893 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020894 ;;
20895 esac
cristy73bd4a52010-10-05 11:24:23 +000020896 # FIXME: first we should search . and the directory the executable is in
20897 shlibpath_var=PATH
20898 ;;
20899
20900darwin* | rhapsody*)
20901 dynamic_linker="$host_os dyld"
20902 version_type=darwin
20903 need_lib_prefix=no
20904 need_version=no
20905 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20906 soname_spec='${libname}${release}${major}$shared_ext'
20907 shlibpath_overrides_runpath=yes
20908 shlibpath_var=DYLD_LIBRARY_PATH
20909 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20910
20911 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20912 ;;
20913
20914dgux*)
cristy99bd5232011-12-07 14:38:20 +000020915 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020916 need_lib_prefix=no
20917 need_version=no
20918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20919 soname_spec='${libname}${release}${shared_ext}$major'
20920 shlibpath_var=LD_LIBRARY_PATH
20921 ;;
20922
cristy73bd4a52010-10-05 11:24:23 +000020923freebsd* | dragonfly*)
20924 # DragonFly does not have aout. When/if they implement a new
20925 # versioning mechanism, adjust this.
20926 if test -x /usr/bin/objformat; then
20927 objformat=`/usr/bin/objformat`
20928 else
20929 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020930 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020931 *) objformat=elf ;;
20932 esac
20933 fi
20934 version_type=freebsd-$objformat
20935 case $version_type in
20936 freebsd-elf*)
20937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20938 need_version=no
20939 need_lib_prefix=no
20940 ;;
20941 freebsd-*)
20942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20943 need_version=yes
20944 ;;
20945 esac
20946 shlibpath_var=LD_LIBRARY_PATH
20947 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020948 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020949 shlibpath_overrides_runpath=yes
20950 ;;
20951 freebsd3.[01]* | freebsdelf3.[01]*)
20952 shlibpath_overrides_runpath=yes
20953 hardcode_into_libs=yes
20954 ;;
20955 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20956 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20957 shlibpath_overrides_runpath=no
20958 hardcode_into_libs=yes
20959 ;;
20960 *) # from 4.6 on, and DragonFly
20961 shlibpath_overrides_runpath=yes
20962 hardcode_into_libs=yes
20963 ;;
20964 esac
20965 ;;
20966
20967gnu*)
cristy99bd5232011-12-07 14:38:20 +000020968 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020969 need_lib_prefix=no
20970 need_version=no
20971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20972 soname_spec='${libname}${release}${shared_ext}$major'
20973 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020974 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020975 hardcode_into_libs=yes
20976 ;;
20977
cristy0c60a692010-11-04 01:09:47 +000020978haiku*)
cristy99bd5232011-12-07 14:38:20 +000020979 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020980 need_lib_prefix=no
20981 need_version=no
20982 dynamic_linker="$host_os runtime_loader"
20983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20984 soname_spec='${libname}${release}${shared_ext}$major'
20985 shlibpath_var=LIBRARY_PATH
20986 shlibpath_overrides_runpath=yes
20987 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20988 hardcode_into_libs=yes
20989 ;;
20990
cristy73bd4a52010-10-05 11:24:23 +000020991hpux9* | hpux10* | hpux11*)
20992 # Give a soname corresponding to the major version so that dld.sl refuses to
20993 # link against other versions.
20994 version_type=sunos
20995 need_lib_prefix=no
20996 need_version=no
20997 case $host_cpu in
20998 ia64*)
20999 shrext_cmds='.so'
21000 hardcode_into_libs=yes
21001 dynamic_linker="$host_os dld.so"
21002 shlibpath_var=LD_LIBRARY_PATH
21003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21005 soname_spec='${libname}${release}${shared_ext}$major'
21006 if test "X$HPUX_IA64_MODE" = X32; then
21007 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21008 else
21009 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21010 fi
21011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21012 ;;
21013 hppa*64*)
21014 shrext_cmds='.sl'
21015 hardcode_into_libs=yes
21016 dynamic_linker="$host_os dld.sl"
21017 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21018 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21020 soname_spec='${libname}${release}${shared_ext}$major'
21021 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21022 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21023 ;;
21024 *)
21025 shrext_cmds='.sl'
21026 dynamic_linker="$host_os dld.sl"
21027 shlibpath_var=SHLIB_PATH
21028 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21030 soname_spec='${libname}${release}${shared_ext}$major'
21031 ;;
21032 esac
cristy0c60a692010-11-04 01:09:47 +000021033 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000021034 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000021035 # or fails outright, so override atomically:
21036 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000021037 ;;
21038
21039interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000021040 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021041 need_lib_prefix=no
21042 need_version=no
21043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21044 soname_spec='${libname}${release}${shared_ext}$major'
21045 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21046 shlibpath_var=LD_LIBRARY_PATH
21047 shlibpath_overrides_runpath=no
21048 hardcode_into_libs=yes
21049 ;;
21050
21051irix5* | irix6* | nonstopux*)
21052 case $host_os in
21053 nonstopux*) version_type=nonstopux ;;
21054 *)
21055 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000021056 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021057 else
21058 version_type=irix
21059 fi ;;
21060 esac
21061 need_lib_prefix=no
21062 need_version=no
21063 soname_spec='${libname}${release}${shared_ext}$major'
21064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21065 case $host_os in
21066 irix5* | nonstopux*)
21067 libsuff= shlibsuff=
21068 ;;
21069 *)
21070 case $LD in # libtool.m4 will add one of these switches to LD
21071 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21072 libsuff= shlibsuff= libmagic=32-bit;;
21073 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21074 libsuff=32 shlibsuff=N32 libmagic=N32;;
21075 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21076 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21077 *) libsuff= shlibsuff= libmagic=never-match;;
21078 esac
21079 ;;
21080 esac
21081 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21082 shlibpath_overrides_runpath=no
21083 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21084 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21085 hardcode_into_libs=yes
21086 ;;
21087
21088# No shared lib support for Linux oldld, aout, or coff.
21089linux*oldld* | linux*aout* | linux*coff*)
21090 dynamic_linker=no
21091 ;;
21092
cristy99bd5232011-12-07 14:38:20 +000021093# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000021094linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000021095 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021096 need_lib_prefix=no
21097 need_version=no
21098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21099 soname_spec='${libname}${release}${shared_ext}$major'
21100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21101 shlibpath_var=LD_LIBRARY_PATH
21102 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000021103
cristy73bd4a52010-10-05 11:24:23 +000021104 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000021105 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000021106 $as_echo_n "(cached) " >&6
21107else
21108 lt_cv_shlibpath_overrides_runpath=no
21109 save_LDFLAGS=$LDFLAGS
21110 save_libdir=$libdir
21111 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21112 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000021114/* end confdefs.h. */
21115
21116int
21117main ()
21118{
21119
21120 ;
21121 return 0;
21122}
21123_ACEOF
21124if ac_fn_cxx_try_link "$LINENO"; then :
21125 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000021126 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000021127fi
21128fi
21129rm -f core conftest.err conftest.$ac_objext \
21130 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000021131 LDFLAGS=$save_LDFLAGS
21132 libdir=$save_libdir
21133
21134fi
21135
21136 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000021137
21138 # This implies no fast_install, which is unacceptable.
21139 # Some rework will be needed to allow for fast_install
21140 # before this can be enabled.
21141 hardcode_into_libs=yes
21142
21143 # Add ABI-specific directories to the system library path.
21144 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21145
21146 # Append ld.so.conf contents to the search path
21147 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000021148 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 +000021149 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000021150
cristy73bd4a52010-10-05 11:24:23 +000021151 fi
21152
21153 # We used to test for /lib/ld.so.1 and disable shared libraries on
21154 # powerpc, because MkLinux only supported shared libraries with the
21155 # GNU dynamic linker. Since this was broken with cross compilers,
21156 # most powerpc-linux boxes support dynamic linking these days and
21157 # people can always --disable-shared, the test was removed, and we
21158 # assume the GNU/Linux dynamic linker is in use.
21159 dynamic_linker='GNU/Linux ld.so'
21160 ;;
21161
21162netbsd*)
21163 version_type=sunos
21164 need_lib_prefix=no
21165 need_version=no
21166 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21169 dynamic_linker='NetBSD (a.out) ld.so'
21170 else
21171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21172 soname_spec='${libname}${release}${shared_ext}$major'
21173 dynamic_linker='NetBSD ld.elf_so'
21174 fi
21175 shlibpath_var=LD_LIBRARY_PATH
21176 shlibpath_overrides_runpath=yes
21177 hardcode_into_libs=yes
21178 ;;
21179
21180newsos6)
cristy99bd5232011-12-07 14:38:20 +000021181 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21183 shlibpath_var=LD_LIBRARY_PATH
21184 shlibpath_overrides_runpath=yes
21185 ;;
21186
21187*nto* | *qnx*)
21188 version_type=qnx
21189 need_lib_prefix=no
21190 need_version=no
21191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21192 soname_spec='${libname}${release}${shared_ext}$major'
21193 shlibpath_var=LD_LIBRARY_PATH
21194 shlibpath_overrides_runpath=no
21195 hardcode_into_libs=yes
21196 dynamic_linker='ldqnx.so'
21197 ;;
21198
21199openbsd*)
21200 version_type=sunos
21201 sys_lib_dlsearch_path_spec="/usr/lib"
21202 need_lib_prefix=no
21203 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21204 case $host_os in
21205 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21206 *) need_version=no ;;
21207 esac
21208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21210 shlibpath_var=LD_LIBRARY_PATH
21211 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21212 case $host_os in
21213 openbsd2.[89] | openbsd2.[89].*)
21214 shlibpath_overrides_runpath=no
21215 ;;
21216 *)
21217 shlibpath_overrides_runpath=yes
21218 ;;
21219 esac
21220 else
21221 shlibpath_overrides_runpath=yes
21222 fi
21223 ;;
21224
21225os2*)
21226 libname_spec='$name'
21227 shrext_cmds=".dll"
21228 need_lib_prefix=no
21229 library_names_spec='$libname${shared_ext} $libname.a'
21230 dynamic_linker='OS/2 ld.exe'
21231 shlibpath_var=LIBPATH
21232 ;;
21233
21234osf3* | osf4* | osf5*)
21235 version_type=osf
21236 need_lib_prefix=no
21237 need_version=no
21238 soname_spec='${libname}${release}${shared_ext}$major'
21239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21240 shlibpath_var=LD_LIBRARY_PATH
21241 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21242 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21243 ;;
21244
21245rdos*)
21246 dynamic_linker=no
21247 ;;
21248
21249solaris*)
cristy99bd5232011-12-07 14:38:20 +000021250 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021251 need_lib_prefix=no
21252 need_version=no
21253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21254 soname_spec='${libname}${release}${shared_ext}$major'
21255 shlibpath_var=LD_LIBRARY_PATH
21256 shlibpath_overrides_runpath=yes
21257 hardcode_into_libs=yes
21258 # ldd complains unless libraries are executable
21259 postinstall_cmds='chmod +x $lib'
21260 ;;
21261
21262sunos4*)
21263 version_type=sunos
21264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21265 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21266 shlibpath_var=LD_LIBRARY_PATH
21267 shlibpath_overrides_runpath=yes
21268 if test "$with_gnu_ld" = yes; then
21269 need_lib_prefix=no
21270 fi
21271 need_version=yes
21272 ;;
21273
21274sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021275 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21277 soname_spec='${libname}${release}${shared_ext}$major'
21278 shlibpath_var=LD_LIBRARY_PATH
21279 case $host_vendor in
21280 sni)
21281 shlibpath_overrides_runpath=no
21282 need_lib_prefix=no
21283 runpath_var=LD_RUN_PATH
21284 ;;
21285 siemens)
21286 need_lib_prefix=no
21287 ;;
21288 motorola)
21289 need_lib_prefix=no
21290 need_version=no
21291 shlibpath_overrides_runpath=no
21292 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21293 ;;
21294 esac
21295 ;;
21296
21297sysv4*MP*)
21298 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021299 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021300 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21301 soname_spec='$libname${shared_ext}.$major'
21302 shlibpath_var=LD_LIBRARY_PATH
21303 fi
21304 ;;
21305
21306sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21307 version_type=freebsd-elf
21308 need_lib_prefix=no
21309 need_version=no
21310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21311 soname_spec='${libname}${release}${shared_ext}$major'
21312 shlibpath_var=LD_LIBRARY_PATH
21313 shlibpath_overrides_runpath=yes
21314 hardcode_into_libs=yes
21315 if test "$with_gnu_ld" = yes; then
21316 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21317 else
21318 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21319 case $host_os in
21320 sco3.2v5*)
21321 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21322 ;;
21323 esac
21324 fi
21325 sys_lib_dlsearch_path_spec='/usr/lib'
21326 ;;
21327
21328tpf*)
21329 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021330 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021331 need_lib_prefix=no
21332 need_version=no
21333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21334 shlibpath_var=LD_LIBRARY_PATH
21335 shlibpath_overrides_runpath=no
21336 hardcode_into_libs=yes
21337 ;;
21338
21339uts4*)
cristy99bd5232011-12-07 14:38:20 +000021340 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21342 soname_spec='${libname}${release}${shared_ext}$major'
21343 shlibpath_var=LD_LIBRARY_PATH
21344 ;;
21345
21346*)
21347 dynamic_linker=no
21348 ;;
21349esac
21350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21351$as_echo "$dynamic_linker" >&6; }
21352test "$dynamic_linker" = no && can_build_shared=no
21353
21354variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21355if test "$GCC" = yes; then
21356 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21357fi
21358
21359if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21360 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21361fi
21362if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21363 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21364fi
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
cristy0c60a692010-11-04 01:09:47 +000021401
21402
cristy73bd4a52010-10-05 11:24:23 +000021403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21404$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21405hardcode_action_CXX=
21406if test -n "$hardcode_libdir_flag_spec_CXX" ||
21407 test -n "$runpath_var_CXX" ||
21408 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21409
21410 # We can hardcode non-existent directories.
21411 if test "$hardcode_direct_CXX" != no &&
21412 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21413 # have to relink, otherwise we might link with an installed library
21414 # when we should be linking with a yet-to-be-installed one
21415 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21416 test "$hardcode_minus_L_CXX" != no; then
21417 # Linking always hardcodes the temporary library directory.
21418 hardcode_action_CXX=relink
21419 else
21420 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21421 hardcode_action_CXX=immediate
21422 fi
21423else
21424 # We cannot hardcode anything, or else we can only hardcode existing
21425 # directories.
21426 hardcode_action_CXX=unsupported
21427fi
21428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21429$as_echo "$hardcode_action_CXX" >&6; }
21430
21431if test "$hardcode_action_CXX" = relink ||
21432 test "$inherit_rpath_CXX" = yes; then
21433 # Fast installation is not supported
21434 enable_fast_install=no
21435elif test "$shlibpath_overrides_runpath" = yes ||
21436 test "$enable_shared" = no; then
21437 # Fast installation is not necessary
21438 enable_fast_install=needless
21439fi
21440
21441
21442
21443
21444
21445
21446
21447 fi # test -n "$compiler"
21448
21449 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021450 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021451 LDCXX=$LD
21452 LD=$lt_save_LD
21453 GCC=$lt_save_GCC
21454 with_gnu_ld=$lt_save_with_gnu_ld
21455 lt_cv_path_LDCXX=$lt_cv_path_LD
21456 lt_cv_path_LD=$lt_save_path_LD
21457 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21458 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21459fi # test "$_lt_caught_CXX_error" != yes
21460
21461ac_ext=c
21462ac_cpp='$CPP $CPPFLAGS'
21463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21465ac_compiler_gnu=$ac_cv_c_compiler_gnu
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
cristy99bd5232011-12-07 14:38:20 +000021479
21480
cristy73bd4a52010-10-05 11:24:23 +000021481 ac_config_commands="$ac_config_commands libtool"
21482
21483
21484
21485
21486# Only expand once:
21487
21488
21489
cristy3ed852e2009-09-05 21:47:34 +000021490
21491
cristy3ed852e2009-09-05 21:47:34 +000021492# Check to see if building shared libraries
21493libtool_build_shared_libs='no'
21494if test "$enable_shared" = 'yes'; then
21495 libtool_build_shared_libs='yes'
21496fi
21497
21498# Check to see if building static libraries
21499libtool_build_static_libs='no'
21500if test "$enable_static" = 'yes'; then
21501 libtool_build_static_libs='yes'
21502fi
21503
cristy73bd4a52010-10-05 11:24:23 +000021504 if test "${libtool_build_shared_libs}" = 'yes'; then
21505 WITH_SHARED_LIBS_TRUE=
21506 WITH_SHARED_LIBS_FALSE='#'
21507else
21508 WITH_SHARED_LIBS_TRUE='#'
21509 WITH_SHARED_LIBS_FALSE=
21510fi
21511
cristy3ed852e2009-09-05 21:47:34 +000021512#
21513# Enable support for building loadable modules
21514#
cristyaf4cbf32012-10-16 23:47:41 +000021515build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021516
21517# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021518if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021519 withval=$with_modules; with_modules=$withval
21520else
cristy5a1cefd2010-01-06 20:42:35 +000021521 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021522fi
21523
21524
21525# Only allow building loadable modules if we are building shared libraries
21526if test "$with_modules" != 'no' ; then
21527 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021528 { $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 +000021529$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021530 build_modules='no'
21531 else
21532 build_modules='yes'
21533 fi
cristy3ed852e2009-09-05 21:47:34 +000021534fi
cristyc6722092012-10-14 00:19:31 +000021535if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021536
cristy8b350f62009-11-15 23:12:43 +000021537$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021538
cristyfa161182012-12-19 15:45:28 +000021539 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021540fi
cristyc6722092012-10-14 00:19:31 +000021541 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021542 WITH_MODULES_TRUE=
21543 WITH_MODULES_FALSE='#'
21544else
21545 WITH_MODULES_TRUE='#'
21546 WITH_MODULES_FALSE=
21547fi
21548
cristy3ed852e2009-09-05 21:47:34 +000021549
cristy3ed852e2009-09-05 21:47:34 +000021550# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021551# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021552# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021553if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021554 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21555else
21556 enable_delegate_build='no'
21557fi
21558
21559
21560# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021561if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021562 enableval=$enable_deprecated; enable_deprecated=$enableval
21563else
21564 enable_deprecated='no'
21565fi
21566
21567
21568if test "$enable_deprecated" = 'yes'; then
21569
cristy8b350f62009-11-15 23:12:43 +000021570$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021571
21572else
21573 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21574fi
21575
21576# Build a version of ImageMagick which operates uninstalled.
21577# Used to build distributions located via MAGICK_HOME / executable path
21578# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021579if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021580 enableval=$enable_installed; enable_installed=$enableval
21581else
21582 enable_installed='yes'
21583fi
21584
21585
21586if test "$enable_installed" = 'yes'; then
21587
cristy8b350f62009-11-15 23:12:43 +000021588$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021589
21590else
21591 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21592fi
21593
21594# Permit enciphering and deciphering image pixels.
21595# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021596if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021597 enableval=$enable_cipher; enable_cipher=$enableval
21598else
21599 enable_cipher='yes'
21600fi
21601
21602
21603if test "$enable_cipher" = 'yes'; then
21604
cristy8b350f62009-11-15 23:12:43 +000021605$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021606
21607fi
21608
cristy6e3607c2011-09-13 13:59:17 +000021609# Build a zero-configuration version of ImageMagick.
21610# Check whether --enable-zero-configuration was given.
21611if test "${enable_zero_configuration+set}" = set; then :
21612 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021613else
cristy6e3607c2011-09-13 13:59:17 +000021614 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021615fi
21616
21617
cristy6e3607c2011-09-13 13:59:17 +000021618if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021619
cristy6e3607c2011-09-13 13:59:17 +000021620$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021621
cristy81af5702011-09-13 14:20:58 +000021622 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021623fi
21624
21625# Build a high dynamic range version of ImageMagick.
21626# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021627if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021628 enableval=$enable_hdri; enable_hdri=$enableval
21629else
cristy191c0b72012-08-12 16:29:52 +000021630 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021631fi
21632
21633
21634MAGICK_HDRI=""
21635if test "$enable_hdri" = 'yes'; then
21636 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021637 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021638 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021639else
21640 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021641fi
21642
cristye52f12f2012-12-31 15:32:36 +000021643cat >>confdefs.h <<_ACEOF
21644#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21645_ACEOF
21646
21647MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21648CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021649CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021650
cristy3ed852e2009-09-05 21:47:34 +000021651# Build a version of ImageMagick with assert statements.
21652# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021653if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021654 enableval=$enable_assert; enable_assert=$enableval
21655else
21656 enable_assert='yes'
21657fi
21658
21659
21660if test "$enable_assert" = 'no'; then
21661
cristy8b350f62009-11-15 23:12:43 +000021662$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021663
21664fi
21665
cristya448bd22011-10-14 12:38:13 +000021666# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021667
21668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21669$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21670 # Check whether --enable-maintainer-mode was given.
21671if test "${enable_maintainer_mode+set}" = set; then :
21672 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21673else
21674 USE_MAINTAINER_MODE=no
21675fi
21676
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21678$as_echo "$USE_MAINTAINER_MODE" >&6; }
21679 if test $USE_MAINTAINER_MODE = yes; then
21680 MAINTAINER_MODE_TRUE=
21681 MAINTAINER_MODE_FALSE='#'
21682else
21683 MAINTAINER_MODE_TRUE='#'
21684 MAINTAINER_MODE_FALSE=
21685fi
21686
21687 MAINT=$MAINTAINER_MODE_TRUE
21688
21689
cristy3ed852e2009-09-05 21:47:34 +000021690
cristy944e51f2013-04-16 18:45:02 +000021691# Enable hugepages support
21692# Check whether --enable-hugepages was given.
21693if test "${enable_hugepages+set}" = set; then :
21694 enableval=$enable_hugepages; enable_hugepages=$enableval
21695else
21696 enable_hugepages='no'
21697fi
21698
21699
cristy3ed852e2009-09-05 21:47:34 +000021700# Enable ccmalloc memory debugging support
21701# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021702if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021703 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21704else
21705 enable_ccmalloc='no'
21706fi
21707
21708
21709# Enable Electric Fence memory debugging support
21710# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021711if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021712 enableval=$enable_efence; enable_efence=$enableval
21713else
21714 enable_efence='no'
21715fi
21716
21717
21718# Enable prof-based profiling support
21719# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021720if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021721 enableval=$enable_prof; enable_prof=$enableval
21722else
21723 enable_prof='no'
21724fi
21725
21726
21727# Enable gprof-based profiling support
21728# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021729if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021730 enableval=$enable_gprof; enable_gprof=$enableval
21731else
21732 enable_gprof='no'
21733fi
21734
21735
21736# Enable gcov-based profiling support
21737# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021738if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021739 enableval=$enable_gcov; enable_gcov=$enableval
21740else
21741 enable_gcov='no'
21742fi
21743
21744
21745enable_profiling='no'
21746if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21747 enable_profiling='yes'
21748 if test "$libtool_build_shared_libs" = 'yes'; then
21749 echo "Warning: Can not profile code using shared libraries"
21750 fi
21751fi
21752
21753# Magick API method prefix
21754
21755# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021756if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021757 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021758else
cristyfc3d0222012-02-07 15:05:57 +000021759 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021760fi
21761
21762
cristyfc3d0222012-02-07 15:05:57 +000021763if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021764
21765cat >>confdefs.h <<_ACEOF
21766#define NAMESPACE_PREFIX $with_method_prefix
21767_ACEOF
21768
cristyfc3d0222012-02-07 15:05:57 +000021769 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021770fi
21771
cristy71d8c202012-03-20 17:05:01 +000021772# Enable legacy support (default no)
21773# Check whether --enable-legacy-support was given.
21774if test "${enable_legacy_support+set}" = set; then :
21775 enableval=$enable_legacy_support; with_legacy_support=$enableval
21776else
21777 with_legacy_support='no'
21778fi
21779
21780 if test "$with_legacy_support" != 'no'; then
21781 LEGACY_SUPPORT_TRUE=
21782 LEGACY_SUPPORT_FALSE='#'
21783else
21784 LEGACY_SUPPORT_TRUE='#'
21785 LEGACY_SUPPORT_FALSE=
21786fi
21787
21788
cristy3ed852e2009-09-05 21:47:34 +000021789# Number of bits in a Quantum
21790
21791# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021792if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021793 withval=$with_quantum_depth; with_quantum_depth=$withval
21794else
21795 with_quantum_depth=16
21796fi
21797
21798
21799if test "$with_quantum_depth" != '8'; then
21800 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21801fi
21802
21803case "${with_quantum_depth}" in
21804 8 ) ;;
21805 16 ) ;;
21806 32 ) ;;
21807 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021808 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021809esac
21810QUANTUM_DEPTH="$with_quantum_depth"
21811
21812cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021813#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021814_ACEOF
21815
cristya371edf2013-02-06 13:42:17 +000021816MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021817CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021818CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021819
cristy01ff9f32012-12-01 18:15:29 +000021820# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021821MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021822if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021823 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021824fi
cristy01ff9f32012-12-01 18:15:29 +000021825
21826
cristy3ed852e2009-09-05 21:47:34 +000021827# Set pixel cache threshold
21828
21829# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021830if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021831 withval=$with_cache; with_cache=$withval
21832else
21833 with_cache=''
21834fi
21835
21836
21837if test "$with_cache" != ''; then
21838
21839cat >>confdefs.h <<_ACEOF
21840#define PixelCacheThreshold $with_cache
21841_ACEOF
21842
21843 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21844fi
21845
21846# Disable/Enable support for full delegate paths
21847
21848# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021849if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021850 withval=$with_frozenpaths; with_frozenpaths=$withval
21851else
21852 with_frozenpaths='no'
21853fi
21854
21855
21856# Enable build/install of Magick++
21857
21858# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021859if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021860 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21861else
21862 with_magick_plus_plus='yes'
21863fi
21864
21865
cristy3a75f062012-09-08 23:29:40 +000021866# Encode the this name into the shared library.
21867
21868# Check whether --with-package-release-name was given.
21869if test "${with_package_release_name+set}" = set; then :
21870 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21871fi
21872
21873
21874
cristy3ed852e2009-09-05 21:47:34 +000021875# Disable build/install of PerlMagick.
21876
21877# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021878if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021879 withval=$with_perl; with_perl=$withval
21880else
cristyb5f4e2f2010-04-25 00:49:11 +000021881 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021882fi
21883
21884
21885# Options to pass when configuring PerlMagick
21886
21887# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021888if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021889 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021890fi
21891
21892
cristy3ed852e2009-09-05 21:47:34 +000021893
cristy3b0097d2014-11-04 15:34:47 +000021894# Enable jemalloc, object-caching memory allocation library.
21895
21896# Check whether --with-jemalloc was given.
21897if test "${with_jemalloc+set}" = set; then :
21898 withval=$with_jemalloc; with_jemalloc=$withval
21899else
21900 with_jemalloc='no'
21901fi
21902
21903if test "$with_jemalloc" != 'yes' ; then
21904 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
21905fi
21906
cristy3ed852e2009-09-05 21:47:34 +000021907# Enable umem, object-caching memory allocation library.
21908
21909# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021910if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021911 withval=$with_umem; with_umem=$withval
21912else
21913 with_umem='no'
21914fi
21915
21916if test "$with_umem" != 'yes' ; then
21917 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21918fi
21919
21920#
21921# Specify path to shared libstdc++ if not in normal location
21922#
21923
21924# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021925if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021926 withval=$with_libstdc; with_libstdc=$withval
21927else
21928 with_libstdc=''
21929fi
21930
21931
21932if test "$with_libstdc" != ''; then
21933 if test -d "$with_libstdc"; then
21934 LIBSTDCLDFLAGS="-L$with_libstdc"
21935 fi
21936fi
21937
21938
21939# Does gcc required -traditional?
21940if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021942$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021943if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021944 $as_echo_n "(cached) " >&6
21945else
21946 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021948/* end confdefs.h. */
21949#include <sgtty.h>
21950Autoconf TIOCGETP
21951_ACEOF
21952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021953 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021954 ac_cv_prog_gcc_traditional=yes
21955else
21956 ac_cv_prog_gcc_traditional=no
21957fi
21958rm -f conftest*
21959
21960
21961 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021963/* end confdefs.h. */
21964#include <termio.h>
21965Autoconf TCGETA
21966_ACEOF
21967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021968 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021969 ac_cv_prog_gcc_traditional=yes
21970fi
21971rm -f conftest*
21972
21973 fi
21974fi
cristy8b350f62009-11-15 23:12:43 +000021975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021976$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21977 if test $ac_cv_prog_gcc_traditional = yes; then
21978 CC="$CC -traditional"
21979 fi
21980fi
21981
21982
21983########
21984#
21985# Set defines required to build DLLs and modules using MinGW
21986#
21987########
21988# These options are set for multi-thread DLL module build
21989# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21990# module: _DLL
21991# executable/Magick++: _DLL _MAGICKMOD_
21992MODULE_EXTRA_CPPFLAGS=''
21993LIBRARY_EXTRA_CPPFLAGS=''
21994if test "${native_win32_build}" = 'yes'; then
21995 if test "${libtool_build_shared_libs}" = 'yes'; then
21996 CPPFLAGS="$CPPFLAGS -D_DLL"
21997 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21998 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21999 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000022000 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022001 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22002 else
22003 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22004 fi
22005 else
22006 CPPFLAGS="$CPPFLAGS -D_LIB"
22007 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22008 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22009 fi
22010 if test "$with_threads" = 'yes'; then
22011 CPPFLAGS="$CPPFLAGS -D_MT"
22012 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22013 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22014 fi
22015fi
22016
22017
22018
22019# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022021$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022022if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022023 $as_echo_n "(cached) " >&6
22024else
cristy8b350f62009-11-15 23:12:43 +000022025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022026/* end confdefs.h. */
22027#include <stdlib.h>
22028#include <stdarg.h>
22029#include <string.h>
22030#include <float.h>
22031
22032int
22033main ()
22034{
22035
22036 ;
22037 return 0;
22038}
22039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022040if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022041 ac_cv_header_stdc=yes
22042else
cristy8b350f62009-11-15 23:12:43 +000022043 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022044fi
cristy3ed852e2009-09-05 21:47:34 +000022045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22046
22047if test $ac_cv_header_stdc = yes; then
22048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022050/* end confdefs.h. */
22051#include <string.h>
22052
22053_ACEOF
22054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022055 $EGREP "memchr" >/dev/null 2>&1; then :
22056
cristy3ed852e2009-09-05 21:47:34 +000022057else
22058 ac_cv_header_stdc=no
22059fi
22060rm -f conftest*
22061
22062fi
22063
22064if test $ac_cv_header_stdc = yes; then
22065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022067/* end confdefs.h. */
22068#include <stdlib.h>
22069
22070_ACEOF
22071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022072 $EGREP "free" >/dev/null 2>&1; then :
22073
cristy3ed852e2009-09-05 21:47:34 +000022074else
22075 ac_cv_header_stdc=no
22076fi
22077rm -f conftest*
22078
22079fi
22080
22081if test $ac_cv_header_stdc = yes; then
22082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022083 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022084 :
22085else
cristy8b350f62009-11-15 23:12:43 +000022086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022087/* end confdefs.h. */
22088#include <ctype.h>
22089#include <stdlib.h>
22090#if ((' ' & 0x0FF) == 0x020)
22091# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22092# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22093#else
22094# define ISLOWER(c) \
22095 (('a' <= (c) && (c) <= 'i') \
22096 || ('j' <= (c) && (c) <= 'r') \
22097 || ('s' <= (c) && (c) <= 'z'))
22098# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22099#endif
22100
22101#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22102int
22103main ()
22104{
22105 int i;
22106 for (i = 0; i < 256; i++)
22107 if (XOR (islower (i), ISLOWER (i))
22108 || toupper (i) != TOUPPER (i))
22109 return 2;
22110 return 0;
22111}
22112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022113if ac_fn_c_try_run "$LINENO"; then :
22114
cristy3ed852e2009-09-05 21:47:34 +000022115else
cristy8b350f62009-11-15 23:12:43 +000022116 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022117fi
cristy8b350f62009-11-15 23:12:43 +000022118rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22119 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022120fi
22121
cristy3ed852e2009-09-05 21:47:34 +000022122fi
22123fi
cristy8b350f62009-11-15 23:12:43 +000022124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022125$as_echo "$ac_cv_header_stdc" >&6; }
22126if test $ac_cv_header_stdc = yes; then
22127
cristy8b350f62009-11-15 23:12:43 +000022128$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022129
22130fi
22131
22132if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022133 { $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 +000022134 header files. Compilation cannot proceed. Please install the ANSI C
22135 headers and rerun this script." >&5
22136$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22137 header files. Compilation cannot proceed. Please install the ANSI C
22138 headers and rerun this script." >&2;};
22139fi
cristya0b81c32010-01-22 02:54:33 +000022140
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22142$as_echo_n "checking whether to enable assertions... " >&6; }
22143 # Check whether --enable-assert was given.
22144if test "${enable_assert+set}" = set; then :
22145 enableval=$enable_assert; ac_enable_assert=$enableval
22146 if test "x$enableval" = xno; then :
22147
22148$as_echo "#define NDEBUG 1" >>confdefs.h
22149
22150elif test "x$enableval" != xyes; then :
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22152$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22153 ac_enable_assert=yes
22154fi
22155else
22156 ac_enable_assert=yes
22157fi
22158
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22160$as_echo "$ac_enable_assert" >&6; }
22161
cristy3ed852e2009-09-05 21:47:34 +000022162ac_header_dirent=no
22163for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22164 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022166$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022167if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022168 $as_echo_n "(cached) " >&6
22169else
cristy8b350f62009-11-15 23:12:43 +000022170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022171/* end confdefs.h. */
22172#include <sys/types.h>
22173#include <$ac_hdr>
22174
22175int
22176main ()
22177{
22178if ((DIR *) 0)
22179return 0;
22180 ;
22181 return 0;
22182}
22183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022184if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022185 eval "$as_ac_Header=yes"
22186else
cristy8b350f62009-11-15 23:12:43 +000022187 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022188fi
cristy3ed852e2009-09-05 21:47:34 +000022189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22190fi
cristy8b350f62009-11-15 23:12:43 +000022191eval ac_res=\$$as_ac_Header
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022193$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022194if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022195 cat >>confdefs.h <<_ACEOF
22196#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22197_ACEOF
22198
22199ac_header_dirent=$ac_hdr; break
22200fi
22201
22202done
22203# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22204if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022206$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022207if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022208 $as_echo_n "(cached) " >&6
22209else
22210 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022212/* end confdefs.h. */
22213
22214/* Override any GCC internal prototype to avoid an error.
22215 Use char because int might match the return type of a GCC
22216 builtin and then its argument prototype would still apply. */
22217#ifdef __cplusplus
22218extern "C"
22219#endif
22220char opendir ();
22221int
22222main ()
22223{
22224return opendir ();
22225 ;
22226 return 0;
22227}
22228_ACEOF
22229for ac_lib in '' dir; do
22230 if test -z "$ac_lib"; then
22231 ac_res="none required"
22232 else
22233 ac_res=-l$ac_lib
22234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22235 fi
cristy8b350f62009-11-15 23:12:43 +000022236 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022237 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022238fi
cristy8b350f62009-11-15 23:12:43 +000022239rm -f core conftest.err conftest.$ac_objext \
22240 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022241 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022242 break
22243fi
22244done
cristyda16f162011-02-19 23:52:17 +000022245if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022246
cristy3ed852e2009-09-05 21:47:34 +000022247else
22248 ac_cv_search_opendir=no
22249fi
22250rm conftest.$ac_ext
22251LIBS=$ac_func_search_save_LIBS
22252fi
cristy8b350f62009-11-15 23:12:43 +000022253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022254$as_echo "$ac_cv_search_opendir" >&6; }
22255ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022256if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22258
22259fi
22260
22261else
cristy8b350f62009-11-15 23:12:43 +000022262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022263$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022264if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022265 $as_echo_n "(cached) " >&6
22266else
22267 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022269/* end confdefs.h. */
22270
22271/* Override any GCC internal prototype to avoid an error.
22272 Use char because int might match the return type of a GCC
22273 builtin and then its argument prototype would still apply. */
22274#ifdef __cplusplus
22275extern "C"
22276#endif
22277char opendir ();
22278int
22279main ()
22280{
22281return opendir ();
22282 ;
22283 return 0;
22284}
22285_ACEOF
22286for ac_lib in '' x; do
22287 if test -z "$ac_lib"; then
22288 ac_res="none required"
22289 else
22290 ac_res=-l$ac_lib
22291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22292 fi
cristy8b350f62009-11-15 23:12:43 +000022293 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022294 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022295fi
cristy8b350f62009-11-15 23:12:43 +000022296rm -f core conftest.err conftest.$ac_objext \
22297 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022298 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022299 break
22300fi
22301done
cristyda16f162011-02-19 23:52:17 +000022302if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022303
cristy3ed852e2009-09-05 21:47:34 +000022304else
22305 ac_cv_search_opendir=no
22306fi
22307rm conftest.$ac_ext
22308LIBS=$ac_func_search_save_LIBS
22309fi
cristy8b350f62009-11-15 23:12:43 +000022310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022311$as_echo "$ac_cv_search_opendir" >&6; }
22312ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022313if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22315
22316fi
22317
22318fi
22319
22320
22321# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000022322for 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 +000022323do :
22324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22325ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022326if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022327 cat >>confdefs.h <<_ACEOF
22328#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22329_ACEOF
22330
22331fi
22332
22333done
22334
22335
22336########
22337#
22338# Checks for typedefs, structures, and compiler characteristics.
22339#
22340########
22341
cristy8b350f62009-11-15 23:12:43 +000022342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022343$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022344if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022345 $as_echo_n "(cached) " >&6
22346else
cristy8b350f62009-11-15 23:12:43 +000022347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022348/* end confdefs.h. */
22349
cristy14fefe52012-05-21 00:59:18 +000022350 #include <stdbool.h>
22351 #ifndef bool
22352 "error: bool is not defined"
22353 #endif
22354 #ifndef false
22355 "error: false is not defined"
22356 #endif
22357 #if false
22358 "error: false is not 0"
22359 #endif
22360 #ifndef true
22361 "error: true is not defined"
22362 #endif
22363 #if true != 1
22364 "error: true is not 1"
22365 #endif
22366 #ifndef __bool_true_false_are_defined
22367 "error: __bool_true_false_are_defined is not defined"
22368 #endif
cristy3ed852e2009-09-05 21:47:34 +000022369
cristy14fefe52012-05-21 00:59:18 +000022370 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022371
cristy14fefe52012-05-21 00:59:18 +000022372 char a[true == 1 ? 1 : -1];
22373 char b[false == 0 ? 1 : -1];
22374 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22375 char d[(bool) 0.5 == true ? 1 : -1];
22376 /* See body of main program for 'e'. */
22377 char f[(_Bool) 0.0 == false ? 1 : -1];
22378 char g[true];
22379 char h[sizeof (_Bool)];
22380 char i[sizeof s.t];
22381 enum { j = false, k = true, l = false * true, m = true * 256 };
22382 /* The following fails for
22383 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22384 _Bool n[m];
22385 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22386 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22387 /* Catch a bug in an HP-UX C compiler. See
22388 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22389 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22390 */
22391 _Bool q = true;
22392 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022393
22394int
22395main ()
22396{
22397
cristy14fefe52012-05-21 00:59:18 +000022398 bool e = &s;
22399 *pq |= q;
22400 *pq |= ! q;
22401 /* Refer to every declared value, to avoid compiler optimizations. */
22402 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22403 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022404
22405 ;
22406 return 0;
22407}
22408_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022409if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022410 ac_cv_header_stdbool_h=yes
22411else
cristy8b350f62009-11-15 23:12:43 +000022412 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022413fi
cristy3ed852e2009-09-05 21:47:34 +000022414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22415fi
cristy8b350f62009-11-15 23:12:43 +000022416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022417$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022418 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022419if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022420
22421cat >>confdefs.h <<_ACEOF
22422#define HAVE__BOOL 1
22423_ACEOF
22424
22425
22426fi
22427
cristy14fefe52012-05-21 00:59:18 +000022428
cristy3ed852e2009-09-05 21:47:34 +000022429if test $ac_cv_header_stdbool_h = yes; then
22430
cristy8b350f62009-11-15 23:12:43 +000022431$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022432
22433fi
22434
cristy8b350f62009-11-15 23:12:43 +000022435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022436$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022437if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022438 $as_echo_n "(cached) " >&6
22439else
cristy8b350f62009-11-15 23:12:43 +000022440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022441/* end confdefs.h. */
22442
22443int
22444main ()
22445{
22446
22447volatile int x;
22448int * volatile y = (int *) 0;
22449return !x && !y;
22450 ;
22451 return 0;
22452}
22453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022454if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022455 ac_cv_c_volatile=yes
22456else
cristy8b350f62009-11-15 23:12:43 +000022457 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022458fi
cristy3ed852e2009-09-05 21:47:34 +000022459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22460fi
cristy8b350f62009-11-15 23:12:43 +000022461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022462$as_echo "$ac_cv_c_volatile" >&6; }
22463if test $ac_cv_c_volatile = no; then
22464
cristy8b350f62009-11-15 23:12:43 +000022465$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022466
22467fi
22468
cristy8b350f62009-11-15 23:12:43 +000022469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022470$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022471if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022472 $as_echo_n "(cached) " >&6
22473else
cristy8b350f62009-11-15 23:12:43 +000022474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022475/* end confdefs.h. */
22476#define x(y) #y
22477
22478char *s = x(teststring);
22479_ACEOF
22480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022481 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022482 ac_cv_c_stringize=no
22483else
22484 ac_cv_c_stringize=yes
22485fi
22486rm -f conftest*
22487
22488fi
cristy8b350f62009-11-15 23:12:43 +000022489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022490$as_echo "$ac_cv_c_stringize" >&6; }
22491if test $ac_cv_c_stringize = yes; then
22492
cristy8b350f62009-11-15 23:12:43 +000022493$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022494
22495fi
22496
cristy8b350f62009-11-15 23:12:43 +000022497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022498$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022499if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022500 $as_echo_n "(cached) " >&6
22501else
cristy8b350f62009-11-15 23:12:43 +000022502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022503/* end confdefs.h. */
22504#include <sys/types.h>
22505#include <sys/stat.h>
22506
22507#if defined S_ISBLK && defined S_IFDIR
22508extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22509#endif
22510
22511#if defined S_ISBLK && defined S_IFCHR
22512extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22513#endif
22514
22515#if defined S_ISLNK && defined S_IFREG
22516extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22517#endif
22518
22519#if defined S_ISSOCK && defined S_IFREG
22520extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22521#endif
22522
22523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022524if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022525 ac_cv_header_stat_broken=no
22526else
cristy8b350f62009-11-15 23:12:43 +000022527 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022528fi
cristy3ed852e2009-09-05 21:47:34 +000022529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530fi
cristy8b350f62009-11-15 23:12:43 +000022531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022532$as_echo "$ac_cv_header_stat_broken" >&6; }
22533if test $ac_cv_header_stat_broken = yes; then
22534
cristy8b350f62009-11-15 23:12:43 +000022535$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022536
22537fi
22538
cristy8b350f62009-11-15 23:12:43 +000022539{ $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 +000022540$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022541if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022542 $as_echo_n "(cached) " >&6
22543else
cristy8b350f62009-11-15 23:12:43 +000022544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022545/* end confdefs.h. */
22546#include <sys/types.h>
22547#include <sys/time.h>
22548#include <time.h>
22549
22550int
22551main ()
22552{
22553if ((struct tm *) 0)
22554return 0;
22555 ;
22556 return 0;
22557}
22558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022559if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022560 ac_cv_header_time=yes
22561else
cristy8b350f62009-11-15 23:12:43 +000022562 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022563fi
cristy3ed852e2009-09-05 21:47:34 +000022564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565fi
cristy8b350f62009-11-15 23:12:43 +000022566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022567$as_echo "$ac_cv_header_time" >&6; }
22568if test $ac_cv_header_time = yes; then
22569
cristy8b350f62009-11-15 23:12:43 +000022570$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022571
22572fi
22573
cristy8b350f62009-11-15 23:12:43 +000022574{ $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 +000022575$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022576if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022577 $as_echo_n "(cached) " >&6
22578else
cristy8b350f62009-11-15 23:12:43 +000022579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022580/* end confdefs.h. */
22581#include <sys/types.h>
22582#include <time.h>
22583
22584int
22585main ()
22586{
22587struct tm tm;
22588 int *p = &tm.tm_sec;
22589 return !p;
22590 ;
22591 return 0;
22592}
22593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022594if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022595 ac_cv_struct_tm=time.h
22596else
cristy8b350f62009-11-15 23:12:43 +000022597 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022598fi
cristy3ed852e2009-09-05 21:47:34 +000022599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22600fi
cristy8b350f62009-11-15 23:12:43 +000022601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022602$as_echo "$ac_cv_struct_tm" >&6; }
22603if test $ac_cv_struct_tm = sys/time.h; then
22604
cristy8b350f62009-11-15 23:12:43 +000022605$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022606
22607fi
22608
cristy92703d82010-04-26 00:18:18 +000022609ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22610#include <$ac_cv_struct_tm>
22611
22612"
cristyda16f162011-02-19 23:52:17 +000022613if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022614
22615cat >>confdefs.h <<_ACEOF
22616#define HAVE_STRUCT_TM_TM_ZONE 1
22617_ACEOF
22618
22619
22620fi
22621
22622if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22623
22624$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22625
22626else
22627 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22628"
cristyda16f162011-02-19 23:52:17 +000022629if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022630 ac_have_decl=1
22631else
22632 ac_have_decl=0
22633fi
22634
22635cat >>confdefs.h <<_ACEOF
22636#define HAVE_DECL_TZNAME $ac_have_decl
22637_ACEOF
22638
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22640$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022641if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022642 $as_echo_n "(cached) " >&6
22643else
22644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22645/* end confdefs.h. */
22646#include <time.h>
22647#if !HAVE_DECL_TZNAME
22648extern char *tzname[];
22649#endif
22650
22651int
22652main ()
22653{
22654return tzname[0][0];
22655 ;
22656 return 0;
22657}
22658_ACEOF
22659if ac_fn_c_try_link "$LINENO"; then :
22660 ac_cv_var_tzname=yes
22661else
22662 ac_cv_var_tzname=no
22663fi
22664rm -f core conftest.err conftest.$ac_objext \
22665 conftest$ac_exeext conftest.$ac_ext
22666fi
22667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22668$as_echo "$ac_cv_var_tzname" >&6; }
22669 if test $ac_cv_var_tzname = yes; then
22670
22671$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22672
22673 fi
22674fi
22675
cristy8b350f62009-11-15 23:12:43 +000022676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022677$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022678if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022679 $as_echo_n "(cached) " >&6
22680else
22681 echo '#! /bin/cat
22682exit 69
22683' >conftest
22684chmod u+x conftest
22685(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22686if test $? -ne 69; then
22687 ac_cv_sys_interpreter=yes
22688else
22689 ac_cv_sys_interpreter=no
22690fi
22691rm -f conftest
22692fi
cristy8b350f62009-11-15 23:12:43 +000022693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022694$as_echo "$ac_cv_sys_interpreter" >&6; }
22695interpval=$ac_cv_sys_interpreter
22696
22697
cristye80f9cb2013-01-09 01:09:31 +000022698#
22699# Checks for language qualifiers and semantics.
22700#
22701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22702$as_echo_n "checking whether char is unsigned... " >&6; }
22703if ${ac_cv_c_char_unsigned+:} false; then :
22704 $as_echo_n "(cached) " >&6
22705else
22706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22707/* end confdefs.h. */
22708$ac_includes_default
22709int
22710main ()
22711{
22712static int test_array [1 - 2 * !(((char) -1) < 0)];
22713test_array [0] = 0;
22714return test_array [0];
22715
22716 ;
22717 return 0;
22718}
22719_ACEOF
22720if ac_fn_c_try_compile "$LINENO"; then :
22721 ac_cv_c_char_unsigned=no
22722else
22723 ac_cv_c_char_unsigned=yes
22724fi
22725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22726fi
22727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22728$as_echo "$ac_cv_c_char_unsigned" >&6; }
22729if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22730 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22731
22732fi
22733
22734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22735$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22736if ${ac_cv_c_const+:} false; then :
22737 $as_echo_n "(cached) " >&6
22738else
22739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22740/* end confdefs.h. */
22741
22742int
22743main ()
22744{
22745
22746#ifndef __cplusplus
22747 /* Ultrix mips cc rejects this sort of thing. */
22748 typedef int charset[2];
22749 const charset cs = { 0, 0 };
22750 /* SunOS 4.1.1 cc rejects this. */
22751 char const *const *pcpcc;
22752 char **ppc;
22753 /* NEC SVR4.0.2 mips cc rejects this. */
22754 struct point {int x, y;};
22755 static struct point const zero = {0,0};
22756 /* AIX XL C 1.02.0.0 rejects this.
22757 It does not let you subtract one const X* pointer from another in
22758 an arm of an if-expression whose if-part is not a constant
22759 expression */
22760 const char *g = "string";
22761 pcpcc = &g + (g ? g-g : 0);
22762 /* HPUX 7.0 cc rejects these. */
22763 ++pcpcc;
22764 ppc = (char**) pcpcc;
22765 pcpcc = (char const *const *) ppc;
22766 { /* SCO 3.2v4 cc rejects this sort of thing. */
22767 char tx;
22768 char *t = &tx;
22769 char const *s = 0 ? (char *) 0 : (char const *) 0;
22770
22771 *t++ = 0;
22772 if (s) return 0;
22773 }
22774 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22775 int x[] = {25, 17};
22776 const int *foo = &x[0];
22777 ++foo;
22778 }
22779 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22780 typedef const int *iptr;
22781 iptr p = 0;
22782 ++p;
22783 }
22784 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22785 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22786 struct s { int j; const int *ap[3]; } bx;
22787 struct s *b = &bx; b->j = 5;
22788 }
22789 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22790 const int foo = 10;
22791 if (!foo) return 0;
22792 }
22793 return !cs[0] && !zero.x;
22794#endif
22795
22796 ;
22797 return 0;
22798}
22799_ACEOF
22800if ac_fn_c_try_compile "$LINENO"; then :
22801 ac_cv_c_const=yes
22802else
22803 ac_cv_c_const=no
22804fi
22805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22806fi
22807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22808$as_echo "$ac_cv_c_const" >&6; }
22809if test $ac_cv_c_const = no; then
22810
22811$as_echo "#define const /**/" >>confdefs.h
22812
22813fi
22814
cristy8b350f62009-11-15 23:12:43 +000022815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022816$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022817if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022818 $as_echo_n "(cached) " >&6
22819else
22820 ac_cv_c_inline=no
22821for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022823/* end confdefs.h. */
22824#ifndef __cplusplus
22825typedef int foo_t;
22826static $ac_kw foo_t static_foo () {return 0; }
22827$ac_kw foo_t foo () {return 0; }
22828#endif
22829
22830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022831if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022832 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022833fi
cristy3ed852e2009-09-05 21:47:34 +000022834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22835 test "$ac_cv_c_inline" != no && break
22836done
22837
22838fi
cristy8b350f62009-11-15 23:12:43 +000022839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022840$as_echo "$ac_cv_c_inline" >&6; }
22841
cristy3ed852e2009-09-05 21:47:34 +000022842case $ac_cv_c_inline in
22843 inline | yes) ;;
22844 *)
22845 case $ac_cv_c_inline in
22846 no) ac_val=;;
22847 *) ac_val=$ac_cv_c_inline;;
22848 esac
22849 cat >>confdefs.h <<_ACEOF
22850#ifndef __cplusplus
22851#define inline $ac_val
22852#endif
22853_ACEOF
22854 ;;
22855esac
22856
cristy8b350f62009-11-15 23:12:43 +000022857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022858$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022859if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022860 $as_echo_n "(cached) " >&6
22861else
22862 ac_cv_c_restrict=no
22863 # The order here caters to the fact that C++ does not require restrict.
22864 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022866/* end confdefs.h. */
22867typedef int * int_ptr;
22868 int foo (int_ptr $ac_kw ip) {
22869 return ip[0];
22870 }
22871int
22872main ()
22873{
22874int s[1];
22875 int * $ac_kw t = s;
22876 t[0] = 0;
22877 return foo(t)
22878 ;
22879 return 0;
22880}
22881_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022882if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022883 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022884fi
cristy3ed852e2009-09-05 21:47:34 +000022885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22886 test "$ac_cv_c_restrict" != no && break
22887 done
22888
22889fi
cristy8b350f62009-11-15 23:12:43 +000022890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022891$as_echo "$ac_cv_c_restrict" >&6; }
22892
cristy3ed852e2009-09-05 21:47:34 +000022893 case $ac_cv_c_restrict in
22894 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022895 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022896 ;;
22897 *) cat >>confdefs.h <<_ACEOF
22898#define restrict $ac_cv_c_restrict
22899_ACEOF
22900 ;;
22901 esac
22902
cristye80f9cb2013-01-09 01:09:31 +000022903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22904$as_echo_n "checking for working volatile... " >&6; }
22905if ${ac_cv_c_volatile+:} false; then :
22906 $as_echo_n "(cached) " >&6
22907else
22908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22909/* end confdefs.h. */
22910
22911int
22912main ()
22913{
22914
22915volatile int x;
22916int * volatile y = (int *) 0;
22917return !x && !y;
22918 ;
22919 return 0;
22920}
22921_ACEOF
22922if ac_fn_c_try_compile "$LINENO"; then :
22923 ac_cv_c_volatile=yes
22924else
22925 ac_cv_c_volatile=no
22926fi
22927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22928fi
22929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22930$as_echo "$ac_cv_c_volatile" >&6; }
22931if test $ac_cv_c_volatile = no; then
22932
22933$as_echo "#define volatile /**/" >>confdefs.h
22934
22935fi
22936
cristy3ed852e2009-09-05 21:47:34 +000022937
22938# If words are stored with the most significant byte first (like
22939# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022941$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022942if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022943 $as_echo_n "(cached) " >&6
22944else
22945 ac_cv_c_bigendian=unknown
22946 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022948/* end confdefs.h. */
22949#ifndef __APPLE_CC__
22950 not a universal capable compiler
22951 #endif
22952 typedef int dummy;
22953
22954_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022955if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022956
22957 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022958 # there are at least two -arch flags with different values.
22959 ac_arch=
22960 ac_prev=
22961 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22962 if test -n "$ac_prev"; then
22963 case $ac_word in
22964 i?86 | x86_64 | ppc | ppc64)
22965 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22966 ac_arch=$ac_word
22967 else
22968 ac_cv_c_bigendian=universal
22969 break
22970 fi
22971 ;;
22972 esac
22973 ac_prev=
22974 elif test "x$ac_word" = "x-arch"; then
22975 ac_prev=arch
22976 fi
22977 done
cristy3ed852e2009-09-05 21:47:34 +000022978fi
cristy3ed852e2009-09-05 21:47:34 +000022979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22980 if test $ac_cv_c_bigendian = unknown; then
22981 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022983/* end confdefs.h. */
22984#include <sys/types.h>
22985 #include <sys/param.h>
22986
22987int
22988main ()
22989{
22990#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22991 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22992 && LITTLE_ENDIAN)
22993 bogus endian macros
22994 #endif
22995
22996 ;
22997 return 0;
22998}
22999_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023000if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023001 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023003/* end confdefs.h. */
23004#include <sys/types.h>
23005 #include <sys/param.h>
23006
23007int
23008main ()
23009{
23010#if BYTE_ORDER != BIG_ENDIAN
23011 not big endian
23012 #endif
23013
23014 ;
23015 return 0;
23016}
23017_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023018if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023019 ac_cv_c_bigendian=yes
23020else
cristy8b350f62009-11-15 23:12:43 +000023021 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023022fi
cristy3ed852e2009-09-05 21:47:34 +000023023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023024fi
cristy3ed852e2009-09-05 21:47:34 +000023025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23026 fi
23027 if test $ac_cv_c_bigendian = unknown; then
23028 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023030/* end confdefs.h. */
23031#include <limits.h>
23032
23033int
23034main ()
23035{
23036#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23037 bogus endian macros
23038 #endif
23039
23040 ;
23041 return 0;
23042}
23043_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023044if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023045 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023047/* end confdefs.h. */
23048#include <limits.h>
23049
23050int
23051main ()
23052{
23053#ifndef _BIG_ENDIAN
23054 not big endian
23055 #endif
23056
23057 ;
23058 return 0;
23059}
23060_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023061if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023062 ac_cv_c_bigendian=yes
23063else
cristy8b350f62009-11-15 23:12:43 +000023064 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023065fi
cristy3ed852e2009-09-05 21:47:34 +000023066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023067fi
cristy3ed852e2009-09-05 21:47:34 +000023068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23069 fi
23070 if test $ac_cv_c_bigendian = unknown; then
23071 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023072 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023073 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023075/* end confdefs.h. */
23076short int ascii_mm[] =
23077 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23078 short int ascii_ii[] =
23079 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23080 int use_ascii (int i) {
23081 return ascii_mm[i] + ascii_ii[i];
23082 }
23083 short int ebcdic_ii[] =
23084 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23085 short int ebcdic_mm[] =
23086 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23087 int use_ebcdic (int i) {
23088 return ebcdic_mm[i] + ebcdic_ii[i];
23089 }
23090 extern int foo;
23091
23092int
23093main ()
23094{
23095return use_ascii (foo) == use_ebcdic (foo);
23096 ;
23097 return 0;
23098}
23099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023100if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023101 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23102 ac_cv_c_bigendian=yes
23103 fi
23104 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23105 if test "$ac_cv_c_bigendian" = unknown; then
23106 ac_cv_c_bigendian=no
23107 else
23108 # finding both strings is unlikely to happen, but who knows?
23109 ac_cv_c_bigendian=unknown
23110 fi
23111 fi
cristy3ed852e2009-09-05 21:47:34 +000023112fi
cristy3ed852e2009-09-05 21:47:34 +000023113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23114else
cristy8b350f62009-11-15 23:12:43 +000023115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023116/* end confdefs.h. */
23117$ac_includes_default
23118int
23119main ()
23120{
23121
23122 /* Are we little or big endian? From Harbison&Steele. */
23123 union
23124 {
23125 long int l;
23126 char c[sizeof (long int)];
23127 } u;
23128 u.l = 1;
23129 return u.c[sizeof (long int) - 1] == 1;
23130
23131 ;
23132 return 0;
23133}
23134_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023135if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023136 ac_cv_c_bigendian=no
23137else
cristy8b350f62009-11-15 23:12:43 +000023138 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023139fi
cristy8b350f62009-11-15 23:12:43 +000023140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23141 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023142fi
23143
cristy3ed852e2009-09-05 21:47:34 +000023144 fi
23145fi
cristy8b350f62009-11-15 23:12:43 +000023146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023147$as_echo "$ac_cv_c_bigendian" >&6; }
23148 case $ac_cv_c_bigendian in #(
23149 yes)
cristy8b350f62009-11-15 23:12:43 +000023150 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023151;; #(
23152 no)
23153 ;; #(
23154 universal)
23155
cristy8b350f62009-11-15 23:12:43 +000023156$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023157
23158 ;; #(
23159 *)
cristy98dddb52010-11-04 00:30:15 +000023160 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023161 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023162 esac
23163
23164
cristy501c8042011-05-26 17:46:28 +000023165# Define to a suitable type, if standard headers do not define it.
23166ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23167case $ac_cv_c_int8_t in #(
23168 no|yes) ;; #(
23169 *)
cristy3ed852e2009-09-05 21:47:34 +000023170
23171cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023172#define int8_t $ac_cv_c_int8_t
23173_ACEOF
23174;;
23175esac
23176
23177ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23178case $ac_cv_c_int16_t in #(
23179 no|yes) ;; #(
23180 *)
23181
23182cat >>confdefs.h <<_ACEOF
23183#define int16_t $ac_cv_c_int16_t
23184_ACEOF
23185;;
23186esac
23187
23188ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23189case $ac_cv_c_int32_t in #(
23190 no|yes) ;; #(
23191 *)
23192
23193cat >>confdefs.h <<_ACEOF
23194#define int32_t $ac_cv_c_int32_t
23195_ACEOF
23196;;
23197esac
23198
23199ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23200case $ac_cv_c_int64_t in #(
23201 no|yes) ;; #(
23202 *)
23203
23204cat >>confdefs.h <<_ACEOF
23205#define int64_t $ac_cv_c_int64_t
23206_ACEOF
23207;;
23208esac
23209
23210
cristy045228a2013-06-23 11:00:16 +000023211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23212$as_echo_n "checking for unsigned long long int... " >&6; }
23213if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000023214 $as_echo_n "(cached) " >&6
23215else
cristy045228a2013-06-23 11:00:16 +000023216 ac_cv_type_unsigned_long_long_int=yes
23217 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023219/* end confdefs.h. */
23220
23221 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023222 implementations with broken preprocessors. Perhaps this can
23223 be revisited in 2012. In the meantime, code should not expect
23224 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023225 /* Test literals. */
23226 long long int ll = 9223372036854775807ll;
23227 long long int nll = -9223372036854775807LL;
23228 unsigned long long int ull = 18446744073709551615ULL;
23229 /* Test constant expressions. */
23230 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023231 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023232 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023233 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023234 int i = 63;
23235int
23236main ()
23237{
23238/* Test availability of runtime routines for shift and division. */
23239 long long int llmax = 9223372036854775807ll;
23240 unsigned long long int ullmax = 18446744073709551615ull;
23241 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023242 | (llmax / ll) | (llmax % ll)
23243 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23244 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023245 ;
23246 return 0;
23247}
23248
23249_ACEOF
23250if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023251
23252else
23253 ac_cv_type_unsigned_long_long_int=no
23254fi
23255rm -f core conftest.err conftest.$ac_objext \
23256 conftest$ac_exeext conftest.$ac_ext
23257 fi
23258fi
23259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23260$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23261 if test $ac_cv_type_unsigned_long_long_int = yes; then
23262
23263$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23264
23265 fi
23266
23267
23268
23269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23270$as_echo_n "checking for long long int... " >&6; }
23271if ${ac_cv_type_long_long_int+:} false; then :
23272 $as_echo_n "(cached) " >&6
23273else
cristy501c8042011-05-26 17:46:28 +000023274 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023275 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023276 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23277 if test $ac_cv_type_long_long_int = yes; then
23278 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023279 :
cristy501c8042011-05-26 17:46:28 +000023280else
23281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23282/* end confdefs.h. */
23283#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023284 #ifndef LLONG_MAX
23285 # define HALF \
23286 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23287 # define LLONG_MAX (HALF - 1 + HALF)
23288 #endif
cristy501c8042011-05-26 17:46:28 +000023289int
23290main ()
23291{
23292long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023293 int i;
23294 for (i = 0; ; i++)
23295 {
23296 long long int m = n << i;
23297 if (m >> i != n)
23298 return 1;
23299 if (LLONG_MAX / 2 < m)
23300 break;
23301 }
23302 return 0;
cristy501c8042011-05-26 17:46:28 +000023303 ;
23304 return 0;
23305}
23306_ACEOF
23307if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023308
cristy501c8042011-05-26 17:46:28 +000023309else
23310 ac_cv_type_long_long_int=no
23311fi
23312rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23313 conftest.$ac_objext conftest.beam conftest.$ac_ext
23314fi
23315
cristy5ed9c6e2013-07-14 21:20:31 +000023316 fi
cristy045228a2013-06-23 11:00:16 +000023317 fi
cristy501c8042011-05-26 17:46:28 +000023318fi
23319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23320$as_echo "$ac_cv_type_long_long_int" >&6; }
23321 if test $ac_cv_type_long_long_int = yes; then
23322
23323$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23324
23325 fi
23326
23327
23328
23329 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23330if test "x$ac_cv_type_intmax_t" = xyes; then :
23331
23332$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23333
23334else
23335 test $ac_cv_type_long_long_int = yes \
23336 && ac_type='long long int' \
23337 || ac_type='long int'
23338
23339cat >>confdefs.h <<_ACEOF
23340#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023341_ACEOF
23342
23343fi
23344
23345
cristy501c8042011-05-26 17:46:28 +000023346
23347 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23348if test "x$ac_cv_type_intptr_t" = xyes; then :
23349
23350$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023351
cristy3ed852e2009-09-05 21:47:34 +000023352else
cristy501c8042011-05-26 17:46:28 +000023353 for ac_type in 'int' 'long int' 'long long int'; do
23354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23355/* end confdefs.h. */
23356$ac_includes_default
23357int
23358main ()
23359{
23360static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023361test_array [0] = 0;
23362return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023363
23364 ;
23365 return 0;
23366}
23367_ACEOF
23368if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023369
23370cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023371#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023372_ACEOF
23373
cristy501c8042011-05-26 17:46:28 +000023374 ac_type=
23375fi
23376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23377 test -z "$ac_type" && break
23378 done
cristy3ed852e2009-09-05 21:47:34 +000023379fi
23380
23381
cristy3ed852e2009-09-05 21:47:34 +000023382
cristy501c8042011-05-26 17:46:28 +000023383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23384$as_echo_n "checking for long double... " >&6; }
23385if ${ac_cv_type_long_double+:} false; then :
23386 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023387else
cristy501c8042011-05-26 17:46:28 +000023388 if test "$GCC" = yes; then
23389 ac_cv_type_long_double=yes
23390 else
23391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23392/* end confdefs.h. */
23393/* The Stardent Vistra knows sizeof (long double), but does
23394 not support it. */
23395 long double foo = 0.0L;
23396int
23397main ()
23398{
23399static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23400 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023401test_array [0] = 0;
23402return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023403
cristy501c8042011-05-26 17:46:28 +000023404 ;
23405 return 0;
23406}
cristy3ed852e2009-09-05 21:47:34 +000023407_ACEOF
cristy501c8042011-05-26 17:46:28 +000023408if ac_fn_c_try_compile "$LINENO"; then :
23409 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023410else
cristy501c8042011-05-26 17:46:28 +000023411 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023412fi
cristy501c8042011-05-26 17:46:28 +000023413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414 fi
cristy3ed852e2009-09-05 21:47:34 +000023415fi
cristy501c8042011-05-26 17:46:28 +000023416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23417$as_echo "$ac_cv_type_long_double" >&6; }
23418 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023419
cristy501c8042011-05-26 17:46:28 +000023420$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023421
cristy501c8042011-05-26 17:46:28 +000023422 fi
23423
cristy3ed852e2009-09-05 21:47:34 +000023424
cristy8b350f62009-11-15 23:12:43 +000023425 { $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 +000023426$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023427if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023428 $as_echo_n "(cached) " >&6
23429else
cristy8b350f62009-11-15 23:12:43 +000023430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023431/* end confdefs.h. */
23432#include <float.h>
23433 long double const a[] =
23434 {
23435 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23436 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23437 };
23438 long double
23439 f (long double x)
23440 {
23441 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23442 + (x ? f (x) : 'c'));
23443 }
23444
23445int
23446main ()
23447{
23448static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23449 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23450 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23451 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23452 && (int) LDBL_EPSILON == 0
23453 )];
cristy14fefe52012-05-21 00:59:18 +000023454test_array [0] = 0;
23455return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023456
23457 ;
23458 return 0;
23459}
23460_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023461if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023462 ac_cv_type_long_double_wider=yes
23463else
cristy8b350f62009-11-15 23:12:43 +000023464 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023465fi
cristy3ed852e2009-09-05 21:47:34 +000023466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23467fi
cristy8b350f62009-11-15 23:12:43 +000023468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023469$as_echo "$ac_cv_type_long_double_wider" >&6; }
23470 if test $ac_cv_type_long_double_wider = yes; then
23471
cristy8b350f62009-11-15 23:12:43 +000023472$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023473
23474 fi
23475
23476
cristy045228a2013-06-23 11:00:16 +000023477
cristy501c8042011-05-26 17:46:28 +000023478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23479$as_echo_n "checking for long long int... " >&6; }
23480if ${ac_cv_type_long_long_int+:} false; then :
23481 $as_echo_n "(cached) " >&6
23482else
cristy501c8042011-05-26 17:46:28 +000023483 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023484 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023485 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23486 if test $ac_cv_type_long_long_int = yes; then
23487 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023488 :
cristy501c8042011-05-26 17:46:28 +000023489else
23490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23491/* end confdefs.h. */
23492#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023493 #ifndef LLONG_MAX
23494 # define HALF \
23495 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23496 # define LLONG_MAX (HALF - 1 + HALF)
23497 #endif
cristy501c8042011-05-26 17:46:28 +000023498int
23499main ()
23500{
23501long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023502 int i;
23503 for (i = 0; ; i++)
23504 {
23505 long long int m = n << i;
23506 if (m >> i != n)
23507 return 1;
23508 if (LLONG_MAX / 2 < m)
23509 break;
23510 }
23511 return 0;
cristy501c8042011-05-26 17:46:28 +000023512 ;
23513 return 0;
23514}
23515_ACEOF
23516if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023517
cristy501c8042011-05-26 17:46:28 +000023518else
23519 ac_cv_type_long_long_int=no
23520fi
23521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23522 conftest.$ac_objext conftest.beam conftest.$ac_ext
23523fi
23524
cristy5ed9c6e2013-07-14 21:20:31 +000023525 fi
cristy045228a2013-06-23 11:00:16 +000023526 fi
cristy501c8042011-05-26 17:46:28 +000023527fi
23528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23529$as_echo "$ac_cv_type_long_long_int" >&6; }
23530 if test $ac_cv_type_long_long_int = yes; then
23531
23532$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23533
23534 fi
23535
23536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23537$as_echo_n "checking for mbstate_t... " >&6; }
23538if ${ac_cv_type_mbstate_t+:} false; then :
23539 $as_echo_n "(cached) " >&6
23540else
23541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23542/* end confdefs.h. */
23543$ac_includes_default
23544# include <wchar.h>
23545int
23546main ()
23547{
23548mbstate_t x; return sizeof x;
23549 ;
23550 return 0;
23551}
23552_ACEOF
23553if ac_fn_c_try_compile "$LINENO"; then :
23554 ac_cv_type_mbstate_t=yes
23555else
23556 ac_cv_type_mbstate_t=no
23557fi
23558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23559fi
23560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23561$as_echo "$ac_cv_type_mbstate_t" >&6; }
23562 if test $ac_cv_type_mbstate_t = yes; then
23563
23564$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23565
23566 else
23567
23568$as_echo "#define mbstate_t int" >>confdefs.h
23569
23570 fi
23571ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23572if test "x$ac_cv_type_mode_t" = xyes; then :
23573
23574else
23575
23576cat >>confdefs.h <<_ACEOF
23577#define mode_t int
23578_ACEOF
23579
23580fi
23581
23582ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23583if test "x$ac_cv_type_off_t" = xyes; then :
23584
23585else
23586
23587cat >>confdefs.h <<_ACEOF
23588#define off_t long int
23589_ACEOF
23590
23591fi
23592
23593ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23594if test "x$ac_cv_type_pid_t" = xyes; then :
23595
23596else
23597
23598cat >>confdefs.h <<_ACEOF
23599#define pid_t int
23600_ACEOF
23601
23602fi
23603
23604ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23605if test "x$ac_cv_type_size_t" = xyes; then :
23606
23607else
23608
23609cat >>confdefs.h <<_ACEOF
23610#define size_t unsigned int
23611_ACEOF
23612
23613fi
23614
23615ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23616if test "x$ac_cv_type_ssize_t" = xyes; then :
23617
23618else
23619
23620cat >>confdefs.h <<_ACEOF
23621#define ssize_t int
23622_ACEOF
23623
23624fi
23625
23626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23627$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23628if ${ac_cv_type_uid_t+:} false; then :
23629 $as_echo_n "(cached) " >&6
23630else
23631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23632/* end confdefs.h. */
23633#include <sys/types.h>
23634
23635_ACEOF
23636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23637 $EGREP "uid_t" >/dev/null 2>&1; then :
23638 ac_cv_type_uid_t=yes
23639else
23640 ac_cv_type_uid_t=no
23641fi
23642rm -f conftest*
23643
23644fi
23645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23646$as_echo "$ac_cv_type_uid_t" >&6; }
23647if test $ac_cv_type_uid_t = no; then
23648
23649$as_echo "#define uid_t int" >>confdefs.h
23650
23651
23652$as_echo "#define gid_t int" >>confdefs.h
23653
23654fi
23655
23656ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23657case $ac_cv_c_uint8_t in #(
23658 no|yes) ;; #(
23659 *)
23660
23661$as_echo "#define _UINT8_T 1" >>confdefs.h
23662
23663
23664cat >>confdefs.h <<_ACEOF
23665#define uint8_t $ac_cv_c_uint8_t
23666_ACEOF
23667;;
23668 esac
23669
23670ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23671case $ac_cv_c_uint16_t in #(
23672 no|yes) ;; #(
23673 *)
23674
23675
23676cat >>confdefs.h <<_ACEOF
23677#define uint16_t $ac_cv_c_uint16_t
23678_ACEOF
23679;;
23680 esac
23681
23682ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23683case $ac_cv_c_uint32_t in #(
23684 no|yes) ;; #(
23685 *)
23686
23687$as_echo "#define _UINT32_T 1" >>confdefs.h
23688
23689
23690cat >>confdefs.h <<_ACEOF
23691#define uint32_t $ac_cv_c_uint32_t
23692_ACEOF
23693;;
23694 esac
23695
23696ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23697case $ac_cv_c_uint64_t in #(
23698 no|yes) ;; #(
23699 *)
23700
23701$as_echo "#define _UINT64_T 1" >>confdefs.h
23702
23703
23704cat >>confdefs.h <<_ACEOF
23705#define uint64_t $ac_cv_c_uint64_t
23706_ACEOF
23707;;
23708 esac
23709
23710
cristy501c8042011-05-26 17:46:28 +000023711
23712 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23713if test "x$ac_cv_type_uintmax_t" = xyes; then :
23714
23715$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23716
23717else
23718 test $ac_cv_type_unsigned_long_long_int = yes \
23719 && ac_type='unsigned long long int' \
23720 || ac_type='unsigned long int'
23721
23722cat >>confdefs.h <<_ACEOF
23723#define uintmax_t $ac_type
23724_ACEOF
23725
23726fi
23727
23728
23729
23730 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23731if test "x$ac_cv_type_uintptr_t" = xyes; then :
23732
23733$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23734
23735else
23736 for ac_type in 'unsigned int' 'unsigned long int' \
23737 'unsigned long long int'; do
23738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23739/* end confdefs.h. */
23740$ac_includes_default
23741int
23742main ()
23743{
23744static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023745test_array [0] = 0;
23746return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023747
23748 ;
23749 return 0;
23750}
23751_ACEOF
23752if ac_fn_c_try_compile "$LINENO"; then :
23753
23754cat >>confdefs.h <<_ACEOF
23755#define uintptr_t $ac_type
23756_ACEOF
23757
23758 ac_type=
23759fi
23760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23761 test -z "$ac_type" && break
23762 done
23763fi
23764
23765
23766
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23768$as_echo_n "checking for unsigned long long int... " >&6; }
23769if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23770 $as_echo_n "(cached) " >&6
23771else
cristy045228a2013-06-23 11:00:16 +000023772 ac_cv_type_unsigned_long_long_int=yes
23773 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023775/* end confdefs.h. */
23776
23777 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023778 implementations with broken preprocessors. Perhaps this can
23779 be revisited in 2012. In the meantime, code should not expect
23780 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023781 /* Test literals. */
23782 long long int ll = 9223372036854775807ll;
23783 long long int nll = -9223372036854775807LL;
23784 unsigned long long int ull = 18446744073709551615ULL;
23785 /* Test constant expressions. */
23786 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023787 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023788 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023789 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023790 int i = 63;
23791int
23792main ()
23793{
23794/* Test availability of runtime routines for shift and division. */
23795 long long int llmax = 9223372036854775807ll;
23796 unsigned long long int ullmax = 18446744073709551615ull;
23797 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023798 | (llmax / ll) | (llmax % ll)
23799 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23800 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023801 ;
23802 return 0;
23803}
23804
23805_ACEOF
23806if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023807
cristy501c8042011-05-26 17:46:28 +000023808else
23809 ac_cv_type_unsigned_long_long_int=no
23810fi
23811rm -f core conftest.err conftest.$ac_objext \
23812 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023813 fi
cristy501c8042011-05-26 17:46:28 +000023814fi
23815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23816$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23817 if test $ac_cv_type_unsigned_long_long_int = yes; then
23818
23819$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23820
23821 fi
23822
23823
cristy98beafc2015-05-14 19:55:55 +000023824ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "$ac_includes_default"
23825if test "x$ac_cv_type_locale_t" = xyes; then :
23826
23827cat >>confdefs.h <<_ACEOF
23828#define HAVE_LOCALE_T 1
23829_ACEOF
23830
23831
23832fi
23833
23834
cristyfec31822013-05-23 12:32:12 +000023835# Float_t and double_t are intended to be the the most efficient type.
23836ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23837"
23838if test "x$ac_cv_type_float_t" = xyes; then :
23839
23840cat >>confdefs.h <<_ACEOF
23841#define HAVE_FLOAT_T 1
23842_ACEOF
23843
23844
23845fi
23846
23847ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23848"
23849if test "x$ac_cv_type_double_t" = xyes; then :
23850
23851cat >>confdefs.h <<_ACEOF
23852#define HAVE_DOUBLE_T 1
23853_ACEOF
23854
23855
23856fi
23857
23858# The cast to long int works around a bug in the HP C Compiler
23859# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23860# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23861# This bug is HP SR number 8606223364.
23862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23863$as_echo_n "checking size of float_t... " >&6; }
23864if ${ac_cv_sizeof_float_t+:} false; then :
23865 $as_echo_n "(cached) " >&6
23866else
23867 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23868"; then :
23869
23870else
23871 if test "$ac_cv_type_float_t" = yes; then
23872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23874as_fn_error 77 "cannot compute sizeof (float_t)
23875See \`config.log' for more details" "$LINENO" 5; }
23876 else
23877 ac_cv_sizeof_float_t=0
23878 fi
23879fi
23880
23881fi
23882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23883$as_echo "$ac_cv_sizeof_float_t" >&6; }
23884
23885
23886
23887cat >>confdefs.h <<_ACEOF
23888#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23889_ACEOF
23890
23891
23892# The cast to long int works around a bug in the HP C Compiler
23893# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23894# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23895# This bug is HP SR number 8606223364.
23896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23897$as_echo_n "checking size of double_t... " >&6; }
23898if ${ac_cv_sizeof_double_t+:} false; then :
23899 $as_echo_n "(cached) " >&6
23900else
23901 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23902"; then :
23903
23904else
23905 if test "$ac_cv_type_double_t" = yes; then
23906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23908as_fn_error 77 "cannot compute sizeof (double_t)
23909See \`config.log' for more details" "$LINENO" 5; }
23910 else
23911 ac_cv_sizeof_double_t=0
23912 fi
23913fi
23914
23915fi
23916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23917$as_echo "$ac_cv_sizeof_double_t" >&6; }
23918
23919
23920
23921cat >>confdefs.h <<_ACEOF
23922#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23923_ACEOF
23924
23925
23926
cristy9b86f202012-11-28 21:55:35 +000023927# Get size of float, double and long double for comparaison.
23928# The cast to long int works around a bug in the HP C Compiler
23929# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23930# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23931# This bug is HP SR number 8606223364.
23932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23933$as_echo_n "checking size of float... " >&6; }
23934if ${ac_cv_sizeof_float+:} false; then :
23935 $as_echo_n "(cached) " >&6
23936else
23937 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23938
23939else
23940 if test "$ac_cv_type_float" = yes; then
23941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23943as_fn_error 77 "cannot compute sizeof (float)
23944See \`config.log' for more details" "$LINENO" 5; }
23945 else
23946 ac_cv_sizeof_float=0
23947 fi
23948fi
23949
23950fi
23951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23952$as_echo "$ac_cv_sizeof_float" >&6; }
23953
23954
23955
23956cat >>confdefs.h <<_ACEOF
23957#define SIZEOF_FLOAT $ac_cv_sizeof_float
23958_ACEOF
23959
23960
23961# The cast to long int works around a bug in the HP C Compiler
23962# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23963# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23964# This bug is HP SR number 8606223364.
23965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23966$as_echo_n "checking size of double... " >&6; }
23967if ${ac_cv_sizeof_double+:} false; then :
23968 $as_echo_n "(cached) " >&6
23969else
23970 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23971
23972else
23973 if test "$ac_cv_type_double" = yes; then
23974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23976as_fn_error 77 "cannot compute sizeof (double)
23977See \`config.log' for more details" "$LINENO" 5; }
23978 else
23979 ac_cv_sizeof_double=0
23980 fi
23981fi
23982
23983fi
23984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23985$as_echo "$ac_cv_sizeof_double" >&6; }
23986
23987
23988
23989cat >>confdefs.h <<_ACEOF
23990#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23991_ACEOF
23992
23993
cristy9e2b6242014-03-25 11:49:41 +000023994# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000023995# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23996# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23997# This bug is HP SR number 8606223364.
23998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23999$as_echo_n "checking size of long double... " >&6; }
24000if ${ac_cv_sizeof_long_double+:} false; then :
24001 $as_echo_n "(cached) " >&6
24002else
24003 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
24004
24005else
24006 if test "$ac_cv_type_long_double" = yes; then
24007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24009as_fn_error 77 "cannot compute sizeof (long double)
24010See \`config.log' for more details" "$LINENO" 5; }
24011 else
24012 ac_cv_sizeof_long_double=0
24013 fi
24014fi
24015
24016fi
24017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
24018$as_echo "$ac_cv_sizeof_long_double" >&6; }
24019
24020
24021
24022cat >>confdefs.h <<_ACEOF
24023#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
24024_ACEOF
24025
24026
cristyf0cf9a22012-10-24 12:05:01 +000024027
cristy3ed852e2009-09-05 21:47:34 +000024028# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24029# The cast to long int works around a bug in the HP C Compiler
24030# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24031# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24032# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024034$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024035if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024036 $as_echo_n "(cached) " >&6
24037else
cristy8b350f62009-11-15 23:12:43 +000024038 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 +000024039
cristy3ed852e2009-09-05 21:47:34 +000024040else
cristy8b350f62009-11-15 23:12:43 +000024041 if test "$ac_cv_type_signed_short" = yes; then
24042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024044as_fn_error 77 "cannot compute sizeof (signed short)
24045See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024046 else
24047 ac_cv_sizeof_signed_short=0
24048 fi
24049fi
cristy8b350f62009-11-15 23:12:43 +000024050
cristy3ed852e2009-09-05 21:47:34 +000024051fi
cristy8b350f62009-11-15 23:12:43 +000024052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024053$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24054
24055
24056
24057cat >>confdefs.h <<_ACEOF
24058#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24059_ACEOF
24060
24061
24062
24063# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24064# The cast to long int works around a bug in the HP C Compiler
24065# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24066# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24067# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024069$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024070if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024071 $as_echo_n "(cached) " >&6
24072else
cristy8b350f62009-11-15 23:12:43 +000024073 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 +000024074
cristy3ed852e2009-09-05 21:47:34 +000024075else
cristy8b350f62009-11-15 23:12:43 +000024076 if test "$ac_cv_type_unsigned_short" = yes; then
24077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024079as_fn_error 77 "cannot compute sizeof (unsigned short)
24080See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024081 else
24082 ac_cv_sizeof_unsigned_short=0
24083 fi
24084fi
cristy8b350f62009-11-15 23:12:43 +000024085
cristy3ed852e2009-09-05 21:47:34 +000024086fi
cristy8b350f62009-11-15 23:12:43 +000024087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024088$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24089
24090
24091
24092cat >>confdefs.h <<_ACEOF
24093#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24094_ACEOF
24095
24096
24097
24098# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24099# The cast to long int works around a bug in the HP C Compiler
24100# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24101# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24102# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024104$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024105if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024106 $as_echo_n "(cached) " >&6
24107else
cristy8b350f62009-11-15 23:12:43 +000024108 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 +000024109
cristy3ed852e2009-09-05 21:47:34 +000024110else
cristy8b350f62009-11-15 23:12:43 +000024111 if test "$ac_cv_type_signed_int" = yes; then
24112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024114as_fn_error 77 "cannot compute sizeof (signed int)
24115See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024116 else
24117 ac_cv_sizeof_signed_int=0
24118 fi
24119fi
cristy8b350f62009-11-15 23:12:43 +000024120
cristy3ed852e2009-09-05 21:47:34 +000024121fi
cristy8b350f62009-11-15 23:12:43 +000024122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024123$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24124
24125
24126
24127cat >>confdefs.h <<_ACEOF
24128#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24129_ACEOF
24130
24131
24132
24133# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24134# The cast to long int works around a bug in the HP C Compiler
24135# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24136# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24137# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024139$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024140if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024141 $as_echo_n "(cached) " >&6
24142else
cristy8b350f62009-11-15 23:12:43 +000024143 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 +000024144
cristy3ed852e2009-09-05 21:47:34 +000024145else
cristy8b350f62009-11-15 23:12:43 +000024146 if test "$ac_cv_type_unsigned_int" = yes; then
24147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024149as_fn_error 77 "cannot compute sizeof (unsigned int)
24150See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024151 else
24152 ac_cv_sizeof_unsigned_int=0
24153 fi
24154fi
cristy8b350f62009-11-15 23:12:43 +000024155
cristy3ed852e2009-09-05 21:47:34 +000024156fi
cristy8b350f62009-11-15 23:12:43 +000024157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024158$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24159
24160
24161
24162cat >>confdefs.h <<_ACEOF
24163#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24164_ACEOF
24165
24166
24167
24168# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24169# The cast to long int works around a bug in the HP C Compiler
24170# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24171# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24172# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024174$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024175if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024176 $as_echo_n "(cached) " >&6
24177else
cristy8b350f62009-11-15 23:12:43 +000024178 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 +000024179
cristy3ed852e2009-09-05 21:47:34 +000024180else
cristy8b350f62009-11-15 23:12:43 +000024181 if test "$ac_cv_type_signed_long" = yes; then
24182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024184as_fn_error 77 "cannot compute sizeof (signed long)
24185See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024186 else
24187 ac_cv_sizeof_signed_long=0
24188 fi
24189fi
cristy8b350f62009-11-15 23:12:43 +000024190
cristy3ed852e2009-09-05 21:47:34 +000024191fi
cristy8b350f62009-11-15 23:12:43 +000024192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024193$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24194
24195
24196
24197cat >>confdefs.h <<_ACEOF
24198#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24199_ACEOF
24200
24201
24202
24203# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24204# The cast to long int works around a bug in the HP C Compiler
24205# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24206# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24207# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024209$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024210if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024211 $as_echo_n "(cached) " >&6
24212else
cristy8b350f62009-11-15 23:12:43 +000024213 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 +000024214
cristy3ed852e2009-09-05 21:47:34 +000024215else
cristy8b350f62009-11-15 23:12:43 +000024216 if test "$ac_cv_type_unsigned_long" = yes; then
24217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024219as_fn_error 77 "cannot compute sizeof (unsigned long)
24220See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024221 else
24222 ac_cv_sizeof_unsigned_long=0
24223 fi
24224fi
cristy8b350f62009-11-15 23:12:43 +000024225
cristy3ed852e2009-09-05 21:47:34 +000024226fi
cristy8b350f62009-11-15 23:12:43 +000024227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024228$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24229
24230
24231
24232cat >>confdefs.h <<_ACEOF
24233#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24234_ACEOF
24235
24236
24237
24238# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24239# 'signed long long' is not supported then the value defined is zero.
24240# The cast to long int works around a bug in the HP C Compiler
24241# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24242# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24243# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024245$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024246if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024247 $as_echo_n "(cached) " >&6
24248else
cristy8b350f62009-11-15 23:12:43 +000024249 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 +000024250
cristy3ed852e2009-09-05 21:47:34 +000024251else
cristy8b350f62009-11-15 23:12:43 +000024252 if test "$ac_cv_type_signed_long_long" = yes; then
24253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024255as_fn_error 77 "cannot compute sizeof (signed long long)
24256See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024257 else
24258 ac_cv_sizeof_signed_long_long=0
24259 fi
24260fi
cristy8b350f62009-11-15 23:12:43 +000024261
cristy3ed852e2009-09-05 21:47:34 +000024262fi
cristy8b350f62009-11-15 23:12:43 +000024263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024264$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24265
24266
24267
24268cat >>confdefs.h <<_ACEOF
24269#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24270_ACEOF
24271
24272
24273
24274# Obtain size of a 'unsigned long long' and define as
24275# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24276# supported then the value defined is zero.
24277# The cast to long int works around a bug in the HP C Compiler
24278# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24279# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24280# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024282$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024283if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024284 $as_echo_n "(cached) " >&6
24285else
cristy8b350f62009-11-15 23:12:43 +000024286 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 +000024287
cristy3ed852e2009-09-05 21:47:34 +000024288else
cristy8b350f62009-11-15 23:12:43 +000024289 if test "$ac_cv_type_unsigned_long_long" = yes; then
24290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024292as_fn_error 77 "cannot compute sizeof (unsigned long long)
24293See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024294 else
24295 ac_cv_sizeof_unsigned_long_long=0
24296 fi
24297fi
cristy8b350f62009-11-15 23:12:43 +000024298
cristy3ed852e2009-09-05 21:47:34 +000024299fi
cristy8b350f62009-11-15 23:12:43 +000024300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024301$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24302
24303
24304
24305cat >>confdefs.h <<_ACEOF
24306#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24307_ACEOF
24308
24309
24310
cristyfec31822013-05-23 12:32:12 +000024311# Obtain size of off_t and define as SIZEOF_OFF_T
24312# The cast to long int works around a bug in the HP C Compiler
24313# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24314# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24315# This bug is HP SR number 8606223364.
24316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24317$as_echo_n "checking size of off_t... " >&6; }
24318if ${ac_cv_sizeof_off_t+:} false; then :
24319 $as_echo_n "(cached) " >&6
24320else
24321 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24322
24323else
24324 if test "$ac_cv_type_off_t" = yes; then
24325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24327as_fn_error 77 "cannot compute sizeof (off_t)
24328See \`config.log' for more details" "$LINENO" 5; }
24329 else
24330 ac_cv_sizeof_off_t=0
24331 fi
24332fi
24333
24334fi
24335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24336$as_echo "$ac_cv_sizeof_off_t" >&6; }
24337
24338
24339
24340cat >>confdefs.h <<_ACEOF
24341#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24342_ACEOF
24343
24344
24345
24346# Obtain size of size_t and define as SIZEOF_SIZE_T
24347# The cast to long int works around a bug in the HP C Compiler
24348# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24349# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24350# This bug is HP SR number 8606223364.
24351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24352$as_echo_n "checking size of size_t... " >&6; }
24353if ${ac_cv_sizeof_size_t+:} false; then :
24354 $as_echo_n "(cached) " >&6
24355else
24356 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24357
24358else
24359 if test "$ac_cv_type_size_t" = yes; then
24360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24362as_fn_error 77 "cannot compute sizeof (size_t)
24363See \`config.log' for more details" "$LINENO" 5; }
24364 else
24365 ac_cv_sizeof_size_t=0
24366 fi
24367fi
24368
24369fi
24370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24371$as_echo "$ac_cv_sizeof_size_t" >&6; }
24372
24373
24374
24375cat >>confdefs.h <<_ACEOF
24376#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24377_ACEOF
24378
24379
24380
24381# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24382# The cast to long int works around a bug in the HP C Compiler
24383# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24384# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24385# This bug is HP SR number 8606223364.
24386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24387$as_echo_n "checking size of ssize_t... " >&6; }
24388if ${ac_cv_sizeof_ssize_t+:} false; then :
24389 $as_echo_n "(cached) " >&6
24390else
24391 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24392
24393else
24394 if test "$ac_cv_type_ssize_t" = yes; then
24395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24397as_fn_error 77 "cannot compute sizeof (ssize_t)
24398See \`config.log' for more details" "$LINENO" 5; }
24399 else
24400 ac_cv_sizeof_ssize_t=0
24401 fi
24402fi
24403
24404fi
24405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24406$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24407
24408
24409
24410cat >>confdefs.h <<_ACEOF
24411#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24412_ACEOF
24413
24414
24415
cristy3ed852e2009-09-05 21:47:34 +000024416# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24417# The cast to long int works around a bug in the HP C Compiler
24418# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24419# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24420# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024422$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024423if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024424 $as_echo_n "(cached) " >&6
24425else
cristy8b350f62009-11-15 23:12:43 +000024426 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 +000024427
cristy3ed852e2009-09-05 21:47:34 +000024428else
cristy8b350f62009-11-15 23:12:43 +000024429 if test "$ac_cv_type_unsigned_intp" = yes; then
24430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024432as_fn_error 77 "cannot compute sizeof (unsigned int*)
24433See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024434 else
24435 ac_cv_sizeof_unsigned_intp=0
24436 fi
24437fi
cristy8b350f62009-11-15 23:12:43 +000024438
cristy3ed852e2009-09-05 21:47:34 +000024439fi
cristy8b350f62009-11-15 23:12:43 +000024440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024441$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24442
24443
24444
24445cat >>confdefs.h <<_ACEOF
24446#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24447_ACEOF
24448
24449
24450
24451#
24452# Compute sized types for current CPU and compiler options.
24453#
24454
cristy8b350f62009-11-15 23:12:43 +000024455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024456$as_echo_n "checking for signed 8-bit type... " >&6; }
24457INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24459$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024460
24461
cristy8b350f62009-11-15 23:12:43 +000024462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024463$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24464UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24466$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024467
24468
cristy8b350f62009-11-15 23:12:43 +000024469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024470$as_echo_n "checking for signed 16-bit type... " >&6; }
24471INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24473$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024474
24475
cristy8b350f62009-11-15 23:12:43 +000024476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024477$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24478UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24480$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024481
24482
cristy8b350f62009-11-15 23:12:43 +000024483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024484$as_echo_n "checking for signed 32-bit type... " >&6; }
24485INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024486INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024487if test $ac_cv_sizeof_signed_int -eq 4; then
24488 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024489 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024490elif test $ac_cv_sizeof_signed_long -eq 4; then
24491 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024492 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024493fi
cristyad38abe2012-12-23 23:03:21 +000024494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24495$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024496
24497
cristy6d5e20f2011-04-25 13:48:54 +000024498
cristy8b350f62009-11-15 23:12:43 +000024499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024500$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24501UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024502UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024503if test $ac_cv_sizeof_unsigned_int -eq 4; then
24504 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024505 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024506elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24507 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024508 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024509fi
cristyad38abe2012-12-23 23:03:21 +000024510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24511$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024512
24513
cristy6d5e20f2011-04-25 13:48:54 +000024514
cristy8b350f62009-11-15 23:12:43 +000024515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024516$as_echo_n "checking for signed 64-bit type... " >&6; }
24517INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024518INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024519if test $ac_cv_sizeof_signed_long -eq 8; then
24520 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024521 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024522elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24523 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024524 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024525fi
cristy3a99dcf2011-12-17 01:29:40 +000024526case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024527 mingw* )
24528 INT64_F='"I64"'
24529 ;;
24530esac
cristyad38abe2012-12-23 23:03:21 +000024531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24532$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024533
24534
cristy6d5e20f2011-04-25 13:48:54 +000024535
cristy8b350f62009-11-15 23:12:43 +000024536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024537$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24538UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024539UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024540if test $ac_cv_sizeof_unsigned_long -eq 8; then
24541 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024542 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024543elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24544 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024545 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024546fi
cristy3a99dcf2011-12-17 01:29:40 +000024547case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024548 mingw* )
24549 UINT64_F='"I64"'
24550 ;;
24551esac
cristyad38abe2012-12-23 23:03:21 +000024552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24553$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024554
24555
cristy6d5e20f2011-04-25 13:48:54 +000024556
cristy8b350f62009-11-15 23:12:43 +000024557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024558$as_echo_n "checking for unsigned maximum type... " >&6; }
24559UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024560UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024561if test "$UINT64_T" != 'none'; then
24562 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024563 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024564elif test "$UINT32_T" != 'none'; then
24565 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024566 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024567fi
cristyad38abe2012-12-23 23:03:21 +000024568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24569$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024570
24571
cristy6d5e20f2011-04-25 13:48:54 +000024572
cristy8b350f62009-11-15 23:12:43 +000024573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024574$as_echo_n "checking for pointer difference type... " >&6; }
24575UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024576UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024577if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24578 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024579 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024580elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24581 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024582 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024583fi
cristyad38abe2012-12-23 23:03:21 +000024584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24585$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024586
24587
cristy6d5e20f2011-04-25 13:48:54 +000024588
cristy8b350f62009-11-15 23:12:43 +000024589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024590$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024592/* end confdefs.h. */
24593
24594int
24595main ()
24596{
24597{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24598 ;
24599 return 0;
24600}
24601_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024602if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24604$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024605else
cristyad38abe2012-12-23 23:03:21 +000024606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24607$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024609$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024611/* end confdefs.h. */
24612
24613int
24614main ()
24615{
24616{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24617 ;
24618 return 0;
24619}
24620_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024621if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24623$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024624
cristy8b350f62009-11-15 23:12:43 +000024625$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024626
24627else
cristyad38abe2012-12-23 23:03:21 +000024628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24629$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024630
cristy8b350f62009-11-15 23:12:43 +000024631$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024632
24633fi
cristy3ed852e2009-09-05 21:47:34 +000024634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24635fi
cristy3ed852e2009-09-05 21:47:34 +000024636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24637
24638########
24639#
24640# Check for functions
24641#
24642########
cristy8b350f62009-11-15 23:12:43 +000024643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024644$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024645if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024646 $as_echo_n "(cached) " >&6
24647else
cristy8b350f62009-11-15 23:12:43 +000024648 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024649 ac_cv_func_closedir_void=yes
24650else
cristy8b350f62009-11-15 23:12:43 +000024651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024652/* end confdefs.h. */
24653$ac_includes_default
24654#include <$ac_header_dirent>
24655#ifndef __cplusplus
24656int closedir ();
24657#endif
24658
24659int
24660main ()
24661{
24662return closedir (opendir (".")) != 0;
24663 ;
24664 return 0;
24665}
24666_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024667if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024668 ac_cv_func_closedir_void=no
24669else
cristy8b350f62009-11-15 23:12:43 +000024670 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024671fi
cristy8b350f62009-11-15 23:12:43 +000024672rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24673 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024674fi
24675
cristy3ed852e2009-09-05 21:47:34 +000024676fi
cristy8b350f62009-11-15 23:12:43 +000024677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024678$as_echo "$ac_cv_func_closedir_void" >&6; }
24679if test $ac_cv_func_closedir_void = yes; then
24680
cristy8b350f62009-11-15 23:12:43 +000024681$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024682
24683fi
24684
cristycd4c5312009-11-22 01:19:08 +000024685
24686
24687
24688 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024689do :
24690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024691ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24692"
cristy98dddb52010-11-04 00:30:15 +000024693if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024694 cat >>confdefs.h <<_ACEOF
24695#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24696_ACEOF
24697
24698fi
24699
24700done
24701
cristycd4c5312009-11-22 01:19:08 +000024702
24703
24704
24705
24706
24707
24708
cristy3ed852e2009-09-05 21:47:34 +000024709for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024710do :
24711 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024712if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024713 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024714#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024715_ACEOF
24716
24717fi
24718done
24719
cristy8b350f62009-11-15 23:12:43 +000024720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024721$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024722if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024723 $as_echo_n "(cached) " >&6
24724else
cristy8b350f62009-11-15 23:12:43 +000024725 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024726 ac_cv_func_mmap_fixed_mapped=no
24727else
cristy8b350f62009-11-15 23:12:43 +000024728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024729/* end confdefs.h. */
24730$ac_includes_default
24731/* malloc might have been renamed as rpl_malloc. */
24732#undef malloc
24733
24734/* Thanks to Mike Haertel and Jim Avera for this test.
24735 Here is a matrix of mmap possibilities:
24736 mmap private not fixed
24737 mmap private fixed at somewhere currently unmapped
24738 mmap private fixed at somewhere already mapped
24739 mmap shared not fixed
24740 mmap shared fixed at somewhere currently unmapped
24741 mmap shared fixed at somewhere already mapped
24742 For private mappings, we should verify that changes cannot be read()
24743 back from the file, nor mmap's back from the file at a different
24744 address. (There have been systems where private was not correctly
24745 implemented like the infamous i386 svr4.0, and systems where the
24746 VM page cache was not coherent with the file system buffer cache
24747 like early versions of FreeBSD and possibly contemporary NetBSD.)
24748 For shared mappings, we should conversely verify that changes get
24749 propagated back to all the places they're supposed to be.
24750
24751 Grep wants private fixed already mapped.
24752 The main things grep needs to know about mmap are:
24753 * does it exist and is it safe to write into the mmap'd area
24754 * how to use it (BSD variants) */
24755
24756#include <fcntl.h>
24757#include <sys/mman.h>
24758
24759#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24760char *malloc ();
24761#endif
24762
24763/* This mess was copied from the GNU getpagesize.h. */
24764#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024765# ifdef _SC_PAGESIZE
24766# define getpagesize() sysconf(_SC_PAGESIZE)
24767# else /* no _SC_PAGESIZE */
24768# ifdef HAVE_SYS_PARAM_H
24769# include <sys/param.h>
24770# ifdef EXEC_PAGESIZE
24771# define getpagesize() EXEC_PAGESIZE
24772# else /* no EXEC_PAGESIZE */
24773# ifdef NBPG
24774# define getpagesize() NBPG * CLSIZE
24775# ifndef CLSIZE
24776# define CLSIZE 1
24777# endif /* no CLSIZE */
24778# else /* no NBPG */
24779# ifdef NBPC
24780# define getpagesize() NBPC
24781# else /* no NBPC */
24782# ifdef PAGESIZE
24783# define getpagesize() PAGESIZE
24784# endif /* PAGESIZE */
24785# endif /* no NBPC */
24786# endif /* no NBPG */
24787# endif /* no EXEC_PAGESIZE */
24788# else /* no HAVE_SYS_PARAM_H */
24789# define getpagesize() 8192 /* punt totally */
24790# endif /* no HAVE_SYS_PARAM_H */
24791# endif /* no _SC_PAGESIZE */
24792
24793#endif /* no HAVE_GETPAGESIZE */
24794
24795int
24796main ()
24797{
24798 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024799 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024800 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024801 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024802
24803 pagesize = getpagesize ();
24804
24805 /* First, make a file with some known garbage in it. */
24806 data = (char *) malloc (pagesize);
24807 if (!data)
24808 return 1;
24809 for (i = 0; i < pagesize; ++i)
24810 *(data + i) = rand ();
24811 umask (0);
24812 fd = creat ("conftest.mmap", 0600);
24813 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024814 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024815 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024816 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024817 close (fd);
24818
cristycd4c5312009-11-22 01:19:08 +000024819 /* Next, check that the tail of a page is zero-filled. File must have
24820 non-zero length, otherwise we risk SIGBUS for entire page. */
24821 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24822 if (fd2 < 0)
24823 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024824 cdata2 = "";
24825 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024826 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024827 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024828 if (data2 == MAP_FAILED)
24829 return 6;
24830 for (i = 0; i < pagesize; ++i)
24831 if (*(data2 + i))
24832 return 7;
24833 close (fd2);
24834 if (munmap (data2, pagesize))
24835 return 8;
24836
cristy3ed852e2009-09-05 21:47:34 +000024837 /* Next, try to mmap the file at a fixed address which already has
24838 something else allocated at it. If we can, also make sure that
24839 we see the same garbage. */
24840 fd = open ("conftest.mmap", O_RDWR);
24841 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024842 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024843 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24844 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024845 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024846 for (i = 0; i < pagesize; ++i)
24847 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024848 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024849
24850 /* Finally, make sure that changes to the mapped area do not
24851 percolate back to the file as seen by read(). (This is a bug on
24852 some variants of i386 svr4.0.) */
24853 for (i = 0; i < pagesize; ++i)
24854 *(data2 + i) = *(data2 + i) + 1;
24855 data3 = (char *) malloc (pagesize);
24856 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024857 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024858 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024859 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024860 for (i = 0; i < pagesize; ++i)
24861 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024862 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024863 close (fd);
24864 return 0;
24865}
24866_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024867if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024868 ac_cv_func_mmap_fixed_mapped=yes
24869else
cristy8b350f62009-11-15 23:12:43 +000024870 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024871fi
cristy8b350f62009-11-15 23:12:43 +000024872rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24873 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024874fi
24875
cristy3ed852e2009-09-05 21:47:34 +000024876fi
cristy8b350f62009-11-15 23:12:43 +000024877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024878$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24879if test $ac_cv_func_mmap_fixed_mapped = yes; then
24880
cristy8b350f62009-11-15 23:12:43 +000024881$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024882
24883fi
cristycd4c5312009-11-22 01:19:08 +000024884rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024885
cristy3ed852e2009-09-05 21:47:34 +000024886for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024887do :
24888 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024889if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024890 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024891#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024892_ACEOF
24893
24894fi
24895
24896done
24897
cristy3ed852e2009-09-05 21:47:34 +000024898for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024899do :
24900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24901ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024902if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024903 cat >>confdefs.h <<_ACEOF
24904#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24905_ACEOF
24906
24907fi
24908done
24909
24910if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024912$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024913if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024914 $as_echo_n "(cached) " >&6
24915else
cristy8b350f62009-11-15 23:12:43 +000024916 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024917 ac_cv_func_fork_works=cross
24918else
cristy8b350f62009-11-15 23:12:43 +000024919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024920/* end confdefs.h. */
24921$ac_includes_default
24922int
24923main ()
24924{
24925
24926 /* By Ruediger Kuhlmann. */
24927 return fork () < 0;
24928
24929 ;
24930 return 0;
24931}
24932_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024933if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024934 ac_cv_func_fork_works=yes
24935else
cristy8b350f62009-11-15 23:12:43 +000024936 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024937fi
cristy8b350f62009-11-15 23:12:43 +000024938rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24939 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024940fi
24941
cristy3ed852e2009-09-05 21:47:34 +000024942fi
cristy8b350f62009-11-15 23:12:43 +000024943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024944$as_echo "$ac_cv_func_fork_works" >&6; }
24945
24946else
24947 ac_cv_func_fork_works=$ac_cv_func_fork
24948fi
24949if test "x$ac_cv_func_fork_works" = xcross; then
24950 case $host in
24951 *-*-amigaos* | *-*-msdosdjgpp*)
24952 # Override, as these systems have only a dummy fork() stub
24953 ac_cv_func_fork_works=no
24954 ;;
24955 *)
24956 ac_cv_func_fork_works=yes
24957 ;;
24958 esac
cristy8b350f62009-11-15 23:12:43 +000024959 { $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 +000024960$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24961fi
24962ac_cv_func_vfork_works=$ac_cv_func_vfork
24963if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024965$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024966if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024967 $as_echo_n "(cached) " >&6
24968else
cristy8b350f62009-11-15 23:12:43 +000024969 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024970 ac_cv_func_vfork_works=cross
24971else
cristy8b350f62009-11-15 23:12:43 +000024972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024973/* end confdefs.h. */
24974/* Thanks to Paul Eggert for this test. */
24975$ac_includes_default
24976#include <sys/wait.h>
24977#ifdef HAVE_VFORK_H
24978# include <vfork.h>
24979#endif
24980/* On some sparc systems, changes by the child to local and incoming
24981 argument registers are propagated back to the parent. The compiler
24982 is told about this with #include <vfork.h>, but some compilers
24983 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24984 static variable whose address is put into a register that is
24985 clobbered by the vfork. */
24986static void
24987#ifdef __cplusplus
24988sparc_address_test (int arg)
24989# else
24990sparc_address_test (arg) int arg;
24991#endif
24992{
24993 static pid_t child;
24994 if (!child) {
24995 child = vfork ();
24996 if (child < 0) {
24997 perror ("vfork");
24998 _exit(2);
24999 }
25000 if (!child) {
25001 arg = getpid();
25002 write(-1, "", 0);
25003 _exit (arg);
25004 }
25005 }
25006}
25007
25008int
25009main ()
25010{
25011 pid_t parent = getpid ();
25012 pid_t child;
25013
25014 sparc_address_test (0);
25015
25016 child = vfork ();
25017
25018 if (child == 0) {
25019 /* Here is another test for sparc vfork register problems. This
25020 test uses lots of local variables, at least as many local
25021 variables as main has allocated so far including compiler
25022 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25023 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25024 reuse the register of parent for one of the local variables,
25025 since it will think that parent can't possibly be used any more
25026 in this routine. Assigning to the local variable will thus
25027 munge parent in the parent process. */
25028 pid_t
25029 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25030 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25031 /* Convince the compiler that p..p7 are live; otherwise, it might
25032 use the same hardware register for all 8 local variables. */
25033 if (p != p1 || p != p2 || p != p3 || p != p4
25034 || p != p5 || p != p6 || p != p7)
25035 _exit(1);
25036
25037 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25038 from child file descriptors. If the child closes a descriptor
25039 before it execs or exits, this munges the parent's descriptor
25040 as well. Test for this by closing stdout in the child. */
25041 _exit(close(fileno(stdout)) != 0);
25042 } else {
25043 int status;
25044 struct stat st;
25045
25046 while (wait(&status) != child)
25047 ;
25048 return (
25049 /* Was there some problem with vforking? */
25050 child < 0
25051
25052 /* Did the child fail? (This shouldn't happen.) */
25053 || status
25054
25055 /* Did the vfork/compiler bug occur? */
25056 || parent != getpid()
25057
25058 /* Did the file descriptor bug occur? */
25059 || fstat(fileno(stdout), &st) != 0
25060 );
25061 }
25062}
25063_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025064if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025065 ac_cv_func_vfork_works=yes
25066else
cristy8b350f62009-11-15 23:12:43 +000025067 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025068fi
cristy8b350f62009-11-15 23:12:43 +000025069rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25070 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025071fi
25072
cristy3ed852e2009-09-05 21:47:34 +000025073fi
cristy8b350f62009-11-15 23:12:43 +000025074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025075$as_echo "$ac_cv_func_vfork_works" >&6; }
25076
25077fi;
25078if test "x$ac_cv_func_fork_works" = xcross; then
25079 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025080 { $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 +000025081$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25082fi
25083
25084if test "x$ac_cv_func_vfork_works" = xyes; then
25085
cristy8b350f62009-11-15 23:12:43 +000025086$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025087
25088else
25089
cristy8b350f62009-11-15 23:12:43 +000025090$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025091
25092fi
25093if test "x$ac_cv_func_fork_works" = xyes; then
25094
cristy8b350f62009-11-15 23:12:43 +000025095$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025096
25097fi
25098
cristy8b350f62009-11-15 23:12:43 +000025099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025100$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025101if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025102 $as_echo_n "(cached) " >&6
25103else
cristy8b350f62009-11-15 23:12:43 +000025104 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025105 ac_cv_func_memcmp_working=no
25106else
cristy8b350f62009-11-15 23:12:43 +000025107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025108/* end confdefs.h. */
25109$ac_includes_default
25110int
25111main ()
25112{
25113
25114 /* Some versions of memcmp are not 8-bit clean. */
25115 char c0 = '\100', c1 = '\200', c2 = '\201';
25116 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25117 return 1;
25118
25119 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25120 or more and with at least one buffer not starting on a 4-byte boundary.
25121 William Lewis provided this test program. */
25122 {
25123 char foo[21];
25124 char bar[21];
25125 int i;
25126 for (i = 0; i < 4; i++)
25127 {
25128 char *a = foo + i;
25129 char *b = bar + i;
25130 strcpy (a, "--------01111111");
25131 strcpy (b, "--------10000000");
25132 if (memcmp (a, b, 16) >= 0)
25133 return 1;
25134 }
25135 return 0;
25136 }
25137
25138 ;
25139 return 0;
25140}
25141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025142if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025143 ac_cv_func_memcmp_working=yes
25144else
cristy8b350f62009-11-15 23:12:43 +000025145 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025146fi
cristy8b350f62009-11-15 23:12:43 +000025147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25148 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025149fi
25150
cristy3ed852e2009-09-05 21:47:34 +000025151fi
cristy8b350f62009-11-15 23:12:43 +000025152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025153$as_echo "$ac_cv_func_memcmp_working" >&6; }
25154test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25155 *" memcmp.$ac_objext "* ) ;;
25156 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25157 ;;
25158esac
25159
25160
cristy3ed852e2009-09-05 21:47:34 +000025161for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025162do :
25163 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25164ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025165if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025166 cat >>confdefs.h <<_ACEOF
25167#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25168_ACEOF
25169
25170fi
25171
25172done
25173
cristy8b350f62009-11-15 23:12:43 +000025174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025175$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025176if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025177 $as_echo_n "(cached) " >&6
25178else
25179 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25180 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25181 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025183/* end confdefs.h. */
25184$ac_includes_default
25185#ifdef HAVE_SYS_SELECT_H
25186# include <sys/select.h>
25187#endif
25188#ifdef HAVE_SYS_SOCKET_H
25189# include <sys/socket.h>
25190#endif
25191
25192int
25193main ()
25194{
25195extern int select ($ac_arg1,
25196 $ac_arg234, $ac_arg234, $ac_arg234,
25197 $ac_arg5);
25198 ;
25199 return 0;
25200}
25201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025202if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025203 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025204fi
cristy3ed852e2009-09-05 21:47:34 +000025205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25206 done
25207 done
25208done
25209# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025210: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025211
25212fi
cristy8b350f62009-11-15 23:12:43 +000025213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025214$as_echo "$ac_cv_func_select_args" >&6; }
25215ac_save_IFS=$IFS; IFS=','
25216set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25217IFS=$ac_save_IFS
25218shift
25219
25220cat >>confdefs.h <<_ACEOF
25221#define SELECT_TYPE_ARG1 $1
25222_ACEOF
25223
25224
25225cat >>confdefs.h <<_ACEOF
25226#define SELECT_TYPE_ARG234 ($2)
25227_ACEOF
25228
25229
25230cat >>confdefs.h <<_ACEOF
25231#define SELECT_TYPE_ARG5 ($3)
25232_ACEOF
25233
25234rm -f conftest*
25235
cristyda16f162011-02-19 23:52:17 +000025236if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025237 $as_echo_n "(cached) " >&6
25238else
25239 ac_cv_func_setvbuf_reversed=no
25240fi
25241
25242
cristy8b350f62009-11-15 23:12:43 +000025243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025244$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025245if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025246 $as_echo_n "(cached) " >&6
25247else
cristy8b350f62009-11-15 23:12:43 +000025248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025249/* end confdefs.h. */
25250#include <sys/types.h>
25251#include <signal.h>
25252
25253int
25254main ()
25255{
25256return *(signal (0, 0)) (0) == 1;
25257 ;
25258 return 0;
25259}
25260_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025261if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025262 ac_cv_type_signal=int
25263else
cristy8b350f62009-11-15 23:12:43 +000025264 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025265fi
cristy3ed852e2009-09-05 21:47:34 +000025266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25267fi
cristy8b350f62009-11-15 23:12:43 +000025268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025269$as_echo "$ac_cv_type_signal" >&6; }
25270
25271cat >>confdefs.h <<_ACEOF
25272#define RETSIGTYPE $ac_cv_type_signal
25273_ACEOF
25274
25275
cristy8b350f62009-11-15 23:12:43 +000025276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025277$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025278if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025279 $as_echo_n "(cached) " >&6
25280else
cristy8b350f62009-11-15 23:12:43 +000025281 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025282 ac_cv_func_strtod=no
25283else
cristy8b350f62009-11-15 23:12:43 +000025284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025285/* end confdefs.h. */
25286
25287$ac_includes_default
25288#ifndef strtod
25289double strtod ();
25290#endif
25291int
25292main()
25293{
25294 {
25295 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25296 char *string = " +69";
25297 char *term;
25298 double value;
25299 value = strtod (string, &term);
25300 if (value != 69 || term != (string + 4))
25301 return 1;
25302 }
25303
25304 {
25305 /* Under Solaris 2.4, strtod returns the wrong value for the
25306 terminating character under some conditions. */
25307 char *string = "NaN";
25308 char *term;
25309 strtod (string, &term);
25310 if (term != string && *(term - 1) == 0)
25311 return 1;
25312 }
25313 return 0;
25314}
25315
25316_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025317if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025318 ac_cv_func_strtod=yes
25319else
cristy8b350f62009-11-15 23:12:43 +000025320 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025321fi
cristy8b350f62009-11-15 23:12:43 +000025322rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25323 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025324fi
25325
cristy3ed852e2009-09-05 21:47:34 +000025326fi
cristy8b350f62009-11-15 23:12:43 +000025327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025328$as_echo "$ac_cv_func_strtod" >&6; }
25329if test $ac_cv_func_strtod = no; then
25330 case " $LIBOBJS " in
25331 *" strtod.$ac_objext "* ) ;;
25332 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25333 ;;
25334esac
25335
cristy8b350f62009-11-15 23:12:43 +000025336ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025337if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025338
cristy3ed852e2009-09-05 21:47:34 +000025339fi
25340
cristy3ed852e2009-09-05 21:47:34 +000025341if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025343$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025344if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025345 $as_echo_n "(cached) " >&6
25346else
25347 ac_check_lib_save_LIBS=$LIBS
25348LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025350/* end confdefs.h. */
25351
25352/* Override any GCC internal prototype to avoid an error.
25353 Use char because int might match the return type of a GCC
25354 builtin and then its argument prototype would still apply. */
25355#ifdef __cplusplus
25356extern "C"
25357#endif
25358char pow ();
25359int
25360main ()
25361{
25362return pow ();
25363 ;
25364 return 0;
25365}
25366_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025367if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025368 ac_cv_lib_m_pow=yes
25369else
cristy8b350f62009-11-15 23:12:43 +000025370 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025371fi
cristy8b350f62009-11-15 23:12:43 +000025372rm -f core conftest.err conftest.$ac_objext \
25373 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025374LIBS=$ac_check_lib_save_LIBS
25375fi
cristy8b350f62009-11-15 23:12:43 +000025376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025377$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025378if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025379 POW_LIB=-lm
25380else
cristy8b350f62009-11-15 23:12:43 +000025381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025382$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25383fi
25384
25385fi
25386
25387fi
25388
cristy7d4a1d62011-10-13 15:54:12 +000025389ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25390if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25391 ac_have_decl=1
25392else
25393 ac_have_decl=0
25394fi
25395
25396cat >>confdefs.h <<_ACEOF
25397#define HAVE_DECL_STRERROR_R $ac_have_decl
25398_ACEOF
25399
25400for ac_func in strerror_r
25401do :
25402 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25403if test "x$ac_cv_func_strerror_r" = xyes; then :
25404 cat >>confdefs.h <<_ACEOF
25405#define HAVE_STRERROR_R 1
25406_ACEOF
25407
25408fi
25409done
25410
25411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25412$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25413if ${ac_cv_func_strerror_r_char_p+:} false; then :
25414 $as_echo_n "(cached) " >&6
25415else
25416
25417 ac_cv_func_strerror_r_char_p=no
25418 if test $ac_cv_have_decl_strerror_r = yes; then
25419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25420/* end confdefs.h. */
25421$ac_includes_default
25422int
25423main ()
25424{
25425
25426 char buf[100];
25427 char x = *strerror_r (0, buf, sizeof buf);
25428 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025429 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025430
25431 ;
25432 return 0;
25433}
25434_ACEOF
25435if ac_fn_c_try_compile "$LINENO"; then :
25436 ac_cv_func_strerror_r_char_p=yes
25437fi
25438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25439 else
25440 # strerror_r is not declared. Choose between
25441 # systems that have relatively inaccessible declarations for the
25442 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25443 # former has a strerror_r that returns char*, while the latter
25444 # has a strerror_r that returns `int'.
25445 # This test should segfault on the DEC system.
25446 if test "$cross_compiling" = yes; then :
25447 :
25448else
25449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25450/* end confdefs.h. */
25451$ac_includes_default
25452 extern char *strerror_r ();
25453int
25454main ()
25455{
25456char buf[100];
25457 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025458 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025459 ;
25460 return 0;
25461}
25462_ACEOF
25463if ac_fn_c_try_run "$LINENO"; then :
25464 ac_cv_func_strerror_r_char_p=yes
25465fi
25466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25467 conftest.$ac_objext conftest.beam conftest.$ac_ext
25468fi
25469
25470 fi
25471
25472fi
25473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25474$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25475if test $ac_cv_func_strerror_r_char_p = yes; then
25476
25477$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25478
25479fi
25480
cristy3ed852e2009-09-05 21:47:34 +000025481for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025482do :
25483 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025484if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025485 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025486#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025487_ACEOF
25488
cristy8b350f62009-11-15 23:12:43 +000025489ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025490if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025491
cristy8b350f62009-11-15 23:12:43 +000025492$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025493
25494fi
25495
25496fi
25497done
25498
25499
25500
cristy161b9262010-03-20 19:34:32 +000025501#
25502# Find math library
25503#
25504MATH_LIBS=''
25505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25506$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025507if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025508 $as_echo_n "(cached) " >&6
25509else
25510 ac_check_lib_save_LIBS=$LIBS
25511LIBS="-lm $LIBS"
25512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25513/* end confdefs.h. */
25514
25515/* Override any GCC internal prototype to avoid an error.
25516 Use char because int might match the return type of a GCC
25517 builtin and then its argument prototype would still apply. */
25518#ifdef __cplusplus
25519extern "C"
25520#endif
25521char sqrt ();
25522int
25523main ()
25524{
25525return sqrt ();
25526 ;
25527 return 0;
25528}
25529_ACEOF
25530if ac_fn_c_try_link "$LINENO"; then :
25531 ac_cv_lib_m_sqrt=yes
25532else
25533 ac_cv_lib_m_sqrt=no
25534fi
25535rm -f core conftest.err conftest.$ac_objext \
25536 conftest$ac_exeext conftest.$ac_ext
25537LIBS=$ac_check_lib_save_LIBS
25538fi
25539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25540$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025541if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025542 MATH_LIBS="-lm"
25543fi
25544
25545LIBS="$MATH_LIBS $LIBS"
25546
25547
cristy85572162013-01-04 19:19:32 +000025548#
25549# Find socket library
25550#
cristy8a5d7f42013-01-06 15:24:33 +000025551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25552$as_echo_n "checking for library containing gethostbyname... " >&6; }
25553if ${ac_cv_search_gethostbyname+:} false; then :
25554 $as_echo_n "(cached) " >&6
25555else
25556 ac_func_search_save_LIBS=$LIBS
25557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25558/* end confdefs.h. */
25559
25560/* Override any GCC internal prototype to avoid an error.
25561 Use char because int might match the return type of a GCC
25562 builtin and then its argument prototype would still apply. */
25563#ifdef __cplusplus
25564extern "C"
25565#endif
25566char gethostbyname ();
25567int
25568main ()
25569{
25570return gethostbyname ();
25571 ;
25572 return 0;
25573}
25574_ACEOF
25575for ac_lib in '' resolv nsl; do
25576 if test -z "$ac_lib"; then
25577 ac_res="none required"
25578 else
25579 ac_res=-l$ac_lib
25580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25581 fi
25582 if ac_fn_c_try_link "$LINENO"; then :
25583 ac_cv_search_gethostbyname=$ac_res
25584fi
25585rm -f core conftest.err conftest.$ac_objext \
25586 conftest$ac_exeext
25587 if ${ac_cv_search_gethostbyname+:} false; then :
25588 break
25589fi
25590done
25591if ${ac_cv_search_gethostbyname+:} false; then :
25592
25593else
25594 ac_cv_search_gethostbyname=no
25595fi
25596rm conftest.$ac_ext
25597LIBS=$ac_func_search_save_LIBS
25598fi
25599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25600$as_echo "$ac_cv_search_gethostbyname" >&6; }
25601ac_res=$ac_cv_search_gethostbyname
25602if test "$ac_res" != no; then :
25603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25604
25605fi
25606
cristy85572162013-01-04 19:19:32 +000025607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25608$as_echo_n "checking for library containing socket... " >&6; }
25609if ${ac_cv_search_socket+:} false; then :
25610 $as_echo_n "(cached) " >&6
25611else
25612 ac_func_search_save_LIBS=$LIBS
25613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25614/* end confdefs.h. */
25615
25616/* Override any GCC internal prototype to avoid an error.
25617 Use char because int might match the return type of a GCC
25618 builtin and then its argument prototype would still apply. */
25619#ifdef __cplusplus
25620extern "C"
25621#endif
25622char socket ();
25623int
25624main ()
25625{
25626return socket ();
25627 ;
25628 return 0;
25629}
25630_ACEOF
25631for ac_lib in '' socket; do
25632 if test -z "$ac_lib"; then
25633 ac_res="none required"
25634 else
25635 ac_res=-l$ac_lib
25636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25637 fi
25638 if ac_fn_c_try_link "$LINENO"; then :
25639 ac_cv_search_socket=$ac_res
25640fi
25641rm -f core conftest.err conftest.$ac_objext \
25642 conftest$ac_exeext
25643 if ${ac_cv_search_socket+:} false; then :
25644 break
25645fi
25646done
25647if ${ac_cv_search_socket+:} false; then :
25648
25649else
25650 ac_cv_search_socket=no
25651fi
25652rm conftest.$ac_ext
25653LIBS=$ac_func_search_save_LIBS
25654fi
25655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25656$as_echo "$ac_cv_search_socket" >&6; }
25657ac_res=$ac_cv_search_socket
25658if test "$ac_res" != no; then :
25659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25660
cristy85572162013-01-04 19:19:32 +000025661
cristy8a5d7f42013-01-06 15:24:33 +000025662$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025663
cristy03f187e2013-01-24 00:22:19 +000025664 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025665
25666fi
25667
25668
25669for 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 +000025670do :
25671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25672ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025673if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025674 cat >>confdefs.h <<_ACEOF
25675#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25676_ACEOF
25677
25678fi
25679done
25680
25681
cristye43a45e2009-09-28 14:49:00 +000025682#
25683# Check for clock_gettime().
25684#
cristy8b350f62009-11-15 23:12:43 +000025685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025686$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025687if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025688 $as_echo_n "(cached) " >&6
25689else
25690 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025692/* end confdefs.h. */
25693
25694/* Override any GCC internal prototype to avoid an error.
25695 Use char because int might match the return type of a GCC
25696 builtin and then its argument prototype would still apply. */
25697#ifdef __cplusplus
25698extern "C"
25699#endif
25700char clock_gettime ();
25701int
25702main ()
25703{
25704return clock_gettime ();
25705 ;
25706 return 0;
25707}
25708_ACEOF
25709for ac_lib in '' rt; do
25710 if test -z "$ac_lib"; then
25711 ac_res="none required"
25712 else
25713 ac_res=-l$ac_lib
25714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25715 fi
cristy8b350f62009-11-15 23:12:43 +000025716 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025717 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025718fi
cristy8b350f62009-11-15 23:12:43 +000025719rm -f core conftest.err conftest.$ac_objext \
25720 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025721 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025722 break
25723fi
25724done
cristyda16f162011-02-19 23:52:17 +000025725if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025726
cristye43a45e2009-09-28 14:49:00 +000025727else
25728 ac_cv_search_clock_gettime=no
25729fi
25730rm conftest.$ac_ext
25731LIBS=$ac_func_search_save_LIBS
25732fi
cristy8b350f62009-11-15 23:12:43 +000025733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025734$as_echo "$ac_cv_search_clock_gettime" >&6; }
25735ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025736if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25738
25739
cristy8b350f62009-11-15 23:12:43 +000025740$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025741
cristy8b350f62009-11-15 23:12:43 +000025742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025743$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025745/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025746
25747 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025748int
25749main ()
25750{
25751clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025752 ;
25753 return 0;
25754}
25755_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025756if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025757
cristyad38abe2012-12-23 23:03:21 +000025758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25759$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025760
cristy8b350f62009-11-15 23:12:43 +000025761$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025762
25763
25764else
cristyad38abe2012-12-23 23:03:21 +000025765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25766$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025767
25768fi
cristye43a45e2009-09-28 14:49:00 +000025769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25770
25771else
25772
cristy8b350f62009-11-15 23:12:43 +000025773 for ac_func in gettimeofday ftime
25774do :
25775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25776ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025777if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025778 cat >>confdefs.h <<_ACEOF
25779#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25780_ACEOF
25781 break
25782fi
25783done
25784
25785
25786
25787fi
25788
25789
cristy3ed852e2009-09-05 21:47:34 +000025790########
25791#
25792# Check for function prototypes
25793#
25794########
25795
cristy8b350f62009-11-15 23:12:43 +000025796ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025797#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025798"
cristyda16f162011-02-19 23:52:17 +000025799if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025800 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025801else
cristy8b350f62009-11-15 23:12:43 +000025802 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025803fi
25804
cristy3ed852e2009-09-05 21:47:34 +000025805cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025806#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025807_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025808ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025809#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025810"
cristyda16f162011-02-19 23:52:17 +000025811if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025812 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025813else
cristy8b350f62009-11-15 23:12:43 +000025814 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025815fi
25816
cristy3ed852e2009-09-05 21:47:34 +000025817cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025818#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025819_ACEOF
25820
25821
cristy8b350f62009-11-15 23:12:43 +000025822ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025823#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025824"
cristyda16f162011-02-19 23:52:17 +000025825if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025826 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025827else
cristy8b350f62009-11-15 23:12:43 +000025828 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025829fi
25830
cristy3ed852e2009-09-05 21:47:34 +000025831cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025832#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025833_ACEOF
25834
25835
cristy8b350f62009-11-15 23:12:43 +000025836ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025837#include <stdio.h>
25838#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025839"
cristyda16f162011-02-19 23:52:17 +000025840if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025841 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025842else
cristy8b350f62009-11-15 23:12:43 +000025843 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025844fi
25845
cristy3ed852e2009-09-05 21:47:34 +000025846cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025847#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025848_ACEOF
25849
25850
cristy3ed852e2009-09-05 21:47:34 +000025851########
25852#
25853# C++ Support Tests (For Magick++)
25854#
25855########
25856have_magick_plus_plus='no'
25857if test "$with_magick_plus_plus" = 'yes'; then
25858 OLIBS="$LIBS"
25859 LIBS=''
25860 ac_ext=cpp
25861ac_cpp='$CXXCPP $CPPFLAGS'
25862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25865
25866
25867 # Full set of headers used...
25868 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25869 # functional iomanip iosfwd iostream iterator list string strstream utility
25870 ac_ext=cpp
25871ac_cpp='$CXXCPP $CPPFLAGS'
25872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25875
25876 ac_ext=cpp
25877ac_cpp='$CXXCPP $CPPFLAGS'
25878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25881if test -z "$CXX"; then
25882 if test -n "$CCC"; then
25883 CXX=$CCC
25884 else
25885 if test -n "$ac_tool_prefix"; then
25886 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25887 do
25888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25889set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025891$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025892if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025893 $as_echo_n "(cached) " >&6
25894else
25895 if test -n "$CXX"; then
25896 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25897else
25898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25899for as_dir in $PATH
25900do
25901 IFS=$as_save_IFS
25902 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025903 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025905 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025907 break 2
25908 fi
25909done
cristy8b350f62009-11-15 23:12:43 +000025910 done
cristy3ed852e2009-09-05 21:47:34 +000025911IFS=$as_save_IFS
25912
25913fi
25914fi
25915CXX=$ac_cv_prog_CXX
25916if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025918$as_echo "$CXX" >&6; }
25919else
cristy8b350f62009-11-15 23:12:43 +000025920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025921$as_echo "no" >&6; }
25922fi
25923
25924
25925 test -n "$CXX" && break
25926 done
25927fi
25928if test -z "$CXX"; then
25929 ac_ct_CXX=$CXX
25930 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25931do
25932 # Extract the first word of "$ac_prog", so it can be a program name with args.
25933set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025935$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025936if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025937 $as_echo_n "(cached) " >&6
25938else
25939 if test -n "$ac_ct_CXX"; then
25940 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25941else
25942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25943for as_dir in $PATH
25944do
25945 IFS=$as_save_IFS
25946 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025947 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025949 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025951 break 2
25952 fi
25953done
cristy8b350f62009-11-15 23:12:43 +000025954 done
cristy3ed852e2009-09-05 21:47:34 +000025955IFS=$as_save_IFS
25956
25957fi
25958fi
25959ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25960if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025962$as_echo "$ac_ct_CXX" >&6; }
25963else
cristy8b350f62009-11-15 23:12:43 +000025964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025965$as_echo "no" >&6; }
25966fi
25967
25968
25969 test -n "$ac_ct_CXX" && break
25970done
25971
25972 if test "x$ac_ct_CXX" = x; then
25973 CXX="g++"
25974 else
25975 case $cross_compiling:$ac_tool_warned in
25976yes:)
cristy8b350f62009-11-15 23:12:43 +000025977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25979ac_tool_warned=yes ;;
25980esac
25981 CXX=$ac_ct_CXX
25982 fi
25983fi
25984
25985 fi
25986fi
25987# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025988$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025989set X $ac_compile
25990ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025991for ac_option in --version -v -V -qversion; do
25992 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025993case "(($ac_try" in
25994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25995 *) ac_try_echo=$ac_try;;
25996esac
cristy8b350f62009-11-15 23:12:43 +000025997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25998$as_echo "$ac_try_echo"; } >&5
25999 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000026000 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026001 if test -s conftest.err; then
26002 sed '10a\
26003... rest of stderr output deleted ...
26004 10q' conftest.err >conftest.er1
26005 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000026006 fi
cristycd4c5312009-11-22 01:19:08 +000026007 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000026008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26009 test $ac_status = 0; }
26010done
cristy3ed852e2009-09-05 21:47:34 +000026011
cristy8b350f62009-11-15 23:12:43 +000026012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000026013$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026014if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026015 $as_echo_n "(cached) " >&6
26016else
cristy8b350f62009-11-15 23:12:43 +000026017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026018/* end confdefs.h. */
26019
26020int
26021main ()
26022{
26023#ifndef __GNUC__
26024 choke me
26025#endif
26026
26027 ;
26028 return 0;
26029}
26030_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026031if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026032 ac_compiler_gnu=yes
26033else
cristy8b350f62009-11-15 23:12:43 +000026034 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026035fi
cristy3ed852e2009-09-05 21:47:34 +000026036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26037ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26038
26039fi
cristy8b350f62009-11-15 23:12:43 +000026040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026041$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26042if test $ac_compiler_gnu = yes; then
26043 GXX=yes
26044else
26045 GXX=
26046fi
26047ac_test_CXXFLAGS=${CXXFLAGS+set}
26048ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026050$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026051if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026052 $as_echo_n "(cached) " >&6
26053else
26054 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26055 ac_cxx_werror_flag=yes
26056 ac_cv_prog_cxx_g=no
26057 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026059/* end confdefs.h. */
26060
26061int
26062main ()
26063{
26064
26065 ;
26066 return 0;
26067}
26068_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026069if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026070 ac_cv_prog_cxx_g=yes
26071else
cristy8b350f62009-11-15 23:12:43 +000026072 CXXFLAGS=""
26073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026074/* end confdefs.h. */
26075
26076int
26077main ()
26078{
26079
26080 ;
26081 return 0;
26082}
26083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026084if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026085
cristy8b350f62009-11-15 23:12:43 +000026086else
26087 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026088 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026090/* end confdefs.h. */
26091
26092int
26093main ()
26094{
26095
26096 ;
26097 return 0;
26098}
26099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026100if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026101 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026102fi
cristy3ed852e2009-09-05 21:47:34 +000026103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26104fi
cristy3ed852e2009-09-05 21:47:34 +000026105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26106fi
cristy3ed852e2009-09-05 21:47:34 +000026107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26108 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26109fi
cristy8b350f62009-11-15 23:12:43 +000026110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026111$as_echo "$ac_cv_prog_cxx_g" >&6; }
26112if test "$ac_test_CXXFLAGS" = set; then
26113 CXXFLAGS=$ac_save_CXXFLAGS
26114elif test $ac_cv_prog_cxx_g = yes; then
26115 if test "$GXX" = yes; then
26116 CXXFLAGS="-g -O2"
26117 else
26118 CXXFLAGS="-g"
26119 fi
26120else
26121 if test "$GXX" = yes; then
26122 CXXFLAGS="-O2"
26123 else
26124 CXXFLAGS=
26125 fi
26126fi
26127ac_ext=cpp
26128ac_cpp='$CXXCPP $CPPFLAGS'
26129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26132
cristy73bd4a52010-10-05 11:24:23 +000026133depcc="$CXX" am_compiler_list=
26134
26135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26136$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026137if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026138 $as_echo_n "(cached) " >&6
26139else
26140 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26141 # We make a subdir and do the tests there. Otherwise we can end up
26142 # making bogus files that we don't know about and never remove. For
26143 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026144 # making a dummy file named 'D' -- because '-MD' means "put the output
26145 # in D".
cristy7247bba2012-02-05 16:37:27 +000026146 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026147 mkdir conftest.dir
26148 # Copy depcomp to subdir because otherwise we won't find it if we're
26149 # using a relative directory.
26150 cp "$am_depcomp" conftest.dir
26151 cd conftest.dir
26152 # We will build objects and dependencies in a subdirectory because
26153 # it helps to detect inapplicable dependency modes. For instance
26154 # both Tru64's cc and ICC support -MD to output dependencies as a
26155 # side effect of compilation, but ICC will put the dependencies in
26156 # the current directory while Tru64 will put them in the object
26157 # directory.
26158 mkdir sub
26159
26160 am_cv_CXX_dependencies_compiler_type=none
26161 if test "$am_compiler_list" = ""; then
26162 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26163 fi
26164 am__universal=false
26165 case " $depcc " in #(
26166 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26167 esac
26168
26169 for depmode in $am_compiler_list; do
26170 # Setup a source with many dependencies, because some compilers
26171 # like to wrap large dependency lists on column 80 (with \), and
26172 # we should not choose a depcomp mode which is confused by this.
26173 #
26174 # We need to recreate these files for each test, as the compiler may
26175 # overwrite some of them when testing with obscure command lines.
26176 # This happens at least with the AIX C compiler.
26177 : > sub/conftest.c
26178 for i in 1 2 3 4 5 6; do
26179 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026180 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26181 # Solaris 10 /bin/sh.
26182 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026183 done
26184 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26185
cristyc0890a62012-07-19 00:18:20 +000026186 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026187 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026188 # handle '-M -o', and we need to detect this. Also, some Intel
26189 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026190 am__obj=sub/conftest.${OBJEXT-o}
26191 am__minus_obj="-o $am__obj"
26192 case $depmode in
26193 gcc)
26194 # This depmode causes a compiler race in universal mode.
26195 test "$am__universal" = false || continue
26196 ;;
26197 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026198 # After this tag, mechanisms are not by side-effect, so they'll
26199 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026200 if test "x$enable_dependency_tracking" = xyes; then
26201 continue
26202 else
26203 break
26204 fi
26205 ;;
cristy7247bba2012-02-05 16:37:27 +000026206 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026207 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026208 # not run yet. These depmodes are late enough in the game, and
26209 # so weak that their functioning should not be impacted.
26210 am__obj=conftest.${OBJEXT-o}
26211 am__minus_obj=
26212 ;;
26213 none) break ;;
26214 esac
26215 if depmode=$depmode \
26216 source=sub/conftest.c object=$am__obj \
26217 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26218 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26219 >/dev/null 2>conftest.err &&
26220 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26221 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26222 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26223 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26224 # icc doesn't choke on unknown options, it will just issue warnings
26225 # or remarks (even with -Werror). So we grep stderr for any message
26226 # that says an option was ignored or not supported.
26227 # When given -MP, icc 7.0 and 7.1 complain thusly:
26228 # icc: Command line warning: ignoring option '-M'; no argument required
26229 # The diagnosis changed in icc 8.0:
26230 # icc: Command line remark: option '-MP' not supported
26231 if (grep 'ignoring option' conftest.err ||
26232 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26233 am_cv_CXX_dependencies_compiler_type=$depmode
26234 break
26235 fi
26236 fi
26237 done
26238
26239 cd ..
26240 rm -rf conftest.dir
26241else
26242 am_cv_CXX_dependencies_compiler_type=none
26243fi
26244
26245fi
26246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26247$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26248CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26249
26250 if
26251 test "x$enable_dependency_tracking" != xno \
26252 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26253 am__fastdepCXX_TRUE=
26254 am__fastdepCXX_FALSE='#'
26255else
26256 am__fastdepCXX_TRUE='#'
26257 am__fastdepCXX_FALSE=
26258fi
26259
26260
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26262$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026263if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026264 $as_echo_n "(cached) " >&6
26265else
26266
26267 ac_ext=cpp
26268ac_cpp='$CXXCPP $CPPFLAGS'
26269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26272
26273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26274/* end confdefs.h. */
26275
26276int f(int x){return 1;}
26277int f(char x){return 1;}
26278int f(bool x){return 1;}
26279
26280int
26281main ()
26282{
26283bool b = true; return f(b);
26284 ;
26285 return 0;
26286}
26287_ACEOF
26288if ac_fn_cxx_try_compile "$LINENO"; then :
26289 ax_cv_cxx_bool=yes
26290else
26291 ax_cv_cxx_bool=no
26292fi
26293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26294 ac_ext=cpp
26295ac_cpp='$CXXCPP $CPPFLAGS'
26296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26299
26300
26301fi
26302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26303$as_echo "$ax_cv_cxx_bool" >&6; }
26304if test "$ax_cv_cxx_bool" = yes; then
26305
26306$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26307
26308fi
26309
26310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26311$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026312if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026313 $as_echo_n "(cached) " >&6
26314else
cristy17491be2014-06-24 01:10:53 +000026315 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026316ac_cpp='$CXXCPP $CPPFLAGS'
26317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26320
26321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26322/* end confdefs.h. */
26323namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000026324 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000026325_ACEOF
26326if ac_fn_cxx_try_compile "$LINENO"; then :
26327 ax_cv_cxx_namespaces=yes
26328else
26329 ax_cv_cxx_namespaces=no
26330fi
26331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26332 ac_ext=cpp
26333ac_cpp='$CXXCPP $CPPFLAGS'
26334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26337
26338
26339fi
26340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26341$as_echo "$ax_cv_cxx_namespaces" >&6; }
26342if test "$ax_cv_cxx_namespaces" = yes; then
26343
26344$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26345
26346fi
26347
26348
26349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26350$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026351if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026352 $as_echo_n "(cached) " >&6
26353else
26354
26355 ac_ext=cpp
26356ac_cpp='$CXXCPP $CPPFLAGS'
26357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26360
26361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26362/* end confdefs.h. */
26363#include <iostream>
26364 std::istream& is = std::cin;
26365int
26366main ()
26367{
26368
26369 ;
26370 return 0;
26371}
26372_ACEOF
26373if ac_fn_cxx_try_compile "$LINENO"; then :
26374 ax_cv_cxx_have_std_namespace=yes
26375else
26376 ax_cv_cxx_have_std_namespace=no
26377fi
26378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26379 ac_ext=cpp
26380ac_cpp='$CXXCPP $CPPFLAGS'
26381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26384
26385
26386fi
26387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26388$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26389 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26390
26391$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26392
26393 fi
26394
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26396$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026397if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026398 $as_echo_n "(cached) " >&6
26399else
26400
26401
26402 ac_ext=cpp
26403ac_cpp='$CXXCPP $CPPFLAGS'
26404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26407
26408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26409/* end confdefs.h. */
26410#include <iostream>
26411#include <map>
26412#include <iomanip>
26413#include <cmath>
26414#ifdef HAVE_NAMESPACES
26415using namespace std;
26416#endif
26417int
26418main ()
26419{
26420return 0;
26421 ;
26422 return 0;
26423}
26424_ACEOF
26425if ac_fn_cxx_try_compile "$LINENO"; then :
26426 ac_cv_cxx_have_std_libs=yes
26427else
26428 ac_cv_cxx_have_std_libs=no
26429fi
26430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26431 ac_ext=cpp
26432ac_cpp='$CXXCPP $CPPFLAGS'
26433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26436
26437
26438fi
26439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26440$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26441if test "$ac_cv_cxx_have_std_libs" = yes; then
26442
26443$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26444
26445fi
26446
cristy3ed852e2009-09-05 21:47:34 +000026447
26448 OPENMP_CXXFLAGS=
26449 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026450if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026451 enableval=$enable_openmp;
26452fi
26453
26454 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26456$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026457if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026458 $as_echo_n "(cached) " >&6
26459else
cristy8b350f62009-11-15 23:12:43 +000026460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26461/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026462
26463#ifndef _OPENMP
26464 choke me
26465#endif
26466#include <omp.h>
26467int main () { return omp_get_num_threads (); }
26468
26469_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026470if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026471 ac_cv_prog_cxx_openmp='none needed'
26472else
cristy8b350f62009-11-15 23:12:43 +000026473 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026474 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26475 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026476 ac_save_CXXFLAGS=$CXXFLAGS
26477 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26479/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026480
26481#ifndef _OPENMP
26482 choke me
26483#endif
26484#include <omp.h>
26485int main () { return omp_get_num_threads (); }
26486
26487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026488if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026489 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026490fi
cristy8b350f62009-11-15 23:12:43 +000026491rm -f core conftest.err conftest.$ac_objext \
26492 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026493 CXXFLAGS=$ac_save_CXXFLAGS
26494 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26495 break
26496 fi
26497 done
26498fi
cristy8b350f62009-11-15 23:12:43 +000026499rm -f core conftest.err conftest.$ac_objext \
26500 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026501fi
cristy8b350f62009-11-15 23:12:43 +000026502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026503$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26504 case $ac_cv_prog_cxx_openmp in #(
26505 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026506 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026507 *)
cristy8b350f62009-11-15 23:12:43 +000026508 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026509 esac
26510 fi
26511
26512
26513 ac_ext=c
26514ac_cpp='$CPP $CPPFLAGS'
26515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26517ac_compiler_gnu=$ac_cv_c_compiler_gnu
26518
26519
cristy8b350f62009-11-15 23:12:43 +000026520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026521$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26522 if \
cristy964cb7f2010-04-25 23:18:00 +000026523 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026524 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026525 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026526 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026527 have_magick_plus_plus='yes'
26528 else
26529 have_magick_plus_plus='no (failed tests)'
26530 fi
cristyad38abe2012-12-23 23:03:21 +000026531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26532$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026533 LIBS="$OLIBS"
26534fi
cristy73bd4a52010-10-05 11:24:23 +000026535 if test "$have_magick_plus_plus" = 'yes'; then
26536 WITH_MAGICK_PLUS_PLUS_TRUE=
26537 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26538else
26539 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26540 WITH_MAGICK_PLUS_PLUS_FALSE=
26541fi
26542
cristy3ed852e2009-09-05 21:47:34 +000026543
26544# Only check for delegate libraries in subdirectories if requested.
26545if test "$enable_delegate_build" != 'no'; then
26546 # Check for delegate sub-directories and add -I & -L options as required.
26547 # This presumes that delegates are installed as detailed in the ImageMagick
26548 # README. If delegates are installed in a standard location where the
26549 # compiler will automatically find them then these options should not be
26550 # required.
26551
26552 #
26553 # Most delegates have includes in the same directory as the library, but not all...
26554 #
26555 # Includes
cristy834307f2015-01-25 00:43:41 +000026556 for dir in bzlib fftw fpx gslib/src jp2 jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026557 if test -d "$builddir/$dir"; then
26558 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26559 else
26560 if test -d "$srcdirfull/$dir"; then
26561 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26562 fi
26563 fi
26564 done
26565
26566 # Libraries
cristy834307f2015-01-25 00:43:41 +000026567 for dir in bzlib fftw fpx gslib/src jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026568 if test -d "$builddir/$dir/.libs"; then
26569 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26570 else
26571 if test -d "$srcdirfull/$dir/.libs"; then
26572 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26573 fi
26574 fi
26575 if test -d "$builddir/$dir"; then
26576 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26577 else
26578 if test -d "$srcdirfull/$dir"; then
26579 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26580 fi
26581 fi
26582 done
26583fi
26584
26585# Assume that delegate headers reside under same directory as ImageMagick
26586# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026587MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026588
26589#
26590# Find the X11 RGB database
26591#
cristy8b350f62009-11-15 23:12:43 +000026592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026593$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026594if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026595 $as_echo_n "(cached) " >&6
26596else
26597 # Look for the header file in a standard set of common directories.
26598# Check X11 before X11Rn because it is often a symlink to the current release.
26599 for ac_dir in \
26600 /lib/usr/lib/X11 \
26601 /usr/X11/lib \
26602 /usr/X11R4/lib \
26603 /usr/X11R5/lib \
26604 /usr/X11R6/lib \
26605 /usr/X11R7/lib \
26606 /usr/X386/lib \
26607 /usr/XFree86/lib/X11 \
26608 /usr/athena/lib \
26609 /usr/lib \
26610 /usr/lib/X11 \
26611 /usr/lib/X11R4 \
26612 /usr/lib/X11R5 \
26613 /usr/lib/X11R6 \
26614 /usr/lib/X11R7 \
26615 /usr/local/X11/lib \
26616 /usr/local/X11R4/lib \
26617 /usr/local/X11R5/lib \
26618 /usr/local/X11R6/lib \
26619 /usr/local/lib \
26620 /usr/local/lib/X11 \
26621 /usr/local/lib/X11R4 \
26622 /usr/local/lib/X11R5 \
26623 /usr/local/lib/X11R6 \
26624 /usr/local/lib/X11R7 \
26625 /usr/local/x11r5/lib \
26626 /usr/lpp/Xamples/lib \
26627 /usr/openwin/lib \
26628 /usr/openwin/share/lib \
26629 /usr/unsupported/lib \
26630 /usr/x386/lib \
26631 ; do
26632 if test -f "$ac_dir/X11/rgb.txt"; then
26633 im_cv_x_configure="$ac_dir/X11/"
26634 break
26635 elif test -f "$ac_dir/rgb.txt"; then
26636 im_cv_x_configure="$ac_dir/"
26637 break
26638 fi
26639
26640 done
26641fi
cristy8b350f62009-11-15 23:12:43 +000026642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026643$as_echo "$im_cv_x_configure" >&6; }
26644X11_CONFIGURE_PATH="$im_cv_x_configure"
26645case "${build_os}" in
26646 mingw* )
26647 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26648 ;;
26649esac
26650
26651cat >>confdefs.h <<_ACEOF
26652#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26653_ACEOF
26654
26655
26656#
26657# Find OpenMP library
26658#
26659GOMP_LIBS=''
26660if test "$enable_openmp" != 'no'; then
26661 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026662 # Open64 (passes for GCC but uses different OpenMP implementation)
26663 if test "x$GOMP_LIBS" = x ; then
26664 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26666$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26667if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26668 $as_echo_n "(cached) " >&6
26669else
26670 ac_check_lib_save_LIBS=$LIBS
26671LIBS="-lopenmp $LIBS"
26672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26673/* end confdefs.h. */
26674
26675/* Override any GCC internal prototype to avoid an error.
26676 Use char because int might match the return type of a GCC
26677 builtin and then its argument prototype would still apply. */
26678#ifdef __cplusplus
26679extern "C"
26680#endif
26681char omp_get_num_procs ();
26682int
26683main ()
26684{
26685return omp_get_num_procs ();
26686 ;
26687 return 0;
26688}
26689_ACEOF
26690if ac_fn_c_try_link "$LINENO"; then :
26691 ac_cv_lib_openmp_omp_get_num_procs=yes
26692else
26693 ac_cv_lib_openmp_omp_get_num_procs=no
26694fi
26695rm -f core conftest.err conftest.$ac_objext \
26696 conftest$ac_exeext conftest.$ac_ext
26697LIBS=$ac_check_lib_save_LIBS
26698fi
26699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26700$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26701if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26702 GOMP_LIBS="-lopenmp"
26703fi
26704
26705 fi
26706 fi
26707 # GCC
26708 if test "x$GOMP_LIBS" = x ; then
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026710$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026711if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026712 $as_echo_n "(cached) " >&6
26713else
26714 ac_check_lib_save_LIBS=$LIBS
26715LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026717/* end confdefs.h. */
26718
26719/* Override any GCC internal prototype to avoid an error.
26720 Use char because int might match the return type of a GCC
26721 builtin and then its argument prototype would still apply. */
26722#ifdef __cplusplus
26723extern "C"
26724#endif
26725char GOMP_parallel_start ();
26726int
26727main ()
26728{
26729return GOMP_parallel_start ();
26730 ;
26731 return 0;
26732}
26733_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026734if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026735 ac_cv_lib_gomp_GOMP_parallel_start=yes
26736else
cristy8b350f62009-11-15 23:12:43 +000026737 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026738fi
cristy8b350f62009-11-15 23:12:43 +000026739rm -f core conftest.err conftest.$ac_objext \
26740 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026741LIBS=$ac_check_lib_save_LIBS
26742fi
cristy8b350f62009-11-15 23:12:43 +000026743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026744$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026745if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026746 GOMP_LIBS="-lgomp"
26747fi
cristy18307f12011-12-30 01:20:16 +000026748
26749 fi
cristy3ed852e2009-09-05 21:47:34 +000026750 else
cristy18307f12011-12-30 01:20:16 +000026751 # Sun CC
26752 if test "x$GOMP_LIBS" = x ; then
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026754$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026755if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026756 $as_echo_n "(cached) " >&6
26757else
26758 ac_check_lib_save_LIBS=$LIBS
26759LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026761/* end confdefs.h. */
26762
26763/* Override any GCC internal prototype to avoid an error.
26764 Use char because int might match the return type of a GCC
26765 builtin and then its argument prototype would still apply. */
26766#ifdef __cplusplus
26767extern "C"
26768#endif
26769char sunw_mp_register_warn ();
26770int
26771main ()
26772{
26773return sunw_mp_register_warn ();
26774 ;
26775 return 0;
26776}
26777_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026778if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026779 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26780else
cristy8b350f62009-11-15 23:12:43 +000026781 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026782fi
cristy8b350f62009-11-15 23:12:43 +000026783rm -f core conftest.err conftest.$ac_objext \
26784 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026785LIBS=$ac_check_lib_save_LIBS
26786fi
cristy8b350f62009-11-15 23:12:43 +000026787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026788$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026789if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026790 GOMP_LIBS="-lmtsk"
26791fi
cristy18307f12011-12-30 01:20:16 +000026792
26793 fi
26794 # AIX xlc
26795 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026797$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026798if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026799 $as_echo_n "(cached) " >&6
26800else
26801 ac_check_lib_save_LIBS=$LIBS
26802LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026804/* end confdefs.h. */
26805
26806/* Override any GCC internal prototype to avoid an error.
26807 Use char because int might match the return type of a GCC
26808 builtin and then its argument prototype would still apply. */
26809#ifdef __cplusplus
26810extern "C"
26811#endif
26812char _xlsmpFlush ();
26813int
26814main ()
26815{
26816return _xlsmpFlush ();
26817 ;
26818 return 0;
26819}
26820_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026821if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026822 ac_cv_lib_xlsmp__xlsmpFlush=yes
26823else
cristy8b350f62009-11-15 23:12:43 +000026824 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026825fi
cristy8b350f62009-11-15 23:12:43 +000026826rm -f core conftest.err conftest.$ac_objext \
26827 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026828LIBS=$ac_check_lib_save_LIBS
26829fi
cristy8b350f62009-11-15 23:12:43 +000026830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026831$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026832if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026833 GOMP_LIBS="-lxlsmp"
26834fi
cristy18307f12011-12-30 01:20:16 +000026835
26836 fi
26837 # SGI IRIX 6.5 MIPSpro C/C++
26838 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026840$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026841if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026842 $as_echo_n "(cached) " >&6
26843else
26844 ac_check_lib_save_LIBS=$LIBS
26845LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026847/* end confdefs.h. */
26848
26849/* Override any GCC internal prototype to avoid an error.
26850 Use char because int might match the return type of a GCC
26851 builtin and then its argument prototype would still apply. */
26852#ifdef __cplusplus
26853extern "C"
26854#endif
26855char mp_destroy ();
26856int
26857main ()
26858{
26859return mp_destroy ();
26860 ;
26861 return 0;
26862}
26863_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026864if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026865 ac_cv_lib_mp_mp_destroy=yes
26866else
cristy8b350f62009-11-15 23:12:43 +000026867 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026868fi
cristy8b350f62009-11-15 23:12:43 +000026869rm -f core conftest.err conftest.$ac_objext \
26870 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026871LIBS=$ac_check_lib_save_LIBS
26872fi
cristy8b350f62009-11-15 23:12:43 +000026873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026874$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026875if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026876 GOMP_LIBS="-lmp"
26877fi
cristy18307f12011-12-30 01:20:16 +000026878
26879 fi
cristy3ed852e2009-09-05 21:47:34 +000026880 fi
26881 LIBS="$GOMP_LIBS $LIBS"
26882fi
26883
26884
cristy12ac8192014-11-04 13:59:13 +000026885#
cristy3b0097d2014-11-04 15:34:47 +000026886# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000026887#
cristy3b0097d2014-11-04 15:34:47 +000026888have_jemalloc='no'
26889JEMALLOC_LIBS=''
26890if test "$with_jemalloc" != 'no'; then
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
26892$as_echo_n "checking for JEMALLOC support ... " >&6; }
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26894$as_echo "" >&6; }
26895 failed=0
26896 passed=0
26897 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
26898if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026899 passed=`expr $passed + 1`
26900else
26901 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026902fi
26903
26904
cristy3b0097d2014-11-04 15:34:47 +000026905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
26906$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
26907if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000026908 $as_echo_n "(cached) " >&6
26909else
26910 ac_check_lib_save_LIBS=$LIBS
26911LIBS="-ljemalloc $LIBS"
26912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26913/* end confdefs.h. */
26914
26915/* Override any GCC internal prototype to avoid an error.
26916 Use char because int might match the return type of a GCC
26917 builtin and then its argument prototype would still apply. */
26918#ifdef __cplusplus
26919extern "C"
26920#endif
cristy3b0097d2014-11-04 15:34:47 +000026921char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026922int
26923main ()
26924{
cristy3b0097d2014-11-04 15:34:47 +000026925return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026926 ;
26927 return 0;
26928}
26929_ACEOF
26930if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000026931 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000026932else
cristy3b0097d2014-11-04 15:34:47 +000026933 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000026934fi
26935rm -f core conftest.err conftest.$ac_objext \
26936 conftest$ac_exeext conftest.$ac_ext
26937LIBS=$ac_check_lib_save_LIBS
26938fi
cristy3b0097d2014-11-04 15:34:47 +000026939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
26940$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
26941if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026942 passed=`expr $passed + 1`
26943else
26944 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026945fi
26946
cristy3b0097d2014-11-04 15:34:47 +000026947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
26948$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
26949 if test $passed -gt 0; then
26950 if test $failed -gt 0; then
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26952$as_echo "no -- some components failed test" >&6; }
26953 have_jemalloc='no (failed tests)'
26954 else
26955 JEMALLOC_LIBS='-ljemalloc'
26956 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000026957
cristy3b0097d2014-11-04 15:34:47 +000026958$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000026959
cristy3b0097d2014-11-04 15:34:47 +000026960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26961$as_echo "yes" >&6; }
26962 have_jemalloc='yes'
26963 fi
cristy12ac8192014-11-04 13:59:13 +000026964 else
cristy3b0097d2014-11-04 15:34:47 +000026965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26966$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000026967 fi
26968fi
cristy3b0097d2014-11-04 15:34:47 +000026969 if test "$have_jemalloc" = 'yes'; then
26970 HasJEMALLOC_TRUE=
26971 HasJEMALLOC_FALSE='#'
26972else
26973 HasJEMALLOC_TRUE='#'
26974 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000026975fi
26976
cristy3b0097d2014-11-04 15:34:47 +000026977
26978
cristy3ed852e2009-09-05 21:47:34 +000026979#
26980# Check for umem.
26981#
26982have_umem='no'
26983UMEM_LIBS=''
26984if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026986$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26988$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026989 failed=0
26990 passed=0
cristy8b350f62009-11-15 23:12:43 +000026991 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026992if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026993 passed=`expr $passed + 1`
26994else
26995 failed=`expr $failed + 1`
26996fi
26997
26998
cristy8b350f62009-11-15 23:12:43 +000026999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027000$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027001if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027002 $as_echo_n "(cached) " >&6
27003else
27004 ac_check_lib_save_LIBS=$LIBS
27005LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027007/* end confdefs.h. */
27008
27009/* Override any GCC internal prototype to avoid an error.
27010 Use char because int might match the return type of a GCC
27011 builtin and then its argument prototype would still apply. */
27012#ifdef __cplusplus
27013extern "C"
27014#endif
27015char umem_alloc ();
27016int
27017main ()
27018{
27019return umem_alloc ();
27020 ;
27021 return 0;
27022}
27023_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027024if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027025 ac_cv_lib_umem_umem_alloc=yes
27026else
cristy8b350f62009-11-15 23:12:43 +000027027 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027028fi
cristy8b350f62009-11-15 23:12:43 +000027029rm -f core conftest.err conftest.$ac_objext \
27030 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027031LIBS=$ac_check_lib_save_LIBS
27032fi
cristy8b350f62009-11-15 23:12:43 +000027033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027034$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027035if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027036 passed=`expr $passed + 1`
27037else
27038 failed=`expr $failed + 1`
27039fi
27040
cristy8b350f62009-11-15 23:12:43 +000027041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027042$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027043if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027044 $as_echo_n "(cached) " >&6
27045else
27046 ac_check_lib_save_LIBS=$LIBS
27047LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027049/* end confdefs.h. */
27050
27051/* Override any GCC internal prototype to avoid an error.
27052 Use char because int might match the return type of a GCC
27053 builtin and then its argument prototype would still apply. */
27054#ifdef __cplusplus
27055extern "C"
27056#endif
27057char umem_free ();
27058int
27059main ()
27060{
27061return umem_free ();
27062 ;
27063 return 0;
27064}
27065_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027066if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027067 ac_cv_lib_umem_umem_free=yes
27068else
cristy8b350f62009-11-15 23:12:43 +000027069 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027070fi
cristy8b350f62009-11-15 23:12:43 +000027071rm -f core conftest.err conftest.$ac_objext \
27072 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027073LIBS=$ac_check_lib_save_LIBS
27074fi
cristy8b350f62009-11-15 23:12:43 +000027075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027076$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027077if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027078 passed=`expr $passed + 1`
27079else
27080 failed=`expr $failed + 1`
27081fi
27082
cristy8b350f62009-11-15 23:12:43 +000027083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027084$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27085 if test $passed -gt 0; then
27086 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27088$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027089 have_umem='no (failed tests)'
27090 else
27091 UMEM_LIBS='-lumem'
27092 LIBS="$UMEM_LIBS $LIBS"
27093
cristy8b350f62009-11-15 23:12:43 +000027094$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027095
cristyad38abe2012-12-23 23:03:21 +000027096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27097$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027098 have_umem='yes'
27099 fi
27100 else
cristyad38abe2012-12-23 23:03:21 +000027101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27102$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027103 fi
27104fi
cristy73bd4a52010-10-05 11:24:23 +000027105 if test "$have_umem" = 'yes'; then
27106 HasUMEM_TRUE=
27107 HasUMEM_FALSE='#'
27108else
27109 HasUMEM_TRUE='#'
27110 HasUMEM_FALSE=
27111fi
27112
cristy3ed852e2009-09-05 21:47:34 +000027113
27114
27115#
27116# Add support for ccmalloc memory debugging library if requested
27117#
27118have_ccmalloc='no'
27119CCMALLOC_LIBS=''
27120if test "$enable_ccmalloc" = 'yes'; then
27121 # Extract the first word of "ccmalloc", so it can be a program name with args.
27122set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027124$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027125if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027126 $as_echo_n "(cached) " >&6
27127else
27128 case $CCMALLOCDelegate in
27129 [\\/]* | ?:[\\/]*)
27130 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27131 ;;
27132 *)
27133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27134for as_dir in $PATH
27135do
27136 IFS=$as_save_IFS
27137 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027138 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027140 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027142 break 2
27143 fi
27144done
cristy8b350f62009-11-15 23:12:43 +000027145 done
cristy3ed852e2009-09-05 21:47:34 +000027146IFS=$as_save_IFS
27147
27148 ;;
27149esac
27150fi
27151CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27152if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027154$as_echo "$CCMALLOCDelegate" >&6; }
27155else
cristy8b350f62009-11-15 23:12:43 +000027156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027157$as_echo "no" >&6; }
27158fi
27159
27160
27161 if test -n "$CCMALLOCDelegate"; then
27162 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27163 OLIBS="$LIBS"
27164 # Assume that gcc is used with ccmalloc.
27165 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027167$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027168if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027169 $as_echo_n "(cached) " >&6
27170else
27171 ac_check_lib_save_LIBS=$LIBS
27172LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027174/* end confdefs.h. */
27175
27176/* Override any GCC internal prototype to avoid an error.
27177 Use char because int might match the return type of a GCC
27178 builtin and then its argument prototype would still apply. */
27179#ifdef __cplusplus
27180extern "C"
27181#endif
27182char ccmalloc_malloc ();
27183int
27184main ()
27185{
27186return ccmalloc_malloc ();
27187 ;
27188 return 0;
27189}
27190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027191if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027192 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27193else
cristy8b350f62009-11-15 23:12:43 +000027194 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027195fi
cristy8b350f62009-11-15 23:12:43 +000027196rm -f core conftest.err conftest.$ac_objext \
27197 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027198LIBS=$ac_check_lib_save_LIBS
27199fi
cristy8b350f62009-11-15 23:12:43 +000027200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027201$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027202if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027203 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27204fi
27205
27206 if test -n "$CCMALLOC_LIBS"; then
27207 LIBS="$OLIBS"
27208 LIBS="$LIBS $CCMALLOC_LIBS"
27209 have_ccmalloc='yes'
27210 else
27211 LIBS="$OLIBS"
27212 fi
27213 fi
27214fi
27215
27216#
cristy944e51f2013-04-16 18:45:02 +000027217# Add support for 'huge pages' if requested
27218#
27219if test "x$enable_hugepages" != "xno"; then :
27220
27221
27222$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
27223
27224
27225fi
27226
27227#
cristy3ed852e2009-09-05 21:47:34 +000027228# Add support for efence memory debugging library if requested
27229#
27230if test "$enable_efence" = 'yes'; then
27231 EFENCE_LIBS='-lefence'
27232 LIBS="$EFENCE_LIBS $LIBS"
27233fi
27234
cristy3ed852e2009-09-05 21:47:34 +000027235
27236#
27237# Check for BZLIB
27238#
27239
27240
27241# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027242if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027243 withval=$with_bzlib; with_bzlib=$withval
27244else
27245 with_bzlib='yes'
27246fi
27247
27248
27249if test "$with_bzlib" != 'yes'; then
27250 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27251fi
27252
27253have_bzlib='no'
27254if test "$with_bzlib" != 'no'; then
27255 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000027256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27257$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027259$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27261$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027262 failed=0
27263 passed=0
27264 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027265 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027266if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027267 passed=`expr $passed + 1`
27268else
27269 failed=`expr $failed + 1`
27270fi
27271
27272
cristy8b350f62009-11-15 23:12:43 +000027273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027274$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027275if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027276 $as_echo_n "(cached) " >&6
27277else
27278 ac_check_lib_save_LIBS=$LIBS
27279LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027281/* end confdefs.h. */
27282
27283/* Override any GCC internal prototype to avoid an error.
27284 Use char because int might match the return type of a GCC
27285 builtin and then its argument prototype would still apply. */
27286#ifdef __cplusplus
27287extern "C"
27288#endif
27289char BZ2_bzDecompress ();
27290int
27291main ()
27292{
27293return BZ2_bzDecompress ();
27294 ;
27295 return 0;
27296}
27297_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027298if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027299 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27300else
cristy8b350f62009-11-15 23:12:43 +000027301 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027302fi
cristy8b350f62009-11-15 23:12:43 +000027303rm -f core conftest.err conftest.$ac_objext \
27304 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027305LIBS=$ac_check_lib_save_LIBS
27306fi
cristy8b350f62009-11-15 23:12:43 +000027307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027308$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027309if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027310 found_libbz=`expr $found_libbz + 1`
27311fi
27312
27313 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027315$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027316if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027317 $as_echo_n "(cached) " >&6
27318else
27319 ac_check_lib_save_LIBS=$LIBS
27320LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027322/* end confdefs.h. */
27323
27324/* Override any GCC internal prototype to avoid an error.
27325 Use char because int might match the return type of a GCC
27326 builtin and then its argument prototype would still apply. */
27327#ifdef __cplusplus
27328extern "C"
27329#endif
27330char _imp__BZ2_decompress ();
27331int
27332main ()
27333{
27334return _imp__BZ2_decompress ();
27335 ;
27336 return 0;
27337}
27338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027339if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027340 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27341else
cristy8b350f62009-11-15 23:12:43 +000027342 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027343fi
cristy8b350f62009-11-15 23:12:43 +000027344rm -f core conftest.err conftest.$ac_objext \
27345 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027346LIBS=$ac_check_lib_save_LIBS
27347fi
cristy8b350f62009-11-15 23:12:43 +000027348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027349$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027350if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027351 found_libbz=`expr $found_libbz + 1`
27352fi
27353
27354 fi
27355 if test $found_libbz -gt 0; then
27356 passed=`expr $passed + 1`
27357 else
27358 failed=`expr $failed + 1`
27359 fi
cristy8b350f62009-11-15 23:12:43 +000027360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027361$as_echo_n "checking if BZLIB package is complete... " >&6; }
27362 if test $passed -gt 0; then
27363 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27365$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027366 have_bzlib='no (failed tests)'
27367 else
27368 BZLIB_LIBS='-lbz2'
27369 LIBS="$BZLIB_LIBS $LIBS"
27370
cristy8b350f62009-11-15 23:12:43 +000027371$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027372
cristyad38abe2012-12-23 23:03:21 +000027373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27374$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027375 have_bzlib='yes'
27376 fi
27377 else
cristyad38abe2012-12-23 23:03:21 +000027378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27379$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027380 fi
27381fi
cristy73bd4a52010-10-05 11:24:23 +000027382 if test "$have_bzlib" = 'yes'; then
27383 BZLIB_DELEGATE_TRUE=
27384 BZLIB_DELEGATE_FALSE='#'
27385else
27386 BZLIB_DELEGATE_TRUE='#'
27387 BZLIB_DELEGATE_FALSE=
27388fi
27389
cristy3ed852e2009-09-05 21:47:34 +000027390
27391
27392#
27393# Find the X11 include and library directories.
27394#
27395IPC_LIBS=''
27396X11_LIBS=''
27397XEXT_LIBS=''
27398XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027400$as_echo_n "checking for X... " >&6; }
27401
27402
27403# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027404if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027405 withval=$with_x;
27406fi
27407
27408# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27409if test "x$with_x" = xno; then
27410 # The user explicitly disabled X.
27411 have_x=disabled
27412else
27413 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027414 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027415 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027416 $as_echo_n "(cached) " >&6
27417else
27418 # One or both of the vars are not set, and there is no cached value.
27419ac_x_includes=no ac_x_libraries=no
27420rm -f -r conftest.dir
27421if mkdir conftest.dir; then
27422 cd conftest.dir
27423 cat >Imakefile <<'_ACEOF'
27424incroot:
27425 @echo incroot='${INCROOT}'
27426usrlibdir:
27427 @echo usrlibdir='${USRLIBDIR}'
27428libdir:
27429 @echo libdir='${LIBDIR}'
27430_ACEOF
27431 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027432 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027433 for ac_var in incroot usrlibdir libdir; do
27434 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27435 done
27436 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27437 for ac_extension in a so sl dylib la dll; do
27438 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27439 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27440 ac_im_usrlibdir=$ac_im_libdir; break
27441 fi
27442 done
27443 # Screen out bogus values from the imake configuration. They are
27444 # bogus both because they are the default anyway, and because
27445 # using them would break gcc on systems where it needs fixed includes.
27446 case $ac_im_incroot in
27447 /usr/include) ac_x_includes= ;;
27448 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27449 esac
27450 case $ac_im_usrlibdir in
27451 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27452 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27453 esac
27454 fi
27455 cd ..
27456 rm -f -r conftest.dir
27457fi
27458
27459# Standard set of common directories for X headers.
27460# Check X11 before X11Rn because it is often a symlink to the current release.
27461ac_x_header_dirs='
27462/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027463/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027464/usr/X11R6/include
27465/usr/X11R5/include
27466/usr/X11R4/include
27467
27468/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027469/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027470/usr/include/X11R6
27471/usr/include/X11R5
27472/usr/include/X11R4
27473
27474/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027475/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027476/usr/local/X11R6/include
27477/usr/local/X11R5/include
27478/usr/local/X11R4/include
27479
27480/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027481/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027482/usr/local/include/X11R6
27483/usr/local/include/X11R5
27484/usr/local/include/X11R4
27485
27486/usr/X386/include
27487/usr/x386/include
27488/usr/XFree86/include/X11
27489
27490/usr/include
27491/usr/local/include
27492/usr/unsupported/include
27493/usr/athena/include
27494/usr/local/x11r5/include
27495/usr/lpp/Xamples/include
27496
27497/usr/openwin/include
27498/usr/openwin/share/include'
27499
27500if test "$ac_x_includes" = no; then
27501 # Guess where to find include files, by looking for Xlib.h.
27502 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027504/* end confdefs.h. */
27505#include <X11/Xlib.h>
27506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027507if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027508 # We can compile using X headers with no special include directory.
27509ac_x_includes=
27510else
cristyc7083c12009-10-14 03:16:55 +000027511 for ac_dir in $ac_x_header_dirs; do
27512 if test -r "$ac_dir/X11/Xlib.h"; then
27513 ac_x_includes=$ac_dir
27514 break
27515 fi
27516done
27517fi
cristyda16f162011-02-19 23:52:17 +000027518rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027519fi # $ac_x_includes = no
27520
27521if test "$ac_x_libraries" = no; then
27522 # Check for the libraries.
27523 # See if we find them without any special options.
27524 # Don't add to $LIBS permanently.
27525 ac_save_LIBS=$LIBS
27526 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027528/* end confdefs.h. */
27529#include <X11/Xlib.h>
27530int
27531main ()
27532{
27533XrmInitialize ()
27534 ;
27535 return 0;
27536}
27537_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027538if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027539 LIBS=$ac_save_LIBS
27540# We can link X programs with no special library path.
27541ac_x_libraries=
27542else
cristy8b350f62009-11-15 23:12:43 +000027543 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027544for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27545do
27546 # Don't even attempt the hair of trying to link an X program!
27547 for ac_extension in a so sl dylib la dll; do
27548 if test -r "$ac_dir/libX11.$ac_extension"; then
27549 ac_x_libraries=$ac_dir
27550 break 2
27551 fi
27552 done
27553done
27554fi
cristy8b350f62009-11-15 23:12:43 +000027555rm -f core conftest.err conftest.$ac_objext \
27556 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027557fi # $ac_x_libraries = no
27558
27559case $ac_x_includes,$ac_x_libraries in #(
27560 no,* | *,no | *\'*)
27561 # Didn't find X, or a directory has "'" in its name.
27562 ac_cv_have_x="have_x=no";; #(
27563 *)
27564 # Record where we found X for the cache.
27565 ac_cv_have_x="have_x=yes\
27566 ac_x_includes='$ac_x_includes'\
27567 ac_x_libraries='$ac_x_libraries'"
27568esac
27569fi
27570;; #(
27571 *) have_x=yes;;
27572 esac
27573 eval "$ac_cv_have_x"
27574fi # $with_x != no
27575
27576if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027578$as_echo "$have_x" >&6; }
27579 no_x=yes
27580else
27581 # If each of the values was on the command line, it overrides each guess.
27582 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27583 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27584 # Update the cache value to reflect the command line values.
27585 ac_cv_have_x="have_x=yes\
27586 ac_x_includes='$x_includes'\
27587 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027589$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27590fi
27591
cristy3ed852e2009-09-05 21:47:34 +000027592if test "$no_x" = yes; then
27593 # Not all programs may use this symbol, but it does not hurt to define it.
27594
cristy8b350f62009-11-15 23:12:43 +000027595$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027596
27597 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27598else
27599 if test -n "$x_includes"; then
27600 X_CFLAGS="$X_CFLAGS -I$x_includes"
27601 fi
27602
27603 # It would also be nice to do this for all -L options, not just this one.
27604 if test -n "$x_libraries"; then
27605 X_LIBS="$X_LIBS -L$x_libraries"
27606 # For Solaris; some versions of Sun CC require a space after -R and
27607 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027609$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27610 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27611 ac_xsave_c_werror_flag=$ac_c_werror_flag
27612 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027614/* end confdefs.h. */
27615
27616int
27617main ()
27618{
27619
27620 ;
27621 return 0;
27622}
27623_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027624if ac_fn_c_try_link "$LINENO"; then :
27625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027626$as_echo "no" >&6; }
27627 X_LIBS="$X_LIBS -R$x_libraries"
27628else
cristy8b350f62009-11-15 23:12:43 +000027629 LIBS="$ac_xsave_LIBS -R $x_libraries"
27630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027631/* end confdefs.h. */
27632
27633int
27634main ()
27635{
27636
27637 ;
27638 return 0;
27639}
27640_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027641if ac_fn_c_try_link "$LINENO"; then :
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027643$as_echo "yes" >&6; }
27644 X_LIBS="$X_LIBS -R $x_libraries"
27645else
cristy8b350f62009-11-15 23:12:43 +000027646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027647$as_echo "neither works" >&6; }
27648fi
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 +000027651fi
cristy8b350f62009-11-15 23:12:43 +000027652rm -f core conftest.err conftest.$ac_objext \
27653 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027654 ac_c_werror_flag=$ac_xsave_c_werror_flag
27655 LIBS=$ac_xsave_LIBS
27656 fi
27657
27658 # Check for system-dependent libraries X programs must link with.
27659 # Do this before checking for the system-independent R6 libraries
27660 # (-lICE), since we may need -lsocket or whatever for X linking.
27661
27662 if test "$ISC" = yes; then
27663 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27664 else
27665 # Martyn Johnson says this is needed for Ultrix, if the X
27666 # libraries were built with DECnet support. And Karl Berry says
27667 # the Alpha needs dnet_stub (dnet does not exist).
27668 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027670/* end confdefs.h. */
27671
27672/* Override any GCC internal prototype to avoid an error.
27673 Use char because int might match the return type of a GCC
27674 builtin and then its argument prototype would still apply. */
27675#ifdef __cplusplus
27676extern "C"
27677#endif
27678char XOpenDisplay ();
27679int
27680main ()
27681{
27682return XOpenDisplay ();
27683 ;
27684 return 0;
27685}
27686_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027687if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027688
cristy8b350f62009-11-15 23:12:43 +000027689else
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027691$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027692if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027693 $as_echo_n "(cached) " >&6
27694else
27695 ac_check_lib_save_LIBS=$LIBS
27696LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027698/* end confdefs.h. */
27699
27700/* Override any GCC internal prototype to avoid an error.
27701 Use char because int might match the return type of a GCC
27702 builtin and then its argument prototype would still apply. */
27703#ifdef __cplusplus
27704extern "C"
27705#endif
27706char dnet_ntoa ();
27707int
27708main ()
27709{
27710return dnet_ntoa ();
27711 ;
27712 return 0;
27713}
27714_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027715if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027716 ac_cv_lib_dnet_dnet_ntoa=yes
27717else
cristy8b350f62009-11-15 23:12:43 +000027718 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027719fi
cristy8b350f62009-11-15 23:12:43 +000027720rm -f core conftest.err conftest.$ac_objext \
27721 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027722LIBS=$ac_check_lib_save_LIBS
27723fi
cristy8b350f62009-11-15 23:12:43 +000027724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027725$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027726if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027727 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27728fi
27729
27730 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027732$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027733if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027734 $as_echo_n "(cached) " >&6
27735else
27736 ac_check_lib_save_LIBS=$LIBS
27737LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027739/* end confdefs.h. */
27740
27741/* Override any GCC internal prototype to avoid an error.
27742 Use char because int might match the return type of a GCC
27743 builtin and then its argument prototype would still apply. */
27744#ifdef __cplusplus
27745extern "C"
27746#endif
27747char dnet_ntoa ();
27748int
27749main ()
27750{
27751return dnet_ntoa ();
27752 ;
27753 return 0;
27754}
27755_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027756if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027757 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27758else
cristy8b350f62009-11-15 23:12:43 +000027759 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027760fi
cristy8b350f62009-11-15 23:12:43 +000027761rm -f core conftest.err conftest.$ac_objext \
27762 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027763LIBS=$ac_check_lib_save_LIBS
27764fi
cristy8b350f62009-11-15 23:12:43 +000027765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027766$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027767if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027768 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27769fi
27770
27771 fi
27772fi
cristy8b350f62009-11-15 23:12:43 +000027773rm -f core conftest.err conftest.$ac_objext \
27774 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027775 LIBS="$ac_xsave_LIBS"
27776
27777 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27778 # to get the SysV transport functions.
27779 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27780 # needs -lnsl.
27781 # The nsl library prevents programs from opening the X display
27782 # on Irix 5.2, according to T.E. Dickey.
27783 # The functions gethostbyname, getservbyname, and inet_addr are
27784 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027785 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027786if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027787
cristy3ed852e2009-09-05 21:47:34 +000027788fi
27789
cristy3ed852e2009-09-05 21:47:34 +000027790 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027792$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027793if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027794 $as_echo_n "(cached) " >&6
27795else
27796 ac_check_lib_save_LIBS=$LIBS
27797LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027799/* end confdefs.h. */
27800
27801/* Override any GCC internal prototype to avoid an error.
27802 Use char because int might match the return type of a GCC
27803 builtin and then its argument prototype would still apply. */
27804#ifdef __cplusplus
27805extern "C"
27806#endif
27807char gethostbyname ();
27808int
27809main ()
27810{
27811return gethostbyname ();
27812 ;
27813 return 0;
27814}
27815_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027816if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027817 ac_cv_lib_nsl_gethostbyname=yes
27818else
cristy8b350f62009-11-15 23:12:43 +000027819 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027820fi
cristy8b350f62009-11-15 23:12:43 +000027821rm -f core conftest.err conftest.$ac_objext \
27822 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027823LIBS=$ac_check_lib_save_LIBS
27824fi
cristy8b350f62009-11-15 23:12:43 +000027825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027826$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027827if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27829fi
27830
27831 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027833$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027834if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027835 $as_echo_n "(cached) " >&6
27836else
27837 ac_check_lib_save_LIBS=$LIBS
27838LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027840/* end confdefs.h. */
27841
27842/* Override any GCC internal prototype to avoid an error.
27843 Use char because int might match the return type of a GCC
27844 builtin and then its argument prototype would still apply. */
27845#ifdef __cplusplus
27846extern "C"
27847#endif
27848char gethostbyname ();
27849int
27850main ()
27851{
27852return gethostbyname ();
27853 ;
27854 return 0;
27855}
27856_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027857if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027858 ac_cv_lib_bsd_gethostbyname=yes
27859else
cristy8b350f62009-11-15 23:12:43 +000027860 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027861fi
cristy8b350f62009-11-15 23:12:43 +000027862rm -f core conftest.err conftest.$ac_objext \
27863 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027864LIBS=$ac_check_lib_save_LIBS
27865fi
cristy8b350f62009-11-15 23:12:43 +000027866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027867$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027868if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027869 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27870fi
27871
27872 fi
27873 fi
27874
27875 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27876 # socket/setsockopt and other routines are undefined under SCO ODT
27877 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27878 # on later versions), says Simon Leinen: it contains gethostby*
27879 # variants that don't use the name server (or something). -lsocket
27880 # must be given before -lnsl if both are needed. We assume that
27881 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027882 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027883if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027884
cristy3ed852e2009-09-05 21:47:34 +000027885fi
27886
cristy3ed852e2009-09-05 21:47:34 +000027887 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027889$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027890if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027891 $as_echo_n "(cached) " >&6
27892else
27893 ac_check_lib_save_LIBS=$LIBS
27894LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027896/* end confdefs.h. */
27897
27898/* Override any GCC internal prototype to avoid an error.
27899 Use char because int might match the return type of a GCC
27900 builtin and then its argument prototype would still apply. */
27901#ifdef __cplusplus
27902extern "C"
27903#endif
27904char connect ();
27905int
27906main ()
27907{
27908return connect ();
27909 ;
27910 return 0;
27911}
27912_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027913if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027914 ac_cv_lib_socket_connect=yes
27915else
cristy8b350f62009-11-15 23:12:43 +000027916 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027917fi
cristy8b350f62009-11-15 23:12:43 +000027918rm -f core conftest.err conftest.$ac_objext \
27919 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027920LIBS=$ac_check_lib_save_LIBS
27921fi
cristy8b350f62009-11-15 23:12:43 +000027922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027923$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027924if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027925 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27926fi
27927
27928 fi
27929
27930 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027931 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027932if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027933
cristy3ed852e2009-09-05 21:47:34 +000027934fi
27935
cristy3ed852e2009-09-05 21:47:34 +000027936 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027938$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027939if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027940 $as_echo_n "(cached) " >&6
27941else
27942 ac_check_lib_save_LIBS=$LIBS
27943LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027945/* end confdefs.h. */
27946
27947/* Override any GCC internal prototype to avoid an error.
27948 Use char because int might match the return type of a GCC
27949 builtin and then its argument prototype would still apply. */
27950#ifdef __cplusplus
27951extern "C"
27952#endif
27953char remove ();
27954int
27955main ()
27956{
27957return remove ();
27958 ;
27959 return 0;
27960}
27961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027962if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027963 ac_cv_lib_posix_remove=yes
27964else
cristy8b350f62009-11-15 23:12:43 +000027965 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027966fi
cristy8b350f62009-11-15 23:12:43 +000027967rm -f core conftest.err conftest.$ac_objext \
27968 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027969LIBS=$ac_check_lib_save_LIBS
27970fi
cristy8b350f62009-11-15 23:12:43 +000027971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027972$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027973if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027974 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27975fi
27976
27977 fi
27978
27979 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027980 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027981if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027982
cristy3ed852e2009-09-05 21:47:34 +000027983fi
27984
cristy3ed852e2009-09-05 21:47:34 +000027985 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027987$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027988if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027989 $as_echo_n "(cached) " >&6
27990else
27991 ac_check_lib_save_LIBS=$LIBS
27992LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027994/* end confdefs.h. */
27995
27996/* Override any GCC internal prototype to avoid an error.
27997 Use char because int might match the return type of a GCC
27998 builtin and then its argument prototype would still apply. */
27999#ifdef __cplusplus
28000extern "C"
28001#endif
28002char shmat ();
28003int
28004main ()
28005{
28006return shmat ();
28007 ;
28008 return 0;
28009}
28010_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028011if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028012 ac_cv_lib_ipc_shmat=yes
28013else
cristy8b350f62009-11-15 23:12:43 +000028014 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028015fi
cristy8b350f62009-11-15 23:12:43 +000028016rm -f core conftest.err conftest.$ac_objext \
28017 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028018LIBS=$ac_check_lib_save_LIBS
28019fi
cristy8b350f62009-11-15 23:12:43 +000028020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028021$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028022if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028023 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28024fi
28025
28026 fi
28027 fi
28028
28029 # Check for libraries that X11R6 Xt/Xaw programs need.
28030 ac_save_LDFLAGS=$LDFLAGS
28031 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28032 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28033 # check for ICE first), but we must link in the order -lSM -lICE or
28034 # we get undefined symbols. So assume we have SM if we have ICE.
28035 # These have to be linked with before -lX11, unlike the other
28036 # libraries we check for below, so use a different variable.
28037 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028039$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028040if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028041 $as_echo_n "(cached) " >&6
28042else
28043 ac_check_lib_save_LIBS=$LIBS
28044LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028046/* end confdefs.h. */
28047
28048/* Override any GCC internal prototype to avoid an error.
28049 Use char because int might match the return type of a GCC
28050 builtin and then its argument prototype would still apply. */
28051#ifdef __cplusplus
28052extern "C"
28053#endif
28054char IceConnectionNumber ();
28055int
28056main ()
28057{
28058return IceConnectionNumber ();
28059 ;
28060 return 0;
28061}
28062_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028063if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028064 ac_cv_lib_ICE_IceConnectionNumber=yes
28065else
cristy8b350f62009-11-15 23:12:43 +000028066 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028067fi
cristy8b350f62009-11-15 23:12:43 +000028068rm -f core conftest.err conftest.$ac_objext \
28069 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028070LIBS=$ac_check_lib_save_LIBS
28071fi
cristy8b350f62009-11-15 23:12:43 +000028072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028073$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028074if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028075 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28076fi
28077
28078 LDFLAGS=$ac_save_LDFLAGS
28079
28080fi
28081
28082if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000028083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28084$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028086$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28088$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028089 LDFLAGS="$LDFLAGS $X_LIBS"
28090 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28091 LIBS="$X11_LIBS $LIBS"
28092 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28093
28094
cristy8b350f62009-11-15 23:12:43 +000028095$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028096
28097 #
28098 # Check for X11 shared memory extension
28099 #
28100 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028101 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028102if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028103 have_shmctl='yes'
28104fi
28105
28106 if test "$have_shmctl" != 'yes'; then
28107 PERSIST_LIBS=$LIBS
28108 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028110/* end confdefs.h. */
28111
28112/* Override any GCC internal prototype to avoid an error.
28113 Use char because int might match the return type of a GCC
28114 builtin and then its argument prototype would still apply. */
28115#ifdef __cplusplus
28116extern "C"
28117#endif
28118char shmctl ();
28119int
28120main ()
28121{
28122return shmctl ();
28123 ;
28124 return 0;
28125}
28126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028127if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028128 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028129fi
cristy8b350f62009-11-15 23:12:43 +000028130rm -f core conftest.err conftest.$ac_objext \
28131 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028132 LIBS=$PERSIST_LIBS
28133 fi
28134
28135 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028137$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028138if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028139 $as_echo_n "(cached) " >&6
28140else
28141 ac_check_lib_save_LIBS=$LIBS
28142LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028144/* end confdefs.h. */
28145
28146/* Override any GCC internal prototype to avoid an error.
28147 Use char because int might match the return type of a GCC
28148 builtin and then its argument prototype would still apply. */
28149#ifdef __cplusplus
28150extern "C"
28151#endif
28152char XShmAttach ();
28153int
28154main ()
28155{
28156return XShmAttach ();
28157 ;
28158 return 0;
28159}
28160_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028161if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028162 ac_cv_lib_Xext_XShmAttach=yes
28163else
cristy8b350f62009-11-15 23:12:43 +000028164 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028165fi
cristy8b350f62009-11-15 23:12:43 +000028166rm -f core conftest.err conftest.$ac_objext \
28167 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028168LIBS=$ac_check_lib_save_LIBS
28169fi
cristy8b350f62009-11-15 23:12:43 +000028170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028171$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028172if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028173 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028174$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028175
28176fi
28177
28178 fi
28179
28180 #
28181 # Check for X11 shape extension
28182 #
cristy8b350f62009-11-15 23:12:43 +000028183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028184$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028185if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028186 $as_echo_n "(cached) " >&6
28187else
28188 ac_check_lib_save_LIBS=$LIBS
28189LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028191/* end confdefs.h. */
28192
28193/* Override any GCC internal prototype to avoid an error.
28194 Use char because int might match the return type of a GCC
28195 builtin and then its argument prototype would still apply. */
28196#ifdef __cplusplus
28197extern "C"
28198#endif
28199char XShapeCombineMask ();
28200int
28201main ()
28202{
28203return XShapeCombineMask ();
28204 ;
28205 return 0;
28206}
28207_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028208if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028209 ac_cv_lib_Xext_XShapeCombineMask=yes
28210else
cristy8b350f62009-11-15 23:12:43 +000028211 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028212fi
cristy8b350f62009-11-15 23:12:43 +000028213rm -f core conftest.err conftest.$ac_objext \
28214 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028215LIBS=$ac_check_lib_save_LIBS
28216fi
cristy8b350f62009-11-15 23:12:43 +000028217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028218$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028219if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028220 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028221$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028222
28223fi
28224
cristy8b350f62009-11-15 23:12:43 +000028225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028226$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028227if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028228 $as_echo_n "(cached) " >&6
28229else
28230 ac_check_lib_save_LIBS=$LIBS
28231LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028233/* end confdefs.h. */
28234
28235/* Override any GCC internal prototype to avoid an error.
28236 Use char because int might match the return type of a GCC
28237 builtin and then its argument prototype would still apply. */
28238#ifdef __cplusplus
28239extern "C"
28240#endif
28241char XtSetEventDispatcher ();
28242int
28243main ()
28244{
28245return XtSetEventDispatcher ();
28246 ;
28247 return 0;
28248}
28249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028250if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028251 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28252else
cristy8b350f62009-11-15 23:12:43 +000028253 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028254fi
cristy8b350f62009-11-15 23:12:43 +000028255rm -f core conftest.err conftest.$ac_objext \
28256 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028257LIBS=$ac_check_lib_save_LIBS
28258fi
cristy8b350f62009-11-15 23:12:43 +000028259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028260$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028261if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028262 XT_LIBS='-lXt'
28263fi
28264
28265 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28266fi
28267if test "$no_x" != 'yes'; then
28268 have_x='yes'
28269else
28270 have_x='no'
28271fi
cristy73bd4a52010-10-05 11:24:23 +000028272 if test "$have_x" = 'yes'; then
28273 X11_DELEGATE_TRUE=
28274 X11_DELEGATE_FALSE='#'
28275else
28276 X11_DELEGATE_TRUE='#'
28277 X11_DELEGATE_FALSE=
28278fi
28279
cristy3ed852e2009-09-05 21:47:34 +000028280
28281
28282
28283
28284#
28285# Check for ZLIB
28286#
28287
28288# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028289if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028290 withval=$with_zlib; with_zlib=$withval
28291else
28292 with_zlib='yes'
28293fi
28294
28295
28296if test "$with_zlib" != 'yes'; then
28297 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28298fi
28299
28300have_zlib='no'
28301ZLIB_LIBS=''
28302if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28304$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028306$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28308$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028309 ZLIB_LIBS=''
28310 failed=0
28311 passed=0
cristy8b350f62009-11-15 23:12:43 +000028312 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028313if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028314 passed=`expr $passed + 1`
28315else
28316 failed=`expr $failed + 1`
28317fi
28318
28319
cristy8b350f62009-11-15 23:12:43 +000028320 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028321if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028322 passed=`expr $passed + 1`
28323else
28324 failed=`expr $failed + 1`
28325fi
28326
28327
cristy8b350f62009-11-15 23:12:43 +000028328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028329$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028330if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028331 $as_echo_n "(cached) " >&6
28332else
28333 ac_check_lib_save_LIBS=$LIBS
28334LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028336/* end confdefs.h. */
28337
28338/* Override any GCC internal prototype to avoid an error.
28339 Use char because int might match the return type of a GCC
28340 builtin and then its argument prototype would still apply. */
28341#ifdef __cplusplus
28342extern "C"
28343#endif
28344char compress ();
28345int
28346main ()
28347{
28348return compress ();
28349 ;
28350 return 0;
28351}
28352_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028353if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028354 ac_cv_lib_z_compress=yes
28355else
cristy8b350f62009-11-15 23:12:43 +000028356 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028357fi
cristy8b350f62009-11-15 23:12:43 +000028358rm -f core conftest.err conftest.$ac_objext \
28359 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028360LIBS=$ac_check_lib_save_LIBS
28361fi
cristy8b350f62009-11-15 23:12:43 +000028362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028363$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028364if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028365 passed=`expr $passed + 1`
28366else
28367 failed=`expr $failed + 1`
28368fi
28369
cristy8b350f62009-11-15 23:12:43 +000028370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028371$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028372if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028373 $as_echo_n "(cached) " >&6
28374else
28375 ac_check_lib_save_LIBS=$LIBS
28376LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028378/* end confdefs.h. */
28379
28380/* Override any GCC internal prototype to avoid an error.
28381 Use char because int might match the return type of a GCC
28382 builtin and then its argument prototype would still apply. */
28383#ifdef __cplusplus
28384extern "C"
28385#endif
28386char uncompress ();
28387int
28388main ()
28389{
28390return uncompress ();
28391 ;
28392 return 0;
28393}
28394_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028395if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028396 ac_cv_lib_z_uncompress=yes
28397else
cristy8b350f62009-11-15 23:12:43 +000028398 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028399fi
cristy8b350f62009-11-15 23:12:43 +000028400rm -f core conftest.err conftest.$ac_objext \
28401 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028402LIBS=$ac_check_lib_save_LIBS
28403fi
cristy8b350f62009-11-15 23:12:43 +000028404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028405$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028406if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028407 passed=`expr $passed + 1`
28408else
28409 failed=`expr $failed + 1`
28410fi
28411
cristy8b350f62009-11-15 23:12:43 +000028412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028413$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028414if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028415 $as_echo_n "(cached) " >&6
28416else
28417 ac_check_lib_save_LIBS=$LIBS
28418LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028420/* end confdefs.h. */
28421
28422/* Override any GCC internal prototype to avoid an error.
28423 Use char because int might match the return type of a GCC
28424 builtin and then its argument prototype would still apply. */
28425#ifdef __cplusplus
28426extern "C"
28427#endif
28428char deflate ();
28429int
28430main ()
28431{
28432return deflate ();
28433 ;
28434 return 0;
28435}
28436_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028437if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028438 ac_cv_lib_z_deflate=yes
28439else
cristy8b350f62009-11-15 23:12:43 +000028440 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028441fi
cristy8b350f62009-11-15 23:12:43 +000028442rm -f core conftest.err conftest.$ac_objext \
28443 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028444LIBS=$ac_check_lib_save_LIBS
28445fi
cristy8b350f62009-11-15 23:12:43 +000028446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028447$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028448if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028449 passed=`expr $passed + 1`
28450else
28451 failed=`expr $failed + 1`
28452fi
28453
cristy8b350f62009-11-15 23:12:43 +000028454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028455$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028456if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028457 $as_echo_n "(cached) " >&6
28458else
28459 ac_check_lib_save_LIBS=$LIBS
28460LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028462/* end confdefs.h. */
28463
28464/* Override any GCC internal prototype to avoid an error.
28465 Use char because int might match the return type of a GCC
28466 builtin and then its argument prototype would still apply. */
28467#ifdef __cplusplus
28468extern "C"
28469#endif
28470char inflate ();
28471int
28472main ()
28473{
28474return inflate ();
28475 ;
28476 return 0;
28477}
28478_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028479if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028480 ac_cv_lib_z_inflate=yes
28481else
cristy8b350f62009-11-15 23:12:43 +000028482 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028483fi
cristy8b350f62009-11-15 23:12:43 +000028484rm -f core conftest.err conftest.$ac_objext \
28485 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028486LIBS=$ac_check_lib_save_LIBS
28487fi
cristy8b350f62009-11-15 23:12:43 +000028488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028489$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028490if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028491 passed=`expr $passed + 1`
28492else
28493 failed=`expr $failed + 1`
28494fi
28495
cristy8b350f62009-11-15 23:12:43 +000028496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028497$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028498if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028499 $as_echo_n "(cached) " >&6
28500else
28501 ac_check_lib_save_LIBS=$LIBS
28502LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028504/* end confdefs.h. */
28505
28506/* Override any GCC internal prototype to avoid an error.
28507 Use char because int might match the return type of a GCC
28508 builtin and then its argument prototype would still apply. */
28509#ifdef __cplusplus
28510extern "C"
28511#endif
28512char gzseek ();
28513int
28514main ()
28515{
28516return gzseek ();
28517 ;
28518 return 0;
28519}
28520_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028521if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028522 ac_cv_lib_z_gzseek=yes
28523else
cristy8b350f62009-11-15 23:12:43 +000028524 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028525fi
cristy8b350f62009-11-15 23:12:43 +000028526rm -f core conftest.err conftest.$ac_objext \
28527 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028528LIBS=$ac_check_lib_save_LIBS
28529fi
cristy8b350f62009-11-15 23:12:43 +000028530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028531$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028532if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028533 passed=`expr $passed + 1`
28534else
28535 failed=`expr $failed + 1`
28536fi
28537
cristy8b350f62009-11-15 23:12:43 +000028538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028539$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028540if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028541 $as_echo_n "(cached) " >&6
28542else
28543 ac_check_lib_save_LIBS=$LIBS
28544LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028546/* end confdefs.h. */
28547
28548/* Override any GCC internal prototype to avoid an error.
28549 Use char because int might match the return type of a GCC
28550 builtin and then its argument prototype would still apply. */
28551#ifdef __cplusplus
28552extern "C"
28553#endif
28554char gztell ();
28555int
28556main ()
28557{
28558return gztell ();
28559 ;
28560 return 0;
28561}
28562_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028563if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028564 ac_cv_lib_z_gztell=yes
28565else
cristy8b350f62009-11-15 23:12:43 +000028566 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028567fi
cristy8b350f62009-11-15 23:12:43 +000028568rm -f core conftest.err conftest.$ac_objext \
28569 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028570LIBS=$ac_check_lib_save_LIBS
28571fi
cristy8b350f62009-11-15 23:12:43 +000028572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028573$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028574if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028575 passed=`expr $passed + 1`
28576else
28577 failed=`expr $failed + 1`
28578fi
28579
cristy8b350f62009-11-15 23:12:43 +000028580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028581$as_echo_n "checking if ZLIB package is complete... " >&6; }
28582 if test $passed -gt 0; then
28583 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28585$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028586 have_zlib='no (failed tests)'
28587 else
28588 ZLIB_LIBS='-lz'
28589 LIBS="$ZLIB_LIBS $LIBS"
28590
cristy8b350f62009-11-15 23:12:43 +000028591$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028592
cristyad38abe2012-12-23 23:03:21 +000028593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28594$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028595 have_zlib='yes'
28596 fi
28597 else
cristyad38abe2012-12-23 23:03:21 +000028598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28599$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028600 fi
28601fi
cristy73bd4a52010-10-05 11:24:23 +000028602 if test "$have_zlib" = 'yes'; then
28603 ZLIB_DELEGATE_TRUE=
28604 ZLIB_DELEGATE_FALSE='#'
28605else
28606 ZLIB_DELEGATE_TRUE='#'
28607 ZLIB_DELEGATE_FALSE=
28608fi
28609
cristy3ed852e2009-09-05 21:47:34 +000028610
28611
cristy5eef09f2012-10-16 12:08:28 +000028612# whether modules are built or not.
28613with_ltdl='yes'
28614have_ltdl='no'
28615LTDL_LIBS=''
28616if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28618$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28620$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28622$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028623 failed=0
28624 passed=0
28625 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28626if test "x$ac_cv_header_ltdl_h" = xyes; then :
28627 passed=`expr $passed + 1`
28628else
28629 failed=`expr $failed + 1`
28630fi
28631
28632
28633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28634$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28635if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28636 $as_echo_n "(cached) " >&6
28637else
28638 ac_check_lib_save_LIBS=$LIBS
28639LIBS="-lltdl $LIBS"
28640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28641/* end confdefs.h. */
28642
28643/* Override any GCC internal prototype to avoid an error.
28644 Use char because int might match the return type of a GCC
28645 builtin and then its argument prototype would still apply. */
28646#ifdef __cplusplus
28647extern "C"
28648#endif
28649char lt_dlinit ();
28650int
28651main ()
28652{
28653return lt_dlinit ();
28654 ;
28655 return 0;
28656}
28657_ACEOF
28658if ac_fn_c_try_link "$LINENO"; then :
28659 ac_cv_lib_ltdl_lt_dlinit=yes
28660else
28661 ac_cv_lib_ltdl_lt_dlinit=no
28662fi
28663rm -f core conftest.err conftest.$ac_objext \
28664 conftest$ac_exeext conftest.$ac_ext
28665LIBS=$ac_check_lib_save_LIBS
28666fi
28667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28668$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28669if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28670 passed=`expr $passed + 1`
28671else
28672 failed=`expr $failed + 1`
28673fi
28674
28675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28676$as_echo_n "checking if libltdl package is complete... " >&6; }
28677 if test $passed -gt 0 ; then
28678 if test $failed -gt 0 ; then
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28680$as_echo "no -- some components failed test" >&6; }
28681 have_ltdl='no (failed tests)'
28682 else
28683 LTDL_LIBS='-lltdl'
28684 LIBS="$LTDL_LIBS $LIBS"
28685
28686$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28687
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28689$as_echo "yes" >&6; }
28690 have_ltdl='yes'
28691 fi
28692 else
28693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28694$as_echo "no" >&6; }
28695 fi
cristyaf4cbf32012-10-16 23:47:41 +000028696 if test "$have_ltdl" != 'yes' ; then
28697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28699as_fn_error 1 "libltdl is required for modules build
28700See \`config.log' for more details" "$LINENO" 5; }
28701 fi
cristy5eef09f2012-10-16 12:08:28 +000028702fi
28703 if test "$have_ltdl" != 'no'; then
28704 WITH_LTDL_TRUE=
28705 WITH_LTDL_FALSE='#'
28706else
28707 WITH_LTDL_TRUE='#'
28708 WITH_LTDL_FALSE=
28709fi
28710
28711
cristy3ed852e2009-09-05 21:47:34 +000028712#
28713# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28714#
28715LIB_DL=''
28716if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028718$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028719if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028720 $as_echo_n "(cached) " >&6
28721else
28722 ac_check_lib_save_LIBS=$LIBS
28723LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028725/* end confdefs.h. */
28726
28727/* Override any GCC internal prototype to avoid an error.
28728 Use char because int might match the return type of a GCC
28729 builtin and then its argument prototype would still apply. */
28730#ifdef __cplusplus
28731extern "C"
28732#endif
28733char dlopen ();
28734int
28735main ()
28736{
28737return dlopen ();
28738 ;
28739 return 0;
28740}
28741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028742if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028743 ac_cv_lib_dl_dlopen=yes
28744else
cristy8b350f62009-11-15 23:12:43 +000028745 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028746fi
cristy8b350f62009-11-15 23:12:43 +000028747rm -f core conftest.err conftest.$ac_objext \
28748 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028749LIBS=$ac_check_lib_save_LIBS
28750fi
cristy8b350f62009-11-15 23:12:43 +000028751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028752$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028753if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028754 LIB_DL='-ldl'
28755fi
28756
28757 LIBS="$LIB_DL $LIBS"
28758fi
28759
28760
28761
28762#
cristy5a3dc992014-12-05 19:50:04 +000028763# Set Apple font directory.
28764#
28765
28766# Check whether --with-apple-font-dir was given.
28767if test "${with_apple_font_dir+set}" = set; then :
28768 withval=$with_apple_font_dir; with_apple_font_dir=$withval
28769else
28770 with_apple_font_dir='default'
28771fi
28772
28773
28774if test "$with_apple_font_dir" != 'default'; then
28775 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
28776fi
28777
28778
28779#
cristy3ed852e2009-09-05 21:47:34 +000028780# Check for Autotrace delegate library.
28781#
28782
28783# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028784if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028785 withval=$with_autotrace; with_autotrace=$withval
28786else
28787 with_autotrace='no'
28788fi
28789
28790
28791if test "$with_autotrace" != 'yes'; then
28792 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28793fi
28794
28795have_autotrace='no'
28796AUTOTRACE_CFLAGS=""
28797AUTOTRACE_LIBS=""
28798AUTOTRACE_PKG=""
28799if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28801$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028802
28803pkg_failed=no
28804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28805$as_echo_n "checking for AUTOTRACE... " >&6; }
28806
28807if test -n "$AUTOTRACE_CFLAGS"; then
28808 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28809 elif test -n "$PKG_CONFIG"; then
28810 if test -n "$PKG_CONFIG" && \
28811 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28812 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28813 ac_status=$?
28814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28815 test $ac_status = 0; }; then
28816 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28817else
28818 pkg_failed=yes
28819fi
28820 else
28821 pkg_failed=untried
28822fi
28823if test -n "$AUTOTRACE_LIBS"; then
28824 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28825 elif test -n "$PKG_CONFIG"; then
28826 if test -n "$PKG_CONFIG" && \
28827 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28828 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28829 ac_status=$?
28830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28831 test $ac_status = 0; }; then
28832 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28833else
28834 pkg_failed=yes
28835fi
28836 else
28837 pkg_failed=untried
28838fi
28839
28840
28841
28842if test $pkg_failed = yes; then
28843
28844if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28845 _pkg_short_errors_supported=yes
28846else
28847 _pkg_short_errors_supported=no
28848fi
28849 if test $_pkg_short_errors_supported = yes; then
28850 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28851 else
28852 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28853 fi
28854 # Put the nasty error message in config.log where it belongs
28855 echo "$AUTOTRACE_PKG_ERRORS" >&5
28856
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28858$as_echo "no" >&6; }
28859 have_autotrace=no
28860elif test $pkg_failed = untried; then
28861 have_autotrace=no
28862else
28863 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28864 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28866$as_echo "yes" >&6; }
28867 have_autotrace=yes
28868fi
cristyad38abe2012-12-23 23:03:21 +000028869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28870$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028871fi
28872
28873if test "$have_autotrace" = 'yes'; then
28874 failed=0
28875
cristy8b350f62009-11-15 23:12:43 +000028876$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028877
cristyc6722092012-10-14 00:19:31 +000028878 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028879 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028880 fi
28881fi
28882
cristy73bd4a52010-10-05 11:24:23 +000028883 if test "$have_autotrace" = 'yes'; then
28884 AUTOTRACE_DELEGATE_TRUE=
28885 AUTOTRACE_DELEGATE_FALSE='#'
28886else
28887 AUTOTRACE_DELEGATE_TRUE='#'
28888 AUTOTRACE_DELEGATE_FALSE=
28889fi
28890
cristy3ed852e2009-09-05 21:47:34 +000028891
28892
28893
28894
28895#
28896# Check for Display Postscript delegate library.
28897#
28898
28899# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028900if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028901 withval=$with_dps; with_dps=$withval
28902else
28903 with_dps='yes'
28904fi
28905
28906
28907if test "$with_dps" != 'yes'; then
28908 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28909fi
28910
28911have_dps='no'
28912DPS_LIBS=''
28913if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28915$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028917$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28919$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028920 failed=0
28921 passed=0
28922 PERSIST_CPPFLAGS="$CPPFLAGS"
28923 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028924 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 +000028925if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028926 passed=`expr $passed + 1`
28927else
28928 failed=`expr $failed + 1`
28929fi
28930
28931
28932 # DPS issues:
28933 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28934 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28935 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28936 # ImageMagick itself doesn't use -lXt.
28937 have_libdps='no'
28938 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028940$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028941if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028942 $as_echo_n "(cached) " >&6
28943else
28944 ac_check_lib_save_LIBS=$LIBS
28945LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028947/* end confdefs.h. */
28948
28949/* Override any GCC internal prototype to avoid an error.
28950 Use char because int might match the return type of a GCC
28951 builtin and then its argument prototype would still apply. */
28952#ifdef __cplusplus
28953extern "C"
28954#endif
28955char DPSInitialize ();
28956int
28957main ()
28958{
28959return DPSInitialize ();
28960 ;
28961 return 0;
28962}
28963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028964if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028965 ac_cv_lib_dps_DPSInitialize=yes
28966else
cristy8b350f62009-11-15 23:12:43 +000028967 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028968fi
cristy8b350f62009-11-15 23:12:43 +000028969rm -f core conftest.err conftest.$ac_objext \
28970 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028971LIBS=$ac_check_lib_save_LIBS
28972fi
cristy8b350f62009-11-15 23:12:43 +000028973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028974$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028975if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028976 have_libdps='yes'
28977else
28978 have_libdps='no'
28979fi
28980
28981 if test "$have_libdps" != 'yes'; then
28982 # Unset cache variable so we can try again.
28983 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028985$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028986if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028987 $as_echo_n "(cached) " >&6
28988else
28989 ac_check_lib_save_LIBS=$LIBS
28990LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028992/* end confdefs.h. */
28993
28994/* Override any GCC internal prototype to avoid an error.
28995 Use char because int might match the return type of a GCC
28996 builtin and then its argument prototype would still apply. */
28997#ifdef __cplusplus
28998extern "C"
28999#endif
29000char DPSInitialize ();
29001int
29002main ()
29003{
29004return DPSInitialize ();
29005 ;
29006 return 0;
29007}
29008_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029009if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029010 ac_cv_lib_dps_DPSInitialize=yes
29011else
cristy8b350f62009-11-15 23:12:43 +000029012 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000029013fi
cristy8b350f62009-11-15 23:12:43 +000029014rm -f core conftest.err conftest.$ac_objext \
29015 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029016LIBS=$ac_check_lib_save_LIBS
29017fi
cristy8b350f62009-11-15 23:12:43 +000029018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000029019$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000029020if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029021 have_libdps='yes'
29022else
29023 have_libdps='no'
29024fi
29025
29026 if test "$have_libdps" = 'yes'; then
29027 LIBDPS_XT='-lXt'
29028 fi
29029 fi
29030 if test "$have_libdps" = 'yes'; then
29031 passed=`expr $passed + 1`
29032 else
29033 failed=`expr $failed + 1`
29034 fi
cristy8b350f62009-11-15 23:12:43 +000029035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000029036$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029037if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029038 $as_echo_n "(cached) " >&6
29039else
29040 ac_check_lib_save_LIBS=$LIBS
29041LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029043/* end confdefs.h. */
29044
29045/* Override any GCC internal prototype to avoid an error.
29046 Use char because int might match the return type of a GCC
29047 builtin and then its argument prototype would still apply. */
29048#ifdef __cplusplus
29049extern "C"
29050#endif
29051char XDPSPixelsPerPoint ();
29052int
29053main ()
29054{
29055return XDPSPixelsPerPoint ();
29056 ;
29057 return 0;
29058}
29059_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029060if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029061 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
29062else
cristy8b350f62009-11-15 23:12:43 +000029063 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000029064fi
cristy8b350f62009-11-15 23:12:43 +000029065rm -f core conftest.err conftest.$ac_objext \
29066 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029067LIBS=$ac_check_lib_save_LIBS
29068fi
cristy8b350f62009-11-15 23:12:43 +000029069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000029070$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000029071if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029072 passed=`expr $passed + 1`
29073else
29074 failed=`expr $failed + 1`
29075fi
29076
cristy8b350f62009-11-15 23:12:43 +000029077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029078$as_echo_n "checking if DPS package is complete... " >&6; }
29079 if test $passed -gt 0; then
29080 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29082$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029083 have_dps='no (failed tests)'
29084 CPPFLAGS="$PERSIST_CPPFLAGS"
29085 else
29086 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
29087 LIBS="$DPS_LIBS $LIBS"
29088
cristy8b350f62009-11-15 23:12:43 +000029089$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029090
cristyad38abe2012-12-23 23:03:21 +000029091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29092$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029093 have_dps='yes'
29094 fi
29095 else
cristyad38abe2012-12-23 23:03:21 +000029096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29097$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029098 CPPFLAGS=$PERSIST_CPPFLAGS
29099 fi
29100fi
cristy73bd4a52010-10-05 11:24:23 +000029101 if test "$have_dps" = 'yes'; then
29102 DPS_DELEGATE_TRUE=
29103 DPS_DELEGATE_FALSE='#'
29104else
29105 DPS_DELEGATE_TRUE='#'
29106 DPS_DELEGATE_FALSE=
29107fi
29108
cristy3ed852e2009-09-05 21:47:34 +000029109
29110
29111
29112#
cristy430a7312010-01-21 20:44:04 +000029113# Set DejaVu font directory.
29114#
29115
29116# Check whether --with-dejavu-font-dir was given.
29117if test "${with_dejavu_font_dir+set}" = set; then :
29118 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29119else
29120 with_dejavu_font_dir='default'
29121fi
29122
29123
29124if test "$with_dejavu_font_dir" != 'default'; then
29125 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29126fi
29127
29128
29129#
cristy3ed852e2009-09-05 21:47:34 +000029130# Check for FFTW delegate library.
29131#
29132
29133# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029134if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029135 withval=$with_fftw; with_fftw=$withval
29136else
29137 with_fftw='yes'
29138fi
29139
29140
29141if test "$with_fftw" != 'yes'; then
29142 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29143fi
29144
cristy81beccd2011-10-03 18:17:24 +000029145have_fftw='no'
29146FFTW_LIBS=''
29147if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29149$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29151$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29153$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029154 failed=0
29155 passed=0
29156 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29157if test "x$ac_cv_header_fftw3_h" = xyes; then :
29158 passed=`expr $passed + 1`
29159else
29160 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029161fi
29162
cristy81beccd2011-10-03 18:17:24 +000029163
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29165$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29166if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29167 $as_echo_n "(cached) " >&6
29168else
29169 ac_check_lib_save_LIBS=$LIBS
29170LIBS="-lfftw3 $LIBS"
29171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29172/* end confdefs.h. */
29173
29174/* Override any GCC internal prototype to avoid an error.
29175 Use char because int might match the return type of a GCC
29176 builtin and then its argument prototype would still apply. */
29177#ifdef __cplusplus
29178extern "C"
29179#endif
29180char fftw_execute ();
29181int
29182main ()
29183{
29184return fftw_execute ();
29185 ;
29186 return 0;
29187}
29188_ACEOF
29189if ac_fn_c_try_link "$LINENO"; then :
29190 ac_cv_lib_fftw3_fftw_execute=yes
29191else
29192 ac_cv_lib_fftw3_fftw_execute=no
29193fi
29194rm -f core conftest.err conftest.$ac_objext \
29195 conftest$ac_exeext conftest.$ac_ext
29196LIBS=$ac_check_lib_save_LIBS
29197fi
29198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29199$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29200if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29201 passed=`expr $passed + 1`
29202else
29203 failed=`expr $failed + 1`
29204fi
29205
29206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29207$as_echo_n "checking if FFTW package is complete... " >&6; }
29208 if test $passed -gt 0; then
29209 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29211$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029212 have_fftw='no (failed tests)'
29213 else
29214 FFTW_LIBS='-lfftw3'
29215 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029216
cristy8b350f62009-11-15 23:12:43 +000029217$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029218
cristyad38abe2012-12-23 23:03:21 +000029219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29220$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029221 have_fftw='yes'
29222 fi
29223 else
cristyad38abe2012-12-23 23:03:21 +000029224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29225$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029226 fi
29227fi
cristy73bd4a52010-10-05 11:24:23 +000029228 if test "$have_fftw" = 'yes'; then
29229 FFTW_DELEGATE_TRUE=
29230 FFTW_DELEGATE_FALSE='#'
29231else
29232 FFTW_DELEGATE_TRUE='#'
29233 FFTW_DELEGATE_FALSE=
29234fi
29235
cristy3ed852e2009-09-05 21:47:34 +000029236
29237
29238
29239#
29240# Check for FlashPIX delegate library.
29241#
29242
29243# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029244if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029245 withval=$with_fpx; with_fpx=$withval
29246else
29247 with_fpx='yes'
29248fi
29249
29250
29251if test "$with_fpx" != 'yes'; then
29252 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29253fi
29254
29255have_fpx='no'
29256FPX_LIBS=''
29257if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29259$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029261$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29263$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029264 failed=0
29265 passed=0
29266 ac_ext=cpp
29267ac_cpp='$CXXCPP $CPPFLAGS'
29268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29271
29272
cristy8b350f62009-11-15 23:12:43 +000029273ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029274if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029275 passed=`expr $passed + 1`
29276else
29277 failed=`expr $failed + 1`
29278fi
29279
29280
cristy8b350f62009-11-15 23:12:43 +000029281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029282$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029283if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029284 $as_echo_n "(cached) " >&6
29285else
29286 ac_check_lib_save_LIBS=$LIBS
29287LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029289/* end confdefs.h. */
29290
29291/* Override any GCC internal prototype to avoid an error.
29292 Use char because int might match the return type of a GCC
29293 builtin and then its argument prototype would still apply. */
29294#ifdef __cplusplus
29295extern "C"
29296#endif
29297char FPX_OpenImageByFilename ();
29298int
29299main ()
29300{
29301return FPX_OpenImageByFilename ();
29302 ;
29303 return 0;
29304}
29305_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029306if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029307 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29308else
cristy8b350f62009-11-15 23:12:43 +000029309 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029310fi
cristy8b350f62009-11-15 23:12:43 +000029311rm -f core conftest.err conftest.$ac_objext \
29312 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029313LIBS=$ac_check_lib_save_LIBS
29314fi
cristy8b350f62009-11-15 23:12:43 +000029315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029316$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029317if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029318 passed=`expr $passed + 1`
29319else
29320 failed=`expr $failed + 1`
29321fi
29322
29323 ac_ext=c
29324ac_cpp='$CPP $CPPFLAGS'
29325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29327ac_compiler_gnu=$ac_cv_c_compiler_gnu
29328
cristy8b350f62009-11-15 23:12:43 +000029329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029330$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29331 if test $passed -gt 0; then
29332 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29334$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029335 have_fpx='no (failed tests)'
29336 else
29337 FPX_LIBS='-lfpx'
29338
cristy8b350f62009-11-15 23:12:43 +000029339$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029340
cristyad38abe2012-12-23 23:03:21 +000029341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29342$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029343 have_fpx='yes'
29344 PERLMAINCC="$CXX"
29345 fi
29346 else
cristyad38abe2012-12-23 23:03:21 +000029347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29348$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029349 fi
29350fi
cristy73bd4a52010-10-05 11:24:23 +000029351 if test "$have_fpx" = 'yes'; then
29352 FPX_DELEGATE_TRUE=
29353 FPX_DELEGATE_FALSE='#'
29354else
29355 FPX_DELEGATE_TRUE='#'
29356 FPX_DELEGATE_FALSE=
29357fi
29358
cristy3ed852e2009-09-05 21:47:34 +000029359
cristy853d9902014-08-21 18:50:43 +000029360
29361
29362#
29363# Check for DJVU delegate library.
29364#
29365
29366# Check whether --with-djvu was given.
29367if test "${with_djvu+set}" = set; then :
29368 withval=$with_djvu; with_djvu=$withval
29369else
29370 with_djvu='yes'
29371fi
29372
29373
29374if test "$with_djvu" != 'yes'; then
29375 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29376fi
29377
29378have_djvu='no'
29379DJVU_LIBS=''
29380if test "$with_djvu" != 'no'; then
29381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29382$as_echo "-------------------------------------------------------------" >&6; }
29383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
29384$as_echo_n "checking for DJVU... " >&6; }
29385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29386$as_echo "" >&6; }
29387 failed=0
29388 passed=0
29389 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
29390if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
29391 passed=`expr $passed + 1`
29392else
29393 failed=`expr $failed + 1`
29394fi
29395
29396
29397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
29398$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
29399if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
29400 $as_echo_n "(cached) " >&6
29401else
29402 ac_check_lib_save_LIBS=$LIBS
29403LIBS="-ldjvulibre $LIBS"
29404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29405/* end confdefs.h. */
29406
29407/* Override any GCC internal prototype to avoid an error.
29408 Use char because int might match the return type of a GCC
29409 builtin and then its argument prototype would still apply. */
29410#ifdef __cplusplus
29411extern "C"
29412#endif
29413char ddjvu_context_create ();
29414int
29415main ()
29416{
29417return ddjvu_context_create ();
29418 ;
29419 return 0;
29420}
29421_ACEOF
29422if ac_fn_c_try_link "$LINENO"; then :
29423 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29424else
29425 ac_cv_lib_djvulibre_ddjvu_context_create=no
29426fi
29427rm -f core conftest.err conftest.$ac_objext \
29428 conftest$ac_exeext conftest.$ac_ext
29429LIBS=$ac_check_lib_save_LIBS
29430fi
29431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
29432$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
29433if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
29434 passed=`expr $passed + 1`
29435else
29436 failed=`expr $failed + 1`
29437fi
29438
29439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
29440$as_echo_n "checking if DJVU package is complete... " >&6; }
29441 if test $passed -gt 0; then
29442 if test $failed -gt 0; then
29443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29444$as_echo "no -- some components failed test" >&6; }
29445 have_djvu='no (failed tests)'
29446 else
29447 DJVU_LIBS='-ldjvulibre'
29448 LIBS="$DJVU_LIBS $LIBS"
29449
29450$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29451
29452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29453$as_echo "yes" >&6; }
29454 have_djvu='yes'
29455 fi
29456 else
29457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29458$as_echo "no" >&6; }
29459 fi
29460fi
29461 if test "$have_djvu" = 'yes'; then
29462 DJVU_DELEGATE_TRUE=
29463 DJVU_DELEGATE_FALSE='#'
29464else
29465 DJVU_DELEGATE_TRUE='#'
29466 DJVU_DELEGATE_FALSE=
29467fi
29468
29469
cristy3ed852e2009-09-05 21:47:34 +000029470
29471
29472#
29473# Check for fontconfig delegate library.
29474#
29475
29476# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029477if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029478 withval=$with_fontconfig; with_fontconfig=$withval
29479else
cristyfc3d0222012-02-07 15:05:57 +000029480 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029481fi
29482
29483
29484if test "$with_fontconfig" != 'yes'; then
29485 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29486fi
29487
29488have_fontconfig='no'
29489FONTCONFIG_CFLAGS=""
29490FONTCONFIG_LIBS=""
29491FONTCONFIG_PKG=""
29492if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29494$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029495
29496pkg_failed=no
29497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29498$as_echo_n "checking for FONTCONFIG... " >&6; }
29499
29500if test -n "$FONTCONFIG_CFLAGS"; then
29501 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29502 elif test -n "$PKG_CONFIG"; then
29503 if test -n "$PKG_CONFIG" && \
29504 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29505 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29506 ac_status=$?
29507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29508 test $ac_status = 0; }; then
29509 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29510else
29511 pkg_failed=yes
29512fi
29513 else
29514 pkg_failed=untried
29515fi
29516if test -n "$FONTCONFIG_LIBS"; then
29517 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29518 elif test -n "$PKG_CONFIG"; then
29519 if test -n "$PKG_CONFIG" && \
29520 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29521 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29522 ac_status=$?
29523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29524 test $ac_status = 0; }; then
29525 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29526else
29527 pkg_failed=yes
29528fi
29529 else
29530 pkg_failed=untried
29531fi
29532
29533
29534
29535if test $pkg_failed = yes; then
29536
29537if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29538 _pkg_short_errors_supported=yes
29539else
29540 _pkg_short_errors_supported=no
29541fi
29542 if test $_pkg_short_errors_supported = yes; then
29543 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29544 else
29545 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29546 fi
29547 # Put the nasty error message in config.log where it belongs
29548 echo "$FONTCONFIG_PKG_ERRORS" >&5
29549
29550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29551$as_echo "no" >&6; }
29552 have_fontconfig=no
29553elif test $pkg_failed = untried; then
29554 have_fontconfig=no
29555else
29556 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29557 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29559$as_echo "yes" >&6; }
29560 have_fontconfig=yes
29561fi
cristyad38abe2012-12-23 23:03:21 +000029562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29563$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029564fi
29565
29566if test "$have_fontconfig" = 'yes'; then
29567
cristy8b350f62009-11-15 23:12:43 +000029568$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029569
cristyc6722092012-10-14 00:19:31 +000029570 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029571 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029572 fi
cristy3ed852e2009-09-05 21:47:34 +000029573fi
29574
cristy73bd4a52010-10-05 11:24:23 +000029575 if test "$have_fontconfig" = 'yes'; then
29576 FONTCONFIG_DELEGATE_TRUE=
29577 FONTCONFIG_DELEGATE_FALSE='#'
29578else
29579 FONTCONFIG_DELEGATE_TRUE='#'
29580 FONTCONFIG_DELEGATE_FALSE=
29581fi
29582
cristy3ed852e2009-09-05 21:47:34 +000029583
29584
29585
29586
29587#
cristy03f187e2013-01-24 00:22:19 +000029588# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029589#
29590
29591# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029592if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029593 withval=$with_freetype; with_freetype=$withval
29594else
29595 with_freetype='yes'
29596fi
29597
29598
cristy3ed852e2009-09-05 21:47:34 +000029599if test "$with_freetype" != 'yes'; then
29600 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29601fi
29602
cristy81beccd2011-10-03 18:17:24 +000029603have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029604FREETYPE_CFLAGS=""
29605FREETYPE_LIBS=""
29606FREETYPE_PKG=""
29607if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29609$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029610
29611pkg_failed=no
29612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29613$as_echo_n "checking for FREETYPE... " >&6; }
29614
29615if test -n "$FREETYPE_CFLAGS"; then
29616 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29617 elif test -n "$PKG_CONFIG"; then
29618 if test -n "$PKG_CONFIG" && \
29619 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29620 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29621 ac_status=$?
29622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29623 test $ac_status = 0; }; then
29624 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29625else
29626 pkg_failed=yes
29627fi
29628 else
29629 pkg_failed=untried
29630fi
29631if test -n "$FREETYPE_LIBS"; then
29632 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29633 elif test -n "$PKG_CONFIG"; then
29634 if test -n "$PKG_CONFIG" && \
29635 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29636 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29637 ac_status=$?
29638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29639 test $ac_status = 0; }; then
29640 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29641else
29642 pkg_failed=yes
29643fi
29644 else
29645 pkg_failed=untried
29646fi
29647
29648
29649
29650if test $pkg_failed = yes; then
29651
29652if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29653 _pkg_short_errors_supported=yes
29654else
29655 _pkg_short_errors_supported=no
29656fi
29657 if test $_pkg_short_errors_supported = yes; then
29658 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29659 else
29660 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29661 fi
29662 # Put the nasty error message in config.log where it belongs
29663 echo "$FREETYPE_PKG_ERRORS" >&5
29664
29665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29666$as_echo "no" >&6; }
29667 have_freetype=no
29668elif test $pkg_failed = untried; then
29669 have_freetype=no
29670else
29671 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29672 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29674$as_echo "yes" >&6; }
29675 have_freetype=yes
29676fi
cristyad38abe2012-12-23 23:03:21 +000029677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29678$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029679fi
29680
cristy03f187e2013-01-24 00:22:19 +000029681if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029682
cristy8b350f62009-11-15 23:12:43 +000029683$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029684
cristy03f187e2013-01-24 00:22:19 +000029685 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029686fi
cristy03f187e2013-01-24 00:22:19 +000029687
cristy73bd4a52010-10-05 11:24:23 +000029688 if test "$have_freetype" = 'yes'; then
29689 FREETYPE_DELEGATE_TRUE=
29690 FREETYPE_DELEGATE_FALSE='#'
29691else
29692 FREETYPE_DELEGATE_TRUE='#'
29693 FREETYPE_DELEGATE_FALSE=
29694fi
29695
cristy3ed852e2009-09-05 21:47:34 +000029696
29697
29698
cristy03f187e2013-01-24 00:22:19 +000029699
cristy3ed852e2009-09-05 21:47:34 +000029700#
29701# Check for Ghostscript library or framework.
29702#
29703# Test for iapi.h & test for gsapi_new_instance in -lgs
29704# or -framework Ghostscript
29705
29706
29707# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029708if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029709 withval=$with_gslib; with_gslib=$withval
29710else
29711 with_gslib='no'
29712fi
29713
29714
cristyb7931f12009-09-25 10:22:21 +000029715gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029716if test "$with_gslib" != 'yes'; then
29717 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29718fi
29719
29720have_gslib='no'
29721GS_LIBS=''
29722if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29724$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029726$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29728$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029729 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029730 failed=0
29731 passed=0
cristy8b350f62009-11-15 23:12:43 +000029732 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 +000029733if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029734 passed=`expr $passed + 1`
29735else
29736 failed=`expr $failed + 1`
29737fi
29738
29739
cristy8b350f62009-11-15 23:12:43 +000029740 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 +000029741if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029742 passed=`expr $passed + 1`
29743else
29744 failed=`expr $failed + 1`
29745fi
29746
29747
cristy73bd4a52010-10-05 11:24:23 +000029748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29749$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029750if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029751 $as_echo_n "(cached) " >&6
29752else
29753 ac_check_framework_save_LIBS=$LIBS
29754LIBS="-framework Ghostscript $LIBS"
29755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29756/* end confdefs.h. */
29757
29758/* Override any GCC internal prototype to avoid an error.
29759 Use char because int might match the return type of a GCC
29760 builtin and then its argument prototype would still apply. */
29761#ifdef __cplusplus
29762extern "C"
29763#endif
29764char gsapi_new_instance ();
29765int
29766main ()
29767{
29768return gsapi_new_instance ();
29769 ;
29770 return 0;
29771}
29772_ACEOF
29773if ac_fn_c_try_link "$LINENO"; then :
29774 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29775else
29776 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29777fi
29778rm -f core conftest.err conftest.$ac_objext \
29779 conftest$ac_exeext conftest.$ac_ext
29780LIBS=$ac_check_framework_save_LIBS
29781fi
29782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29783$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29784if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29785 framework=`expr $framework + 1`
29786else
29787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029788$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029789if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029790 $as_echo_n "(cached) " >&6
29791else
29792 ac_check_lib_save_LIBS=$LIBS
29793LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029795/* end confdefs.h. */
29796
29797/* Override any GCC internal prototype to avoid an error.
29798 Use char because int might match the return type of a GCC
29799 builtin and then its argument prototype would still apply. */
29800#ifdef __cplusplus
29801extern "C"
29802#endif
29803char gsapi_new_instance ();
29804int
29805main ()
29806{
29807return gsapi_new_instance ();
29808 ;
29809 return 0;
29810}
29811_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029812if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029813 ac_cv_lib_gs_gsapi_new_instance=yes
29814else
cristy8b350f62009-11-15 23:12:43 +000029815 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029816fi
cristy8b350f62009-11-15 23:12:43 +000029817rm -f core conftest.err conftest.$ac_objext \
29818 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029819LIBS=$ac_check_lib_save_LIBS
29820fi
cristy8b350f62009-11-15 23:12:43 +000029821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029822$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029823if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029824 passed=`expr $passed + 1`
29825else
29826 failed=`expr $failed + 1`
29827fi
cristy73bd4a52010-10-05 11:24:23 +000029828
29829fi
cristy8b350f62009-11-15 23:12:43 +000029830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029831$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29832 if test $passed -gt 0; then
29833 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29835$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029836 have_gslib='no (failed tests)'
29837 else
29838 if test $framework -gt 0; then
29839 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029840 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29842$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029843 else
cristyad38abe2012-12-23 23:03:21 +000029844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29845$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029846 GS_LIBS='-lgs'
29847 fi
29848 LIBS="$GS_LIBS $LIBS"
29849
cristy8b350f62009-11-15 23:12:43 +000029850$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029851
29852 have_gslib='yes'
29853 fi
29854 else
cristyad38abe2012-12-23 23:03:21 +000029855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29856$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029857 fi
29858fi
cristy73bd4a52010-10-05 11:24:23 +000029859 if test "$have_gslib" = 'yes'; then
29860 GS_DELEGATE_TRUE=
29861 GS_DELEGATE_FALSE='#'
29862else
29863 GS_DELEGATE_TRUE='#'
29864 GS_DELEGATE_FALSE=
29865fi
29866
cristy3ed852e2009-09-05 21:47:34 +000029867
29868
29869# Set default font search path
29870
29871# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029872if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029873 withval=$with_fontpath; with_fontpath=$withval
29874else
29875 with_fontpath=''
29876fi
29877
29878
29879if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29880 with_fontpath=''
29881else
29882
29883cat >>confdefs.h <<_ACEOF
29884#define MAGICK_FONT_PATH "$with_fontpath"
29885_ACEOF
29886
29887fi
29888if test "$with_fontpath=" != ''; then
29889 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29890fi
29891
29892# Set Ghostscript font directory
29893
29894# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029895if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029896 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29897else
29898 with_gs_font_dir='default'
29899fi
29900
29901
29902if test "$with_gs_font_dir" != 'default'; then
29903 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29904fi
29905
29906
29907#
29908# Check for GVC delegate library.
29909#
29910
29911# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029912if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029913 withval=$with_gvc; with_gvc=$withval
29914else
cristy1b70dc82012-07-01 23:15:05 +000029915 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029916fi
29917
29918
29919if test "$with_gvc" != 'yes'; then
29920 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29921fi
29922
29923GVC_PKG=""
29924if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29926$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029927
29928pkg_failed=no
29929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29930$as_echo_n "checking for GVC... " >&6; }
29931
29932if test -n "$GVC_CFLAGS"; then
29933 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29934 elif test -n "$PKG_CONFIG"; then
29935 if test -n "$PKG_CONFIG" && \
29936 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29937 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29938 ac_status=$?
29939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29940 test $ac_status = 0; }; then
29941 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29942else
29943 pkg_failed=yes
29944fi
29945 else
29946 pkg_failed=untried
29947fi
29948if test -n "$GVC_LIBS"; then
29949 pkg_cv_GVC_LIBS="$GVC_LIBS"
29950 elif test -n "$PKG_CONFIG"; then
29951 if test -n "$PKG_CONFIG" && \
29952 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29953 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29954 ac_status=$?
29955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29956 test $ac_status = 0; }; then
29957 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29958else
29959 pkg_failed=yes
29960fi
29961 else
29962 pkg_failed=untried
29963fi
29964
29965
29966
29967if test $pkg_failed = yes; then
29968
29969if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29970 _pkg_short_errors_supported=yes
29971else
29972 _pkg_short_errors_supported=no
29973fi
29974 if test $_pkg_short_errors_supported = yes; then
29975 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29976 else
29977 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29978 fi
29979 # Put the nasty error message in config.log where it belongs
29980 echo "$GVC_PKG_ERRORS" >&5
29981
29982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29983$as_echo "no" >&6; }
29984 have_gvc=no
29985elif test $pkg_failed = untried; then
29986 have_gvc=no
29987else
29988 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29989 GVC_LIBS=$pkg_cv_GVC_LIBS
29990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29991$as_echo "yes" >&6; }
29992 have_gvc=yes
29993fi
cristyad38abe2012-12-23 23:03:21 +000029994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29995$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029996fi
29997
29998if test "$have_gvc" = 'yes'; then
29999
cristy8b350f62009-11-15 23:12:43 +000030000$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030001
cristyc6722092012-10-14 00:19:31 +000030002 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030003 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
30004 fi
30005fi
30006
cristy73bd4a52010-10-05 11:24:23 +000030007 if test "$have_gvc" = 'yes'; then
30008 GVC_DELEGATE_TRUE=
30009 GVC_DELEGATE_FALSE='#'
30010else
30011 GVC_DELEGATE_TRUE='#'
30012 GVC_DELEGATE_FALSE=
30013fi
30014
cristy3ed852e2009-09-05 21:47:34 +000030015
30016
30017
30018
30019#
30020# Check for JBIG delegate library.
30021#
30022
30023
30024# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000030025if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030026 withval=$with_jbig; with_jbig=$withval
30027else
30028 with_jbig='yes'
30029fi
30030
30031
30032have_jbig='no'
30033JBIG_LIBS=''
30034if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30036$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030038$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30040$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030041 failed=0
30042 passed=0
cristy8b350f62009-11-15 23:12:43 +000030043 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030044if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030045 passed=`expr $passed + 1`
30046else
30047 failed=`expr $failed + 1`
30048fi
30049
30050
cristy8b350f62009-11-15 23:12:43 +000030051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000030052$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030053if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030054 $as_echo_n "(cached) " >&6
30055else
30056 ac_check_lib_save_LIBS=$LIBS
30057LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030059/* end confdefs.h. */
30060
30061/* Override any GCC internal prototype to avoid an error.
30062 Use char because int might match the return type of a GCC
30063 builtin and then its argument prototype would still apply. */
30064#ifdef __cplusplus
30065extern "C"
30066#endif
30067char jbg_dec_init ();
30068int
30069main ()
30070{
30071return jbg_dec_init ();
30072 ;
30073 return 0;
30074}
30075_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030076if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030077 ac_cv_lib_jbig_jbg_dec_init=yes
30078else
cristy8b350f62009-11-15 23:12:43 +000030079 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030080fi
cristy8b350f62009-11-15 23:12:43 +000030081rm -f core conftest.err conftest.$ac_objext \
30082 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030083LIBS=$ac_check_lib_save_LIBS
30084fi
cristy8b350f62009-11-15 23:12:43 +000030085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030086$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030087if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030088 passed=`expr $passed + 1`
30089else
30090 failed=`expr $failed + 1`
30091fi
30092
cristy8b350f62009-11-15 23:12:43 +000030093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030094$as_echo_n "checking if JBIG package is complete... " >&6; }
30095 if test $passed -gt 0; then
30096 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30098$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030099 have_jbig='no (failed tests)'
30100 else
30101 JBIG_LIBS='-ljbig'
30102 LIBS="$JBIG_LIBS $LIBS"
30103
cristy8b350f62009-11-15 23:12:43 +000030104$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030105
cristyad38abe2012-12-23 23:03:21 +000030106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30107$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030108 have_jbig='yes'
30109 fi
30110 else
cristyad38abe2012-12-23 23:03:21 +000030111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30112$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030113 fi
30114fi
cristy73bd4a52010-10-05 11:24:23 +000030115 if test "$have_jbig" = 'yes'; then
30116 JBIG_DELEGATE_TRUE=
30117 JBIG_DELEGATE_FALSE='#'
30118else
30119 JBIG_DELEGATE_TRUE='#'
30120 JBIG_DELEGATE_FALSE=
30121fi
30122
cristy3ed852e2009-09-05 21:47:34 +000030123
30124
30125
30126#
30127# Check for JPEG delegate library.
30128#
30129
30130# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030131if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030132 withval=$with_jpeg; with_jpeg=$withval
30133else
30134 with_jpeg='yes'
30135fi
30136
30137
30138if test "$with_jpeg" != 'yes'; then
30139 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30140fi
30141
30142have_jpeg='no'
30143JPEG_LIBS=''
30144if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30146$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030148$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30150$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030151 failed=0
30152 passed=0
cristy8b350f62009-11-15 23:12:43 +000030153 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030154if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030155 passed=`expr $passed + 1`
30156else
30157 failed=`expr $failed + 1`
30158fi
30159
30160
cristy8b350f62009-11-15 23:12:43 +000030161 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030162if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030163 passed=`expr $passed + 1`
30164else
30165 failed=`expr $failed + 1`
30166fi
30167
30168
cristy8b350f62009-11-15 23:12:43 +000030169 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030170if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030171 passed=`expr $passed + 1`
30172else
30173 failed=`expr $failed + 1`
30174fi
30175
30176
cristy8b350f62009-11-15 23:12:43 +000030177 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030178if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030179 passed=`expr $passed + 1`
30180else
30181 failed=`expr $failed + 1`
30182fi
30183
30184
cristy8b350f62009-11-15 23:12:43 +000030185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030186$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030187if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030188 $as_echo_n "(cached) " >&6
30189else
30190 ac_check_lib_save_LIBS=$LIBS
30191LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030193/* end confdefs.h. */
30194
30195/* Override any GCC internal prototype to avoid an error.
30196 Use char because int might match the return type of a GCC
30197 builtin and then its argument prototype would still apply. */
30198#ifdef __cplusplus
30199extern "C"
30200#endif
30201char jpeg_read_header ();
30202int
30203main ()
30204{
30205return jpeg_read_header ();
30206 ;
30207 return 0;
30208}
30209_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030210if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030211 ac_cv_lib_jpeg_jpeg_read_header=yes
30212else
cristy8b350f62009-11-15 23:12:43 +000030213 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030214fi
cristy8b350f62009-11-15 23:12:43 +000030215rm -f core conftest.err conftest.$ac_objext \
30216 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030217LIBS=$ac_check_lib_save_LIBS
30218fi
cristy8b350f62009-11-15 23:12:43 +000030219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030220$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030221if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030222 passed=`expr $passed + 1`
30223else
30224 failed=`expr $failed + 1`
30225fi
30226
30227
30228# Test for compatible JPEG library
30229if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030231$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030232if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030233 $as_echo_n "(cached) " >&6
30234else
cristy8b350f62009-11-15 23:12:43 +000030235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030236/* end confdefs.h. */
30237#include <stdio.h>
30238#include <stdlib.h>
30239#include <jpeglib.h>
30240
30241int
30242main ()
30243{
30244
30245#if JPEG_LIB_VERSION < 62
30246#error IJG JPEG library must be version 6b or newer!
30247#endif
30248return 0;
30249
30250 ;
30251 return 0;
30252}
30253_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030254if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030255 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30256else
cristy8b350f62009-11-15 23:12:43 +000030257 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030258fi
cristy3ed852e2009-09-05 21:47:34 +000030259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30260fi
cristy8b350f62009-11-15 23:12:43 +000030261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030262$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30263fi
cristy8b350f62009-11-15 23:12:43 +000030264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030265$as_echo_n "checking if JPEG package is complete... " >&6; }
30266 if test $passed -gt 0; then
30267 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30269$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030270 have_jpeg='no (failed tests)'
30271 else
30272 JPEG_LIBS='-ljpeg'
30273 LIBS="$JPEG_LIBS $LIBS"
30274
cristy8b350f62009-11-15 23:12:43 +000030275$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030276
cristyad38abe2012-12-23 23:03:21 +000030277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30278$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030279 have_jpeg='yes'
30280 fi
30281 else
cristyad38abe2012-12-23 23:03:21 +000030282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30283$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030284 fi
30285fi
cristy73bd4a52010-10-05 11:24:23 +000030286 if test "$have_jpeg" = 'yes'; then
30287 JPEG_DELEGATE_TRUE=
30288 JPEG_DELEGATE_FALSE='#'
30289else
30290 JPEG_DELEGATE_TRUE='#'
30291 JPEG_DELEGATE_FALSE=
30292fi
30293
cristy3ed852e2009-09-05 21:47:34 +000030294
30295
30296
30297#
cristy3ed852e2009-09-05 21:47:34 +000030298# Check for LCMS delegate library.
30299#
cristy71203402010-06-18 13:12:03 +000030300# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030301
30302# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030303if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030304 withval=$with_lcms; with_lcms=$withval
30305else
30306 with_lcms='yes'
30307fi
30308
cristy71203402010-06-18 13:12:03 +000030309if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030310 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30311fi
30312
cristy71203402010-06-18 13:12:03 +000030313# Disable LCMS2.
30314
30315# Check whether --with-lcms2 was given.
30316if test "${with_lcms2+set}" = set; then :
30317 withval=$with_lcms2; with_lcms2=$withval
30318else
30319 with_lcms2='yes'
30320fi
30321
30322if test "$with_lcms2" != 'yes' ; then
30323 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30324fi
30325
30326have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030327LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030328if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30330$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30332$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30334$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030335 failed=0
30336 passed=0
30337 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030338
30339 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030340 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030341if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030342 have_lcms_header='yes'
30343fi
30344
30345
30346 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030347
30348$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30349
cristy71203402010-06-18 13:12:03 +000030350 passed=`expr $passed + 1`
30351 fi
30352
30353 # Check for <lcms2/lcms2.h)
30354 if test "$have_lcms_header" != 'yes'; then
30355 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 +000030356if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030357 have_lcms_header='yes'
30358fi
30359
30360
cristy71203402010-06-18 13:12:03 +000030361 if test "$have_lcms_header" = 'yes'; then
30362 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030363
cristy71203402010-06-18 13:12:03 +000030364$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030365
cristy71203402010-06-18 13:12:03 +000030366 fi
cristyd09bcf92010-03-25 03:04:45 +000030367 fi
cristy71203402010-06-18 13:12:03 +000030368
30369 # Failed to find lcms header?
30370 if test "$have_lcms_header" != 'yes'; then
30371 failed=`expr $failed + 1`
30372 fi
30373
30374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30375$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030376if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030377 $as_echo_n "(cached) " >&6
30378else
30379 ac_check_lib_save_LIBS=$LIBS
30380LIBS="-llcms2 $LIBS"
30381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30382/* end confdefs.h. */
30383
30384/* Override any GCC internal prototype to avoid an error.
30385 Use char because int might match the return type of a GCC
30386 builtin and then its argument prototype would still apply. */
30387#ifdef __cplusplus
30388extern "C"
30389#endif
cristy71203402010-06-18 13:12:03 +000030390char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030391int
30392main ()
30393{
cristy71203402010-06-18 13:12:03 +000030394return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030395 ;
30396 return 0;
30397}
30398_ACEOF
30399if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030400 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030401else
cristy71203402010-06-18 13:12:03 +000030402 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030403fi
30404rm -f core conftest.err conftest.$ac_objext \
30405 conftest$ac_exeext conftest.$ac_ext
30406LIBS=$ac_check_lib_save_LIBS
30407fi
cristy71203402010-06-18 13:12:03 +000030408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30409$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030410if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030411 passed=`expr $passed + 1`
30412else
30413 failed=`expr $failed + 1`
30414fi
30415
cristy71203402010-06-18 13:12:03 +000030416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30417$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030418 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030419 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30421$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030422 have_lcms2='no (failed tests)'
30423 else
30424 LCMS_LIBS='-llcms2'
30425 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30427$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030428 have_lcms2='yes'
30429 fi
cristyd09bcf92010-03-25 03:04:45 +000030430 else
cristyad38abe2012-12-23 23:03:21 +000030431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30432$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030433 fi
30434fi
30435
cristy71203402010-06-18 13:12:03 +000030436#
30437# Check for LCMS v1 (1.11 or later)
30438#
30439if test $have_lcms2 = 'yes'; then
30440 with_lcms='no'
30441fi
30442
30443have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030444if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30446$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30448$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30450$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030451 failed=0
30452 passed=0
30453 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030454
30455 # Check for <lcms.h>
30456 if test "$have_lcms_header" != 'yes'; then
30457 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030458if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030459 have_lcms_header='yes'
30460fi
30461
30462
cristy71203402010-06-18 13:12:03 +000030463 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030464 passed=`expr $passed + 1`
30465
cristy8b350f62009-11-15 23:12:43 +000030466$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030467
cristy71203402010-06-18 13:12:03 +000030468 fi
30469 fi
30470
30471 # Check for <lcms/lcms.h>
30472 if test "$have_lcms_header" != 'yes'; then
30473 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 +000030474if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030475 have_lcms_header='yes'
30476fi
30477
30478
cristy71203402010-06-18 13:12:03 +000030479 if test "$have_lcms_header" = 'yes'; then
30480 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030481
cristy8b350f62009-11-15 23:12:43 +000030482$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030483
cristy71203402010-06-18 13:12:03 +000030484 fi
cristy3ed852e2009-09-05 21:47:34 +000030485 fi
cristy71203402010-06-18 13:12:03 +000030486
30487 # Failed to find lcms header?
30488 if test "$have_lcms_header" != 'yes'; then
30489 failed=`expr $failed + 1`
30490 fi
30491
30492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30493$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030494if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030495 $as_echo_n "(cached) " >&6
30496else
30497 ac_check_lib_save_LIBS=$LIBS
30498LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030500/* end confdefs.h. */
30501
30502/* Override any GCC internal prototype to avoid an error.
30503 Use char because int might match the return type of a GCC
30504 builtin and then its argument prototype would still apply. */
30505#ifdef __cplusplus
30506extern "C"
30507#endif
cristy71203402010-06-18 13:12:03 +000030508char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030509int
30510main ()
30511{
cristy71203402010-06-18 13:12:03 +000030512return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030513 ;
30514 return 0;
30515}
30516_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030517if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030518 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030519else
cristy71203402010-06-18 13:12:03 +000030520 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030521fi
cristy8b350f62009-11-15 23:12:43 +000030522rm -f core conftest.err conftest.$ac_objext \
30523 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030524LIBS=$ac_check_lib_save_LIBS
30525fi
cristy71203402010-06-18 13:12:03 +000030526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30527$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030528if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030529 passed=`expr $passed + 1`
30530else
30531 failed=`expr $failed + 1`
30532fi
30533
cristy8b350f62009-11-15 23:12:43 +000030534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030535$as_echo_n "checking if LCMS package is complete... " >&6; }
30536 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030537 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30539$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030540 have_lcms='no (failed tests)'
30541 else
30542 LCMS_LIBS='-llcms'
30543 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30545$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030546 have_lcms='yes'
30547 fi
cristy3ed852e2009-09-05 21:47:34 +000030548 else
cristyad38abe2012-12-23 23:03:21 +000030549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30550$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030551 fi
30552fi
cristy71203402010-06-18 13:12:03 +000030553
cristy73bd4a52010-10-05 11:24:23 +000030554 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30555 LCMS_DELEGATE_TRUE=
30556 LCMS_DELEGATE_FALSE='#'
30557else
30558 LCMS_DELEGATE_TRUE='#'
30559 LCMS_DELEGATE_FALSE=
30560fi
30561
cristy71203402010-06-18 13:12:03 +000030562if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30563
30564$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30565
30566fi
30567
cristy3ed852e2009-09-05 21:47:34 +000030568
30569
30570
30571#
cristy99db3872014-01-01 15:11:34 +000030572# Check for the OpenJP2 delegate library.
30573#
30574
30575# Check whether --with-openjp2 was given.
30576if test "${with_openjp2+set}" = set; then :
30577 withval=$with_openjp2; with_openjp2=$withval
30578else
30579 with_openjp2='yes'
30580fi
30581
30582
30583if test "$with_openjp2" != 'yes'; then
30584 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30585fi
30586
30587have_openjp2='no'
30588LIBOPENJP2_CFLAGS=""
30589LIBOPENJP2_LIBS=""
30590LIBOPENJP2_PKG=""
30591if test "x$with_openjp2" = "xyes"; then
30592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30593$as_echo "-------------------------------------------------------------" >&6; }
30594
30595pkg_failed=no
30596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30597$as_echo_n "checking for LIBOPENJP2... " >&6; }
30598
30599if test -n "$LIBOPENJP2_CFLAGS"; then
30600 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30601 elif test -n "$PKG_CONFIG"; then
30602 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030603 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30604 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030605 ac_status=$?
30606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30607 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030608 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030609else
30610 pkg_failed=yes
30611fi
30612 else
30613 pkg_failed=untried
30614fi
30615if test -n "$LIBOPENJP2_LIBS"; then
30616 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30617 elif test -n "$PKG_CONFIG"; then
30618 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030619 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30620 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030621 ac_status=$?
30622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30623 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030624 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030625else
30626 pkg_failed=yes
30627fi
30628 else
30629 pkg_failed=untried
30630fi
30631
30632
30633
30634if test $pkg_failed = yes; then
30635
30636if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30637 _pkg_short_errors_supported=yes
30638else
30639 _pkg_short_errors_supported=no
30640fi
30641 if test $_pkg_short_errors_supported = yes; then
cristybc964932014-05-08 21:45:03 +000030642 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030643 else
cristybc964932014-05-08 21:45:03 +000030644 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030645 fi
30646 # Put the nasty error message in config.log where it belongs
30647 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30648
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30650$as_echo "no" >&6; }
30651 have_openjp2=no
30652elif test $pkg_failed = untried; then
30653 have_openjp2=no
30654else
30655 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30656 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30658$as_echo "yes" >&6; }
30659 have_openjp2=yes
30660fi
30661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30662$as_echo "" >&6; }
30663fi
30664
30665if test "$have_openjp2" = 'yes'; then
30666
30667$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30668
30669 if test "$build_modules" = 'no'; then
30670 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30671 fi
30672fi
30673
30674 if test "$have_openjp2" = 'yes'; then
30675 LIBOPENJP2_DELEGATE_TRUE=
30676 LIBOPENJP2_DELEGATE_FALSE='#'
30677else
30678 LIBOPENJP2_DELEGATE_TRUE='#'
30679 LIBOPENJP2_DELEGATE_FALSE=
30680fi
30681
30682
30683
30684
30685
30686
30687#
cristy3ed852e2009-09-05 21:47:34 +000030688# Check for the LQR (Liquid Rescale) delegate library.
30689#
30690
30691# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030692if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030693 withval=$with_lqr; with_lqr=$withval
30694else
30695 with_lqr='yes'
30696fi
30697
30698
30699if test "$with_lqr" != 'yes'; then
30700 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30701fi
30702
30703have_lqr='no'
30704LQR_CFLAGS=""
30705LQR_LIBS=""
30706LQR_PKG=""
30707if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30709$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030710
30711pkg_failed=no
30712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30713$as_echo_n "checking for LQR... " >&6; }
30714
30715if test -n "$LQR_CFLAGS"; then
30716 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30717 elif test -n "$PKG_CONFIG"; then
30718 if test -n "$PKG_CONFIG" && \
30719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30720 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30721 ac_status=$?
30722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30723 test $ac_status = 0; }; then
30724 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30725else
30726 pkg_failed=yes
30727fi
30728 else
30729 pkg_failed=untried
30730fi
30731if test -n "$LQR_LIBS"; then
30732 pkg_cv_LQR_LIBS="$LQR_LIBS"
30733 elif test -n "$PKG_CONFIG"; then
30734 if test -n "$PKG_CONFIG" && \
30735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30736 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30737 ac_status=$?
30738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30739 test $ac_status = 0; }; then
30740 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30741else
30742 pkg_failed=yes
30743fi
30744 else
30745 pkg_failed=untried
30746fi
30747
30748
30749
30750if test $pkg_failed = yes; then
30751
30752if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30753 _pkg_short_errors_supported=yes
30754else
30755 _pkg_short_errors_supported=no
30756fi
30757 if test $_pkg_short_errors_supported = yes; then
30758 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30759 else
30760 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30761 fi
30762 # Put the nasty error message in config.log where it belongs
30763 echo "$LQR_PKG_ERRORS" >&5
30764
30765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30766$as_echo "no" >&6; }
30767 have_lqr=no
30768elif test $pkg_failed = untried; then
30769 have_lqr=no
30770else
30771 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30772 LQR_LIBS=$pkg_cv_LQR_LIBS
30773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30774$as_echo "yes" >&6; }
30775 have_lqr=yes
30776fi
cristyad38abe2012-12-23 23:03:21 +000030777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30778$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030779fi
30780
30781if test "$have_lqr" = 'yes'; then
30782
cristy8b350f62009-11-15 23:12:43 +000030783$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030784
30785 CFLAGS="$LQR_CFLAGS $CFLAGS"
30786fi
30787
cristy73bd4a52010-10-05 11:24:23 +000030788 if test "$have_lqr" = 'yes'; then
30789 LQR_DELEGATE_TRUE=
30790 LQR_DELEGATE_FALSE='#'
30791else
30792 LQR_DELEGATE_TRUE='#'
30793 LQR_DELEGATE_FALSE=
30794fi
30795
cristy3ed852e2009-09-05 21:47:34 +000030796
30797
30798
30799
cristy81beccd2011-10-03 18:17:24 +000030800# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030801
30802# Check whether --with-lzma was given.
30803if test "${with_lzma+set}" = set; then :
30804 withval=$with_lzma; with_lzma=$withval
30805else
30806 with_lzma='yes'
30807fi
30808
cristy81beccd2011-10-03 18:17:24 +000030809if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030810 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30811fi
30812
cristyb94e5002011-11-14 13:20:10 +000030813LZMA_PKG=""
30814if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30816$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030817
30818pkg_failed=no
30819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030820$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030821
30822if test -n "$LZMA_CFLAGS"; then
30823 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30824 elif test -n "$PKG_CONFIG"; then
30825 if test -n "$PKG_CONFIG" && \
30826 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30827 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30828 ac_status=$?
30829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30830 test $ac_status = 0; }; then
30831 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30832else
30833 pkg_failed=yes
30834fi
30835 else
30836 pkg_failed=untried
30837fi
30838if test -n "$LZMA_LIBS"; then
30839 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30840 elif test -n "$PKG_CONFIG"; then
30841 if test -n "$PKG_CONFIG" && \
30842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30843 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30844 ac_status=$?
30845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30846 test $ac_status = 0; }; then
30847 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30848else
30849 pkg_failed=yes
30850fi
30851 else
30852 pkg_failed=untried
30853fi
30854
30855
30856
30857if test $pkg_failed = yes; then
30858
30859if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30860 _pkg_short_errors_supported=yes
30861else
30862 _pkg_short_errors_supported=no
30863fi
30864 if test $_pkg_short_errors_supported = yes; then
30865 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30866 else
30867 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30868 fi
30869 # Put the nasty error message in config.log where it belongs
30870 echo "$LZMA_PKG_ERRORS" >&5
30871
30872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30873$as_echo "no" >&6; }
30874 have_lzma=no
30875elif test $pkg_failed = untried; then
30876 have_lzma=no
30877else
30878 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30879 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30881$as_echo "yes" >&6; }
30882 have_lzma=yes
30883fi
cristyad38abe2012-12-23 23:03:21 +000030884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30885$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030886fi
30887
cristyb94e5002011-11-14 13:20:10 +000030888if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030889
30890$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30891
cristyc6722092012-10-14 00:19:31 +000030892 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030893 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030894 fi
cristyfbb0ef02010-12-19 02:32:11 +000030895fi
cristyb94e5002011-11-14 13:20:10 +000030896
cristyfbb0ef02010-12-19 02:32:11 +000030897 if test "$have_lzma" = 'yes'; then
30898 LZMA_DELEGATE_TRUE=
30899 LZMA_DELEGATE_FALSE='#'
30900else
30901 LZMA_DELEGATE_TRUE='#'
30902 LZMA_DELEGATE_FALSE=
30903fi
30904
30905
30906
30907
cristyb94e5002011-11-14 13:20:10 +000030908
cristy3ed852e2009-09-05 21:47:34 +000030909#
30910# Check for the OpenEXR delegate library.
30911#
30912
30913# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030914if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030915 withval=$with_openexr; with_openexr=$withval
30916else
30917 with_openexr='yes'
30918fi
30919
30920
30921if test "$with_openexr" != 'yes'; then
30922 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30923fi
30924
30925have_openexr='no'
30926OPENEXR_CFLAGS=""
30927OPENEXR_LIBS=""
30928OPENEXR_PKG=""
30929if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30931$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030932
30933pkg_failed=no
30934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30935$as_echo_n "checking for OPENEXR... " >&6; }
30936
30937if test -n "$OPENEXR_CFLAGS"; then
30938 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30939 elif test -n "$PKG_CONFIG"; then
30940 if test -n "$PKG_CONFIG" && \
30941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30942 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30943 ac_status=$?
30944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30945 test $ac_status = 0; }; then
30946 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30947else
30948 pkg_failed=yes
30949fi
30950 else
30951 pkg_failed=untried
30952fi
30953if test -n "$OPENEXR_LIBS"; then
30954 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30955 elif test -n "$PKG_CONFIG"; then
30956 if test -n "$PKG_CONFIG" && \
30957 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30958 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30959 ac_status=$?
30960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30961 test $ac_status = 0; }; then
30962 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30963else
30964 pkg_failed=yes
30965fi
30966 else
30967 pkg_failed=untried
30968fi
30969
30970
30971
30972if test $pkg_failed = yes; then
30973
30974if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30975 _pkg_short_errors_supported=yes
30976else
30977 _pkg_short_errors_supported=no
30978fi
30979 if test $_pkg_short_errors_supported = yes; then
30980 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30981 else
30982 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30983 fi
30984 # Put the nasty error message in config.log where it belongs
30985 echo "$OPENEXR_PKG_ERRORS" >&5
30986
30987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30988$as_echo "no" >&6; }
30989 have_openexr=no
30990elif test $pkg_failed = untried; then
30991 have_openexr=no
30992else
30993 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30994 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30996$as_echo "yes" >&6; }
30997 have_openexr=yes
30998fi
cristyad38abe2012-12-23 23:03:21 +000030999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31000$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031001fi
31002
31003if test "$have_openexr" = 'yes'; then
31004
cristy8b350f62009-11-15 23:12:43 +000031005$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031006
cristyc6722092012-10-14 00:19:31 +000031007 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031008 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
31009 fi
31010fi
31011
cristy73bd4a52010-10-05 11:24:23 +000031012 if test "$have_openexr" = 'yes'; then
31013 OPENEXR_DELEGATE_TRUE=
31014 OPENEXR_DELEGATE_FALSE='#'
31015else
31016 OPENEXR_DELEGATE_TRUE='#'
31017 OPENEXR_DELEGATE_FALSE=
31018fi
31019
cristy3ed852e2009-09-05 21:47:34 +000031020
31021
31022
31023
31024#
cristy41cbe8a2011-10-27 01:35:18 +000031025# Check for PANGO delegate library.
31026#
31027
31028# Check whether --with-pango was given.
31029if test "${with_pango+set}" = set; then :
31030 withval=$with_pango; with_pango=$withval
31031else
cristyfc3d0222012-02-07 15:05:57 +000031032 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000031033fi
31034
31035
31036if test "$with_pango" != 'yes'; then
31037 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31038fi
31039
31040have_pango='no'
cristya054b762012-03-26 23:16:00 +000031041have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000031042PANGO_CFLAGS=""
31043PANGO_LIBS=""
31044PANGO_PKG=""
31045if test "x$with_pango" = "xyes"; then
31046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31047$as_echo "-------------------------------------------------------------" >&6; }
31048
31049pkg_failed=no
31050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31051$as_echo_n "checking for PANGO... " >&6; }
31052
31053if test -n "$PANGO_CFLAGS"; then
31054 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31055 elif test -n "$PKG_CONFIG"; then
31056 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031057 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31058 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031059 ac_status=$?
31060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31061 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031062 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031063else
31064 pkg_failed=yes
31065fi
31066 else
31067 pkg_failed=untried
31068fi
31069if test -n "$PANGO_LIBS"; then
31070 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31071 elif test -n "$PKG_CONFIG"; then
31072 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031073 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31074 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031075 ac_status=$?
31076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31077 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031078 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031079else
31080 pkg_failed=yes
31081fi
31082 else
31083 pkg_failed=untried
31084fi
31085
31086
31087
31088if test $pkg_failed = yes; then
31089
31090if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31091 _pkg_short_errors_supported=yes
31092else
31093 _pkg_short_errors_supported=no
31094fi
31095 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000031096 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031097 else
cristya054b762012-03-26 23:16:00 +000031098 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031099 fi
31100 # Put the nasty error message in config.log where it belongs
31101 echo "$PANGO_PKG_ERRORS" >&5
31102
31103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31104$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031105 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031106elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000031107 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031108else
31109 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31110 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31112$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031113 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031114fi
31115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31116$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031117
31118pkg_failed=no
31119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31120$as_echo_n "checking for PANGO... " >&6; }
31121
31122if test -n "$PANGO_CFLAGS"; then
31123 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31124 elif test -n "$PKG_CONFIG"; then
31125 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031126 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31127 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031128 ac_status=$?
31129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31130 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031131 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031132else
31133 pkg_failed=yes
31134fi
31135 else
31136 pkg_failed=untried
31137fi
31138if test -n "$PANGO_LIBS"; then
31139 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31140 elif test -n "$PKG_CONFIG"; then
31141 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031142 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31143 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031144 ac_status=$?
31145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31146 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031147 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031148else
31149 pkg_failed=yes
31150fi
31151 else
31152 pkg_failed=untried
31153fi
31154
31155
31156
31157if test $pkg_failed = yes; then
31158
31159if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31160 _pkg_short_errors_supported=yes
31161else
31162 _pkg_short_errors_supported=no
31163fi
31164 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031165 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031166 else
cristy2542fc62011-12-06 17:50:25 +000031167 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031168 fi
31169 # Put the nasty error message in config.log where it belongs
31170 echo "$PANGO_PKG_ERRORS" >&5
31171
31172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31173$as_echo "no" >&6; }
31174 have_pango=no
31175elif test $pkg_failed = untried; then
31176 have_pango=no
31177else
31178 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31179 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31181$as_echo "yes" >&6; }
31182 have_pango=yes
31183fi
31184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31185$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031186fi
31187
31188if test "$have_pango" = 'yes'; then
31189
31190$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31191
cristyc6722092012-10-14 00:19:31 +000031192 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000031193 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31194 fi
31195fi
31196
cristya054b762012-03-26 23:16:00 +000031197if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031198
cristya054b762012-03-26 23:16:00 +000031199$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031200
cristyc6722092012-10-14 00:19:31 +000031201 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031202 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031203 fi
31204fi
31205
31206 if test "$have_pango" = 'yes'; then
31207 PANGO_DELEGATE_TRUE=
31208 PANGO_DELEGATE_FALSE='#'
31209else
31210 PANGO_DELEGATE_TRUE='#'
31211 PANGO_DELEGATE_FALSE=
31212fi
31213
cristya054b762012-03-26 23:16:00 +000031214 if test "$have_pangocairo" = 'yes'; then
31215 PANGOCAIRO_DELEGATE_TRUE=
31216 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031217else
cristya054b762012-03-26 23:16:00 +000031218 PANGOCAIRO_DELEGATE_TRUE='#'
31219 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031220fi
31221
31222
31223
31224
31225
31226#
cristy3ed852e2009-09-05 21:47:34 +000031227# Check for PNG delegate library.
31228#
31229
31230# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031231if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031232 withval=$with_png; with_png=$withval
31233else
31234 with_png='yes'
31235fi
31236
31237
31238if test "$with_png" != 'yes'; then
31239 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31240fi
31241
cristy81beccd2011-10-03 18:17:24 +000031242have_png='no'
31243PNG_LIBS=''
31244
31245if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000031246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31247$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31249$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31251$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031252 failed=0
31253 passed=0
31254 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31255if test "x$ac_cv_header_png_h" = xyes; then :
31256 passed=`expr $passed + 1`
31257else
31258 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031259fi
31260
cristy81beccd2011-10-03 18:17:24 +000031261
31262
31263 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000031264 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031265 if test "$have_png" = 'no' ; then
31266 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031267 pnglib='png'
31268 else
31269 pnglib="png1${var}"
31270 fi
31271
31272# Test for compatible LIBPNG library
31273 failed=0
31274 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031275 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031276 if test "${pnglib}" != 'png' ; then
31277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31278$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31280/* end confdefs.h. */
31281#include <stdio.h>
31282#include <stdlib.h>
31283#include <png.h>
31284
31285int
31286main ()
31287{
31288
31289#if PNG_LIBPNG_VER_MINOR != ${var}
31290#error LIBPNG library must be version 1${var}!
31291Kaboom, Kaboom
31292#endif
31293return 0;
31294
31295 ;
31296 return 0;
31297}
31298_ACEOF
31299if ac_fn_c_try_compile "$LINENO"; then :
31300 ac_cv_libpng_ok='yes'
31301else
31302 ac_cv_libpng_ok='no'
31303fi
31304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31305 if test "$ac_cv_libpng_ok" = 'yes' ; then
31306 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31308$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031309 else
31310 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000031311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31312$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031313 fi
31314 else
31315 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31317$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031318 fi
31319 fi
31320
31321 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000031322 if test "1${var}" = '17' ; then
31323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
31324$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
31325if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
31326 $as_echo_n "(cached) " >&6
31327else
31328 ac_check_lib_save_LIBS=$LIBS
31329LIBS="-lpng17 $LIBS"
31330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31331/* end confdefs.h. */
31332
31333/* Override any GCC internal prototype to avoid an error.
31334 Use char because int might match the return type of a GCC
31335 builtin and then its argument prototype would still apply. */
31336#ifdef __cplusplus
31337extern "C"
31338#endif
31339char png_get_io_ptr ();
31340int
31341main ()
31342{
31343return png_get_io_ptr ();
31344 ;
31345 return 0;
31346}
31347_ACEOF
31348if ac_fn_c_try_link "$LINENO"; then :
31349 ac_cv_lib_png17_png_get_io_ptr=yes
31350else
31351 ac_cv_lib_png17_png_get_io_ptr=no
31352fi
31353rm -f core conftest.err conftest.$ac_objext \
31354 conftest$ac_exeext conftest.$ac_ext
31355LIBS=$ac_check_lib_save_LIBS
31356fi
31357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
31358$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
31359if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
31360 passed=`expr $passed + 1`
31361else
31362 failed=`expr $failed + 1`
31363fi
31364
31365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
31366$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
31367if ${ac_cv_lib_png17_png_longjmp+:} false; then :
31368 $as_echo_n "(cached) " >&6
31369else
31370 ac_check_lib_save_LIBS=$LIBS
31371LIBS="-lpng17 $LIBS"
31372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31373/* end confdefs.h. */
31374
31375/* Override any GCC internal prototype to avoid an error.
31376 Use char because int might match the return type of a GCC
31377 builtin and then its argument prototype would still apply. */
31378#ifdef __cplusplus
31379extern "C"
31380#endif
31381char png_longjmp ();
31382int
31383main ()
31384{
31385return png_longjmp ();
31386 ;
31387 return 0;
31388}
31389_ACEOF
31390if ac_fn_c_try_link "$LINENO"; then :
31391 ac_cv_lib_png17_png_longjmp=yes
31392else
31393 ac_cv_lib_png17_png_longjmp=no
31394fi
31395rm -f core conftest.err conftest.$ac_objext \
31396 conftest$ac_exeext conftest.$ac_ext
31397LIBS=$ac_check_lib_save_LIBS
31398fi
31399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31400$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31401if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31402 passed=`expr $passed + 1`
31403else
31404 failed=`expr $failed + 1`
31405fi
31406
31407 fi
31408 if test "1${var}" = '16' ; then
31409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31410$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31411if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31412 $as_echo_n "(cached) " >&6
31413else
31414 ac_check_lib_save_LIBS=$LIBS
31415LIBS="-lpng16 $LIBS"
31416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31417/* end confdefs.h. */
31418
31419/* Override any GCC internal prototype to avoid an error.
31420 Use char because int might match the return type of a GCC
31421 builtin and then its argument prototype would still apply. */
31422#ifdef __cplusplus
31423extern "C"
31424#endif
31425char png_get_io_ptr ();
31426int
31427main ()
31428{
31429return png_get_io_ptr ();
31430 ;
31431 return 0;
31432}
31433_ACEOF
31434if ac_fn_c_try_link "$LINENO"; then :
31435 ac_cv_lib_png16_png_get_io_ptr=yes
31436else
31437 ac_cv_lib_png16_png_get_io_ptr=no
31438fi
31439rm -f core conftest.err conftest.$ac_objext \
31440 conftest$ac_exeext conftest.$ac_ext
31441LIBS=$ac_check_lib_save_LIBS
31442fi
31443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31444$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31445if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31446 passed=`expr $passed + 1`
31447else
31448 failed=`expr $failed + 1`
31449fi
31450
31451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31452$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31453if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31454 $as_echo_n "(cached) " >&6
31455else
31456 ac_check_lib_save_LIBS=$LIBS
31457LIBS="-lpng16 $LIBS"
31458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31459/* end confdefs.h. */
31460
31461/* Override any GCC internal prototype to avoid an error.
31462 Use char because int might match the return type of a GCC
31463 builtin and then its argument prototype would still apply. */
31464#ifdef __cplusplus
31465extern "C"
31466#endif
31467char png_longjmp ();
31468int
31469main ()
31470{
31471return png_longjmp ();
31472 ;
31473 return 0;
31474}
31475_ACEOF
31476if ac_fn_c_try_link "$LINENO"; then :
31477 ac_cv_lib_png16_png_longjmp=yes
31478else
31479 ac_cv_lib_png16_png_longjmp=no
31480fi
31481rm -f core conftest.err conftest.$ac_objext \
31482 conftest$ac_exeext conftest.$ac_ext
31483LIBS=$ac_check_lib_save_LIBS
31484fi
31485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31486$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31487if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31488 passed=`expr $passed + 1`
31489else
31490 failed=`expr $failed + 1`
31491fi
31492
31493 fi
cristy81beccd2011-10-03 18:17:24 +000031494 if test "1${var}" = '15' ; then
31495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31496$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31497if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31498 $as_echo_n "(cached) " >&6
31499else
31500 ac_check_lib_save_LIBS=$LIBS
31501LIBS="-lpng15 $LIBS"
31502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31503/* end confdefs.h. */
31504
31505/* Override any GCC internal prototype to avoid an error.
31506 Use char because int might match the return type of a GCC
31507 builtin and then its argument prototype would still apply. */
31508#ifdef __cplusplus
31509extern "C"
31510#endif
31511char png_get_io_ptr ();
31512int
31513main ()
31514{
31515return png_get_io_ptr ();
31516 ;
31517 return 0;
31518}
31519_ACEOF
31520if ac_fn_c_try_link "$LINENO"; then :
31521 ac_cv_lib_png15_png_get_io_ptr=yes
31522else
31523 ac_cv_lib_png15_png_get_io_ptr=no
31524fi
31525rm -f core conftest.err conftest.$ac_objext \
31526 conftest$ac_exeext conftest.$ac_ext
31527LIBS=$ac_check_lib_save_LIBS
31528fi
31529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31530$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31531if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31532 passed=`expr $passed + 1`
31533else
31534 failed=`expr $failed + 1`
31535fi
31536
31537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31538$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31539if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31540 $as_echo_n "(cached) " >&6
31541else
31542 ac_check_lib_save_LIBS=$LIBS
31543LIBS="-lpng15 $LIBS"
31544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31545/* end confdefs.h. */
31546
31547/* Override any GCC internal prototype to avoid an error.
31548 Use char because int might match the return type of a GCC
31549 builtin and then its argument prototype would still apply. */
31550#ifdef __cplusplus
31551extern "C"
31552#endif
31553char png_longjmp ();
31554int
31555main ()
31556{
31557return png_longjmp ();
31558 ;
31559 return 0;
31560}
31561_ACEOF
31562if ac_fn_c_try_link "$LINENO"; then :
31563 ac_cv_lib_png15_png_longjmp=yes
31564else
31565 ac_cv_lib_png15_png_longjmp=no
31566fi
31567rm -f core conftest.err conftest.$ac_objext \
31568 conftest$ac_exeext conftest.$ac_ext
31569LIBS=$ac_check_lib_save_LIBS
31570fi
31571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31572$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31573if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31574 passed=`expr $passed + 1`
31575else
31576 failed=`expr $failed + 1`
31577fi
31578
31579 fi
31580 if test "1${var}" = '14' ; then
31581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31582$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31583if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31584 $as_echo_n "(cached) " >&6
31585else
31586 ac_check_lib_save_LIBS=$LIBS
31587LIBS="-lpng14 $LIBS"
31588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31589/* end confdefs.h. */
31590
31591/* Override any GCC internal prototype to avoid an error.
31592 Use char because int might match the return type of a GCC
31593 builtin and then its argument prototype would still apply. */
31594#ifdef __cplusplus
31595extern "C"
31596#endif
31597char png_get_io_ptr ();
31598int
31599main ()
31600{
31601return png_get_io_ptr ();
31602 ;
31603 return 0;
31604}
31605_ACEOF
31606if ac_fn_c_try_link "$LINENO"; then :
31607 ac_cv_lib_png14_png_get_io_ptr=yes
31608else
31609 ac_cv_lib_png14_png_get_io_ptr=no
31610fi
31611rm -f core conftest.err conftest.$ac_objext \
31612 conftest$ac_exeext conftest.$ac_ext
31613LIBS=$ac_check_lib_save_LIBS
31614fi
31615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31616$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31617if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31618 passed=`expr $passed + 1`
31619else
31620 failed=`expr $failed + 1`
31621fi
31622
31623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31624$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31625if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31626 $as_echo_n "(cached) " >&6
31627else
31628 ac_check_lib_save_LIBS=$LIBS
31629LIBS="-lpng14 $LIBS"
31630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31631/* end confdefs.h. */
31632
31633/* Override any GCC internal prototype to avoid an error.
31634 Use char because int might match the return type of a GCC
31635 builtin and then its argument prototype would still apply. */
31636#ifdef __cplusplus
31637extern "C"
31638#endif
31639char png_get_io_state ();
31640int
31641main ()
31642{
31643return png_get_io_state ();
31644 ;
31645 return 0;
31646}
31647_ACEOF
31648if ac_fn_c_try_link "$LINENO"; then :
31649 ac_cv_lib_png14_png_get_io_state=yes
31650else
31651 ac_cv_lib_png14_png_get_io_state=no
31652fi
31653rm -f core conftest.err conftest.$ac_objext \
31654 conftest$ac_exeext conftest.$ac_ext
31655LIBS=$ac_check_lib_save_LIBS
31656fi
31657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31658$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31659if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31660 passed=`expr $passed + 1`
31661else
31662 failed=`expr $failed + 1`
31663fi
31664
31665 fi
31666 if test "1${var}" = '12' ; then
31667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31668$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31669if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31670 $as_echo_n "(cached) " >&6
31671else
31672 ac_check_lib_save_LIBS=$LIBS
31673LIBS="-lpng12 $LIBS"
31674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31675/* end confdefs.h. */
31676
31677/* Override any GCC internal prototype to avoid an error.
31678 Use char because int might match the return type of a GCC
31679 builtin and then its argument prototype would still apply. */
31680#ifdef __cplusplus
31681extern "C"
31682#endif
31683char png_get_io_ptr ();
31684int
31685main ()
31686{
31687return png_get_io_ptr ();
31688 ;
31689 return 0;
31690}
31691_ACEOF
31692if ac_fn_c_try_link "$LINENO"; then :
31693 ac_cv_lib_png12_png_get_io_ptr=yes
31694else
31695 ac_cv_lib_png12_png_get_io_ptr=no
31696fi
31697rm -f core conftest.err conftest.$ac_objext \
31698 conftest$ac_exeext conftest.$ac_ext
31699LIBS=$ac_check_lib_save_LIBS
31700fi
31701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31702$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31703if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31704 passed=`expr $passed + 1`
31705else
31706 failed=`expr $failed + 1`
31707fi
31708
31709 fi
31710 if test "1${var}" = '1' ; then
31711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31712$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31713if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31714 $as_echo_n "(cached) " >&6
31715else
31716 ac_check_lib_save_LIBS=$LIBS
31717LIBS="-lpng $LIBS"
31718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31719/* end confdefs.h. */
31720
31721/* Override any GCC internal prototype to avoid an error.
31722 Use char because int might match the return type of a GCC
31723 builtin and then its argument prototype would still apply. */
31724#ifdef __cplusplus
31725extern "C"
31726#endif
31727char png_get_io_ptr ();
31728int
31729main ()
31730{
31731return png_get_io_ptr ();
31732 ;
31733 return 0;
31734}
31735_ACEOF
31736if ac_fn_c_try_link "$LINENO"; then :
31737 ac_cv_lib_png_png_get_io_ptr=yes
31738else
31739 ac_cv_lib_png_png_get_io_ptr=no
31740fi
31741rm -f core conftest.err conftest.$ac_objext \
31742 conftest$ac_exeext conftest.$ac_ext
31743LIBS=$ac_check_lib_save_LIBS
31744fi
31745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31746$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31747if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31748 passed=`expr $passed + 1`
31749else
31750 failed=`expr $failed + 1`
31751fi
31752
31753 fi
31754 if test $passed -gt 0 -a $failed -le 0 ; then
31755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31756$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31757 if test $passed -gt 0 ; then
31758 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31760$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031761 have_png='no (failed tests)'
31762 else
31763 PNG_LIBS="-l${pnglib}"
31764 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031765
cristy8b350f62009-11-15 23:12:43 +000031766$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031767
cristyad38abe2012-12-23 23:03:21 +000031768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31769$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031770 have_png='yes'
31771 fi
31772 fi
31773 fi
31774 fi
31775 fi
31776 done
31777 fi
cristy3ed852e2009-09-05 21:47:34 +000031778fi
cristy64877302011-08-23 19:10:31 +000031779
cristy73bd4a52010-10-05 11:24:23 +000031780 if test "$have_png" = 'yes'; then
31781 PNG_DELEGATE_TRUE=
31782 PNG_DELEGATE_FALSE='#'
31783else
31784 PNG_DELEGATE_TRUE='#'
31785 PNG_DELEGATE_FALSE=
31786fi
31787
cristy3ed852e2009-09-05 21:47:34 +000031788
cristy50d3f5c2011-09-10 20:09:06 +000031789
cristy3ed852e2009-09-05 21:47:34 +000031790
31791
31792#
31793# Check for RSVG delegate library.
31794#
31795
31796# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031797if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031798 withval=$with_rsvg; with_rsvg=$withval
31799else
cristy1164d5f2012-08-15 00:58:25 +000031800 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031801fi
31802
31803
31804if test "$with_rsvg" != 'yes'; then
31805 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31806fi
31807
31808have_rsvg='no'
31809have_cairo='no'
31810RSVG_CFLAGS=""
31811RSVG_LIBS=""
31812RSVG_PKG=""
31813if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31815$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031816
31817pkg_failed=no
31818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31819$as_echo_n "checking for RSVG... " >&6; }
31820
31821if test -n "$RSVG_CFLAGS"; then
31822 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31823 elif test -n "$PKG_CONFIG"; then
31824 if test -n "$PKG_CONFIG" && \
31825 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31826 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31827 ac_status=$?
31828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31829 test $ac_status = 0; }; then
31830 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31831else
31832 pkg_failed=yes
31833fi
31834 else
31835 pkg_failed=untried
31836fi
31837if test -n "$RSVG_LIBS"; then
31838 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31839 elif test -n "$PKG_CONFIG"; then
31840 if test -n "$PKG_CONFIG" && \
31841 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31842 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31843 ac_status=$?
31844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31845 test $ac_status = 0; }; then
31846 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31847else
31848 pkg_failed=yes
31849fi
31850 else
31851 pkg_failed=untried
31852fi
31853
31854
31855
31856if test $pkg_failed = yes; then
31857
31858if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31859 _pkg_short_errors_supported=yes
31860else
31861 _pkg_short_errors_supported=no
31862fi
31863 if test $_pkg_short_errors_supported = yes; then
31864 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31865 else
31866 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31867 fi
31868 # Put the nasty error message in config.log where it belongs
31869 echo "$RSVG_PKG_ERRORS" >&5
31870
31871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31872$as_echo "no" >&6; }
31873 have_rsvg=no
31874elif test $pkg_failed = untried; then
31875 have_rsvg=no
31876else
31877 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31878 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31880$as_echo "yes" >&6; }
31881 have_rsvg=yes
31882fi
cristyad38abe2012-12-23 23:03:21 +000031883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31884$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031885
31886pkg_failed=no
31887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31888$as_echo_n "checking for CAIRO_SVG... " >&6; }
31889
31890if test -n "$CAIRO_SVG_CFLAGS"; then
31891 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31892 elif test -n "$PKG_CONFIG"; then
31893 if test -n "$PKG_CONFIG" && \
31894 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31895 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31896 ac_status=$?
31897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31898 test $ac_status = 0; }; then
31899 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31900else
31901 pkg_failed=yes
31902fi
31903 else
31904 pkg_failed=untried
31905fi
31906if test -n "$CAIRO_SVG_LIBS"; then
31907 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31908 elif test -n "$PKG_CONFIG"; then
31909 if test -n "$PKG_CONFIG" && \
31910 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31911 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31912 ac_status=$?
31913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31914 test $ac_status = 0; }; then
31915 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31916else
31917 pkg_failed=yes
31918fi
31919 else
31920 pkg_failed=untried
31921fi
31922
31923
31924
31925if test $pkg_failed = yes; then
31926
31927if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31928 _pkg_short_errors_supported=yes
31929else
31930 _pkg_short_errors_supported=no
31931fi
31932 if test $_pkg_short_errors_supported = yes; then
31933 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31934 else
31935 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31936 fi
31937 # Put the nasty error message in config.log where it belongs
31938 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31939
31940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31941$as_echo "no" >&6; }
31942 have_cairo=no
31943elif test $pkg_failed = untried; then
31944 have_cairo=no
31945else
31946 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31947 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31949$as_echo "yes" >&6; }
31950 have_cairo=yes
31951fi
cristyad38abe2012-12-23 23:03:21 +000031952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31953$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031954fi
31955
31956if test "$have_rsvg" = 'yes'; then
31957
cristy8b350f62009-11-15 23:12:43 +000031958$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031959
cristyc6722092012-10-14 00:19:31 +000031960 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031961 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31962 fi
31963fi
31964
31965if test "$have_cairo" = 'yes'; then
31966
cristy8b350f62009-11-15 23:12:43 +000031967$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031968
cristyc6722092012-10-14 00:19:31 +000031969 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031970 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31971 fi
31972fi
31973
cristy73bd4a52010-10-05 11:24:23 +000031974 if test "$have_rsvg" = 'yes'; then
31975 RSVG_DELEGATE_TRUE=
31976 RSVG_DELEGATE_FALSE='#'
31977else
31978 RSVG_DELEGATE_TRUE='#'
31979 RSVG_DELEGATE_FALSE=
31980fi
31981
31982 if test "$have_cairo" = 'yes'; then
31983 CAIRO_DELEGATE_TRUE=
31984 CAIRO_DELEGATE_FALSE='#'
31985else
31986 CAIRO_DELEGATE_TRUE='#'
31987 CAIRO_DELEGATE_FALSE=
31988fi
31989
cristy3ed852e2009-09-05 21:47:34 +000031990
31991
31992
31993
31994#
31995# Check for TIFF delegate library.
31996#
31997
31998# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031999if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032000 withval=$with_tiff; with_tiff=$withval
32001else
32002 with_tiff='yes'
32003fi
32004
32005
32006if test "$with_tiff" != 'yes'; then
32007 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
32008fi
32009
32010have_tiff='no'
32011TIFF_LIBS=''
32012if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32014$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032016$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32018$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032019 failed=0
32020 passed=0
cristy8b350f62009-11-15 23:12:43 +000032021 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032022if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032023 passed=`expr $passed + 1`
32024else
32025 failed=`expr $failed + 1`
32026fi
32027
32028
cristy8b350f62009-11-15 23:12:43 +000032029 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032030if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032031 passed=`expr $passed + 1`
32032else
32033 failed=`expr $failed + 1`
32034fi
32035
32036
cristy8b350f62009-11-15 23:12:43 +000032037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032038$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032039if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032040 $as_echo_n "(cached) " >&6
32041else
32042 ac_check_lib_save_LIBS=$LIBS
32043LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032045/* end confdefs.h. */
32046
32047/* Override any GCC internal prototype to avoid an error.
32048 Use char because int might match the return type of a GCC
32049 builtin and then its argument prototype would still apply. */
32050#ifdef __cplusplus
32051extern "C"
32052#endif
32053char TIFFOpen ();
32054int
32055main ()
32056{
32057return TIFFOpen ();
32058 ;
32059 return 0;
32060}
32061_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032062if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032063 ac_cv_lib_tiff_TIFFOpen=yes
32064else
cristy8b350f62009-11-15 23:12:43 +000032065 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032066fi
cristy8b350f62009-11-15 23:12:43 +000032067rm -f core conftest.err conftest.$ac_objext \
32068 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032069LIBS=$ac_check_lib_save_LIBS
32070fi
cristy8b350f62009-11-15 23:12:43 +000032071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032072$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032073if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032074 passed=`expr $passed + 1`
32075else
32076 failed=`expr $failed + 1`
32077fi
32078
cristy8b350f62009-11-15 23:12:43 +000032079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032080$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032081if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032082 $as_echo_n "(cached) " >&6
32083else
32084 ac_check_lib_save_LIBS=$LIBS
32085LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032087/* end confdefs.h. */
32088
32089/* Override any GCC internal prototype to avoid an error.
32090 Use char because int might match the return type of a GCC
32091 builtin and then its argument prototype would still apply. */
32092#ifdef __cplusplus
32093extern "C"
32094#endif
32095char TIFFClientOpen ();
32096int
32097main ()
32098{
32099return TIFFClientOpen ();
32100 ;
32101 return 0;
32102}
32103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032104if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032105 ac_cv_lib_tiff_TIFFClientOpen=yes
32106else
cristy8b350f62009-11-15 23:12:43 +000032107 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032108fi
cristy8b350f62009-11-15 23:12:43 +000032109rm -f core conftest.err conftest.$ac_objext \
32110 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032111LIBS=$ac_check_lib_save_LIBS
32112fi
cristy8b350f62009-11-15 23:12:43 +000032113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032114$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032115if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032116 passed=`expr $passed + 1`
32117else
32118 failed=`expr $failed + 1`
32119fi
32120
cristy8b350f62009-11-15 23:12:43 +000032121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032122$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032123if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032124 $as_echo_n "(cached) " >&6
32125else
32126 ac_check_lib_save_LIBS=$LIBS
32127LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032129/* end confdefs.h. */
32130
32131/* Override any GCC internal prototype to avoid an error.
32132 Use char because int might match the return type of a GCC
32133 builtin and then its argument prototype would still apply. */
32134#ifdef __cplusplus
32135extern "C"
32136#endif
32137char TIFFIsByteSwapped ();
32138int
32139main ()
32140{
32141return TIFFIsByteSwapped ();
32142 ;
32143 return 0;
32144}
32145_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032146if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032147 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
32148else
cristy8b350f62009-11-15 23:12:43 +000032149 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000032150fi
cristy8b350f62009-11-15 23:12:43 +000032151rm -f core conftest.err conftest.$ac_objext \
32152 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032153LIBS=$ac_check_lib_save_LIBS
32154fi
cristy8b350f62009-11-15 23:12:43 +000032155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000032156$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000032157if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032158 passed=`expr $passed + 1`
32159else
32160 failed=`expr $failed + 1`
32161fi
32162
cristy8b350f62009-11-15 23:12:43 +000032163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032164$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032165if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032166 $as_echo_n "(cached) " >&6
32167else
32168 ac_check_lib_save_LIBS=$LIBS
32169LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032171/* end confdefs.h. */
32172
32173/* Override any GCC internal prototype to avoid an error.
32174 Use char because int might match the return type of a GCC
32175 builtin and then its argument prototype would still apply. */
32176#ifdef __cplusplus
32177extern "C"
32178#endif
32179char TIFFReadRGBATile ();
32180int
32181main ()
32182{
32183return TIFFReadRGBATile ();
32184 ;
32185 return 0;
32186}
32187_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032188if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032189 ac_cv_lib_tiff_TIFFReadRGBATile=yes
32190else
cristy8b350f62009-11-15 23:12:43 +000032191 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000032192fi
cristy8b350f62009-11-15 23:12:43 +000032193rm -f core conftest.err conftest.$ac_objext \
32194 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032195LIBS=$ac_check_lib_save_LIBS
32196fi
cristy8b350f62009-11-15 23:12:43 +000032197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000032198$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000032199if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032200 passed=`expr $passed + 1`
32201else
32202 failed=`expr $failed + 1`
32203fi
32204
cristy8b350f62009-11-15 23:12:43 +000032205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032206$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032207if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032208 $as_echo_n "(cached) " >&6
32209else
32210 ac_check_lib_save_LIBS=$LIBS
32211LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032213/* end confdefs.h. */
32214
32215/* Override any GCC internal prototype to avoid an error.
32216 Use char because int might match the return type of a GCC
32217 builtin and then its argument prototype would still apply. */
32218#ifdef __cplusplus
32219extern "C"
32220#endif
32221char TIFFReadRGBAStrip ();
32222int
32223main ()
32224{
32225return TIFFReadRGBAStrip ();
32226 ;
32227 return 0;
32228}
32229_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032230if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032231 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32232else
cristy8b350f62009-11-15 23:12:43 +000032233 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000032234fi
cristy8b350f62009-11-15 23:12:43 +000032235rm -f core conftest.err conftest.$ac_objext \
32236 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032237LIBS=$ac_check_lib_save_LIBS
32238fi
cristy8b350f62009-11-15 23:12:43 +000032239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000032240$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000032241if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032242 passed=`expr $passed + 1`
32243else
32244 failed=`expr $failed + 1`
32245fi
32246
cristy8b350f62009-11-15 23:12:43 +000032247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032248$as_echo_n "checking if TIFF package is complete... " >&6; }
32249 if test $passed -gt 0; then
32250 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32252$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032253 have_tiff='no (failed tests)'
32254 else
32255 TIFF_LIBS='-ltiff'
32256 LIBS="$TIFF_LIBS $LIBS"
32257
cristy8b350f62009-11-15 23:12:43 +000032258$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032259
cristyad38abe2012-12-23 23:03:21 +000032260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32261$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032262 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032263 for ac_header in tiffconf.h
32264do :
32265 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032266if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032267 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032268#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032269_ACEOF
32270
32271fi
32272
32273done
32274
cristy8b350f62009-11-15 23:12:43 +000032275 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032276 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32277 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32278 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032279do :
32280 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32281ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032282if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032283 cat >>confdefs.h <<_ACEOF
32284#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32285_ACEOF
32286
32287fi
32288done
32289
32290 fi
32291 else
cristyad38abe2012-12-23 23:03:21 +000032292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32293$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032294 fi
32295fi
cristy73bd4a52010-10-05 11:24:23 +000032296 if test "$have_tiff" = 'yes'; then
32297 TIFF_DELEGATE_TRUE=
32298 TIFF_DELEGATE_FALSE='#'
32299else
32300 TIFF_DELEGATE_TRUE='#'
32301 TIFF_DELEGATE_FALSE=
32302fi
32303
cristy3ed852e2009-09-05 21:47:34 +000032304
32305
32306
32307#
cristyb1860752011-03-14 00:27:46 +000032308# Check for WEBP delegate library.
32309#
32310
32311# Check whether --with-webp was given.
32312if test "${with_webp+set}" = set; then :
32313 withval=$with_webp; with_webp=$withval
32314else
32315 with_webp='yes'
32316fi
32317
32318
32319if test "$with_webp" != 'yes'; then
32320 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32321fi
32322
32323have_webp='no'
32324WEBP_LIBS=''
32325if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32327$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000032328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32329$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32331$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000032332 failed=0
32333 passed=0
32334 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32335if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32336 passed=`expr $passed + 1`
32337else
32338 failed=`expr $failed + 1`
32339fi
32340
32341
cristy6d670312013-03-22 23:23:01 +000032342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
32343$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
32344if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000032345 $as_echo_n "(cached) " >&6
32346else
32347 ac_check_lib_save_LIBS=$LIBS
32348LIBS="-lwebp $LIBS"
32349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32350/* end confdefs.h. */
32351
32352/* Override any GCC internal prototype to avoid an error.
32353 Use char because int might match the return type of a GCC
32354 builtin and then its argument prototype would still apply. */
32355#ifdef __cplusplus
32356extern "C"
32357#endif
cristy6d670312013-03-22 23:23:01 +000032358char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032359int
32360main ()
32361{
cristy6d670312013-03-22 23:23:01 +000032362return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032363 ;
32364 return 0;
32365}
32366_ACEOF
32367if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032368 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032369else
cristy6d670312013-03-22 23:23:01 +000032370 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032371fi
32372rm -f core conftest.err conftest.$ac_objext \
32373 conftest$ac_exeext conftest.$ac_ext
32374LIBS=$ac_check_lib_save_LIBS
32375fi
cristy6d670312013-03-22 23:23:01 +000032376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32377$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32378if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032379 passed=`expr $passed + 1`
32380else
32381 failed=`expr $failed + 1`
32382fi
32383
32384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32385$as_echo_n "checking if WEBP package is complete... " >&6; }
32386 if test $passed -gt 0; then
32387 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32389$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032390 have_webp='no (failed tests)'
32391 else
32392 WEBP_LIBS='-lwebp'
32393 LIBS="$WEBP_LIBS $LIBS"
32394
32395$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32396
cristyad38abe2012-12-23 23:03:21 +000032397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32398$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032399 have_webp='yes'
32400 fi
32401 else
cristyad38abe2012-12-23 23:03:21 +000032402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32403$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032404 fi
32405fi
32406 if test "$have_webp" = 'yes'; then
32407 WEBP_DELEGATE_TRUE=
32408 WEBP_DELEGATE_FALSE='#'
32409else
32410 WEBP_DELEGATE_TRUE='#'
32411 WEBP_DELEGATE_FALSE=
32412fi
32413
32414
32415
32416
32417#
cristy3ed852e2009-09-05 21:47:34 +000032418# Set Windows font directory.
32419#
32420
32421# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032422if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032423 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32424else
cristy5a3dc992014-12-05 19:50:04 +000032425 with_windows_font_dir='default'
cristy3ed852e2009-09-05 21:47:34 +000032426fi
32427
cristy5a3dc992014-12-05 19:50:04 +000032428
32429if test "$with_windows_font_dir" != 'default'; then
cristy3ed852e2009-09-05 21:47:34 +000032430 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32431fi
32432
32433
32434#
32435# Check for WMF delegate library.
32436#
32437
32438# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032439if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032440 withval=$with_wmf; with_wmf=$withval
32441else
cristyfc3d0222012-02-07 15:05:57 +000032442 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032443fi
32444
32445
32446if test "$with_wmf" != 'yes'; then
32447 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32448fi
32449
32450have_wmf='no'
32451WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032452WMF_LIBS_DEPS=''
32453OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032454if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32456$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032458$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32460$as_echo "" >&6; }
32461 have_libwmf='no'
32462 have_libwmflite='no'
32463 have_libwmf_ipa_h='no'
32464
32465 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32466"
32467if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32468 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032469fi
32470
32471
cristy03f7cf92011-12-15 01:40:41 +000032472 if test "$have_libwmf_ipa_h" = 'yes'; then
32473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32474$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32475if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032476 $as_echo_n "(cached) " >&6
32477else
32478 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032479LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032481/* end confdefs.h. */
32482
32483/* Override any GCC internal prototype to avoid an error.
32484 Use char because int might match the return type of a GCC
32485 builtin and then its argument prototype would still apply. */
32486#ifdef __cplusplus
32487extern "C"
32488#endif
cristy03f7cf92011-12-15 01:40:41 +000032489char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032490int
32491main ()
32492{
cristy03f7cf92011-12-15 01:40:41 +000032493return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032494 ;
32495 return 0;
32496}
32497_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032498if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032499 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032500else
cristy03f7cf92011-12-15 01:40:41 +000032501 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032502fi
cristy8b350f62009-11-15 23:12:43 +000032503rm -f core conftest.err conftest.$ac_objext \
32504 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032505LIBS=$ac_check_lib_save_LIBS
32506fi
cristy03f7cf92011-12-15 01:40:41 +000032507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32508$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32509if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32510 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032511fi
32512
cristy03f7cf92011-12-15 01:40:41 +000032513 if test "$have_libwmflite" = 'yes'; then
32514
32515$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32516
32517 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032518 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032519 have_wmf='yes'
32520 else
32521 WMF_LIBS_DEPS=''
32522 WMF_CONFIG_LIBS=`libwmf-config --libs`
32523 for lib in xml2 expat freetype jpeg png z; do
32524 testlib="-l${lib}"
32525 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32526 done
32527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32528$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32529if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32530 $as_echo_n "(cached) " >&6
32531else
32532 ac_check_lib_save_LIBS=$LIBS
32533LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32535/* end confdefs.h. */
32536
32537/* Override any GCC internal prototype to avoid an error.
32538 Use char because int might match the return type of a GCC
32539 builtin and then its argument prototype would still apply. */
32540#ifdef __cplusplus
32541extern "C"
32542#endif
32543char wmf_api_create ();
32544int
32545main ()
32546{
32547return wmf_api_create ();
32548 ;
32549 return 0;
32550}
32551_ACEOF
32552if ac_fn_c_try_link "$LINENO"; then :
32553 ac_cv_lib_wmf_wmf_api_create=yes
32554else
32555 ac_cv_lib_wmf_wmf_api_create=no
32556fi
32557rm -f core conftest.err conftest.$ac_objext \
32558 conftest$ac_exeext conftest.$ac_ext
32559LIBS=$ac_check_lib_save_LIBS
32560fi
32561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32562$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32563if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32564 have_libwmf='yes'
32565fi
32566
32567 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032568
cristy8b350f62009-11-15 23:12:43 +000032569$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032570
cristy03f7cf92011-12-15 01:40:41 +000032571 WMF_LIBS='-lwmf'
32572 LIBS="$WMF_LIBS $LIBS"
32573 have_wmf='yes'
32574 else
32575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32576$as_echo "no -- some components failed test" >&6; }
32577 have_wmf='no (failed tests)'
32578 have_wmflite='no (failed tests)'
32579 LIBS="$OLIBS"
32580 WMF_LIBS=''
32581 fi
glennrp33e524b2011-08-24 17:41:57 +000032582 fi
cristy03f7cf92011-12-15 01:40:41 +000032583 fi
32584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32585$as_echo_n "checking if WMF package is complete... " >&6; }
32586 if test "$have_wmf" = 'yes'; then
32587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32588$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032589 else
cristy03f7cf92011-12-15 01:40:41 +000032590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32591$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032592 fi
cristy3ed852e2009-09-05 21:47:34 +000032593fi
cristy73bd4a52010-10-05 11:24:23 +000032594 if test "$have_wmf" = 'yes'; then
32595 WMF_DELEGATE_TRUE=
32596 WMF_DELEGATE_FALSE='#'
32597else
32598 WMF_DELEGATE_TRUE='#'
32599 WMF_DELEGATE_FALSE=
32600fi
32601
cristy3ed852e2009-09-05 21:47:34 +000032602
32603
32604
cristy81beccd2011-10-03 18:17:24 +000032605
32606
cristy3ed852e2009-09-05 21:47:34 +000032607#
32608# Check for XML delegate library.
32609#
32610
32611# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032612if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032613 withval=$with_xml; with_xml=$withval
32614else
cristyfc3d0222012-02-07 15:05:57 +000032615 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032616fi
32617
32618
cristy81beccd2011-10-03 18:17:24 +000032619if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032620 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32621fi
32622
cristy81beccd2011-10-03 18:17:24 +000032623have_xml='no'
32624XML_LIBS=''
32625if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32627$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32629$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32631$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032632 PERSIST_LDFLAGS=$LDFLAGS
32633 PERSIST_CPPFLAGS=$CPPFLAGS
32634 xml2_config=''
32635 # Extract the first word of "xml2-config", so it can be a program name with args.
32636set dummy xml2-config; ac_word=$2
32637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32638$as_echo_n "checking for $ac_word... " >&6; }
32639if ${ac_cv_path_xml2_config+:} false; then :
32640 $as_echo_n "(cached) " >&6
32641else
32642 case $xml2_config in
32643 [\\/]* | ?:[\\/]*)
32644 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32645 ;;
32646 *)
32647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32648for as_dir in $PATH
32649do
32650 IFS=$as_save_IFS
32651 test -z "$as_dir" && as_dir=.
32652 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032654 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32656 break 2
32657 fi
32658done
32659 done
32660IFS=$as_save_IFS
32661
32662 ;;
32663esac
32664fi
32665xml2_config=$ac_cv_path_xml2_config
32666if test -n "$xml2_config"; then
32667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32668$as_echo "$xml2_config" >&6; }
32669else
32670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32671$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032672fi
32673
cristy81beccd2011-10-03 18:17:24 +000032674 if test -n "$xml2_config"; then
32675 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32676 # the shared library installed under /usr/lib, whereas the package
32677 # installs itself under $prefix/libxml and $prefix/lib.
cristy4a069772014-10-05 19:26:36 +000032678 xml2_prefix=`${xml2_config} --prefix`
cristy81beccd2011-10-03 18:17:24 +000032679 if test -d "${xml2_prefix}/include/libxml2"; then
32680 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32681 fi
32682 if test "${xml2_prefix}" != '/usr'; then
32683 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32684 fi
32685 fi
32686 failed=0
32687 passed=0
32688 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32689if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32690 passed=`expr $passed + 1`
32691else
32692 failed=`expr $failed + 1`
32693fi
32694
32695
32696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32697$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32698if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32699 $as_echo_n "(cached) " >&6
32700else
32701 ac_check_lib_save_LIBS=$LIBS
32702LIBS="-lxml2 $LIBS"
32703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32704/* end confdefs.h. */
32705
32706/* Override any GCC internal prototype to avoid an error.
32707 Use char because int might match the return type of a GCC
32708 builtin and then its argument prototype would still apply. */
32709#ifdef __cplusplus
32710extern "C"
32711#endif
32712char xmlSAXVersion ();
32713int
32714main ()
32715{
32716return xmlSAXVersion ();
32717 ;
32718 return 0;
32719}
32720_ACEOF
32721if ac_fn_c_try_link "$LINENO"; then :
32722 ac_cv_lib_xml2_xmlSAXVersion=yes
32723else
32724 ac_cv_lib_xml2_xmlSAXVersion=no
32725fi
32726rm -f core conftest.err conftest.$ac_objext \
32727 conftest$ac_exeext conftest.$ac_ext
32728LIBS=$ac_check_lib_save_LIBS
32729fi
32730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32731$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32732if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32733 passed=`expr $passed + 1`
32734else
32735 failed=`expr $failed + 1`
32736fi
32737
32738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32739$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32740if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32741 $as_echo_n "(cached) " >&6
32742else
32743 ac_check_lib_save_LIBS=$LIBS
32744LIBS="-lxml2 $LIBS"
32745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32746/* end confdefs.h. */
32747
32748/* Override any GCC internal prototype to avoid an error.
32749 Use char because int might match the return type of a GCC
32750 builtin and then its argument prototype would still apply. */
32751#ifdef __cplusplus
32752extern "C"
32753#endif
32754char xmlParseChunk ();
32755int
32756main ()
32757{
32758return xmlParseChunk ();
32759 ;
32760 return 0;
32761}
32762_ACEOF
32763if ac_fn_c_try_link "$LINENO"; then :
32764 ac_cv_lib_xml2_xmlParseChunk=yes
32765else
32766 ac_cv_lib_xml2_xmlParseChunk=no
32767fi
32768rm -f core conftest.err conftest.$ac_objext \
32769 conftest$ac_exeext conftest.$ac_ext
32770LIBS=$ac_check_lib_save_LIBS
32771fi
32772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32773$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32774if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32775 passed=`expr $passed + 1`
32776else
32777 failed=`expr $failed + 1`
32778fi
32779
32780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32781$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32782if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32783 $as_echo_n "(cached) " >&6
32784else
32785 ac_check_lib_save_LIBS=$LIBS
32786LIBS="-lxml2 $LIBS"
32787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32788/* end confdefs.h. */
32789
32790/* Override any GCC internal prototype to avoid an error.
32791 Use char because int might match the return type of a GCC
32792 builtin and then its argument prototype would still apply. */
32793#ifdef __cplusplus
32794extern "C"
32795#endif
32796char xmlCreatePushParserCtxt ();
32797int
32798main ()
32799{
32800return xmlCreatePushParserCtxt ();
32801 ;
32802 return 0;
32803}
32804_ACEOF
32805if ac_fn_c_try_link "$LINENO"; then :
32806 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32807else
32808 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32809fi
32810rm -f core conftest.err conftest.$ac_objext \
32811 conftest$ac_exeext conftest.$ac_ext
32812LIBS=$ac_check_lib_save_LIBS
32813fi
32814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32815$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32816if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32817 passed=`expr $passed + 1`
32818else
32819 failed=`expr $failed + 1`
32820fi
32821
32822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32823$as_echo_n "checking if XML package is complete... " >&6; }
32824 if test $passed -gt 0; then
32825 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32827$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032828 have_xml='no (failed tests)'
32829 LDFLAGS="$PERSIST_LDFLAGS"
32830 CPPFLAGS="$PERSIST_CPPFLAGS"
32831 else
32832 XML_LIBS='-lxml2'
32833 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032834
cristy8b350f62009-11-15 23:12:43 +000032835$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032836
cristyad38abe2012-12-23 23:03:21 +000032837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32838$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032839 have_xml='yes'
32840 fi
32841 else
cristyad38abe2012-12-23 23:03:21 +000032842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32843$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032844 fi
32845fi
cristy73bd4a52010-10-05 11:24:23 +000032846 if test "$have_xml" = 'yes'; then
32847 XML_DELEGATE_TRUE=
32848 XML_DELEGATE_FALSE='#'
32849else
32850 XML_DELEGATE_TRUE='#'
32851 XML_DELEGATE_FALSE=
32852fi
32853
cristy3ed852e2009-09-05 21:47:34 +000032854
32855
32856
32857# Substitute compiler name to build/link PerlMagick
32858#
32859
32860
32861#
32862# Configure install Paths
32863#
cristy7def36a2011-10-28 19:04:41 +000032864
cristy2a11bef2011-10-28 18:33:11 +000032865# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032866INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032867INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32868DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032869case "${build_os}" in
32870 mingw* )
32871 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32872 ;;
32873esac
32874
32875cat >>confdefs.h <<_ACEOF
32876#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32877_ACEOF
32878
32879
cristy3ed852e2009-09-05 21:47:34 +000032880
cristye52f12f2012-12-31 15:32:36 +000032881# Path to ImageMagick header files (arch part)
32882INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32883DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32884case "${build_os}" in
32885 mingw* )
32886 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32887 ;;
32888esac
32889
32890cat >>confdefs.h <<_ACEOF
32891#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32892_ACEOF
32893
32894
32895
cristy3ed852e2009-09-05 21:47:34 +000032896# Subdirectory under lib to place ImageMagick lib files
32897LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32898
32899cat >>confdefs.h <<_ACEOF
32900#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32901_ACEOF
32902
32903
32904# Path to ImageMagick bin directory
32905EXECUTABLE_PATH="${BIN_DIR}"
32906DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32907case "${build_os}" in
32908 mingw* )
32909 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32910 ;;
32911esac
32912
32913cat >>confdefs.h <<_ACEOF
32914#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32915_ACEOF
32916
32917
32918
32919# Path to ImageMagick lib
32920LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32921DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32922case "${build_os}" in
32923 mingw* )
32924 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32925 ;;
32926esac
32927
32928cat >>confdefs.h <<_ACEOF
32929#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32930_ACEOF
32931
32932
32933
cristy3ed852e2009-09-05 21:47:34 +000032934#
cristy8d0ff762013-03-10 20:33:28 +000032935# path to local binaries
32936if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32937 LIB_BIN_BASEDIRNAME="bin"
32938fi
32939
32940cat >>confdefs.h <<_ACEOF
32941#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32942_ACEOF
32943
32944
32945
32946if test "x$LIB_BIN_DIR" = "x"; then
32947 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32948fi
32949
32950
32951LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32952
32953LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32954
32955
32956#
cristy01ff9f32012-12-01 18:15:29 +000032957# path to modules lib
32958if test "x$MODULES_BASEDIRNAME" = "x"; then
32959 MODULES_BASEDIRNAME="modules"
32960fi
cristy3ed852e2009-09-05 21:47:34 +000032961
32962cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032963#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032964_ACEOF
32965
cristy01ff9f32012-12-01 18:15:29 +000032966
32967
32968if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032969 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32970else
cristy3ed852e2009-09-05 21:47:34 +000032971
32972cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032973#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032974_ACEOF
32975
cristycf4a3c22012-12-02 21:47:25 +000032976fi
cristy01ff9f32012-12-01 18:15:29 +000032977
32978
cristy371d4812012-12-01 19:48:10 +000032979MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032980
32981MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32982
32983
32984#
32985# path to coders lib
32986if test "x$CODER_DIRNAME" = "x"; then
32987 CODER_DIRNAME="coders"
32988fi
32989
32990cat >>confdefs.h <<_ACEOF
32991#define CODER_DIRNAME "$CODER_DIRNAME"
32992_ACEOF
32993
32994
32995
cristy371d4812012-12-01 19:48:10 +000032996CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032997CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032998
32999
33000#
33001# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000033002#
33003# path to coders lib
33004if test "x$FILTER_DIRNAME" = "x"; then
33005 FILTER_DIRNAME="filters"
33006fi
cristy3ed852e2009-09-05 21:47:34 +000033007
33008cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000033009#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000033010_ACEOF
33011
cristy3ed852e2009-09-05 21:47:34 +000033012
cristy3ed852e2009-09-05 21:47:34 +000033013
cristy371d4812012-12-01 19:48:10 +000033014FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000033015FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000033016
33017
33018#
33019# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000033020DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000033021DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
33022DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000033023case "${build_os}" in
33024 mingw* )
33025 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
33026 ;;
33027esac
33028
33029cat >>confdefs.h <<_ACEOF
33030#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
33031_ACEOF
33032
33033
33034
cristydd17feb2014-03-05 02:06:32 +000033035#
33036# Enable/Disable documentation
33037# Check whether --enable-docs was given.
33038if test "${enable_docs+set}" = set; then :
33039 enableval=$enable_docs; wantdocs=$enableval
33040else
cristy02272312014-03-07 00:55:25 +000033041 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000033042fi
33043
cristy02272312014-03-07 00:55:25 +000033044 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000033045 INSTALL_DOC_TRUE=
33046 INSTALL_DOC_FALSE='#'
33047else
33048 INSTALL_DOC_TRUE='#'
33049 INSTALL_DOC_FALSE=
33050fi
33051
33052
cristy2a11bef2011-10-28 18:33:11 +000033053# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000033054CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000033055
33056cat >>confdefs.h <<_ACEOF
33057#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
33058_ACEOF
33059
cristy7def36a2011-10-28 19:04:41 +000033060CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000033061DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
33062case "${build_os}" in
33063 mingw* )
33064 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
33065 ;;
33066esac
33067
33068cat >>confdefs.h <<_ACEOF
33069#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
33070_ACEOF
33071
33072
33073
cristy2a11bef2011-10-28 18:33:11 +000033074# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000033075SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000033076
33077cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000033078#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000033079_ACEOF
33080
cristy670aa3c2011-11-03 00:54:00 +000033081SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000033082DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000033083case "${build_os}" in
33084 mingw* )
cristy4f820712011-04-01 12:35:43 +000033085 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000033086 ;;
33087esac
33088
33089cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000033090#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000033091_ACEOF
33092
33093
33094
cristy54378032012-12-04 15:52:20 +000033095#
33096# Subdirectory to place architecture-dependent configuration files.
33097if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
33098 SHAREARCH_BASEDIRNAME="config"
33099fi
cristy670aa3c2011-11-03 00:54:00 +000033100
33101cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000033102#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000033103_ACEOF
33104
cristy54378032012-12-04 15:52:20 +000033105
33106
33107if test "x$SHAREARCH_DIRNAME" = "x"; then
33108 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33109else
cristy670aa3c2011-11-03 00:54:00 +000033110
33111cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000033112#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000033113_ACEOF
33114
cristy54378032012-12-04 15:52:20 +000033115fi
33116
33117
33118SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
33119
33120SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000033121
33122
cristy3ed852e2009-09-05 21:47:34 +000033123#
33124# program_transform_name is formed for use in a Makefile, so create a
33125# modified version for use in a shell script.
33126configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
33127
33128# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000033129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33130$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000033132$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000033133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33134$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033135AutotraceDecodeDelegateDefault='autotrace'
cristy16b412d2014-12-15 11:09:48 +000033136BPGDecodeDelegateDefault='bpgdec'
33137BPGEncodeDelegateDefault='bpgenc'
cristy3d7f8062009-09-24 20:45:35 +000033138BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000033139BZIPDelegateDefault='bzip2'
33140BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000033141CatDelegateDefault='cat'
33142DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000033143DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000033144GVCDecodeDelegateDefault='dot'
33145DVIDecodeDelegateDefault='dvips'
33146EchoDelegateDefault='echo'
33147EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000033148ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
33149DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
33150MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
33151GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000033152HPGLDecodeDelegateDefault='hp2xx'
33153HTMLDecodeDelegateDefault='html2ps'
33154ILBMDecodeDelegateDefault='ilbmtoppm'
33155ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000033156JXRDecodeDelegateDefault='JxrDecApp'
33157JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000033158LPDelegateDefault='lp'
33159LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000033160LaunchDelegateDefault='gimp'
33161MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000033162MPEGDecodeDelegateDefault='avconv'
33163MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000033164MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000033165MVDelegateDefault='mv'
33166PCLDelegateDefault='pcl6'
33167PGPDecodeDelegateDefault='pgpv'
33168POVDelegateDefault='povray'
33169if test "$native_win32_build" = 'yes'; then
33170 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000033171elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000033172 PSDelegateDefault='gsc'
33173else
33174 PSDelegateDefault='gs'
33175fi
33176RLEEncodeDelegateDefault='rawtorle'
33177RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000033178RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000033179SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000033180SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000033181TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000033182UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000033183WebPDecodeDelegateDefault='dwebp'
33184WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000033185WMFDecodeDelegateDefault='wmf2eps'
33186WWWDecodeDelegateDefault='curl'
33187XPSDelegateDefault='gxps'
33188ZipDelegateDefault='gzip'
33189
33190# Search for delegates
33191# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
33192set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033194$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033195if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033196 $as_echo_n "(cached) " >&6
33197else
33198 case $AutotraceDecodeDelegate in
33199 [\\/]* | ?:[\\/]*)
33200 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
33201 ;;
33202 *)
33203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33204for as_dir in $PATH
33205do
33206 IFS=$as_save_IFS
33207 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033208 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033210 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033212 break 2
33213 fi
33214done
cristy8b350f62009-11-15 23:12:43 +000033215 done
cristy3ed852e2009-09-05 21:47:34 +000033216IFS=$as_save_IFS
33217
33218 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
33219 ;;
33220esac
33221fi
33222AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
33223if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033225$as_echo "$AutotraceDecodeDelegate" >&6; }
33226else
cristy8b350f62009-11-15 23:12:43 +000033227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033228$as_echo "no" >&6; }
33229fi
33230
33231
cristy16b412d2014-12-15 11:09:48 +000033232# Extract the first word of ""$BGPDecodeDelegateDefault"", so it can be a program name with args.
33233set dummy "$BGPDecodeDelegateDefault"; ac_word=$2
33234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33235$as_echo_n "checking for $ac_word... " >&6; }
33236if ${ac_cv_path_BGPDecodeDelegate+:} false; then :
33237 $as_echo_n "(cached) " >&6
33238else
33239 case $BGPDecodeDelegate in
33240 [\\/]* | ?:[\\/]*)
33241 ac_cv_path_BGPDecodeDelegate="$BGPDecodeDelegate" # Let the user override the test with a path.
33242 ;;
33243 *)
33244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33245for as_dir in $PATH
33246do
33247 IFS=$as_save_IFS
33248 test -z "$as_dir" && as_dir=.
33249 for ac_exec_ext in '' $ac_executable_extensions; do
33250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33251 ac_cv_path_BGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33253 break 2
33254 fi
33255done
33256 done
33257IFS=$as_save_IFS
33258
33259 test -z "$ac_cv_path_BGPDecodeDelegate" && ac_cv_path_BGPDecodeDelegate=""$BGPDecodeDelegateDefault""
33260 ;;
33261esac
33262fi
33263BGPDecodeDelegate=$ac_cv_path_BGPDecodeDelegate
33264if test -n "$BGPDecodeDelegate"; then
33265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPDecodeDelegate" >&5
33266$as_echo "$BGPDecodeDelegate" >&6; }
33267else
33268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33269$as_echo "no" >&6; }
33270fi
33271
33272
33273# Extract the first word of ""$BGPEncodeDelegateDefault"", so it can be a program name with args.
33274set dummy "$BGPEncodeDelegateDefault"; ac_word=$2
33275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33276$as_echo_n "checking for $ac_word... " >&6; }
33277if ${ac_cv_path_BGPEncodeDelegate+:} false; then :
33278 $as_echo_n "(cached) " >&6
33279else
33280 case $BGPEncodeDelegate in
33281 [\\/]* | ?:[\\/]*)
33282 ac_cv_path_BGPEncodeDelegate="$BGPEncodeDelegate" # Let the user override the test with a path.
33283 ;;
33284 *)
33285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33286for as_dir in $PATH
33287do
33288 IFS=$as_save_IFS
33289 test -z "$as_dir" && as_dir=.
33290 for ac_exec_ext in '' $ac_executable_extensions; do
33291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33292 ac_cv_path_BGPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33294 break 2
33295 fi
33296done
33297 done
33298IFS=$as_save_IFS
33299
33300 test -z "$ac_cv_path_BGPEncodeDelegate" && ac_cv_path_BGPEncodeDelegate=""$BGPEncodeDelegateDefault""
33301 ;;
33302esac
33303fi
33304BGPEncodeDelegate=$ac_cv_path_BGPEncodeDelegate
33305if test -n "$BGPEncodeDelegate"; then
33306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPEncodeDelegate" >&5
33307$as_echo "$BGPEncodeDelegate" >&6; }
33308else
33309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33310$as_echo "no" >&6; }
33311fi
33312
33313
cristy3ed852e2009-09-05 21:47:34 +000033314# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
33315set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033317$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033318if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033319 $as_echo_n "(cached) " >&6
33320else
33321 case $BlenderDecodeDelegate in
33322 [\\/]* | ?:[\\/]*)
33323 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
33324 ;;
33325 *)
33326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33327for as_dir in $PATH
33328do
33329 IFS=$as_save_IFS
33330 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033331 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033333 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033335 break 2
33336 fi
33337done
cristy8b350f62009-11-15 23:12:43 +000033338 done
cristy3ed852e2009-09-05 21:47:34 +000033339IFS=$as_save_IFS
33340
33341 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33342 ;;
33343esac
33344fi
33345BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33346if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033348$as_echo "$BlenderDecodeDelegate" >&6; }
33349else
cristy8b350f62009-11-15 23:12:43 +000033350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033351$as_echo "no" >&6; }
33352fi
33353
33354
33355# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33356set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033358$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033359if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033360 $as_echo_n "(cached) " >&6
33361else
33362 case $BZIPDelegate in
33363 [\\/]* | ?:[\\/]*)
33364 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33365 ;;
33366 *)
33367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33368for as_dir in $PATH
33369do
33370 IFS=$as_save_IFS
33371 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033372 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033374 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033376 break 2
33377 fi
33378done
cristy8b350f62009-11-15 23:12:43 +000033379 done
cristy3ed852e2009-09-05 21:47:34 +000033380IFS=$as_save_IFS
33381
33382 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33383 ;;
33384esac
33385fi
33386BZIPDelegate=$ac_cv_path_BZIPDelegate
33387if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033389$as_echo "$BZIPDelegate" >&6; }
33390else
cristy8b350f62009-11-15 23:12:43 +000033391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033392$as_echo "no" >&6; }
33393fi
33394
33395
cristyc59f0e72012-08-27 12:59:33 +000033396for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33397do
33398 # Extract the first word of "$ac_prog", so it can be a program name with args.
33399set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033401$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033402if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033403 $as_echo_n "(cached) " >&6
33404else
33405 case $BrowseDelegate in
33406 [\\/]* | ?:[\\/]*)
33407 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33408 ;;
33409 *)
33410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33411for as_dir in $PATH
33412do
33413 IFS=$as_save_IFS
33414 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033415 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033417 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033419 break 2
33420 fi
33421done
cristy8b350f62009-11-15 23:12:43 +000033422 done
cristy3ed852e2009-09-05 21:47:34 +000033423IFS=$as_save_IFS
33424
cristy3ed852e2009-09-05 21:47:34 +000033425 ;;
33426esac
33427fi
33428BrowseDelegate=$ac_cv_path_BrowseDelegate
33429if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033431$as_echo "$BrowseDelegate" >&6; }
33432else
cristy8b350f62009-11-15 23:12:43 +000033433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033434$as_echo "no" >&6; }
33435fi
33436
33437
cristyc59f0e72012-08-27 12:59:33 +000033438 test -n "$BrowseDelegate" && break
33439done
33440test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33441
cristy3ed852e2009-09-05 21:47:34 +000033442# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33443set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033445$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033446if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033447 $as_echo_n "(cached) " >&6
33448else
33449 case $CatDelegate in
33450 [\\/]* | ?:[\\/]*)
33451 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33452 ;;
33453 *)
33454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33455for as_dir in $PATH
33456do
33457 IFS=$as_save_IFS
33458 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033459 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033461 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033463 break 2
33464 fi
33465done
cristy8b350f62009-11-15 23:12:43 +000033466 done
cristy3ed852e2009-09-05 21:47:34 +000033467IFS=$as_save_IFS
33468
33469 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33470 ;;
33471esac
33472fi
33473CatDelegate=$ac_cv_path_CatDelegate
33474if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033476$as_echo "$CatDelegate" >&6; }
33477else
cristy8b350f62009-11-15 23:12:43 +000033478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033479$as_echo "no" >&6; }
33480fi
33481
33482
33483# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33484set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033486$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033487if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033488 $as_echo_n "(cached) " >&6
33489else
33490 case $DNGDecodeDelegate in
33491 [\\/]* | ?:[\\/]*)
33492 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33493 ;;
33494 *)
33495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33496for as_dir in $PATH
33497do
33498 IFS=$as_save_IFS
33499 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033502 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033504 break 2
33505 fi
33506done
cristy8b350f62009-11-15 23:12:43 +000033507 done
cristy3ed852e2009-09-05 21:47:34 +000033508IFS=$as_save_IFS
33509
33510 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33511 ;;
33512esac
33513fi
33514DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33515if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033517$as_echo "$DNGDecodeDelegate" >&6; }
33518else
cristy8b350f62009-11-15 23:12:43 +000033519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033520$as_echo "no" >&6; }
33521fi
33522
33523
cristy66f238e2014-05-16 12:21:48 +000033524# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
33525set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033527$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033528if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033529 $as_echo_n "(cached) " >&6
33530else
cristy66f238e2014-05-16 12:21:48 +000033531 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033532 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033533 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033534 ;;
33535 *)
33536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33537for as_dir in $PATH
33538do
33539 IFS=$as_save_IFS
33540 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033543 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033545 break 2
33546 fi
33547done
cristy8b350f62009-11-15 23:12:43 +000033548 done
cristy3ed852e2009-09-05 21:47:34 +000033549IFS=$as_save_IFS
33550
cristy66f238e2014-05-16 12:21:48 +000033551 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033552 ;;
33553esac
33554fi
cristy66f238e2014-05-16 12:21:48 +000033555DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33556if test -n "$DOCDecodeDelegate"; then
33557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33558$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033559else
cristy8b350f62009-11-15 23:12:43 +000033560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033561$as_echo "no" >&6; }
33562fi
33563
33564
33565# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33566set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033568$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033569if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033570 $as_echo_n "(cached) " >&6
33571else
33572 case $DVIDecodeDelegate in
33573 [\\/]* | ?:[\\/]*)
33574 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33575 ;;
33576 *)
33577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33578for as_dir in $PATH
33579do
33580 IFS=$as_save_IFS
33581 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033584 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033586 break 2
33587 fi
33588done
cristy8b350f62009-11-15 23:12:43 +000033589 done
cristy3ed852e2009-09-05 21:47:34 +000033590IFS=$as_save_IFS
33591
33592 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33593 ;;
33594esac
33595fi
33596DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33597if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033599$as_echo "$DVIDecodeDelegate" >&6; }
33600else
cristy8b350f62009-11-15 23:12:43 +000033601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033602$as_echo "no" >&6; }
33603fi
33604
33605
cristy3ed852e2009-09-05 21:47:34 +000033606# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33607set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033609$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033610if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033611 $as_echo_n "(cached) " >&6
33612else
33613 case $ConvertDelegate in
33614 [\\/]* | ?:[\\/]*)
33615 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33616 ;;
33617 *)
33618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33619for as_dir in $PATH
33620do
33621 IFS=$as_save_IFS
33622 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033623 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033625 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033627 break 2
33628 fi
33629done
cristy8b350f62009-11-15 23:12:43 +000033630 done
cristy3ed852e2009-09-05 21:47:34 +000033631IFS=$as_save_IFS
33632
33633 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33634 ;;
33635esac
33636fi
33637ConvertDelegate=$ac_cv_path_ConvertDelegate
33638if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033640$as_echo "$ConvertDelegate" >&6; }
33641else
cristy8b350f62009-11-15 23:12:43 +000033642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033643$as_echo "no" >&6; }
33644fi
33645
33646
33647# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33648set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033650$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033651if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033652 $as_echo_n "(cached) " >&6
33653else
33654 case $DisplayDelegate in
33655 [\\/]* | ?:[\\/]*)
33656 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33657 ;;
33658 *)
33659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33660for as_dir in $PATH
33661do
33662 IFS=$as_save_IFS
33663 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033666 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033668 break 2
33669 fi
33670done
cristy8b350f62009-11-15 23:12:43 +000033671 done
cristy3ed852e2009-09-05 21:47:34 +000033672IFS=$as_save_IFS
33673
33674 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33675 ;;
33676esac
33677fi
33678DisplayDelegate=$ac_cv_path_DisplayDelegate
33679if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033681$as_echo "$DisplayDelegate" >&6; }
33682else
cristy8b350f62009-11-15 23:12:43 +000033683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033684$as_echo "no" >&6; }
33685fi
33686
33687
cristy66f238e2014-05-16 12:21:48 +000033688# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33689set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033691$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033692if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033693 $as_echo_n "(cached) " >&6
33694else
cristy66f238e2014-05-16 12:21:48 +000033695 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033696 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033697 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033698 ;;
33699 *)
33700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33701for as_dir in $PATH
33702do
33703 IFS=$as_save_IFS
33704 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033707 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033709 break 2
33710 fi
33711done
cristy8b350f62009-11-15 23:12:43 +000033712 done
cristy3ed852e2009-09-05 21:47:34 +000033713IFS=$as_save_IFS
33714
cristy66f238e2014-05-16 12:21:48 +000033715 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033716 ;;
33717esac
33718fi
cristy66f238e2014-05-16 12:21:48 +000033719EchoDelegate=$ac_cv_path_EchoDelegate
33720if test -n "$EchoDelegate"; then
33721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33722$as_echo "$EchoDelegate" >&6; }
33723else
33724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33725$as_echo "no" >&6; }
33726fi
33727
33728
33729# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33730set dummy "$EditorDelegateDefault"; ac_word=$2
33731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33732$as_echo_n "checking for $ac_word... " >&6; }
33733if ${ac_cv_path_EditorDelegate+:} false; then :
33734 $as_echo_n "(cached) " >&6
33735else
33736 case $EditorDelegate in
33737 [\\/]* | ?:[\\/]*)
33738 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33739 ;;
33740 *)
33741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33742for as_dir in $PATH
33743do
33744 IFS=$as_save_IFS
33745 test -z "$as_dir" && as_dir=.
33746 for ac_exec_ext in '' $ac_executable_extensions; do
33747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33748 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33750 break 2
33751 fi
33752done
33753 done
33754IFS=$as_save_IFS
33755
33756 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33757 ;;
33758esac
33759fi
33760EditorDelegate=$ac_cv_path_EditorDelegate
33761if test -n "$EditorDelegate"; then
33762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33763$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033764else
cristy8b350f62009-11-15 23:12:43 +000033765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033766$as_echo "no" >&6; }
33767fi
33768
33769
33770# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33771set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033773$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033774if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033775 $as_echo_n "(cached) " >&6
33776else
33777 case $GnuplotDecodeDelegate in
33778 [\\/]* | ?:[\\/]*)
33779 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33780 ;;
33781 *)
33782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33783for as_dir in $PATH
33784do
33785 IFS=$as_save_IFS
33786 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033787 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033789 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033791 break 2
33792 fi
33793done
cristy8b350f62009-11-15 23:12:43 +000033794 done
cristy3ed852e2009-09-05 21:47:34 +000033795IFS=$as_save_IFS
33796
33797 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33798 ;;
33799esac
33800fi
33801GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33802if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033804$as_echo "$GnuplotDecodeDelegate" >&6; }
33805else
cristy8b350f62009-11-15 23:12:43 +000033806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033807$as_echo "no" >&6; }
33808fi
33809
33810
cristy66f238e2014-05-16 12:21:48 +000033811# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33812set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33814$as_echo_n "checking for $ac_word... " >&6; }
33815if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33816 $as_echo_n "(cached) " >&6
33817else
33818 case $GVCDecodeDelegate in
33819 [\\/]* | ?:[\\/]*)
33820 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33821 ;;
33822 *)
33823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33824for as_dir in $PATH
33825do
33826 IFS=$as_save_IFS
33827 test -z "$as_dir" && as_dir=.
33828 for ac_exec_ext in '' $ac_executable_extensions; do
33829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33830 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33832 break 2
33833 fi
33834done
33835 done
33836IFS=$as_save_IFS
33837
33838 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33839 ;;
33840esac
33841fi
33842GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33843if test -n "$GVCDecodeDelegate"; then
33844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33845$as_echo "$GVCDecodeDelegate" >&6; }
33846else
33847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33848$as_echo "no" >&6; }
33849fi
33850
33851
cristy3ed852e2009-09-05 21:47:34 +000033852# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33853set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033855$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033856if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033857 $as_echo_n "(cached) " >&6
33858else
33859 case $HPGLDecodeDelegate in
33860 [\\/]* | ?:[\\/]*)
33861 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33862 ;;
33863 *)
33864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33865for as_dir in $PATH
33866do
33867 IFS=$as_save_IFS
33868 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033869 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033871 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033873 break 2
33874 fi
33875done
cristy8b350f62009-11-15 23:12:43 +000033876 done
cristy3ed852e2009-09-05 21:47:34 +000033877IFS=$as_save_IFS
33878
33879 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33880 ;;
33881esac
33882fi
33883HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33884if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033886$as_echo "$HPGLDecodeDelegate" >&6; }
33887else
cristy8b350f62009-11-15 23:12:43 +000033888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033889$as_echo "no" >&6; }
33890fi
33891
33892
33893# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33894set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033896$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033897if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033898 $as_echo_n "(cached) " >&6
33899else
33900 case $HTMLDecodeDelegate in
33901 [\\/]* | ?:[\\/]*)
33902 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33903 ;;
33904 *)
33905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33906for as_dir in $PATH
33907do
33908 IFS=$as_save_IFS
33909 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033910 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033912 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033914 break 2
33915 fi
33916done
cristy8b350f62009-11-15 23:12:43 +000033917 done
cristy3ed852e2009-09-05 21:47:34 +000033918IFS=$as_save_IFS
33919
33920 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33921 ;;
33922esac
33923fi
33924HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33925if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033927$as_echo "$HTMLDecodeDelegate" >&6; }
33928else
cristy8b350f62009-11-15 23:12:43 +000033929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033930$as_echo "no" >&6; }
33931fi
33932
33933
33934# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33935set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033937$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033938if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033939 $as_echo_n "(cached) " >&6
33940else
33941 case $ILBMDecodeDelegate in
33942 [\\/]* | ?:[\\/]*)
33943 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33944 ;;
33945 *)
33946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33947for as_dir in $PATH
33948do
33949 IFS=$as_save_IFS
33950 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033951 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033953 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033955 break 2
33956 fi
33957done
cristy8b350f62009-11-15 23:12:43 +000033958 done
cristy3ed852e2009-09-05 21:47:34 +000033959IFS=$as_save_IFS
33960
33961 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33962 ;;
33963esac
33964fi
33965ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33966if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033968$as_echo "$ILBMDecodeDelegate" >&6; }
33969else
cristy8b350f62009-11-15 23:12:43 +000033970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033971$as_echo "no" >&6; }
33972fi
33973
33974
33975# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33976set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033978$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033979if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033980 $as_echo_n "(cached) " >&6
33981else
33982 case $ILBMEncodeDelegate in
33983 [\\/]* | ?:[\\/]*)
33984 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33985 ;;
33986 *)
33987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33988for as_dir in $PATH
33989do
33990 IFS=$as_save_IFS
33991 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033992 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033994 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033996 break 2
33997 fi
33998done
cristy8b350f62009-11-15 23:12:43 +000033999 done
cristy3ed852e2009-09-05 21:47:34 +000034000IFS=$as_save_IFS
34001
34002 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
34003 ;;
34004esac
34005fi
34006ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
34007if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034009$as_echo "$ILBMEncodeDelegate" >&6; }
34010else
cristy8b350f62009-11-15 23:12:43 +000034011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034012$as_echo "no" >&6; }
34013fi
34014
34015
cristy71f53d52013-04-27 13:33:59 +000034016# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
34017set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
34018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34019$as_echo_n "checking for $ac_word... " >&6; }
34020if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
34021 $as_echo_n "(cached) " >&6
34022else
34023 case $JXRDecodeDelegate in
34024 [\\/]* | ?:[\\/]*)
34025 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
34026 ;;
34027 *)
34028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34029for as_dir in $PATH
34030do
34031 IFS=$as_save_IFS
34032 test -z "$as_dir" && as_dir=.
34033 for ac_exec_ext in '' $ac_executable_extensions; do
34034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34035 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34037 break 2
34038 fi
34039done
34040 done
34041IFS=$as_save_IFS
34042
34043 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
34044 ;;
34045esac
34046fi
34047JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
34048if test -n "$JXRDecodeDelegate"; then
34049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
34050$as_echo "$JXRDecodeDelegate" >&6; }
34051else
34052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34053$as_echo "no" >&6; }
34054fi
34055
34056
34057# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
34058set dummy "$JXREncodeDelegateDefault"; ac_word=$2
34059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34060$as_echo_n "checking for $ac_word... " >&6; }
34061if ${ac_cv_path_JXREncodeDelegate+:} false; then :
34062 $as_echo_n "(cached) " >&6
34063else
34064 case $JXREncodeDelegate in
34065 [\\/]* | ?:[\\/]*)
34066 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
34067 ;;
34068 *)
34069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34070for as_dir in $PATH
34071do
34072 IFS=$as_save_IFS
34073 test -z "$as_dir" && as_dir=.
34074 for ac_exec_ext in '' $ac_executable_extensions; do
34075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34076 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34078 break 2
34079 fi
34080done
34081 done
34082IFS=$as_save_IFS
34083
34084 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
34085 ;;
34086esac
34087fi
34088JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
34089if test -n "$JXREncodeDelegate"; then
34090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
34091$as_echo "$JXREncodeDelegate" >&6; }
34092else
34093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34094$as_echo "no" >&6; }
34095fi
34096
34097
cristy3ed852e2009-09-05 21:47:34 +000034098# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
34099set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034101$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034102if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034103 $as_echo_n "(cached) " >&6
34104else
34105 case $LPDelegate in
34106 [\\/]* | ?:[\\/]*)
34107 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
34108 ;;
34109 *)
34110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34111for as_dir in $PATH
34112do
34113 IFS=$as_save_IFS
34114 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034115 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034117 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034119 break 2
34120 fi
34121done
cristy8b350f62009-11-15 23:12:43 +000034122 done
cristy3ed852e2009-09-05 21:47:34 +000034123IFS=$as_save_IFS
34124
34125 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
34126 ;;
34127esac
34128fi
34129LPDelegate=$ac_cv_path_LPDelegate
34130if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034132$as_echo "$LPDelegate" >&6; }
34133else
cristy8b350f62009-11-15 23:12:43 +000034134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034135$as_echo "no" >&6; }
34136fi
34137
34138
34139# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
34140set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034142$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034143if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034144 $as_echo_n "(cached) " >&6
34145else
34146 case $LPRDelegate in
34147 [\\/]* | ?:[\\/]*)
34148 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
34149 ;;
34150 *)
34151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34152for as_dir in $PATH
34153do
34154 IFS=$as_save_IFS
34155 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034156 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034158 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034160 break 2
34161 fi
34162done
cristy8b350f62009-11-15 23:12:43 +000034163 done
cristy3ed852e2009-09-05 21:47:34 +000034164IFS=$as_save_IFS
34165
34166 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
34167 ;;
34168esac
34169fi
34170LPRDelegate=$ac_cv_path_LPRDelegate
34171if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034173$as_echo "$LPRDelegate" >&6; }
34174else
cristy8b350f62009-11-15 23:12:43 +000034175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034176$as_echo "no" >&6; }
34177fi
34178
34179
cristy3ed852e2009-09-05 21:47:34 +000034180# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
34181set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034183$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034184if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034185 $as_echo_n "(cached) " >&6
34186else
34187 case $LaunchDelegate in
34188 [\\/]* | ?:[\\/]*)
34189 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
34190 ;;
34191 *)
34192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34193for as_dir in $PATH
34194do
34195 IFS=$as_save_IFS
34196 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034199 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034201 break 2
34202 fi
34203done
cristy8b350f62009-11-15 23:12:43 +000034204 done
cristy3ed852e2009-09-05 21:47:34 +000034205IFS=$as_save_IFS
34206
34207 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
34208 ;;
34209esac
34210fi
34211LaunchDelegate=$ac_cv_path_LaunchDelegate
34212if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034214$as_echo "$LaunchDelegate" >&6; }
34215else
cristy8b350f62009-11-15 23:12:43 +000034216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034217$as_echo "no" >&6; }
34218fi
34219
34220
34221# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
34222set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034224$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034225if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034226 $as_echo_n "(cached) " >&6
34227else
34228 case $MANDelegate in
34229 [\\/]* | ?:[\\/]*)
34230 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
34231 ;;
34232 *)
34233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34234for as_dir in $PATH
34235do
34236 IFS=$as_save_IFS
34237 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034238 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034240 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034242 break 2
34243 fi
34244done
cristy8b350f62009-11-15 23:12:43 +000034245 done
cristy3ed852e2009-09-05 21:47:34 +000034246IFS=$as_save_IFS
34247
34248 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
34249 ;;
34250esac
34251fi
34252MANDelegate=$ac_cv_path_MANDelegate
34253if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034255$as_echo "$MANDelegate" >&6; }
34256else
cristy8b350f62009-11-15 23:12:43 +000034257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034258$as_echo "no" >&6; }
34259fi
34260
34261
cristy66f238e2014-05-16 12:21:48 +000034262# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
34263set dummy "$MogrifyDelegateDefault"; ac_word=$2
34264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34265$as_echo_n "checking for $ac_word... " >&6; }
34266if ${ac_cv_path_MogrifyDelegate+:} false; then :
34267 $as_echo_n "(cached) " >&6
34268else
34269 case $MogrifyDelegate in
34270 [\\/]* | ?:[\\/]*)
34271 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
34272 ;;
34273 *)
34274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34275for as_dir in $PATH
34276do
34277 IFS=$as_save_IFS
34278 test -z "$as_dir" && as_dir=.
34279 for ac_exec_ext in '' $ac_executable_extensions; do
34280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34281 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
34282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34283 break 2
34284 fi
34285done
34286 done
34287IFS=$as_save_IFS
34288
34289 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
34290 ;;
34291esac
34292fi
34293MogrifyDelegate=$ac_cv_path_MogrifyDelegate
34294if test -n "$MogrifyDelegate"; then
34295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
34296$as_echo "$MogrifyDelegate" >&6; }
34297else
34298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34299$as_echo "no" >&6; }
34300fi
34301
34302
cristy3ed852e2009-09-05 21:47:34 +000034303# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34304set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034306$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034307if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034308 $as_echo_n "(cached) " >&6
34309else
34310 case $MPEGDecodeDelegate in
34311 [\\/]* | ?:[\\/]*)
34312 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34313 ;;
34314 *)
34315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34316for as_dir in $PATH
34317do
34318 IFS=$as_save_IFS
34319 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034320 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034322 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034324 break 2
34325 fi
34326done
cristy8b350f62009-11-15 23:12:43 +000034327 done
cristy3ed852e2009-09-05 21:47:34 +000034328IFS=$as_save_IFS
34329
34330 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34331 ;;
34332esac
34333fi
34334MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34335if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034337$as_echo "$MPEGDecodeDelegate" >&6; }
34338else
cristy8b350f62009-11-15 23:12:43 +000034339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034340$as_echo "no" >&6; }
34341fi
34342
34343
cristy058d15f2014-08-21 18:53:03 +000034344if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034345 MPEGDecodeDelegateDefault='ffmpeg'
34346 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34347set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
34348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34349$as_echo_n "checking for $ac_word... " >&6; }
34350if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
34351 $as_echo_n "(cached) " >&6
34352else
34353 case $MPEGDecodeDelegate in
34354 [\\/]* | ?:[\\/]*)
34355 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34356 ;;
34357 *)
34358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34359for as_dir in $PATH
34360do
34361 IFS=$as_save_IFS
34362 test -z "$as_dir" && as_dir=.
34363 for ac_exec_ext in '' $ac_executable_extensions; do
34364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34365 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34367 break 2
34368 fi
34369done
34370 done
34371IFS=$as_save_IFS
34372
34373 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34374 ;;
34375esac
34376fi
34377MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34378if test -n "$MPEGDecodeDelegate"; then
34379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
34380$as_echo "$MPEGDecodeDelegate" >&6; }
34381else
34382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34383$as_echo "no" >&6; }
34384fi
34385
34386
34387fi;
cristy3ed852e2009-09-05 21:47:34 +000034388# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34389set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034391$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034392if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034393 $as_echo_n "(cached) " >&6
34394else
34395 case $MPEGEncodeDelegate in
34396 [\\/]* | ?:[\\/]*)
34397 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34398 ;;
34399 *)
34400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34401for as_dir in $PATH
34402do
34403 IFS=$as_save_IFS
34404 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034405 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034407 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034409 break 2
34410 fi
34411done
cristy8b350f62009-11-15 23:12:43 +000034412 done
cristy3ed852e2009-09-05 21:47:34 +000034413IFS=$as_save_IFS
34414
34415 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34416 ;;
34417esac
34418fi
34419MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34420if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034422$as_echo "$MPEGEncodeDelegate" >&6; }
34423else
cristy8b350f62009-11-15 23:12:43 +000034424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034425$as_echo "no" >&6; }
34426fi
34427
34428
cristy058d15f2014-08-21 18:53:03 +000034429if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034430 MPEGEncodeDelegateDefault='ffmpeg'
34431 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34432set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34434$as_echo_n "checking for $ac_word... " >&6; }
34435if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34436 $as_echo_n "(cached) " >&6
34437else
34438 case $MPEGEncodeDelegate in
34439 [\\/]* | ?:[\\/]*)
34440 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34441 ;;
34442 *)
34443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34444for as_dir in $PATH
34445do
34446 IFS=$as_save_IFS
34447 test -z "$as_dir" && as_dir=.
34448 for ac_exec_ext in '' $ac_executable_extensions; do
34449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34450 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34452 break 2
34453 fi
34454done
34455 done
34456IFS=$as_save_IFS
34457
34458 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34459 ;;
34460esac
34461fi
34462MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34463if test -n "$MPEGEncodeDelegate"; then
34464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34465$as_echo "$MPEGEncodeDelegate" >&6; }
34466else
34467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34468$as_echo "no" >&6; }
34469fi
34470
34471
34472fi;
cristy935c86e2010-06-05 23:50:07 +000034473# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34474set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34476$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034477if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034478 $as_echo_n "(cached) " >&6
34479else
34480 case $MrSIDDecodeDelegate in
34481 [\\/]* | ?:[\\/]*)
34482 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34483 ;;
34484 *)
34485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34486for as_dir in $PATH
34487do
34488 IFS=$as_save_IFS
34489 test -z "$as_dir" && as_dir=.
34490 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034492 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34494 break 2
34495 fi
34496done
34497 done
34498IFS=$as_save_IFS
34499
34500 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34501 ;;
34502esac
34503fi
34504MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34505if test -n "$MrSIDDecodeDelegate"; then
34506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34507$as_echo "$MrSIDDecodeDelegate" >&6; }
34508else
34509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34510$as_echo "no" >&6; }
34511fi
34512
34513
cristy3ed852e2009-09-05 21:47:34 +000034514# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34515set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034517$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034518if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034519 $as_echo_n "(cached) " >&6
34520else
34521 case $MVDelegate in
34522 [\\/]* | ?:[\\/]*)
34523 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34524 ;;
34525 *)
34526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34527for as_dir in $PATH
34528do
34529 IFS=$as_save_IFS
34530 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034531 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034533 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034535 break 2
34536 fi
34537done
cristy8b350f62009-11-15 23:12:43 +000034538 done
cristy3ed852e2009-09-05 21:47:34 +000034539IFS=$as_save_IFS
34540
34541 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34542 ;;
34543esac
34544fi
34545MVDelegate=$ac_cv_path_MVDelegate
34546if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034548$as_echo "$MVDelegate" >&6; }
34549else
cristy8b350f62009-11-15 23:12:43 +000034550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034551$as_echo "no" >&6; }
34552fi
34553
34554
34555# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34556set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034558$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034559if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034560 $as_echo_n "(cached) " >&6
34561else
34562 case $PCLDelegate in
34563 [\\/]* | ?:[\\/]*)
34564 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34565 ;;
34566 *)
34567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34568for as_dir in $PATH
34569do
34570 IFS=$as_save_IFS
34571 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034572 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034574 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034576 break 2
34577 fi
34578done
cristy8b350f62009-11-15 23:12:43 +000034579 done
cristy3ed852e2009-09-05 21:47:34 +000034580IFS=$as_save_IFS
34581
34582 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34583 ;;
34584esac
34585fi
34586PCLDelegate=$ac_cv_path_PCLDelegate
34587if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034589$as_echo "$PCLDelegate" >&6; }
34590else
cristy8b350f62009-11-15 23:12:43 +000034591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034592$as_echo "no" >&6; }
34593fi
34594
34595
34596# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34597set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034599$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034600if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034601 $as_echo_n "(cached) " >&6
34602else
34603 case $PGPDecodeDelegate in
34604 [\\/]* | ?:[\\/]*)
34605 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34606 ;;
34607 *)
34608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34609for as_dir in $PATH
34610do
34611 IFS=$as_save_IFS
34612 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034613 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034615 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034617 break 2
34618 fi
34619done
cristy8b350f62009-11-15 23:12:43 +000034620 done
cristy3ed852e2009-09-05 21:47:34 +000034621IFS=$as_save_IFS
34622
34623 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34624 ;;
34625esac
34626fi
34627PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34628if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034630$as_echo "$PGPDecodeDelegate" >&6; }
34631else
cristy8b350f62009-11-15 23:12:43 +000034632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034633$as_echo "no" >&6; }
34634fi
34635
34636
34637# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34638set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034640$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034641if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034642 $as_echo_n "(cached) " >&6
34643else
34644 case $POVDelegate in
34645 [\\/]* | ?:[\\/]*)
34646 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34647 ;;
34648 *)
34649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34650for as_dir in $PATH
34651do
34652 IFS=$as_save_IFS
34653 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034654 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034656 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034658 break 2
34659 fi
34660done
cristy8b350f62009-11-15 23:12:43 +000034661 done
cristy3ed852e2009-09-05 21:47:34 +000034662IFS=$as_save_IFS
34663
34664 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34665 ;;
34666esac
34667fi
34668POVDelegate=$ac_cv_path_POVDelegate
34669if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034671$as_echo "$POVDelegate" >&6; }
34672else
cristy8b350f62009-11-15 23:12:43 +000034673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034674$as_echo "no" >&6; }
34675fi
34676
34677
34678for ac_prog in gsx gsc "$PSDelegateDefault"
34679do
34680 # Extract the first word of "$ac_prog", so it can be a program name with args.
34681set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034683$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034684if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034685 $as_echo_n "(cached) " >&6
34686else
34687 case $PSDelegate in
34688 [\\/]* | ?:[\\/]*)
34689 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34690 ;;
34691 *)
34692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34693for as_dir in $PATH
34694do
34695 IFS=$as_save_IFS
34696 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034699 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034701 break 2
34702 fi
34703done
cristy8b350f62009-11-15 23:12:43 +000034704 done
cristy3ed852e2009-09-05 21:47:34 +000034705IFS=$as_save_IFS
34706
34707 ;;
34708esac
34709fi
34710PSDelegate=$ac_cv_path_PSDelegate
34711if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034713$as_echo "$PSDelegate" >&6; }
34714else
cristy8b350f62009-11-15 23:12:43 +000034715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034716$as_echo "no" >&6; }
34717fi
34718
34719
34720 test -n "$PSDelegate" && break
34721done
34722test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34723
34724# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34725set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034727$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034728if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034729 $as_echo_n "(cached) " >&6
34730else
34731 case $RLEEncodeDelegate in
34732 [\\/]* | ?:[\\/]*)
34733 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34734 ;;
34735 *)
34736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34737for as_dir in $PATH
34738do
34739 IFS=$as_save_IFS
34740 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034741 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034743 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034745 break 2
34746 fi
34747done
cristy8b350f62009-11-15 23:12:43 +000034748 done
cristy3ed852e2009-09-05 21:47:34 +000034749IFS=$as_save_IFS
34750
34751 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34752 ;;
34753esac
34754fi
34755RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34756if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034758$as_echo "$RLEEncodeDelegate" >&6; }
34759else
cristy8b350f62009-11-15 23:12:43 +000034760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034761$as_echo "no" >&6; }
34762fi
34763
34764
34765# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34766set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034768$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034769if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034770 $as_echo_n "(cached) " >&6
34771else
34772 case $RMDelegate in
34773 [\\/]* | ?:[\\/]*)
34774 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34775 ;;
34776 *)
34777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34778for as_dir in $PATH
34779do
34780 IFS=$as_save_IFS
34781 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034782 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034784 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034786 break 2
34787 fi
34788done
cristy8b350f62009-11-15 23:12:43 +000034789 done
cristy3ed852e2009-09-05 21:47:34 +000034790IFS=$as_save_IFS
34791
34792 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34793 ;;
34794esac
34795fi
34796RMDelegate=$ac_cv_path_RMDelegate
34797if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034799$as_echo "$RMDelegate" >&6; }
34800else
cristy8b350f62009-11-15 23:12:43 +000034801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034802$as_echo "no" >&6; }
34803fi
34804
34805
cristy4689cf02010-02-17 21:15:45 +000034806# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34807set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34809$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034810if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034811 $as_echo_n "(cached) " >&6
34812else
34813 case $RSVGDecodeDelegate in
34814 [\\/]* | ?:[\\/]*)
34815 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34816 ;;
34817 *)
34818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34819for as_dir in $PATH
34820do
34821 IFS=$as_save_IFS
34822 test -z "$as_dir" && as_dir=.
34823 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034825 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34827 break 2
34828 fi
34829done
34830 done
34831IFS=$as_save_IFS
34832
34833 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34834 ;;
34835esac
34836fi
34837RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34838if test -n "$RSVGDecodeDelegate"; then
34839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34840$as_echo "$RSVGDecodeDelegate" >&6; }
34841else
34842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34843$as_echo "no" >&6; }
34844fi
34845
34846
cristy3ed852e2009-09-05 21:47:34 +000034847# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34848set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034850$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034851if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034852 $as_echo_n "(cached) " >&6
34853else
34854 case $SCANDecodeDelegate in
34855 [\\/]* | ?:[\\/]*)
34856 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34857 ;;
34858 *)
34859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34860for as_dir in $PATH
34861do
34862 IFS=$as_save_IFS
34863 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034864 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034866 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034868 break 2
34869 fi
34870done
cristy8b350f62009-11-15 23:12:43 +000034871 done
cristy3ed852e2009-09-05 21:47:34 +000034872IFS=$as_save_IFS
34873
34874 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34875 ;;
34876esac
34877fi
34878SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34879if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034881$as_echo "$SCANDecodeDelegate" >&6; }
34882else
cristy8b350f62009-11-15 23:12:43 +000034883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034884$as_echo "no" >&6; }
34885fi
34886
34887
cristyec6934f2012-08-14 18:38:40 +000034888# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34889set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34891$as_echo_n "checking for $ac_word... " >&6; }
34892if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34893 $as_echo_n "(cached) " >&6
34894else
34895 case $SVGDecodeDelegate in
34896 [\\/]* | ?:[\\/]*)
34897 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34898 ;;
34899 *)
34900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34901for as_dir in $PATH
34902do
34903 IFS=$as_save_IFS
34904 test -z "$as_dir" && as_dir=.
34905 for ac_exec_ext in '' $ac_executable_extensions; do
34906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34907 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34909 break 2
34910 fi
34911done
34912 done
34913IFS=$as_save_IFS
34914
34915 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34916 ;;
34917esac
34918fi
34919SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34920if test -n "$SVGDecodeDelegate"; then
34921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34922$as_echo "$SVGDecodeDelegate" >&6; }
34923else
34924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34925$as_echo "no" >&6; }
34926fi
34927
34928
cristy3ed852e2009-09-05 21:47:34 +000034929# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34930set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034932$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034933if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034934 $as_echo_n "(cached) " >&6
34935else
34936 case $TXTDelegate in
34937 [\\/]* | ?:[\\/]*)
34938 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34939 ;;
34940 *)
34941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34942for as_dir in $PATH
34943do
34944 IFS=$as_save_IFS
34945 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034946 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034948 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034950 break 2
34951 fi
34952done
cristy8b350f62009-11-15 23:12:43 +000034953 done
cristy3ed852e2009-09-05 21:47:34 +000034954IFS=$as_save_IFS
34955
34956 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34957 ;;
34958esac
34959fi
34960TXTDelegate=$ac_cv_path_TXTDelegate
34961if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034963$as_echo "$TXTDelegate" >&6; }
34964else
cristy8b350f62009-11-15 23:12:43 +000034965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034966$as_echo "no" >&6; }
34967fi
34968
34969
cristy5ac9ac82010-07-29 13:24:24 +000034970# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34971set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34973$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034974if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034975 $as_echo_n "(cached) " >&6
34976else
34977 case $UniconvertorDelegate in
34978 [\\/]* | ?:[\\/]*)
34979 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34980 ;;
34981 *)
34982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34983for as_dir in $PATH
34984do
34985 IFS=$as_save_IFS
34986 test -z "$as_dir" && as_dir=.
34987 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034989 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34991 break 2
34992 fi
34993done
34994 done
34995IFS=$as_save_IFS
34996
34997 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34998 ;;
34999esac
35000fi
35001UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
35002if test -n "$UniconvertorDelegate"; then
35003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
35004$as_echo "$UniconvertorDelegate" >&6; }
35005else
35006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35007$as_echo "no" >&6; }
35008fi
35009
35010
cristy86e86092013-08-04 17:43:57 +000035011# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
35012set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
35013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35014$as_echo_n "checking for $ac_word... " >&6; }
35015if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
35016 $as_echo_n "(cached) " >&6
35017else
35018 case $WebPDecodeDelegate in
35019 [\\/]* | ?:[\\/]*)
35020 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
35021 ;;
35022 *)
35023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35024for as_dir in $PATH
35025do
35026 IFS=$as_save_IFS
35027 test -z "$as_dir" && as_dir=.
35028 for ac_exec_ext in '' $ac_executable_extensions; do
35029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35030 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35032 break 2
35033 fi
35034done
35035 done
35036IFS=$as_save_IFS
35037
35038 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
35039 ;;
35040esac
35041fi
35042WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
35043if test -n "$WebPDecodeDelegate"; then
35044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
35045$as_echo "$WebPDecodeDelegate" >&6; }
35046else
35047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35048$as_echo "no" >&6; }
35049fi
35050
35051
35052# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
35053set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
35054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35055$as_echo_n "checking for $ac_word... " >&6; }
35056if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
35057 $as_echo_n "(cached) " >&6
35058else
35059 case $WebPEncodeDelegate in
35060 [\\/]* | ?:[\\/]*)
35061 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
35062 ;;
35063 *)
35064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35065for as_dir in $PATH
35066do
35067 IFS=$as_save_IFS
35068 test -z "$as_dir" && as_dir=.
35069 for ac_exec_ext in '' $ac_executable_extensions; do
35070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35071 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35073 break 2
35074 fi
35075done
35076 done
35077IFS=$as_save_IFS
35078
35079 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
35080 ;;
35081esac
35082fi
35083WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
35084if test -n "$WebPEncodeDelegate"; then
35085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
35086$as_echo "$WebPEncodeDelegate" >&6; }
35087else
35088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35089$as_echo "no" >&6; }
35090fi
35091
35092
cristy3ed852e2009-09-05 21:47:34 +000035093# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
35094set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035096$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035097if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035098 $as_echo_n "(cached) " >&6
35099else
35100 case $WMFDecodeDelegate in
35101 [\\/]* | ?:[\\/]*)
35102 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
35103 ;;
35104 *)
35105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35106for as_dir in $PATH
35107do
35108 IFS=$as_save_IFS
35109 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035110 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035112 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035114 break 2
35115 fi
35116done
cristy8b350f62009-11-15 23:12:43 +000035117 done
cristy3ed852e2009-09-05 21:47:34 +000035118IFS=$as_save_IFS
35119
35120 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
35121 ;;
35122esac
35123fi
35124WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
35125if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035127$as_echo "$WMFDecodeDelegate" >&6; }
35128else
cristy8b350f62009-11-15 23:12:43 +000035129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035130$as_echo "no" >&6; }
35131fi
35132
35133
35134# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
35135set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035137$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035138if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035139 $as_echo_n "(cached) " >&6
35140else
35141 case $WWWDecodeDelegate in
35142 [\\/]* | ?:[\\/]*)
35143 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
35144 ;;
35145 *)
35146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35147for as_dir in $PATH
35148do
35149 IFS=$as_save_IFS
35150 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035151 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035153 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035155 break 2
35156 fi
35157done
cristy8b350f62009-11-15 23:12:43 +000035158 done
cristy3ed852e2009-09-05 21:47:34 +000035159IFS=$as_save_IFS
35160
35161 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
35162 ;;
35163esac
35164fi
35165WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
35166if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035168$as_echo "$WWWDecodeDelegate" >&6; }
35169else
cristy8b350f62009-11-15 23:12:43 +000035170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035171$as_echo "no" >&6; }
35172fi
35173
35174
35175# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
35176set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035178$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035179if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035180 $as_echo_n "(cached) " >&6
35181else
35182 case $XPSDelegate in
35183 [\\/]* | ?:[\\/]*)
35184 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
35185 ;;
35186 *)
35187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35188for as_dir in $PATH
35189do
35190 IFS=$as_save_IFS
35191 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035194 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035196 break 2
35197 fi
35198done
cristy8b350f62009-11-15 23:12:43 +000035199 done
cristy3ed852e2009-09-05 21:47:34 +000035200IFS=$as_save_IFS
35201
35202 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
35203 ;;
35204esac
35205fi
35206XPSDelegate=$ac_cv_path_XPSDelegate
35207if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035209$as_echo "$XPSDelegate" >&6; }
35210else
cristy8b350f62009-11-15 23:12:43 +000035211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035212$as_echo "no" >&6; }
35213fi
35214
35215
35216# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
35217set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035219$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035220if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035221 $as_echo_n "(cached) " >&6
35222else
35223 case $ZipDelegate in
35224 [\\/]* | ?:[\\/]*)
35225 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
35226 ;;
35227 *)
35228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35229for as_dir in $PATH
35230do
35231 IFS=$as_save_IFS
35232 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035233 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035235 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035237 break 2
35238 fi
35239done
cristy8b350f62009-11-15 23:12:43 +000035240 done
cristy3ed852e2009-09-05 21:47:34 +000035241IFS=$as_save_IFS
35242
35243 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
35244 ;;
35245esac
35246fi
35247ZipDelegate=$ac_cv_path_ZipDelegate
35248if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035250$as_echo "$ZipDelegate" >&6; }
35251else
cristy8b350f62009-11-15 23:12:43 +000035252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035253$as_echo "no" >&6; }
35254fi
35255
35256
35257
35258# Prefer lpr to lp; lp needs options tacked on.
35259if test "$LPRDelegate" != no; then
35260 PrintDelegate="$LPRDelegate"
35261else
35262 PrintDelegate="$LPDelegate -c -s"
35263fi
35264
35265
35266# Installed ImageMagick utiltity paths
35267ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
35268DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
35269MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
35270
35271# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000035272have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035273have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
35274have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
35275have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000035276have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035277have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
35278have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035279have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
35280
35281#
35282# Test for font directories
35283#
35284type_include_files=''
35285
cristy5a3dc992014-12-05 19:50:04 +000035286 Apple fonts.
35287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
35288$as_echo_n "checking for Apple fonts directory... " >&6; }
35289apple_font_dir=''
35290if test "${with_apple_font_dir}" != 'default'; then
35291 apple_font_dir="${with_apple_font_dir}/"
35292else
35293 for font_dir in '/Library/Fonts/'; do
35294 if test -f "${font_dir}Arial.ttf"; then
35295 apple_font_dir="${font_dir}"
35296 break 1
35297 fi
35298 done
35299fi
35300if test "${apple_font_dir}x" != 'x'; then
35301 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
35302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
35303$as_echo "$apple_font_dir" >&6; }
35304else
35305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35306$as_echo "not found!" >&6; };
35307fi
35308
35309
cristy430a7312010-01-21 20:44:04 +000035310# Dejavu fonts.
35311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
35312$as_echo_n "checking for Dejavu fonts directory... " >&6; }
35313dejavu_font_dir=''
35314if test "${with_dejavu_font_dir}" != 'default'; then
35315 dejavu_font_dir="${with_dejavu_font_dir}/"
35316else
35317 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
35318 if test -f "${font_dir}DejaVuSerif.ttf"; then
35319 dejavu_font_dir="${font_dir}"
35320 break 1
35321 fi
35322 done
35323fi
35324if test "${dejavu_font_dir}x" != 'x'; then
35325 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
35327$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000035328else
cristyad38abe2012-12-23 23:03:21 +000035329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35330$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000035331fi
35332
35333
cristy3ed852e2009-09-05 21:47:34 +000035334# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000035335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000035336$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
35337ghostscript_font_dir=''
35338if test "${with_gs_font_dir}" != 'default'; then
35339 ghostscript_font_dir="${with_gs_font_dir}/"
35340else
35341 if test "${native_win32_build}" = 'yes'; then
35342 # Native Windows Build
35343 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
35344 if test -f "${font_dir}a010013l.pfb"; then
35345 ghostscript_font_dir="$font_dir"
35346 break 1
35347 fi
35348 done
35349 if test "${PSDelegate}" != 'gswin32c'; then
35350 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
35351 fi
35352 else
35353 # Linux / Mac OS X / Unix Build
35354 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
35355 if test -f "${font_dir}a010013l.pfb"; then
35356 ghostscript_font_dir="${font_dir}"
35357 break 1
35358 fi
35359 done
35360 if test "${ghostscript_font_dir}x" = 'x'; then
35361 if test "$PSDelegate" != 'gs'; then
35362 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
35363 fi
35364 fi
35365 fi
35366fi
35367if test "${ghostscript_font_dir}x" != 'x'; then
35368 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
35370$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035371else
cristyad38abe2012-12-23 23:03:21 +000035372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35373$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000035374fi
35375
35376case "${build_os}" in
35377 mingw* )
35378 PSDelegate=`$WinPathScript "$PSDelegate" 1`
35379 ;;
35380esac
35381
cristy5a3dc992014-12-05 19:50:04 +000035382# Windows fonts.
35383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
35384$as_echo_n "checking for Windows fonts directory... " >&6; }
35385windows_font_dir=''
35386if test "${with_windows_font_dir}" != 'default'; then
35387 windows_font_dir="${with_windows_font_dir}/"
35388else
35389 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
35390 if test -f "${font_dir}arial.ttf"; then
35391 windows_font_dir="${font_dir}"
35392 break 1
35393 fi
35394 done
35395fi
35396if test "${windows_font_dir}x" != 'x'; then
35397 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
35398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
35399$as_echo "$windows_font_dir" >&6; }
35400else
35401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35402$as_echo "not found!" >&6; };
35403fi
35404
35405
cristy3ed852e2009-09-05 21:47:34 +000035406
35407
35408#
35409# Handle case where user doesn't want frozen paths
35410#
35411if test "$with_frozenpaths" != 'yes'; then
35412 # Re-set delegate definitions to default (no paths)
35413 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy16b412d2014-12-15 11:09:48 +000035414 BGPDecodeDelegate="$BGPDecodeDelegateDefault"
35415 BGPEncodeDelegate="$BGPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035416 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
35417 BZIPDelegate="$BZIPDelegateDefault"
35418 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035419 CatDelegate="$CatDelegateDefault"
35420 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035421 DisplayDelegate="$DisplayDelegateDefault"
35422 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000035423 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035424 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35425 EchoDelegate="$EchoDelegateDefault"
35426 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035427 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035428 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035429 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35430 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35431 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35432 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035433 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35434 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035435 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035436 LaunchDelegate="$LaunchDelegateDefault"
35437 MANDelegate="$MANDelegateDefault"
35438 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35439 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035440 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000035441 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35442 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035443 PCLDelegate="$PCLDelegateDefault"
35444 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
35445 POVDelegate="$POVDelegateDefault"
35446 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035447 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
35448 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000035449 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035450 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000035451 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035452 ShowImageDelegate="$ShowImageDelegateDefault"
35453 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000035454 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000035455 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35456 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035457 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
35458 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35459 XPSDelegate="$XPSDelegateDefault"
35460 ZipDelegate="$ZipDelegateDefault"
35461fi
35462
35463# Delegate substitutions
35464
35465
35466
35467
35468
35469
35470
35471
35472
35473
35474
35475
35476
35477
35478
35479
35480
35481
35482
35483
35484
35485
35486
35487
35488
35489
35490
35491
35492
35493
35494
35495
35496
35497
35498
35499
35500
35501
35502
35503
cristy71f53d52013-04-27 13:33:59 +000035504
35505
cristy16b412d2014-12-15 11:09:48 +000035506
35507
cristy3ed852e2009-09-05 21:47:34 +000035508#
35509# RPM support.
35510#
35511RPM=''
35512for ac_prog in gnutar gtar tar
35513do
35514 # Extract the first word of "$ac_prog", so it can be a program name with args.
35515set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035517$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035518if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035519 $as_echo_n "(cached) " >&6
35520else
35521 if test -n "$TAR"; then
35522 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35523else
35524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35525for as_dir in $PATH
35526do
35527 IFS=$as_save_IFS
35528 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035529 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035531 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035533 break 2
35534 fi
35535done
cristy8b350f62009-11-15 23:12:43 +000035536 done
cristy3ed852e2009-09-05 21:47:34 +000035537IFS=$as_save_IFS
35538
35539fi
35540fi
35541TAR=$ac_cv_prog_TAR
35542if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035544$as_echo "$TAR" >&6; }
35545else
cristy8b350f62009-11-15 23:12:43 +000035546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035547$as_echo "no" >&6; }
35548fi
35549
35550
35551 test -n "$TAR" && break
35552done
35553
35554for ac_prog in perl
35555do
35556 # Extract the first word of "$ac_prog", so it can be a program name with args.
35557set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035559$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035560if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035561 $as_echo_n "(cached) " >&6
35562else
35563 if test -n "$PERL"; then
35564 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35565else
35566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35567for as_dir in $PATH
35568do
35569 IFS=$as_save_IFS
35570 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035571 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035573 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035575 break 2
35576 fi
35577done
cristy8b350f62009-11-15 23:12:43 +000035578 done
cristy3ed852e2009-09-05 21:47:34 +000035579IFS=$as_save_IFS
35580
35581fi
35582fi
35583PERL=$ac_cv_prog_PERL
35584if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035586$as_echo "$PERL" >&6; }
35587else
cristy8b350f62009-11-15 23:12:43 +000035588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035589$as_echo "no" >&6; }
35590fi
35591
35592
35593 test -n "$PERL" && break
35594done
35595
35596for ac_prog in rpmbuild rpm
35597do
35598 # Extract the first word of "$ac_prog", so it can be a program name with args.
35599set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035601$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035602if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035603 $as_echo_n "(cached) " >&6
35604else
35605 if test -n "$RPM"; then
35606 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35607else
35608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35609for as_dir in $PATH
35610do
35611 IFS=$as_save_IFS
35612 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035613 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035615 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035617 break 2
35618 fi
35619done
cristy8b350f62009-11-15 23:12:43 +000035620 done
cristy3ed852e2009-09-05 21:47:34 +000035621IFS=$as_save_IFS
35622
35623fi
35624fi
35625RPM=$ac_cv_prog_RPM
35626if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035628$as_echo "$RPM" >&6; }
35629else
cristy8b350f62009-11-15 23:12:43 +000035630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035631$as_echo "no" >&6; }
35632fi
35633
35634
35635 test -n "$RPM" && break
35636done
35637
35638
cristy73bd4a52010-10-05 11:24:23 +000035639ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35640
35641
35642AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35643
35644
35645AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35646
35647
35648AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35649
35650
35651 if test "x$RPM" != "x" ; then
35652 RPM_DELEGATE_TRUE=
35653 RPM_DELEGATE_FALSE='#'
35654else
35655 RPM_DELEGATE_TRUE='#'
35656 RPM_DELEGATE_FALSE=
35657fi
35658
cristy3ed852e2009-09-05 21:47:34 +000035659
35660#
35661# 7ZIP support (http://p7zip.sourceforge.net/)
35662#
35663P7ZIP=''
35664for ac_prog in 7za
35665do
35666 # Extract the first word of "$ac_prog", so it can be a program name with args.
35667set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035669$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035670if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035671 $as_echo_n "(cached) " >&6
35672else
35673 if test -n "$P7ZIP"; then
35674 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35675else
35676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35677for as_dir in $PATH
35678do
35679 IFS=$as_save_IFS
35680 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035681 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035683 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035685 break 2
35686 fi
35687done
cristy8b350f62009-11-15 23:12:43 +000035688 done
cristy3ed852e2009-09-05 21:47:34 +000035689IFS=$as_save_IFS
35690
35691fi
35692fi
35693P7ZIP=$ac_cv_prog_P7ZIP
35694if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035696$as_echo "$P7ZIP" >&6; }
35697else
cristy8b350f62009-11-15 23:12:43 +000035698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035699$as_echo "no" >&6; }
35700fi
35701
35702
35703 test -n "$P7ZIP" && break
35704done
35705
35706
cristy73bd4a52010-10-05 11:24:23 +000035707 if test "x$P7ZIP" != "x" ; then
35708 P7ZIP_DELEGATE_TRUE=
35709 P7ZIP_DELEGATE_FALSE='#'
35710else
35711 P7ZIP_DELEGATE_TRUE='#'
35712 P7ZIP_DELEGATE_FALSE=
35713fi
35714
cristy3ed852e2009-09-05 21:47:34 +000035715
35716#
35717# ZIP support (http://www.info-zip.org/Zip.html)
35718#
35719ZIP=''
35720for ac_prog in zip
35721do
35722 # Extract the first word of "$ac_prog", so it can be a program name with args.
35723set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035725$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035726if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035727 $as_echo_n "(cached) " >&6
35728else
35729 if test -n "$ZIP"; then
35730 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35731else
35732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35733for as_dir in $PATH
35734do
35735 IFS=$as_save_IFS
35736 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035737 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035739 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035741 break 2
35742 fi
35743done
cristy8b350f62009-11-15 23:12:43 +000035744 done
cristy3ed852e2009-09-05 21:47:34 +000035745IFS=$as_save_IFS
35746
35747fi
35748fi
35749ZIP=$ac_cv_prog_ZIP
35750if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035752$as_echo "$ZIP" >&6; }
35753else
cristy8b350f62009-11-15 23:12:43 +000035754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035755$as_echo "no" >&6; }
35756fi
35757
35758
35759 test -n "$ZIP" && break
35760done
35761
35762
cristy73bd4a52010-10-05 11:24:23 +000035763 if test "x$ZIP" != "x" ; then
35764 ZIP_DELEGATE_TRUE=
35765 ZIP_DELEGATE_FALSE='#'
35766else
35767 ZIP_DELEGATE_TRUE='#'
35768 ZIP_DELEGATE_FALSE=
35769fi
35770
cristy3ed852e2009-09-05 21:47:34 +000035771
35772#
35773# GhostPCL related configuration.
35774#
35775PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035776PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035777PCLMonoDevice=pbmraw
35778if test -z "$PCLVersion"; then
35779 PCLVersion='unknown'
35780fi
35781if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35783$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035785$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35787$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035788 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035790$as_echo_n "checking for pcl color device... " >&6; }
35791 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35792 :
35793 else
35794 PCLColorDevice=ppmraw
35795 fi
cristyad38abe2012-12-23 23:03:21 +000035796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35797$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035798
35799 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035801$as_echo_n "checking for pcl CMYK device... " >&6; }
35802 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35803 :
35804 else
35805 PCLCMYKDevice=$PCLColorDevice
35806 fi
cristyad38abe2012-12-23 23:03:21 +000035807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35808$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035809
35810 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035812$as_echo_n "checking for pcl mono device... " >&6; }
35813 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35814 :
35815 else
35816 PCLMonoDevice=$PCLColorDevice
35817 fi
cristyad38abe2012-12-23 23:03:21 +000035818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35819$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035820fi
35821
35822
35823
35824
35825
35826
35827#
35828# GhostXPS related configuration.
35829#
35830XPSColorDevice=ppmraw
35831XPSCMYKDevice=bmpsep8
35832XPSMonoDevice=pbmraw
35833if test -z "$XPSVersion"; then
35834 XPSVersion='unknown'
35835fi
35836if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35838$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035840$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35842$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035843 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035845$as_echo_n "checking for xps color device... " >&6; }
35846 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35847 :
35848 else
35849 XPSColorDevice=ppmraw
35850 fi
cristyad38abe2012-12-23 23:03:21 +000035851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35852$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035853
35854 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035856$as_echo_n "checking for xps CMYK device... " >&6; }
35857 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35858 :
35859 else
35860 XPSCMYKDevice=$XPSColorDevice
35861 fi
cristyad38abe2012-12-23 23:03:21 +000035862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35863$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035864
35865 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035867$as_echo_n "checking for xps mono device... " >&6; }
35868 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35869 :
35870 else
35871 XPSMonoDevice=$XPSColorDevice
35872 fi
cristyad38abe2012-12-23 23:03:21 +000035873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35874$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035875fi
35876
35877
35878
35879
35880
35881
35882#
35883# Ghostscript related configuration.
35884#
cristya97426c2011-02-04 01:41:27 +000035885GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035886GSColorDevice=pnmraw
35887GSCMYKDevice=pam
35888GSMonoDevice=pbmraw
35889GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035890GSPSDevice=ps2write
cristya5b91e72015-01-07 15:39:36 +000035891GSEPSDevice=eps2write
cristy3ed852e2009-09-05 21:47:34 +000035892GSVersion='unknown'
35893if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35895$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035897$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35899$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035901$as_echo_n "checking for Ghostscript version... " >&6; }
35902 if GSVersion=`$PSDelegate --version`; then
35903 :
35904 else
35905 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35906 fi
cristyad38abe2012-12-23 23:03:21 +000035907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35908$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035909
35910 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035912$as_echo_n "checking for gs alpha device... " >&6; }
35913 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35914 :
35915 else
35916 GSAlphaDevice=pnmraw
35917 fi
cristyad38abe2012-12-23 23:03:21 +000035918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35919$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035920
35921 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035923$as_echo_n "checking for gs color device... " >&6; }
35924 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35925 :
35926 else
35927 GSColorDevice=pnmraw
35928 fi
cristyad38abe2012-12-23 23:03:21 +000035929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35930$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035931
35932 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035934$as_echo_n "checking for gs CMYK device... " >&6; }
35935 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35936 :
35937 else
35938 GSCMYKDevice=bmpsep8
35939 fi
cristyad38abe2012-12-23 23:03:21 +000035940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35941$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035942
35943 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035945$as_echo_n "checking for gs mono device... " >&6; }
35946 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35947 :
35948 else
35949 GSMonoDevice=$GSColorDevice
35950 fi
cristyad38abe2012-12-23 23:03:21 +000035951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35952$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035953
35954 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035956$as_echo_n "checking for gs PDF writing device... " >&6; }
35957 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35958 :
35959 else
35960 GSPDFDevice=nodevice
35961 fi
cristyad38abe2012-12-23 23:03:21 +000035962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35963$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035964
35965 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035967$as_echo_n "checking for gs PS writing device... " >&6; }
35968 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35969 :
35970 else
cristy15308162015-01-09 23:43:12 +000035971 GSPSDevice=pswrite
cristy3ed852e2009-09-05 21:47:34 +000035972 fi
cristyad38abe2012-12-23 23:03:21 +000035973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35974$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035975
35976 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035978$as_echo_n "checking for gs EPS writing device... " >&6; }
35979 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35980 :
35981 else
cristy15308162015-01-09 23:43:12 +000035982 GSEPSDevice=epswrite
cristy3ed852e2009-09-05 21:47:34 +000035983 fi
cristyad38abe2012-12-23 23:03:21 +000035984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35985$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035986fi
35987
35988
35989
35990
35991
35992
35993
35994
35995
35996
35997#
35998# PerlMagick-related configuration
35999#
36000
36001# Look for PERL if PerlMagick requested
36002# If name/path of desired PERL interpreter is specified, look for that one first
36003have_perl='no'
36004if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000036005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36006$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000036007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000036008$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000036009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36010$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036011 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000036013$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036014if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036015 $as_echo_n "(cached) " >&6
36016else
36017 ac_cv_path_PERL="$with_perl"
36018fi
cristy8b350f62009-11-15 23:12:43 +000036019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036020$as_echo "$ac_cv_path_PERL" >&6; };
36021 PERL=$ac_cv_path_PERL
36022 have_perl="$ac_cv_path_PERL"
36023 else
36024 for ac_prog in perl perl5
36025do
36026 # Extract the first word of "$ac_prog", so it can be a program name with args.
36027set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000036028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000036029$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036030if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036031 $as_echo_n "(cached) " >&6
36032else
36033 case $PERL in
36034 [\\/]* | ?:[\\/]*)
36035 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
36036 ;;
36037 *)
36038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36039for as_dir in $PATH
36040do
36041 IFS=$as_save_IFS
36042 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036043 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000036044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000036045 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000036046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000036047 break 2
36048 fi
36049done
cristy8b350f62009-11-15 23:12:43 +000036050 done
cristy3ed852e2009-09-05 21:47:34 +000036051IFS=$as_save_IFS
36052
36053 ;;
36054esac
36055fi
36056PERL=$ac_cv_path_PERL
36057if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000036058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036059$as_echo "$PERL" >&6; }
36060else
cristy8b350f62009-11-15 23:12:43 +000036061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000036062$as_echo "no" >&6; }
36063fi
36064
36065
36066 test -n "$PERL" && break
36067done
36068 if test "$ac_cv_path_PERL"; then
36069 have_perl="$ac_cv_path_PERL"
36070 fi
36071 fi
36072fi
36073
cristy949301e2010-01-06 01:38:40 +000036074if test "$with_perl" != 'yes' ; then
36075 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
36076fi
36077
36078PERL_SUPPORTS_DESTDIR='no'
36079
cristy3ed852e2009-09-05 21:47:34 +000036080with_perl_static='no'
36081with_perl_dynamic='no'
36082if test "$have_perl" != 'no'; then
36083 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
36084 with_perl_static='yes'
36085 fi
36086 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
36087 with_perl_dynamic='yes'
36088 fi
36089 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000036090
36091
36092
36093
36094 if test -n "$PERL"; then :
36095
36096 ax_perl_version="5.8.1"
36097
36098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
36099$as_echo_n "checking for perl version... " >&6; }
36100
cristy17491be2014-06-24 01:10:53 +000036101 perl_version=`$PERL --version 2>&1 \
36102 | $SED -n -e '/This is perl/b inspect
36103b
36104: inspect
36105s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000036106
36107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
36108$as_echo "$perl_version" >&6; }
36109
36110 PERL_VERSION=$perl_version
36111
36112
36113
36114
36115
36116 # Used to indicate true or false condition
36117 ax_compare_version=false
36118
36119 # Convert the two version strings to be compared into a format that
36120 # allows a simple string comparison. The end result is that a version
36121 # string of the form 1.12.5-r617 will be converted to the form
36122 # 0001001200050617. In other words, each number is zero padded to four
36123 # digits, and non digits are removed.
36124
36125 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36126 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36127 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36128 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36129 -e 's/[^0-9]//g'`
36130
36131
36132 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36133 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36134 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36135 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36136 -e 's/[^0-9]//g'`
36137
36138
36139 ax_compare_version=`echo "x$ax_compare_version_A
36140x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
36141
36142
36143
36144 if test "$ax_compare_version" = "true" ; then
36145
36146 :
36147 PERL_SUPPORTS_DESTDIR='yes'
36148
36149 else
36150 :
36151 PERL_SUPPORTS_DESTDIR='no'
36152
36153 fi
36154
36155
36156else
36157
36158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
36159$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
36160 PERL_SUPPORTS_DESTDIR='no'
36161
cristy3ed852e2009-09-05 21:47:34 +000036162fi
cristy73bd4a52010-10-05 11:24:23 +000036163
36164fi
36165 if test "$have_perl" != 'no'; then
36166 WITH_PERL_TRUE=
36167 WITH_PERL_FALSE='#'
36168else
36169 WITH_PERL_TRUE='#'
36170 WITH_PERL_FALSE=
36171fi
36172
36173 if test $with_perl_static = 'yes'; then
36174 WITH_PERL_STATIC_TRUE=
36175 WITH_PERL_STATIC_FALSE='#'
36176else
36177 WITH_PERL_STATIC_TRUE='#'
36178 WITH_PERL_STATIC_FALSE=
36179fi
36180
36181 if test $with_perl_dynamic = 'yes'; then
36182 WITH_PERL_DYNAMIC_TRUE=
36183 WITH_PERL_DYNAMIC_FALSE='#'
36184else
36185 WITH_PERL_DYNAMIC_TRUE='#'
36186 WITH_PERL_DYNAMIC_FALSE=
36187fi
36188
cristy3ed852e2009-09-05 21:47:34 +000036189
36190
36191# Determine path to pick up MagickCore library from for use with building PerlMagick
36192MAGICKCORE_PATH="${LIB_DIR}"
36193if test $with_perl_static = 'yes'; then
36194 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
36195 libtool_objdir=$objdir
36196
36197 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000036198 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000036199fi
36200
36201
cristy2a3eb392012-12-17 13:39:20 +000036202# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000036203MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000036204if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036205 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000036206fi
cristy2a3eb392012-12-17 13:39:20 +000036207if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036208 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000036209fi
36210if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036211 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000036212fi
36213if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036214 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000036215fi
cristy81ab5af2013-10-06 18:28:39 +000036216if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036217 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000036218fi
36219if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036220 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000036221fi
cristy2a3eb392012-12-17 13:39:20 +000036222if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036223 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000036224fi
36225if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036226 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000036227fi
36228if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036229 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000036230fi
36231if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036232 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000036233fi
36234if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036235 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000036236fi
36237if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000036238 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000036239fi
36240if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036241 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000036242fi
36243if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036244 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000036245fi
36246if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036247 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000036248fi
36249if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036250 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000036251fi
36252if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036253 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000036254fi
36255if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036256 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000036257fi
cristy99db3872014-01-01 15:11:34 +000036258if test "$have_openjp2" = 'yes' ; then
36259 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000036260fi
cristy2a3eb392012-12-17 13:39:20 +000036261if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036262 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000036263fi
36264if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036265 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000036266fi
36267have_ps='no'
36268if test "$have_dps" = 'yes' || \
36269 test "$have_gs" = 'yes' || \
36270 test "${native_win32_build}" = 'yes' ; then
36271 have_ps='yes'
36272fi
36273if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036274 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000036275fi
cristy2a3eb392012-12-17 13:39:20 +000036276if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036277 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000036278fi
36279if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036280 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000036281fi
36282if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036283 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000036284fi
36285if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036286 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000036287fi
cristy3b640ed2013-07-29 00:27:59 +000036288if test "$have_webp" = 'yes' ; then
36289 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
36290fi
cristy2a3eb392012-12-17 13:39:20 +000036291if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036292 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000036293fi
36294if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036295 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000036296fi
36297if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036298 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000036299fi
36300if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036301 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000036302fi
cristy2a3eb392012-12-17 13:39:20 +000036303# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000036304MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000036305MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036306
36307
cristyfa161182012-12-19 15:45:28 +000036308
cristy3ed852e2009-09-05 21:47:34 +000036309#
36310# Handle special compiler flags
36311#
36312
36313# Add '-p' if prof source profiling support enabled
36314if test "$enable_prof" = 'yes'; then
36315 CFLAGS="-p $CFLAGS"
36316 CXXFLAGS="-p $CXXFLAGS"
36317 LDFLAGS="-p $LDFLAGS"
36318fi
36319
36320# Add '-pg' if gprof source profiling support enabled
36321if test "$enable_gprof" = 'yes'; then
36322 CFLAGS="-pg $CFLAGS"
36323 CXXFLAGS="-pg $CXXFLAGS"
36324 LDFLAGS="-pg $LDFLAGS"
36325fi
36326
36327# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
36328# This is a gcc-specific feature
36329if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036331$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036332if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036333 $as_echo_n "(cached) " >&6
36334else
36335 ac_check_lib_save_LIBS=$LIBS
36336LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036338/* end confdefs.h. */
36339
36340/* Override any GCC internal prototype to avoid an error.
36341 Use char because int might match the return type of a GCC
36342 builtin and then its argument prototype would still apply. */
36343#ifdef __cplusplus
36344extern "C"
36345#endif
36346char _gcov_init ();
36347int
36348main ()
36349{
36350return _gcov_init ();
36351 ;
36352 return 0;
36353}
36354_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036355if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036356 ac_cv_lib_gcov__gcov_init=yes
36357else
cristy8b350f62009-11-15 23:12:43 +000036358 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036359fi
cristy8b350f62009-11-15 23:12:43 +000036360rm -f core conftest.err conftest.$ac_objext \
36361 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036362LIBS=$ac_check_lib_save_LIBS
36363fi
cristy8b350f62009-11-15 23:12:43 +000036364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036365$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036366if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036367 cat >>confdefs.h <<_ACEOF
36368#define HAVE_LIBGCOV 1
36369_ACEOF
36370
36371 LIBS="-lgcov $LIBS"
36372
36373fi
36374
cristy8b350f62009-11-15 23:12:43 +000036375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036376$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036377if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036378 $as_echo_n "(cached) " >&6
36379else
36380 ac_check_lib_save_LIBS=$LIBS
36381LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036383/* end confdefs.h. */
36384
36385/* Override any GCC internal prototype to avoid an error.
36386 Use char because int might match the return type of a GCC
36387 builtin and then its argument prototype would still apply. */
36388#ifdef __cplusplus
36389extern "C"
36390#endif
36391char __gcov_init ();
36392int
36393main ()
36394{
36395return __gcov_init ();
36396 ;
36397 return 0;
36398}
36399_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036400if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036401 ac_cv_lib_gcov___gcov_init=yes
36402else
cristy8b350f62009-11-15 23:12:43 +000036403 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036404fi
cristy8b350f62009-11-15 23:12:43 +000036405rm -f core conftest.err conftest.$ac_objext \
36406 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036407LIBS=$ac_check_lib_save_LIBS
36408fi
cristy8b350f62009-11-15 23:12:43 +000036409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036410$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036411if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036412 cat >>confdefs.h <<_ACEOF
36413#define HAVE_LIBGCOV 1
36414_ACEOF
36415
36416 LIBS="-lgcov $LIBS"
36417
36418fi
36419
36420 case "$target_os" in
36421 darwin*)
36422 OSX_GCOV_LDFLAG="-Wl,-single_module"
36423 ;;
36424 *)
36425 OSX_GCOV_LDFLAG=""
36426 ;;
36427 esac
36428
36429 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
36430 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
36431 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36432fi
36433
36434#
36435# Build library dependency list for libMagickCore
36436#
36437
cristyc6722092012-10-14 00:19:31 +000036438if test "$build_modules" != 'no'; then
cristy3b0097d2014-11-04 15:34:47 +000036439 MAGICK_DEP_LIBS="$USER_LIBS $LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036440else
cristy3b0097d2014-11-04 15:34:47 +000036441 MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $OPENJPEG_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036442fi
36443
36444
36445#
36446# Remove extraneous spaces from output variables (asthetic)
36447#
36448X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
36449X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
36450X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
36451X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
36452
36453CC=`echo $CC | sed -e 's/ */ /g'`
36454CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
36455CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
36456CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036457DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
36458LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
36459TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36460MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
36461#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36462
36463# Pass only user-provided LIBS as "global" libraries
36464LIBS=$USER_LIBS
36465
36466#AC_SUBST(CPPFLAGS)
36467
36468#AC_SUBST(LDFLAGS)
36469#AC_SUBST(X_PRE_LIBS)
36470#AC_SUBST(X_LIBS)
36471#AC_SUBST(X_EXTRA_LIBS)
36472
36473MAGICK_CFLAGS=$CFLAGS
36474MAGICK_CXXFLAGS="$CXXFLAGS"
36475MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
36476MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
36477MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000036478MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036479
36480
36481
36482
36483
36484
36485
36486
36487# Set configured scripts to executable.
36488ac_config_commands="$ac_config_commands default"
36489
cristy2bd4b6e2012-07-22 15:29:11 +000036490ac_config_commands="$ac_config_commands magick.sh.in"
36491
cristy3ed852e2009-09-05 21:47:34 +000036492ac_config_commands="$ac_config_commands MagickCore-config.in"
36493
cristy3ed852e2009-09-05 21:47:34 +000036494ac_config_commands="$ac_config_commands MagickWand-config.in"
36495
cristy3ed852e2009-09-05 21:47:34 +000036496ac_config_commands="$ac_config_commands Magick++-config.in"
36497
36498ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36499
36500
cristyad38abe2012-12-23 23:03:21 +000036501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36502$as_echo "-------------------------------------------------------------" >&6; }
36503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36504$as_echo "Update ImageMagick configuration" >&6; }
cristy9af1cbf2014-12-28 22:03:09 +000036505
36506rm -f magick-version
36507
36508result_dejavu_font_dir='none'
36509if test "${dejavu_font_dir}x" != 'x'; then
36510 result_dejavu_font_dir=$dejavu_font_dir
36511fi
36512
36513result_ghostscript_font_dir='none'
36514if test "${ghostscript_font_dir}x" != 'x'; then
36515 result_ghostscript_font_dir=$ghostscript_font_dir
36516fi
36517
36518result_windows_font_dir='none'
36519if test "${windows_font_dir}x" != 'x'; then
36520 result_windows_font_dir=${windows_font_dir}
36521fi
36522
36523# ==============================================================================
36524# Generate build environment
36525# ==============================================================================
36526ac_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-apple.xml 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"
36527
cristy3ed852e2009-09-05 21:47:34 +000036528cat >confcache <<\_ACEOF
36529# This file is a shell script that caches the results of configure
36530# tests run on this system so they can be shared between configure
36531# scripts and configure runs, see configure's option --config-cache.
36532# It is not useful on other systems. If it contains results you don't
36533# want to keep, you may remove or edit it.
36534#
36535# config.status only pays attention to the cache file if you give it
36536# the --recheck option to rerun configure.
36537#
36538# `ac_cv_env_foo' variables (set or unset) will be overridden when
36539# loading this file, other *unset* `ac_cv_foo' will be assigned the
36540# following values.
36541
36542_ACEOF
36543
36544# The following way of writing the cache mishandles newlines in values,
36545# but we know of no workaround that is simple, portable, and efficient.
36546# So, we kill variables containing newlines.
36547# Ultrix sh set writes to stderr and can't be redirected directly,
36548# and sets the high bit in the cache file unless we assign to the vars.
36549(
36550 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36551 eval ac_val=\$$ac_var
36552 case $ac_val in #(
36553 *${as_nl}*)
36554 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036555 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036556$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36557 esac
36558 case $ac_var in #(
36559 _ | IFS | as_nl) ;; #(
36560 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036561 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036562 esac ;;
36563 esac
36564 done
36565
36566 (set) 2>&1 |
36567 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36568 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036569 # `set' does not quote correctly, so add quotes: double-quote
36570 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036571 sed -n \
36572 "s/'/'\\\\''/g;
36573 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36574 ;; #(
36575 *)
36576 # `set' quotes correctly as required by POSIX, so do not add quotes.
36577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36578 ;;
36579 esac |
36580 sort
36581) |
36582 sed '
36583 /^ac_cv_env_/b end
36584 t clear
36585 :clear
36586 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36587 t end
36588 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36589 :end' >>confcache
36590if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36591 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036592 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036593 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036594$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036595 if test ! -f "$cache_file" || test -h "$cache_file"; then
36596 cat confcache >"$cache_file"
36597 else
36598 case $cache_file in #(
36599 */* | ?:*)
36600 mv -f confcache "$cache_file"$$ &&
36601 mv -f "$cache_file"$$ "$cache_file" ;; #(
36602 *)
36603 mv -f confcache "$cache_file" ;;
36604 esac
36605 fi
36606 fi
cristy3ed852e2009-09-05 21:47:34 +000036607 else
cristy8b350f62009-11-15 23:12:43 +000036608 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036609$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36610 fi
36611fi
36612rm -f confcache
36613
36614test "x$prefix" = xNONE && prefix=$ac_default_prefix
36615# Let make expand exec_prefix.
36616test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36617
36618DEFS=-DHAVE_CONFIG_H
36619
36620ac_libobjs=
36621ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036622U=
cristy3ed852e2009-09-05 21:47:34 +000036623for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36624 # 1. Remove the extension, and $U if already installed.
36625 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36626 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36627 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36628 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036629 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36630 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036631done
36632LIBOBJS=$ac_libobjs
36633
36634LTLIBOBJS=$ac_ltlibobjs
36635
36636
cristyc0890a62012-07-19 00:18:20 +000036637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36638$as_echo_n "checking that generated files are newer than configure... " >&6; }
36639 if test -n "$am_sleep_pid"; then
36640 # Hide warnings about reused PIDs.
36641 wait $am_sleep_pid 2>/dev/null
36642 fi
36643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36644$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036645 if test -n "$EXEEXT"; then
36646 am__EXEEXT_TRUE=
36647 am__EXEEXT_FALSE='#'
36648else
36649 am__EXEEXT_TRUE='#'
36650 am__EXEEXT_FALSE=
36651fi
cristy3ed852e2009-09-05 21:47:34 +000036652
cristy9af1cbf2014-12-28 22:03:09 +000036653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36654$as_echo_n "checking that generated files are newer than configure... " >&6; }
36655 if test -n "$am_sleep_pid"; then
36656 # Hide warnings about reused PIDs.
36657 wait $am_sleep_pid 2>/dev/null
36658 fi
36659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36660$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036661if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036662 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036663Usually this means the macro was only invoked conditionally." "$LINENO" 5
36664fi
36665if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036666 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036667Usually this means the macro was only invoked conditionally." "$LINENO" 5
36668fi
36669if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036670 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036671Usually this means the macro was only invoked conditionally." "$LINENO" 5
36672fi
36673if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036674 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036675Usually this means the macro was only invoked conditionally." "$LINENO" 5
36676fi
cristy9b86f202012-11-28 21:55:35 +000036677if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36678 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36679Usually this means the macro was only invoked conditionally." "$LINENO" 5
36680fi
cristy73bd4a52010-10-05 11:24:23 +000036681if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036682 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036683Usually this means the macro was only invoked conditionally." "$LINENO" 5
36684fi
36685if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036686 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036687Usually this means the macro was only invoked conditionally." "$LINENO" 5
36688fi
36689if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036690 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036691Usually this means the macro was only invoked conditionally." "$LINENO" 5
36692fi
36693if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036694 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036695Usually this means the macro was only invoked conditionally." "$LINENO" 5
36696fi
cristy73bd4a52010-10-05 11:24:23 +000036697if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036698 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036699Usually this means the macro was only invoked conditionally." "$LINENO" 5
36700fi
36701if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036702 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036703Usually this means the macro was only invoked conditionally." "$LINENO" 5
36704fi
cristy73bd4a52010-10-05 11:24:23 +000036705if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036706 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036707Usually this means the macro was only invoked conditionally." "$LINENO" 5
36708fi
cristy71d8c202012-03-20 17:05:01 +000036709if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36710 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36711Usually this means the macro was only invoked conditionally." "$LINENO" 5
36712fi
cristy73bd4a52010-10-05 11:24:23 +000036713
36714if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036715 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036716Usually this means the macro was only invoked conditionally." "$LINENO" 5
36717fi
36718if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036719 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036720Usually this means the macro was only invoked conditionally." "$LINENO" 5
36721fi
cristy3b0097d2014-11-04 15:34:47 +000036722if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
36723 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
36724Usually this means the macro was only invoked conditionally." "$LINENO" 5
36725fi
cristy73bd4a52010-10-05 11:24:23 +000036726if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036727 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036728Usually this means the macro was only invoked conditionally." "$LINENO" 5
36729fi
36730if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036731 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036732Usually this means the macro was only invoked conditionally." "$LINENO" 5
36733fi
36734if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036735 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036736Usually this means the macro was only invoked conditionally." "$LINENO" 5
36737fi
36738if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036739 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036740Usually this means the macro was only invoked conditionally." "$LINENO" 5
36741fi
cristy5eef09f2012-10-16 12:08:28 +000036742if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36743 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36744Usually this means the macro was only invoked conditionally." "$LINENO" 5
36745fi
cristy73bd4a52010-10-05 11:24:23 +000036746if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036747 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036748Usually this means the macro was only invoked conditionally." "$LINENO" 5
36749fi
36750if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036751 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036752Usually this means the macro was only invoked conditionally." "$LINENO" 5
36753fi
cristy73bd4a52010-10-05 11:24:23 +000036754if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036755 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036756Usually this means the macro was only invoked conditionally." "$LINENO" 5
36757fi
36758if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036759 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036760Usually this means the macro was only invoked conditionally." "$LINENO" 5
36761fi
cristy853d9902014-08-21 18:50:43 +000036762if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36763 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36764Usually this means the macro was only invoked conditionally." "$LINENO" 5
36765fi
cristy73bd4a52010-10-05 11:24:23 +000036766if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036767 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036768Usually this means the macro was only invoked conditionally." "$LINENO" 5
36769fi
36770if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036771 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036772Usually this means the macro was only invoked conditionally." "$LINENO" 5
36773fi
36774if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036775 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036776Usually this means the macro was only invoked conditionally." "$LINENO" 5
36777fi
36778if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036779 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036780Usually this means the macro was only invoked conditionally." "$LINENO" 5
36781fi
36782if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036783 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036784Usually this means the macro was only invoked conditionally." "$LINENO" 5
36785fi
36786if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036787 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036788Usually this means the macro was only invoked conditionally." "$LINENO" 5
36789fi
cristy73bd4a52010-10-05 11:24:23 +000036790if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036791 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036792Usually this means the macro was only invoked conditionally." "$LINENO" 5
36793fi
cristy99db3872014-01-01 15:11:34 +000036794if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36795 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36796Usually this means the macro was only invoked conditionally." "$LINENO" 5
36797fi
cristy73bd4a52010-10-05 11:24:23 +000036798if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036799 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036800Usually this means the macro was only invoked conditionally." "$LINENO" 5
36801fi
cristyfbb0ef02010-12-19 02:32:11 +000036802if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36803 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36804Usually this means the macro was only invoked conditionally." "$LINENO" 5
36805fi
cristy73bd4a52010-10-05 11:24:23 +000036806if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036807 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036808Usually this means the macro was only invoked conditionally." "$LINENO" 5
36809fi
cristy41cbe8a2011-10-27 01:35:18 +000036810if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36811 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36812Usually this means the macro was only invoked conditionally." "$LINENO" 5
36813fi
cristya054b762012-03-26 23:16:00 +000036814if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36815 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036816Usually this means the macro was only invoked conditionally." "$LINENO" 5
36817fi
cristy73bd4a52010-10-05 11:24:23 +000036818if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036819 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036820Usually this means the macro was only invoked conditionally." "$LINENO" 5
36821fi
36822if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036823 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036824Usually this means the macro was only invoked conditionally." "$LINENO" 5
36825fi
36826if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036827 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036828Usually this means the macro was only invoked conditionally." "$LINENO" 5
36829fi
36830if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036831 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036832Usually this means the macro was only invoked conditionally." "$LINENO" 5
36833fi
cristyb1860752011-03-14 00:27:46 +000036834if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36835 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36836Usually this means the macro was only invoked conditionally." "$LINENO" 5
36837fi
cristy73bd4a52010-10-05 11:24:23 +000036838if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036839 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036840Usually this means the macro was only invoked conditionally." "$LINENO" 5
36841fi
36842if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036843 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036844Usually this means the macro was only invoked conditionally." "$LINENO" 5
36845fi
cristydd17feb2014-03-05 02:06:32 +000036846if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36847 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36848Usually this means the macro was only invoked conditionally." "$LINENO" 5
36849fi
cristy73bd4a52010-10-05 11:24:23 +000036850if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036851 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036852Usually this means the macro was only invoked conditionally." "$LINENO" 5
36853fi
36854if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036855 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036856Usually this means the macro was only invoked conditionally." "$LINENO" 5
36857fi
36858if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036859 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036860Usually this means the macro was only invoked conditionally." "$LINENO" 5
36861fi
36862if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036863 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036864Usually this means the macro was only invoked conditionally." "$LINENO" 5
36865fi
36866if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036867 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036868Usually this means the macro was only invoked conditionally." "$LINENO" 5
36869fi
36870if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036871 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036872Usually this means the macro was only invoked conditionally." "$LINENO" 5
36873fi
cristy3ed852e2009-09-05 21:47:34 +000036874
cristyda16f162011-02-19 23:52:17 +000036875: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036876ac_write_fail=0
36877ac_clean_files_save=$ac_clean_files
36878ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036879{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036880$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036881as_write_fail=0
36882cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036883#! $SHELL
36884# Generated by $as_me.
36885# Run this file to recreate the current configuration.
36886# Compiler output produced by configure, useful for debugging
36887# configure, is in config.log if it exists.
36888
36889debug=false
36890ac_cs_recheck=false
36891ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036892
cristy8b350f62009-11-15 23:12:43 +000036893SHELL=\${CONFIG_SHELL-$SHELL}
36894export SHELL
36895_ASEOF
36896cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36897## -------------------- ##
36898## M4sh Initialization. ##
36899## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036900
36901# Be more Bourne compatible
36902DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036903if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036904 emulate sh
36905 NULLCMD=:
36906 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36907 # is contrary to our usage. Disable this feature.
36908 alias -g '${1+"$@"}'='"$@"'
36909 setopt NO_GLOB_SUBST
36910else
cristy8b350f62009-11-15 23:12:43 +000036911 case `(set -o) 2>/dev/null` in #(
36912 *posix*) :
36913 set -o posix ;; #(
36914 *) :
36915 ;;
cristy3ed852e2009-09-05 21:47:34 +000036916esac
cristy3ed852e2009-09-05 21:47:34 +000036917fi
36918
36919
cristy3ed852e2009-09-05 21:47:34 +000036920as_nl='
36921'
36922export as_nl
36923# Printing a long string crashes Solaris 7 /usr/bin/printf.
36924as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36925as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36926as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036927# Prefer a ksh shell builtin over an external printf program on Solaris,
36928# but without wasting forks for bash or zsh.
36929if test -z "$BASH_VERSION$ZSH_VERSION" \
36930 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36931 as_echo='print -r --'
36932 as_echo_n='print -rn --'
36933elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036934 as_echo='printf %s\n'
36935 as_echo_n='printf %s'
36936else
36937 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36938 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36939 as_echo_n='/usr/ucb/echo -n'
36940 else
36941 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36942 as_echo_n_body='eval
36943 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036944 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036945 *"$as_nl"*)
36946 expr "X$arg" : "X\\(.*\\)$as_nl";
36947 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36948 esac;
36949 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36950 '
36951 export as_echo_n_body
36952 as_echo_n='sh -c $as_echo_n_body as_echo'
36953 fi
36954 export as_echo_body
36955 as_echo='sh -c $as_echo_body as_echo'
36956fi
36957
36958# The user is always right.
36959if test "${PATH_SEPARATOR+set}" != set; then
36960 PATH_SEPARATOR=:
36961 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36962 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36963 PATH_SEPARATOR=';'
36964 }
36965fi
36966
cristy3ed852e2009-09-05 21:47:34 +000036967
36968# IFS
36969# We need space, tab and new line, in precisely that order. Quoting is
36970# there to prevent editors from complaining about space-tab.
36971# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36972# splitting by setting IFS to empty value.)
36973IFS=" "" $as_nl"
36974
36975# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036976as_myself=
cristy8b350f62009-11-15 23:12:43 +000036977case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036978 *[\\/]* ) as_myself=$0 ;;
36979 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36980for as_dir in $PATH
36981do
36982 IFS=$as_save_IFS
36983 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036984 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36985 done
cristy3ed852e2009-09-05 21:47:34 +000036986IFS=$as_save_IFS
36987
36988 ;;
36989esac
36990# We did not find ourselves, most probably we were run as `sh COMMAND'
36991# in which case we are not to be found in the path.
36992if test "x$as_myself" = x; then
36993 as_myself=$0
36994fi
36995if test ! -f "$as_myself"; then
36996 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036997 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036998fi
36999
cristy8b350f62009-11-15 23:12:43 +000037000# Unset variables that we do not need and which cause bugs (e.g. in
37001# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
37002# suppresses any "Segmentation fault" message there. '((' could
37003# trigger a bug in pdksh 5.2.14.
37004for as_var in BASH_ENV ENV MAIL MAILPATH
37005do eval test x\${$as_var+set} = xset \
37006 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000037007done
37008PS1='$ '
37009PS2='> '
37010PS4='+ '
37011
37012# NLS nuisances.
37013LC_ALL=C
37014export LC_ALL
37015LANGUAGE=C
37016export LANGUAGE
37017
cristy8b350f62009-11-15 23:12:43 +000037018# CDPATH.
37019(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37020
37021
cristy98dddb52010-11-04 00:30:15 +000037022# as_fn_error STATUS ERROR [LINENO LOG_FD]
37023# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000037024# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37025# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000037026# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000037027as_fn_error ()
37028{
cristy98dddb52010-11-04 00:30:15 +000037029 as_status=$1; test $as_status -eq 0 && as_status=1
37030 if test "$4"; then
37031 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37032 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000037033 fi
cristy98dddb52010-11-04 00:30:15 +000037034 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000037035 as_fn_exit $as_status
37036} # as_fn_error
37037
37038
37039# as_fn_set_status STATUS
37040# -----------------------
37041# Set $? to STATUS, without forking.
37042as_fn_set_status ()
37043{
37044 return $1
37045} # as_fn_set_status
37046
37047# as_fn_exit STATUS
37048# -----------------
37049# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37050as_fn_exit ()
37051{
37052 set +e
37053 as_fn_set_status $1
37054 exit $1
37055} # as_fn_exit
37056
37057# as_fn_unset VAR
37058# ---------------
37059# Portably unset VAR.
37060as_fn_unset ()
37061{
37062 { eval $1=; unset $1;}
37063}
37064as_unset=as_fn_unset
37065# as_fn_append VAR VALUE
37066# ----------------------
37067# Append the text in VALUE to the end of the definition contained in VAR. Take
37068# advantage of any shell optimizations that allow amortized linear growth over
37069# repeated appends, instead of the typical quadratic growth present in naive
37070# implementations.
37071if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37072 eval 'as_fn_append ()
37073 {
37074 eval $1+=\$2
37075 }'
37076else
37077 as_fn_append ()
37078 {
37079 eval $1=\$$1\$2
37080 }
37081fi # as_fn_append
37082
37083# as_fn_arith ARG...
37084# ------------------
37085# Perform arithmetic evaluation on the ARGs, and store the result in the
37086# global $as_val. Take advantage of shells that can avoid forks. The arguments
37087# must be portable across $(()) and expr.
37088if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37089 eval 'as_fn_arith ()
37090 {
37091 as_val=$(( $* ))
37092 }'
37093else
37094 as_fn_arith ()
37095 {
37096 as_val=`expr "$@" || test $? -eq 1`
37097 }
37098fi # as_fn_arith
37099
37100
cristy3ed852e2009-09-05 21:47:34 +000037101if expr a : '\(a\)' >/dev/null 2>&1 &&
37102 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37103 as_expr=expr
37104else
37105 as_expr=false
37106fi
37107
37108if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37109 as_basename=basename
37110else
37111 as_basename=false
37112fi
37113
cristy8b350f62009-11-15 23:12:43 +000037114if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37115 as_dirname=dirname
37116else
37117 as_dirname=false
37118fi
cristy3ed852e2009-09-05 21:47:34 +000037119
cristy3ed852e2009-09-05 21:47:34 +000037120as_me=`$as_basename -- "$0" ||
37121$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37122 X"$0" : 'X\(//\)$' \| \
37123 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37124$as_echo X/"$0" |
37125 sed '/^.*\/\([^/][^/]*\)\/*$/{
37126 s//\1/
37127 q
37128 }
37129 /^X\/\(\/\/\)$/{
37130 s//\1/
37131 q
37132 }
37133 /^X\/\(\/\).*/{
37134 s//\1/
37135 q
37136 }
37137 s/.*/./; q'`
37138
cristy8b350f62009-11-15 23:12:43 +000037139# Avoid depending upon Character Ranges.
37140as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37141as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37142as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37143as_cr_digits='0123456789'
37144as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000037145
37146ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000037147case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000037148-n*)
cristy8b350f62009-11-15 23:12:43 +000037149 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000037150 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000037151 xy) ECHO_C='\c';;
37152 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
37153 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000037154 esac;;
37155*)
37156 ECHO_N='-n';;
37157esac
cristy3ed852e2009-09-05 21:47:34 +000037158
37159rm -f conf$$ conf$$.exe conf$$.file
37160if test -d conf$$.dir; then
37161 rm -f conf$$.dir/conf$$.file
37162else
37163 rm -f conf$$.dir
37164 mkdir conf$$.dir 2>/dev/null
37165fi
37166if (echo >conf$$.file) 2>/dev/null; then
37167 if ln -s conf$$.file conf$$ 2>/dev/null; then
37168 as_ln_s='ln -s'
37169 # ... but there are two gotchas:
37170 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37171 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000037172 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000037173 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000037174 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037175 elif ln conf$$.file conf$$ 2>/dev/null; then
37176 as_ln_s=ln
37177 else
cristy14fefe52012-05-21 00:59:18 +000037178 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037179 fi
37180else
cristy14fefe52012-05-21 00:59:18 +000037181 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037182fi
37183rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37184rmdir conf$$.dir 2>/dev/null
37185
cristy8b350f62009-11-15 23:12:43 +000037186
37187# as_fn_mkdir_p
37188# -------------
37189# Create "$as_dir" as a directory, including parents if necessary.
37190as_fn_mkdir_p ()
37191{
37192
37193 case $as_dir in #(
37194 -*) as_dir=./$as_dir;;
37195 esac
37196 test -d "$as_dir" || eval $as_mkdir_p || {
37197 as_dirs=
37198 while :; do
37199 case $as_dir in #(
37200 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37201 *) as_qdir=$as_dir;;
37202 esac
37203 as_dirs="'$as_qdir' $as_dirs"
37204 as_dir=`$as_dirname -- "$as_dir" ||
37205$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37206 X"$as_dir" : 'X\(//\)[^/]' \| \
37207 X"$as_dir" : 'X\(//\)$' \| \
37208 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37209$as_echo X"$as_dir" |
37210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37211 s//\1/
37212 q
37213 }
37214 /^X\(\/\/\)[^/].*/{
37215 s//\1/
37216 q
37217 }
37218 /^X\(\/\/\)$/{
37219 s//\1/
37220 q
37221 }
37222 /^X\(\/\).*/{
37223 s//\1/
37224 q
37225 }
37226 s/.*/./; q'`
37227 test -d "$as_dir" && break
37228 done
37229 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000037230 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000037231
37232
37233} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037234if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000037235 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000037236else
37237 test -d ./-p && rmdir ./-p
37238 as_mkdir_p=false
37239fi
37240
cristy14fefe52012-05-21 00:59:18 +000037241
37242# as_fn_executable_p FILE
37243# -----------------------
37244# Test if FILE is an executable regular file.
37245as_fn_executable_p ()
37246{
37247 test -f "$1" && test -x "$1"
37248} # as_fn_executable_p
37249as_test_x='test -x'
37250as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000037251
37252# Sed expression to map a string onto a valid CPP name.
37253as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37254
37255# Sed expression to map a string onto a valid variable name.
37256as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37257
37258
37259exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000037260## ----------------------------------- ##
37261## Main body of $CONFIG_STATUS script. ##
37262## ----------------------------------- ##
37263_ASEOF
37264test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000037265
cristy8b350f62009-11-15 23:12:43 +000037266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37267# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000037268# report actual input values of CONFIG_FILES etc. instead of their
37269# values after options handling.
37270ac_log="
cristy29eb34e2011-10-16 00:46:08 +000037271This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000037272generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000037273
37274 CONFIG_FILES = $CONFIG_FILES
37275 CONFIG_HEADERS = $CONFIG_HEADERS
37276 CONFIG_LINKS = $CONFIG_LINKS
37277 CONFIG_COMMANDS = $CONFIG_COMMANDS
37278 $ $0 $@
37279
37280on `(hostname || uname -n) 2>/dev/null | sed 1q`
37281"
37282
37283_ACEOF
37284
37285case $ac_config_files in *"
37286"*) set x $ac_config_files; shift; ac_config_files=$*;;
37287esac
37288
37289case $ac_config_headers in *"
37290"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37291esac
37292
37293
37294cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37295# Files that config.status was made for.
37296config_files="$ac_config_files"
37297config_headers="$ac_config_headers"
37298config_commands="$ac_config_commands"
37299
37300_ACEOF
37301
37302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37303ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000037304\`$as_me' instantiates files and other configuration actions
37305from templates according to the current configuration. Unless the files
37306and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000037307
cristy8b350f62009-11-15 23:12:43 +000037308Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000037309
37310 -h, --help print this help, then exit
37311 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000037312 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000037313 -q, --quiet, --silent
37314 do not print progress messages
37315 -d, --debug don't remove temporary files
37316 --recheck update $as_me by reconfiguring in the same conditions
37317 --file=FILE[:TEMPLATE]
37318 instantiate the configuration file FILE
37319 --header=FILE[:TEMPLATE]
37320 instantiate the configuration header FILE
37321
37322Configuration files:
37323$config_files
37324
37325Configuration headers:
37326$config_headers
37327
37328Configuration commands:
37329$config_commands
37330
cristy8b350f62009-11-15 23:12:43 +000037331Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000037332
37333_ACEOF
37334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000037335ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000037336ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000037337ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000037338configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000037339 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000037340
cristy14fefe52012-05-21 00:59:18 +000037341Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000037342This config.status script is free software; the Free Software Foundation
37343gives unlimited permission to copy, distribute and modify it."
37344
37345ac_pwd='$ac_pwd'
37346srcdir='$srcdir'
37347INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000037348MKDIR_P='$MKDIR_P'
37349AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000037350test -n "\$AWK" || AWK=awk
37351_ACEOF
37352
37353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37354# The default lists apply if the user does not specify any file.
37355ac_need_defaults=:
37356while test $# != 0
37357do
37358 case $1 in
cristyda16f162011-02-19 23:52:17 +000037359 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000037360 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37361 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37362 ac_shift=:
37363 ;;
cristyda16f162011-02-19 23:52:17 +000037364 --*=)
37365 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37366 ac_optarg=
37367 ac_shift=:
37368 ;;
cristy3ed852e2009-09-05 21:47:34 +000037369 *)
37370 ac_option=$1
37371 ac_optarg=$2
37372 ac_shift=shift
37373 ;;
37374 esac
37375
37376 case $ac_option in
37377 # Handling of the options.
37378 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37379 ac_cs_recheck=: ;;
37380 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37381 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000037382 --config | --confi | --conf | --con | --co | --c )
37383 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000037384 --debug | --debu | --deb | --de | --d | -d )
37385 debug=: ;;
37386 --file | --fil | --fi | --f )
37387 $ac_shift
37388 case $ac_optarg in
37389 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000037390 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000037391 esac
cristy8b350f62009-11-15 23:12:43 +000037392 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037393 ac_need_defaults=false;;
37394 --header | --heade | --head | --hea )
37395 $ac_shift
37396 case $ac_optarg in
37397 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37398 esac
cristy8b350f62009-11-15 23:12:43 +000037399 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037400 ac_need_defaults=false;;
37401 --he | --h)
37402 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000037403 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037404Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000037405 --help | --hel | -h )
37406 $as_echo "$ac_cs_usage"; exit ;;
37407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37408 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37409 ac_cs_silent=: ;;
37410
37411 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000037412 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037413Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000037414
cristy8b350f62009-11-15 23:12:43 +000037415 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000037416 ac_need_defaults=false ;;
37417
37418 esac
37419 shift
37420done
37421
37422ac_configure_extra_args=
37423
37424if $ac_cs_silent; then
37425 exec 6>/dev/null
37426 ac_configure_extra_args="$ac_configure_extra_args --silent"
37427fi
37428
37429_ACEOF
37430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37431if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000037432 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000037433 shift
37434 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37435 CONFIG_SHELL='$SHELL'
37436 export CONFIG_SHELL
37437 exec "\$@"
37438fi
37439
37440_ACEOF
37441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37442exec 5>>config.log
37443{
37444 echo
37445 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37446## Running $as_me. ##
37447_ASBOX
37448 $as_echo "$ac_log"
37449} >&5
37450
37451_ACEOF
37452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000037453#
37454# INIT-COMMANDS
37455#
37456PACKAGE="$PACKAGE"
37457AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37458
37459
37460# The HP-UX ksh and POSIX shell print the target directory to stdout
37461# if CDPATH is set.
37462(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37463
37464sed_quote_subst='$sed_quote_subst'
37465double_quote_subst='$double_quote_subst'
37466delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000037467SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37468Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37469GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37470EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37471FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37472SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37473ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37474LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37475macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37476macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37477AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37478DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37479OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37480enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37481enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37482pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37483enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000037484PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037485host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37486host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37487host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37488build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37489build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37490build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37491NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37492LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37493max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37494ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37495exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37496lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37497lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37498lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037499lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37500lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037501reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37502reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37503deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37504file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037505file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37506want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37507sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037508AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37509AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037510archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037511STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37512RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37513old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37514old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37515old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37516lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37517CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37518CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37519compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37520GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37521lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37522lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37523lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37524lt_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 +000037525nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37526lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037527objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37528MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37529lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037530lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037531lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037532lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37533lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37534need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037535MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037536DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37537NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37538LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37539OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37540OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37541libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37542shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37543extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37544archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37545enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37546export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37547whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37548compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37549old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37550old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37551archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37552archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37553module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37554module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37555with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37556allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37557no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37558hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037559hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37560hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37561hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37562hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37563hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37564hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37565inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37566link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037567always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37568export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37569exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37570include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37571prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037572postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037573file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37574variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37575need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37576need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37577version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37578runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37579shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37580shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37581libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37582library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37583soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37584install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37585postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37586postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37587finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37588finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37589hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37590sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37591sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37592hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37593enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37594enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37595enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37596old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37597striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37598compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37599predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37600postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37601predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37602postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37603compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37604LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37605reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37606reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37607old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37608compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37609GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37610lt_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 +000037611lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037612lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037613lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37614lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37615archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37616enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37617export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37618whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37619compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37620old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37621old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37622archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37623archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37624module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37625module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37626with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37627allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37628no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37629hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037630hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37631hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37632hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37633hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37634hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37635hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37636inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37637link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037638always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37639export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37640exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37641include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37642prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037643postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037644file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37645hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37646compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37647predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37648postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37649predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37650postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37651compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037652
37653LTCC='$LTCC'
37654LTCFLAGS='$LTCFLAGS'
37655compiler='$compiler_DEFAULT'
37656
cristy0c60a692010-11-04 01:09:47 +000037657# A function that is used when there is no print builtin or printf.
37658func_fallback_echo ()
37659{
37660 eval 'cat <<_LTECHO_EOF
37661\$1
37662_LTECHO_EOF'
37663}
37664
cristy73bd4a52010-10-05 11:24:23 +000037665# Quote evaled strings.
37666for var in SED \
37667GREP \
37668EGREP \
37669FGREP \
cristy0c60a692010-11-04 01:09:47 +000037670SHELL \
37671ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037672LD \
cristy0c60a692010-11-04 01:09:47 +000037673AS \
37674DLLTOOL \
37675OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037676PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037677NM \
37678LN_S \
37679lt_SP2NL \
37680lt_NL2SP \
37681reload_flag \
37682deplibs_check_method \
37683file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037684file_magic_glob \
37685want_nocaseglob \
37686sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037687AR \
37688AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037689archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037690STRIP \
37691RANLIB \
37692CC \
37693CFLAGS \
37694compiler \
37695lt_cv_sys_global_symbol_pipe \
37696lt_cv_sys_global_symbol_to_cdecl \
37697lt_cv_sys_global_symbol_to_c_name_address \
37698lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037699nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037700lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037701lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037702lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037703lt_prog_compiler_static \
37704lt_cv_prog_compiler_c_o \
37705need_locks \
cristyda16f162011-02-19 23:52:17 +000037706MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037707DSYMUTIL \
37708NMEDIT \
37709LIPO \
37710OTOOL \
37711OTOOL64 \
37712shrext_cmds \
37713export_dynamic_flag_spec \
37714whole_archive_flag_spec \
37715compiler_needs_object \
37716with_gnu_ld \
37717allow_undefined_flag \
37718no_undefined_flag \
37719hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037720hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037721exclude_expsyms \
37722include_expsyms \
37723file_list_spec \
37724variables_saved_for_relink \
37725libname_spec \
37726library_names_spec \
37727soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037728install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037729finish_eval \
37730old_striplib \
37731striplib \
37732compiler_lib_search_dirs \
37733predep_objects \
37734postdep_objects \
37735predeps \
37736postdeps \
37737compiler_lib_search_path \
37738LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037739reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037740compiler_CXX \
37741lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037742lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037743lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037744lt_prog_compiler_static_CXX \
37745lt_cv_prog_compiler_c_o_CXX \
37746export_dynamic_flag_spec_CXX \
37747whole_archive_flag_spec_CXX \
37748compiler_needs_object_CXX \
37749with_gnu_ld_CXX \
37750allow_undefined_flag_CXX \
37751no_undefined_flag_CXX \
37752hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037753hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037754exclude_expsyms_CXX \
37755include_expsyms_CXX \
37756file_list_spec_CXX \
37757compiler_lib_search_dirs_CXX \
37758predep_objects_CXX \
37759postdep_objects_CXX \
37760predeps_CXX \
37761postdeps_CXX \
37762compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037763 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037764 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037765 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037766 ;;
37767 *)
37768 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37769 ;;
37770 esac
37771done
37772
37773# Double-quote double-evaled strings.
37774for var in reload_cmds \
37775old_postinstall_cmds \
37776old_postuninstall_cmds \
37777old_archive_cmds \
37778extract_expsyms_cmds \
37779old_archive_from_new_cmds \
37780old_archive_from_expsyms_cmds \
37781archive_cmds \
37782archive_expsym_cmds \
37783module_cmds \
37784module_expsym_cmds \
37785export_symbols_cmds \
37786prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037787postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037788postinstall_cmds \
37789postuninstall_cmds \
37790finish_cmds \
37791sys_lib_search_path_spec \
37792sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037793reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037794old_archive_cmds_CXX \
37795old_archive_from_new_cmds_CXX \
37796old_archive_from_expsyms_cmds_CXX \
37797archive_cmds_CXX \
37798archive_expsym_cmds_CXX \
37799module_cmds_CXX \
37800module_expsym_cmds_CXX \
37801export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037802prelink_cmds_CXX \
37803postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037804 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037805 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037806 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037807 ;;
37808 *)
37809 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37810 ;;
37811 esac
37812done
37813
cristy73bd4a52010-10-05 11:24:23 +000037814ac_aux_dir='$ac_aux_dir'
37815xsi_shell='$xsi_shell'
37816lt_shell_append='$lt_shell_append'
37817
37818# See if we are running on zsh, and set the options which allow our
37819# commands through without removal of \ escapes INIT.
37820if test -n "\${ZSH_VERSION+set}" ; then
37821 setopt NO_GLOB_SUBST
37822fi
37823
37824
37825 PACKAGE='$PACKAGE'
37826 VERSION='$VERSION'
37827 TIMESTAMP='$TIMESTAMP'
37828 RM='$RM'
37829 ofile='$ofile'
37830
37831
37832
37833
37834
37835
cristy3ed852e2009-09-05 21:47:34 +000037836_ACEOF
37837
37838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37839
37840# Handling of arguments.
37841for ac_config_target in $ac_config_targets
37842do
37843 case $ac_config_target in
37844 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037845 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy9af1cbf2014-12-28 22:03:09 +000037846 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37847 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37848 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37849 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37850 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37851 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37852 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37853 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
cristy305c5dd2012-09-13 00:30:13 +000037854 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037855 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37856 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37857 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37858 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37859 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037860 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy5a3dc992014-12-05 19:50:04 +000037861 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
cristy430a7312010-01-21 20:44:04 +000037862 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037863 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37864 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37865 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37866 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37867 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037868 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037869 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037870 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37871 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37872 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037873 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37874 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037875 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037876 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037877 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037878 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037879 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37880 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37881 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37882 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037883 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37884 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37885 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37886 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37887 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37888 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37889 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37890 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37891 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37892 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37893 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37894 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037895 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37896 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037897
cristy98dddb52010-11-04 00:30:15 +000037898 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037899 esac
37900done
37901
37902
37903# If the user did not use the arguments to specify the items to instantiate,
37904# then the envvar interface is used. Set only those that are not.
37905# We use the long form for the default assignment because of an extremely
37906# bizarre bug on SunOS 4.1.3.
37907if $ac_need_defaults; then
37908 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37909 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37910 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37911fi
37912
37913# Have a temporary directory for convenience. Make it in the build tree
37914# simply because there is no reason against having it here, and in addition,
37915# creating and moving files from /tmp can sometimes cause problems.
37916# Hook for its removal unless debugging.
37917# Note that there is a small window in which the directory will not be cleaned:
37918# after its creation but before its name has been assigned to `$tmp'.
37919$debug ||
37920{
cristyda16f162011-02-19 23:52:17 +000037921 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037922 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037923 : "${ac_tmp:=$tmp}"
37924 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037925' 0
cristy8b350f62009-11-15 23:12:43 +000037926 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037927}
37928# Create a (secure) tmp directory for tmp files.
37929
37930{
37931 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037932 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037933} ||
37934{
37935 tmp=./conf$$-$RANDOM
37936 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037937} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037938ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037939
37940# Set up the scripts for CONFIG_FILES section.
37941# No need to generate them if there are no CONFIG_FILES.
37942# This happens for instance with `./config.status config.h'.
37943if test -n "$CONFIG_FILES"; then
37944
37945
cristy8b350f62009-11-15 23:12:43 +000037946ac_cr=`echo X | tr X '\015'`
37947# On cygwin, bash can eat \r inside `` if the user requested igncr.
37948# But we know of no other shell where ac_cr would be empty at this
37949# point, so we can use a bashism as a fallback.
37950if test "x$ac_cr" = x; then
37951 eval ac_cr=\$\'\\r\'
37952fi
cristy3ed852e2009-09-05 21:47:34 +000037953ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37954if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037955 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037956else
37957 ac_cs_awk_cr=$ac_cr
37958fi
37959
cristyda16f162011-02-19 23:52:17 +000037960echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037961_ACEOF
37962
37963
37964{
37965 echo "cat >conf$$subs.awk <<_ACEOF" &&
37966 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37967 echo "_ACEOF"
37968} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037969 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37970ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037971ac_delim='%!_!# '
37972for ac_last_try in false false false false false :; do
37973 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037974 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037975
37976 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37977 if test $ac_delim_n = $ac_delim_num; then
37978 break
37979 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037980 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037981 else
37982 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37983 fi
37984done
37985rm -f conf$$subs.sh
37986
37987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037988cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037989_ACEOF
37990sed -n '
37991h
37992s/^/S["/; s/!.*/"]=/
37993p
37994g
37995s/^[^!]*!//
37996:repl
37997t repl
37998s/'"$ac_delim"'$//
37999t delim
38000:nl
38001h
cristycd4c5312009-11-22 01:19:08 +000038002s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000038003t more1
38004s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38005p
38006n
38007b repl
38008:more1
38009s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38010p
38011g
38012s/.\{148\}//
38013t nl
38014:delim
38015h
cristycd4c5312009-11-22 01:19:08 +000038016s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000038017t more2
38018s/["\\]/\\&/g; s/^/"/; s/$/"/
38019p
38020b
38021:more2
38022s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38023p
38024g
38025s/.\{148\}//
38026t delim
38027' <conf$$subs.awk | sed '
38028/^[^""]/{
38029 N
38030 s/\n//
38031}
38032' >>$CONFIG_STATUS || ac_write_fail=1
38033rm -f conf$$subs.awk
38034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38035_ACAWK
cristyda16f162011-02-19 23:52:17 +000038036cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000038037 for (key in S) S_is_set[key] = 1
38038 FS = ""
38039
38040}
38041{
38042 line = $ 0
38043 nfields = split(line, field, "@")
38044 substed = 0
38045 len = length(field[1])
38046 for (i = 2; i < nfields; i++) {
38047 key = field[i]
38048 keylen = length(key)
38049 if (S_is_set[key]) {
38050 value = S[key]
38051 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38052 len += length(value) + length(field[++i])
38053 substed = 1
38054 } else
38055 len += 1 + keylen
38056 }
38057
38058 print line
38059}
38060
38061_ACAWK
38062_ACEOF
38063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38064if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38065 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38066else
38067 cat
cristyda16f162011-02-19 23:52:17 +000038068fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000038069 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038070_ACEOF
38071
cristy98dddb52010-11-04 00:30:15 +000038072# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38073# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000038074# trailing colons and then remove the whole line if VPATH becomes empty
38075# (actually we leave an empty line to preserve line numbers).
38076if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000038077 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
38078h
38079s///
38080s/^/:/
38081s/[ ]*$/:/
38082s/:\$(srcdir):/:/g
38083s/:\${srcdir}:/:/g
38084s/:@srcdir@:/:/g
38085s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000038086s/:*$//
cristy98dddb52010-11-04 00:30:15 +000038087x
38088s/\(=[ ]*\).*/\1/
38089G
38090s/\n//
cristy3ed852e2009-09-05 21:47:34 +000038091s/^[^=]*=[ ]*$//
38092}'
38093fi
38094
38095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38096fi # test -n "$CONFIG_FILES"
38097
38098# Set up the scripts for CONFIG_HEADERS section.
38099# No need to generate them if there are no CONFIG_HEADERS.
38100# This happens for instance with `./config.status Makefile'.
38101if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000038102cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000038103BEGIN {
38104_ACEOF
38105
38106# Transform confdefs.h into an awk script `defines.awk', embedded as
38107# here-document in config.status, that substitutes the proper values into
38108# config.h.in to produce config.h.
38109
38110# Create a delimiter string that does not exist in confdefs.h, to ease
38111# handling of long lines.
38112ac_delim='%!_!# '
38113for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000038114 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38115 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000038116 break
38117 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000038118 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038119 else
38120 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38121 fi
38122done
38123
38124# For the awk script, D is an array of macro values keyed by name,
38125# likewise P contains macro parameters if any. Preserve backslash
38126# newline sequences.
38127
38128ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38129sed -n '
38130s/.\{148\}/&'"$ac_delim"'/g
38131t rset
38132:rset
38133s/^[ ]*#[ ]*define[ ][ ]*/ /
38134t def
38135d
38136:def
38137s/\\$//
38138t bsnl
38139s/["\\]/\\&/g
38140s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38141D["\1"]=" \3"/p
38142s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
38143d
38144:bsnl
38145s/["\\]/\\&/g
38146s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38147D["\1"]=" \3\\\\\\n"\\/p
38148t cont
38149s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38150t cont
38151d
38152:cont
38153n
38154s/.\{148\}/&'"$ac_delim"'/g
38155t clear
38156:clear
38157s/\\$//
38158t bsnlc
38159s/["\\]/\\&/g; s/^/"/; s/$/"/p
38160d
38161:bsnlc
38162s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38163b cont
38164' <confdefs.h | sed '
38165s/'"$ac_delim"'/"\\\
38166"/g' >>$CONFIG_STATUS || ac_write_fail=1
38167
38168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38169 for (key in D) D_is_set[key] = 1
38170 FS = ""
38171}
38172/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38173 line = \$ 0
38174 split(line, arg, " ")
38175 if (arg[1] == "#") {
38176 defundef = arg[2]
38177 mac1 = arg[3]
38178 } else {
38179 defundef = substr(arg[1], 2)
38180 mac1 = arg[2]
38181 }
38182 split(mac1, mac2, "(") #)
38183 macro = mac2[1]
38184 prefix = substr(line, 1, index(line, defundef) - 1)
38185 if (D_is_set[macro]) {
38186 # Preserve the white space surrounding the "#".
38187 print prefix "define", macro P[macro] D[macro]
38188 next
38189 } else {
38190 # Replace #undef with comments. This is necessary, for example,
38191 # in the case of _POSIX_SOURCE, which is predefined and required
38192 # on some systems where configure will not decide to define it.
38193 if (defundef == "undef") {
38194 print "/*", prefix defundef, macro, "*/"
38195 next
38196 }
38197 }
38198}
38199{ print }
38200_ACAWK
38201_ACEOF
38202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000038203 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038204fi # test -n "$CONFIG_HEADERS"
38205
38206
38207eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
38208shift
38209for ac_tag
38210do
38211 case $ac_tag in
38212 :[FHLC]) ac_mode=$ac_tag; continue;;
38213 esac
38214 case $ac_mode$ac_tag in
38215 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000038216 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038217 :[FH]-) ac_tag=-:-;;
38218 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38219 esac
38220 ac_save_IFS=$IFS
38221 IFS=:
38222 set x $ac_tag
38223 IFS=$ac_save_IFS
38224 shift
38225 ac_file=$1
38226 shift
38227
38228 case $ac_mode in
38229 :L) ac_source=$1;;
38230 :[FH])
38231 ac_file_inputs=
38232 for ac_f
38233 do
38234 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000038235 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000038236 *) # Look for the file first in the build tree, then in the source tree
38237 # (if the path is not absolute). The absolute path cannot be DOS-style,
38238 # because $ac_f cannot contain `:'.
38239 test -f "$ac_f" ||
38240 case $ac_f in
38241 [\\/$]*) false;;
38242 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38243 esac ||
cristy98dddb52010-11-04 00:30:15 +000038244 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038245 esac
38246 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000038247 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000038248 done
38249
38250 # Let's still pretend it is `configure' which instantiates (i.e., don't
38251 # use $as_me), people would be surprised to read:
38252 # /* config.h. Generated by config.status. */
38253 configure_input='Generated from '`
38254 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38255 `' by configure.'
38256 if test x"$ac_file" != x-; then
38257 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000038258 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000038259$as_echo "$as_me: creating $ac_file" >&6;}
38260 fi
38261 # Neutralize special characters interpreted by sed in replacement strings.
38262 case $configure_input in #(
38263 *\&* | *\|* | *\\* )
38264 ac_sed_conf_input=`$as_echo "$configure_input" |
38265 sed 's/[\\\\&|]/\\\\&/g'`;; #(
38266 *) ac_sed_conf_input=$configure_input;;
38267 esac
38268
38269 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000038270 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000038271 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000038272 esac
38273 ;;
38274 esac
38275
38276 ac_dir=`$as_dirname -- "$ac_file" ||
38277$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38278 X"$ac_file" : 'X\(//\)[^/]' \| \
38279 X"$ac_file" : 'X\(//\)$' \| \
38280 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38281$as_echo X"$ac_file" |
38282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38283 s//\1/
38284 q
38285 }
38286 /^X\(\/\/\)[^/].*/{
38287 s//\1/
38288 q
38289 }
38290 /^X\(\/\/\)$/{
38291 s//\1/
38292 q
38293 }
38294 /^X\(\/\).*/{
38295 s//\1/
38296 q
38297 }
38298 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000038299 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000038300 ac_builddir=.
38301
38302case "$ac_dir" in
38303.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38304*)
38305 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38306 # A ".." for each directory in $ac_dir_suffix.
38307 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38308 case $ac_top_builddir_sub in
38309 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38310 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38311 esac ;;
38312esac
38313ac_abs_top_builddir=$ac_pwd
38314ac_abs_builddir=$ac_pwd$ac_dir_suffix
38315# for backward compatibility:
38316ac_top_builddir=$ac_top_build_prefix
38317
38318case $srcdir in
38319 .) # We are building in place.
38320 ac_srcdir=.
38321 ac_top_srcdir=$ac_top_builddir_sub
38322 ac_abs_top_srcdir=$ac_pwd ;;
38323 [\\/]* | ?:[\\/]* ) # Absolute name.
38324 ac_srcdir=$srcdir$ac_dir_suffix;
38325 ac_top_srcdir=$srcdir
38326 ac_abs_top_srcdir=$srcdir ;;
38327 *) # Relative name.
38328 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38329 ac_top_srcdir=$ac_top_build_prefix$srcdir
38330 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38331esac
38332ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38333
38334
38335 case $ac_mode in
38336 :F)
38337 #
38338 # CONFIG_FILE
38339 #
38340
38341 case $INSTALL in
38342 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38343 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38344 esac
cristy73bd4a52010-10-05 11:24:23 +000038345 ac_MKDIR_P=$MKDIR_P
38346 case $MKDIR_P in
38347 [\\/$]* | ?:[\\/]* ) ;;
38348 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38349 esac
cristy3ed852e2009-09-05 21:47:34 +000038350_ACEOF
38351
38352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38353# If the template does not know about datarootdir, expand it.
38354# FIXME: This hack should be removed a few years after 2.60.
38355ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000038356ac_sed_dataroot='
38357/datarootdir/ {
38358 p
38359 q
38360}
38361/@datadir@/p
38362/@docdir@/p
38363/@infodir@/p
38364/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000038365/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000038366case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38367*datarootdir*) ac_datarootdir_seen=yes;;
38368*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000038369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000038370$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38371_ACEOF
38372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38373 ac_datarootdir_hack='
38374 s&@datadir@&$datadir&g
38375 s&@docdir@&$docdir&g
38376 s&@infodir@&$infodir&g
38377 s&@localedir@&$localedir&g
38378 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000038379 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000038380esac
38381_ACEOF
38382
38383# Neutralize VPATH when `$srcdir' = `.'.
38384# Shell code in configure.ac might set extrasub.
38385# FIXME: do we really want to maintain this feature?
38386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38387ac_sed_extra="$ac_vpsub
38388$extrasub
38389_ACEOF
38390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38391:t
38392/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38393s|@configure_input@|$ac_sed_conf_input|;t t
38394s&@top_builddir@&$ac_top_builddir_sub&;t t
38395s&@top_build_prefix@&$ac_top_build_prefix&;t t
38396s&@srcdir@&$ac_srcdir&;t t
38397s&@abs_srcdir@&$ac_abs_srcdir&;t t
38398s&@top_srcdir@&$ac_top_srcdir&;t t
38399s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38400s&@builddir@&$ac_builddir&;t t
38401s&@abs_builddir@&$ac_abs_builddir&;t t
38402s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38403s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000038404s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000038405$ac_datarootdir_hack
38406"
cristyda16f162011-02-19 23:52:17 +000038407eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38408 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038409
38410test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000038411 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38412 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38413 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000038414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038415which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000038416$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038417which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000038418
cristyda16f162011-02-19 23:52:17 +000038419 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000038420 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000038421 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38422 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000038423 esac \
cristy98dddb52010-11-04 00:30:15 +000038424 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038425 ;;
38426 :H)
38427 #
38428 # CONFIG_HEADER
38429 #
38430 if test x"$ac_file" != x-; then
38431 {
38432 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038433 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38434 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000038435 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038436 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000038437 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000038438$as_echo "$as_me: $ac_file is unchanged" >&6;}
38439 else
38440 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000038441 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000038442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038443 fi
38444 else
38445 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038446 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000038447 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038448 fi
cristy73bd4a52010-10-05 11:24:23 +000038449# Compute "$ac_file"'s index in $config_headers.
38450_am_arg="$ac_file"
38451_am_stamp_count=1
38452for _am_header in $config_headers :; do
38453 case $_am_header in
38454 $_am_arg | $_am_arg:* )
38455 break ;;
38456 * )
38457 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38458 esac
38459done
38460echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38461$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38462 X"$_am_arg" : 'X\(//\)[^/]' \| \
38463 X"$_am_arg" : 'X\(//\)$' \| \
38464 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38465$as_echo X"$_am_arg" |
38466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38467 s//\1/
38468 q
38469 }
38470 /^X\(\/\/\)[^/].*/{
38471 s//\1/
38472 q
38473 }
38474 /^X\(\/\/\)$/{
38475 s//\1/
38476 q
38477 }
38478 /^X\(\/\).*/{
38479 s//\1/
38480 q
38481 }
38482 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000038483 ;;
38484
cristy8b350f62009-11-15 23:12:43 +000038485 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000038486$as_echo "$as_me: executing $ac_file commands" >&6;}
38487 ;;
38488 esac
38489
38490
38491 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000038492 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000038493ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38494ac_prefix_conf_PKG=`echo MagickCore`
38495ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38496ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
38497ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38498if test ".$ac_prefix_conf_INP" = "."; then
38499 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38500 case "$ac_file" in
38501 *.h) ac_prefix_conf_INP=$ac_file ;;
38502 *)
38503 esac
38504 test ".$ac_prefix_conf_INP" != "." && break
38505 done
38506fi
38507if test ".$ac_prefix_conf_INP" = "."; then
38508 case "$ac_prefix_conf_OUT" in
38509 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38510 ;;
38511 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38512 ;;
38513 *) ac_prefix_conf_INP=config.h
38514 ;;
38515 esac
38516fi
38517if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000038518 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000038519else
38520 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38521 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38522 fi fi
38523 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38524$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38525 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000038526 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38527 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38528 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38529 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38530 $as_echo "#endif/" >> conftest.prefix
38531 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38532 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38533 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000038534 # now executing _script on _DEF input to create _OUT output file
38535 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
38536 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38537 echo ' ' >>$tmp/pconfig.h
38538 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38539
38540 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38541 echo ' ' >>$tmp/pconfig.h
38542 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38543 echo "#endif" >>$tmp/pconfig.h
38544 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38545 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38546$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38547 else
38548 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38549$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38550 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38551 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38552 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38553$as_echo X"$ac_prefix_conf_OUT" |
38554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38555 s//\1/
38556 q
38557 }
38558 /^X\(\/\/\)[^/].*/{
38559 s//\1/
38560 q
38561 }
38562 /^X\(\/\/\)$/{
38563 s//\1/
38564 q
38565 }
38566 /^X\(\/\).*/{
38567 s//\1/
38568 q
38569 }
38570 s/.*/./; q'`
38571 as_dir="$ac_dir"; as_fn_mkdir_p
38572 rm -f "$ac_prefix_conf_OUT"
38573 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38574 fi
cristy73bd4a52010-10-05 11:24:23 +000038575 else
cristy98dddb52010-11-04 00:30:15 +000038576 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 +000038577 fi
38578 rm -f conftest.*
38579fi
38580 ;;
38581 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038582 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038583 # are listed without --file. Let's play safe and only enable the eval
38584 # if we detect the quoting.
38585 case $CONFIG_FILES in
38586 *\'*) eval set x "$CONFIG_FILES" ;;
38587 *) set x $CONFIG_FILES ;;
38588 esac
38589 shift
38590 for mf
38591 do
38592 # Strip MF so we end up with the name of the file.
38593 mf=`echo "$mf" | sed -e 's/:.*$//'`
38594 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038595 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038596 # some people rename them; so instead we look at the file content.
38597 # Grep'ing the first line is not enough: some people post-process
38598 # each Makefile.in and add a new line on top of each file to say so.
38599 # Grep'ing the whole file is not good either: AIX grep has a line
38600 # limit of 2048, but all sed's we know have understand at least 4000.
38601 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38602 dirpart=`$as_dirname -- "$mf" ||
38603$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38604 X"$mf" : 'X\(//\)[^/]' \| \
38605 X"$mf" : 'X\(//\)$' \| \
38606 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38607$as_echo X"$mf" |
38608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38609 s//\1/
38610 q
38611 }
38612 /^X\(\/\/\)[^/].*/{
38613 s//\1/
38614 q
38615 }
38616 /^X\(\/\/\)$/{
38617 s//\1/
38618 q
38619 }
38620 /^X\(\/\).*/{
38621 s//\1/
38622 q
38623 }
38624 s/.*/./; q'`
38625 else
38626 continue
38627 fi
38628 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038629 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038630 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38631 test -z "$DEPDIR" && continue
38632 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038633 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038634 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038635 # Find all dependency output files, they are included files with
38636 # $(DEPDIR) in their names. We invoke sed twice because it is the
38637 # simplest approach to changing $(DEPDIR) to its actual value in the
38638 # expansion.
38639 for file in `sed -n "
38640 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038641 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038642 # Make sure the directory exists.
38643 test -f "$dirpart/$file" && continue
38644 fdir=`$as_dirname -- "$file" ||
38645$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38646 X"$file" : 'X\(//\)[^/]' \| \
38647 X"$file" : 'X\(//\)$' \| \
38648 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38649$as_echo X"$file" |
38650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38651 s//\1/
38652 q
38653 }
38654 /^X\(\/\/\)[^/].*/{
38655 s//\1/
38656 q
38657 }
38658 /^X\(\/\/\)$/{
38659 s//\1/
38660 q
38661 }
38662 /^X\(\/\).*/{
38663 s//\1/
38664 q
38665 }
38666 s/.*/./; q'`
38667 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38668 # echo "creating $dirpart/$file"
38669 echo '# dummy' > "$dirpart/$file"
38670 done
38671 done
38672}
38673 ;;
38674 "libtool":C)
38675
38676 # See if we are running on zsh, and set the options which allow our
38677 # commands through without removal of \ escapes.
38678 if test -n "${ZSH_VERSION+set}" ; then
38679 setopt NO_GLOB_SUBST
38680 fi
38681
38682 cfgfile="${ofile}T"
38683 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38684 $RM "$cfgfile"
38685
38686 cat <<_LT_EOF >> "$cfgfile"
38687#! $SHELL
38688
38689# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38690# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38691# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38692# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38693#
38694# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038695# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38696# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038697# Written by Gordon Matzigkeit, 1996
38698#
38699# This file is part of GNU Libtool.
38700#
38701# GNU Libtool is free software; you can redistribute it and/or
38702# modify it under the terms of the GNU General Public License as
38703# published by the Free Software Foundation; either version 2 of
38704# the License, or (at your option) any later version.
38705#
38706# As a special exception to the GNU General Public License,
38707# if you distribute this file as part of a program or library that
38708# is built using GNU Libtool, you may include this file under the
38709# same distribution terms that you use for the rest of that program.
38710#
38711# GNU Libtool is distributed in the hope that it will be useful,
38712# but WITHOUT ANY WARRANTY; without even the implied warranty of
38713# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38714# GNU General Public License for more details.
38715#
38716# You should have received a copy of the GNU General Public License
38717# along with GNU Libtool; see the file COPYING. If not, a copy
38718# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38719# obtained by writing to the Free Software Foundation, Inc.,
38720# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38721
38722
38723# The names of the tagged configurations supported by this script.
38724available_tags="CXX "
38725
38726# ### BEGIN LIBTOOL CONFIG
38727
38728# A sed program that does not truncate output.
38729SED=$lt_SED
38730
38731# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38732Xsed="\$SED -e 1s/^X//"
38733
38734# A grep program that handles long lines.
38735GREP=$lt_GREP
38736
38737# An ERE matcher.
38738EGREP=$lt_EGREP
38739
38740# A literal string matcher.
38741FGREP=$lt_FGREP
38742
cristy0c60a692010-11-04 01:09:47 +000038743# Shell to use when invoking shell scripts.
38744SHELL=$lt_SHELL
38745
38746# An echo program that protects backslashes.
38747ECHO=$lt_ECHO
38748
cristy73bd4a52010-10-05 11:24:23 +000038749# Which release of libtool.m4 was used?
38750macro_version=$macro_version
38751macro_revision=$macro_revision
38752
38753# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038754AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038755
38756# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038757DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038758
38759# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038760OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038761
38762# Whether or not to build shared libraries.
38763build_libtool_libs=$enable_shared
38764
38765# Whether or not to build static libraries.
38766build_old_libs=$enable_static
38767
38768# What type of objects to build.
38769pic_mode=$pic_mode
38770
38771# Whether or not to optimize for fast installation.
38772fast_install=$enable_fast_install
38773
cristy99bd5232011-12-07 14:38:20 +000038774# The PATH separator for the build system.
38775PATH_SEPARATOR=$lt_PATH_SEPARATOR
38776
cristy73bd4a52010-10-05 11:24:23 +000038777# The host system.
38778host_alias=$host_alias
38779host=$host
38780host_os=$host_os
38781
38782# The build system.
38783build_alias=$build_alias
38784build=$build
38785build_os=$build_os
38786
38787# A BSD- or MS-compatible name lister.
38788NM=$lt_NM
38789
38790# Whether we need soft or hard links.
38791LN_S=$lt_LN_S
38792
38793# What is the maximum length of a command?
38794max_cmd_len=$max_cmd_len
38795
38796# Object file suffix (normally "o").
38797objext=$ac_objext
38798
38799# Executable file suffix (normally "").
38800exeext=$exeext
38801
38802# whether the shell understands "unset".
38803lt_unset=$lt_unset
38804
38805# turn spaces into newlines.
38806SP2NL=$lt_lt_SP2NL
38807
38808# turn newlines into spaces.
38809NL2SP=$lt_lt_NL2SP
38810
cristyda16f162011-02-19 23:52:17 +000038811# convert \$build file names to \$host format.
38812to_host_file_cmd=$lt_cv_to_host_file_cmd
38813
38814# convert \$build files to toolchain format.
38815to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38816
cristy73bd4a52010-10-05 11:24:23 +000038817# Method to check whether dependent libraries are shared objects.
38818deplibs_check_method=$lt_deplibs_check_method
38819
cristyda16f162011-02-19 23:52:17 +000038820# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038821file_magic_cmd=$lt_file_magic_cmd
38822
cristyda16f162011-02-19 23:52:17 +000038823# How to find potential files when deplibs_check_method = "file_magic".
38824file_magic_glob=$lt_file_magic_glob
38825
38826# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38827want_nocaseglob=$lt_want_nocaseglob
38828
38829# Command to associate shared and link libraries.
38830sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38831
cristy73bd4a52010-10-05 11:24:23 +000038832# The archiver.
38833AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038834
38835# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038836AR_FLAGS=$lt_AR_FLAGS
38837
cristyda16f162011-02-19 23:52:17 +000038838# How to feed a file listing to the archiver.
38839archiver_list_spec=$lt_archiver_list_spec
38840
cristy73bd4a52010-10-05 11:24:23 +000038841# A symbol stripping program.
38842STRIP=$lt_STRIP
38843
38844# Commands used to install an old-style archive.
38845RANLIB=$lt_RANLIB
38846old_postinstall_cmds=$lt_old_postinstall_cmds
38847old_postuninstall_cmds=$lt_old_postuninstall_cmds
38848
cristy0c60a692010-11-04 01:09:47 +000038849# Whether to use a lock for old archive extraction.
38850lock_old_archive_extraction=$lock_old_archive_extraction
38851
cristy73bd4a52010-10-05 11:24:23 +000038852# A C compiler.
38853LTCC=$lt_CC
38854
38855# LTCC compiler flags.
38856LTCFLAGS=$lt_CFLAGS
38857
38858# Take the output of nm and produce a listing of raw symbols and C names.
38859global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38860
38861# Transform the output of nm in a proper C declaration.
38862global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38863
38864# Transform the output of nm in a C name address pair.
38865global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38866
38867# Transform the output of nm in a C name address pair when lib prefix is needed.
38868global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38869
cristyda16f162011-02-19 23:52:17 +000038870# Specify filename containing input files for \$NM.
38871nm_file_list_spec=$lt_nm_file_list_spec
38872
38873# The root where to search for dependent libraries,and in which our libraries should be installed.
38874lt_sysroot=$lt_sysroot
38875
cristy73bd4a52010-10-05 11:24:23 +000038876# The name of the directory that contains temporary libtool files.
38877objdir=$objdir
38878
cristy73bd4a52010-10-05 11:24:23 +000038879# Used to examine libraries when file_magic_cmd begins with "file".
38880MAGIC_CMD=$MAGIC_CMD
38881
38882# Must we lock files when doing compilation?
38883need_locks=$lt_need_locks
38884
cristyda16f162011-02-19 23:52:17 +000038885# Manifest tool.
38886MANIFEST_TOOL=$lt_MANIFEST_TOOL
38887
cristy73bd4a52010-10-05 11:24:23 +000038888# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38889DSYMUTIL=$lt_DSYMUTIL
38890
38891# Tool to change global to local symbols on Mac OS X.
38892NMEDIT=$lt_NMEDIT
38893
38894# Tool to manipulate fat objects and archives on Mac OS X.
38895LIPO=$lt_LIPO
38896
38897# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38898OTOOL=$lt_OTOOL
38899
38900# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38901OTOOL64=$lt_OTOOL64
38902
38903# Old archive suffix (normally "a").
38904libext=$libext
38905
38906# Shared library suffix (normally ".so").
38907shrext_cmds=$lt_shrext_cmds
38908
38909# The commands to extract the exported symbol list from a shared archive.
38910extract_expsyms_cmds=$lt_extract_expsyms_cmds
38911
38912# Variables whose values should be saved in libtool wrapper scripts and
38913# restored at link time.
38914variables_saved_for_relink=$lt_variables_saved_for_relink
38915
38916# Do we need the "lib" prefix for modules?
38917need_lib_prefix=$need_lib_prefix
38918
38919# Do we need a version for libraries?
38920need_version=$need_version
38921
38922# Library versioning type.
38923version_type=$version_type
38924
38925# Shared library runtime path variable.
38926runpath_var=$runpath_var
38927
38928# Shared library path variable.
38929shlibpath_var=$shlibpath_var
38930
38931# Is shlibpath searched before the hard-coded library search path?
38932shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38933
38934# Format of library name prefix.
38935libname_spec=$lt_libname_spec
38936
38937# List of archive names. First name is the real one, the rest are links.
38938# The last name is the one that the linker finds with -lNAME
38939library_names_spec=$lt_library_names_spec
38940
38941# The coded name of the library, if different from the real name.
38942soname_spec=$lt_soname_spec
38943
cristy0c60a692010-11-04 01:09:47 +000038944# Permission mode override for installation of shared libraries.
38945install_override_mode=$lt_install_override_mode
38946
cristy73bd4a52010-10-05 11:24:23 +000038947# Command to use after installation of a shared archive.
38948postinstall_cmds=$lt_postinstall_cmds
38949
38950# Command to use after uninstallation of a shared archive.
38951postuninstall_cmds=$lt_postuninstall_cmds
38952
38953# Commands used to finish a libtool library installation in a directory.
38954finish_cmds=$lt_finish_cmds
38955
38956# As "finish_cmds", except a single script fragment to be evaled but
38957# not shown.
38958finish_eval=$lt_finish_eval
38959
38960# Whether we should hardcode library paths into libraries.
38961hardcode_into_libs=$hardcode_into_libs
38962
38963# Compile-time system search path for libraries.
38964sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38965
38966# Run-time system search path for libraries.
38967sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38968
38969# Whether dlopen is supported.
38970dlopen_support=$enable_dlopen
38971
38972# Whether dlopen of programs is supported.
38973dlopen_self=$enable_dlopen_self
38974
38975# Whether dlopen of statically linked programs is supported.
38976dlopen_self_static=$enable_dlopen_self_static
38977
38978# Commands to strip libraries.
38979old_striplib=$lt_old_striplib
38980striplib=$lt_striplib
38981
38982
38983# The linker used to build libraries.
38984LD=$lt_LD
38985
cristy0c60a692010-11-04 01:09:47 +000038986# How to create reloadable object files.
38987reload_flag=$lt_reload_flag
38988reload_cmds=$lt_reload_cmds
38989
cristy73bd4a52010-10-05 11:24:23 +000038990# Commands used to build an old-style archive.
38991old_archive_cmds=$lt_old_archive_cmds
38992
38993# A language specific compiler.
38994CC=$lt_compiler
38995
38996# Is the compiler the GNU compiler?
38997with_gcc=$GCC
38998
38999# Compiler flag to turn off builtin functions.
39000no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39001
cristy73bd4a52010-10-05 11:24:23 +000039002# Additional compiler flags for building library objects.
39003pic_flag=$lt_lt_prog_compiler_pic
39004
cristyda16f162011-02-19 23:52:17 +000039005# How to pass a linker flag through the compiler.
39006wl=$lt_lt_prog_compiler_wl
39007
cristy73bd4a52010-10-05 11:24:23 +000039008# Compiler flag to prevent dynamic linking.
39009link_static_flag=$lt_lt_prog_compiler_static
39010
39011# Does compiler simultaneously support -c and -o options?
39012compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39013
39014# Whether or not to add -lc for building shared libraries.
39015build_libtool_need_lc=$archive_cmds_need_lc
39016
39017# Whether or not to disallow shared libs when runtime libs are static.
39018allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39019
39020# Compiler flag to allow reflexive dlopens.
39021export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39022
39023# Compiler flag to generate shared objects directly from archives.
39024whole_archive_flag_spec=$lt_whole_archive_flag_spec
39025
39026# Whether the compiler copes with passing no objects directly.
39027compiler_needs_object=$lt_compiler_needs_object
39028
39029# Create an old-style archive from a shared archive.
39030old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39031
39032# Create a temporary old-style archive to link instead of a shared archive.
39033old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39034
39035# Commands used to build a shared archive.
39036archive_cmds=$lt_archive_cmds
39037archive_expsym_cmds=$lt_archive_expsym_cmds
39038
39039# Commands used to build a loadable module if different from building
39040# a shared archive.
39041module_cmds=$lt_module_cmds
39042module_expsym_cmds=$lt_module_expsym_cmds
39043
39044# Whether we are building with GNU ld or not.
39045with_gnu_ld=$lt_with_gnu_ld
39046
39047# Flag that allows shared libraries with undefined symbols to be built.
39048allow_undefined_flag=$lt_allow_undefined_flag
39049
39050# Flag that enforces no undefined symbols.
39051no_undefined_flag=$lt_no_undefined_flag
39052
39053# Flag to hardcode \$libdir into a binary during linking.
39054# This must work even if \$libdir does not exist
39055hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39056
cristy73bd4a52010-10-05 11:24:23 +000039057# Whether we need a single "-rpath" flag with a separated argument.
39058hardcode_libdir_separator=$lt_hardcode_libdir_separator
39059
39060# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39061# DIR into the resulting binary.
39062hardcode_direct=$hardcode_direct
39063
39064# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39065# DIR into the resulting binary and the resulting library dependency is
39066# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39067# library is relocated.
39068hardcode_direct_absolute=$hardcode_direct_absolute
39069
39070# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39071# into the resulting binary.
39072hardcode_minus_L=$hardcode_minus_L
39073
39074# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39075# into the resulting binary.
39076hardcode_shlibpath_var=$hardcode_shlibpath_var
39077
39078# Set to "yes" if building a shared library automatically hardcodes DIR
39079# into the library and all subsequent libraries and executables linked
39080# against it.
39081hardcode_automatic=$hardcode_automatic
39082
39083# Set to yes if linker adds runtime paths of dependent libraries
39084# to runtime path list.
39085inherit_rpath=$inherit_rpath
39086
39087# Whether libtool must link a program against all its dependency libraries.
39088link_all_deplibs=$link_all_deplibs
39089
cristy73bd4a52010-10-05 11:24:23 +000039090# Set to "yes" if exported symbols are required.
39091always_export_symbols=$always_export_symbols
39092
39093# The commands to list exported symbols.
39094export_symbols_cmds=$lt_export_symbols_cmds
39095
39096# Symbols that should not be listed in the preloaded symbols.
39097exclude_expsyms=$lt_exclude_expsyms
39098
39099# Symbols that must always be exported.
39100include_expsyms=$lt_include_expsyms
39101
39102# Commands necessary for linking programs (against libraries) with templates.
39103prelink_cmds=$lt_prelink_cmds
39104
cristyda16f162011-02-19 23:52:17 +000039105# Commands necessary for finishing linking programs.
39106postlink_cmds=$lt_postlink_cmds
39107
cristy73bd4a52010-10-05 11:24:23 +000039108# Specify filename containing input files.
39109file_list_spec=$lt_file_list_spec
39110
39111# How to hardcode a shared library path into an executable.
39112hardcode_action=$hardcode_action
39113
39114# The directories searched by this compiler when creating a shared library.
39115compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39116
39117# Dependencies to place before and after the objects being linked to
39118# create a shared library.
39119predep_objects=$lt_predep_objects
39120postdep_objects=$lt_postdep_objects
39121predeps=$lt_predeps
39122postdeps=$lt_postdeps
39123
39124# The library search path used internally by the compiler when linking
39125# a shared library.
39126compiler_lib_search_path=$lt_compiler_lib_search_path
39127
39128# ### END LIBTOOL CONFIG
39129
39130_LT_EOF
39131
39132 case $host_os in
39133 aix3*)
39134 cat <<\_LT_EOF >> "$cfgfile"
39135# AIX sometimes has problems with the GCC collect2 program. For some
39136# reason, if we set the COLLECT_NAMES environment variable, the problems
39137# vanish in a puff of smoke.
39138if test "X${COLLECT_NAMES+set}" != Xset; then
39139 COLLECT_NAMES=
39140 export COLLECT_NAMES
39141fi
39142_LT_EOF
39143 ;;
39144 esac
39145
39146
39147ltmain="$ac_aux_dir/ltmain.sh"
39148
39149
39150 # We use sed instead of cat because bash on DJGPP gets confused if
39151 # if finds mixed CR/LF and LF-only lines. Since sed operates in
39152 # text mode, it properly converts lines to CR/LF. This bash problem
39153 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000039154 sed '$q' "$ltmain" >> "$cfgfile" \
39155 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000039156
cristyda16f162011-02-19 23:52:17 +000039157 if test x"$xsi_shell" = xyes; then
39158 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
39159func_dirname ()\
39160{\
39161\ case ${1} in\
39162\ */*) func_dirname_result="${1%/*}${2}" ;;\
39163\ * ) func_dirname_result="${3}" ;;\
39164\ esac\
39165} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
39166 && mv -f "$cfgfile.tmp" "$cfgfile" \
39167 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39168test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039169
39170
cristyda16f162011-02-19 23:52:17 +000039171 sed -e '/^func_basename ()$/,/^} # func_basename /c\
39172func_basename ()\
39173{\
39174\ func_basename_result="${1##*/}"\
39175} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
39176 && mv -f "$cfgfile.tmp" "$cfgfile" \
39177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39178test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039179
39180
cristyda16f162011-02-19 23:52:17 +000039181 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
39182func_dirname_and_basename ()\
39183{\
39184\ case ${1} in\
39185\ */*) func_dirname_result="${1%/*}${2}" ;;\
39186\ * ) func_dirname_result="${3}" ;;\
39187\ esac\
39188\ func_basename_result="${1##*/}"\
39189} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
39190 && mv -f "$cfgfile.tmp" "$cfgfile" \
39191 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39192test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039193
cristyda16f162011-02-19 23:52:17 +000039194
39195 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
39196func_stripname ()\
39197{\
39198\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39199\ # positional parameters, so assign one to ordinary parameter first.\
39200\ func_stripname_result=${3}\
39201\ func_stripname_result=${func_stripname_result#"${1}"}\
39202\ func_stripname_result=${func_stripname_result%"${2}"}\
39203} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39204 && mv -f "$cfgfile.tmp" "$cfgfile" \
39205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39206test 0 -eq $? || _lt_function_replace_fail=:
39207
39208
39209 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39210func_split_long_opt ()\
39211{\
39212\ func_split_long_opt_name=${1%%=*}\
39213\ func_split_long_opt_arg=${1#*=}\
39214} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39215 && mv -f "$cfgfile.tmp" "$cfgfile" \
39216 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39217test 0 -eq $? || _lt_function_replace_fail=:
39218
39219
39220 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39221func_split_short_opt ()\
39222{\
39223\ func_split_short_opt_arg=${1#??}\
39224\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39225} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39226 && mv -f "$cfgfile.tmp" "$cfgfile" \
39227 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39228test 0 -eq $? || _lt_function_replace_fail=:
39229
39230
39231 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39232func_lo2o ()\
39233{\
39234\ case ${1} in\
39235\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39236\ *) func_lo2o_result=${1} ;;\
39237\ esac\
39238} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39239 && mv -f "$cfgfile.tmp" "$cfgfile" \
39240 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39241test 0 -eq $? || _lt_function_replace_fail=:
39242
39243
39244 sed -e '/^func_xform ()$/,/^} # func_xform /c\
39245func_xform ()\
39246{\
39247 func_xform_result=${1%.*}.lo\
39248} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39249 && mv -f "$cfgfile.tmp" "$cfgfile" \
39250 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39251test 0 -eq $? || _lt_function_replace_fail=:
39252
39253
39254 sed -e '/^func_arith ()$/,/^} # func_arith /c\
39255func_arith ()\
39256{\
39257 func_arith_result=$(( $* ))\
39258} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39259 && mv -f "$cfgfile.tmp" "$cfgfile" \
39260 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39261test 0 -eq $? || _lt_function_replace_fail=:
39262
39263
39264 sed -e '/^func_len ()$/,/^} # func_len /c\
39265func_len ()\
39266{\
39267 func_len_result=${#1}\
39268} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39269 && mv -f "$cfgfile.tmp" "$cfgfile" \
39270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39271test 0 -eq $? || _lt_function_replace_fail=:
39272
39273fi
39274
39275if test x"$lt_shell_append" = xyes; then
39276 sed -e '/^func_append ()$/,/^} # func_append /c\
39277func_append ()\
39278{\
39279 eval "${1}+=\\${2}"\
39280} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39281 && mv -f "$cfgfile.tmp" "$cfgfile" \
39282 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39283test 0 -eq $? || _lt_function_replace_fail=:
39284
39285
39286 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39287func_append_quoted ()\
39288{\
39289\ func_quote_for_eval "${2}"\
39290\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39291} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39292 && mv -f "$cfgfile.tmp" "$cfgfile" \
39293 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39294test 0 -eq $? || _lt_function_replace_fail=:
39295
39296
39297 # Save a `func_append' function call where possible by direct use of '+='
39298 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39299 && mv -f "$cfgfile.tmp" "$cfgfile" \
39300 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39301 test 0 -eq $? || _lt_function_replace_fail=:
39302else
39303 # Save a `func_append' function call even when '+=' is not available
39304 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39305 && mv -f "$cfgfile.tmp" "$cfgfile" \
39306 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39307 test 0 -eq $? || _lt_function_replace_fail=:
39308fi
39309
39310if test x"$_lt_function_replace_fail" = x":"; then
39311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39312$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39313fi
39314
39315
39316 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000039317 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39318 chmod +x "$ofile"
39319
39320
39321 cat <<_LT_EOF >> "$ofile"
39322
39323# ### BEGIN LIBTOOL TAG CONFIG: CXX
39324
39325# The linker used to build libraries.
39326LD=$lt_LD_CXX
39327
cristy0c60a692010-11-04 01:09:47 +000039328# How to create reloadable object files.
39329reload_flag=$lt_reload_flag_CXX
39330reload_cmds=$lt_reload_cmds_CXX
39331
cristy73bd4a52010-10-05 11:24:23 +000039332# Commands used to build an old-style archive.
39333old_archive_cmds=$lt_old_archive_cmds_CXX
39334
39335# A language specific compiler.
39336CC=$lt_compiler_CXX
39337
39338# Is the compiler the GNU compiler?
39339with_gcc=$GCC_CXX
39340
39341# Compiler flag to turn off builtin functions.
39342no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39343
cristy73bd4a52010-10-05 11:24:23 +000039344# Additional compiler flags for building library objects.
39345pic_flag=$lt_lt_prog_compiler_pic_CXX
39346
cristyda16f162011-02-19 23:52:17 +000039347# How to pass a linker flag through the compiler.
39348wl=$lt_lt_prog_compiler_wl_CXX
39349
cristy73bd4a52010-10-05 11:24:23 +000039350# Compiler flag to prevent dynamic linking.
39351link_static_flag=$lt_lt_prog_compiler_static_CXX
39352
39353# Does compiler simultaneously support -c and -o options?
39354compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39355
39356# Whether or not to add -lc for building shared libraries.
39357build_libtool_need_lc=$archive_cmds_need_lc_CXX
39358
39359# Whether or not to disallow shared libs when runtime libs are static.
39360allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39361
39362# Compiler flag to allow reflexive dlopens.
39363export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39364
39365# Compiler flag to generate shared objects directly from archives.
39366whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39367
39368# Whether the compiler copes with passing no objects directly.
39369compiler_needs_object=$lt_compiler_needs_object_CXX
39370
39371# Create an old-style archive from a shared archive.
39372old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39373
39374# Create a temporary old-style archive to link instead of a shared archive.
39375old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39376
39377# Commands used to build a shared archive.
39378archive_cmds=$lt_archive_cmds_CXX
39379archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39380
39381# Commands used to build a loadable module if different from building
39382# a shared archive.
39383module_cmds=$lt_module_cmds_CXX
39384module_expsym_cmds=$lt_module_expsym_cmds_CXX
39385
39386# Whether we are building with GNU ld or not.
39387with_gnu_ld=$lt_with_gnu_ld_CXX
39388
39389# Flag that allows shared libraries with undefined symbols to be built.
39390allow_undefined_flag=$lt_allow_undefined_flag_CXX
39391
39392# Flag that enforces no undefined symbols.
39393no_undefined_flag=$lt_no_undefined_flag_CXX
39394
39395# Flag to hardcode \$libdir into a binary during linking.
39396# This must work even if \$libdir does not exist
39397hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39398
cristy73bd4a52010-10-05 11:24:23 +000039399# Whether we need a single "-rpath" flag with a separated argument.
39400hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39401
39402# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39403# DIR into the resulting binary.
39404hardcode_direct=$hardcode_direct_CXX
39405
39406# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39407# DIR into the resulting binary and the resulting library dependency is
39408# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39409# library is relocated.
39410hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39411
39412# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39413# into the resulting binary.
39414hardcode_minus_L=$hardcode_minus_L_CXX
39415
39416# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39417# into the resulting binary.
39418hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39419
39420# Set to "yes" if building a shared library automatically hardcodes DIR
39421# into the library and all subsequent libraries and executables linked
39422# against it.
39423hardcode_automatic=$hardcode_automatic_CXX
39424
39425# Set to yes if linker adds runtime paths of dependent libraries
39426# to runtime path list.
39427inherit_rpath=$inherit_rpath_CXX
39428
39429# Whether libtool must link a program against all its dependency libraries.
39430link_all_deplibs=$link_all_deplibs_CXX
39431
cristy73bd4a52010-10-05 11:24:23 +000039432# Set to "yes" if exported symbols are required.
39433always_export_symbols=$always_export_symbols_CXX
39434
39435# The commands to list exported symbols.
39436export_symbols_cmds=$lt_export_symbols_cmds_CXX
39437
39438# Symbols that should not be listed in the preloaded symbols.
39439exclude_expsyms=$lt_exclude_expsyms_CXX
39440
39441# Symbols that must always be exported.
39442include_expsyms=$lt_include_expsyms_CXX
39443
39444# Commands necessary for linking programs (against libraries) with templates.
39445prelink_cmds=$lt_prelink_cmds_CXX
39446
cristyda16f162011-02-19 23:52:17 +000039447# Commands necessary for finishing linking programs.
39448postlink_cmds=$lt_postlink_cmds_CXX
39449
cristy73bd4a52010-10-05 11:24:23 +000039450# Specify filename containing input files.
39451file_list_spec=$lt_file_list_spec_CXX
39452
39453# How to hardcode a shared library path into an executable.
39454hardcode_action=$hardcode_action_CXX
39455
39456# The directories searched by this compiler when creating a shared library.
39457compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39458
39459# Dependencies to place before and after the objects being linked to
39460# create a shared library.
39461predep_objects=$lt_predep_objects_CXX
39462postdep_objects=$lt_postdep_objects_CXX
39463predeps=$lt_predeps_CXX
39464postdeps=$lt_postdeps_CXX
39465
39466# The library search path used internally by the compiler when linking
39467# a shared library.
39468compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39469
39470# ### END LIBTOOL TAG CONFIG: CXX
39471_LT_EOF
39472
39473 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000039474 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000039475 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000039476 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000039477 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39478 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39479
39480 esac
39481done # for ac_tag
39482
39483
cristy8b350f62009-11-15 23:12:43 +000039484as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000039485_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000039486ac_clean_files=$ac_clean_files_save
39487
39488test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000039489 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039490
39491
39492# configure is writing to config.log, and then calls config.status.
39493# config.status does its own redirection, appending to config.log.
39494# Unfortunately, on DOS this fails, as config.log is still kept open
39495# by configure, so config.status won't be able to write to it; its
39496# output is simply discarded. So we exec the FD to /dev/null,
39497# effectively closing config.log, so it can be properly (re)opened and
39498# appended to by config.status. When coming back to configure, we
39499# need to make the FD available again.
39500if test "$no_create" != yes; then
39501 ac_cs_success=:
39502 ac_config_status_args=
39503 test "$silent" = yes &&
39504 ac_config_status_args="$ac_config_status_args --quiet"
39505 exec 5>/dev/null
39506 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39507 exec 5>>config.log
39508 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39509 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000039510 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000039511fi
39512if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000039513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000039514$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39515fi
39516
39517
cristy9af1cbf2014-12-28 22:03:09 +000039518# ==============================================================================
39519# ImageMagick Configuration
39520# ==============================================================================
39521{ $as_echo "$as_me:${as_lineno-$LINENO}:
39522==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039523ImageMagick is configured as follows. Please verify that this configuration
39524matches your expectations.
39525
cristy9af1cbf2014-12-28 22:03:09 +000039526 Host system type: $host
39527 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039528
39529 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039530 ------------------------------------------------------------------------------
39531 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39532 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39533 Module support --with-modules=$build_modules $build_modules
39534 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39535 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39536 High Dynamic Range Imagery
39537 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039538
cristy9af1cbf2014-12-28 22:03:09 +000039539 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039540
cristy9af1cbf2014-12-28 22:03:09 +000039541 Delegate Library Configuration:
39542 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39543 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39544 DJVU --with-djvu=$with_djvu $have_djvu
39545 DPS --with-dps=$with_dps $have_dps
39546 FFTW --with-fftw=$with_fftw $have_fftw
39547 FlashPIX --with-fpx=$with_fpx $have_fpx
39548 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39549 FreeType --with-freetype=$with_freetype $have_freetype
39550 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39551 Graphviz --with-gvc=$with_gvc $have_gvc
39552 JBIG --with-jbig=$with_jbig $have_jbig
39553 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39554 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
39555 LCMS v1 --with-lcms=$with_lcms $have_lcms
39556 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
39557 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
39558 LQR --with-lqr=$with_lqr $have_lqr
39559 LTDL --with-ltdl=$with_ltdl $have_ltdl
39560 LZMA --with-lzma=$with_lzma $have_lzma
39561 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39562 OpenEXR --with-openexr=$with_openexr $have_openexr
39563 PANGO --with-pango=$with_pango $have_pango
39564 PERL --with-perl=$with_perl $have_perl
39565 PNG --with-png=$with_png $have_png
39566 RSVG --with-rsvg=$with_rsvg $have_rsvg
39567 TIFF --with-tiff=$with_tiff $have_tiff
39568 WEBP --with-webp=$with_webp $have_webp
39569 WMF --with-wmf=$with_wmf $have_wmf
39570 X11 --with-x=$with_x $have_x
39571 XML --with-xml=$with_xml $have_xml
39572 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039573
cristy9af1cbf2014-12-28 22:03:09 +000039574 Delegate Program Configuration:
39575 GhostPCL None $PCLDelegate ($PCLVersion)
39576 GhostXPS None $XPSDelegate ($XPSVersion)
39577 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039578
cristy9af1cbf2014-12-28 22:03:09 +000039579 Font Configuration:
39580 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39581 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39582 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39583 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039584
cristy9af1cbf2014-12-28 22:03:09 +000039585 X11 Configuration:
39586 X_CFLAGS = $X_CFLAGS
39587 X_PRE_LIBS = $X_PRE_LIBS
39588 X_LIBS = $X_LIBS
39589 X_EXTRA_LIBS = $X_EXTRA_LIBS
39590
39591 Options used to compile and link:
39592 PREFIX = $PREFIX_DIR
39593 EXEC-PREFIX = $EXEC_PREFIX_DIR
39594 VERSION = $PACKAGE_VERSION
39595 CC = $CC
39596 CFLAGS = $CFLAGS
39597 CPPFLAGS = $CPPFLAGS
39598 PCFLAGS = $PCFLAGS
39599 DEFS = $DEFS
39600 LDFLAGS = $LDFLAGS
39601 LIBS = $LIBS
39602 CXX = $CXX
39603 CXXFLAGS = $CXXFLAGS
39604 FEATURES = $MAGICK_FEATURES
39605 DELEGATES = $MAGICK_DELEGATES
39606==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039607" >&5
cristy9af1cbf2014-12-28 22:03:09 +000039608$as_echo "$as_me:
39609==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039610ImageMagick is configured as follows. Please verify that this configuration
39611matches your expectations.
39612
cristy9af1cbf2014-12-28 22:03:09 +000039613 Host system type: $host
39614 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039615
39616 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039617 ------------------------------------------------------------------------------
39618 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39619 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39620 Module support --with-modules=$build_modules $build_modules
39621 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39622 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39623 High Dynamic Range Imagery
39624 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039625
cristy9af1cbf2014-12-28 22:03:09 +000039626 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039627
cristy9af1cbf2014-12-28 22:03:09 +000039628 Delegate Library Configuration:
39629 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39630 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39631 DJVU --with-djvu=$with_djvu $have_djvu
39632 DPS --with-dps=$with_dps $have_dps
39633 FFTW --with-fftw=$with_fftw $have_fftw
39634 FlashPIX --with-fpx=$with_fpx $have_fpx
39635 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39636 FreeType --with-freetype=$with_freetype $have_freetype
39637 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39638 Graphviz --with-gvc=$with_gvc $have_gvc
39639 JBIG --with-jbig=$with_jbig $have_jbig
39640 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39641 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
39642 LCMS v1 --with-lcms=$with_lcms $have_lcms
39643 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
39644 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
39645 LQR --with-lqr=$with_lqr $have_lqr
39646 LTDL --with-ltdl=$with_ltdl $have_ltdl
39647 LZMA --with-lzma=$with_lzma $have_lzma
39648 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39649 OpenEXR --with-openexr=$with_openexr $have_openexr
39650 PANGO --with-pango=$with_pango $have_pango
39651 PERL --with-perl=$with_perl $have_perl
39652 PNG --with-png=$with_png $have_png
39653 RSVG --with-rsvg=$with_rsvg $have_rsvg
39654 TIFF --with-tiff=$with_tiff $have_tiff
39655 WEBP --with-webp=$with_webp $have_webp
39656 WMF --with-wmf=$with_wmf $have_wmf
39657 X11 --with-x=$with_x $have_x
39658 XML --with-xml=$with_xml $have_xml
39659 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039660
cristy9af1cbf2014-12-28 22:03:09 +000039661 Delegate Program Configuration:
39662 GhostPCL None $PCLDelegate ($PCLVersion)
39663 GhostXPS None $XPSDelegate ($XPSVersion)
39664 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039665
cristy9af1cbf2014-12-28 22:03:09 +000039666 Font Configuration:
39667 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39668 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39669 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39670 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039671
cristy9af1cbf2014-12-28 22:03:09 +000039672 X11 Configuration:
39673 X_CFLAGS = $X_CFLAGS
39674 X_PRE_LIBS = $X_PRE_LIBS
39675 X_LIBS = $X_LIBS
39676 X_EXTRA_LIBS = $X_EXTRA_LIBS
39677
39678 Options used to compile and link:
39679 PREFIX = $PREFIX_DIR
39680 EXEC-PREFIX = $EXEC_PREFIX_DIR
39681 VERSION = $PACKAGE_VERSION
39682 CC = $CC
39683 CFLAGS = $CFLAGS
39684 CPPFLAGS = $CPPFLAGS
39685 PCFLAGS = $PCFLAGS
39686 DEFS = $DEFS
39687 LDFLAGS = $LDFLAGS
39688 LIBS = $LIBS
39689 CXX = $CXX
39690 CXXFLAGS = $CXXFLAGS
39691 FEATURES = $MAGICK_FEATURES
39692 DELEGATES = $MAGICK_DELEGATES
39693==============================================================================
39694" >&6;}